Constification of parse_linespec and fallout:
[deliverable/binutils-gdb.git] / ld / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
81ecdfbb
RW
3# Generated by GNU Autoconf 2.64.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
252b5132
RH
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
42ecbf5e 14
81ecdfbb
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
42ecbf5e
DJ
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
42ecbf5e
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
42ecbf5e 31fi
42ecbf5e 32
81ecdfbb
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
42ecbf5e
DJ
79fi
80
81
81ecdfbb
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
42ecbf5e
DJ
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
81ecdfbb
RW
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
3725885a
RW
172test \$(( 1 + 1 )) = 2 || exit 1
173
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
81ecdfbb
RW
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183else
184 as_have_required=no
185fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190as_found=false
191for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
42ecbf5e 192do
81ecdfbb
RW
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206fi
207fi
208 done;;
209 esac
210 as_found=false
211done
212$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215fi; }
216IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
42ecbf5e 236 else
81ecdfbb
RW
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238$0: including any error possibly output before this
239$0: message. Then install a modern shell, or manually run
240$0: the script under such a shell if you do have one."
42ecbf5e 241 fi
81ecdfbb
RW
242 exit 1
243fi
244fi
245fi
246SHELL=${CONFIG_SHELL-/bin/sh}
247export SHELL
248# Unset more variables known to interfere with behavior of common tools.
249CLICOLOR_FORCE= GREP_OPTIONS=
250unset CLICOLOR_FORCE GREP_OPTIONS
251
252## --------------------- ##
253## M4sh Shell Functions. ##
254## --------------------- ##
255# as_fn_unset VAR
256# ---------------
257# Portably unset VAR.
258as_fn_unset ()
259{
260 { eval $1=; unset $1;}
261}
262as_unset=as_fn_unset
263
264# as_fn_set_status STATUS
265# -----------------------
266# Set $? to STATUS, without forking.
267as_fn_set_status ()
268{
269 return $1
270} # as_fn_set_status
271
272# as_fn_exit STATUS
273# -----------------
274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275as_fn_exit ()
276{
277 set +e
278 as_fn_set_status $1
279 exit $1
280} # as_fn_exit
281
282# as_fn_mkdir_p
283# -------------
284# Create "$as_dir" as a directory, including parents if necessary.
285as_fn_mkdir_p ()
286{
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304$as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328} # as_fn_mkdir_p
329# as_fn_append VAR VALUE
330# ----------------------
331# Append the text in VALUE to the end of the definition contained in VAR. Take
332# advantage of any shell optimizations that allow amortized linear growth over
333# repeated appends, instead of the typical quadratic growth present in naive
334# implementations.
335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345fi # as_fn_append
346
347# as_fn_arith ARG...
348# ------------------
349# Perform arithmetic evaluation on the ARGs, and store the result in the
350# global $as_val. Take advantage of shells that can avoid forks. The arguments
351# must be portable across $(()) and expr.
352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362fi # as_fn_arith
363
364
365# as_fn_error ERROR [LINENO LOG_FD]
366# ---------------------------------
367# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369# script with status $?, using 1 if that was 0.
370as_fn_error ()
371{
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379} # as_fn_error
42ecbf5e 380
81ecdfbb
RW
381if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42ecbf5e
DJ
383 as_expr=expr
384else
385 as_expr=false
386fi
387
81ecdfbb 388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42ecbf5e
DJ
389 as_basename=basename
390else
391 as_basename=false
392fi
393
81ecdfbb
RW
394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396else
397 as_dirname=false
398fi
42ecbf5e 399
81ecdfbb 400as_me=`$as_basename -- "$0" ||
42ecbf5e
DJ
401$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404$as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
42ecbf5e 418
42ecbf5e
DJ
419# Avoid depending upon Character Ranges.
420as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423as_cr_digits='0123456789'
424as_cr_alnum=$as_cr_Letters$as_cr_digits
425
42ecbf5e 426
81ecdfbb
RW
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
42ecbf5e 436 sed '
81ecdfbb
RW
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
42ecbf5e 441 N
81ecdfbb
RW
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
42ecbf5e 444 t loop
81ecdfbb 445 s/-\n.*//
42ecbf5e 446 ' >$as_me.lineno &&
81ecdfbb
RW
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
42ecbf5e
DJ
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
42ecbf5e
DJ
454 # Exit status is that of the last command.
455 exit
456}
457
81ecdfbb
RW
458ECHO_C= ECHO_N= ECHO_T=
459case `echo -n x` in #(((((
460-n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467*)
468 ECHO_N='-n';;
42ecbf5e
DJ
469esac
470
81ecdfbb
RW
471rm -f conf$$ conf$$.exe conf$$.file
472if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
42ecbf5e 474else
81ecdfbb
RW
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
42ecbf5e 477fi
81ecdfbb
RW
478if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
42ecbf5e 480 as_ln_s='ln -s'
81ecdfbb
RW
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
42ecbf5e 491 fi
42ecbf5e
DJ
492else
493 as_ln_s='cp -p'
494fi
81ecdfbb
RW
495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496rmdir conf$$.dir 2>/dev/null
42ecbf5e
DJ
497
498if mkdir -p . 2>/dev/null; then
81ecdfbb 499 as_mkdir_p='mkdir -p "$as_dir"'
42ecbf5e
DJ
500else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503fi
504
81ecdfbb
RW
505if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525fi
526as_executable_p=$as_test_x
42ecbf5e
DJ
527
528# Sed expression to map a string onto a valid CPP name.
529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531# Sed expression to map a string onto a valid variable name.
532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
d7040cdb
SE
534SHELL=${CONFIG_SHELL-/bin/sh}
535
d7040cdb 536
81ecdfbb
RW
537exec 7<&0 </dev/null 6>&1
538
42ecbf5e
DJ
539# Name of the host.
540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541# so uname gets run too.
542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252b5132 543
42ecbf5e
DJ
544#
545# Initializations.
546#
252b5132 547ac_default_prefix=/usr/local
81ecdfbb 548ac_clean_files=
42ecbf5e 549ac_config_libobj_dir=.
81ecdfbb 550LIBOBJS=
42ecbf5e
DJ
551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
42ecbf5e
DJ
555
556# Identity of this package.
557PACKAGE_NAME=
558PACKAGE_TARNAME=
559PACKAGE_VERSION=
560PACKAGE_STRING=
561PACKAGE_BUGREPORT=
81ecdfbb 562PACKAGE_URL=
42ecbf5e
DJ
563
564ac_unique_file="ldmain.c"
565# Factoring default headers for most tests.
566ac_includes_default="\
567#include <stdio.h>
81ecdfbb 568#ifdef HAVE_SYS_TYPES_H
42ecbf5e
DJ
569# include <sys/types.h>
570#endif
81ecdfbb 571#ifdef HAVE_SYS_STAT_H
42ecbf5e
DJ
572# include <sys/stat.h>
573#endif
81ecdfbb 574#ifdef STDC_HEADERS
42ecbf5e
DJ
575# include <stdlib.h>
576# include <stddef.h>
577#else
81ecdfbb 578# ifdef HAVE_STDLIB_H
42ecbf5e
DJ
579# include <stdlib.h>
580# endif
581#endif
81ecdfbb
RW
582#ifdef HAVE_STRING_H
583# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
42ecbf5e
DJ
584# include <memory.h>
585# endif
586# include <string.h>
587#endif
81ecdfbb 588#ifdef HAVE_STRINGS_H
42ecbf5e
DJ
589# include <strings.h>
590#endif
81ecdfbb 591#ifdef HAVE_INTTYPES_H
42ecbf5e 592# include <inttypes.h>
42ecbf5e 593#endif
81ecdfbb
RW
594#ifdef HAVE_STDINT_H
595# include <stdint.h>
596#endif
597#ifdef HAVE_UNISTD_H
42ecbf5e
DJ
598# include <unistd.h>
599#endif"
600
81ecdfbb
RW
601ac_subst_vars='am__EXEEXT_FALSE
602am__EXEEXT_TRUE
603LTLIBOBJS
604LIBOBJS
605TESTBFDLIB
606EMULATION_LIBPATH
607LIB_PATH
608EMUL_EXTRA_OFILES
609EMULATION_OFILES
610EMUL
611STRINGIFY
02ecc8e9 612enable_initfini_array
5d3236ee
DK
613ENABLE_PLUGINS_FALSE
614ENABLE_PLUGINS_TRUE
81ecdfbb
RW
615NATIVE_LIB_DIRS
616HOSTING_LIBS
6738cadc 617HOSTING_SCRT0
81ecdfbb
RW
618HOSTING_CRT0
619HDEFINES
620do_compare
621GENINSRC_NEVER_FALSE
622GENINSRC_NEVER_TRUE
81ecdfbb
RW
623LEXLIB
624LEX_OUTPUT_ROOT
625LEX
626YFLAGS
627YACC
628MSGMERGE
629MSGFMT
630MKINSTALLDIRS
631CATOBJEXT
632GENCAT
633INSTOBJEXT
634DATADIRNAME
635CATALOGS
636POSUB
637GMSGFMT
638XGETTEXT
639INCINTL
640LIBINTL_DEP
641LIBINTL
642USE_NLS
3cb62297 643CXXCPP
81ecdfbb
RW
644OTOOL64
645OTOOL
646LIPO
647NMEDIT
648DSYMUTIL
81ecdfbb
RW
649RANLIB
650AR
651OBJDUMP
652LN_S
653NM
654ac_ct_DUMPBIN
655DUMPBIN
656LD
657FGREP
658SED
659LIBTOOL
3cb62297
L
660am__fastdepCXX_FALSE
661am__fastdepCXX_TRUE
662CXXDEPMODE
663ac_ct_CXX
664CXXFLAGS
665CXX
397841b5
AM
666NO_WERROR
667WARN_CFLAGS
81ecdfbb
RW
668EGREP
669GREP
670CPP
4fda8867
NC
671installed_linker
672install_as_default
81ecdfbb
RW
673TARGET_SYSTEM_ROOT_DEFINE
674TARGET_SYSTEM_ROOT
675use_sysroot
64ac50ac
RW
676MAINT
677MAINTAINER_MODE_FALSE
678MAINTAINER_MODE_TRUE
81ecdfbb
RW
679am__fastdepCC_FALSE
680am__fastdepCC_TRUE
681CCDEPMODE
682AMDEPBACKSLASH
683AMDEP_FALSE
684AMDEP_TRUE
685am__quote
686am__include
687DEPDIR
688am__untar
689am__tar
690AMTAR
691am__leading_dot
692SET_MAKE
693AWK
694mkdir_p
695MKDIR_P
696INSTALL_STRIP_PROGRAM
697STRIP
698install_sh
699MAKEINFO
700AUTOHEADER
701AUTOMAKE
702AUTOCONF
703ACLOCAL
704VERSION
705PACKAGE
706CYGPATH_W
707am__isrc
708INSTALL_DATA
709INSTALL_SCRIPT
710INSTALL_PROGRAM
711OBJEXT
712EXEEXT
713ac_ct_CC
714CPPFLAGS
715LDFLAGS
716CFLAGS
717CC
718target_os
719target_vendor
720target_cpu
721target
722host_os
723host_vendor
724host_cpu
725host
726build_os
727build_vendor
728build_cpu
729build
730target_alias
731host_alias
732build_alias
733LIBS
734ECHO_T
735ECHO_N
736ECHO_C
737DEFS
738mandir
739localedir
740libdir
741psdir
742pdfdir
743dvidir
744htmldir
745infodir
746docdir
747oldincludedir
748includedir
749localstatedir
750sharedstatedir
751sysconfdir
752datadir
753datarootdir
754libexecdir
755sbindir
756bindir
757program_transform_name
758prefix
759exec_prefix
760PACKAGE_URL
761PACKAGE_BUGREPORT
762PACKAGE_STRING
763PACKAGE_VERSION
764PACKAGE_TARNAME
765PACKAGE_NAME
766PATH_SEPARATOR
767SHELL'
42ecbf5e 768ac_subst_files='TDIRS'
81ecdfbb
RW
769ac_user_opts='
770enable_option_checking
771enable_dependency_tracking
64ac50ac 772enable_maintainer_mode
81ecdfbb
RW
773with_lib_path
774enable_targets
775enable_64_bit_bfd
776with_sysroot
4fda8867 777enable_gold
81ecdfbb
RW
778enable_got
779enable_werror
780enable_build_warnings
da2f07f1 781enable_plugins
81ecdfbb
RW
782enable_largefile
783enable_shared
784enable_static
785with_pic
786enable_fast_install
787with_gnu_ld
788enable_libtool_lock
789enable_nls
02ecc8e9 790enable_initfini_array
52546677 791with_zlib
81ecdfbb
RW
792'
793 ac_precious_vars='build_alias
794host_alias
795target_alias
796CC
797CFLAGS
798LDFLAGS
799LIBS
800CPPFLAGS
801CPP
3cb62297
L
802CXX
803CXXFLAGS
804CCC
805CXXCPP
81ecdfbb
RW
806YACC
807YFLAGS'
808
252b5132
RH
809
810# Initialize some variables set by options.
42ecbf5e
DJ
811ac_init_help=
812ac_init_version=false
81ecdfbb
RW
813ac_unrecognized_opts=
814ac_unrecognized_sep=
252b5132
RH
815# The variables have the same names as the options, with
816# dashes changed to underlines.
42ecbf5e 817cache_file=/dev/null
252b5132 818exec_prefix=NONE
252b5132 819no_create=
252b5132
RH
820no_recursion=
821prefix=NONE
822program_prefix=NONE
823program_suffix=NONE
824program_transform_name=s,x,x,
825silent=
826site=
827srcdir=
252b5132
RH
828verbose=
829x_includes=NONE
830x_libraries=NONE
42ecbf5e
DJ
831
832# Installation directory options.
833# These are left unexpanded so users can "make install exec_prefix=/foo"
834# and all the variables that are supposed to be based on exec_prefix
835# by default will actually change.
836# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 837# (The list follows the same order as the GNU Coding Standards.)
252b5132
RH
838bindir='${exec_prefix}/bin'
839sbindir='${exec_prefix}/sbin'
840libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
841datarootdir='${prefix}/share'
842datadir='${datarootdir}'
252b5132
RH
843sysconfdir='${prefix}/etc'
844sharedstatedir='${prefix}/com'
845localstatedir='${prefix}/var'
252b5132
RH
846includedir='${prefix}/include'
847oldincludedir='/usr/include'
81ecdfbb
RW
848docdir='${datarootdir}/doc/${PACKAGE}'
849infodir='${datarootdir}/info'
850htmldir='${docdir}'
851dvidir='${docdir}'
852pdfdir='${docdir}'
853psdir='${docdir}'
854libdir='${exec_prefix}/lib'
855localedir='${datarootdir}/locale'
856mandir='${datarootdir}/man'
252b5132 857
252b5132 858ac_prev=
81ecdfbb 859ac_dashdash=
252b5132
RH
860for ac_option
861do
252b5132
RH
862 # If the previous option needs an argument, assign it.
863 if test -n "$ac_prev"; then
81ecdfbb 864 eval $ac_prev=\$ac_option
252b5132
RH
865 ac_prev=
866 continue
867 fi
868
81ecdfbb
RW
869 case $ac_option in
870 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
871 *) ac_optarg=yes ;;
872 esac
252b5132
RH
873
874 # Accept the important Cygnus configure options, so we can diagnose typos.
875
81ecdfbb
RW
876 case $ac_dashdash$ac_option in
877 --)
878 ac_dashdash=yes ;;
252b5132
RH
879
880 -bindir | --bindir | --bindi | --bind | --bin | --bi)
881 ac_prev=bindir ;;
882 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
42ecbf5e 883 bindir=$ac_optarg ;;
252b5132
RH
884
885 -build | --build | --buil | --bui | --bu)
42ecbf5e 886 ac_prev=build_alias ;;
252b5132 887 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
42ecbf5e 888 build_alias=$ac_optarg ;;
252b5132
RH
889
890 -cache-file | --cache-file | --cache-fil | --cache-fi \
891 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
892 ac_prev=cache_file ;;
893 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
894 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
42ecbf5e
DJ
895 cache_file=$ac_optarg ;;
896
897 --config-cache | -C)
898 cache_file=config.cache ;;
252b5132 899
81ecdfbb 900 -datadir | --datadir | --datadi | --datad)
252b5132 901 ac_prev=datadir ;;
81ecdfbb 902 -datadir=* | --datadir=* | --datadi=* | --datad=*)
42ecbf5e 903 datadir=$ac_optarg ;;
252b5132 904
81ecdfbb
RW
905 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
906 | --dataroo | --dataro | --datar)
907 ac_prev=datarootdir ;;
908 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
909 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
910 datarootdir=$ac_optarg ;;
911
252b5132 912 -disable-* | --disable-*)
81ecdfbb 913 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 914 # Reject names that are not valid shell variable names.
81ecdfbb
RW
915 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
916 as_fn_error "invalid feature name: $ac_useropt"
917 ac_useropt_orig=$ac_useropt
918 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
919 case $ac_user_opts in
920 *"
921"enable_$ac_useropt"
922"*) ;;
923 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
924 ac_unrecognized_sep=', ';;
925 esac
926 eval enable_$ac_useropt=no ;;
927
928 -docdir | --docdir | --docdi | --doc | --do)
929 ac_prev=docdir ;;
930 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
931 docdir=$ac_optarg ;;
932
933 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
934 ac_prev=dvidir ;;
935 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
936 dvidir=$ac_optarg ;;
252b5132
RH
937
938 -enable-* | --enable-*)
81ecdfbb 939 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 940 # Reject names that are not valid shell variable names.
81ecdfbb
RW
941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
942 as_fn_error "invalid feature name: $ac_useropt"
943 ac_useropt_orig=$ac_useropt
944 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
945 case $ac_user_opts in
946 *"
947"enable_$ac_useropt"
948"*) ;;
949 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
950 ac_unrecognized_sep=', ';;
252b5132 951 esac
81ecdfbb 952 eval enable_$ac_useropt=\$ac_optarg ;;
252b5132
RH
953
954 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
955 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
956 | --exec | --exe | --ex)
957 ac_prev=exec_prefix ;;
958 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
959 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
960 | --exec=* | --exe=* | --ex=*)
42ecbf5e 961 exec_prefix=$ac_optarg ;;
252b5132
RH
962
963 -gas | --gas | --ga | --g)
964 # Obsolete; use --with-gas.
965 with_gas=yes ;;
966
42ecbf5e
DJ
967 -help | --help | --hel | --he | -h)
968 ac_init_help=long ;;
969 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
970 ac_init_help=recursive ;;
971 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
972 ac_init_help=short ;;
252b5132
RH
973
974 -host | --host | --hos | --ho)
42ecbf5e 975 ac_prev=host_alias ;;
252b5132 976 -host=* | --host=* | --hos=* | --ho=*)
42ecbf5e 977 host_alias=$ac_optarg ;;
252b5132 978
81ecdfbb
RW
979 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
980 ac_prev=htmldir ;;
981 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
982 | --ht=*)
983 htmldir=$ac_optarg ;;
984
252b5132
RH
985 -includedir | --includedir | --includedi | --included | --include \
986 | --includ | --inclu | --incl | --inc)
987 ac_prev=includedir ;;
988 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
989 | --includ=* | --inclu=* | --incl=* | --inc=*)
42ecbf5e 990 includedir=$ac_optarg ;;
252b5132
RH
991
992 -infodir | --infodir | --infodi | --infod | --info | --inf)
993 ac_prev=infodir ;;
994 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
42ecbf5e 995 infodir=$ac_optarg ;;
252b5132
RH
996
997 -libdir | --libdir | --libdi | --libd)
998 ac_prev=libdir ;;
999 -libdir=* | --libdir=* | --libdi=* | --libd=*)
42ecbf5e 1000 libdir=$ac_optarg ;;
252b5132
RH
1001
1002 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1003 | --libexe | --libex | --libe)
1004 ac_prev=libexecdir ;;
1005 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1006 | --libexe=* | --libex=* | --libe=*)
42ecbf5e 1007 libexecdir=$ac_optarg ;;
252b5132 1008
81ecdfbb
RW
1009 -localedir | --localedir | --localedi | --localed | --locale)
1010 ac_prev=localedir ;;
1011 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1012 localedir=$ac_optarg ;;
1013
252b5132 1014 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1015 | --localstate | --localstat | --localsta | --localst | --locals)
252b5132
RH
1016 ac_prev=localstatedir ;;
1017 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1018 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
42ecbf5e 1019 localstatedir=$ac_optarg ;;
252b5132
RH
1020
1021 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1022 ac_prev=mandir ;;
1023 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
42ecbf5e 1024 mandir=$ac_optarg ;;
252b5132
RH
1025
1026 -nfp | --nfp | --nf)
1027 # Obsolete; use --without-fp.
1028 with_fp=no ;;
1029
1030 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
42ecbf5e 1031 | --no-cr | --no-c | -n)
252b5132
RH
1032 no_create=yes ;;
1033
1034 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1035 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1036 no_recursion=yes ;;
1037
1038 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1039 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1040 | --oldin | --oldi | --old | --ol | --o)
1041 ac_prev=oldincludedir ;;
1042 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1043 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1044 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
42ecbf5e 1045 oldincludedir=$ac_optarg ;;
252b5132
RH
1046
1047 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1048 ac_prev=prefix ;;
1049 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
42ecbf5e 1050 prefix=$ac_optarg ;;
252b5132
RH
1051
1052 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1053 | --program-pre | --program-pr | --program-p)
1054 ac_prev=program_prefix ;;
1055 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1056 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
42ecbf5e 1057 program_prefix=$ac_optarg ;;
252b5132
RH
1058
1059 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1060 | --program-suf | --program-su | --program-s)
1061 ac_prev=program_suffix ;;
1062 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1063 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
42ecbf5e 1064 program_suffix=$ac_optarg ;;
252b5132
RH
1065
1066 -program-transform-name | --program-transform-name \
1067 | --program-transform-nam | --program-transform-na \
1068 | --program-transform-n | --program-transform- \
1069 | --program-transform | --program-transfor \
1070 | --program-transfo | --program-transf \
1071 | --program-trans | --program-tran \
1072 | --progr-tra | --program-tr | --program-t)
1073 ac_prev=program_transform_name ;;
1074 -program-transform-name=* | --program-transform-name=* \
1075 | --program-transform-nam=* | --program-transform-na=* \
1076 | --program-transform-n=* | --program-transform-=* \
1077 | --program-transform=* | --program-transfor=* \
1078 | --program-transfo=* | --program-transf=* \
1079 | --program-trans=* | --program-tran=* \
1080 | --progr-tra=* | --program-tr=* | --program-t=*)
42ecbf5e 1081 program_transform_name=$ac_optarg ;;
252b5132 1082
81ecdfbb
RW
1083 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1084 ac_prev=pdfdir ;;
1085 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1086 pdfdir=$ac_optarg ;;
1087
1088 -psdir | --psdir | --psdi | --psd | --ps)
1089 ac_prev=psdir ;;
1090 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1091 psdir=$ac_optarg ;;
1092
252b5132
RH
1093 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1094 | -silent | --silent | --silen | --sile | --sil)
1095 silent=yes ;;
1096
1097 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1098 ac_prev=sbindir ;;
1099 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1100 | --sbi=* | --sb=*)
42ecbf5e 1101 sbindir=$ac_optarg ;;
252b5132
RH
1102
1103 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1104 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1105 | --sharedst | --shareds | --shared | --share | --shar \
1106 | --sha | --sh)
1107 ac_prev=sharedstatedir ;;
1108 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1109 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1110 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1111 | --sha=* | --sh=*)
42ecbf5e 1112 sharedstatedir=$ac_optarg ;;
252b5132
RH
1113
1114 -site | --site | --sit)
1115 ac_prev=site ;;
1116 -site=* | --site=* | --sit=*)
42ecbf5e 1117 site=$ac_optarg ;;
85fbca6a 1118
252b5132
RH
1119 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1120 ac_prev=srcdir ;;
1121 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42ecbf5e 1122 srcdir=$ac_optarg ;;
252b5132
RH
1123
1124 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1125 | --syscon | --sysco | --sysc | --sys | --sy)
1126 ac_prev=sysconfdir ;;
1127 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1128 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
42ecbf5e 1129 sysconfdir=$ac_optarg ;;
252b5132
RH
1130
1131 -target | --target | --targe | --targ | --tar | --ta | --t)
42ecbf5e 1132 ac_prev=target_alias ;;
252b5132 1133 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
42ecbf5e 1134 target_alias=$ac_optarg ;;
252b5132
RH
1135
1136 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1137 verbose=yes ;;
1138
42ecbf5e
DJ
1139 -version | --version | --versio | --versi | --vers | -V)
1140 ac_init_version=: ;;
252b5132
RH
1141
1142 -with-* | --with-*)
81ecdfbb 1143 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 1144 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146 as_fn_error "invalid package name: $ac_useropt"
1147 ac_useropt_orig=$ac_useropt
1148 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149 case $ac_user_opts in
1150 *"
1151"with_$ac_useropt"
1152"*) ;;
1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1154 ac_unrecognized_sep=', ';;
252b5132 1155 esac
81ecdfbb 1156 eval with_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1157
1158 -without-* | --without-*)
81ecdfbb 1159 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 1160 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162 as_fn_error "invalid package name: $ac_useropt"
1163 ac_useropt_orig=$ac_useropt
1164 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165 case $ac_user_opts in
1166 *"
1167"with_$ac_useropt"
1168"*) ;;
1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1170 ac_unrecognized_sep=', ';;
1171 esac
1172 eval with_$ac_useropt=no ;;
252b5132
RH
1173
1174 --x)
1175 # Obsolete; use --with-x.
1176 with_x=yes ;;
1177
1178 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1179 | --x-incl | --x-inc | --x-in | --x-i)
1180 ac_prev=x_includes ;;
1181 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1182 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
42ecbf5e 1183 x_includes=$ac_optarg ;;
252b5132
RH
1184
1185 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1186 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1187 ac_prev=x_libraries ;;
1188 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1189 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
42ecbf5e 1190 x_libraries=$ac_optarg ;;
252b5132 1191
81ecdfbb
RW
1192 -*) as_fn_error "unrecognized option: \`$ac_option'
1193Try \`$0 --help' for more information."
252b5132
RH
1194 ;;
1195
42ecbf5e
DJ
1196 *=*)
1197 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1198 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1199 case $ac_envvar in #(
1200 '' | [0-9]* | *[!_$as_cr_alnum]* )
1201 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1202 esac
1203 eval $ac_envvar=\$ac_optarg
42ecbf5e
DJ
1204 export $ac_envvar ;;
1205
252b5132 1206 *)
42ecbf5e 1207 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1208 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
42ecbf5e 1209 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1210 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
42ecbf5e 1211 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
1212 ;;
1213
1214 esac
1215done
1216
1217if test -n "$ac_prev"; then
42ecbf5e 1218 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1219 as_fn_error "missing argument to $ac_option"
252b5132 1220fi
252b5132 1221
81ecdfbb
RW
1222if test -n "$ac_unrecognized_opts"; then
1223 case $enable_option_checking in
1224 no) ;;
1225 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1226 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
42ecbf5e 1227 esac
81ecdfbb 1228fi
252b5132 1229
81ecdfbb
RW
1230# Check all directory arguments for consistency.
1231for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1232 datadir sysconfdir sharedstatedir localstatedir includedir \
1233 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1234 libdir localedir mandir
252b5132 1235do
81ecdfbb
RW
1236 eval ac_val=\$$ac_var
1237 # Remove trailing slashes.
1238 case $ac_val in
1239 */ )
1240 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1241 eval $ac_var=\$ac_val;;
1242 esac
1243 # Be sure to have absolute directory names.
42ecbf5e 1244 case $ac_val in
81ecdfbb
RW
1245 [\\/$]* | ?:[\\/]* ) continue;;
1246 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
252b5132 1247 esac
81ecdfbb 1248 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
252b5132
RH
1249done
1250
42ecbf5e
DJ
1251# There might be people who depend on the old broken behavior: `$host'
1252# used to hold the argument of --host etc.
1253# FIXME: To remove some day.
1254build=$build_alias
1255host=$host_alias
1256target=$target_alias
1257
1258# FIXME: To remove some day.
1259if test "x$host_alias" != x; then
1260 if test "x$build_alias" = x; then
1261 cross_compiling=maybe
81ecdfbb 1262 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
42ecbf5e
DJ
1263 If a cross compiler is detected then cross compile mode will be used." >&2
1264 elif test "x$build_alias" != "x$host_alias"; then
1265 cross_compiling=yes
1266 fi
1267fi
e5a52504 1268
42ecbf5e
DJ
1269ac_tool_prefix=
1270test -n "$host_alias" && ac_tool_prefix=$host_alias-
1271
1272test "$silent" = yes && exec 6>/dev/null
252b5132 1273
252b5132 1274
81ecdfbb
RW
1275ac_pwd=`pwd` && test -n "$ac_pwd" &&
1276ac_ls_di=`ls -di .` &&
1277ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1278 as_fn_error "working directory cannot be determined"
1279test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1280 as_fn_error "pwd does not report name of working directory"
1281
1282
252b5132
RH
1283# Find the source files, if location was not specified.
1284if test -z "$srcdir"; then
1285 ac_srcdir_defaulted=yes
81ecdfbb
RW
1286 # Try the directory containing this script, then the parent directory.
1287 ac_confdir=`$as_dirname -- "$as_myself" ||
1288$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1289 X"$as_myself" : 'X\(//\)[^/]' \| \
1290 X"$as_myself" : 'X\(//\)$' \| \
1291 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1292$as_echo X"$as_myself" |
1293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1294 s//\1/
1295 q
1296 }
1297 /^X\(\/\/\)[^/].*/{
1298 s//\1/
1299 q
1300 }
1301 /^X\(\/\/\)$/{
1302 s//\1/
1303 q
1304 }
1305 /^X\(\/\).*/{
1306 s//\1/
1307 q
1308 }
1309 s/.*/./; q'`
252b5132 1310 srcdir=$ac_confdir
81ecdfbb 1311 if test ! -r "$srcdir/$ac_unique_file"; then
252b5132
RH
1312 srcdir=..
1313 fi
1314else
1315 ac_srcdir_defaulted=no
1316fi
81ecdfbb
RW
1317if test ! -r "$srcdir/$ac_unique_file"; then
1318 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1319 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1320fi
1321ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1322ac_abs_confdir=`(
1323 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1324 pwd)`
1325# When building in place, set srcdir=.
1326if test "$ac_abs_confdir" = "$ac_pwd"; then
1327 srcdir=.
1328fi
1329# Remove unnecessary trailing slashes from srcdir.
1330# Double slashes in file names in object file debugging info
1331# mess up M-x gdb in Emacs.
1332case $srcdir in
1333*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1334esac
1335for ac_var in $ac_precious_vars; do
1336 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1337 eval ac_env_${ac_var}_value=\$${ac_var}
1338 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1339 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1340done
252b5132 1341
42ecbf5e
DJ
1342#
1343# Report the --help message.
1344#
1345if test "$ac_init_help" = "long"; then
1346 # Omit some internal or obsolete options to make the list less imposing.
1347 # This message is too long to be a string in the A/UX 3.1 sh.
1348 cat <<_ACEOF
1349\`configure' configures this package to adapt to many kinds of systems.
252b5132 1350
42ecbf5e 1351Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 1352
42ecbf5e
DJ
1353To assign environment variables (e.g., CC, CFLAGS...), specify them as
1354VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 1355
42ecbf5e 1356Defaults for the options are specified in brackets.
ac48eca1 1357
42ecbf5e
DJ
1358Configuration:
1359 -h, --help display this help and exit
1360 --help=short display options specific to this package
1361 --help=recursive display the short help of all the included packages
1362 -V, --version display version information and exit
1363 -q, --quiet, --silent do not print \`checking...' messages
1364 --cache-file=FILE cache test results in FILE [disabled]
1365 -C, --config-cache alias for \`--cache-file=config.cache'
1366 -n, --no-create do not create output files
1367 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1368
42ecbf5e
DJ
1369Installation directories:
1370 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1371 [$ac_default_prefix]
42ecbf5e 1372 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1373 [PREFIX]
ac48eca1 1374
42ecbf5e
DJ
1375By default, \`make install' will install all the files in
1376\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1377an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1378for instance \`--prefix=\$HOME'.
ac48eca1 1379
42ecbf5e 1380For better control, use the options below.
ac48eca1 1381
42ecbf5e 1382Fine tuning of the installation directories:
81ecdfbb
RW
1383 --bindir=DIR user executables [EPREFIX/bin]
1384 --sbindir=DIR system admin executables [EPREFIX/sbin]
1385 --libexecdir=DIR program executables [EPREFIX/libexec]
1386 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1387 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1388 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1389 --libdir=DIR object code libraries [EPREFIX/lib]
1390 --includedir=DIR C header files [PREFIX/include]
1391 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1392 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1393 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1394 --infodir=DIR info documentation [DATAROOTDIR/info]
1395 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1396 --mandir=DIR man documentation [DATAROOTDIR/man]
1397 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1398 --htmldir=DIR html documentation [DOCDIR]
1399 --dvidir=DIR dvi documentation [DOCDIR]
1400 --pdfdir=DIR pdf documentation [DOCDIR]
1401 --psdir=DIR ps documentation [DOCDIR]
42ecbf5e 1402_ACEOF
ac48eca1 1403
42ecbf5e 1404 cat <<\_ACEOF
252b5132 1405
42ecbf5e
DJ
1406Program names:
1407 --program-prefix=PREFIX prepend PREFIX to installed program names
1408 --program-suffix=SUFFIX append SUFFIX to installed program names
1409 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 1410
42ecbf5e
DJ
1411System types:
1412 --build=BUILD configure for building on BUILD [guessed]
1413 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1414 --target=TARGET configure for building compilers for TARGET [HOST]
1415_ACEOF
252b5132 1416fi
252b5132 1417
42ecbf5e 1418if test -n "$ac_init_help"; then
252b5132 1419
42ecbf5e 1420 cat <<\_ACEOF
e5a52504 1421
42ecbf5e 1422Optional Features:
81ecdfbb 1423 --disable-option-checking ignore unrecognized --enable/--with options
42ecbf5e
DJ
1424 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1425 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1426 --disable-dependency-tracking speeds up one-time build
1427 --enable-dependency-tracking do not reject slow dependency extractors
64ac50ac
RW
1428 --enable-maintainer-mode enable make rules and dependencies not useful
1429 (and sometimes confusing) to the casual installer
ce2cded5
L
1430 --enable-targets alternative target configurations
1431 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
c7791212 1432 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
7fb9f789
NC
1433 --enable-got=<type> GOT handling scheme (target, single, negative,
1434 multigot)
ce2cded5
L
1435 --enable-werror treat compile warnings as errors
1436 --enable-build-warnings enable build-time compiler warnings
da2f07f1 1437 --enable-plugins Enable support for plugins (defaults no)
d053aef8 1438 --disable-largefile omit support for large files
81ecdfbb
RW
1439 --enable-shared[=PKGS] build shared libraries [default=yes]
1440 --enable-static[=PKGS] build static libraries [default=yes]
d7040cdb
SE
1441 --enable-fast-install[=PKGS]
1442 optimize for fast installation [default=yes]
42ecbf5e 1443 --disable-libtool-lock avoid locking (might break parallel builds)
42ecbf5e 1444 --disable-nls do not use Native Language Support
02ecc8e9 1445 --enable-initfini-array use .init_array/.fini_array sections
42ecbf5e
DJ
1446
1447Optional Packages:
1448 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1449 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
ce2cded5
L
1450 --with-lib-path=dir1:dir2... set default LIB_PATH
1451 --with-sysroot=DIR Search for usr/lib et al within DIR.
d7040cdb
SE
1452 --with-pic try to use only PIC/non-PIC objects [default=use
1453 both]
1454 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
52546677 1455 --with-zlib include zlib support (auto/yes/no) default=auto
42ecbf5e
DJ
1456
1457Some influential environment variables:
1458 CC C compiler command
1459 CFLAGS C compiler flags
1460 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1461 nonstandard directory <lib dir>
81ecdfbb
RW
1462 LIBS libraries to pass to the linker, e.g. -l<library>
1463 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1464 you have headers in a nonstandard directory <include dir>
42ecbf5e 1465 CPP C preprocessor
3cb62297
L
1466 CXX C++ compiler command
1467 CXXFLAGS C++ compiler flags
1468 CXXCPP C++ preprocessor
81ecdfbb
RW
1469 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1470 the first program found out of: `bison -y', `byacc', `yacc'.
1471 YFLAGS The list of arguments that will be passed by default to $YACC.
1472 This script will default YFLAGS to the empty string to avoid a
1473 default value of `-d' given by some make applications.
42ecbf5e
DJ
1474
1475Use these variables to override the choices made by `configure' or to help
1476it to find libraries and programs with nonstandard names/locations.
1477
81ecdfbb 1478Report bugs to the package provider.
42ecbf5e 1479_ACEOF
81ecdfbb 1480ac_status=$?
42ecbf5e
DJ
1481fi
1482
1483if test "$ac_init_help" = "recursive"; then
1484 # If there are subdirs, report their specific --help.
42ecbf5e 1485 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1486 test -d "$ac_dir" ||
1487 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1488 continue
42ecbf5e
DJ
1489 ac_builddir=.
1490
81ecdfbb
RW
1491case "$ac_dir" in
1492.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493*)
1494 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1495 # A ".." for each directory in $ac_dir_suffix.
1496 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1497 case $ac_top_builddir_sub in
1498 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1500 esac ;;
1501esac
1502ac_abs_top_builddir=$ac_pwd
1503ac_abs_builddir=$ac_pwd$ac_dir_suffix
1504# for backward compatibility:
1505ac_top_builddir=$ac_top_build_prefix
42ecbf5e
DJ
1506
1507case $srcdir in
81ecdfbb 1508 .) # We are building in place.
42ecbf5e 1509 ac_srcdir=.
81ecdfbb
RW
1510 ac_top_srcdir=$ac_top_builddir_sub
1511 ac_abs_top_srcdir=$ac_pwd ;;
1512 [\\/]* | ?:[\\/]* ) # Absolute name.
42ecbf5e 1513 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1514 ac_top_srcdir=$srcdir
1515 ac_abs_top_srcdir=$srcdir ;;
1516 *) # Relative name.
1517 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1518 ac_top_srcdir=$ac_top_build_prefix$srcdir
1519 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42ecbf5e 1520esac
81ecdfbb
RW
1521ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1522
1523 cd "$ac_dir" || { ac_status=$?; continue; }
1524 # Check for guested configure.
1525 if test -f "$ac_srcdir/configure.gnu"; then
1526 echo &&
1527 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1528 elif test -f "$ac_srcdir/configure"; then
1529 echo &&
1530 $SHELL "$ac_srcdir/configure" --help=recursive
42ecbf5e 1531 else
81ecdfbb
RW
1532 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1533 fi || ac_status=$?
1534 cd "$ac_pwd" || { ac_status=$?; break; }
42ecbf5e 1535 done
a2d91340
AC
1536fi
1537
81ecdfbb 1538test -n "$ac_init_help" && exit $ac_status
42ecbf5e
DJ
1539if $ac_init_version; then
1540 cat <<\_ACEOF
81ecdfbb
RW
1541configure
1542generated by GNU Autoconf 2.64
a2d91340 1543
81ecdfbb 1544Copyright (C) 2009 Free Software Foundation, Inc.
42ecbf5e
DJ
1545This configure script is free software; the Free Software Foundation
1546gives unlimited permission to copy, distribute and modify it.
1547_ACEOF
81ecdfbb 1548 exit
42ecbf5e 1549fi
a2d91340 1550
81ecdfbb
RW
1551## ------------------------ ##
1552## Autoconf initialization. ##
1553## ------------------------ ##
a2d91340 1554
81ecdfbb
RW
1555# ac_fn_c_try_compile LINENO
1556# --------------------------
1557# Try to compile conftest.$ac_ext, and return whether this succeeded.
1558ac_fn_c_try_compile ()
1559{
1560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1561 rm -f conftest.$ac_objext
1562 if { { ac_try="$ac_compile"
1563case "(($ac_try" in
1564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1565 *) ac_try_echo=$ac_try;;
1566esac
1567eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1568$as_echo "$ac_try_echo"; } >&5
1569 (eval "$ac_compile") 2>conftest.err
1570 ac_status=$?
1571 if test -s conftest.err; then
1572 grep -v '^ *+' conftest.err >conftest.er1
1573 cat conftest.er1 >&5
1574 mv -f conftest.er1 conftest.err
1575 fi
1576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1577 test $ac_status = 0; } && {
1578 test -z "$ac_c_werror_flag" ||
1579 test ! -s conftest.err
1580 } && test -s conftest.$ac_objext; then :
1581 ac_retval=0
1582else
1583 $as_echo "$as_me: failed program was:" >&5
1584sed 's/^/| /' conftest.$ac_ext >&5
a2d91340 1585
81ecdfbb
RW
1586 ac_retval=1
1587fi
1588 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1589 return $ac_retval
1590
1591} # ac_fn_c_try_compile
1592
1593# ac_fn_c_try_link LINENO
1594# -----------------------
1595# Try to link conftest.$ac_ext, and return whether this succeeded.
1596ac_fn_c_try_link ()
42ecbf5e 1597{
81ecdfbb
RW
1598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599 rm -f conftest.$ac_objext conftest$ac_exeext
1600 if { { ac_try="$ac_link"
1601case "(($ac_try" in
1602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1603 *) ac_try_echo=$ac_try;;
1604esac
1605eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1606$as_echo "$ac_try_echo"; } >&5
1607 (eval "$ac_link") 2>conftest.err
1608 ac_status=$?
1609 if test -s conftest.err; then
1610 grep -v '^ *+' conftest.err >conftest.er1
1611 cat conftest.er1 >&5
1612 mv -f conftest.er1 conftest.err
1613 fi
1614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615 test $ac_status = 0; } && {
1616 test -z "$ac_c_werror_flag" ||
1617 test ! -s conftest.err
1618 } && test -s conftest$ac_exeext && {
1619 test "$cross_compiling" = yes ||
1620 $as_test_x conftest$ac_exeext
1621 }; then :
1622 ac_retval=0
1623else
1624 $as_echo "$as_me: failed program was:" >&5
1625sed 's/^/| /' conftest.$ac_ext >&5
42ecbf5e 1626
81ecdfbb
RW
1627 ac_retval=1
1628fi
1629 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1630 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1631 # interfere with the next link command; also delete a directory that is
1632 # left behind by Apple's compiler. We do this before executing the actions.
1633 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1634 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1635 return $ac_retval
42ecbf5e 1636
81ecdfbb 1637} # ac_fn_c_try_link
42ecbf5e 1638
81ecdfbb
RW
1639# ac_fn_c_try_cpp LINENO
1640# ----------------------
1641# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1642ac_fn_c_try_cpp ()
1643{
1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645 if { { ac_try="$ac_cpp conftest.$ac_ext"
1646case "(($ac_try" in
1647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648 *) ac_try_echo=$ac_try;;
1649esac
1650eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651$as_echo "$ac_try_echo"; } >&5
1652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1653 ac_status=$?
1654 if test -s conftest.err; then
1655 grep -v '^ *+' conftest.err >conftest.er1
1656 cat conftest.er1 >&5
1657 mv -f conftest.er1 conftest.err
1658 fi
1659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660 test $ac_status = 0; } >/dev/null && {
1661 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1662 test ! -s conftest.err
1663 }; then :
1664 ac_retval=0
1665else
1666 $as_echo "$as_me: failed program was:" >&5
1667sed 's/^/| /' conftest.$ac_ext >&5
1668
1669 ac_retval=1
1670fi
1671 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1672 return $ac_retval
1673
1674} # ac_fn_c_try_cpp
1675
3cb62297
L
1676# ac_fn_cxx_try_compile LINENO
1677# ----------------------------
1678# Try to compile conftest.$ac_ext, and return whether this succeeded.
1679ac_fn_cxx_try_compile ()
1680{
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 rm -f conftest.$ac_objext
1683 if { { ac_try="$ac_compile"
1684case "(($ac_try" in
1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686 *) ac_try_echo=$ac_try;;
1687esac
1688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689$as_echo "$ac_try_echo"; } >&5
1690 (eval "$ac_compile") 2>conftest.err
1691 ac_status=$?
1692 if test -s conftest.err; then
1693 grep -v '^ *+' conftest.err >conftest.er1
1694 cat conftest.er1 >&5
1695 mv -f conftest.er1 conftest.err
1696 fi
1697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698 test $ac_status = 0; } && {
1699 test -z "$ac_cxx_werror_flag" ||
1700 test ! -s conftest.err
1701 } && test -s conftest.$ac_objext; then :
1702 ac_retval=0
1703else
1704 $as_echo "$as_me: failed program was:" >&5
1705sed 's/^/| /' conftest.$ac_ext >&5
1706
1707 ac_retval=1
1708fi
1709 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1710 return $ac_retval
1711
1712} # ac_fn_cxx_try_compile
1713
81ecdfbb
RW
1714# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1715# -------------------------------------------------------
1716# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1717# the include files in INCLUDES and setting the cache variable VAR
1718# accordingly.
1719ac_fn_c_check_header_mongrel ()
1720{
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1724$as_echo_n "checking for $2... " >&6; }
1725if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1726 $as_echo_n "(cached) " >&6
1727fi
1728eval ac_res=\$$3
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1730$as_echo "$ac_res" >&6; }
1731else
1732 # Is the header compilable?
1733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1734$as_echo_n "checking $2 usability... " >&6; }
1735cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1736/* end confdefs.h. */
1737$4
1738#include <$2>
1739_ACEOF
1740if ac_fn_c_try_compile "$LINENO"; then :
1741 ac_header_compiler=yes
1742else
1743 ac_header_compiler=no
1744fi
1745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1747$as_echo "$ac_header_compiler" >&6; }
1748
1749# Is the header present?
1750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1751$as_echo_n "checking $2 presence... " >&6; }
1752cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1753/* end confdefs.h. */
1754#include <$2>
1755_ACEOF
1756if ac_fn_c_try_cpp "$LINENO"; then :
1757 ac_header_preproc=yes
1758else
1759 ac_header_preproc=no
1760fi
1761rm -f conftest.err conftest.$ac_ext
1762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1763$as_echo "$ac_header_preproc" >&6; }
1764
1765# So? What about this header?
1766case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1767 yes:no: )
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1769$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1771$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1772 ;;
1773 no:yes:* )
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1775$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1777$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1779$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1781$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1783$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1784 ;;
1785esac
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1787$as_echo_n "checking for $2... " >&6; }
1788if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1789 $as_echo_n "(cached) " >&6
1790else
1791 eval "$3=\$ac_header_compiler"
1792fi
1793eval ac_res=\$$3
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1795$as_echo "$ac_res" >&6; }
1796fi
1797 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1798
1799} # ac_fn_c_check_header_mongrel
1800
1801# ac_fn_c_try_run LINENO
1802# ----------------------
1803# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1804# that executables *can* be run.
1805ac_fn_c_try_run ()
1806{
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 if { { ac_try="$ac_link"
1809case "(($ac_try" in
1810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1811 *) ac_try_echo=$ac_try;;
1812esac
1813eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1814$as_echo "$ac_try_echo"; } >&5
1815 (eval "$ac_link") 2>&5
1816 ac_status=$?
1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1819 { { case "(($ac_try" in
1820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821 *) ac_try_echo=$ac_try;;
1822esac
1823eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824$as_echo "$ac_try_echo"; } >&5
1825 (eval "$ac_try") 2>&5
1826 ac_status=$?
1827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828 test $ac_status = 0; }; }; then :
1829 ac_retval=0
1830else
1831 $as_echo "$as_me: program exited with status $ac_status" >&5
1832 $as_echo "$as_me: failed program was:" >&5
1833sed 's/^/| /' conftest.$ac_ext >&5
1834
1835 ac_retval=$ac_status
1836fi
1837 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1838 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1839 return $ac_retval
1840
1841} # ac_fn_c_try_run
1842
1843# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1844# -------------------------------------------------------
1845# Tests whether HEADER exists and can be compiled using the include files in
1846# INCLUDES, setting the cache variable VAR accordingly.
1847ac_fn_c_check_header_compile ()
1848{
1849 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1851$as_echo_n "checking for $2... " >&6; }
1852if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1853 $as_echo_n "(cached) " >&6
1854else
1855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856/* end confdefs.h. */
1857$4
1858#include <$2>
1859_ACEOF
1860if ac_fn_c_try_compile "$LINENO"; then :
1861 eval "$3=yes"
1862else
1863 eval "$3=no"
1864fi
1865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1866fi
1867eval ac_res=\$$3
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1869$as_echo "$ac_res" >&6; }
1870 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1871
1872} # ac_fn_c_check_header_compile
1873
1874# ac_fn_c_check_func LINENO FUNC VAR
1875# ----------------------------------
1876# Tests whether FUNC exists, setting the cache variable VAR accordingly
1877ac_fn_c_check_func ()
1878{
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1881$as_echo_n "checking for $2... " >&6; }
1882if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1883 $as_echo_n "(cached) " >&6
1884else
1885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1886/* end confdefs.h. */
1887/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1889#define $2 innocuous_$2
1890
1891/* System header to define __stub macros and hopefully few prototypes,
1892 which can conflict with char $2 (); below.
1893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1894 <limits.h> exists even on freestanding compilers. */
1895
1896#ifdef __STDC__
1897# include <limits.h>
1898#else
1899# include <assert.h>
1900#endif
1901
1902#undef $2
1903
1904/* Override any GCC internal prototype to avoid an error.
1905 Use char because int might match the return type of a GCC
1906 builtin and then its argument prototype would still apply. */
1907#ifdef __cplusplus
1908extern "C"
1909#endif
1910char $2 ();
1911/* The GNU C library defines this for functions which it implements
1912 to always fail with ENOSYS. Some functions are actually named
1913 something starting with __ and the normal name is an alias. */
1914#if defined __stub_$2 || defined __stub___$2
1915choke me
1916#endif
1917
1918int
1919main ()
1920{
1921return $2 ();
1922 ;
1923 return 0;
1924}
1925_ACEOF
1926if ac_fn_c_try_link "$LINENO"; then :
1927 eval "$3=yes"
1928else
1929 eval "$3=no"
1930fi
1931rm -f core conftest.err conftest.$ac_objext \
1932 conftest$ac_exeext conftest.$ac_ext
1933fi
1934eval ac_res=\$$3
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1936$as_echo "$ac_res" >&6; }
1937 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1938
1939} # ac_fn_c_check_func
1940
3cb62297
L
1941# ac_fn_cxx_try_cpp LINENO
1942# ------------------------
1943# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1944ac_fn_cxx_try_cpp ()
1945{
1946 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947 if { { ac_try="$ac_cpp conftest.$ac_ext"
1948case "(($ac_try" in
1949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1950 *) ac_try_echo=$ac_try;;
1951esac
1952eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1953$as_echo "$ac_try_echo"; } >&5
1954 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1955 ac_status=$?
1956 if test -s conftest.err; then
1957 grep -v '^ *+' conftest.err >conftest.er1
1958 cat conftest.er1 >&5
1959 mv -f conftest.er1 conftest.err
1960 fi
1961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1962 test $ac_status = 0; } >/dev/null && {
1963 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1964 test ! -s conftest.err
1965 }; then :
1966 ac_retval=0
1967else
1968 $as_echo "$as_me: failed program was:" >&5
1969sed 's/^/| /' conftest.$ac_ext >&5
1970
1971 ac_retval=1
1972fi
1973 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1974 return $ac_retval
1975
1976} # ac_fn_cxx_try_cpp
1977
1978# ac_fn_cxx_try_link LINENO
1979# -------------------------
1980# Try to link conftest.$ac_ext, and return whether this succeeded.
1981ac_fn_cxx_try_link ()
1982{
1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984 rm -f conftest.$ac_objext conftest$ac_exeext
1985 if { { ac_try="$ac_link"
1986case "(($ac_try" in
1987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1988 *) ac_try_echo=$ac_try;;
1989esac
1990eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1991$as_echo "$ac_try_echo"; } >&5
1992 (eval "$ac_link") 2>conftest.err
1993 ac_status=$?
1994 if test -s conftest.err; then
1995 grep -v '^ *+' conftest.err >conftest.er1
1996 cat conftest.er1 >&5
1997 mv -f conftest.er1 conftest.err
1998 fi
1999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2000 test $ac_status = 0; } && {
2001 test -z "$ac_cxx_werror_flag" ||
2002 test ! -s conftest.err
2003 } && test -s conftest$ac_exeext && {
2004 test "$cross_compiling" = yes ||
2005 $as_test_x conftest$ac_exeext
2006 }; then :
2007 ac_retval=0
2008else
2009 $as_echo "$as_me: failed program was:" >&5
2010sed 's/^/| /' conftest.$ac_ext >&5
2011
2012 ac_retval=1
2013fi
2014 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2015 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2016 # interfere with the next link command; also delete a directory that is
2017 # left behind by Apple's compiler. We do this before executing the actions.
2018 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2019 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2020 return $ac_retval
2021
2022} # ac_fn_cxx_try_link
2023
81ecdfbb
RW
2024# ac_fn_c_check_decl LINENO SYMBOL VAR
2025# ------------------------------------
2026# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2027ac_fn_c_check_decl ()
2028{
2029 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
360cfc9c
AM
2030 as_decl_name=`echo $2|sed 's/ *(.*//'`
2031 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2033$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
81ecdfbb
RW
2034if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2035 $as_echo_n "(cached) " >&6
2036else
2037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038/* end confdefs.h. */
2039$4
2040int
2041main ()
2042{
360cfc9c
AM
2043#ifndef $as_decl_name
2044#ifdef __cplusplus
2045 (void) $as_decl_use;
2046#else
2047 (void) $as_decl_name;
2048#endif
81ecdfbb
RW
2049#endif
2050
2051 ;
2052 return 0;
2053}
2054_ACEOF
2055if ac_fn_c_try_compile "$LINENO"; then :
2056 eval "$3=yes"
2057else
2058 eval "$3=no"
2059fi
2060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2061fi
2062eval ac_res=\$$3
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2064$as_echo "$ac_res" >&6; }
2065 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2066
2067} # ac_fn_c_check_decl
2068
2069# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2070# --------------------------------------------
2071# Tries to find the compile-time value of EXPR in a program that includes
2072# INCLUDES, setting VAR accordingly. Returns whether the value could be
2073# computed
2074ac_fn_c_compute_int ()
2075{
2076 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2077 if test "$cross_compiling" = yes; then
2078 # Depending upon the size, compute the lo and hi bounds.
2079cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080/* end confdefs.h. */
2081$4
2082int
2083main ()
2084{
2085static int test_array [1 - 2 * !(($2) >= 0)];
2086test_array [0] = 0
2087
2088 ;
2089 return 0;
2090}
2091_ACEOF
2092if ac_fn_c_try_compile "$LINENO"; then :
2093 ac_lo=0 ac_mid=0
2094 while :; do
2095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2096/* end confdefs.h. */
2097$4
2098int
2099main ()
2100{
2101static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2102test_array [0] = 0
2103
2104 ;
2105 return 0;
2106}
2107_ACEOF
2108if ac_fn_c_try_compile "$LINENO"; then :
2109 ac_hi=$ac_mid; break
2110else
2111 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2112 if test $ac_lo -le $ac_mid; then
2113 ac_lo= ac_hi=
2114 break
2115 fi
2116 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2117fi
2118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2119 done
2120else
2121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2122/* end confdefs.h. */
2123$4
2124int
2125main ()
2126{
2127static int test_array [1 - 2 * !(($2) < 0)];
2128test_array [0] = 0
2129
2130 ;
2131 return 0;
2132}
2133_ACEOF
2134if ac_fn_c_try_compile "$LINENO"; then :
2135 ac_hi=-1 ac_mid=-1
2136 while :; do
2137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138/* end confdefs.h. */
2139$4
2140int
2141main ()
2142{
2143static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2144test_array [0] = 0
2145
2146 ;
2147 return 0;
2148}
2149_ACEOF
2150if ac_fn_c_try_compile "$LINENO"; then :
2151 ac_lo=$ac_mid; break
2152else
2153 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2154 if test $ac_mid -le $ac_hi; then
2155 ac_lo= ac_hi=
2156 break
2157 fi
2158 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2159fi
2160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161 done
2162else
2163 ac_lo= ac_hi=
2164fi
2165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2166fi
2167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2168# Binary search between lo and hi bounds.
2169while test "x$ac_lo" != "x$ac_hi"; do
2170 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2172/* end confdefs.h. */
2173$4
2174int
2175main ()
2176{
2177static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2178test_array [0] = 0
2179
2180 ;
2181 return 0;
2182}
2183_ACEOF
2184if ac_fn_c_try_compile "$LINENO"; then :
2185 ac_hi=$ac_mid
2186else
2187 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2188fi
2189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2190done
2191case $ac_lo in #((
2192?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2193'') ac_retval=1 ;;
2194esac
2195 else
2196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197/* end confdefs.h. */
2198$4
2199static long int longval () { return $2; }
2200static unsigned long int ulongval () { return $2; }
2201#include <stdio.h>
2202#include <stdlib.h>
2203int
2204main ()
2205{
2206
2207 FILE *f = fopen ("conftest.val", "w");
2208 if (! f)
2209 return 1;
2210 if (($2) < 0)
2211 {
2212 long int i = longval ();
2213 if (i != ($2))
2214 return 1;
2215 fprintf (f, "%ld", i);
2216 }
2217 else
2218 {
2219 unsigned long int i = ulongval ();
2220 if (i != ($2))
2221 return 1;
2222 fprintf (f, "%lu", i);
2223 }
2224 /* Do not output a trailing newline, as this causes \r\n confusion
2225 on some platforms. */
2226 return ferror (f) || fclose (f) != 0;
2227
2228 ;
2229 return 0;
2230}
2231_ACEOF
2232if ac_fn_c_try_run "$LINENO"; then :
2233 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2234else
2235 ac_retval=1
2236fi
2237rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2238 conftest.$ac_objext conftest.beam conftest.$ac_ext
2239rm -f conftest.val
2240
2241 fi
2242 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2243 return $ac_retval
2244
2245} # ac_fn_c_compute_int
2246cat >config.log <<_ACEOF
2247This file contains any messages produced by compilers while
2248running configure, to aid debugging if configure makes a mistake.
2249
2250It was created by $as_me, which was
2251generated by GNU Autoconf 2.64. Invocation command line was
2252
2253 $ $0 $@
2254
2255_ACEOF
2256exec 5>>config.log
2257{
2258cat <<_ASUNAME
2259## --------- ##
2260## Platform. ##
2261## --------- ##
2262
2263hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2264uname -m = `(uname -m) 2>/dev/null || echo unknown`
2265uname -r = `(uname -r) 2>/dev/null || echo unknown`
2266uname -s = `(uname -s) 2>/dev/null || echo unknown`
2267uname -v = `(uname -v) 2>/dev/null || echo unknown`
2268
2269/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2270/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2271
2272/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2273/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2274/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2275/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
42ecbf5e
DJ
2276/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2277/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2278/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2279
2280_ASUNAME
2281
2282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2283for as_dir in $PATH
2284do
2285 IFS=$as_save_IFS
2286 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2287 $as_echo "PATH: $as_dir"
2288 done
2289IFS=$as_save_IFS
252b5132 2290
42ecbf5e 2291} >&5
5d64ca4e 2292
42ecbf5e 2293cat >&5 <<_ACEOF
5d64ca4e 2294
5d64ca4e 2295
42ecbf5e
DJ
2296## ----------- ##
2297## Core tests. ##
2298## ----------- ##
5d64ca4e 2299
42ecbf5e 2300_ACEOF
2469cfa2 2301
42ecbf5e
DJ
2302
2303# Keep a trace of the command line.
2304# Strip out --no-create and --no-recursion so they do not pile up.
2305# Strip out --silent because we don't want to record it for future runs.
2306# Also quote any args containing shell meta-characters.
2307# Make two passes to allow for proper duplicate-argument suppression.
2308ac_configure_args=
2309ac_configure_args0=
2310ac_configure_args1=
42ecbf5e
DJ
2311ac_must_keep_next=false
2312for ac_pass in 1 2
2313do
2314 for ac_arg
2315 do
2316 case $ac_arg in
2317 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2318 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2319 | -silent | --silent | --silen | --sile | --sil)
2320 continue ;;
81ecdfbb
RW
2321 *\'*)
2322 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
42ecbf5e
DJ
2323 esac
2324 case $ac_pass in
81ecdfbb 2325 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
42ecbf5e 2326 2)
81ecdfbb 2327 as_fn_append ac_configure_args1 " '$ac_arg'"
42ecbf5e
DJ
2328 if test $ac_must_keep_next = true; then
2329 ac_must_keep_next=false # Got value, back to normal.
2330 else
2331 case $ac_arg in
2332 *=* | --config-cache | -C | -disable-* | --disable-* \
2333 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2334 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2335 | -with-* | --with-* | -without-* | --without-* | --x)
2336 case "$ac_configure_args0 " in
2337 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2338 esac
2339 ;;
2340 -* ) ac_must_keep_next=true ;;
2341 esac
2342 fi
81ecdfbb 2343 as_fn_append ac_configure_args " '$ac_arg'"
42ecbf5e
DJ
2344 ;;
2345 esac
2346 done
2347done
81ecdfbb
RW
2348{ ac_configure_args0=; unset ac_configure_args0;}
2349{ ac_configure_args1=; unset ac_configure_args1;}
42ecbf5e
DJ
2350
2351# When interrupted or exit'd, cleanup temporary files, and complete
2352# config.log. We remove comments because anyway the quotes in there
2353# would cause problems or look ugly.
81ecdfbb
RW
2354# WARNING: Use '\'' to represent an apostrophe within the trap.
2355# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
42ecbf5e
DJ
2356trap 'exit_status=$?
2357 # Save into config.log some information that might help in debugging.
2358 {
2359 echo
2360
2361 cat <<\_ASBOX
2362## ---------------- ##
2363## Cache variables. ##
2364## ---------------- ##
2365_ASBOX
2366 echo
2367 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2368(
2369 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2370 eval ac_val=\$$ac_var
2371 case $ac_val in #(
2372 *${as_nl}*)
2373 case $ac_var in #(
2374 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2375$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2376 esac
2377 case $ac_var in #(
2378 _ | IFS | as_nl) ;; #(
2379 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2380 *) { eval $ac_var=; unset $ac_var;} ;;
2381 esac ;;
2382 esac
2383 done
42ecbf5e 2384 (set) 2>&1 |
81ecdfbb
RW
2385 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2386 *${as_nl}ac_space=\ *)
42ecbf5e 2387 sed -n \
81ecdfbb
RW
2388 "s/'\''/'\''\\\\'\'''\''/g;
2389 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2390 ;; #(
42ecbf5e 2391 *)
81ecdfbb 2392 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42ecbf5e 2393 ;;
81ecdfbb
RW
2394 esac |
2395 sort
2396)
42ecbf5e
DJ
2397 echo
2398
2399 cat <<\_ASBOX
2400## ----------------- ##
2401## Output variables. ##
2402## ----------------- ##
2403_ASBOX
2404 echo
2405 for ac_var in $ac_subst_vars
2406 do
81ecdfbb
RW
2407 eval ac_val=\$$ac_var
2408 case $ac_val in
2409 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2410 esac
2411 $as_echo "$ac_var='\''$ac_val'\''"
42ecbf5e
DJ
2412 done | sort
2413 echo
2414
2415 if test -n "$ac_subst_files"; then
2416 cat <<\_ASBOX
81ecdfbb
RW
2417## ------------------- ##
2418## File substitutions. ##
2419## ------------------- ##
42ecbf5e
DJ
2420_ASBOX
2421 echo
2422 for ac_var in $ac_subst_files
2423 do
81ecdfbb
RW
2424 eval ac_val=\$$ac_var
2425 case $ac_val in
2426 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2427 esac
2428 $as_echo "$ac_var='\''$ac_val'\''"
42ecbf5e
DJ
2429 done | sort
2430 echo
2431 fi
2432
2433 if test -s confdefs.h; then
2434 cat <<\_ASBOX
2435## ----------- ##
2436## confdefs.h. ##
2437## ----------- ##
2438_ASBOX
2439 echo
81ecdfbb 2440 cat confdefs.h
42ecbf5e
DJ
2441 echo
2442 fi
2443 test "$ac_signal" != 0 &&
81ecdfbb
RW
2444 $as_echo "$as_me: caught signal $ac_signal"
2445 $as_echo "$as_me: exit $exit_status"
42ecbf5e 2446 } >&5
81ecdfbb
RW
2447 rm -f core *.core core.conftest.* &&
2448 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
42ecbf5e 2449 exit $exit_status
81ecdfbb 2450' 0
42ecbf5e 2451for ac_signal in 1 2 13 15; do
81ecdfbb 2452 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
42ecbf5e
DJ
2453done
2454ac_signal=0
2455
2456# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2457rm -f -r conftest* confdefs.h
2458
2459$as_echo "/* confdefs.h */" > confdefs.h
42ecbf5e
DJ
2460
2461# Predefined preprocessor variables.
2462
2463cat >>confdefs.h <<_ACEOF
2464#define PACKAGE_NAME "$PACKAGE_NAME"
2465_ACEOF
2466
42ecbf5e
DJ
2467cat >>confdefs.h <<_ACEOF
2468#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2469_ACEOF
2470
42ecbf5e
DJ
2471cat >>confdefs.h <<_ACEOF
2472#define PACKAGE_VERSION "$PACKAGE_VERSION"
2473_ACEOF
2474
42ecbf5e
DJ
2475cat >>confdefs.h <<_ACEOF
2476#define PACKAGE_STRING "$PACKAGE_STRING"
2477_ACEOF
2478
42ecbf5e
DJ
2479cat >>confdefs.h <<_ACEOF
2480#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2481_ACEOF
2482
81ecdfbb
RW
2483cat >>confdefs.h <<_ACEOF
2484#define PACKAGE_URL "$PACKAGE_URL"
2485_ACEOF
2486
42ecbf5e
DJ
2487
2488# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2489# Prefer an explicitly selected file to automatically selected ones.
2490ac_site_file1=NONE
2491ac_site_file2=NONE
2492if test -n "$CONFIG_SITE"; then
2493 ac_site_file1=$CONFIG_SITE
2494elif test "x$prefix" != xNONE; then
2495 ac_site_file1=$prefix/share/config.site
2496 ac_site_file2=$prefix/etc/config.site
2497else
2498 ac_site_file1=$ac_default_prefix/share/config.site
2499 ac_site_file2=$ac_default_prefix/etc/config.site
2500fi
2501for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2502do
2503 test "x$ac_site_file" = xNONE && continue
42ecbf5e 2504 if test -r "$ac_site_file"; then
81ecdfbb
RW
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2506$as_echo "$as_me: loading site script $ac_site_file" >&6;}
42ecbf5e
DJ
2507 sed 's/^/| /' "$ac_site_file" >&5
2508 . "$ac_site_file"
2509 fi
2510done
2511
2512if test -r "$cache_file"; then
2513 # Some versions of bash will fail to source /dev/null (special
2514 # files actually), so we avoid doing that.
2515 if test -f "$cache_file"; then
81ecdfbb
RW
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2517$as_echo "$as_me: loading cache $cache_file" >&6;}
42ecbf5e 2518 case $cache_file in
81ecdfbb
RW
2519 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2520 *) . "./$cache_file";;
42ecbf5e
DJ
2521 esac
2522 fi
2523else
81ecdfbb
RW
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2525$as_echo "$as_me: creating cache $cache_file" >&6;}
42ecbf5e
DJ
2526 >$cache_file
2527fi
2528
2529# Check that the precious variables saved in the cache have kept the same
2530# value.
2531ac_cache_corrupted=false
81ecdfbb 2532for ac_var in $ac_precious_vars; do
42ecbf5e
DJ
2533 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2534 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2535 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2536 eval ac_new_val=\$ac_env_${ac_var}_value
42ecbf5e
DJ
2537 case $ac_old_set,$ac_new_set in
2538 set,)
81ecdfbb
RW
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2540$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
42ecbf5e
DJ
2541 ac_cache_corrupted=: ;;
2542 ,set)
81ecdfbb
RW
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2544$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
42ecbf5e
DJ
2545 ac_cache_corrupted=: ;;
2546 ,);;
2547 *)
2548 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2549 # differences in whitespace do not lead to failure.
2550 ac_old_val_w=`echo x $ac_old_val`
2551 ac_new_val_w=`echo x $ac_new_val`
2552 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2554$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2555 ac_cache_corrupted=:
2556 else
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2558$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2559 eval $ac_var=\$ac_old_val
2560 fi
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2562$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2564$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
42ecbf5e
DJ
2565 fi;;
2566 esac
2567 # Pass precious variables to config.status.
2568 if test "$ac_new_set" = set; then
2569 case $ac_new_val in
81ecdfbb 2570 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
42ecbf5e
DJ
2571 *) ac_arg=$ac_var=$ac_new_val ;;
2572 esac
2573 case " $ac_configure_args " in
2574 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2575 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
42ecbf5e
DJ
2576 esac
2577 fi
2578done
2579if $ac_cache_corrupted; then
81ecdfbb
RW
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2581$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2583$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2584 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
42ecbf5e 2585fi
81ecdfbb
RW
2586## -------------------- ##
2587## Main body of script. ##
2588## -------------------- ##
42ecbf5e
DJ
2589
2590ac_ext=c
2591ac_cpp='$CPP $CPPFLAGS'
2592ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2593ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2594ac_compiler_gnu=$ac_cv_c_compiler_gnu
2595
2596
2597
42ecbf5e 2598
da594c4a 2599
42ecbf5e
DJ
2600
2601
2602ac_aux_dir=
81ecdfbb
RW
2603for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2604 for ac_t in install-sh install.sh shtool; do
2605 if test -f "$ac_dir/$ac_t"; then
2606 ac_aux_dir=$ac_dir
2607 ac_install_sh="$ac_aux_dir/$ac_t -c"
2608 break 2
2609 fi
2610 done
42ecbf5e
DJ
2611done
2612if test -z "$ac_aux_dir"; then
81ecdfbb 2613 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
42ecbf5e 2614fi
81ecdfbb
RW
2615
2616# These three variables are undocumented and unsupported,
2617# and are intended to be withdrawn in a future Autoconf release.
2618# They can cause serious problems if a builder's source tree is in a directory
2619# whose full name contains unusual characters.
2620ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2621ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2622ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2623
42ecbf5e
DJ
2624
2625# Make sure we can run config.sub.
81ecdfbb
RW
2626$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2627 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2628
2629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2630$as_echo_n "checking build system type... " >&6; }
2631if test "${ac_cv_build+set}" = set; then :
2632 $as_echo_n "(cached) " >&6
2633else
2634 ac_build_alias=$build_alias
2635test "x$ac_build_alias" = x &&
2636 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2637test "x$ac_build_alias" = x &&
2638 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2639ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2640 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2641
2642fi
2643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2644$as_echo "$ac_cv_build" >&6; }
2645case $ac_cv_build in
2646*-*-*) ;;
2647*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2648esac
42ecbf5e 2649build=$ac_cv_build
81ecdfbb
RW
2650ac_save_IFS=$IFS; IFS='-'
2651set x $ac_cv_build
2652shift
2653build_cpu=$1
2654build_vendor=$2
2655shift; shift
2656# Remember, the first character of IFS is used to create $*,
2657# except with old shells:
2658build_os=$*
2659IFS=$ac_save_IFS
2660case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2661
2662
81ecdfbb
RW
2663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2664$as_echo_n "checking host system type... " >&6; }
2665if test "${ac_cv_host+set}" = set; then :
2666 $as_echo_n "(cached) " >&6
2667else
2668 if test "x$host_alias" = x; then
2669 ac_cv_host=$ac_cv_build
42ecbf5e 2670else
81ecdfbb
RW
2671 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2672 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2673fi
42ecbf5e
DJ
2674
2675fi
81ecdfbb
RW
2676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2677$as_echo "$ac_cv_host" >&6; }
2678case $ac_cv_host in
2679*-*-*) ;;
2680*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2681esac
42ecbf5e 2682host=$ac_cv_host
81ecdfbb
RW
2683ac_save_IFS=$IFS; IFS='-'
2684set x $ac_cv_host
2685shift
2686host_cpu=$1
2687host_vendor=$2
2688shift; shift
2689# Remember, the first character of IFS is used to create $*,
2690# except with old shells:
2691host_os=$*
2692IFS=$ac_save_IFS
2693case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2694
2695
81ecdfbb
RW
2696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2697$as_echo_n "checking target system type... " >&6; }
2698if test "${ac_cv_target+set}" = set; then :
2699 $as_echo_n "(cached) " >&6
42ecbf5e 2700else
81ecdfbb
RW
2701 if test "x$target_alias" = x; then
2702 ac_cv_target=$ac_cv_host
2703else
2704 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2705 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2706fi
42ecbf5e
DJ
2707
2708fi
81ecdfbb
RW
2709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2710$as_echo "$ac_cv_target" >&6; }
2711case $ac_cv_target in
2712*-*-*) ;;
2713*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2714esac
42ecbf5e 2715target=$ac_cv_target
81ecdfbb
RW
2716ac_save_IFS=$IFS; IFS='-'
2717set x $ac_cv_target
2718shift
2719target_cpu=$1
2720target_vendor=$2
2721shift; shift
2722# Remember, the first character of IFS is used to create $*,
2723# except with old shells:
2724target_os=$*
2725IFS=$ac_save_IFS
2726case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2727
2728
2729# The aliases save the names the user supplied, while $host etc.
2730# will get canonicalized.
2731test -n "$target_alias" &&
2732 test "$program_prefix$program_suffix$program_transform_name" = \
2733 NONENONEs,x,x, &&
2734 program_prefix=${target_alias}-
02ecc8e9 2735
42ecbf5e
DJ
2736ac_ext=c
2737ac_cpp='$CPP $CPPFLAGS'
2738ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2739ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2740ac_compiler_gnu=$ac_cv_c_compiler_gnu
2741if test -n "$ac_tool_prefix"; then
2742 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2743set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
2744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2745$as_echo_n "checking for $ac_word... " >&6; }
2746if test "${ac_cv_prog_CC+set}" = set; then :
2747 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2748else
2749 if test -n "$CC"; then
2750 ac_cv_prog_CC="$CC" # Let the user override the test.
2751else
2752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753for as_dir in $PATH
2754do
2755 IFS=$as_save_IFS
2756 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2757 for ac_exec_ext in '' $ac_executable_extensions; do
2758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2759 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 2760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2761 break 2
2762 fi
2763done
81ecdfbb
RW
2764 done
2765IFS=$as_save_IFS
42ecbf5e
DJ
2766
2767fi
2768fi
2769CC=$ac_cv_prog_CC
2770if test -n "$CC"; then
81ecdfbb
RW
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2772$as_echo "$CC" >&6; }
42ecbf5e 2773else
81ecdfbb
RW
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2775$as_echo "no" >&6; }
42ecbf5e
DJ
2776fi
2777
81ecdfbb 2778
42ecbf5e
DJ
2779fi
2780if test -z "$ac_cv_prog_CC"; then
2781 ac_ct_CC=$CC
2782 # Extract the first word of "gcc", so it can be a program name with args.
2783set dummy gcc; ac_word=$2
81ecdfbb
RW
2784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2785$as_echo_n "checking for $ac_word... " >&6; }
2786if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2787 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2788else
2789 if test -n "$ac_ct_CC"; then
2790 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2791else
2792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793for as_dir in $PATH
2794do
2795 IFS=$as_save_IFS
2796 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2797 for ac_exec_ext in '' $ac_executable_extensions; do
2798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2799 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 2800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2801 break 2
2802 fi
2803done
81ecdfbb
RW
2804 done
2805IFS=$as_save_IFS
42ecbf5e
DJ
2806
2807fi
2808fi
2809ac_ct_CC=$ac_cv_prog_ac_ct_CC
2810if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2812$as_echo "$ac_ct_CC" >&6; }
42ecbf5e 2813else
81ecdfbb
RW
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2815$as_echo "no" >&6; }
42ecbf5e
DJ
2816fi
2817
81ecdfbb
RW
2818 if test "x$ac_ct_CC" = x; then
2819 CC=""
2820 else
2821 case $cross_compiling:$ac_tool_warned in
2822yes:)
2823{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2824$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2825ac_tool_warned=yes ;;
2826esac
2827 CC=$ac_ct_CC
2828 fi
42ecbf5e
DJ
2829else
2830 CC="$ac_cv_prog_CC"
2831fi
2832
2833if test -z "$CC"; then
81ecdfbb
RW
2834 if test -n "$ac_tool_prefix"; then
2835 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
42ecbf5e 2836set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
2837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2838$as_echo_n "checking for $ac_word... " >&6; }
2839if test "${ac_cv_prog_CC+set}" = set; then :
2840 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2841else
2842 if test -n "$CC"; then
2843 ac_cv_prog_CC="$CC" # Let the user override the test.
2844else
2845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846for as_dir in $PATH
2847do
2848 IFS=$as_save_IFS
2849 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2850 for ac_exec_ext in '' $ac_executable_extensions; do
2851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2852 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 2853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2854 break 2
2855 fi
2856done
81ecdfbb
RW
2857 done
2858IFS=$as_save_IFS
42ecbf5e
DJ
2859
2860fi
2861fi
2862CC=$ac_cv_prog_CC
2863if test -n "$CC"; then
81ecdfbb
RW
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2865$as_echo "$CC" >&6; }
42ecbf5e 2866else
81ecdfbb
RW
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2868$as_echo "no" >&6; }
42ecbf5e
DJ
2869fi
2870
42ecbf5e 2871
81ecdfbb 2872 fi
42ecbf5e
DJ
2873fi
2874if test -z "$CC"; then
2875 # Extract the first word of "cc", so it can be a program name with args.
2876set dummy cc; ac_word=$2
81ecdfbb
RW
2877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2878$as_echo_n "checking for $ac_word... " >&6; }
2879if test "${ac_cv_prog_CC+set}" = set; then :
2880 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2881else
2882 if test -n "$CC"; then
2883 ac_cv_prog_CC="$CC" # Let the user override the test.
2884else
2885 ac_prog_rejected=no
2886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2887for as_dir in $PATH
2888do
2889 IFS=$as_save_IFS
2890 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2891 for ac_exec_ext in '' $ac_executable_extensions; do
2892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e
DJ
2893 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2894 ac_prog_rejected=yes
2895 continue
2896 fi
2897 ac_cv_prog_CC="cc"
81ecdfbb 2898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2899 break 2
2900 fi
2901done
81ecdfbb
RW
2902 done
2903IFS=$as_save_IFS
42ecbf5e
DJ
2904
2905if test $ac_prog_rejected = yes; then
2906 # We found a bogon in the path, so make sure we never use it.
2907 set dummy $ac_cv_prog_CC
2908 shift
2909 if test $# != 0; then
2910 # We chose a different compiler from the bogus one.
2911 # However, it has the same basename, so the bogon will be chosen
2912 # first if we set CC to just the basename; use the full file name.
2913 shift
2914 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2915 fi
2916fi
2917fi
2918fi
2919CC=$ac_cv_prog_CC
2920if test -n "$CC"; then
81ecdfbb
RW
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2922$as_echo "$CC" >&6; }
42ecbf5e 2923else
81ecdfbb
RW
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2925$as_echo "no" >&6; }
42ecbf5e
DJ
2926fi
2927
81ecdfbb 2928
42ecbf5e
DJ
2929fi
2930if test -z "$CC"; then
2931 if test -n "$ac_tool_prefix"; then
81ecdfbb 2932 for ac_prog in cl.exe
42ecbf5e
DJ
2933 do
2934 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2935set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
2936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2937$as_echo_n "checking for $ac_word... " >&6; }
2938if test "${ac_cv_prog_CC+set}" = set; then :
2939 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2940else
2941 if test -n "$CC"; then
2942 ac_cv_prog_CC="$CC" # Let the user override the test.
2943else
2944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945for as_dir in $PATH
2946do
2947 IFS=$as_save_IFS
2948 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2949 for ac_exec_ext in '' $ac_executable_extensions; do
2950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2951 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 2952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2953 break 2
2954 fi
2955done
81ecdfbb
RW
2956 done
2957IFS=$as_save_IFS
42ecbf5e
DJ
2958
2959fi
2960fi
2961CC=$ac_cv_prog_CC
2962if test -n "$CC"; then
81ecdfbb
RW
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2964$as_echo "$CC" >&6; }
42ecbf5e 2965else
81ecdfbb
RW
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2967$as_echo "no" >&6; }
42ecbf5e
DJ
2968fi
2969
81ecdfbb 2970
42ecbf5e
DJ
2971 test -n "$CC" && break
2972 done
2973fi
2974if test -z "$CC"; then
2975 ac_ct_CC=$CC
81ecdfbb 2976 for ac_prog in cl.exe
42ecbf5e
DJ
2977do
2978 # Extract the first word of "$ac_prog", so it can be a program name with args.
2979set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
2980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2981$as_echo_n "checking for $ac_word... " >&6; }
2982if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2983 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2984else
2985 if test -n "$ac_ct_CC"; then
2986 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2987else
2988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989for as_dir in $PATH
2990do
2991 IFS=$as_save_IFS
2992 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2993 for ac_exec_ext in '' $ac_executable_extensions; do
2994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2995 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 2996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2997 break 2
2998 fi
2999done
81ecdfbb
RW
3000 done
3001IFS=$as_save_IFS
42ecbf5e
DJ
3002
3003fi
3004fi
3005ac_ct_CC=$ac_cv_prog_ac_ct_CC
3006if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3008$as_echo "$ac_ct_CC" >&6; }
42ecbf5e 3009else
81ecdfbb
RW
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3011$as_echo "no" >&6; }
42ecbf5e
DJ
3012fi
3013
81ecdfbb 3014
42ecbf5e
DJ
3015 test -n "$ac_ct_CC" && break
3016done
3017
81ecdfbb
RW
3018 if test "x$ac_ct_CC" = x; then
3019 CC=""
3020 else
3021 case $cross_compiling:$ac_tool_warned in
3022yes:)
3023{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3024$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3025ac_tool_warned=yes ;;
3026esac
3027 CC=$ac_ct_CC
3028 fi
42ecbf5e
DJ
3029fi
3030
3031fi
3032
3033
81ecdfbb
RW
3034test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3035$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3036as_fn_error "no acceptable C compiler found in \$PATH
3037See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e
DJ
3038
3039# Provide some information about the compiler.
81ecdfbb
RW
3040$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3041set X $ac_compile
3042ac_compiler=$2
3043for ac_option in --version -v -V -qversion; do
3044 { { ac_try="$ac_compiler $ac_option >&5"
3045case "(($ac_try" in
3046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047 *) ac_try_echo=$ac_try;;
3048esac
3049eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3050$as_echo "$ac_try_echo"; } >&5
3051 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
42ecbf5e 3052 ac_status=$?
81ecdfbb
RW
3053 if test -s conftest.err; then
3054 sed '10a\
3055... rest of stderr output deleted ...
3056 10q' conftest.err >conftest.er1
3057 cat conftest.er1 >&5
3058 rm -f conftest.er1 conftest.err
3059 fi
3060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3061 test $ac_status = 0; }
3062done
42ecbf5e 3063
81ecdfbb 3064cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3065/* end confdefs.h. */
3066
3067int
3068main ()
3069{
3070
3071 ;
3072 return 0;
3073}
3074_ACEOF
3075ac_clean_files_save=$ac_clean_files
81ecdfbb 3076ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
42ecbf5e
DJ
3077# Try to create an executable without -o first, disregard a.out.
3078# It will help us diagnose broken compilers, and finding out an intuition
3079# of exeext.
81ecdfbb
RW
3080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3081$as_echo_n "checking for C compiler default output file name... " >&6; }
3082ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3083
3084# The possible output files:
3085ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3086
3087ac_rmfiles=
3088for ac_file in $ac_files
3089do
3090 case $ac_file in
3091 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3092 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3093 esac
3094done
3095rm -f $ac_rmfiles
3096
3097if { { ac_try="$ac_link_default"
3098case "(($ac_try" in
3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100 *) ac_try_echo=$ac_try;;
3101esac
3102eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3103$as_echo "$ac_try_echo"; } >&5
3104 (eval "$ac_link_default") 2>&5
3105 ac_status=$?
3106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3107 test $ac_status = 0; }; then :
3108 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3109# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3110# in a Makefile. We should not override ac_cv_exeext if it was cached,
3111# so that the user can short-circuit this test for compilers unknown to
3112# Autoconf.
3113for ac_file in $ac_files ''
42ecbf5e
DJ
3114do
3115 test -f "$ac_file" || continue
3116 case $ac_file in
81ecdfbb 3117 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
42ecbf5e
DJ
3118 ;;
3119 [ab].out )
3120 # We found the default executable, but exeext='' is most
3121 # certainly right.
3122 break;;
3123 *.* )
81ecdfbb
RW
3124 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3125 then :; else
3126 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3127 fi
3128 # We set ac_cv_exeext here because the later test for it is not
3129 # safe: cross compilers may not add the suffix if given an `-o'
3130 # argument, so we may need to know it at that point already.
3131 # Even if this section looks crufty: it has the advantage of
3132 # actually working.
42ecbf5e
DJ
3133 break;;
3134 * )
3135 break;;
3136 esac
3137done
81ecdfbb
RW
3138test "$ac_cv_exeext" = no && ac_cv_exeext=
3139
42ecbf5e 3140else
81ecdfbb
RW
3141 ac_file=''
3142fi
3143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3144$as_echo "$ac_file" >&6; }
3145if test -z "$ac_file"; then :
3146 $as_echo "$as_me: failed program was:" >&5
42ecbf5e
DJ
3147sed 's/^/| /' conftest.$ac_ext >&5
3148
81ecdfbb
RW
3149{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3150$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3151{ as_fn_set_status 77
3152as_fn_error "C compiler cannot create executables
3153See \`config.log' for more details." "$LINENO" 5; }; }
42ecbf5e 3154fi
42ecbf5e 3155ac_exeext=$ac_cv_exeext
42ecbf5e 3156
81ecdfbb 3157# Check that the compiler produces executables we can run. If not, either
42ecbf5e 3158# the compiler is broken, or we cross compile.
81ecdfbb
RW
3159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3160$as_echo_n "checking whether the C compiler works... " >&6; }
42ecbf5e
DJ
3161# If not cross compiling, check that we can run a simple program.
3162if test "$cross_compiling" != yes; then
3163 if { ac_try='./$ac_file'
81ecdfbb
RW
3164 { { case "(($ac_try" in
3165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166 *) ac_try_echo=$ac_try;;
3167esac
3168eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3169$as_echo "$ac_try_echo"; } >&5
3170 (eval "$ac_try") 2>&5
42ecbf5e 3171 ac_status=$?
81ecdfbb
RW
3172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3173 test $ac_status = 0; }; }; then
42ecbf5e
DJ
3174 cross_compiling=no
3175 else
3176 if test "$cross_compiling" = maybe; then
3177 cross_compiling=yes
3178 else
81ecdfbb
RW
3179 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3180$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3181as_fn_error "cannot run C compiled programs.
42ecbf5e 3182If you meant to cross compile, use \`--host'.
81ecdfbb 3183See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e
DJ
3184 fi
3185 fi
3186fi
81ecdfbb
RW
3187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3188$as_echo "yes" >&6; }
42ecbf5e 3189
81ecdfbb 3190rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
42ecbf5e 3191ac_clean_files=$ac_clean_files_save
81ecdfbb 3192# Check that the compiler produces executables we can run. If not, either
42ecbf5e 3193# the compiler is broken, or we cross compile.
81ecdfbb
RW
3194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3195$as_echo_n "checking whether we are cross compiling... " >&6; }
3196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3197$as_echo "$cross_compiling" >&6; }
3198
3199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3200$as_echo_n "checking for suffix of executables... " >&6; }
3201if { { ac_try="$ac_link"
3202case "(($ac_try" in
3203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204 *) ac_try_echo=$ac_try;;
3205esac
3206eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3207$as_echo "$ac_try_echo"; } >&5
3208 (eval "$ac_link") 2>&5
42ecbf5e 3209 ac_status=$?
81ecdfbb
RW
3210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3211 test $ac_status = 0; }; then :
42ecbf5e
DJ
3212 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3213# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3214# work properly (i.e., refer to `conftest.exe'), while it won't with
3215# `rm'.
3216for ac_file in conftest.exe conftest conftest.*; do
3217 test -f "$ac_file" || continue
3218 case $ac_file in
81ecdfbb 3219 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
42ecbf5e 3220 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
42ecbf5e
DJ
3221 break;;
3222 * ) break;;
3223 esac
3224done
3225else
81ecdfbb
RW
3226 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3227$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3228as_fn_error "cannot compute suffix of executables: cannot compile and link
3229See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e 3230fi
42ecbf5e 3231rm -f conftest$ac_cv_exeext
81ecdfbb
RW
3232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3233$as_echo "$ac_cv_exeext" >&6; }
42ecbf5e
DJ
3234
3235rm -f conftest.$ac_ext
3236EXEEXT=$ac_cv_exeext
3237ac_exeext=$EXEEXT
81ecdfbb
RW
3238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3239$as_echo_n "checking for suffix of object files... " >&6; }
3240if test "${ac_cv_objext+set}" = set; then :
3241 $as_echo_n "(cached) " >&6
42ecbf5e 3242else
81ecdfbb 3243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3244/* end confdefs.h. */
3245
3246int
3247main ()
3248{
3249
3250 ;
3251 return 0;
3252}
3253_ACEOF
3254rm -f conftest.o conftest.obj
81ecdfbb
RW
3255if { { ac_try="$ac_compile"
3256case "(($ac_try" in
3257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3258 *) ac_try_echo=$ac_try;;
3259esac
3260eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3261$as_echo "$ac_try_echo"; } >&5
3262 (eval "$ac_compile") 2>&5
3263 ac_status=$?
3264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3265 test $ac_status = 0; }; then :
3266 for ac_file in conftest.o conftest.obj conftest.*; do
3267 test -f "$ac_file" || continue;
42ecbf5e 3268 case $ac_file in
81ecdfbb 3269 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
42ecbf5e
DJ
3270 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3271 break;;
3272 esac
3273done
3274else
81ecdfbb 3275 $as_echo "$as_me: failed program was:" >&5
42ecbf5e
DJ
3276sed 's/^/| /' conftest.$ac_ext >&5
3277
81ecdfbb
RW
3278{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3279$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3280as_fn_error "cannot compute suffix of object files: cannot compile
3281See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e 3282fi
42ecbf5e
DJ
3283rm -f conftest.$ac_cv_objext conftest.$ac_ext
3284fi
81ecdfbb
RW
3285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3286$as_echo "$ac_cv_objext" >&6; }
42ecbf5e
DJ
3287OBJEXT=$ac_cv_objext
3288ac_objext=$OBJEXT
81ecdfbb
RW
3289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3290$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3291if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3292 $as_echo_n "(cached) " >&6
42ecbf5e 3293else
81ecdfbb 3294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3295/* end confdefs.h. */
3296
3297int
3298main ()
3299{
3300#ifndef __GNUC__
3301 choke me
3302#endif
3303
3304 ;
3305 return 0;
3306}
3307_ACEOF
81ecdfbb 3308if ac_fn_c_try_compile "$LINENO"; then :
42ecbf5e
DJ
3309 ac_compiler_gnu=yes
3310else
81ecdfbb 3311 ac_compiler_gnu=no
42ecbf5e 3312fi
81ecdfbb 3313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e
DJ
3314ac_cv_c_compiler_gnu=$ac_compiler_gnu
3315
3316fi
81ecdfbb
RW
3317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3318$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3319if test $ac_compiler_gnu = yes; then
3320 GCC=yes
3321else
3322 GCC=
3323fi
42ecbf5e
DJ
3324ac_test_CFLAGS=${CFLAGS+set}
3325ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
3326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3327$as_echo_n "checking whether $CC accepts -g... " >&6; }
3328if test "${ac_cv_prog_cc_g+set}" = set; then :
3329 $as_echo_n "(cached) " >&6
3330else
3331 ac_save_c_werror_flag=$ac_c_werror_flag
3332 ac_c_werror_flag=yes
3333 ac_cv_prog_cc_g=no
3334 CFLAGS="-g"
3335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3336/* end confdefs.h. */
3337
3338int
3339main ()
3340{
3341
3342 ;
3343 return 0;
3344}
3345_ACEOF
81ecdfbb 3346if ac_fn_c_try_compile "$LINENO"; then :
42ecbf5e
DJ
3347 ac_cv_prog_cc_g=yes
3348else
81ecdfbb
RW
3349 CFLAGS=""
3350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3351/* end confdefs.h. */
3352
3353int
3354main ()
3355{
3356
3357 ;
3358 return 0;
3359}
3360_ACEOF
3361if ac_fn_c_try_compile "$LINENO"; then :
3362
3363else
3364 ac_c_werror_flag=$ac_save_c_werror_flag
3365 CFLAGS="-g"
3366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3367/* end confdefs.h. */
3368
3369int
3370main ()
3371{
42ecbf5e 3372
81ecdfbb
RW
3373 ;
3374 return 0;
3375}
3376_ACEOF
3377if ac_fn_c_try_compile "$LINENO"; then :
3378 ac_cv_prog_cc_g=yes
3379fi
3380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3381fi
3382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e 3383fi
81ecdfbb
RW
3384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3385 ac_c_werror_flag=$ac_save_c_werror_flag
42ecbf5e 3386fi
81ecdfbb
RW
3387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3388$as_echo "$ac_cv_prog_cc_g" >&6; }
42ecbf5e
DJ
3389if test "$ac_test_CFLAGS" = set; then
3390 CFLAGS=$ac_save_CFLAGS
3391elif test $ac_cv_prog_cc_g = yes; then
3392 if test "$GCC" = yes; then
3393 CFLAGS="-g -O2"
3394 else
3395 CFLAGS="-g"
3396 fi
3397else
3398 if test "$GCC" = yes; then
3399 CFLAGS="-O2"
3400 else
3401 CFLAGS=
3402 fi
3403fi
81ecdfbb
RW
3404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3405$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3406if test "${ac_cv_prog_cc_c89+set}" = set; then :
3407 $as_echo_n "(cached) " >&6
42ecbf5e 3408else
81ecdfbb 3409 ac_cv_prog_cc_c89=no
42ecbf5e 3410ac_save_CC=$CC
81ecdfbb 3411cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3412/* end confdefs.h. */
3413#include <stdarg.h>
3414#include <stdio.h>
3415#include <sys/types.h>
3416#include <sys/stat.h>
3417/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3418struct buf { int x; };
3419FILE * (*rcsopen) (struct buf *, struct stat *, int);
3420static char *e (p, i)
3421 char **p;
3422 int i;
3423{
3424 return p[i];
3425}
3426static char *f (char * (*g) (char **, int), char **p, ...)
3427{
3428 char *s;
3429 va_list v;
3430 va_start (v,p);
3431 s = g (p, va_arg (v,int));
3432 va_end (v);
3433 return s;
3434}
3435
3436/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3437 function prototypes and stuff, but not '\xHH' hex character constants.
3438 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3439 as 'x'. The following induces an error, until -std is added to get
42ecbf5e
DJ
3440 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3441 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3442 that's true only with -std. */
42ecbf5e
DJ
3443int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3444
81ecdfbb
RW
3445/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3446 inside strings and character constants. */
3447#define FOO(x) 'x'
3448int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3449
42ecbf5e
DJ
3450int test (int i, double x);
3451struct s1 {int (*f) (int a);};
3452struct s2 {int (*f) (double a);};
3453int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3454int argc;
3455char **argv;
3456int
3457main ()
3458{
3459return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3460 ;
3461 return 0;
3462}
3463_ACEOF
81ecdfbb
RW
3464for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3465 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
42ecbf5e
DJ
3466do
3467 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3468 if ac_fn_c_try_compile "$LINENO"; then :
3469 ac_cv_prog_cc_c89=$ac_arg
42ecbf5e 3470fi
81ecdfbb
RW
3471rm -f core conftest.err conftest.$ac_objext
3472 test "x$ac_cv_prog_cc_c89" != "xno" && break
42ecbf5e 3473done
81ecdfbb 3474rm -f conftest.$ac_ext
42ecbf5e
DJ
3475CC=$ac_save_CC
3476
3477fi
81ecdfbb
RW
3478# AC_CACHE_VAL
3479case "x$ac_cv_prog_cc_c89" in
3480 x)
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3482$as_echo "none needed" >&6; } ;;
3483 xno)
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3485$as_echo "unsupported" >&6; } ;;
42ecbf5e 3486 *)
81ecdfbb
RW
3487 CC="$CC $ac_cv_prog_cc_c89"
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3489$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
42ecbf5e 3490esac
81ecdfbb 3491if test "x$ac_cv_prog_cc_c89" != xno; then :
42ecbf5e 3492
42ecbf5e
DJ
3493fi
3494
42ecbf5e
DJ
3495ac_ext=c
3496ac_cpp='$CPP $CPPFLAGS'
3497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3499ac_compiler_gnu=$ac_cv_c_compiler_gnu
3500
3501
81ecdfbb
RW
3502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3503$as_echo_n "checking for library containing strerror... " >&6; }
3504if test "${ac_cv_search_strerror+set}" = set; then :
3505 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
3506else
3507 ac_func_search_save_LIBS=$LIBS
81ecdfbb 3508cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3509/* end confdefs.h. */
3510
81ecdfbb
RW
3511/* Override any GCC internal prototype to avoid an error.
3512 Use char because int might match the return type of a GCC
3513 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
3514#ifdef __cplusplus
3515extern "C"
3516#endif
42ecbf5e
DJ
3517char strerror ();
3518int
3519main ()
3520{
81ecdfbb 3521return strerror ();
42ecbf5e
DJ
3522 ;
3523 return 0;
3524}
3525_ACEOF
81ecdfbb
RW
3526for ac_lib in '' cposix; do
3527 if test -z "$ac_lib"; then
3528 ac_res="none required"
3529 else
3530 ac_res=-l$ac_lib
42ecbf5e 3531 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
3532 fi
3533 if ac_fn_c_try_link "$LINENO"; then :
3534 ac_cv_search_strerror=$ac_res
3535fi
3536rm -f core conftest.err conftest.$ac_objext \
3537 conftest$ac_exeext
3538 if test "${ac_cv_search_strerror+set}" = set; then :
3539 break
3540fi
3541done
3542if test "${ac_cv_search_strerror+set}" = set; then :
42ecbf5e 3543
42ecbf5e 3544else
81ecdfbb 3545 ac_cv_search_strerror=no
42ecbf5e 3546fi
81ecdfbb 3547rm conftest.$ac_ext
42ecbf5e
DJ
3548LIBS=$ac_func_search_save_LIBS
3549fi
81ecdfbb
RW
3550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3551$as_echo "$ac_cv_search_strerror" >&6; }
3552ac_res=$ac_cv_search_strerror
3553if test "$ac_res" != no; then :
3554 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e
DJ
3555
3556fi
e5a52504
MM
3557
3558
c4dd807e 3559BFD_VERSION=`${srcdir}/../bfd/configure --version | sed -n -e '1s,.* ,,p'`
81ecdfbb
RW
3560am__api_version='1.11'
3561
e5a52504
MM
3562# Find a good install program. We prefer a C program (faster),
3563# so one script is as good as another. But avoid the broken or
3564# incompatible versions:
3565# SysV /etc/install, /usr/sbin/install
3566# SunOS /usr/etc/install
3567# IRIX /sbin/install
3568# AIX /bin/install
42ecbf5e 3569# AmigaOS /C/install, which installs bootblocks on floppy discs
e5a52504
MM
3570# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3571# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3572# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
42ecbf5e 3573# OS/2's system install, which has a completely different semantic
e5a52504 3574# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 3575# Reject install programs that cannot install multiple files.
81ecdfbb
RW
3576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3577$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5a52504 3578if test -z "$INSTALL"; then
81ecdfbb
RW
3579if test "${ac_cv_path_install+set}" = set; then :
3580 $as_echo_n "(cached) " >&6
e5a52504 3581else
42ecbf5e
DJ
3582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3583for as_dir in $PATH
3584do
3585 IFS=$as_save_IFS
3586 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3587 # Account for people who put trailing slashes in PATH elements.
3588case $as_dir/ in #((
3589 ./ | .// | /[cC]/* | \
42ecbf5e 3590 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 3591 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
42ecbf5e
DJ
3592 /usr/ucb/* ) ;;
3593 *)
3594 # OSF1 and SCO ODT 3.0 have their own names for install.
3595 # Don't use installbsd from OSF since it installs stuff as root
3596 # by default.
3597 for ac_prog in ginstall scoinst install; do
3598 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 3599 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
252b5132 3600 if test $ac_prog = install &&
42ecbf5e 3601 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
3602 # AIX install. It has an incompatible calling convention.
3603 :
42ecbf5e
DJ
3604 elif test $ac_prog = install &&
3605 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3606 # program-specific install script used by HP pwplus--don't use.
3607 :
252b5132 3608 else
58c85be7
RW
3609 rm -rf conftest.one conftest.two conftest.dir
3610 echo one > conftest.one
3611 echo two > conftest.two
3612 mkdir conftest.dir
3613 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3614 test -s conftest.one && test -s conftest.two &&
3615 test -s conftest.dir/conftest.one &&
3616 test -s conftest.dir/conftest.two
3617 then
3618 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3619 break 3
3620 fi
252b5132
RH
3621 fi
3622 fi
3623 done
42ecbf5e
DJ
3624 done
3625 ;;
3626esac
81ecdfbb
RW
3627
3628 done
3629IFS=$as_save_IFS
42ecbf5e 3630
58c85be7 3631rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
3632
3633fi
3634 if test "${ac_cv_path_install+set}" = set; then
42ecbf5e 3635 INSTALL=$ac_cv_path_install
252b5132 3636 else
58c85be7
RW
3637 # As a last resort, use the slow shell script. Don't cache a
3638 # value for INSTALL within a source directory, because that will
252b5132 3639 # break other packages using the cache if that directory is
58c85be7 3640 # removed, or if the value is a relative name.
42ecbf5e 3641 INSTALL=$ac_install_sh
252b5132
RH
3642 fi
3643fi
81ecdfbb
RW
3644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3645$as_echo "$INSTALL" >&6; }
252b5132
RH
3646
3647# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3648# It thinks the first close brace ends the variable substitution.
3649test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3650
42ecbf5e 3651test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
3652
3653test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3654
81ecdfbb
RW
3655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3656$as_echo_n "checking whether build environment is sane... " >&6; }
252b5132
RH
3657# Just in case
3658sleep 1
42ecbf5e 3659echo timestamp > conftest.file
81ecdfbb
RW
3660# Reject unsafe characters in $srcdir or the absolute working directory
3661# name. Accept space and tab only in the latter.
3662am_lf='
3663'
3664case `pwd` in
3665 *[\\\"\#\$\&\'\`$am_lf]*)
3666 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3667esac
3668case $srcdir in
3669 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3670 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3671esac
3672
252b5132
RH
3673# Do `set' in a subshell so we don't clobber the current shell's
3674# arguments. Must try -L first in case configure is actually a
3675# symlink; some systems play weird games with the mod time of symlinks
3676# (eg FreeBSD returns the mod time of the symlink's containing
3677# directory).
3678if (
81ecdfbb 3679 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
252b5132
RH
3680 if test "$*" = "X"; then
3681 # -L didn't work.
81ecdfbb 3682 set X `ls -t "$srcdir/configure" conftest.file`
252b5132 3683 fi
42ecbf5e
DJ
3684 rm -f conftest.file
3685 if test "$*" != "X $srcdir/configure conftest.file" \
3686 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
3687
3688 # If neither matched, then we have a broken ls. This can happen
3689 # if, for instance, CONFIG_SHELL is bash and it inherits a
3690 # broken ls alias from the environment. This has actually
3691 # happened. Such a system could not be considered "sane".
81ecdfbb
RW
3692 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3693alias in your environment" "$LINENO" 5
252b5132
RH
3694 fi
3695
42ecbf5e 3696 test "$2" = conftest.file
252b5132
RH
3697 )
3698then
3699 # Ok.
3700 :
3701else
81ecdfbb
RW
3702 as_fn_error "newly created file is older than distributed files!
3703Check your system clock" "$LINENO" 5
252b5132 3704fi
81ecdfbb
RW
3705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3706$as_echo "yes" >&6; }
252b5132 3707test "$program_prefix" != NONE &&
81ecdfbb 3708 program_transform_name="s&^&$program_prefix&;$program_transform_name"
252b5132
RH
3709# Use a double $ so make ignores it.
3710test "$program_suffix" != NONE &&
81ecdfbb
RW
3711 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3712# Double any \ or $.
42ecbf5e 3713# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
3714ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3715program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
42ecbf5e
DJ
3716
3717# expand $ac_aux_dir to an absolute path
3718am_aux_dir=`cd $ac_aux_dir && pwd`
3719
81ecdfbb
RW
3720if test x"${MISSING+set}" != xset; then
3721 case $am_aux_dir in
3722 *\ * | *\ *)
3723 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3724 *)
3725 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3726 esac
3727fi
42ecbf5e
DJ
3728# Use eval to expand $SHELL
3729if eval "$MISSING --run true"; then
3730 am_missing_run="$MISSING --run "
3731else
3732 am_missing_run=
81ecdfbb
RW
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3734$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3735fi
3736
3737if test x"${install_sh}" != xset; then
3738 case $am_aux_dir in
3739 *\ * | *\ *)
3740 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3741 *)
3742 install_sh="\${SHELL} $am_aux_dir/install-sh"
3743 esac
3744fi
3745
3746# Installed binaries are usually stripped using `strip' when the user
3747# run `make install-strip'. However `strip' might not be the right
3748# tool to use in cross-compilation environments, therefore Automake
3749# will honor the `STRIP' environment variable to overrule this program.
3750if test "$cross_compiling" != no; then
3751 if test -n "$ac_tool_prefix"; then
3752 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3753set dummy ${ac_tool_prefix}strip; ac_word=$2
3754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3755$as_echo_n "checking for $ac_word... " >&6; }
3756if test "${ac_cv_prog_STRIP+set}" = set; then :
3757 $as_echo_n "(cached) " >&6
3758else
3759 if test -n "$STRIP"; then
3760 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3761else
3762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3763for as_dir in $PATH
3764do
3765 IFS=$as_save_IFS
3766 test -z "$as_dir" && as_dir=.
3767 for ac_exec_ext in '' $ac_executable_extensions; do
3768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3769 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3771 break 2
3772 fi
3773done
3774 done
3775IFS=$as_save_IFS
3776
3777fi
3778fi
3779STRIP=$ac_cv_prog_STRIP
3780if test -n "$STRIP"; then
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3782$as_echo "$STRIP" >&6; }
3783else
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3785$as_echo "no" >&6; }
3786fi
3787
3788
3789fi
3790if test -z "$ac_cv_prog_STRIP"; then
3791 ac_ct_STRIP=$STRIP
3792 # Extract the first word of "strip", so it can be a program name with args.
3793set dummy strip; ac_word=$2
3794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3795$as_echo_n "checking for $ac_word... " >&6; }
3796if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3797 $as_echo_n "(cached) " >&6
3798else
3799 if test -n "$ac_ct_STRIP"; then
3800 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3801else
3802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3803for as_dir in $PATH
3804do
3805 IFS=$as_save_IFS
3806 test -z "$as_dir" && as_dir=.
3807 for ac_exec_ext in '' $ac_executable_extensions; do
3808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3809 ac_cv_prog_ac_ct_STRIP="strip"
3810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3811 break 2
3812 fi
3813done
3814 done
3815IFS=$as_save_IFS
3816
3817fi
3818fi
3819ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3820if test -n "$ac_ct_STRIP"; then
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3822$as_echo "$ac_ct_STRIP" >&6; }
3823else
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3825$as_echo "no" >&6; }
3826fi
3827
3828 if test "x$ac_ct_STRIP" = x; then
3829 STRIP=":"
3830 else
3831 case $cross_compiling:$ac_tool_warned in
3832yes:)
3833{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3834$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3835ac_tool_warned=yes ;;
3836esac
3837 STRIP=$ac_ct_STRIP
3838 fi
3839else
3840 STRIP="$ac_cv_prog_STRIP"
3841fi
3842
3843fi
3844INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3845
3846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3847$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3848if test -z "$MKDIR_P"; then
3849 if test "${ac_cv_path_mkdir+set}" = set; then :
3850 $as_echo_n "(cached) " >&6
3851else
3852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3854do
3855 IFS=$as_save_IFS
3856 test -z "$as_dir" && as_dir=.
3857 for ac_prog in mkdir gmkdir; do
3858 for ac_exec_ext in '' $ac_executable_extensions; do
3859 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3860 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3861 'mkdir (GNU coreutils) '* | \
3862 'mkdir (coreutils) '* | \
3863 'mkdir (fileutils) '4.1*)
3864 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3865 break 3;;
3866 esac
3867 done
3868 done
42ecbf5e 3869 done
81ecdfbb
RW
3870IFS=$as_save_IFS
3871
3872fi
3873
3874 if test "${ac_cv_path_mkdir+set}" = set; then
3875 MKDIR_P="$ac_cv_path_mkdir -p"
42ecbf5e 3876 else
81ecdfbb
RW
3877 # As a last resort, use the slow shell script. Don't cache a
3878 # value for MKDIR_P within a source directory, because that will
3879 # break other packages using the cache if that directory is
3880 # removed, or if the value is a relative name.
3881 test -d ./--version && rmdir ./--version
3882 MKDIR_P="$ac_install_sh -d"
42ecbf5e
DJ
3883 fi
3884fi
81ecdfbb
RW
3885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3886$as_echo "$MKDIR_P" >&6; }
3887
3888mkdir_p="$MKDIR_P"
3889case $mkdir_p in
3890 [\\/$]* | ?:[\\/]*) ;;
3891 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3892esac
42ecbf5e
DJ
3893
3894for ac_prog in gawk mawk nawk awk
3895do
3896 # Extract the first word of "$ac_prog", so it can be a program name with args.
3897set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
3898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3899$as_echo_n "checking for $ac_word... " >&6; }
3900if test "${ac_cv_prog_AWK+set}" = set; then :
3901 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
3902else
3903 if test -n "$AWK"; then
3904 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3905else
3906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907for as_dir in $PATH
3908do
3909 IFS=$as_save_IFS
3910 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3911 for ac_exec_ext in '' $ac_executable_extensions; do
3912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 3913 ac_cv_prog_AWK="$ac_prog"
81ecdfbb 3914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
3915 break 2
3916 fi
3917done
81ecdfbb
RW
3918 done
3919IFS=$as_save_IFS
42ecbf5e
DJ
3920
3921fi
3922fi
3923AWK=$ac_cv_prog_AWK
3924if test -n "$AWK"; then
81ecdfbb
RW
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3926$as_echo "$AWK" >&6; }
42ecbf5e 3927else
81ecdfbb
RW
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3929$as_echo "no" >&6; }
42ecbf5e 3930fi
252b5132 3931
81ecdfbb 3932
42ecbf5e
DJ
3933 test -n "$AWK" && break
3934done
252b5132 3935
81ecdfbb
RW
3936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3937$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3938set x ${MAKE-make}
3939ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3940if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3941 $as_echo_n "(cached) " >&6
252b5132 3942else
42ecbf5e 3943 cat >conftest.make <<\_ACEOF
81ecdfbb 3944SHELL = /bin/sh
252b5132 3945all:
81ecdfbb 3946 @echo '@@@%%%=$(MAKE)=@@@%%%'
42ecbf5e 3947_ACEOF
252b5132 3948# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
81ecdfbb
RW
3949case `${MAKE-make} -f conftest.make 2>/dev/null` in
3950 *@@@%%%=?*=@@@%%%*)
3951 eval ac_cv_prog_make_${ac_make}_set=yes;;
3952 *)
3953 eval ac_cv_prog_make_${ac_make}_set=no;;
3954esac
42ecbf5e 3955rm -f conftest.make
252b5132 3956fi
81ecdfbb
RW
3957if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3959$as_echo "yes" >&6; }
252b5132
RH
3960 SET_MAKE=
3961else
81ecdfbb
RW
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3963$as_echo "no" >&6; }
252b5132
RH
3964 SET_MAKE="MAKE=${MAKE-make}"
3965fi
3966
42ecbf5e
DJ
3967rm -rf .tst 2>/dev/null
3968mkdir .tst 2>/dev/null
3969if test -d .tst; then
3970 am__leading_dot=.
3971else
3972 am__leading_dot=_
3973fi
3974rmdir .tst 2>/dev/null
3975
3976DEPDIR="${am__leading_dot}deps"
3977
81ecdfbb 3978ac_config_commands="$ac_config_commands depfiles"
42ecbf5e
DJ
3979
3980
3981am_make=${MAKE-make}
3982cat > confinc << 'END'
3983am__doit:
81ecdfbb 3984 @echo this is the am__doit target
42ecbf5e
DJ
3985.PHONY: am__doit
3986END
3987# If we don't find an include directive, just comment out the code.
81ecdfbb
RW
3988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3989$as_echo_n "checking for style of include used by $am_make... " >&6; }
42ecbf5e
DJ
3990am__include="#"
3991am__quote=
3992_am_result=none
3993# First try GNU make style include.
3994echo "include confinc" > confmf
81ecdfbb
RW
3995# Ignore all kinds of additional output from `make'.
3996case `$am_make -s -f confmf 2> /dev/null` in #(
3997*the\ am__doit\ target*)
3998 am__include=include
3999 am__quote=
4000 _am_result=GNU
4001 ;;
4002esac
42ecbf5e
DJ
4003# Now try BSD make style include.
4004if test "$am__include" = "#"; then
4005 echo '.include "confinc"' > confmf
81ecdfbb
RW
4006 case `$am_make -s -f confmf 2> /dev/null` in #(
4007 *the\ am__doit\ target*)
4008 am__include=.include
4009 am__quote="\""
4010 _am_result=BSD
4011 ;;
4012 esac
42ecbf5e
DJ
4013fi
4014
4015
81ecdfbb
RW
4016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4017$as_echo "$_am_result" >&6; }
42ecbf5e
DJ
4018rm -f confinc confmf
4019
81ecdfbb
RW
4020# Check whether --enable-dependency-tracking was given.
4021if test "${enable_dependency_tracking+set}" = set; then :
4022 enableval=$enable_dependency_tracking;
4023fi
42ecbf5e 4024
42ecbf5e
DJ
4025if test "x$enable_dependency_tracking" != xno; then
4026 am_depcomp="$ac_aux_dir/depcomp"
4027 AMDEPBACKSLASH='\'
4028fi
81ecdfbb 4029 if test "x$enable_dependency_tracking" != xno; then
42ecbf5e
DJ
4030 AMDEP_TRUE=
4031 AMDEP_FALSE='#'
4032else
4033 AMDEP_TRUE='#'
4034 AMDEP_FALSE=
4035fi
4036
e5a52504 4037
81ecdfbb
RW
4038if test "`cd $srcdir && pwd`" != "`pwd`"; then
4039 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4040 # is not polluted with repeated "-I."
4041 am__isrc=' -I$(srcdir)'
4042 # test to see if srcdir already configured
4043 if test -f $srcdir/config.status; then
4044 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4045 fi
42ecbf5e 4046fi
252b5132 4047
42ecbf5e
DJ
4048# test whether we have cygpath
4049if test -z "$CYGPATH_W"; then
4050 if (cygpath --version) >/dev/null 2>/dev/null; then
4051 CYGPATH_W='cygpath -w'
4052 else
4053 CYGPATH_W=echo
4054 fi
252b5132 4055fi
42ecbf5e
DJ
4056
4057
4058# Define the identity of the package.
4059 PACKAGE=ld
4060 VERSION=${BFD_VERSION}
4061
4062
4063cat >>confdefs.h <<_ACEOF
e5a52504 4064#define PACKAGE "$PACKAGE"
42ecbf5e
DJ
4065_ACEOF
4066
252b5132 4067
42ecbf5e 4068cat >>confdefs.h <<_ACEOF
e5a52504 4069#define VERSION "$VERSION"
42ecbf5e
DJ
4070_ACEOF
4071
4072# Some tools Automake needs.
4073
4074ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4075
4076
4077AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4078
4079
4080AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4081
4082
4083AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4084
e5a52504 4085
42ecbf5e 4086MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
e5a52504 4087
42ecbf5e
DJ
4088# We need awk for the "check" target. The system "awk" is bad on
4089# some platforms.
4090# Always define AMTAR for backward compatibility.
4091
4092AMTAR=${AMTAR-"${am_missing_run}tar"}
4093
4094am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4095
4096
4097
4098
4099depcc="$CC" am_compiler_list=
4100
81ecdfbb
RW
4101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4102$as_echo_n "checking dependency style of $depcc... " >&6; }
4103if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4104 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
4105else
4106 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4107 # We make a subdir and do the tests there. Otherwise we can end up
4108 # making bogus files that we don't know about and never remove. For
4109 # instance it was reported that on HP-UX the gcc test will end up
4110 # making a dummy file named `D' -- because `-MD' means `put the output
4111 # in D'.
4112 mkdir conftest.dir
4113 # Copy depcomp to subdir because otherwise we won't find it if we're
4114 # using a relative directory.
4115 cp "$am_depcomp" conftest.dir
4116 cd conftest.dir
4117 # We will build objects and dependencies in a subdirectory because
4118 # it helps to detect inapplicable dependency modes. For instance
4119 # both Tru64's cc and ICC support -MD to output dependencies as a
4120 # side effect of compilation, but ICC will put the dependencies in
4121 # the current directory while Tru64 will put them in the object
4122 # directory.
4123 mkdir sub
4124
4125 am_cv_CC_dependencies_compiler_type=none
4126 if test "$am_compiler_list" = ""; then
4127 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4128 fi
81ecdfbb
RW
4129 am__universal=false
4130 case " $depcc " in #(
4131 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4132 esac
4133
42ecbf5e
DJ
4134 for depmode in $am_compiler_list; do
4135 # Setup a source with many dependencies, because some compilers
4136 # like to wrap large dependency lists on column 80 (with \), and
4137 # we should not choose a depcomp mode which is confused by this.
4138 #
4139 # We need to recreate these files for each test, as the compiler may
4140 # overwrite some of them when testing with obscure command lines.
4141 # This happens at least with the AIX C compiler.
4142 : > sub/conftest.c
4143 for i in 1 2 3 4 5 6; do
4144 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4145 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4146 # Solaris 8's {/usr,}/bin/sh.
4147 touch sub/conftst$i.h
4148 done
4149 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4150
81ecdfbb
RW
4151 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4152 # mode. It turns out that the SunPro C++ compiler does not properly
4153 # handle `-M -o', and we need to detect this. Also, some Intel
4154 # versions had trouble with output in subdirs
4155 am__obj=sub/conftest.${OBJEXT-o}
4156 am__minus_obj="-o $am__obj"
42ecbf5e 4157 case $depmode in
81ecdfbb
RW
4158 gcc)
4159 # This depmode causes a compiler race in universal mode.
4160 test "$am__universal" = false || continue
4161 ;;
42ecbf5e
DJ
4162 nosideeffect)
4163 # after this tag, mechanisms are not by side-effect, so they'll
4164 # only be used when explicitly requested
4165 if test "x$enable_dependency_tracking" = xyes; then
4166 continue
4167 else
4168 break
4169 fi
4170 ;;
81ecdfbb
RW
4171 msvisualcpp | msvcmsys)
4172 # This compiler won't grok `-c -o', but also, the minuso test has
4173 # not run yet. These depmodes are late enough in the game, and
4174 # so weak that their functioning should not be impacted.
4175 am__obj=conftest.${OBJEXT-o}
4176 am__minus_obj=
4177 ;;
42ecbf5e
DJ
4178 none) break ;;
4179 esac
42ecbf5e 4180 if depmode=$depmode \
81ecdfbb 4181 source=sub/conftest.c object=$am__obj \
42ecbf5e 4182 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
81ecdfbb 4183 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
42ecbf5e 4184 >/dev/null 2>conftest.err &&
81ecdfbb 4185 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
42ecbf5e 4186 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
81ecdfbb 4187 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
42ecbf5e
DJ
4188 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4189 # icc doesn't choke on unknown options, it will just issue warnings
4190 # or remarks (even with -Werror). So we grep stderr for any message
4191 # that says an option was ignored or not supported.
4192 # When given -MP, icc 7.0 and 7.1 complain thusly:
4193 # icc: Command line warning: ignoring option '-M'; no argument required
4194 # The diagnosis changed in icc 8.0:
4195 # icc: Command line remark: option '-MP' not supported
4196 if (grep 'ignoring option' conftest.err ||
4197 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4198 am_cv_CC_dependencies_compiler_type=$depmode
4199 break
4200 fi
4201 fi
4202 done
2469cfa2 4203
42ecbf5e
DJ
4204 cd ..
4205 rm -rf conftest.dir
2469cfa2 4206else
42ecbf5e
DJ
4207 am_cv_CC_dependencies_compiler_type=none
4208fi
4209
2469cfa2 4210fi
81ecdfbb
RW
4211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4212$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
42ecbf5e
DJ
4213CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4214
81ecdfbb 4215 if
42ecbf5e
DJ
4216 test "x$enable_dependency_tracking" != xno \
4217 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4218 am__fastdepCC_TRUE=
4219 am__fastdepCC_FALSE='#'
2469cfa2 4220else
42ecbf5e
DJ
4221 am__fastdepCC_TRUE='#'
4222 am__fastdepCC_FALSE=
2469cfa2 4223fi
2469cfa2 4224
2469cfa2 4225
e5a52504 4226
42ecbf5e 4227
64ac50ac
RW
4228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4229$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4230 # Check whether --enable-maintainer-mode was given.
4231if test "${enable_maintainer_mode+set}" = set; then :
4232 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4233else
4234 USE_MAINTAINER_MODE=no
4235fi
4236
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4238$as_echo "$USE_MAINTAINER_MODE" >&6; }
4239 if test $USE_MAINTAINER_MODE = yes; then
4240 MAINTAINER_MODE_TRUE=
4241 MAINTAINER_MODE_FALSE='#'
4242else
4243 MAINTAINER_MODE_TRUE='#'
4244 MAINTAINER_MODE_FALSE=
4245fi
4246
4247 MAINT=$MAINTAINER_MODE_TRUE
4248
4249
4250
d7040cdb 4251
81ecdfbb
RW
4252# Check whether --with-lib-path was given.
4253if test "${with_lib_path+set}" = set; then :
4254 withval=$with_lib_path; LIB_PATH=$withval
4255fi
4256
4257# Check whether --enable-targets was given.
4258if test "${enable_targets+set}" = set; then :
4259 enableval=$enable_targets; case "${enableval}" in
4260 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
ce2cded5
L
4261 ;;
4262 no) enable_targets= ;;
4263 *) enable_targets=$enableval ;;
4264esac
81ecdfbb
RW
4265fi
4266# Check whether --enable-64-bit-bfd was given.
4267if test "${enable_64_bit_bfd+set}" = set; then :
4268 enableval=$enable_64_bit_bfd; case "${enableval}" in
ce2cded5
L
4269 yes) want64=true ;;
4270 no) want64=false ;;
81ecdfbb 4271 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
ce2cded5 4272esac
2469cfa2 4273else
ce2cded5 4274 want64=false
81ecdfbb 4275fi
d7040cdb
SE
4276
4277
81ecdfbb
RW
4278# Check whether --with-sysroot was given.
4279if test "${with_sysroot+set}" = set; then :
4280 withval=$with_sysroot;
ce2cded5
L
4281 case ${with_sysroot} in
4282 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
4283 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4284 esac
d7040cdb 4285
ce2cded5
L
4286 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4287 use_sysroot=yes
d7040cdb 4288
ce2cded5
L
4289 if test "x$prefix" = xNONE; then
4290 test_prefix=/usr/local
4291 else
4292 test_prefix=$prefix
4293 fi
4294 if test "x$exec_prefix" = xNONE; then
4295 test_exec_prefix=$test_prefix
4296 else
4297 test_exec_prefix=$exec_prefix
4298 fi
4299 case ${TARGET_SYSTEM_ROOT} in
4300 "${test_prefix}"|"${test_prefix}/"*|\
4301 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
4302 '${prefix}'|'${prefix}/'*|\
4303 '${exec_prefix}'|'${exec_prefix}/'*)
4304 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4305 TARGET_SYSTEM_ROOT_DEFINE="$t"
4306 ;;
4307 esac
d7040cdb 4308
e5a52504 4309else
d7040cdb 4310
ce2cded5
L
4311 use_sysroot=no
4312 TARGET_SYSTEM_ROOT=
4313 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
d7040cdb 4314
81ecdfbb
RW
4315fi
4316
d7040cdb
SE
4317
4318
4319
4320
4fda8867
NC
4321# Check whether --enable-gold was given.
4322if test "${enable_gold+set}" = set; then :
4323 enableval=$enable_gold; case "${enableval}" in
c7791212 4324 default)
4fda8867
NC
4325 install_as_default=no
4326 installed_linker=ld.bfd
4327 ;;
c7791212 4328 yes|no)
4fda8867
NC
4329 install_as_default=yes
4330 installed_linker=ld.bfd
4331 ;;
4332 *)
4333 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
4334 ;;
4335 esac
4336else
c7791212
NC
4337 install_as_default=yes
4338 installed_linker=ld.bfd
4fda8867
NC
4339fi
4340
4341
4342
4343
81ecdfbb
RW
4344# Check whether --enable-got was given.
4345if test "${enable_got+set}" = set; then :
4346 enableval=$enable_got; case "${enableval}" in
7fb9f789 4347 target | single | negative | multigot) got_handling=$enableval ;;
81ecdfbb 4348 *) as_fn_error "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;;
7fb9f789
NC
4349esac
4350else
4351 got_handling=target
81ecdfbb
RW
4352fi
4353
7fb9f789
NC
4354
4355case "${got_handling}" in
4356 target)
4357
81ecdfbb 4358$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h
7fb9f789
NC
4359 ;;
4360 single)
4361
81ecdfbb 4362$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h
7fb9f789
NC
4363 ;;
4364 negative)
4365
81ecdfbb 4366$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h
7fb9f789
NC
4367 ;;
4368 multigot)
4369
81ecdfbb 4370$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h
7fb9f789 4371 ;;
81ecdfbb 4372 *) as_fn_error "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;;
7fb9f789
NC
4373esac
4374
397841b5
AM
4375ac_ext=c
4376ac_cpp='$CPP $CPPFLAGS'
4377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4379ac_compiler_gnu=$ac_cv_c_compiler_gnu
4380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4381$as_echo_n "checking how to run the C preprocessor... " >&6; }
4382# On Suns, sometimes $CPP names a directory.
4383if test -n "$CPP" && test -d "$CPP"; then
4384 CPP=
ce2cded5 4385fi
397841b5
AM
4386if test -z "$CPP"; then
4387 if test "${ac_cv_prog_CPP+set}" = set; then :
4388 $as_echo_n "(cached) " >&6
4389else
4390 # Double quotes because CPP needs to be expanded
4391 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4392 do
4393 ac_preproc_ok=false
4394for ac_c_preproc_warn_flag in '' yes
4395do
4396 # Use a header file that comes with gcc, so configuring glibc
4397 # with a fresh cross-compiler works.
4398 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4399 # <limits.h> exists even on freestanding compilers.
4400 # On the NeXT, cc -E runs the code through the compiler's parser,
4401 # not just through cpp. "Syntax error" is here to catch this case.
4402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4403/* end confdefs.h. */
4404#ifdef __STDC__
4405# include <limits.h>
4406#else
4407# include <assert.h>
4408#endif
4409 Syntax error
4410_ACEOF
4411if ac_fn_c_try_cpp "$LINENO"; then :
d7040cdb 4412
397841b5
AM
4413else
4414 # Broken: fails on valid input.
4415continue
ce2cded5 4416fi
397841b5 4417rm -f conftest.err conftest.$ac_ext
d7040cdb 4418
397841b5
AM
4419 # OK, works on sane cases. Now check whether nonexistent headers
4420 # can be detected and how.
4421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4422/* end confdefs.h. */
4423#include <ac_nonexistent.h>
4424_ACEOF
4425if ac_fn_c_try_cpp "$LINENO"; then :
4426 # Broken: success on invalid input.
4427continue
4428else
4429 # Passes both tests.
4430ac_preproc_ok=:
4431break
ce2cded5 4432fi
397841b5 4433rm -f conftest.err conftest.$ac_ext
d7040cdb 4434
397841b5
AM
4435done
4436# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4437rm -f conftest.err conftest.$ac_ext
4438if $ac_preproc_ok; then :
4439 break
81ecdfbb
RW
4440fi
4441
397841b5
AM
4442 done
4443 ac_cv_prog_CPP=$CPP
d7040cdb 4444
ce2cded5 4445fi
397841b5
AM
4446 CPP=$ac_cv_prog_CPP
4447else
4448 ac_cv_prog_CPP=$CPP
4449fi
4450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4451$as_echo "$CPP" >&6; }
4452ac_preproc_ok=false
4453for ac_c_preproc_warn_flag in '' yes
4454do
4455 # Use a header file that comes with gcc, so configuring glibc
4456 # with a fresh cross-compiler works.
4457 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4458 # <limits.h> exists even on freestanding compilers.
4459 # On the NeXT, cc -E runs the code through the compiler's parser,
4460 # not just through cpp. "Syntax error" is here to catch this case.
4461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4462/* end confdefs.h. */
4463#ifdef __STDC__
4464# include <limits.h>
4465#else
4466# include <assert.h>
4467#endif
4468 Syntax error
4469_ACEOF
4470if ac_fn_c_try_cpp "$LINENO"; then :
d7040cdb 4471
397841b5
AM
4472else
4473 # Broken: fails on valid input.
4474continue
4475fi
4476rm -f conftest.err conftest.$ac_ext
2469cfa2 4477
397841b5
AM
4478 # OK, works on sane cases. Now check whether nonexistent headers
4479 # can be detected and how.
4480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4481/* end confdefs.h. */
4482#include <ac_nonexistent.h>
4483_ACEOF
4484if ac_fn_c_try_cpp "$LINENO"; then :
4485 # Broken: success on invalid input.
4486continue
4487else
4488 # Passes both tests.
4489ac_preproc_ok=:
4490break
4491fi
4492rm -f conftest.err conftest.$ac_ext
d7040cdb 4493
397841b5
AM
4494done
4495# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4496rm -f conftest.err conftest.$ac_ext
4497if $ac_preproc_ok; then :
d7040cdb 4498
397841b5
AM
4499else
4500 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4501$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4502as_fn_error "C preprocessor \"$CPP\" fails sanity check
4503See \`config.log' for more details." "$LINENO" 5; }
ce2cded5 4504fi
d7040cdb 4505
ce2cded5
L
4506ac_ext=c
4507ac_cpp='$CPP $CPPFLAGS'
4508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4510ac_compiler_gnu=$ac_cv_c_compiler_gnu
397841b5
AM
4511
4512
4513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4514$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4515if test "${ac_cv_path_GREP+set}" = set; then :
81ecdfbb 4516 $as_echo_n "(cached) " >&6
d7040cdb 4517else
397841b5
AM
4518 if test -z "$GREP"; then
4519 ac_path_GREP_found=false
4520 # Loop through the user's path and test for each of PROGNAME-LIST
4521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
d7040cdb
SE
4523do
4524 IFS=$as_save_IFS
4525 test -z "$as_dir" && as_dir=.
397841b5 4526 for ac_prog in grep ggrep; do
81ecdfbb 4527 for ac_exec_ext in '' $ac_executable_extensions; do
397841b5
AM
4528 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4529 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4530# Check for GNU ac_path_GREP and select it if it is found.
4531 # Check for GNU $ac_path_GREP
4532case `"$ac_path_GREP" --version 2>&1` in
4533*GNU*)
4534 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4535*)
4536 ac_count=0
4537 $as_echo_n 0123456789 >"conftest.in"
4538 while :
4539 do
4540 cat "conftest.in" "conftest.in" >"conftest.tmp"
4541 mv "conftest.tmp" "conftest.in"
4542 cp "conftest.in" "conftest.nl"
4543 $as_echo 'GREP' >> "conftest.nl"
4544 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4545 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4546 as_fn_arith $ac_count + 1 && ac_count=$as_val
4547 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4548 # Best one so far, save it but keep looking for a better one
4549 ac_cv_path_GREP="$ac_path_GREP"
4550 ac_path_GREP_max=$ac_count
4551 fi
4552 # 10*(2^10) chars as input seems more than enough
4553 test $ac_count -gt 10 && break
81ecdfbb 4554 done
397841b5
AM
4555 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4556esac
d7040cdb 4557
397841b5
AM
4558 $ac_path_GREP_found && break 3
4559 done
4560 done
4561 done
4562IFS=$as_save_IFS
4563 if test -z "$ac_cv_path_GREP"; then
4564 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4565 fi
d7040cdb 4566else
397841b5 4567 ac_cv_path_GREP=$GREP
d7040cdb 4568fi
d7040cdb 4569
252b5132 4570fi
397841b5
AM
4571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4572$as_echo "$ac_cv_path_GREP" >&6; }
4573 GREP="$ac_cv_path_GREP"
4574
4575
4576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4577$as_echo_n "checking for egrep... " >&6; }
4578if test "${ac_cv_path_EGREP+set}" = set; then :
4579 $as_echo_n "(cached) " >&6
4580else
4581 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4582 then ac_cv_path_EGREP="$GREP -E"
4583 else
4584 if test -z "$EGREP"; then
4585 ac_path_EGREP_found=false
4586 # Loop through the user's path and test for each of PROGNAME-LIST
4587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4588for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4589do
4590 IFS=$as_save_IFS
4591 test -z "$as_dir" && as_dir=.
4592 for ac_prog in egrep; do
4593 for ac_exec_ext in '' $ac_executable_extensions; do
4594 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4595 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4596# Check for GNU ac_path_EGREP and select it if it is found.
4597 # Check for GNU $ac_path_EGREP
4598case `"$ac_path_EGREP" --version 2>&1` in
4599*GNU*)
4600 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4601*)
4602 ac_count=0
4603 $as_echo_n 0123456789 >"conftest.in"
4604 while :
4605 do
4606 cat "conftest.in" "conftest.in" >"conftest.tmp"
4607 mv "conftest.tmp" "conftest.in"
4608 cp "conftest.in" "conftest.nl"
4609 $as_echo 'EGREP' >> "conftest.nl"
4610 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4611 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4612 as_fn_arith $ac_count + 1 && ac_count=$as_val
4613 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4614 # Best one so far, save it but keep looking for a better one
4615 ac_cv_path_EGREP="$ac_path_EGREP"
4616 ac_path_EGREP_max=$ac_count
4617 fi
4618 # 10*(2^10) chars as input seems more than enough
4619 test $ac_count -gt 10 && break
4620 done
4621 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4622esac
4623
4624 $ac_path_EGREP_found && break 3
4625 done
4626 done
4627 done
4628IFS=$as_save_IFS
4629 if test -z "$ac_cv_path_EGREP"; then
4630 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4631 fi
4632else
4633 ac_cv_path_EGREP=$EGREP
4634fi
4635
4636 fi
4637fi
4638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4639$as_echo "$ac_cv_path_EGREP" >&6; }
4640 EGREP="$ac_cv_path_EGREP"
4641
4642
4643
4644GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4645cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4646/* end confdefs.h. */
4647__GNUC__
4648_ACEOF
4649if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4650 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
4651
4652else
4653 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
4654fi
4655rm -f conftest*
4656
4657
4658# Check whether --enable-werror was given.
4659if test "${enable_werror+set}" = set; then :
4660 enableval=$enable_werror; case "${enableval}" in
4661 yes | y) ERROR_ON_WARNING="yes" ;;
4662 no | n) ERROR_ON_WARNING="no" ;;
4663 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
4664 esac
4665fi
4666
4667
4668# Disable -Wformat by default when using gcc on mingw
4669case "${host}" in
4670 *-*-mingw32*)
4671 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4672 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
4673 fi
4674 ;;
4675 *) ;;
4676esac
4677
4678# Enable -Werror by default when using gcc
4679if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4680 ERROR_ON_WARNING=yes
4681fi
4682
4683NO_WERROR=
4684if test "${ERROR_ON_WARNING}" = yes ; then
4685 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
4686 NO_WERROR="-Wno-error"
4687fi
4688
4689if test "${GCC}" = yes ; then
4690 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4691fi
4692
4693# Check whether --enable-build-warnings was given.
4694if test "${enable_build_warnings+set}" = set; then :
4695 enableval=$enable_build_warnings; case "${enableval}" in
4696 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4697 no) if test "${GCC}" = yes ; then
4698 WARN_CFLAGS="-w"
4699 fi;;
4700 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4701 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
4702 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4703 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
4704 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4705esac
4706fi
4707
4708
4709if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4710 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4711fi
4712
4713
4714
4715
4716
44350750
NC
4717
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
4719$as_echo_n "checking for LC_MESSAGES... " >&6; }
4720if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
4721 $as_echo_n "(cached) " >&6
4722else
4723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4724/* end confdefs.h. */
4725#include <locale.h>
4726int
4727main ()
4728{
4729return LC_MESSAGES
4730 ;
4731 return 0;
4732}
4733_ACEOF
4734if ac_fn_c_try_link "$LINENO"; then :
4735 am_cv_val_LC_MESSAGES=yes
4736else
4737 am_cv_val_LC_MESSAGES=no
4738fi
4739rm -f core conftest.err conftest.$ac_objext \
4740 conftest$ac_exeext conftest.$ac_ext
4741fi
4742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
4743$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
4744 if test $am_cv_val_LC_MESSAGES = yes; then
4745
4746$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
4747
4748 fi
4749
4750
397841b5
AM
4751ac_config_headers="$ac_config_headers config.h:config.in"
4752
4753
df7b86aa
NC
4754# PR 14072
4755
4756
397841b5
AM
4757if test -z "$target" ; then
4758 as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
4759fi
4760if test -z "$host" ; then
4761 as_fn_error "Unrecognized host system type; please check config.sub." "$LINENO" 5
4762fi
4763
4764# host-specific stuff:
4765
4766ac_ext=c
4767ac_cpp='$CPP $CPPFLAGS'
4768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4770ac_compiler_gnu=$ac_cv_c_compiler_gnu
4771if test -n "$ac_tool_prefix"; then
4772 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4773set dummy ${ac_tool_prefix}gcc; ac_word=$2
4774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4775$as_echo_n "checking for $ac_word... " >&6; }
4776if test "${ac_cv_prog_CC+set}" = set; then :
4777 $as_echo_n "(cached) " >&6
4778else
4779 if test -n "$CC"; then
4780 ac_cv_prog_CC="$CC" # Let the user override the test.
4781else
4782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783for as_dir in $PATH
4784do
4785 IFS=$as_save_IFS
4786 test -z "$as_dir" && as_dir=.
4787 for ac_exec_ext in '' $ac_executable_extensions; do
4788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4789 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4791 break 2
4792 fi
4793done
4794 done
4795IFS=$as_save_IFS
4796
4797fi
4798fi
4799CC=$ac_cv_prog_CC
4800if test -n "$CC"; then
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4802$as_echo "$CC" >&6; }
4803else
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4805$as_echo "no" >&6; }
4806fi
4807
4808
4809fi
4810if test -z "$ac_cv_prog_CC"; then
4811 ac_ct_CC=$CC
4812 # Extract the first word of "gcc", so it can be a program name with args.
4813set dummy gcc; ac_word=$2
4814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4815$as_echo_n "checking for $ac_word... " >&6; }
81ecdfbb
RW
4816if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4817 $as_echo_n "(cached) " >&6
252b5132 4818else
ce2cded5
L
4819 if test -n "$ac_ct_CC"; then
4820 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 4821else
ce2cded5
L
4822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4823for as_dir in $PATH
4824do
4825 IFS=$as_save_IFS
4826 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4827 for ac_exec_ext in '' $ac_executable_extensions; do
4828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4829 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 4830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4831 break 2
4832 fi
4833done
81ecdfbb
RW
4834 done
4835IFS=$as_save_IFS
4836
252b5132
RH
4837fi
4838fi
ce2cded5
L
4839ac_ct_CC=$ac_cv_prog_ac_ct_CC
4840if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4842$as_echo "$ac_ct_CC" >&6; }
252b5132 4843else
81ecdfbb
RW
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4845$as_echo "no" >&6; }
252b5132 4846fi
ce2cded5 4847
81ecdfbb
RW
4848 if test "x$ac_ct_CC" = x; then
4849 CC=""
4850 else
4851 case $cross_compiling:$ac_tool_warned in
4852yes:)
4853{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4854$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4855ac_tool_warned=yes ;;
4856esac
4857 CC=$ac_ct_CC
4858 fi
252b5132 4859else
ce2cded5 4860 CC="$ac_cv_prog_CC"
252b5132 4861fi
d7040cdb 4862
ce2cded5 4863if test -z "$CC"; then
81ecdfbb
RW
4864 if test -n "$ac_tool_prefix"; then
4865 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ce2cded5 4866set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
4867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4868$as_echo_n "checking for $ac_word... " >&6; }
4869if test "${ac_cv_prog_CC+set}" = set; then :
4870 $as_echo_n "(cached) " >&6
252b5132 4871else
ce2cded5
L
4872 if test -n "$CC"; then
4873 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 4874else
ce2cded5
L
4875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876for as_dir in $PATH
4877do
4878 IFS=$as_save_IFS
4879 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4880 for ac_exec_ext in '' $ac_executable_extensions; do
4881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4882 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4884 break 2
4885 fi
4886done
81ecdfbb
RW
4887 done
4888IFS=$as_save_IFS
ce2cded5 4889
252b5132
RH
4890fi
4891fi
ce2cded5
L
4892CC=$ac_cv_prog_CC
4893if test -n "$CC"; then
81ecdfbb
RW
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4895$as_echo "$CC" >&6; }
ce2cded5 4896else
81ecdfbb
RW
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4898$as_echo "no" >&6; }
ce2cded5
L
4899fi
4900
ce2cded5 4901
81ecdfbb 4902 fi
ce2cded5
L
4903fi
4904if test -z "$CC"; then
4905 # Extract the first word of "cc", so it can be a program name with args.
4906set dummy cc; ac_word=$2
81ecdfbb
RW
4907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4908$as_echo_n "checking for $ac_word... " >&6; }
4909if test "${ac_cv_prog_CC+set}" = set; then :
4910 $as_echo_n "(cached) " >&6
ce2cded5
L
4911else
4912 if test -n "$CC"; then
4913 ac_cv_prog_CC="$CC" # Let the user override the test.
4914else
4915 ac_prog_rejected=no
4916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4917for as_dir in $PATH
4918do
4919 IFS=$as_save_IFS
4920 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4921 for ac_exec_ext in '' $ac_executable_extensions; do
4922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5
L
4923 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4924 ac_prog_rejected=yes
4925 continue
4926 fi
4927 ac_cv_prog_CC="cc"
81ecdfbb 4928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4929 break 2
4930 fi
4931done
81ecdfbb
RW
4932 done
4933IFS=$as_save_IFS
ce2cded5
L
4934
4935if test $ac_prog_rejected = yes; then
4936 # We found a bogon in the path, so make sure we never use it.
4937 set dummy $ac_cv_prog_CC
4938 shift
4939 if test $# != 0; then
4940 # We chose a different compiler from the bogus one.
4941 # However, it has the same basename, so the bogon will be chosen
4942 # first if we set CC to just the basename; use the full file name.
4943 shift
4944 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4945 fi
4946fi
4947fi
4948fi
4949CC=$ac_cv_prog_CC
4950if test -n "$CC"; then
81ecdfbb
RW
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4952$as_echo "$CC" >&6; }
ce2cded5 4953else
81ecdfbb
RW
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4955$as_echo "no" >&6; }
ce2cded5
L
4956fi
4957
81ecdfbb 4958
ce2cded5
L
4959fi
4960if test -z "$CC"; then
d7040cdb 4961 if test -n "$ac_tool_prefix"; then
81ecdfbb 4962 for ac_prog in cl.exe
d7040cdb
SE
4963 do
4964 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4965set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4967$as_echo_n "checking for $ac_word... " >&6; }
4968if test "${ac_cv_prog_CC+set}" = set; then :
4969 $as_echo_n "(cached) " >&6
d7040cdb 4970else
ce2cded5
L
4971 if test -n "$CC"; then
4972 ac_cv_prog_CC="$CC" # Let the user override the test.
d7040cdb
SE
4973else
4974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4975for as_dir in $PATH
4976do
4977 IFS=$as_save_IFS
4978 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4979 for ac_exec_ext in '' $ac_executable_extensions; do
4980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4981 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
4983 break 2
4984 fi
4985done
81ecdfbb
RW
4986 done
4987IFS=$as_save_IFS
d7040cdb
SE
4988
4989fi
4990fi
ce2cded5
L
4991CC=$ac_cv_prog_CC
4992if test -n "$CC"; then
81ecdfbb
RW
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4994$as_echo "$CC" >&6; }
d7040cdb 4995else
81ecdfbb
RW
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4997$as_echo "no" >&6; }
d7040cdb
SE
4998fi
4999
81ecdfbb 5000
ce2cded5 5001 test -n "$CC" && break
d7040cdb
SE
5002 done
5003fi
ce2cded5
L
5004if test -z "$CC"; then
5005 ac_ct_CC=$CC
81ecdfbb 5006 for ac_prog in cl.exe
d7040cdb
SE
5007do
5008 # Extract the first word of "$ac_prog", so it can be a program name with args.
5009set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
5010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5011$as_echo_n "checking for $ac_word... " >&6; }
5012if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5013 $as_echo_n "(cached) " >&6
d7040cdb 5014else
ce2cded5
L
5015 if test -n "$ac_ct_CC"; then
5016 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d7040cdb
SE
5017else
5018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5019for as_dir in $PATH
5020do
5021 IFS=$as_save_IFS
5022 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5023 for ac_exec_ext in '' $ac_executable_extensions; do
5024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 5025 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 5026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
5027 break 2
5028 fi
5029done
81ecdfbb
RW
5030 done
5031IFS=$as_save_IFS
d7040cdb
SE
5032
5033fi
5034fi
ce2cded5
L
5035ac_ct_CC=$ac_cv_prog_ac_ct_CC
5036if test -n "$ac_ct_CC"; then
81ecdfbb
RW
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5038$as_echo "$ac_ct_CC" >&6; }
d7040cdb 5039else
81ecdfbb
RW
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5041$as_echo "no" >&6; }
d7040cdb
SE
5042fi
5043
81ecdfbb 5044
ce2cded5 5045 test -n "$ac_ct_CC" && break
d7040cdb 5046done
d7040cdb 5047
81ecdfbb
RW
5048 if test "x$ac_ct_CC" = x; then
5049 CC=""
5050 else
5051 case $cross_compiling:$ac_tool_warned in
5052yes:)
5053{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5054$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5055ac_tool_warned=yes ;;
5056esac
5057 CC=$ac_ct_CC
5058 fi
d7040cdb
SE
5059fi
5060
d7040cdb 5061fi
d7040cdb
SE
5062
5063
81ecdfbb
RW
5064test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5065$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5066as_fn_error "no acceptable C compiler found in \$PATH
5067See \`config.log' for more details." "$LINENO" 5; }
d7040cdb 5068
ce2cded5 5069# Provide some information about the compiler.
81ecdfbb
RW
5070$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5071set X $ac_compile
5072ac_compiler=$2
5073for ac_option in --version -v -V -qversion; do
5074 { { ac_try="$ac_compiler $ac_option >&5"
5075case "(($ac_try" in
5076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5077 *) ac_try_echo=$ac_try;;
5078esac
5079eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5080$as_echo "$ac_try_echo"; } >&5
5081 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
ce2cded5 5082 ac_status=$?
81ecdfbb
RW
5083 if test -s conftest.err; then
5084 sed '10a\
5085... rest of stderr output deleted ...
5086 10q' conftest.err >conftest.er1
5087 cat conftest.er1 >&5
5088 rm -f conftest.er1 conftest.err
5089 fi
5090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5091 test $ac_status = 0; }
5092done
d7040cdb 5093
81ecdfbb
RW
5094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5095$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5096if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5097 $as_echo_n "(cached) " >&6
d7040cdb 5098else
81ecdfbb 5099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 5100/* end confdefs.h. */
d7040cdb 5101
ce2cded5
L
5102int
5103main ()
5104{
5105#ifndef __GNUC__
5106 choke me
5107#endif
5108
5109 ;
5110 return 0;
5111}
5112_ACEOF
81ecdfbb 5113if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5 5114 ac_compiler_gnu=yes
d7040cdb 5115else
81ecdfbb 5116 ac_compiler_gnu=no
d7040cdb 5117fi
81ecdfbb 5118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce2cded5 5119ac_cv_c_compiler_gnu=$ac_compiler_gnu
d7040cdb 5120
ce2cded5 5121fi
81ecdfbb
RW
5122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5123$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5124if test $ac_compiler_gnu = yes; then
5125 GCC=yes
5126else
5127 GCC=
5128fi
ce2cded5
L
5129ac_test_CFLAGS=${CFLAGS+set}
5130ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
5131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5132$as_echo_n "checking whether $CC accepts -g... " >&6; }
5133if test "${ac_cv_prog_cc_g+set}" = set; then :
5134 $as_echo_n "(cached) " >&6
5135else
5136 ac_save_c_werror_flag=$ac_c_werror_flag
5137 ac_c_werror_flag=yes
5138 ac_cv_prog_cc_g=no
5139 CFLAGS="-g"
5140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 5141/* end confdefs.h. */
d7040cdb 5142
ce2cded5
L
5143int
5144main ()
5145{
d7040cdb 5146
ce2cded5
L
5147 ;
5148 return 0;
5149}
5150_ACEOF
81ecdfbb 5151if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5
L
5152 ac_cv_prog_cc_g=yes
5153else
81ecdfbb
RW
5154 CFLAGS=""
5155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5156/* end confdefs.h. */
5157
5158int
5159main ()
5160{
5161
5162 ;
5163 return 0;
5164}
5165_ACEOF
5166if ac_fn_c_try_compile "$LINENO"; then :
5167
5168else
5169 ac_c_werror_flag=$ac_save_c_werror_flag
5170 CFLAGS="-g"
5171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5172/* end confdefs.h. */
5173
5174int
5175main ()
5176{
d7040cdb 5177
81ecdfbb
RW
5178 ;
5179 return 0;
5180}
5181_ACEOF
5182if ac_fn_c_try_compile "$LINENO"; then :
5183 ac_cv_prog_cc_g=yes
5184fi
5185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5186fi
5187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 5188fi
81ecdfbb
RW
5189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5190 ac_c_werror_flag=$ac_save_c_werror_flag
ce2cded5 5191fi
81ecdfbb
RW
5192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5193$as_echo "$ac_cv_prog_cc_g" >&6; }
ce2cded5
L
5194if test "$ac_test_CFLAGS" = set; then
5195 CFLAGS=$ac_save_CFLAGS
5196elif test $ac_cv_prog_cc_g = yes; then
5197 if test "$GCC" = yes; then
5198 CFLAGS="-g -O2"
5199 else
5200 CFLAGS="-g"
5201 fi
d7040cdb 5202else
ce2cded5
L
5203 if test "$GCC" = yes; then
5204 CFLAGS="-O2"
5205 else
5206 CFLAGS=
5207 fi
d7040cdb 5208fi
81ecdfbb
RW
5209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5210$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5211if test "${ac_cv_prog_cc_c89+set}" = set; then :
5212 $as_echo_n "(cached) " >&6
d7040cdb 5213else
81ecdfbb 5214 ac_cv_prog_cc_c89=no
ce2cded5 5215ac_save_CC=$CC
81ecdfbb 5216cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
5217/* end confdefs.h. */
5218#include <stdarg.h>
5219#include <stdio.h>
5220#include <sys/types.h>
5221#include <sys/stat.h>
5222/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5223struct buf { int x; };
5224FILE * (*rcsopen) (struct buf *, struct stat *, int);
5225static char *e (p, i)
5226 char **p;
5227 int i;
5228{
5229 return p[i];
5230}
5231static char *f (char * (*g) (char **, int), char **p, ...)
5232{
5233 char *s;
5234 va_list v;
5235 va_start (v,p);
5236 s = g (p, va_arg (v,int));
5237 va_end (v);
5238 return s;
5239}
d7040cdb 5240
ce2cded5
L
5241/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5242 function prototypes and stuff, but not '\xHH' hex character constants.
5243 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 5244 as 'x'. The following induces an error, until -std is added to get
ce2cded5
L
5245 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5246 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 5247 that's true only with -std. */
ce2cded5 5248int osf4_cc_array ['\x00' == 0 ? 1 : -1];
d7040cdb 5249
81ecdfbb
RW
5250/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5251 inside strings and character constants. */
5252#define FOO(x) 'x'
5253int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5254
ce2cded5
L
5255int test (int i, double x);
5256struct s1 {int (*f) (int a);};
5257struct s2 {int (*f) (double a);};
5258int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5259int argc;
5260char **argv;
5261int
5262main ()
5263{
5264return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5265 ;
5266 return 0;
5267}
5268_ACEOF
81ecdfbb
RW
5269for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5270 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ce2cded5
L
5271do
5272 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
5273 if ac_fn_c_try_compile "$LINENO"; then :
5274 ac_cv_prog_cc_c89=$ac_arg
ce2cded5 5275fi
81ecdfbb
RW
5276rm -f core conftest.err conftest.$ac_objext
5277 test "x$ac_cv_prog_cc_c89" != "xno" && break
ce2cded5 5278done
81ecdfbb 5279rm -f conftest.$ac_ext
ce2cded5 5280CC=$ac_save_CC
d7040cdb 5281
ce2cded5 5282fi
81ecdfbb
RW
5283# AC_CACHE_VAL
5284case "x$ac_cv_prog_cc_c89" in
5285 x)
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5287$as_echo "none needed" >&6; } ;;
5288 xno)
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5290$as_echo "unsupported" >&6; } ;;
ce2cded5 5291 *)
81ecdfbb
RW
5292 CC="$CC $ac_cv_prog_cc_c89"
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5294$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
d7040cdb 5295esac
81ecdfbb 5296if test "x$ac_cv_prog_cc_c89" != xno; then :
d7040cdb 5297
ce2cded5 5298fi
d7040cdb 5299
ce2cded5
L
5300ac_ext=c
5301ac_cpp='$CPP $CPPFLAGS'
5302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5304ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 5305
3cb62297
L
5306ac_ext=cpp
5307ac_cpp='$CXXCPP $CPPFLAGS'
5308ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5309ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5310ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5311if test -z "$CXX"; then
5312 if test -n "$CCC"; then
5313 CXX=$CCC
5314 else
5315 if test -n "$ac_tool_prefix"; then
5316 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5317 do
5318 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5319set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5321$as_echo_n "checking for $ac_word... " >&6; }
5322if test "${ac_cv_prog_CXX+set}" = set; then :
81ecdfbb
RW
5323 $as_echo_n "(cached) " >&6
5324else
3cb62297
L
5325 if test -n "$CXX"; then
5326 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5327else
5328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5329for as_dir in $PATH
5330do
5331 IFS=$as_save_IFS
5332 test -z "$as_dir" && as_dir=.
5333 for ac_exec_ext in '' $ac_executable_extensions; do
5334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5335 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5337 break 2
5338 fi
5339done
5340 done
5341IFS=$as_save_IFS
81ecdfbb 5342
3cb62297
L
5343fi
5344fi
5345CXX=$ac_cv_prog_CXX
5346if test -n "$CXX"; then
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5348$as_echo "$CXX" >&6; }
81ecdfbb 5349else
3cb62297
L
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5351$as_echo "no" >&6; }
7357c5b6 5352fi
42ecbf5e 5353
81ecdfbb 5354
3cb62297
L
5355 test -n "$CXX" && break
5356 done
7357c5b6 5357fi
3cb62297
L
5358if test -z "$CXX"; then
5359 ac_ct_CXX=$CXX
5360 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5361do
5362 # Extract the first word of "$ac_prog", so it can be a program name with args.
5363set dummy $ac_prog; ac_word=$2
5364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5365$as_echo_n "checking for $ac_word... " >&6; }
5366if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5367 $as_echo_n "(cached) " >&6
5368else
5369 if test -n "$ac_ct_CXX"; then
5370 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5371else
5372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5373for as_dir in $PATH
5374do
5375 IFS=$as_save_IFS
5376 test -z "$as_dir" && as_dir=.
5377 for ac_exec_ext in '' $ac_executable_extensions; do
5378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5379 ac_cv_prog_ac_ct_CXX="$ac_prog"
5380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5381 break 2
5382 fi
5383done
5384 done
5385IFS=$as_save_IFS
252b5132 5386
3cb62297
L
5387fi
5388fi
5389ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5390if test -n "$ac_ct_CXX"; then
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5392$as_echo "$ac_ct_CXX" >&6; }
5393else
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5395$as_echo "no" >&6; }
7357c5b6 5396fi
252b5132 5397
42ecbf5e 5398
3cb62297
L
5399 test -n "$ac_ct_CXX" && break
5400done
81ecdfbb 5401
3cb62297
L
5402 if test "x$ac_ct_CXX" = x; then
5403 CXX="g++"
5404 else
5405 case $cross_compiling:$ac_tool_warned in
5406yes:)
5407{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5408$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5409ac_tool_warned=yes ;;
5410esac
5411 CXX=$ac_ct_CXX
5412 fi
7357c5b6 5413fi
ac48eca1 5414
3cb62297 5415 fi
7357c5b6 5416fi
3cb62297
L
5417# Provide some information about the compiler.
5418$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5419set X $ac_compile
5420ac_compiler=$2
5421for ac_option in --version -v -V -qversion; do
5422 { { ac_try="$ac_compiler $ac_option >&5"
5423case "(($ac_try" in
5424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5425 *) ac_try_echo=$ac_try;;
5426esac
5427eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5428$as_echo "$ac_try_echo"; } >&5
5429 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5430 ac_status=$?
5431 if test -s conftest.err; then
5432 sed '10a\
5433... rest of stderr output deleted ...
5434 10q' conftest.err >conftest.er1
5435 cat conftest.er1 >&5
5436 rm -f conftest.er1 conftest.err
5437 fi
5438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5439 test $ac_status = 0; }
5440done
d7040cdb 5441
3cb62297
L
5442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5443$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5444if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5445 $as_echo_n "(cached) " >&6
7357c5b6 5446else
81ecdfbb 5447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6 5448/* end confdefs.h. */
d7040cdb 5449
7357c5b6
AM
5450int
5451main ()
5452{
3cb62297
L
5453#ifndef __GNUC__
5454 choke me
5455#endif
5456
5457 ;
81ecdfbb 5458 return 0;
7357c5b6
AM
5459}
5460_ACEOF
3cb62297
L
5461if ac_fn_cxx_try_compile "$LINENO"; then :
5462 ac_compiler_gnu=yes
81ecdfbb 5463else
3cb62297 5464 ac_compiler_gnu=no
7357c5b6 5465fi
3cb62297
L
5466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5467ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
81ecdfbb 5468
7357c5b6 5469fi
3cb62297
L
5470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5471$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5472if test $ac_compiler_gnu = yes; then
5473 GXX=yes
5474else
5475 GXX=
7357c5b6 5476fi
3cb62297
L
5477ac_test_CXXFLAGS=${CXXFLAGS+set}
5478ac_save_CXXFLAGS=$CXXFLAGS
5479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5480$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5481if test "${ac_cv_prog_cxx_g+set}" = set; then :
5482 $as_echo_n "(cached) " >&6
5483else
5484 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5485 ac_cxx_werror_flag=yes
5486 ac_cv_prog_cxx_g=no
5487 CXXFLAGS="-g"
5488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5489/* end confdefs.h. */
252b5132 5490
3cb62297
L
5491int
5492main ()
5493{
252b5132 5494
3cb62297
L
5495 ;
5496 return 0;
5497}
7357c5b6 5498_ACEOF
3cb62297
L
5499if ac_fn_cxx_try_compile "$LINENO"; then :
5500 ac_cv_prog_cxx_g=yes
5501else
5502 CXXFLAGS=""
5503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5504/* end confdefs.h. */
42ecbf5e 5505
3cb62297
L
5506int
5507main ()
5508{
42ecbf5e 5509
3cb62297
L
5510 ;
5511 return 0;
5512}
5513_ACEOF
5514if ac_fn_cxx_try_compile "$LINENO"; then :
42ecbf5e 5515
3cb62297
L
5516else
5517 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5518 CXXFLAGS="-g"
5519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5520/* end confdefs.h. */
42ecbf5e 5521
3cb62297
L
5522int
5523main ()
5524{
42ecbf5e 5525
3cb62297
L
5526 ;
5527 return 0;
5528}
5529_ACEOF
5530if ac_fn_cxx_try_compile "$LINENO"; then :
5531 ac_cv_prog_cxx_g=yes
5532fi
5533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5534fi
5535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5536fi
5537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5538 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5539fi
5540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5541$as_echo "$ac_cv_prog_cxx_g" >&6; }
5542if test "$ac_test_CXXFLAGS" = set; then
5543 CXXFLAGS=$ac_save_CXXFLAGS
5544elif test $ac_cv_prog_cxx_g = yes; then
5545 if test "$GXX" = yes; then
5546 CXXFLAGS="-g -O2"
5547 else
5548 CXXFLAGS="-g"
5549 fi
ce2cded5 5550else
3cb62297
L
5551 if test "$GXX" = yes; then
5552 CXXFLAGS="-O2"
5553 else
5554 CXXFLAGS=
5555 fi
ce2cded5 5556fi
3cb62297
L
5557ac_ext=c
5558ac_cpp='$CPP $CPPFLAGS'
5559ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5560ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5561ac_compiler_gnu=$ac_cv_c_compiler_gnu
42ecbf5e 5562
3cb62297 5563depcc="$CXX" am_compiler_list=
e5a52504 5564
3cb62297
L
5565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5566$as_echo_n "checking dependency style of $depcc... " >&6; }
5567if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5568 $as_echo_n "(cached) " >&6
5569else
5570 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5571 # We make a subdir and do the tests there. Otherwise we can end up
5572 # making bogus files that we don't know about and never remove. For
5573 # instance it was reported that on HP-UX the gcc test will end up
5574 # making a dummy file named `D' -- because `-MD' means `put the output
5575 # in D'.
5576 mkdir conftest.dir
5577 # Copy depcomp to subdir because otherwise we won't find it if we're
5578 # using a relative directory.
5579 cp "$am_depcomp" conftest.dir
5580 cd conftest.dir
5581 # We will build objects and dependencies in a subdirectory because
5582 # it helps to detect inapplicable dependency modes. For instance
5583 # both Tru64's cc and ICC support -MD to output dependencies as a
5584 # side effect of compilation, but ICC will put the dependencies in
5585 # the current directory while Tru64 will put them in the object
5586 # directory.
5587 mkdir sub
7357c5b6 5588
3cb62297
L
5589 am_cv_CXX_dependencies_compiler_type=none
5590 if test "$am_compiler_list" = ""; then
5591 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5592 fi
5593 am__universal=false
5594 case " $depcc " in #(
5595 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5596 esac
d7040cdb 5597
3cb62297
L
5598 for depmode in $am_compiler_list; do
5599 # Setup a source with many dependencies, because some compilers
5600 # like to wrap large dependency lists on column 80 (with \), and
5601 # we should not choose a depcomp mode which is confused by this.
5602 #
5603 # We need to recreate these files for each test, as the compiler may
5604 # overwrite some of them when testing with obscure command lines.
5605 # This happens at least with the AIX C compiler.
5606 : > sub/conftest.c
5607 for i in 1 2 3 4 5 6; do
5608 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5609 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5610 # Solaris 8's {/usr,}/bin/sh.
5611 touch sub/conftst$i.h
5612 done
5613 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
d7040cdb 5614
3cb62297
L
5615 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5616 # mode. It turns out that the SunPro C++ compiler does not properly
5617 # handle `-M -o', and we need to detect this. Also, some Intel
5618 # versions had trouble with output in subdirs
5619 am__obj=sub/conftest.${OBJEXT-o}
5620 am__minus_obj="-o $am__obj"
5621 case $depmode in
5622 gcc)
5623 # This depmode causes a compiler race in universal mode.
5624 test "$am__universal" = false || continue
5625 ;;
5626 nosideeffect)
5627 # after this tag, mechanisms are not by side-effect, so they'll
5628 # only be used when explicitly requested
5629 if test "x$enable_dependency_tracking" = xyes; then
5630 continue
5631 else
5632 break
5633 fi
5634 ;;
5635 msvisualcpp | msvcmsys)
5636 # This compiler won't grok `-c -o', but also, the minuso test has
5637 # not run yet. These depmodes are late enough in the game, and
5638 # so weak that their functioning should not be impacted.
5639 am__obj=conftest.${OBJEXT-o}
5640 am__minus_obj=
5641 ;;
5642 none) break ;;
5643 esac
5644 if depmode=$depmode \
5645 source=sub/conftest.c object=$am__obj \
5646 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5647 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5648 >/dev/null 2>conftest.err &&
5649 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5650 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5651 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5652 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5653 # icc doesn't choke on unknown options, it will just issue warnings
5654 # or remarks (even with -Werror). So we grep stderr for any message
5655 # that says an option was ignored or not supported.
5656 # When given -MP, icc 7.0 and 7.1 complain thusly:
5657 # icc: Command line warning: ignoring option '-M'; no argument required
5658 # The diagnosis changed in icc 8.0:
5659 # icc: Command line remark: option '-MP' not supported
5660 if (grep 'ignoring option' conftest.err ||
5661 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5662 am_cv_CXX_dependencies_compiler_type=$depmode
5663 break
5664 fi
5665 fi
5666 done
d7040cdb 5667
3cb62297
L
5668 cd ..
5669 rm -rf conftest.dir
5670else
5671 am_cv_CXX_dependencies_compiler_type=none
5672fi
d7040cdb 5673
3cb62297
L
5674fi
5675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5676$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5677CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
d7040cdb 5678
3cb62297
L
5679 if
5680 test "x$enable_dependency_tracking" != xno \
5681 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5682 am__fastdepCXX_TRUE=
5683 am__fastdepCXX_FALSE='#'
5684else
5685 am__fastdepCXX_TRUE='#'
5686 am__fastdepCXX_FALSE=
5687fi
d7040cdb 5688
d7040cdb 5689
3cb62297
L
5690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5691$as_echo_n "checking for ANSI C header files... " >&6; }
5692if test "${ac_cv_header_stdc+set}" = set; then :
81ecdfbb 5693 $as_echo_n "(cached) " >&6
ce2cded5 5694else
81ecdfbb 5695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6 5696/* end confdefs.h. */
3cb62297
L
5697#include <stdlib.h>
5698#include <stdarg.h>
5699#include <string.h>
5700#include <float.h>
7357c5b6 5701
7357c5b6
AM
5702int
5703main ()
5704{
5705
5706 ;
5707 return 0;
5708}
5709_ACEOF
81ecdfbb 5710if ac_fn_c_try_compile "$LINENO"; then :
3cb62297 5711 ac_cv_header_stdc=yes
ce2cded5 5712else
3cb62297 5713 ac_cv_header_stdc=no
ce2cded5 5714fi
81ecdfbb 5715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7357c5b6 5716
3cb62297
L
5717if test $ac_cv_header_stdc = yes; then
5718 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5720/* end confdefs.h. */
5721#include <string.h>
7357c5b6 5722
3cb62297
L
5723_ACEOF
5724if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5725 $EGREP "memchr" >/dev/null 2>&1; then :
d053aef8 5726
3cb62297
L
5727else
5728 ac_cv_header_stdc=no
5729fi
5730rm -f conftest*
da2f07f1 5731
3cb62297 5732fi
3388710e 5733
3cb62297
L
5734if test $ac_cv_header_stdc = yes; then
5735 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5737/* end confdefs.h. */
5738#include <stdlib.h>
3388710e 5739
3cb62297
L
5740_ACEOF
5741if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5742 $EGREP "free" >/dev/null 2>&1; then :
3388710e 5743
3cb62297
L
5744else
5745 ac_cv_header_stdc=no
5746fi
5747rm -f conftest*
5748
5749fi
5750
5751if test $ac_cv_header_stdc = yes; then
5752 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5753 if test "$cross_compiling" = yes; then :
5754 :
5755else
5756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5757/* end confdefs.h. */
5758#include <ctype.h>
5759#include <stdlib.h>
5760#if ((' ' & 0x0FF) == 0x020)
5761# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5762# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5763#else
5764# define ISLOWER(c) \
5765 (('a' <= (c) && (c) <= 'i') \
5766 || ('j' <= (c) && (c) <= 'r') \
5767 || ('s' <= (c) && (c) <= 'z'))
5768# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5769#endif
5770
5771#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5772int
5773main ()
5774{
5775 int i;
5776 for (i = 0; i < 256; i++)
5777 if (XOR (islower (i), ISLOWER (i))
5778 || toupper (i) != TOUPPER (i))
5779 return 2;
5780 return 0;
5781}
5782_ACEOF
5783if ac_fn_c_try_run "$LINENO"; then :
5784
5785else
5786 ac_cv_header_stdc=no
5787fi
5788rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5789 conftest.$ac_objext conftest.beam conftest.$ac_ext
5790fi
5791
5792fi
5793fi
5794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5795$as_echo "$ac_cv_header_stdc" >&6; }
5796if test $ac_cv_header_stdc = yes; then
5797
5798$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5799
5800fi
5801
5802# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5803for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5804 inttypes.h stdint.h unistd.h
5805do :
5806 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5807ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5808"
5809eval as_val=\$$as_ac_Header
5810 if test "x$as_val" = x""yes; then :
5811 cat >>confdefs.h <<_ACEOF
5812#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5813_ACEOF
5814
5815fi
5816
5817done
5818
5819
5820
5821 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5822if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5823 MINIX=yes
5824else
5825 MINIX=
5826fi
5827
5828
5829 if test "$MINIX" = yes; then
5830
5831$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5832
5833
5834$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5835
5836
5837$as_echo "#define _MINIX 1" >>confdefs.h
5838
5839 fi
5840
5841
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5843$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5844if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5845 $as_echo_n "(cached) " >&6
5846else
5847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5848/* end confdefs.h. */
5849
5850# define __EXTENSIONS__ 1
5851 $ac_includes_default
5852int
5853main ()
5854{
5855
5856 ;
5857 return 0;
5858}
5859_ACEOF
5860if ac_fn_c_try_compile "$LINENO"; then :
5861 ac_cv_safe_to_define___extensions__=yes
5862else
5863 ac_cv_safe_to_define___extensions__=no
5864fi
5865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5866fi
5867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5868$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5869 test $ac_cv_safe_to_define___extensions__ = yes &&
5870 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5871
5872 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5873
5874 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5875
5876 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5877
5878 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5879
5880
5881
5882
5883
5884# The tests for host and target for $enable_largefile require
5885# canonical names.
5886
5887
5888
5889# As the $enable_largefile decision depends on --enable-plugins we must set it
5890# even in directories otherwise not depending on the $plugins option.
da2f07f1
JK
5891
5892
5893# Check whether --enable-plugins was given.
5894if test "${enable_plugins+set}" = set; then :
5895 enableval=$enable_plugins; case "${enableval}" in
5896 yes | "") plugins=yes ;;
5897 no) plugins=no ;;
5898 *) plugins=yes ;;
5899 esac
5900else
5901 plugins=no
5902fi
5903
5904
5905
5906case "${host}" in
5907 sparc-*-solaris*|i[3-7]86-*-solaris*)
5908 # On native 32bit sparc and ia32 solaris, large-file and procfs support
5909 # are mutually exclusive; and without procfs support, the bfd/ elf module
5910 # cannot provide certain routines such as elfcore_write_prpsinfo
5911 # or elfcore_write_prstatus. So unless the user explicitly requested
5912 # large-file support through the --enable-largefile switch, disable
5913 # large-file support in favor of procfs support.
5914 test "${target}" = "${host}" -a "x$plugins" = xno \
5915 && : ${enable_largefile="no"}
5916 ;;
5917esac
5918
81ecdfbb
RW
5919# Check whether --enable-largefile was given.
5920if test "${enable_largefile+set}" = set; then :
5921 enableval=$enable_largefile;
5922fi
5923
d053aef8
JK
5924if test "$enable_largefile" != no; then
5925
81ecdfbb
RW
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5927$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5928if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5929 $as_echo_n "(cached) " >&6
d053aef8
JK
5930else
5931 ac_cv_sys_largefile_CC=no
5932 if test "$GCC" != yes; then
5933 ac_save_CC=$CC
5934 while :; do
81ecdfbb
RW
5935 # IRIX 6.2 and later do not support large files by default,
5936 # so use the C compiler's -n32 option if that helps.
5937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5938/* end confdefs.h. */
5939#include <sys/types.h>
5940 /* Check that off_t can represent 2**63 - 1 correctly.
5941 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5942 since some C++ compilers masquerading as C compilers
5943 incorrectly reject 9223372036854775807. */
5944#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5945 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5946 && LARGE_OFF_T % 2147483647 == 1)
5947 ? 1 : -1];
5948int
5949main ()
5950{
5951
5952 ;
5953 return 0;
5954}
5955_ACEOF
81ecdfbb 5956 if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 5957 break
d053aef8 5958fi
81ecdfbb
RW
5959rm -f core conftest.err conftest.$ac_objext
5960 CC="$CC -n32"
5961 if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 5962 ac_cv_sys_largefile_CC=' -n32'; break
d053aef8 5963fi
81ecdfbb 5964rm -f core conftest.err conftest.$ac_objext
d053aef8
JK
5965 break
5966 done
5967 CC=$ac_save_CC
5968 rm -f conftest.$ac_ext
5969 fi
5970fi
81ecdfbb
RW
5971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5972$as_echo "$ac_cv_sys_largefile_CC" >&6; }
d053aef8
JK
5973 if test "$ac_cv_sys_largefile_CC" != no; then
5974 CC=$CC$ac_cv_sys_largefile_CC
5975 fi
5976
81ecdfbb
RW
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5978$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5979if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5980 $as_echo_n "(cached) " >&6
d053aef8
JK
5981else
5982 while :; do
81ecdfbb 5983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5984/* end confdefs.h. */
5985#include <sys/types.h>
5986 /* Check that off_t can represent 2**63 - 1 correctly.
5987 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5988 since some C++ compilers masquerading as C compilers
5989 incorrectly reject 9223372036854775807. */
5990#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5991 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5992 && LARGE_OFF_T % 2147483647 == 1)
5993 ? 1 : -1];
5994int
5995main ()
5996{
5997
5998 ;
5999 return 0;
6000}
6001_ACEOF
81ecdfbb
RW
6002if ac_fn_c_try_compile "$LINENO"; then :
6003 ac_cv_sys_file_offset_bits=no; break
d053aef8 6004fi
81ecdfbb
RW
6005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
6007/* end confdefs.h. */
6008#define _FILE_OFFSET_BITS 64
6009#include <sys/types.h>
6010 /* Check that off_t can represent 2**63 - 1 correctly.
6011 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6012 since some C++ compilers masquerading as C compilers
6013 incorrectly reject 9223372036854775807. */
6014#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6015 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6016 && LARGE_OFF_T % 2147483647 == 1)
6017 ? 1 : -1];
6018int
6019main ()
6020{
6021
6022 ;
6023 return 0;
6024}
6025_ACEOF
81ecdfbb 6026if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 6027 ac_cv_sys_file_offset_bits=64; break
d053aef8 6028fi
81ecdfbb
RW
6029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6030 ac_cv_sys_file_offset_bits=unknown
d053aef8
JK
6031 break
6032done
6033fi
81ecdfbb
RW
6034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6035$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6036case $ac_cv_sys_file_offset_bits in #(
6037 no | unknown) ;;
6038 *)
d053aef8
JK
6039cat >>confdefs.h <<_ACEOF
6040#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6041_ACEOF
81ecdfbb
RW
6042;;
6043esac
6044rm -rf conftest*
6045 if test $ac_cv_sys_file_offset_bits = unknown; then
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6047$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6048if test "${ac_cv_sys_large_files+set}" = set; then :
6049 $as_echo_n "(cached) " >&6
d053aef8
JK
6050else
6051 while :; do
81ecdfbb 6052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
6053/* end confdefs.h. */
6054#include <sys/types.h>
6055 /* Check that off_t can represent 2**63 - 1 correctly.
6056 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6057 since some C++ compilers masquerading as C compilers
6058 incorrectly reject 9223372036854775807. */
6059#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6060 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6061 && LARGE_OFF_T % 2147483647 == 1)
6062 ? 1 : -1];
6063int
6064main ()
6065{
6066
6067 ;
6068 return 0;
6069}
6070_ACEOF
81ecdfbb
RW
6071if ac_fn_c_try_compile "$LINENO"; then :
6072 ac_cv_sys_large_files=no; break
d053aef8 6073fi
81ecdfbb
RW
6074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
6076/* end confdefs.h. */
6077#define _LARGE_FILES 1
6078#include <sys/types.h>
6079 /* Check that off_t can represent 2**63 - 1 correctly.
6080 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6081 since some C++ compilers masquerading as C compilers
6082 incorrectly reject 9223372036854775807. */
6083#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6084 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6085 && LARGE_OFF_T % 2147483647 == 1)
6086 ? 1 : -1];
6087int
6088main ()
6089{
6090
6091 ;
6092 return 0;
6093}
6094_ACEOF
81ecdfbb 6095if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 6096 ac_cv_sys_large_files=1; break
d053aef8 6097fi
81ecdfbb
RW
6098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6099 ac_cv_sys_large_files=unknown
d053aef8
JK
6100 break
6101done
6102fi
81ecdfbb
RW
6103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6104$as_echo "$ac_cv_sys_large_files" >&6; }
6105case $ac_cv_sys_large_files in #(
6106 no | unknown) ;;
6107 *)
d053aef8
JK
6108cat >>confdefs.h <<_ACEOF
6109#define _LARGE_FILES $ac_cv_sys_large_files
6110_ACEOF
81ecdfbb
RW
6111;;
6112esac
6113rm -rf conftest*
6114 fi
d053aef8
JK
6115fi
6116
42ecbf5e 6117
42ecbf5e 6118
da2f07f1 6119
b214d478
SE
6120case `pwd` in
6121 *\ * | *\ *)
81ecdfbb
RW
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6123$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
b214d478 6124esac
252b5132 6125
42ecbf5e 6126
d7040cdb 6127
3725885a
RW
6128macro_version='2.2.7a'
6129macro_revision='1.3134'
d7040cdb 6130
d7040cdb
SE
6131
6132
d7040cdb 6133
d7040cdb 6134
42ecbf5e 6135
d7040cdb 6136
252b5132 6137
252b5132 6138
252b5132 6139
252b5132
RH
6140
6141
ce2cded5 6142
b214d478 6143ltmain="$ac_aux_dir/ltmain.sh"
ce2cded5 6144
3725885a
RW
6145# Backslashify metacharacters that are still active within
6146# double-quoted strings.
6147sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6148
6149# Same as above, but do not quote variable references.
6150double_quote_subst='s/\(["`\\]\)/\\\1/g'
6151
6152# Sed substitution to delay expansion of an escaped shell variable in a
6153# double_quote_subst'ed string.
6154delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6155
6156# Sed substitution to delay expansion of an escaped single quote.
6157delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6158
6159# Sed substitution to avoid accidental globbing in evaled expressions
6160no_glob_subst='s/\*/\\\*/g'
6161
6162ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6163ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6164ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6165
6166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6167$as_echo_n "checking how to print strings... " >&6; }
6168# Test print first, because it will be a builtin if present.
6169if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6170 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6171 ECHO='print -r --'
6172elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6173 ECHO='printf %s\n'
6174else
6175 # Use this function as a fallback that always works.
6176 func_fallback_echo ()
6177 {
6178 eval 'cat <<_LTECHO_EOF
6179$1
6180_LTECHO_EOF'
6181 }
6182 ECHO='func_fallback_echo'
6183fi
6184
6185# func_echo_all arg...
6186# Invoke $ECHO with all args, space-separated.
6187func_echo_all ()
6188{
6189 $ECHO ""
6190}
6191
6192case "$ECHO" in
6193 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6194$as_echo "printf" >&6; } ;;
6195 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6196$as_echo "print -r" >&6; } ;;
6197 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6198$as_echo "cat" >&6; } ;;
6199esac
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
81ecdfbb
RW
6214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6215$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6216if test "${ac_cv_path_SED+set}" = set; then :
6217 $as_echo_n "(cached) " >&6
6218else
6219 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6220 for ac_i in 1 2 3 4 5 6 7; do
6221 ac_script="$ac_script$as_nl$ac_script"
6222 done
6223 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6224 { ac_script=; unset ac_script;}
6225 if test -z "$SED"; then
6226 ac_path_SED_found=false
6227 # Loop through the user's path and test for each of PROGNAME-LIST
6228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357c5b6
AM
6229for as_dir in $PATH
6230do
6231 IFS=$as_save_IFS
6232 test -z "$as_dir" && as_dir=.
81ecdfbb 6233 for ac_prog in sed gsed; do
7357c5b6 6234 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb
RW
6235 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6236 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6237# Check for GNU ac_path_SED and select it if it is found.
6238 # Check for GNU $ac_path_SED
6239case `"$ac_path_SED" --version 2>&1` in
6240*GNU*)
6241 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6242*)
6243 ac_count=0
6244 $as_echo_n 0123456789 >"conftest.in"
6245 while :
6246 do
6247 cat "conftest.in" "conftest.in" >"conftest.tmp"
6248 mv "conftest.tmp" "conftest.in"
6249 cp "conftest.in" "conftest.nl"
6250 $as_echo '' >> "conftest.nl"
6251 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6252 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6253 as_fn_arith $ac_count + 1 && ac_count=$as_val
6254 if test $ac_count -gt ${ac_path_SED_max-0}; then
6255 # Best one so far, save it but keep looking for a better one
6256 ac_cv_path_SED="$ac_path_SED"
6257 ac_path_SED_max=$ac_count
6258 fi
6259 # 10*(2^10) chars as input seems more than enough
6260 test $ac_count -gt 10 && break
6261 done
6262 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6263esac
6264
6265 $ac_path_SED_found && break 3
7357c5b6
AM
6266 done
6267 done
81ecdfbb 6268 done
7357c5b6 6269IFS=$as_save_IFS
81ecdfbb
RW
6270 if test -z "$ac_cv_path_SED"; then
6271 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
ce2cded5 6272 fi
81ecdfbb
RW
6273else
6274 ac_cv_path_SED=$SED
7357c5b6 6275fi
20e95c23 6276
81ecdfbb
RW
6277fi
6278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6279$as_echo "$ac_cv_path_SED" >&6; }
6280 SED="$ac_cv_path_SED"
6281 rm -f conftest.sed
20e95c23 6282
7357c5b6
AM
6283test -z "$SED" && SED=sed
6284Xsed="$SED -e 1s/^X//"
20e95c23
DJ
6285
6286
6287
6288
6289
6290
20e95c23 6291
20e95c23 6292
d7040cdb 6293
d7040cdb 6294
7357c5b6 6295
81ecdfbb
RW
6296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6297$as_echo_n "checking for fgrep... " >&6; }
6298if test "${ac_cv_path_FGREP+set}" = set; then :
6299 $as_echo_n "(cached) " >&6
7357c5b6 6300else
81ecdfbb
RW
6301 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6302 then ac_cv_path_FGREP="$GREP -F"
6303 else
6304 if test -z "$FGREP"; then
6305 ac_path_FGREP_found=false
6306 # Loop through the user's path and test for each of PROGNAME-LIST
6307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6308for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6309do
6310 IFS=$as_save_IFS
6311 test -z "$as_dir" && as_dir=.
6312 for ac_prog in fgrep; do
6313 for ac_exec_ext in '' $ac_executable_extensions; do
6314 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6315 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6316# Check for GNU ac_path_FGREP and select it if it is found.
6317 # Check for GNU $ac_path_FGREP
6318case `"$ac_path_FGREP" --version 2>&1` in
6319*GNU*)
6320 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6321*)
6322 ac_count=0
6323 $as_echo_n 0123456789 >"conftest.in"
6324 while :
6325 do
6326 cat "conftest.in" "conftest.in" >"conftest.tmp"
6327 mv "conftest.tmp" "conftest.in"
6328 cp "conftest.in" "conftest.nl"
6329 $as_echo 'FGREP' >> "conftest.nl"
6330 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6331 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6332 as_fn_arith $ac_count + 1 && ac_count=$as_val
6333 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6334 # Best one so far, save it but keep looking for a better one
6335 ac_cv_path_FGREP="$ac_path_FGREP"
6336 ac_path_FGREP_max=$ac_count
7357c5b6 6337 fi
81ecdfbb
RW
6338 # 10*(2^10) chars as input seems more than enough
6339 test $ac_count -gt 10 && break
6340 done
6341 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6342esac
6343
6344 $ac_path_FGREP_found && break 3
6345 done
6346 done
6347 done
6348IFS=$as_save_IFS
6349 if test -z "$ac_cv_path_FGREP"; then
6350 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6351 fi
6352else
6353 ac_cv_path_FGREP=$FGREP
6354fi
6355
6356 fi
20e95c23 6357fi
81ecdfbb
RW
6358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6359$as_echo "$ac_cv_path_FGREP" >&6; }
6360 FGREP="$ac_cv_path_FGREP"
7357c5b6
AM
6361
6362
6363test -z "$GREP" && GREP=grep
6364
d7040cdb
SE
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
20e95c23 6376
ce2cded5 6377
d7040cdb 6378
7357c5b6
AM
6379
6380
6381
6382
81ecdfbb
RW
6383# Check whether --with-gnu-ld was given.
6384if test "${with_gnu_ld+set}" = set; then :
6385 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7357c5b6
AM
6386else
6387 with_gnu_ld=no
81ecdfbb
RW
6388fi
6389
7357c5b6
AM
6390ac_prog=ld
6391if test "$GCC" = yes; then
6392 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6394$as_echo_n "checking for ld used by $CC... " >&6; }
7357c5b6
AM
6395 case $host in
6396 *-*-mingw*)
6397 # gcc leaves a trailing carriage return which upsets mingw
6398 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6399 *)
6400 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6401 esac
6402 case $ac_prog in
6403 # Accept absolute paths.
6404 [\\/]* | ?:[\\/]*)
6405 re_direlt='/[^/][^/]*/\.\./'
6406 # Canonicalize the pathname of ld
6407 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6408 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6409 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6410 done
6411 test -z "$LD" && LD="$ac_prog"
6412 ;;
6413 "")
6414 # If it fails, then pretend we aren't using GCC.
6415 ac_prog=ld
6416 ;;
6417 *)
6418 # If it is relative, then search for the first ld in PATH.
6419 with_gnu_ld=unknown
6420 ;;
6421 esac
6422elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6424$as_echo_n "checking for GNU ld... " >&6; }
7357c5b6 6425else
81ecdfbb
RW
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6427$as_echo_n "checking for non-GNU ld... " >&6; }
ce2cded5 6428fi
81ecdfbb
RW
6429if test "${lt_cv_path_LD+set}" = set; then :
6430 $as_echo_n "(cached) " >&6
ce2cded5 6431else
7357c5b6
AM
6432 if test -z "$LD"; then
6433 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6434 for ac_dir in $PATH; do
6435 IFS="$lt_save_ifs"
6436 test -z "$ac_dir" && ac_dir=.
6437 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6438 lt_cv_path_LD="$ac_dir/$ac_prog"
6439 # Check to see if the program is GNU ld. I'd rather use --version,
6440 # but apparently some variants of GNU ld only accept -v.
6441 # Break only if it was the GNU/non-GNU ld that we prefer.
6442 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6443 *GNU* | *'with BFD'*)
6444 test "$with_gnu_ld" != no && break
6445 ;;
6446 *)
6447 test "$with_gnu_ld" != yes && break
6448 ;;
6449 esac
6450 fi
6451 done
6452 IFS="$lt_save_ifs"
ce2cded5 6453else
7357c5b6 6454 lt_cv_path_LD="$LD" # Let the user override the test with a path.
ce2cded5
L
6455fi
6456fi
7357c5b6
AM
6457
6458LD="$lt_cv_path_LD"
6459if test -n "$LD"; then
81ecdfbb
RW
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6461$as_echo "$LD" >&6; }
ce2cded5 6462else
81ecdfbb
RW
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6464$as_echo "no" >&6; }
ce2cded5 6465fi
81ecdfbb
RW
6466test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6468$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6469if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6470 $as_echo_n "(cached) " >&6
ce2cded5 6471else
7357c5b6
AM
6472 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6473case `$LD -v 2>&1 </dev/null` in
6474*GNU* | *'with BFD'*)
6475 lt_cv_prog_gnu_ld=yes
6476 ;;
6477*)
6478 lt_cv_prog_gnu_ld=no
6479 ;;
6480esac
ce2cded5 6481fi
81ecdfbb
RW
6482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6483$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7357c5b6 6484with_gnu_ld=$lt_cv_prog_gnu_ld
d7040cdb
SE
6485
6486
6487
6488
6489
6490
6491
6492
6493
81ecdfbb
RW
6494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6495$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6496if test "${lt_cv_path_NM+set}" = set; then :
6497 $as_echo_n "(cached) " >&6
ce2cded5 6498else
7357c5b6
AM
6499 if test -n "$NM"; then
6500 # Let the user override the test.
6501 lt_cv_path_NM="$NM"
ce2cded5 6502else
7357c5b6
AM
6503 lt_nm_to_check="${ac_tool_prefix}nm"
6504 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6505 lt_nm_to_check="$lt_nm_to_check nm"
20e95c23 6506 fi
7357c5b6
AM
6507 for lt_tmp_nm in $lt_nm_to_check; do
6508 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6509 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6510 IFS="$lt_save_ifs"
6511 test -z "$ac_dir" && ac_dir=.
6512 tmp_nm="$ac_dir/$lt_tmp_nm"
6513 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6514 # Check to see if the nm accepts a BSD-compat flag.
6515 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6516 # nm: unknown option "B" ignored
6517 # Tru64's nm complains that /dev/null is an invalid object file
6518 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6519 */dev/null* | *'Invalid file or object type'*)
6520 lt_cv_path_NM="$tmp_nm -B"
6521 break
6522 ;;
6523 *)
6524 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6525 */dev/null*)
6526 lt_cv_path_NM="$tmp_nm -p"
6527 break
6528 ;;
6529 *)
6530 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6531 continue # so that we can try to find one that supports BSD flags
6532 ;;
6533 esac
6534 ;;
6535 esac
6536 fi
6537 done
6538 IFS="$lt_save_ifs"
6539 done
6540 : ${lt_cv_path_NM=no}
ce2cded5
L
6541fi
6542fi
81ecdfbb
RW
6543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6544$as_echo "$lt_cv_path_NM" >&6; }
7357c5b6
AM
6545if test "$lt_cv_path_NM" != "no"; then
6546 NM="$lt_cv_path_NM"
ce2cded5 6547else
7357c5b6 6548 # Didn't find any BSD compatible name lister, look for dumpbin.
3725885a
RW
6549 if test -n "$DUMPBIN"; then :
6550 # Let the user override the test.
6551 else
6552 if test -n "$ac_tool_prefix"; then
6553 for ac_prog in dumpbin "link -dump"
7357c5b6
AM
6554 do
6555 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6556set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
6557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6558$as_echo_n "checking for $ac_word... " >&6; }
6559if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6560 $as_echo_n "(cached) " >&6
20e95c23 6561else
7357c5b6
AM
6562 if test -n "$DUMPBIN"; then
6563 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
ce2cded5
L
6564else
6565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6566for as_dir in $PATH
6567do
6568 IFS=$as_save_IFS
6569 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6570 for ac_exec_ext in '' $ac_executable_extensions; do
6571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6572 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
81ecdfbb 6573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6574 break 2
6575 fi
6576done
81ecdfbb
RW
6577 done
6578IFS=$as_save_IFS
d7040cdb 6579
20e95c23 6580fi
ce2cded5 6581fi
7357c5b6
AM
6582DUMPBIN=$ac_cv_prog_DUMPBIN
6583if test -n "$DUMPBIN"; then
81ecdfbb
RW
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6585$as_echo "$DUMPBIN" >&6; }
42ecbf5e 6586else
81ecdfbb
RW
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6588$as_echo "no" >&6; }
42ecbf5e
DJ
6589fi
6590
81ecdfbb 6591
7357c5b6
AM
6592 test -n "$DUMPBIN" && break
6593 done
ce2cded5 6594fi
7357c5b6
AM
6595if test -z "$DUMPBIN"; then
6596 ac_ct_DUMPBIN=$DUMPBIN
3725885a 6597 for ac_prog in dumpbin "link -dump"
7357c5b6
AM
6598do
6599 # Extract the first word of "$ac_prog", so it can be a program name with args.
6600set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
6601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6602$as_echo_n "checking for $ac_word... " >&6; }
6603if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6604 $as_echo_n "(cached) " >&6
42ecbf5e 6605else
7357c5b6
AM
6606 if test -n "$ac_ct_DUMPBIN"; then
6607 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
ce2cded5
L
6608else
6609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6610for as_dir in $PATH
6611do
6612 IFS=$as_save_IFS
6613 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6614 for ac_exec_ext in '' $ac_executable_extensions; do
6615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6616 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
81ecdfbb 6617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6618 break 2
6619 fi
6620done
81ecdfbb
RW
6621 done
6622IFS=$as_save_IFS
d7040cdb 6623
ce2cded5
L
6624fi
6625fi
7357c5b6
AM
6626ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6627if test -n "$ac_ct_DUMPBIN"; then
81ecdfbb
RW
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6629$as_echo "$ac_ct_DUMPBIN" >&6; }
ce2cded5 6630else
81ecdfbb
RW
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6632$as_echo "no" >&6; }
ce2cded5 6633fi
d7040cdb 6634
81ecdfbb 6635
7357c5b6 6636 test -n "$ac_ct_DUMPBIN" && break
ce2cded5 6637done
d7040cdb 6638
81ecdfbb
RW
6639 if test "x$ac_ct_DUMPBIN" = x; then
6640 DUMPBIN=":"
6641 else
6642 case $cross_compiling:$ac_tool_warned in
6643yes:)
6644{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6645$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6646ac_tool_warned=yes ;;
6647esac
6648 DUMPBIN=$ac_ct_DUMPBIN
6649 fi
ce2cded5 6650fi
7357c5b6 6651
3725885a
RW
6652 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6653 *COFF*)
6654 DUMPBIN="$DUMPBIN -symbols"
6655 ;;
6656 *)
6657 DUMPBIN=:
6658 ;;
6659 esac
6660 fi
7357c5b6
AM
6661
6662 if test "$DUMPBIN" != ":"; then
6663 NM="$DUMPBIN"
6664 fi
ce2cded5 6665fi
7357c5b6
AM
6666test -z "$NM" && NM=nm
6667
6668
6669
6670
6671
6672
81ecdfbb
RW
6673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6674$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6675if test "${lt_cv_nm_interface+set}" = set; then :
6676 $as_echo_n "(cached) " >&6
20e95c23 6677else
7357c5b6
AM
6678 lt_cv_nm_interface="BSD nm"
6679 echo "int some_variable = 0;" > conftest.$ac_ext
3725885a 6680 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7357c5b6
AM
6681 (eval "$ac_compile" 2>conftest.err)
6682 cat conftest.err >&5
3725885a 6683 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7357c5b6
AM
6684 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6685 cat conftest.err >&5
3725885a 6686 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7357c5b6
AM
6687 cat conftest.out >&5
6688 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6689 lt_cv_nm_interface="MS dumpbin"
6690 fi
6691 rm -f conftest*
20e95c23 6692fi
81ecdfbb
RW
6693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6694$as_echo "$lt_cv_nm_interface" >&6; }
20e95c23 6695
81ecdfbb
RW
6696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6697$as_echo_n "checking whether ln -s works... " >&6; }
7357c5b6
AM
6698LN_S=$as_ln_s
6699if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6701$as_echo "yes" >&6; }
ce2cded5 6702else
81ecdfbb
RW
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6704$as_echo "no, using $LN_S" >&6; }
d7040cdb 6705fi
20e95c23 6706
7357c5b6 6707# find the maximum length of command line arguments
81ecdfbb
RW
6708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6709$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6710if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6711 $as_echo_n "(cached) " >&6
7357c5b6
AM
6712else
6713 i=0
6714 teststring="ABCD"
20e95c23 6715
7357c5b6
AM
6716 case $build_os in
6717 msdosdjgpp*)
6718 # On DJGPP, this test can blow up pretty badly due to problems in libc
6719 # (any single argument exceeding 2000 bytes causes a buffer overrun
6720 # during glob expansion). Even if it were fixed, the result of this
6721 # check would be larger than it should be.
6722 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6723 ;;
20e95c23 6724
7357c5b6
AM
6725 gnu*)
6726 # Under GNU Hurd, this test is not required because there is
6727 # no limit to the length of command line arguments.
6728 # Libtool will interpret -1 as no limit whatsoever
6729 lt_cv_sys_max_cmd_len=-1;
6730 ;;
20e95c23 6731
b214d478 6732 cygwin* | mingw* | cegcc*)
7357c5b6
AM
6733 # On Win9x/ME, this test blows up -- it succeeds, but takes
6734 # about 5 minutes as the teststring grows exponentially.
6735 # Worse, since 9x/ME are not pre-emptively multitasking,
6736 # you end up with a "frozen" computer, even though with patience
6737 # the test eventually succeeds (with a max line length of 256k).
6738 # Instead, let's just punt: use the minimum linelength reported by
6739 # all of the supported platforms: 8192 (on NT/2K/XP).
6740 lt_cv_sys_max_cmd_len=8192;
6741 ;;
20e95c23 6742
3725885a
RW
6743 mint*)
6744 # On MiNT this can take a long time and run out of memory.
6745 lt_cv_sys_max_cmd_len=8192;
6746 ;;
6747
7357c5b6
AM
6748 amigaos*)
6749 # On AmigaOS with pdksh, this test takes hours, literally.
6750 # So we just punt and use a minimum line length of 8192.
6751 lt_cv_sys_max_cmd_len=8192;
6752 ;;
20e95c23 6753
7357c5b6
AM
6754 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6755 # This has been around since 386BSD, at least. Likely further.
6756 if test -x /sbin/sysctl; then
6757 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6758 elif test -x /usr/sbin/sysctl; then
6759 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6760 else
6761 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6762 fi
6763 # And add a safety zone
6764 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6765 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6766 ;;
d7040cdb 6767
7357c5b6
AM
6768 interix*)
6769 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6770 lt_cv_sys_max_cmd_len=196608
6771 ;;
d7040cdb 6772
7357c5b6
AM
6773 osf*)
6774 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6775 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6776 # nice to cause kernel panics so lets avoid the loop below.
6777 # First set a reasonable default.
6778 lt_cv_sys_max_cmd_len=16384
6779 #
6780 if test -x /sbin/sysconfig; then
6781 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6782 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6783 esac
6784 fi
6785 ;;
6786 sco3.2v5*)
6787 lt_cv_sys_max_cmd_len=102400
6788 ;;
6789 sysv5* | sco5v6* | sysv4.2uw2*)
6790 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6791 if test -n "$kargmax"; then
6792 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6793 else
6794 lt_cv_sys_max_cmd_len=32768
6795 fi
ce2cded5
L
6796 ;;
6797 *)
b214d478
SE
6798 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6799 if test -n "$lt_cv_sys_max_cmd_len"; then
7357c5b6
AM
6800 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6801 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6802 else
6803 # Make teststring a little bigger before we do anything with it.
6804 # a 1K string should be a reasonable start.
6805 for i in 1 2 3 4 5 6 7 8 ; do
6806 teststring=$teststring$teststring
6807 done
6808 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6809 # If test is not a shell built-in, we'll probably end up computing a
6810 # maximum length that is only half of the actual maximum length, but
6811 # we can't tell.
3725885a
RW
6812 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6813 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7357c5b6
AM
6814 test $i != 17 # 1/2 MB should be enough
6815 do
6816 i=`expr $i + 1`
6817 teststring=$teststring$teststring
6818 done
6819 # Only check the string length outside the loop.
6820 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6821 teststring=
6822 # Add a significant safety factor because C++ compilers can tack on
6823 # massive amounts of additional arguments before passing them to the
6824 # linker. It appears as though 1/2 is a usable value.
6825 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6826 fi
ce2cded5
L
6827 ;;
6828 esac
d7040cdb 6829
7357c5b6 6830fi
d7040cdb 6831
7357c5b6 6832if test -n $lt_cv_sys_max_cmd_len ; then
81ecdfbb
RW
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6834$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7357c5b6 6835else
81ecdfbb
RW
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6837$as_echo "none" >&6; }
7357c5b6
AM
6838fi
6839max_cmd_len=$lt_cv_sys_max_cmd_len
d7040cdb
SE
6840
6841
6842
6843
6844
d7040cdb 6845
7357c5b6
AM
6846: ${CP="cp -f"}
6847: ${MV="mv -f"}
6848: ${RM="rm -f"}
d7040cdb 6849
81ecdfbb
RW
6850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6851$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7357c5b6
AM
6852# Try some XSI features
6853xsi_shell=no
6854( _lt_dummy="a/b/c"
6855 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
b214d478
SE
6856 = c,a/b,, \
6857 && eval 'test $(( 1 + 1 )) -eq 2 \
6858 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7357c5b6 6859 && xsi_shell=yes
81ecdfbb
RW
6860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6861$as_echo "$xsi_shell" >&6; }
d7040cdb 6862
d7040cdb 6863
81ecdfbb
RW
6864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6865$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7357c5b6
AM
6866lt_shell_append=no
6867( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6868 >/dev/null 2>&1 \
6869 && lt_shell_append=yes
81ecdfbb
RW
6870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6871$as_echo "$lt_shell_append" >&6; }
d7040cdb
SE
6872
6873
7357c5b6
AM
6874if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6875 lt_unset=unset
6876else
6877 lt_unset=false
6878fi
d7040cdb 6879
d7040cdb 6880
d7040cdb 6881
d7040cdb 6882
d7040cdb 6883
7357c5b6
AM
6884# test EBCDIC or ASCII
6885case `echo X|tr X '\101'` in
6886 A) # ASCII based system
6887 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6888 lt_SP2NL='tr \040 \012'
6889 lt_NL2SP='tr \015\012 \040\040'
6890 ;;
6891 *) # EBCDIC based system
6892 lt_SP2NL='tr \100 \n'
6893 lt_NL2SP='tr \r\n \100\100'
6894 ;;
6895esac
42ecbf5e 6896
d7040cdb
SE
6897
6898
6899
6900
6901
6902
d7040cdb 6903
d7040cdb 6904
81ecdfbb
RW
6905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6906$as_echo_n "checking for $LD option to reload object files... " >&6; }
6907if test "${lt_cv_ld_reload_flag+set}" = set; then :
6908 $as_echo_n "(cached) " >&6
7357c5b6
AM
6909else
6910 lt_cv_ld_reload_flag='-r'
6911fi
81ecdfbb
RW
6912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6913$as_echo "$lt_cv_ld_reload_flag" >&6; }
7357c5b6
AM
6914reload_flag=$lt_cv_ld_reload_flag
6915case $reload_flag in
6916"" | " "*) ;;
6917*) reload_flag=" $reload_flag" ;;
6918esac
6919reload_cmds='$LD$reload_flag -o $output$reload_objs'
6920case $host_os in
6921 darwin*)
6922 if test "$GCC" = yes; then
6923 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6924 else
6925 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6926 fi
6927 ;;
6928esac
d7040cdb 6929
d7040cdb 6930
d7040cdb 6931
d7040cdb 6932
d7040cdb 6933
d7040cdb 6934
d7040cdb 6935
d7040cdb 6936
d7040cdb 6937
b214d478
SE
6938if test -n "$ac_tool_prefix"; then
6939 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6940set dummy ${ac_tool_prefix}objdump; ac_word=$2
81ecdfbb
RW
6941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6942$as_echo_n "checking for $ac_word... " >&6; }
6943if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6944 $as_echo_n "(cached) " >&6
b214d478
SE
6945else
6946 if test -n "$OBJDUMP"; then
6947 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6948else
6949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950for as_dir in $PATH
6951do
6952 IFS=$as_save_IFS
6953 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6954 for ac_exec_ext in '' $ac_executable_extensions; do
6955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 6956 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
81ecdfbb 6957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
6958 break 2
6959 fi
6960done
81ecdfbb
RW
6961 done
6962IFS=$as_save_IFS
b214d478
SE
6963
6964fi
6965fi
6966OBJDUMP=$ac_cv_prog_OBJDUMP
6967if test -n "$OBJDUMP"; then
81ecdfbb
RW
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6969$as_echo "$OBJDUMP" >&6; }
b214d478 6970else
81ecdfbb
RW
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6972$as_echo "no" >&6; }
b214d478
SE
6973fi
6974
81ecdfbb 6975
b214d478
SE
6976fi
6977if test -z "$ac_cv_prog_OBJDUMP"; then
6978 ac_ct_OBJDUMP=$OBJDUMP
6979 # Extract the first word of "objdump", so it can be a program name with args.
6980set dummy objdump; ac_word=$2
81ecdfbb
RW
6981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6982$as_echo_n "checking for $ac_word... " >&6; }
6983if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6984 $as_echo_n "(cached) " >&6
b214d478
SE
6985else
6986 if test -n "$ac_ct_OBJDUMP"; then
6987 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6988else
6989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6990for as_dir in $PATH
6991do
6992 IFS=$as_save_IFS
6993 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6994 for ac_exec_ext in '' $ac_executable_extensions; do
6995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 6996 ac_cv_prog_ac_ct_OBJDUMP="objdump"
81ecdfbb 6997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
6998 break 2
6999 fi
7000done
81ecdfbb
RW
7001 done
7002IFS=$as_save_IFS
b214d478 7003
b214d478
SE
7004fi
7005fi
7006ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7007if test -n "$ac_ct_OBJDUMP"; then
81ecdfbb
RW
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7009$as_echo "$ac_ct_OBJDUMP" >&6; }
b214d478 7010else
81ecdfbb
RW
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7012$as_echo "no" >&6; }
b214d478
SE
7013fi
7014
81ecdfbb
RW
7015 if test "x$ac_ct_OBJDUMP" = x; then
7016 OBJDUMP="false"
7017 else
7018 case $cross_compiling:$ac_tool_warned in
7019yes:)
7020{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7021$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7022ac_tool_warned=yes ;;
7023esac
7024 OBJDUMP=$ac_ct_OBJDUMP
7025 fi
b214d478
SE
7026else
7027 OBJDUMP="$ac_cv_prog_OBJDUMP"
7028fi
7029
7030test -z "$OBJDUMP" && OBJDUMP=objdump
7031
7032
7033
7034
7035
7036
7037
7038
d7040cdb 7039
81ecdfbb
RW
7040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7041$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7042if test "${lt_cv_deplibs_check_method+set}" = set; then :
7043 $as_echo_n "(cached) " >&6
ce2cded5 7044else
7357c5b6
AM
7045 lt_cv_file_magic_cmd='$MAGIC_CMD'
7046lt_cv_file_magic_test_file=
7047lt_cv_deplibs_check_method='unknown'
7048# Need to set the preceding variable on all platforms that support
7049# interlibrary dependencies.
7050# 'none' -- dependencies not supported.
7051# `unknown' -- same as none, but documents that we really don't know.
7052# 'pass_all' -- all dependencies passed with no checks.
7053# 'test_compile' -- check by making test program.
7054# 'file_magic [[regex]]' -- check by looking for files in library path
7055# which responds to the $file_magic_cmd with a given extended regex.
7056# If you have `file' or equivalent on your system and you're not sure
7057# whether `pass_all' will *always* work, you probably want this one.
d7040cdb 7058
ce2cded5 7059case $host_os in
7357c5b6
AM
7060aix[4-9]*)
7061 lt_cv_deplibs_check_method=pass_all
ce2cded5 7062 ;;
7357c5b6
AM
7063
7064beos*)
7065 lt_cv_deplibs_check_method=pass_all
ce2cded5 7066 ;;
7357c5b6
AM
7067
7068bsdi[45]*)
7069 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7070 lt_cv_file_magic_cmd='/usr/bin/file -L'
7071 lt_cv_file_magic_test_file=/shlib/libc.so
ce2cded5 7072 ;;
7357c5b6
AM
7073
7074cygwin*)
7075 # func_win32_libid is a shell function defined in ltmain.sh
7076 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7077 lt_cv_file_magic_cmd='func_win32_libid'
ce2cded5 7078 ;;
7357c5b6
AM
7079
7080mingw* | pw32*)
7081 # Base MSYS/MinGW do not provide the 'file' command needed by
7082 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7083 # unless we find 'file', for example because we are cross-compiling.
3725885a
RW
7084 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7085 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7357c5b6
AM
7086 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7087 lt_cv_file_magic_cmd='func_win32_libid'
7088 else
7089 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7090 lt_cv_file_magic_cmd='$OBJDUMP -f'
7091 fi
ce2cded5 7092 ;;
7357c5b6 7093
3725885a 7094cegcc*)
b214d478
SE
7095 # use the weaker test based on 'objdump'. See mingw*.
7096 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7097 lt_cv_file_magic_cmd='$OBJDUMP -f'
7098 ;;
7099
7357c5b6
AM
7100darwin* | rhapsody*)
7101 lt_cv_deplibs_check_method=pass_all
ce2cded5 7102 ;;
7357c5b6
AM
7103
7104freebsd* | dragonfly*)
7105 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7106 case $host_cpu in
7107 i*86 )
7108 # Not sure whether the presence of OpenBSD here was a mistake.
7109 # Let's accept both of them until this is cleared up.
7110 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7111 lt_cv_file_magic_cmd=/usr/bin/file
7112 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7113 ;;
7114 esac
7115 else
7116 lt_cv_deplibs_check_method=pass_all
7117 fi
ce2cded5 7118 ;;
7357c5b6
AM
7119
7120gnu*)
7121 lt_cv_deplibs_check_method=pass_all
ce2cded5 7122 ;;
7357c5b6 7123
3725885a
RW
7124haiku*)
7125 lt_cv_deplibs_check_method=pass_all
7126 ;;
7127
7357c5b6
AM
7128hpux10.20* | hpux11*)
7129 lt_cv_file_magic_cmd=/usr/bin/file
7130 case $host_cpu in
7131 ia64*)
7132 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7133 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7134 ;;
7135 hppa*64*)
3725885a 7136 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
7137 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7138 ;;
7139 *)
3725885a 7140 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7357c5b6
AM
7141 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7142 ;;
7143 esac
ce2cded5 7144 ;;
d7040cdb 7145
7357c5b6
AM
7146interix[3-9]*)
7147 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7148 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7149 ;;
d7040cdb 7150
7357c5b6
AM
7151irix5* | irix6* | nonstopux*)
7152 case $LD in
7153 *-32|*"-32 ") libmagic=32-bit;;
7154 *-n32|*"-n32 ") libmagic=N32;;
7155 *-64|*"-64 ") libmagic=64-bit;;
7156 *) libmagic=never-match;;
7157 esac
7158 lt_cv_deplibs_check_method=pass_all
7159 ;;
d7040cdb 7160
7357c5b6 7161# This must be Linux ELF.
58e24671 7162linux* | k*bsd*-gnu | kopensolaris*-gnu)
7357c5b6
AM
7163 lt_cv_deplibs_check_method=pass_all
7164 ;;
d7040cdb 7165
7357c5b6
AM
7166netbsd*)
7167 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7168 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7169 else
7170 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7171 fi
ce2cded5 7172 ;;
d7040cdb 7173
7357c5b6
AM
7174newos6*)
7175 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7176 lt_cv_file_magic_cmd=/usr/bin/file
7177 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7178 ;;
d7040cdb 7179
7357c5b6
AM
7180*nto* | *qnx*)
7181 lt_cv_deplibs_check_method=pass_all
7182 ;;
d7040cdb 7183
7357c5b6
AM
7184openbsd*)
7185 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7186 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
ce2cded5 7187 else
7357c5b6 7188 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
ce2cded5 7189 fi
7357c5b6 7190 ;;
d7040cdb 7191
7357c5b6
AM
7192osf3* | osf4* | osf5*)
7193 lt_cv_deplibs_check_method=pass_all
7194 ;;
d7040cdb 7195
7357c5b6
AM
7196rdos*)
7197 lt_cv_deplibs_check_method=pass_all
7198 ;;
d7040cdb 7199
7357c5b6
AM
7200solaris*)
7201 lt_cv_deplibs_check_method=pass_all
7202 ;;
d7040cdb 7203
7357c5b6
AM
7204sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7205 lt_cv_deplibs_check_method=pass_all
7206 ;;
d7040cdb 7207
7357c5b6
AM
7208sysv4 | sysv4.3*)
7209 case $host_vendor in
7210 motorola)
7211 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]'
7212 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7213 ;;
7214 ncr)
7215 lt_cv_deplibs_check_method=pass_all
7216 ;;
7217 sequent)
7218 lt_cv_file_magic_cmd='/bin/file'
7219 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7220 ;;
7221 sni)
7222 lt_cv_file_magic_cmd='/bin/file'
7223 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7224 lt_cv_file_magic_test_file=/lib/libc.so
7225 ;;
7226 siemens)
7227 lt_cv_deplibs_check_method=pass_all
7228 ;;
7229 pc)
7230 lt_cv_deplibs_check_method=pass_all
7231 ;;
7232 esac
7233 ;;
d7040cdb 7234
7357c5b6
AM
7235tpf*)
7236 lt_cv_deplibs_check_method=pass_all
7237 ;;
7238esac
d7040cdb 7239
7357c5b6 7240fi
81ecdfbb
RW
7241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7242$as_echo "$lt_cv_deplibs_check_method" >&6; }
7357c5b6
AM
7243file_magic_cmd=$lt_cv_file_magic_cmd
7244deplibs_check_method=$lt_cv_deplibs_check_method
7245test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb
SE
7246
7247
7248
7357c5b6
AM
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258if test -n "$ac_tool_prefix"; then
7259 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7260set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
7261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7262$as_echo_n "checking for $ac_word... " >&6; }
7263if test "${ac_cv_prog_AR+set}" = set; then :
7264 $as_echo_n "(cached) " >&6
7357c5b6
AM
7265else
7266 if test -n "$AR"; then
7267 ac_cv_prog_AR="$AR" # Let the user override the test.
7268else
7269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7270for as_dir in $PATH
7271do
7272 IFS=$as_save_IFS
7273 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7274 for ac_exec_ext in '' $ac_executable_extensions; do
7275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 7276 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 7277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 7278 break 2
ce2cded5
L
7279 fi
7280done
81ecdfbb
RW
7281 done
7282IFS=$as_save_IFS
d7040cdb 7283
42ecbf5e 7284fi
ce2cded5 7285fi
7357c5b6
AM
7286AR=$ac_cv_prog_AR
7287if test -n "$AR"; then
81ecdfbb
RW
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7289$as_echo "$AR" >&6; }
42ecbf5e 7290else
81ecdfbb
RW
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7292$as_echo "no" >&6; }
42ecbf5e
DJ
7293fi
7294
81ecdfbb 7295
7357c5b6
AM
7296fi
7297if test -z "$ac_cv_prog_AR"; then
7298 ac_ct_AR=$AR
7299 # Extract the first word of "ar", so it can be a program name with args.
7300set dummy ar; ac_word=$2
81ecdfbb
RW
7301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7302$as_echo_n "checking for $ac_word... " >&6; }
7303if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7304 $as_echo_n "(cached) " >&6
7357c5b6
AM
7305else
7306 if test -n "$ac_ct_AR"; then
7307 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7308else
7309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7310for as_dir in $PATH
7311do
7312 IFS=$as_save_IFS
7313 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7314 for ac_exec_ext in '' $ac_executable_extensions; do
7315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 7316 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 7317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
7318 break 2
7319 fi
7320done
81ecdfbb
RW
7321 done
7322IFS=$as_save_IFS
42ecbf5e 7323
7357c5b6
AM
7324fi
7325fi
7326ac_ct_AR=$ac_cv_prog_ac_ct_AR
7327if test -n "$ac_ct_AR"; then
81ecdfbb
RW
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7329$as_echo "$ac_ct_AR" >&6; }
7357c5b6 7330else
81ecdfbb
RW
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7332$as_echo "no" >&6; }
7357c5b6 7333fi
d7040cdb 7334
81ecdfbb
RW
7335 if test "x$ac_ct_AR" = x; then
7336 AR="false"
7337 else
7338 case $cross_compiling:$ac_tool_warned in
7339yes:)
7340{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7341$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7342ac_tool_warned=yes ;;
7343esac
7344 AR=$ac_ct_AR
7345 fi
7357c5b6
AM
7346else
7347 AR="$ac_cv_prog_AR"
7348fi
d7040cdb 7349
7357c5b6
AM
7350test -z "$AR" && AR=ar
7351test -z "$AR_FLAGS" && AR_FLAGS=cru
d7040cdb
SE
7352
7353
7354
20e95c23 7355
d7040cdb 7356
d7040cdb
SE
7357
7358
7359
7360
7361
7362
7357c5b6
AM
7363if test -n "$ac_tool_prefix"; then
7364 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7365set dummy ${ac_tool_prefix}strip; ac_word=$2
81ecdfbb
RW
7366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7367$as_echo_n "checking for $ac_word... " >&6; }
7368if test "${ac_cv_prog_STRIP+set}" = set; then :
7369 $as_echo_n "(cached) " >&6
7357c5b6
AM
7370else
7371 if test -n "$STRIP"; then
7372 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7373else
7374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7375for as_dir in $PATH
7376do
7377 IFS=$as_save_IFS
7378 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7379 for ac_exec_ext in '' $ac_executable_extensions; do
7380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 7381 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
81ecdfbb 7382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 7383 break 2
ce2cded5 7384 fi
7357c5b6 7385done
81ecdfbb
RW
7386 done
7387IFS=$as_save_IFS
d7040cdb 7388
7357c5b6
AM
7389fi
7390fi
7391STRIP=$ac_cv_prog_STRIP
7392if test -n "$STRIP"; then
81ecdfbb
RW
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7394$as_echo "$STRIP" >&6; }
7357c5b6 7395else
81ecdfbb
RW
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7397$as_echo "no" >&6; }
7357c5b6
AM
7398fi
7399
81ecdfbb 7400
7357c5b6
AM
7401fi
7402if test -z "$ac_cv_prog_STRIP"; then
7403 ac_ct_STRIP=$STRIP
7404 # Extract the first word of "strip", so it can be a program name with args.
7405set dummy strip; ac_word=$2
81ecdfbb
RW
7406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7407$as_echo_n "checking for $ac_word... " >&6; }
7408if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7409 $as_echo_n "(cached) " >&6
7357c5b6
AM
7410else
7411 if test -n "$ac_ct_STRIP"; then
7412 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7413else
7414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415for as_dir in $PATH
7416do
7417 IFS=$as_save_IFS
7418 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7419 for ac_exec_ext in '' $ac_executable_extensions; do
7420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 7421 ac_cv_prog_ac_ct_STRIP="strip"
81ecdfbb 7422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 7423 break 2
ce2cded5 7424 fi
7357c5b6 7425done
81ecdfbb
RW
7426 done
7427IFS=$as_save_IFS
d7040cdb 7428
7357c5b6
AM
7429fi
7430fi
7431ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7432if test -n "$ac_ct_STRIP"; then
81ecdfbb
RW
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7434$as_echo "$ac_ct_STRIP" >&6; }
20e95c23 7435else
81ecdfbb
RW
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7437$as_echo "no" >&6; }
7357c5b6 7438fi
d7040cdb 7439
81ecdfbb
RW
7440 if test "x$ac_ct_STRIP" = x; then
7441 STRIP=":"
7442 else
7443 case $cross_compiling:$ac_tool_warned in
7444yes:)
7445{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7446$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7447ac_tool_warned=yes ;;
7448esac
7449 STRIP=$ac_ct_STRIP
7450 fi
7357c5b6
AM
7451else
7452 STRIP="$ac_cv_prog_STRIP"
7453fi
d7040cdb 7454
7357c5b6 7455test -z "$STRIP" && STRIP=:
d7040cdb 7456
d7040cdb
SE
7457
7458
7459
d7040cdb 7460
7357c5b6
AM
7461
7462if test -n "$ac_tool_prefix"; then
7463 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7464set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
7465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7466$as_echo_n "checking for $ac_word... " >&6; }
7467if test "${ac_cv_prog_RANLIB+set}" = set; then :
7468 $as_echo_n "(cached) " >&6
ce2cded5 7469else
7357c5b6
AM
7470 if test -n "$RANLIB"; then
7471 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7472else
7473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7474for as_dir in $PATH
ce2cded5 7475do
7357c5b6
AM
7476 IFS=$as_save_IFS
7477 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7478 for ac_exec_ext in '' $ac_executable_extensions; do
7479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 7480 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 7481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 7482 break 2
ce2cded5 7483 fi
7357c5b6 7484done
81ecdfbb
RW
7485 done
7486IFS=$as_save_IFS
7357c5b6 7487
ce2cded5 7488fi
7357c5b6
AM
7489fi
7490RANLIB=$ac_cv_prog_RANLIB
7491if test -n "$RANLIB"; then
81ecdfbb
RW
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7493$as_echo "$RANLIB" >&6; }
ce2cded5 7494else
81ecdfbb
RW
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7496$as_echo "no" >&6; }
ce2cded5 7497fi
d7040cdb 7498
81ecdfbb 7499
7357c5b6
AM
7500fi
7501if test -z "$ac_cv_prog_RANLIB"; then
7502 ac_ct_RANLIB=$RANLIB
7503 # Extract the first word of "ranlib", so it can be a program name with args.
7504set dummy ranlib; ac_word=$2
81ecdfbb
RW
7505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7506$as_echo_n "checking for $ac_word... " >&6; }
7507if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7508 $as_echo_n "(cached) " >&6
ce2cded5 7509else
7357c5b6
AM
7510 if test -n "$ac_ct_RANLIB"; then
7511 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7512else
7513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7514for as_dir in $PATH
7515do
7516 IFS=$as_save_IFS
7517 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7518 for ac_exec_ext in '' $ac_executable_extensions; do
7519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 7520 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 7521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
7522 break 2
7523 fi
7524done
81ecdfbb
RW
7525 done
7526IFS=$as_save_IFS
7357c5b6 7527
ce2cded5 7528fi
7357c5b6
AM
7529fi
7530ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7531if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7533$as_echo "$ac_ct_RANLIB" >&6; }
ce2cded5 7534else
81ecdfbb
RW
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7536$as_echo "no" >&6; }
ce2cded5 7537fi
d7040cdb 7538
81ecdfbb
RW
7539 if test "x$ac_ct_RANLIB" = x; then
7540 RANLIB=":"
7541 else
7542 case $cross_compiling:$ac_tool_warned in
7543yes:)
7544{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7545$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7546ac_tool_warned=yes ;;
7547esac
7548 RANLIB=$ac_ct_RANLIB
7549 fi
7357c5b6
AM
7550else
7551 RANLIB="$ac_cv_prog_RANLIB"
ce2cded5 7552fi
d7040cdb 7553
7357c5b6 7554test -z "$RANLIB" && RANLIB=:
d7040cdb 7555
7357c5b6
AM
7556
7557
7558
7559
7560
7561# Determine commands to create old-style static archives.
b214d478 7562old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7357c5b6
AM
7563old_postinstall_cmds='chmod 644 $oldlib'
7564old_postuninstall_cmds=
7565
7566if test -n "$RANLIB"; then
7567 case $host_os in
7568 openbsd*)
7569 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7570 ;;
7571 *)
7572 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7573 ;;
7574 esac
7575 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
ce2cded5 7576fi
7357c5b6 7577
3725885a
RW
7578case $host_os in
7579 darwin*)
7580 lock_old_archive_extraction=yes ;;
7581 *)
7582 lock_old_archive_extraction=no ;;
7583esac
7584
7585
7586
7587
7588
7589
7357c5b6
AM
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623# If no C compiler was specified, use CC.
7624LTCC=${LTCC-"$CC"}
7625
7626# If no C compiler flags were specified, use CFLAGS.
7627LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7628
7629# Allow CC to be a program name with arguments.
7630compiler=$CC
7631
7632
7633# Check for command to grab the raw symbol name followed by C symbol from nm.
81ecdfbb
RW
7634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7635$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7636if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7637 $as_echo_n "(cached) " >&6
ce2cded5 7638else
d7040cdb 7639
7357c5b6
AM
7640# These are sane defaults that work on at least a few old systems.
7641# [They come from Ultrix. What could be older than Ultrix?!! ;)]
d7040cdb 7642
7357c5b6
AM
7643# Character class describing NM global symbol codes.
7644symcode='[BCDEGRST]'
7645
7646# Regexp to match symbols that can be accessed directly from C.
7647sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7648
7649# Define system-specific variables.
7650case $host_os in
7651aix*)
7652 symcode='[BCDT]'
7653 ;;
b214d478 7654cygwin* | mingw* | pw32* | cegcc*)
7357c5b6
AM
7655 symcode='[ABCDGISTW]'
7656 ;;
7657hpux*)
7658 if test "$host_cpu" = ia64; then
7659 symcode='[ABCDEGRST]'
ce2cded5 7660 fi
7357c5b6
AM
7661 ;;
7662irix* | nonstopux*)
7663 symcode='[BCDEGRST]'
7664 ;;
7665osf*)
7666 symcode='[BCDEGQRST]'
7667 ;;
7668solaris*)
7669 symcode='[BDRT]'
7670 ;;
7671sco3.2v5*)
7672 symcode='[DT]'
7673 ;;
7674sysv4.2uw2*)
7675 symcode='[DT]'
7676 ;;
7677sysv5* | sco5v6* | unixware* | OpenUNIX*)
7678 symcode='[ABDT]'
7679 ;;
7680sysv4)
7681 symcode='[DFNSTU]'
7682 ;;
7683esac
d7040cdb 7684
7357c5b6
AM
7685# If we're using GNU nm, then use its standard symbol codes.
7686case `$NM -V 2>&1` in
7687*GNU* | *'with BFD'*)
7688 symcode='[ABCDGIRSTW]' ;;
7689esac
d7040cdb 7690
7357c5b6
AM
7691# Transform an extracted symbol line into a proper C declaration.
7692# Some systems (esp. on ia64) link data and code symbols differently,
7693# so use this general approach.
7694lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7695
7696# Transform an extracted symbol line into symbol name and symbol address
7697lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
b214d478 7698lt_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
7699
7700# Handle CRLF in mingw tool chain
7701opt_cr=
7702case $build_os in
7703mingw*)
7704 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7705 ;;
7706esac
d7040cdb 7707
7357c5b6
AM
7708# Try without a prefix underscore, then with it.
7709for ac_symprfx in "" "_"; do
d7040cdb 7710
7357c5b6
AM
7711 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7712 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 7713
7357c5b6
AM
7714 # Write the raw and C identifiers.
7715 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7716 # Fake it for dumpbin and say T for any non-static function
7717 # and D for any global variable.
7718 # Also find C++ and __fastcall symbols from MSVC++,
7719 # which start with @ or ?.
7720 lt_cv_sys_global_symbol_pipe="$AWK '"\
7721" {last_section=section; section=\$ 3};"\
7722" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7723" \$ 0!~/External *\|/{next};"\
7724" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7725" {if(hide[section]) next};"\
7726" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7727" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7728" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7729" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7730" ' prfx=^$ac_symprfx"
7731 else
7732 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7733 fi
d7040cdb 7734
7357c5b6
AM
7735 # Check to see that the pipe works correctly.
7736 pipe_works=no
d7040cdb 7737
7357c5b6
AM
7738 rm -f conftest*
7739 cat > conftest.$ac_ext <<_LT_EOF
7740#ifdef __cplusplus
7741extern "C" {
7742#endif
7743char nm_test_var;
7744void nm_test_func(void);
7745void nm_test_func(void){}
7746#ifdef __cplusplus
20e95c23 7747}
7357c5b6
AM
7748#endif
7749int main(){nm_test_var='a';nm_test_func();return(0);}
7750_LT_EOF
7751
81ecdfbb 7752 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6 7753 (eval $ac_compile) 2>&5
20e95c23 7754 ac_status=$?
81ecdfbb
RW
7755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7756 test $ac_status = 0; }; then
7357c5b6
AM
7757 # Now try to grab the symbols.
7758 nlist=conftest.nm
3725885a
RW
7759 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7760 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
20e95c23 7761 ac_status=$?
81ecdfbb
RW
7762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7763 test $ac_status = 0; } && test -s "$nlist"; then
7357c5b6
AM
7764 # Try sorting and uniquifying the output.
7765 if sort "$nlist" | uniq > "$nlist"T; then
7766 mv -f "$nlist"T "$nlist"
7767 else
7768 rm -f "$nlist"T
7769 fi
d7040cdb 7770
7357c5b6
AM
7771 # Make sure that we snagged all the symbols we need.
7772 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7773 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7774 cat <<_LT_EOF > conftest.$ac_ext
7775#ifdef __cplusplus
7776extern "C" {
7777#endif
ce2cded5 7778
7357c5b6
AM
7779_LT_EOF
7780 # Now generate the symbol file.
7781 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
ce2cded5 7782
7357c5b6 7783 cat <<_LT_EOF >> conftest.$ac_ext
42ecbf5e 7784
7357c5b6
AM
7785/* The mapping between symbol names and symbols. */
7786const struct {
7787 const char *name;
7788 void *address;
7789}
7790lt__PROGRAM__LTX_preloaded_symbols[] =
7791{
7792 { "@PROGRAM@", (void *) 0 },
7793_LT_EOF
7794 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7795 cat <<\_LT_EOF >> conftest.$ac_ext
7796 {0, (void *) 0}
7797};
d7040cdb 7798
7357c5b6
AM
7799/* This works around a problem in FreeBSD linker */
7800#ifdef FREEBSD_WORKAROUND
7801static const void *lt_preloaded_setup() {
7802 return lt__PROGRAM__LTX_preloaded_symbols;
7803}
ce2cded5 7804#endif
42ecbf5e 7805
7357c5b6 7806#ifdef __cplusplus
ce2cded5 7807}
7357c5b6
AM
7808#endif
7809_LT_EOF
7810 # Now try linking the two files.
7811 mv conftest.$ac_objext conftstm.$ac_objext
7812 lt_save_LIBS="$LIBS"
7813 lt_save_CFLAGS="$CFLAGS"
7814 LIBS="conftstm.$ac_objext"
7815 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
81ecdfbb 7816 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5
L
7817 (eval $ac_link) 2>&5
7818 ac_status=$?
81ecdfbb
RW
7819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7820 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7357c5b6
AM
7821 pipe_works=yes
7822 fi
7823 LIBS="$lt_save_LIBS"
7824 CFLAGS="$lt_save_CFLAGS"
7825 else
7826 echo "cannot find nm_test_func in $nlist" >&5
7827 fi
7828 else
7829 echo "cannot find nm_test_var in $nlist" >&5
7830 fi
7831 else
7832 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7833 fi
7834 else
7835 echo "$progname: failed program was:" >&5
7836 cat conftest.$ac_ext >&5
7837 fi
b214d478 7838 rm -rf conftest* conftst*
7357c5b6
AM
7839
7840 # Do not use the global_symbol_pipe unless it works.
7841 if test "$pipe_works" = yes; then
7842 break
7843 else
7844 lt_cv_sys_global_symbol_pipe=
7845 fi
7846done
42ecbf5e 7847
ce2cded5 7848fi
7357c5b6
AM
7849
7850if test -z "$lt_cv_sys_global_symbol_pipe"; then
7851 lt_cv_sys_global_symbol_to_cdecl=
ce2cded5 7852fi
7357c5b6 7853if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
81ecdfbb
RW
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7855$as_echo "failed" >&6; }
7357c5b6 7856else
81ecdfbb
RW
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7858$as_echo "ok" >&6; }
ce2cded5 7859fi
e5a52504 7860
d7040cdb 7861
e5a52504 7862
d7040cdb 7863
d7040cdb 7864
d7040cdb 7865
d7040cdb 7866
d7040cdb 7867
d7040cdb 7868
d7040cdb 7869
d7040cdb 7870
d7040cdb 7871
7357c5b6
AM
7872
7873
7874
b214d478
SE
7875
7876
7877
7878
7879
7357c5b6
AM
7880
7881
81ecdfbb
RW
7882# Check whether --enable-libtool-lock was given.
7883if test "${enable_libtool_lock+set}" = set; then :
7884 enableval=$enable_libtool_lock;
7885fi
7357c5b6 7886
7357c5b6
AM
7887test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7888
7889# Some flags need to be propagated to the compiler or linker for good
7890# libtool support.
7891case $host in
7892ia64-*-hpux*)
7893 # Find out which ABI we are using.
7894 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7895 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7896 (eval $ac_compile) 2>&5
7897 ac_status=$?
81ecdfbb
RW
7898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7899 test $ac_status = 0; }; then
7357c5b6
AM
7900 case `/usr/bin/file conftest.$ac_objext` in
7901 *ELF-32*)
7902 HPUX_IA64_MODE="32"
7903 ;;
7904 *ELF-64*)
7905 HPUX_IA64_MODE="64"
7906 ;;
7907 esac
7908 fi
7909 rm -rf conftest*
7910 ;;
7911*-*-irix6*)
7912 # Find out which ABI we are using.
3725885a 7913 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
81ecdfbb 7914 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7915 (eval $ac_compile) 2>&5
7916 ac_status=$?
81ecdfbb
RW
7917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7918 test $ac_status = 0; }; then
7357c5b6
AM
7919 if test "$lt_cv_prog_gnu_ld" = yes; then
7920 case `/usr/bin/file conftest.$ac_objext` in
7921 *32-bit*)
7922 LD="${LD-ld} -melf32bsmip"
7923 ;;
7924 *N32*)
7925 LD="${LD-ld} -melf32bmipn32"
7926 ;;
7927 *64-bit*)
7928 LD="${LD-ld} -melf64bmip"
7929 ;;
7930 esac
7931 else
7932 case `/usr/bin/file conftest.$ac_objext` in
7933 *32-bit*)
7934 LD="${LD-ld} -32"
7935 ;;
7936 *N32*)
7937 LD="${LD-ld} -n32"
7938 ;;
7939 *64-bit*)
7940 LD="${LD-ld} -64"
7941 ;;
7942 esac
7943 fi
7944 fi
7945 rm -rf conftest*
7946 ;;
7947
cc9afea3 7948x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7357c5b6
AM
7949s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7950 # Find out which ABI we are using.
7951 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7952 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7953 (eval $ac_compile) 2>&5
7954 ac_status=$?
81ecdfbb
RW
7955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7956 test $ac_status = 0; }; then
7357c5b6
AM
7957 case `/usr/bin/file conftest.o` in
7958 *32-bit*)
7959 case $host in
7960 x86_64-*kfreebsd*-gnu)
7961 LD="${LD-ld} -m elf_i386_fbsd"
7962 ;;
7963 x86_64-*linux*)
6d2920c8
L
7964 case `/usr/bin/file conftest.o` in
7965 *x86-64*)
7966 LD="${LD-ld} -m elf32_x86_64"
7967 ;;
7968 *)
7969 LD="${LD-ld} -m elf_i386"
7970 ;;
7971 esac
7357c5b6 7972 ;;
cc9afea3
AM
7973 powerpc64le-*linux*)
7974 LD="${LD-ld} -m elf32lppclinux"
7975 ;;
7976 powerpc64-*linux*)
7357c5b6
AM
7977 LD="${LD-ld} -m elf32ppclinux"
7978 ;;
7979 s390x-*linux*)
7980 LD="${LD-ld} -m elf_s390"
7981 ;;
7982 sparc64-*linux*)
7983 LD="${LD-ld} -m elf32_sparc"
7984 ;;
7985 esac
7986 ;;
7987 *64-bit*)
7988 case $host in
7989 x86_64-*kfreebsd*-gnu)
7990 LD="${LD-ld} -m elf_x86_64_fbsd"
7991 ;;
7992 x86_64-*linux*)
7993 LD="${LD-ld} -m elf_x86_64"
7994 ;;
cc9afea3
AM
7995 powerpcle-*linux*)
7996 LD="${LD-ld} -m elf64lppc"
7997 ;;
7998 powerpc-*linux*)
7357c5b6
AM
7999 LD="${LD-ld} -m elf64ppc"
8000 ;;
8001 s390*-*linux*|s390*-*tpf*)
8002 LD="${LD-ld} -m elf64_s390"
8003 ;;
8004 sparc*-*linux*)
8005 LD="${LD-ld} -m elf64_sparc"
8006 ;;
8007 esac
8008 ;;
8009 esac
8010 fi
8011 rm -rf conftest*
8012 ;;
8013
8014*-*-sco3.2v5*)
8015 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8016 SAVE_CFLAGS="$CFLAGS"
8017 CFLAGS="$CFLAGS -belf"
81ecdfbb
RW
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8019$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8020if test "${lt_cv_cc_needs_belf+set}" = set; then :
8021 $as_echo_n "(cached) " >&6
ce2cded5 8022else
7357c5b6
AM
8023 ac_ext=c
8024ac_cpp='$CPP $CPPFLAGS'
8025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8027ac_compiler_gnu=$ac_cv_c_compiler_gnu
8028
81ecdfbb 8029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 8030/* end confdefs.h. */
d7040cdb 8031
7357c5b6
AM
8032int
8033main ()
8034{
8035
8036 ;
8037 return 0;
8038}
ce2cded5 8039_ACEOF
81ecdfbb 8040if ac_fn_c_try_link "$LINENO"; then :
7357c5b6 8041 lt_cv_cc_needs_belf=yes
ce2cded5 8042else
81ecdfbb 8043 lt_cv_cc_needs_belf=no
ce2cded5 8044fi
81ecdfbb
RW
8045rm -f core conftest.err conftest.$ac_objext \
8046 conftest$ac_exeext conftest.$ac_ext
7357c5b6
AM
8047 ac_ext=c
8048ac_cpp='$CPP $CPPFLAGS'
8049ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8050ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8051ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 8052
b214d478 8053fi
81ecdfbb
RW
8054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8055$as_echo "$lt_cv_cc_needs_belf" >&6; }
b214d478
SE
8056 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8057 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8058 CFLAGS="$SAVE_CFLAGS"
8059 fi
8060 ;;
8061sparc*-*solaris*)
8062 # Find out which ABI we are using.
8063 echo 'int i;' > conftest.$ac_ext
81ecdfbb 8064 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
b214d478
SE
8065 (eval $ac_compile) 2>&5
8066 ac_status=$?
81ecdfbb
RW
8067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8068 test $ac_status = 0; }; then
b214d478
SE
8069 case `/usr/bin/file conftest.o` in
8070 *64-bit*)
8071 case $lt_cv_prog_gnu_ld in
8072 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8073 *)
8074 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8075 LD="${LD-ld} -64"
8076 fi
8077 ;;
8078 esac
8079 ;;
8080 esac
8081 fi
8082 rm -rf conftest*
8083 ;;
8084esac
8085
8086need_locks="$enable_libtool_lock"
8087
8088
8089 case $host_os in
8090 rhapsody* | darwin*)
8091 if test -n "$ac_tool_prefix"; then
8092 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8093set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
81ecdfbb
RW
8094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8095$as_echo_n "checking for $ac_word... " >&6; }
8096if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8097 $as_echo_n "(cached) " >&6
b214d478
SE
8098else
8099 if test -n "$DSYMUTIL"; then
8100 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8101else
8102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8103for as_dir in $PATH
8104do
8105 IFS=$as_save_IFS
8106 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8107 for ac_exec_ext in '' $ac_executable_extensions; do
8108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 8109 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
81ecdfbb 8110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8111 break 2
8112 fi
8113done
81ecdfbb
RW
8114 done
8115IFS=$as_save_IFS
b214d478
SE
8116
8117fi
8118fi
8119DSYMUTIL=$ac_cv_prog_DSYMUTIL
8120if test -n "$DSYMUTIL"; then
81ecdfbb
RW
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8122$as_echo "$DSYMUTIL" >&6; }
b214d478 8123else
81ecdfbb
RW
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8125$as_echo "no" >&6; }
b214d478
SE
8126fi
8127
81ecdfbb 8128
b214d478
SE
8129fi
8130if test -z "$ac_cv_prog_DSYMUTIL"; then
8131 ac_ct_DSYMUTIL=$DSYMUTIL
8132 # Extract the first word of "dsymutil", so it can be a program name with args.
8133set dummy dsymutil; ac_word=$2
81ecdfbb
RW
8134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8135$as_echo_n "checking for $ac_word... " >&6; }
8136if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8137 $as_echo_n "(cached) " >&6
b214d478
SE
8138else
8139 if test -n "$ac_ct_DSYMUTIL"; then
8140 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8141else
8142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8143for as_dir in $PATH
8144do
8145 IFS=$as_save_IFS
8146 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8147 for ac_exec_ext in '' $ac_executable_extensions; do
8148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 8149 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
81ecdfbb 8150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8151 break 2
8152 fi
8153done
81ecdfbb
RW
8154 done
8155IFS=$as_save_IFS
b214d478 8156
b214d478
SE
8157fi
8158fi
8159ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8160if test -n "$ac_ct_DSYMUTIL"; then
81ecdfbb
RW
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8162$as_echo "$ac_ct_DSYMUTIL" >&6; }
b214d478 8163else
81ecdfbb
RW
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8165$as_echo "no" >&6; }
b214d478
SE
8166fi
8167
81ecdfbb
RW
8168 if test "x$ac_ct_DSYMUTIL" = x; then
8169 DSYMUTIL=":"
8170 else
8171 case $cross_compiling:$ac_tool_warned in
8172yes:)
8173{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8174$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8175ac_tool_warned=yes ;;
8176esac
8177 DSYMUTIL=$ac_ct_DSYMUTIL
8178 fi
b214d478
SE
8179else
8180 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8181fi
8182
8183 if test -n "$ac_tool_prefix"; then
8184 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8185set dummy ${ac_tool_prefix}nmedit; ac_word=$2
81ecdfbb
RW
8186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8187$as_echo_n "checking for $ac_word... " >&6; }
8188if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8189 $as_echo_n "(cached) " >&6
b214d478
SE
8190else
8191 if test -n "$NMEDIT"; then
8192 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8193else
8194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8195for as_dir in $PATH
8196do
8197 IFS=$as_save_IFS
8198 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8199 for ac_exec_ext in '' $ac_executable_extensions; do
8200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 8201 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
81ecdfbb 8202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8203 break 2
8204 fi
8205done
81ecdfbb
RW
8206 done
8207IFS=$as_save_IFS
b214d478
SE
8208
8209fi
8210fi
8211NMEDIT=$ac_cv_prog_NMEDIT
8212if test -n "$NMEDIT"; then
81ecdfbb
RW
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8214$as_echo "$NMEDIT" >&6; }
b214d478 8215else
81ecdfbb
RW
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8217$as_echo "no" >&6; }
b214d478
SE
8218fi
8219
81ecdfbb 8220
b214d478
SE
8221fi
8222if test -z "$ac_cv_prog_NMEDIT"; then
8223 ac_ct_NMEDIT=$NMEDIT
8224 # Extract the first word of "nmedit", so it can be a program name with args.
8225set dummy nmedit; ac_word=$2
81ecdfbb
RW
8226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8227$as_echo_n "checking for $ac_word... " >&6; }
8228if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8229 $as_echo_n "(cached) " >&6
b214d478
SE
8230else
8231 if test -n "$ac_ct_NMEDIT"; then
8232 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8233else
8234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8235for as_dir in $PATH
8236do
8237 IFS=$as_save_IFS
8238 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8239 for ac_exec_ext in '' $ac_executable_extensions; do
8240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 8241 ac_cv_prog_ac_ct_NMEDIT="nmedit"
81ecdfbb 8242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8243 break 2
8244 fi
8245done
81ecdfbb
RW
8246 done
8247IFS=$as_save_IFS
b214d478 8248
b214d478
SE
8249fi
8250fi
8251ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8252if test -n "$ac_ct_NMEDIT"; then
81ecdfbb
RW
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8254$as_echo "$ac_ct_NMEDIT" >&6; }
b214d478 8255else
81ecdfbb
RW
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8257$as_echo "no" >&6; }
b214d478
SE
8258fi
8259
81ecdfbb
RW
8260 if test "x$ac_ct_NMEDIT" = x; then
8261 NMEDIT=":"
8262 else
8263 case $cross_compiling:$ac_tool_warned in
8264yes:)
8265{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8266$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8267ac_tool_warned=yes ;;
8268esac
8269 NMEDIT=$ac_ct_NMEDIT
8270 fi
b214d478
SE
8271else
8272 NMEDIT="$ac_cv_prog_NMEDIT"
8273fi
8274
8275 if test -n "$ac_tool_prefix"; then
8276 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8277set dummy ${ac_tool_prefix}lipo; ac_word=$2
81ecdfbb
RW
8278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8279$as_echo_n "checking for $ac_word... " >&6; }
8280if test "${ac_cv_prog_LIPO+set}" = set; then :
8281 $as_echo_n "(cached) " >&6
b214d478
SE
8282else
8283 if test -n "$LIPO"; then
8284 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8285else
8286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8287for as_dir in $PATH
8288do
8289 IFS=$as_save_IFS
8290 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8291 for ac_exec_ext in '' $ac_executable_extensions; do
8292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 8293 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
81ecdfbb 8294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8295 break 2
8296 fi
8297done
81ecdfbb
RW
8298 done
8299IFS=$as_save_IFS
b214d478
SE
8300
8301fi
8302fi
8303LIPO=$ac_cv_prog_LIPO
8304if test -n "$LIPO"; then
81ecdfbb
RW
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8306$as_echo "$LIPO" >&6; }
b214d478 8307else
81ecdfbb
RW
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8309$as_echo "no" >&6; }
b214d478
SE
8310fi
8311
81ecdfbb 8312
b214d478
SE
8313fi
8314if test -z "$ac_cv_prog_LIPO"; then
8315 ac_ct_LIPO=$LIPO
8316 # Extract the first word of "lipo", so it can be a program name with args.
8317set dummy lipo; ac_word=$2
81ecdfbb
RW
8318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8319$as_echo_n "checking for $ac_word... " >&6; }
8320if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8321 $as_echo_n "(cached) " >&6
b214d478
SE
8322else
8323 if test -n "$ac_ct_LIPO"; then
8324 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8325else
8326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8327for as_dir in $PATH
8328do
8329 IFS=$as_save_IFS
8330 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8331 for ac_exec_ext in '' $ac_executable_extensions; do
8332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 8333 ac_cv_prog_ac_ct_LIPO="lipo"
81ecdfbb 8334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8335 break 2
8336 fi
8337done
81ecdfbb
RW
8338 done
8339IFS=$as_save_IFS
b214d478 8340
b214d478
SE
8341fi
8342fi
8343ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8344if test -n "$ac_ct_LIPO"; then
81ecdfbb
RW
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8346$as_echo "$ac_ct_LIPO" >&6; }
b214d478 8347else
81ecdfbb
RW
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8349$as_echo "no" >&6; }
b214d478
SE
8350fi
8351
81ecdfbb
RW
8352 if test "x$ac_ct_LIPO" = x; then
8353 LIPO=":"
8354 else
8355 case $cross_compiling:$ac_tool_warned in
8356yes:)
8357{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8358$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8359ac_tool_warned=yes ;;
8360esac
8361 LIPO=$ac_ct_LIPO
8362 fi
b214d478
SE
8363else
8364 LIPO="$ac_cv_prog_LIPO"
8365fi
8366
8367 if test -n "$ac_tool_prefix"; then
8368 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8369set dummy ${ac_tool_prefix}otool; ac_word=$2
81ecdfbb
RW
8370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8371$as_echo_n "checking for $ac_word... " >&6; }
8372if test "${ac_cv_prog_OTOOL+set}" = set; then :
8373 $as_echo_n "(cached) " >&6
b214d478
SE
8374else
8375 if test -n "$OTOOL"; then
8376 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8377else
8378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8379for as_dir in $PATH
8380do
8381 IFS=$as_save_IFS
8382 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8383 for ac_exec_ext in '' $ac_executable_extensions; do
8384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 8385 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
81ecdfbb 8386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8387 break 2
8388 fi
8389done
81ecdfbb
RW
8390 done
8391IFS=$as_save_IFS
b214d478
SE
8392
8393fi
8394fi
8395OTOOL=$ac_cv_prog_OTOOL
8396if test -n "$OTOOL"; then
81ecdfbb
RW
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8398$as_echo "$OTOOL" >&6; }
b214d478 8399else
81ecdfbb
RW
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8401$as_echo "no" >&6; }
b214d478
SE
8402fi
8403
81ecdfbb 8404
b214d478
SE
8405fi
8406if test -z "$ac_cv_prog_OTOOL"; then
8407 ac_ct_OTOOL=$OTOOL
8408 # Extract the first word of "otool", so it can be a program name with args.
8409set dummy otool; ac_word=$2
81ecdfbb
RW
8410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8411$as_echo_n "checking for $ac_word... " >&6; }
8412if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8413 $as_echo_n "(cached) " >&6
b214d478
SE
8414else
8415 if test -n "$ac_ct_OTOOL"; then
8416 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8417else
8418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8419for as_dir in $PATH
8420do
8421 IFS=$as_save_IFS
8422 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8423 for ac_exec_ext in '' $ac_executable_extensions; do
8424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 8425 ac_cv_prog_ac_ct_OTOOL="otool"
81ecdfbb 8426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8427 break 2
8428 fi
8429done
81ecdfbb
RW
8430 done
8431IFS=$as_save_IFS
b214d478 8432
b214d478
SE
8433fi
8434fi
8435ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8436if test -n "$ac_ct_OTOOL"; then
81ecdfbb
RW
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8438$as_echo "$ac_ct_OTOOL" >&6; }
b214d478 8439else
81ecdfbb
RW
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8441$as_echo "no" >&6; }
b214d478
SE
8442fi
8443
81ecdfbb
RW
8444 if test "x$ac_ct_OTOOL" = x; then
8445 OTOOL=":"
8446 else
8447 case $cross_compiling:$ac_tool_warned in
8448yes:)
8449{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8450$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8451ac_tool_warned=yes ;;
8452esac
8453 OTOOL=$ac_ct_OTOOL
8454 fi
b214d478
SE
8455else
8456 OTOOL="$ac_cv_prog_OTOOL"
8457fi
8458
8459 if test -n "$ac_tool_prefix"; then
8460 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8461set dummy ${ac_tool_prefix}otool64; ac_word=$2
81ecdfbb
RW
8462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8463$as_echo_n "checking for $ac_word... " >&6; }
8464if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8465 $as_echo_n "(cached) " >&6
b214d478
SE
8466else
8467 if test -n "$OTOOL64"; then
8468 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8469else
8470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8471for as_dir in $PATH
8472do
8473 IFS=$as_save_IFS
8474 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8475 for ac_exec_ext in '' $ac_executable_extensions; do
8476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 8477 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
81ecdfbb 8478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8479 break 2
8480 fi
8481done
81ecdfbb
RW
8482 done
8483IFS=$as_save_IFS
b214d478
SE
8484
8485fi
8486fi
8487OTOOL64=$ac_cv_prog_OTOOL64
8488if test -n "$OTOOL64"; then
81ecdfbb
RW
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8490$as_echo "$OTOOL64" >&6; }
b214d478 8491else
81ecdfbb
RW
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8493$as_echo "no" >&6; }
b214d478
SE
8494fi
8495
81ecdfbb 8496
b214d478
SE
8497fi
8498if test -z "$ac_cv_prog_OTOOL64"; then
8499 ac_ct_OTOOL64=$OTOOL64
8500 # Extract the first word of "otool64", so it can be a program name with args.
8501set dummy otool64; ac_word=$2
81ecdfbb
RW
8502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8503$as_echo_n "checking for $ac_word... " >&6; }
8504if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8505 $as_echo_n "(cached) " >&6
b214d478
SE
8506else
8507 if test -n "$ac_ct_OTOOL64"; then
8508 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8509else
8510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8511for as_dir in $PATH
8512do
8513 IFS=$as_save_IFS
8514 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8515 for ac_exec_ext in '' $ac_executable_extensions; do
8516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 8517 ac_cv_prog_ac_ct_OTOOL64="otool64"
81ecdfbb 8518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8519 break 2
8520 fi
8521done
81ecdfbb
RW
8522 done
8523IFS=$as_save_IFS
b214d478 8524
b214d478
SE
8525fi
8526fi
8527ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8528if test -n "$ac_ct_OTOOL64"; then
81ecdfbb
RW
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8530$as_echo "$ac_ct_OTOOL64" >&6; }
b214d478 8531else
81ecdfbb
RW
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8533$as_echo "no" >&6; }
b214d478
SE
8534fi
8535
81ecdfbb
RW
8536 if test "x$ac_ct_OTOOL64" = x; then
8537 OTOOL64=":"
8538 else
8539 case $cross_compiling:$ac_tool_warned in
8540yes:)
8541{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8542$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8543ac_tool_warned=yes ;;
8544esac
8545 OTOOL64=$ac_ct_OTOOL64
8546 fi
b214d478
SE
8547else
8548 OTOOL64="$ac_cv_prog_OTOOL64"
8549fi
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
81ecdfbb
RW
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8578$as_echo_n "checking for -single_module linker flag... " >&6; }
8579if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8580 $as_echo_n "(cached) " >&6
b214d478
SE
8581else
8582 lt_cv_apple_cc_single_mod=no
8583 if test -z "${LT_MULTI_MODULE}"; then
8584 # By default we will add the -single_module flag. You can override
8585 # by either setting the environment variable LT_MULTI_MODULE
8586 # non-empty at configure time, or by adding -multi_module to the
8587 # link flags.
8588 rm -rf libconftest.dylib*
8589 echo "int foo(void){return 1;}" > conftest.c
8590 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8591-dynamiclib -Wl,-single_module conftest.c" >&5
8592 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8593 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8594 _lt_result=$?
8595 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8596 lt_cv_apple_cc_single_mod=yes
8597 else
8598 cat conftest.err >&5
8599 fi
8600 rm -rf libconftest.dylib*
8601 rm -f conftest.*
8602 fi
8603fi
81ecdfbb
RW
8604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8605$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8607$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8608if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8609 $as_echo_n "(cached) " >&6
b214d478
SE
8610else
8611 lt_cv_ld_exported_symbols_list=no
8612 save_LDFLAGS=$LDFLAGS
8613 echo "_main" > conftest.sym
8614 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
81ecdfbb 8615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b214d478
SE
8616/* end confdefs.h. */
8617
8618int
8619main ()
8620{
8621
8622 ;
8623 return 0;
8624}
8625_ACEOF
81ecdfbb 8626if ac_fn_c_try_link "$LINENO"; then :
b214d478
SE
8627 lt_cv_ld_exported_symbols_list=yes
8628else
81ecdfbb 8629 lt_cv_ld_exported_symbols_list=no
b214d478 8630fi
81ecdfbb
RW
8631rm -f core conftest.err conftest.$ac_objext \
8632 conftest$ac_exeext conftest.$ac_ext
b214d478
SE
8633 LDFLAGS="$save_LDFLAGS"
8634
8635fi
81ecdfbb
RW
8636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8637$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
3725885a
RW
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8639$as_echo_n "checking for -force_load linker flag... " >&6; }
8640if test "${lt_cv_ld_force_load+set}" = set; then :
8641 $as_echo_n "(cached) " >&6
8642else
8643 lt_cv_ld_force_load=no
8644 cat > conftest.c << _LT_EOF
8645int forced_loaded() { return 2;}
8646_LT_EOF
8647 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8648 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8649 echo "$AR cru libconftest.a conftest.o" >&5
8650 $AR cru libconftest.a conftest.o 2>&5
8651 cat > conftest.c << _LT_EOF
8652int main() { return 0;}
8653_LT_EOF
8654 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8655 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8656 _lt_result=$?
8657 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8658 lt_cv_ld_force_load=yes
8659 else
8660 cat conftest.err >&5
8661 fi
8662 rm -f conftest.err libconftest.a conftest conftest.c
8663 rm -rf conftest.dSYM
8664
8665fi
8666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8667$as_echo "$lt_cv_ld_force_load" >&6; }
b214d478
SE
8668 case $host_os in
8669 rhapsody* | darwin1.[012])
8670 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8671 darwin1.*)
8672 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8673 darwin*) # darwin 5.x on
8674 # if running on 10.5 or later, the deployment target defaults
8675 # to the OS version, if on x86, and 10.4, the deployment
8676 # target defaults to 10.4. Don't you love it?
8677 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8678 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8679 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8680 10.[012]*)
8681 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8682 10.*)
8683 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8684 esac
8685 ;;
8686 esac
8687 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8688 _lt_dar_single_mod='$single_module'
8689 fi
8690 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8691 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8692 else
8693 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8694 fi
3725885a 8695 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
b214d478
SE
8696 _lt_dsymutil='~$DSYMUTIL $lib || :'
8697 else
8698 _lt_dsymutil=
8699 fi
8700 ;;
8701 esac
8702
b214d478 8703for ac_header in dlfcn.h
81ecdfbb
RW
8704do :
8705 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8706"
8707if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
b214d478 8708 cat >>confdefs.h <<_ACEOF
81ecdfbb 8709#define HAVE_DLFCN_H 1
b214d478
SE
8710_ACEOF
8711
8712fi
8713
8714done
8715
8716
8717
3725885a
RW
8718
8719
3cb62297 8720
b214d478
SE
8721# Set options
8722
8723
8724
8725 enable_dlopen=no
8726
8727
8728 enable_win32_dll=no
8729
8730
81ecdfbb
RW
8731 # Check whether --enable-shared was given.
8732if test "${enable_shared+set}" = set; then :
8733 enableval=$enable_shared; p=${PACKAGE-default}
b214d478
SE
8734 case $enableval in
8735 yes) enable_shared=yes ;;
8736 no) enable_shared=no ;;
8737 *)
8738 enable_shared=no
8739 # Look at the argument we got. We use all the common list separators.
8740 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8741 for pkg in $enableval; do
8742 IFS="$lt_save_ifs"
8743 if test "X$pkg" = "X$p"; then
8744 enable_shared=yes
8745 fi
8746 done
8747 IFS="$lt_save_ifs"
8748 ;;
8749 esac
8750else
8751 enable_shared=yes
81ecdfbb 8752fi
b214d478
SE
8753
8754
8755
8756
8757
8758
8759
8760
81ecdfbb
RW
8761
8762 # Check whether --enable-static was given.
8763if test "${enable_static+set}" = set; then :
8764 enableval=$enable_static; p=${PACKAGE-default}
b214d478
SE
8765 case $enableval in
8766 yes) enable_static=yes ;;
8767 no) enable_static=no ;;
8768 *)
8769 enable_static=no
8770 # Look at the argument we got. We use all the common list separators.
8771 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8772 for pkg in $enableval; do
8773 IFS="$lt_save_ifs"
8774 if test "X$pkg" = "X$p"; then
8775 enable_static=yes
8776 fi
8777 done
8778 IFS="$lt_save_ifs"
8779 ;;
8780 esac
8781else
8782 enable_static=yes
81ecdfbb 8783fi
b214d478
SE
8784
8785
8786
8787
8788
8789
8790
8791
8792
81ecdfbb
RW
8793
8794# Check whether --with-pic was given.
8795if test "${with_pic+set}" = set; then :
8796 withval=$with_pic; pic_mode="$withval"
b214d478
SE
8797else
8798 pic_mode=default
81ecdfbb
RW
8799fi
8800
b214d478
SE
8801
8802test -z "$pic_mode" && pic_mode=default
8803
8804
8805
8806
8807
8808
8809
81ecdfbb
RW
8810 # Check whether --enable-fast-install was given.
8811if test "${enable_fast_install+set}" = set; then :
8812 enableval=$enable_fast_install; p=${PACKAGE-default}
b214d478
SE
8813 case $enableval in
8814 yes) enable_fast_install=yes ;;
8815 no) enable_fast_install=no ;;
8816 *)
8817 enable_fast_install=no
8818 # Look at the argument we got. We use all the common list separators.
8819 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8820 for pkg in $enableval; do
8821 IFS="$lt_save_ifs"
8822 if test "X$pkg" = "X$p"; then
8823 enable_fast_install=yes
8824 fi
8825 done
8826 IFS="$lt_save_ifs"
7357c5b6
AM
8827 ;;
8828 esac
b214d478
SE
8829else
8830 enable_fast_install=yes
81ecdfbb
RW
8831fi
8832
ce2cded5 8833
ce2cded5
L
8834
8835
ce2cded5 8836
42ecbf5e 8837
d7040cdb 8838
d7040cdb 8839
d7040cdb 8840
d7040cdb 8841
d7040cdb 8842
ce2cded5
L
8843# This can be used to rebuild libtool when needed
8844LIBTOOL_DEPS="$ltmain"
d7040cdb 8845
ce2cded5
L
8846# Always use our own libtool.
8847LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d7040cdb 8848
d7040cdb 8849
d7040cdb 8850
d7040cdb 8851
d7040cdb 8852
d7040cdb 8853
d7040cdb 8854
d7040cdb 8855
d7040cdb 8856
d7040cdb 8857
d7040cdb 8858
d7040cdb 8859
d7040cdb 8860
d7040cdb 8861
d7040cdb 8862
d7040cdb 8863
d7040cdb
SE
8864
8865
8866
8867
8868
8869
8870
3725885a 8871
d7040cdb
SE
8872
8873
ce2cded5 8874test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
8875
8876
8877
8878
8879
8880
d7040cdb
SE
8881
8882
8883
8884
8885
8886
8887
8888
ce2cded5
L
8889if test -n "${ZSH_VERSION+set}" ; then
8890 setopt NO_GLOB_SUBST
8891fi
d7040cdb 8892
81ecdfbb
RW
8893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8894$as_echo_n "checking for objdir... " >&6; }
8895if test "${lt_cv_objdir+set}" = set; then :
8896 $as_echo_n "(cached) " >&6
ce2cded5
L
8897else
8898 rm -f .libs 2>/dev/null
8899mkdir .libs 2>/dev/null
8900if test -d .libs; then
8901 lt_cv_objdir=.libs
8902else
8903 # MS-DOS does not allow filenames that begin with a dot.
8904 lt_cv_objdir=_libs
8905fi
8906rmdir .libs 2>/dev/null
8907fi
81ecdfbb
RW
8908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8909$as_echo "$lt_cv_objdir" >&6; }
ce2cded5 8910objdir=$lt_cv_objdir
d7040cdb
SE
8911
8912
8913
8914
8915
ce2cded5
L
8916cat >>confdefs.h <<_ACEOF
8917#define LT_OBJDIR "$lt_cv_objdir/"
8918_ACEOF
d7040cdb
SE
8919
8920
8921
8922
ce2cded5
L
8923case $host_os in
8924aix3*)
8925 # AIX sometimes has problems with the GCC collect2 program. For some
8926 # reason, if we set the COLLECT_NAMES environment variable, the problems
8927 # vanish in a puff of smoke.
8928 if test "X${COLLECT_NAMES+set}" != Xset; then
8929 COLLECT_NAMES=
8930 export COLLECT_NAMES
8931 fi
8932 ;;
8933esac
d7040cdb 8934
ce2cded5
L
8935# Global variables:
8936ofile=libtool
8937can_build_shared=yes
d7040cdb 8938
ce2cded5
L
8939# All known linkers require a `.a' archive for static linking (except MSVC,
8940# which needs '.lib').
8941libext=a
d7040cdb 8942
ce2cded5 8943with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 8944
ce2cded5
L
8945old_CC="$CC"
8946old_CFLAGS="$CFLAGS"
d7040cdb 8947
ce2cded5
L
8948# Set sane defaults for various variables
8949test -z "$CC" && CC=cc
8950test -z "$LTCC" && LTCC=$CC
8951test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8952test -z "$LD" && LD=ld
8953test -z "$ac_objext" && ac_objext=o
d7040cdb 8954
ce2cded5
L
8955for cc_temp in $compiler""; do
8956 case $cc_temp in
8957 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8958 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8959 \-*) ;;
8960 *) break;;
8961 esac
8962done
3725885a 8963cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
d7040cdb
SE
8964
8965
ce2cded5
L
8966# Only perform the check for file, if the check method requires it
8967test -z "$MAGIC_CMD" && MAGIC_CMD=file
8968case $deplibs_check_method in
8969file_magic*)
8970 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
81ecdfbb
RW
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8972$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8973if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8974 $as_echo_n "(cached) " >&6
ce2cded5
L
8975else
8976 case $MAGIC_CMD in
8977[\\/*] | ?:[\\/]*)
8978 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8979 ;;
8980*)
8981 lt_save_MAGIC_CMD="$MAGIC_CMD"
8982 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8983 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8984 for ac_dir in $ac_dummy; do
8985 IFS="$lt_save_ifs"
8986 test -z "$ac_dir" && ac_dir=.
8987 if test -f $ac_dir/${ac_tool_prefix}file; then
8988 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8989 if test -n "$file_magic_test_file"; then
8990 case $deplibs_check_method in
8991 "file_magic "*)
8992 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8993 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8994 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8995 $EGREP "$file_magic_regex" > /dev/null; then
8996 :
8997 else
8998 cat <<_LT_EOF 1>&2
d7040cdb 8999
ce2cded5
L
9000*** Warning: the command libtool uses to detect shared libraries,
9001*** $file_magic_cmd, produces output that libtool cannot recognize.
9002*** The result is that libtool may fail to recognize shared libraries
9003*** as such. This will affect the creation of libtool libraries that
9004*** depend on shared libraries, but programs linked with such libtool
9005*** libraries will work regardless of this problem. Nevertheless, you
9006*** may want to report the problem to your system manager and/or to
9007*** bug-libtool@gnu.org
d7040cdb 9008
ce2cded5
L
9009_LT_EOF
9010 fi ;;
9011 esac
9012 fi
9013 break
9014 fi
9015 done
9016 IFS="$lt_save_ifs"
9017 MAGIC_CMD="$lt_save_MAGIC_CMD"
9018 ;;
9019esac
9020fi
d7040cdb 9021
ce2cded5
L
9022MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9023if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9025$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 9026else
81ecdfbb
RW
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9028$as_echo "no" >&6; }
ce2cded5 9029fi
d7040cdb
SE
9030
9031
9032
9033
9034
ce2cded5
L
9035if test -z "$lt_cv_path_MAGIC_CMD"; then
9036 if test -n "$ac_tool_prefix"; then
81ecdfbb
RW
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9038$as_echo_n "checking for file... " >&6; }
9039if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9040 $as_echo_n "(cached) " >&6
ce2cded5
L
9041else
9042 case $MAGIC_CMD in
9043[\\/*] | ?:[\\/]*)
9044 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9045 ;;
9046*)
9047 lt_save_MAGIC_CMD="$MAGIC_CMD"
9048 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9049 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9050 for ac_dir in $ac_dummy; do
9051 IFS="$lt_save_ifs"
9052 test -z "$ac_dir" && ac_dir=.
9053 if test -f $ac_dir/file; then
9054 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9055 if test -n "$file_magic_test_file"; then
9056 case $deplibs_check_method in
9057 "file_magic "*)
9058 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9059 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9060 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9061 $EGREP "$file_magic_regex" > /dev/null; then
9062 :
9063 else
9064 cat <<_LT_EOF 1>&2
d7040cdb 9065
ce2cded5
L
9066*** Warning: the command libtool uses to detect shared libraries,
9067*** $file_magic_cmd, produces output that libtool cannot recognize.
9068*** The result is that libtool may fail to recognize shared libraries
9069*** as such. This will affect the creation of libtool libraries that
9070*** depend on shared libraries, but programs linked with such libtool
9071*** libraries will work regardless of this problem. Nevertheless, you
9072*** may want to report the problem to your system manager and/or to
9073*** bug-libtool@gnu.org
d7040cdb 9074
ce2cded5
L
9075_LT_EOF
9076 fi ;;
9077 esac
9078 fi
9079 break
9080 fi
9081 done
9082 IFS="$lt_save_ifs"
9083 MAGIC_CMD="$lt_save_MAGIC_CMD"
9084 ;;
9085esac
9086fi
d7040cdb 9087
ce2cded5
L
9088MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9089if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9091$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 9092else
81ecdfbb
RW
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9094$as_echo "no" >&6; }
ce2cded5 9095fi
d7040cdb
SE
9096
9097
ce2cded5
L
9098 else
9099 MAGIC_CMD=:
9100 fi
9101fi
d7040cdb 9102
ce2cded5
L
9103 fi
9104 ;;
9105esac
d7040cdb 9106
ce2cded5 9107# Use C for the default configuration in the libtool script
d7040cdb 9108
ce2cded5
L
9109lt_save_CC="$CC"
9110ac_ext=c
9111ac_cpp='$CPP $CPPFLAGS'
9112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9114ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
9115
9116
ce2cded5
L
9117# Source file extension for C test sources.
9118ac_ext=c
d7040cdb 9119
ce2cded5
L
9120# Object file extension for compiled C test sources.
9121objext=o
9122objext=$objext
d7040cdb 9123
ce2cded5
L
9124# Code to be used in simple compile tests
9125lt_simple_compile_test_code="int some_variable = 0;"
d7040cdb 9126
ce2cded5
L
9127# Code to be used in simple link tests
9128lt_simple_link_test_code='int main(){return(0);}'
d7040cdb
SE
9129
9130
9131
9132
9133
9134
9135
ce2cded5
L
9136# If no C compiler was specified, use CC.
9137LTCC=${LTCC-"$CC"}
d7040cdb 9138
ce2cded5
L
9139# If no C compiler flags were specified, use CFLAGS.
9140LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d7040cdb 9141
ce2cded5
L
9142# Allow CC to be a program name with arguments.
9143compiler=$CC
d7040cdb 9144
ce2cded5
L
9145# Save the default compiler, since it gets overwritten when the other
9146# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9147compiler_DEFAULT=$CC
d7040cdb 9148
ce2cded5
L
9149# save warnings/boilerplate of simple test code
9150ac_outfile=conftest.$ac_objext
9151echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9152eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9153_lt_compiler_boilerplate=`cat conftest.err`
9154$RM conftest*
d7040cdb 9155
ce2cded5
L
9156ac_outfile=conftest.$ac_objext
9157echo "$lt_simple_link_test_code" >conftest.$ac_ext
9158eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9159_lt_linker_boilerplate=`cat conftest.err`
b214d478 9160$RM -r conftest*
d7040cdb
SE
9161
9162
ce2cded5
L
9163## CAVEAT EMPTOR:
9164## There is no encapsulation within the following macros, do not change
9165## the running order or otherwise move them around unless you know exactly
9166## what you are doing...
9167if test -n "$compiler"; then
d7040cdb 9168
ce2cded5 9169lt_prog_compiler_no_builtin_flag=
d7040cdb 9170
ce2cded5 9171if test "$GCC" = yes; then
3725885a
RW
9172 case $cc_basename in
9173 nvcc*)
9174 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9175 *)
9176 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9177 esac
d7040cdb 9178
81ecdfbb
RW
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9180$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9181if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9182 $as_echo_n "(cached) " >&6
ce2cded5
L
9183else
9184 lt_cv_prog_compiler_rtti_exceptions=no
9185 ac_outfile=conftest.$ac_objext
9186 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9187 lt_compiler_flag="-fno-rtti -fno-exceptions"
9188 # Insert the option either (1) after the last *FLAGS variable, or
9189 # (2) before a word containing "conftest.", or (3) at the end.
9190 # Note that $ac_compile itself does not contain backslashes and begins
9191 # with a dollar sign (not a hyphen), so the echo should work correctly.
9192 # The option is referenced via a variable to avoid confusing sed.
9193 lt_compile=`echo "$ac_compile" | $SED \
9194 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9195 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9196 -e 's:$: $lt_compiler_flag:'`
3725885a 9197 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9198 (eval "$lt_compile" 2>conftest.err)
9199 ac_status=$?
9200 cat conftest.err >&5
3725885a 9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9202 if (exit $ac_status) && test -s "$ac_outfile"; then
9203 # The compiler can only warn and ignore the option if not recognized
9204 # So say no if there are warnings other than the usual output.
3725885a 9205 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
9206 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9207 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9208 lt_cv_prog_compiler_rtti_exceptions=yes
9209 fi
9210 fi
9211 $RM conftest*
d7040cdb 9212
ce2cded5 9213fi
81ecdfbb
RW
9214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9215$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d7040cdb 9216
ce2cded5
L
9217if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9218 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9219else
9220 :
9221fi
d7040cdb 9222
ce2cded5 9223fi
d7040cdb
SE
9224
9225
9226
9227
9228
9229
ce2cded5
L
9230 lt_prog_compiler_wl=
9231lt_prog_compiler_pic=
9232lt_prog_compiler_static=
d7040cdb 9233
81ecdfbb
RW
9234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9235$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
d7040cdb 9236
ce2cded5
L
9237 if test "$GCC" = yes; then
9238 lt_prog_compiler_wl='-Wl,'
9239 lt_prog_compiler_static='-static'
d7040cdb 9240
ce2cded5
L
9241 case $host_os in
9242 aix*)
9243 # All AIX code is PIC.
9244 if test "$host_cpu" = ia64; then
9245 # AIX 5 now supports IA64 processor
9246 lt_prog_compiler_static='-Bstatic'
9247 fi
52204357 9248 lt_prog_compiler_pic='-fPIC'
ce2cded5 9249 ;;
d7040cdb 9250
ce2cded5 9251 amigaos*)
b214d478
SE
9252 case $host_cpu in
9253 powerpc)
9254 # see comment about AmigaOS4 .so support
9255 lt_prog_compiler_pic='-fPIC'
9256 ;;
9257 m68k)
9258 # FIXME: we need at least 68020 code to build shared libraries, but
9259 # adding the `-m68020' flag to GCC prevents building anything better,
9260 # like `-m68040'.
9261 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9262 ;;
9263 esac
ce2cded5 9264 ;;
d7040cdb 9265
ce2cded5
L
9266 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9267 # PIC is the default for these OSes.
9268 ;;
d7040cdb 9269
b214d478 9270 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
9271 # This hack is so that the source file can tell whether it is being
9272 # built for inclusion in a dll (and should export symbols for example).
9273 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9274 # (--disable-auto-import) libraries
9275 lt_prog_compiler_pic='-DDLL_EXPORT'
9276 ;;
d7040cdb 9277
ce2cded5
L
9278 darwin* | rhapsody*)
9279 # PIC is the default on this platform
9280 # Common symbols not allowed in MH_DYLIB files
9281 lt_prog_compiler_pic='-fno-common'
9282 ;;
d7040cdb 9283
3725885a
RW
9284 haiku*)
9285 # PIC is the default for Haiku.
9286 # The "-static" flag exists, but is broken.
9287 lt_prog_compiler_static=
9288 ;;
9289
ce2cded5 9290 hpux*)
b214d478
SE
9291 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9292 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9293 # sets the default TLS model and affects inlining.
ce2cded5 9294 case $host_cpu in
b214d478 9295 hppa*64*)
ce2cded5
L
9296 # +Z the default
9297 ;;
9298 *)
9299 lt_prog_compiler_pic='-fPIC'
9300 ;;
9301 esac
9302 ;;
d7040cdb 9303
ce2cded5
L
9304 interix[3-9]*)
9305 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9306 # Instead, we relocate shared libraries at runtime.
9307 ;;
d7040cdb 9308
ce2cded5
L
9309 msdosdjgpp*)
9310 # Just because we use GCC doesn't mean we suddenly get shared libraries
9311 # on systems that don't support them.
9312 lt_prog_compiler_can_build_shared=no
9313 enable_shared=no
9314 ;;
d7040cdb 9315
ce2cded5
L
9316 *nto* | *qnx*)
9317 # QNX uses GNU C++, but need to define -shared option too, otherwise
9318 # it will coredump.
9319 lt_prog_compiler_pic='-fPIC -shared'
9320 ;;
d7040cdb 9321
ce2cded5
L
9322 sysv4*MP*)
9323 if test -d /usr/nec; then
9324 lt_prog_compiler_pic=-Kconform_pic
9325 fi
9326 ;;
d7040cdb 9327
ce2cded5
L
9328 *)
9329 lt_prog_compiler_pic='-fPIC'
9330 ;;
9331 esac
3725885a
RW
9332
9333 case $cc_basename in
9334 nvcc*) # Cuda Compiler Driver 2.2
9335 lt_prog_compiler_wl='-Xlinker '
9336 lt_prog_compiler_pic='-Xcompiler -fPIC'
9337 ;;
9338 esac
ce2cded5
L
9339 else
9340 # PORTME Check for flag to pass linker flags through the system compiler.
9341 case $host_os in
9342 aix*)
9343 lt_prog_compiler_wl='-Wl,'
9344 if test "$host_cpu" = ia64; then
9345 # AIX 5 now supports IA64 processor
9346 lt_prog_compiler_static='-Bstatic'
9347 else
9348 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9349 fi
9350 ;;
d7040cdb 9351
b214d478 9352 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
9353 # This hack is so that the source file can tell whether it is being
9354 # built for inclusion in a dll (and should export symbols for example).
9355 lt_prog_compiler_pic='-DDLL_EXPORT'
9356 ;;
d7040cdb 9357
ce2cded5
L
9358 hpux9* | hpux10* | hpux11*)
9359 lt_prog_compiler_wl='-Wl,'
9360 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9361 # not for PA HP-UX.
9362 case $host_cpu in
9363 hppa*64*|ia64*)
9364 # +Z the default
9365 ;;
9366 *)
9367 lt_prog_compiler_pic='+Z'
9368 ;;
9369 esac
9370 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9371 lt_prog_compiler_static='${wl}-a ${wl}archive'
9372 ;;
d7040cdb 9373
ce2cded5
L
9374 irix5* | irix6* | nonstopux*)
9375 lt_prog_compiler_wl='-Wl,'
9376 # PIC (with -KPIC) is the default.
9377 lt_prog_compiler_static='-non_shared'
9378 ;;
d7040cdb 9379
58e24671 9380 linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5 9381 case $cc_basename in
b214d478
SE
9382 # old Intel for x86_64 which still supported -KPIC.
9383 ecc*)
ce2cded5
L
9384 lt_prog_compiler_wl='-Wl,'
9385 lt_prog_compiler_pic='-KPIC'
9386 lt_prog_compiler_static='-static'
9387 ;;
b214d478
SE
9388 # icc used to be incompatible with GCC.
9389 # ICC 10 doesn't accept -KPIC any more.
9390 icc* | ifort*)
9391 lt_prog_compiler_wl='-Wl,'
9392 lt_prog_compiler_pic='-fPIC'
9393 lt_prog_compiler_static='-static'
9394 ;;
9395 # Lahey Fortran 8.1.
9396 lf95*)
9397 lt_prog_compiler_wl='-Wl,'
9398 lt_prog_compiler_pic='--shared'
9399 lt_prog_compiler_static='--static'
9400 ;;
3725885a 9401 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
ce2cded5
L
9402 # Portland Group compilers (*not* the Pentium gcc compiler,
9403 # which looks to be a dead project)
9404 lt_prog_compiler_wl='-Wl,'
9405 lt_prog_compiler_pic='-fpic'
9406 lt_prog_compiler_static='-Bstatic'
9407 ;;
9408 ccc*)
9409 lt_prog_compiler_wl='-Wl,'
9410 # All Alpha code is PIC.
9411 lt_prog_compiler_static='-non_shared'
9412 ;;
3725885a
RW
9413 xl* | bgxl* | bgf* | mpixl*)
9414 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
b214d478
SE
9415 lt_prog_compiler_wl='-Wl,'
9416 lt_prog_compiler_pic='-qpic'
9417 lt_prog_compiler_static='-qstaticlink'
9418 ;;
ce2cded5
L
9419 *)
9420 case `$CC -V 2>&1 | sed 5q` in
3725885a
RW
9421 *Sun\ F* | *Sun*Fortran*)
9422 # Sun Fortran 8.3 passes all unrecognized flags to the linker
ce2cded5
L
9423 lt_prog_compiler_pic='-KPIC'
9424 lt_prog_compiler_static='-Bstatic'
3725885a 9425 lt_prog_compiler_wl=''
ce2cded5 9426 ;;
3725885a
RW
9427 *Sun\ C*)
9428 # Sun C 5.9
ce2cded5
L
9429 lt_prog_compiler_pic='-KPIC'
9430 lt_prog_compiler_static='-Bstatic'
3725885a 9431 lt_prog_compiler_wl='-Wl,'
ce2cded5
L
9432 ;;
9433 esac
9434 ;;
9435 esac
9436 ;;
d7040cdb 9437
ce2cded5
L
9438 newsos6)
9439 lt_prog_compiler_pic='-KPIC'
9440 lt_prog_compiler_static='-Bstatic'
9441 ;;
d7040cdb 9442
ce2cded5
L
9443 *nto* | *qnx*)
9444 # QNX uses GNU C++, but need to define -shared option too, otherwise
9445 # it will coredump.
9446 lt_prog_compiler_pic='-fPIC -shared'
9447 ;;
d7040cdb 9448
ce2cded5
L
9449 osf3* | osf4* | osf5*)
9450 lt_prog_compiler_wl='-Wl,'
9451 # All OSF/1 code is PIC.
9452 lt_prog_compiler_static='-non_shared'
9453 ;;
d7040cdb 9454
ce2cded5
L
9455 rdos*)
9456 lt_prog_compiler_static='-non_shared'
9457 ;;
d7040cdb 9458
ce2cded5
L
9459 solaris*)
9460 lt_prog_compiler_pic='-KPIC'
9461 lt_prog_compiler_static='-Bstatic'
9462 case $cc_basename in
9463 f77* | f90* | f95*)
9464 lt_prog_compiler_wl='-Qoption ld ';;
9465 *)
9466 lt_prog_compiler_wl='-Wl,';;
9467 esac
9468 ;;
d7040cdb 9469
ce2cded5
L
9470 sunos4*)
9471 lt_prog_compiler_wl='-Qoption ld '
9472 lt_prog_compiler_pic='-PIC'
9473 lt_prog_compiler_static='-Bstatic'
9474 ;;
d7040cdb 9475
ce2cded5
L
9476 sysv4 | sysv4.2uw2* | sysv4.3*)
9477 lt_prog_compiler_wl='-Wl,'
9478 lt_prog_compiler_pic='-KPIC'
9479 lt_prog_compiler_static='-Bstatic'
9480 ;;
d7040cdb 9481
ce2cded5
L
9482 sysv4*MP*)
9483 if test -d /usr/nec ;then
9484 lt_prog_compiler_pic='-Kconform_pic'
9485 lt_prog_compiler_static='-Bstatic'
9486 fi
9487 ;;
d7040cdb 9488
ce2cded5
L
9489 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9490 lt_prog_compiler_wl='-Wl,'
9491 lt_prog_compiler_pic='-KPIC'
9492 lt_prog_compiler_static='-Bstatic'
9493 ;;
d7040cdb 9494
ce2cded5
L
9495 unicos*)
9496 lt_prog_compiler_wl='-Wl,'
9497 lt_prog_compiler_can_build_shared=no
9498 ;;
d7040cdb 9499
ce2cded5
L
9500 uts4*)
9501 lt_prog_compiler_pic='-pic'
9502 lt_prog_compiler_static='-Bstatic'
9503 ;;
d7040cdb 9504
ce2cded5
L
9505 *)
9506 lt_prog_compiler_can_build_shared=no
9507 ;;
9508 esac
9509 fi
d7040cdb 9510
ce2cded5
L
9511case $host_os in
9512 # For platforms which do not support PIC, -DPIC is meaningless:
9513 *djgpp*)
9514 lt_prog_compiler_pic=
9515 ;;
9516 *)
9517 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9518 ;;
9519esac
81ecdfbb
RW
9520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9521$as_echo "$lt_prog_compiler_pic" >&6; }
d7040cdb
SE
9522
9523
9524
9525
9526
9527
ce2cded5
L
9528#
9529# Check to make sure the PIC flag actually works.
9530#
9531if test -n "$lt_prog_compiler_pic"; then
81ecdfbb
RW
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9533$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9534if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9535 $as_echo_n "(cached) " >&6
ce2cded5 9536else
b214d478 9537 lt_cv_prog_compiler_pic_works=no
ce2cded5
L
9538 ac_outfile=conftest.$ac_objext
9539 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9540 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9541 # Insert the option either (1) after the last *FLAGS variable, or
9542 # (2) before a word containing "conftest.", or (3) at the end.
9543 # Note that $ac_compile itself does not contain backslashes and begins
9544 # with a dollar sign (not a hyphen), so the echo should work correctly.
9545 # The option is referenced via a variable to avoid confusing sed.
9546 lt_compile=`echo "$ac_compile" | $SED \
9547 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9548 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9549 -e 's:$: $lt_compiler_flag:'`
3725885a 9550 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9551 (eval "$lt_compile" 2>conftest.err)
9552 ac_status=$?
9553 cat conftest.err >&5
3725885a 9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9555 if (exit $ac_status) && test -s "$ac_outfile"; then
9556 # The compiler can only warn and ignore the option if not recognized
9557 # So say no if there are warnings other than the usual output.
3725885a 9558 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
9559 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9560 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
b214d478 9561 lt_cv_prog_compiler_pic_works=yes
ce2cded5
L
9562 fi
9563 fi
9564 $RM conftest*
d7040cdb 9565
ce2cded5 9566fi
81ecdfbb
RW
9567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9568$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
ce2cded5 9569
b214d478 9570if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
ce2cded5
L
9571 case $lt_prog_compiler_pic in
9572 "" | " "*) ;;
9573 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9574 esac
9575else
9576 lt_prog_compiler_pic=
9577 lt_prog_compiler_can_build_shared=no
9578fi
9579
9580fi
d7040cdb
SE
9581
9582
9583
9584
9585
9586
ce2cded5
L
9587#
9588# Check to make sure the static flag actually works.
9589#
9590wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
81ecdfbb
RW
9591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9592$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9593if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9594 $as_echo_n "(cached) " >&6
ce2cded5 9595else
b214d478 9596 lt_cv_prog_compiler_static_works=no
ce2cded5
L
9597 save_LDFLAGS="$LDFLAGS"
9598 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9599 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9600 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9601 # The linker can only warn and ignore the option if not recognized
9602 # So say no if there are warnings
9603 if test -s conftest.err; then
9604 # Append any errors to the config.log.
9605 cat conftest.err 1>&5
3725885a 9606 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
ce2cded5
L
9607 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9608 if diff conftest.exp conftest.er2 >/dev/null; then
b214d478 9609 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
9610 fi
9611 else
b214d478 9612 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
9613 fi
9614 fi
b214d478 9615 $RM -r conftest*
ce2cded5 9616 LDFLAGS="$save_LDFLAGS"
d7040cdb 9617
ce2cded5 9618fi
81ecdfbb
RW
9619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9620$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d7040cdb 9621
b214d478 9622if test x"$lt_cv_prog_compiler_static_works" = xyes; then
ce2cded5
L
9623 :
9624else
9625 lt_prog_compiler_static=
9626fi
d7040cdb
SE
9627
9628
9629
9630
9631
9632
9633
81ecdfbb
RW
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9635$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9636if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9637 $as_echo_n "(cached) " >&6
ce2cded5
L
9638else
9639 lt_cv_prog_compiler_c_o=no
9640 $RM -r conftest 2>/dev/null
9641 mkdir conftest
9642 cd conftest
9643 mkdir out
9644 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9645
ce2cded5
L
9646 lt_compiler_flag="-o out/conftest2.$ac_objext"
9647 # Insert the option either (1) after the last *FLAGS variable, or
9648 # (2) before a word containing "conftest.", or (3) at the end.
9649 # Note that $ac_compile itself does not contain backslashes and begins
9650 # with a dollar sign (not a hyphen), so the echo should work correctly.
9651 lt_compile=`echo "$ac_compile" | $SED \
9652 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9653 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9654 -e 's:$: $lt_compiler_flag:'`
3725885a 9655 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9656 (eval "$lt_compile" 2>out/conftest.err)
9657 ac_status=$?
9658 cat out/conftest.err >&5
3725885a 9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9660 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9661 then
9662 # The compiler can only warn and ignore the option if not recognized
9663 # So say no if there are warnings
3725885a 9664 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
9665 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9666 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9667 lt_cv_prog_compiler_c_o=yes
9668 fi
9669 fi
9670 chmod u+w . 2>&5
9671 $RM conftest*
9672 # SGI C++ compiler will create directory out/ii_files/ for
9673 # template instantiation
9674 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9675 $RM out/* && rmdir out
9676 cd ..
9677 $RM -r conftest
9678 $RM conftest*
d7040cdb 9679
ce2cded5 9680fi
81ecdfbb
RW
9681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9682$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
9683
9684
9685
9686
9687
9688
81ecdfbb
RW
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9690$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9691if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9692 $as_echo_n "(cached) " >&6
ce2cded5
L
9693else
9694 lt_cv_prog_compiler_c_o=no
9695 $RM -r conftest 2>/dev/null
9696 mkdir conftest
9697 cd conftest
9698 mkdir out
9699 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9700
ce2cded5
L
9701 lt_compiler_flag="-o out/conftest2.$ac_objext"
9702 # Insert the option either (1) after the last *FLAGS variable, or
9703 # (2) before a word containing "conftest.", or (3) at the end.
9704 # Note that $ac_compile itself does not contain backslashes and begins
9705 # with a dollar sign (not a hyphen), so the echo should work correctly.
9706 lt_compile=`echo "$ac_compile" | $SED \
9707 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9708 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9709 -e 's:$: $lt_compiler_flag:'`
3725885a 9710 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9711 (eval "$lt_compile" 2>out/conftest.err)
9712 ac_status=$?
9713 cat out/conftest.err >&5
3725885a 9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9715 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9716 then
9717 # The compiler can only warn and ignore the option if not recognized
9718 # So say no if there are warnings
3725885a 9719 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
9720 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9721 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9722 lt_cv_prog_compiler_c_o=yes
9723 fi
9724 fi
9725 chmod u+w . 2>&5
9726 $RM conftest*
9727 # SGI C++ compiler will create directory out/ii_files/ for
9728 # template instantiation
9729 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9730 $RM out/* && rmdir out
9731 cd ..
9732 $RM -r conftest
9733 $RM conftest*
9734
9735fi
81ecdfbb
RW
9736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9737$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
ce2cded5
L
9738
9739
9740
9741
9742hard_links="nottested"
9743if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9744 # do not overwrite the value of need_locks provided by the user
81ecdfbb
RW
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9746$as_echo_n "checking if we can lock with hard links... " >&6; }
ce2cded5
L
9747 hard_links=yes
9748 $RM conftest*
9749 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9750 touch conftest.a
9751 ln conftest.a conftest.b 2>&5 || hard_links=no
9752 ln conftest.a conftest.b 2>/dev/null && hard_links=no
81ecdfbb
RW
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9754$as_echo "$hard_links" >&6; }
ce2cded5 9755 if test "$hard_links" = no; then
81ecdfbb
RW
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9757$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
ce2cded5 9758 need_locks=warn
d7040cdb 9759 fi
d7040cdb 9760else
ce2cded5 9761 need_locks=no
d7040cdb 9762fi
d7040cdb 9763
d7040cdb 9764
d7040cdb 9765
d7040cdb 9766
d7040cdb 9767
d7040cdb 9768
81ecdfbb
RW
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9770$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d7040cdb 9771
ce2cded5
L
9772 runpath_var=
9773 allow_undefined_flag=
9774 always_export_symbols=no
9775 archive_cmds=
9776 archive_expsym_cmds=
9777 compiler_needs_object=no
9778 enable_shared_with_static_runtimes=no
9779 export_dynamic_flag_spec=
9780 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9781 hardcode_automatic=no
9782 hardcode_direct=no
9783 hardcode_direct_absolute=no
9784 hardcode_libdir_flag_spec=
9785 hardcode_libdir_flag_spec_ld=
9786 hardcode_libdir_separator=
9787 hardcode_minus_L=no
9788 hardcode_shlibpath_var=unsupported
9789 inherit_rpath=no
9790 link_all_deplibs=unknown
9791 module_cmds=
9792 module_expsym_cmds=
9793 old_archive_from_new_cmds=
9794 old_archive_from_expsyms_cmds=
9795 thread_safe_flag_spec=
9796 whole_archive_flag_spec=
9797 # include_expsyms should be a list of space-separated symbols to be *always*
9798 # included in the symbol list
9799 include_expsyms=
9800 # exclude_expsyms can be an extended regexp of symbols to exclude
9801 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9802 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9803 # as well as any symbol that contains `d'.
b214d478 9804 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
ce2cded5
L
9805 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9806 # platforms (ab)use it in PIC code, but their linkers get confused if
9807 # the symbol is explicitly referenced. Since portable code cannot
9808 # rely on this symbol name, it's probably fine to never include it in
9809 # preloaded symbol tables.
b214d478 9810 # Exclude shared library initialization/finalization symbols.
ce2cded5 9811 extract_expsyms_cmds=
d7040cdb 9812
ce2cded5 9813 case $host_os in
b214d478 9814 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9815 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9816 # When not using gcc, we currently assume that we are using
9817 # Microsoft Visual C++.
9818 if test "$GCC" != yes; then
9819 with_gnu_ld=no
9820 fi
d7040cdb 9821 ;;
ce2cded5
L
9822 interix*)
9823 # we just hope/assume this is gcc and not c89 (= MSVC++)
9824 with_gnu_ld=yes
9825 ;;
9826 openbsd*)
9827 with_gnu_ld=no
d7040cdb
SE
9828 ;;
9829 esac
d7040cdb 9830
ce2cded5 9831 ld_shlibs=yes
3725885a
RW
9832
9833 # On some targets, GNU ld is compatible enough with the native linker
9834 # that we're better off using the native interface for both.
9835 lt_use_gnu_ld_interface=no
ce2cded5 9836 if test "$with_gnu_ld" = yes; then
3725885a
RW
9837 case $host_os in
9838 aix*)
9839 # The AIX port of GNU ld has always aspired to compatibility
9840 # with the native linker. However, as the warning in the GNU ld
9841 # block says, versions before 2.19.5* couldn't really create working
9842 # shared libraries, regardless of the interface used.
9843 case `$LD -v 2>&1` in
9844 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9845 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9846 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9847 *)
9848 lt_use_gnu_ld_interface=yes
9849 ;;
9850 esac
9851 ;;
9852 *)
9853 lt_use_gnu_ld_interface=yes
9854 ;;
9855 esac
9856 fi
9857
9858 if test "$lt_use_gnu_ld_interface" = yes; then
ce2cded5
L
9859 # If archive_cmds runs LD, not CC, wlarc should be empty
9860 wlarc='${wl}'
d7040cdb 9861
ce2cded5
L
9862 # Set some defaults for GNU ld with shared library support. These
9863 # are reset later if shared libraries are not supported. Putting them
9864 # here allows them to be overridden if necessary.
9865 runpath_var=LD_RUN_PATH
9866 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9867 export_dynamic_flag_spec='${wl}--export-dynamic'
9868 # ancient GNU ld didn't support --whole-archive et. al.
9869 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9870 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9871 else
9872 whole_archive_flag_spec=
9873 fi
9874 supports_anon_versioning=no
9875 case `$LD -v 2>&1` in
3725885a 9876 *GNU\ gold*) supports_anon_versioning=yes ;;
ce2cded5
L
9877 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9878 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9879 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9880 *\ 2.11.*) ;; # other 2.11 versions
9881 *) supports_anon_versioning=yes ;;
9882 esac
d7040cdb 9883
ce2cded5
L
9884 # See if GNU ld supports shared libraries.
9885 case $host_os in
50e7d84b 9886 aix[3-9]*)
ce2cded5
L
9887 # On AIX/PPC, the GNU linker is very broken
9888 if test "$host_cpu" != ia64; then
9889 ld_shlibs=no
9890 cat <<_LT_EOF 1>&2
d7040cdb 9891
3725885a 9892*** Warning: the GNU linker, at least up to release 2.19, is reported
ce2cded5
L
9893*** to be unable to reliably create shared libraries on AIX.
9894*** Therefore, libtool is disabling shared libraries support. If you
3725885a
RW
9895*** really care for shared libraries, you may want to install binutils
9896*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9897*** You will then need to restart the configuration process.
d7040cdb 9898
ce2cded5
L
9899_LT_EOF
9900 fi
d7040cdb 9901 ;;
d7040cdb 9902
ce2cded5 9903 amigaos*)
b214d478
SE
9904 case $host_cpu in
9905 powerpc)
9906 # see comment about AmigaOS4 .so support
9907 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9908 archive_expsym_cmds=''
9909 ;;
9910 m68k)
9911 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)'
9912 hardcode_libdir_flag_spec='-L$libdir'
9913 hardcode_minus_L=yes
9914 ;;
9915 esac
ce2cded5 9916 ;;
d7040cdb 9917
ce2cded5
L
9918 beos*)
9919 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9920 allow_undefined_flag=unsupported
9921 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9922 # support --undefined. This deserves some investigation. FIXME
9923 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9924 else
9925 ld_shlibs=no
9926 fi
9927 ;;
d7040cdb 9928
b214d478 9929 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9930 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9931 # as there is no search path for DLLs.
9932 hardcode_libdir_flag_spec='-L$libdir'
3725885a 9933 export_dynamic_flag_spec='${wl}--export-all-symbols'
ce2cded5
L
9934 allow_undefined_flag=unsupported
9935 always_export_symbols=no
9936 enable_shared_with_static_runtimes=yes
9937 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9938
9939 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9940 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9941 # If the export-symbols file already is a .def file (1st line
9942 # is EXPORTS), use it as is; otherwise, prepend...
9943 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9944 cp $export_symbols $output_objdir/$soname.def;
d7040cdb 9945 else
ce2cded5
L
9946 echo EXPORTS > $output_objdir/$soname.def;
9947 cat $export_symbols >> $output_objdir/$soname.def;
9948 fi~
9949 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9950 else
9951 ld_shlibs=no
9952 fi
9953 ;;
d7040cdb 9954
3725885a
RW
9955 haiku*)
9956 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9957 link_all_deplibs=yes
9958 ;;
9959
ce2cded5
L
9960 interix[3-9]*)
9961 hardcode_direct=no
9962 hardcode_shlibpath_var=no
9963 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9964 export_dynamic_flag_spec='${wl}-E'
9965 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9966 # Instead, shared libraries are loaded at an image base (0x10000000 by
9967 # default) and relocated if they conflict, which is a slow very memory
9968 # consuming and fragmenting process. To avoid this, we pick a random,
9969 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9970 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9971 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9972 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'
9973 ;;
d7040cdb 9974
58e24671 9975 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
9976 tmp_diet=no
9977 if test "$host_os" = linux-dietlibc; then
9978 case $cc_basename in
9979 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9980 esac
9981 fi
9982 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9983 && test "$tmp_diet" = no
9984 then
9985 tmp_addflag=
b214d478 9986 tmp_sharedflag='-shared'
ce2cded5
L
9987 case $cc_basename,$host_cpu in
9988 pgcc*) # Portland Group C compiler
3725885a 9989 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
9990 tmp_addflag=' $pic_flag'
9991 ;;
3725885a
RW
9992 pgf77* | pgf90* | pgf95* | pgfortran*)
9993 # Portland Group f77 and f90 compilers
9994 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
9995 tmp_addflag=' $pic_flag -Mnomain' ;;
9996 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9997 tmp_addflag=' -i_dynamic' ;;
9998 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9999 tmp_addflag=' -i_dynamic -nofor_main' ;;
10000 ifc* | ifort*) # Intel Fortran compiler
10001 tmp_addflag=' -nofor_main' ;;
b214d478
SE
10002 lf95*) # Lahey Fortran 8.1
10003 whole_archive_flag_spec=
10004 tmp_sharedflag='--shared' ;;
3725885a 10005 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
b214d478
SE
10006 tmp_sharedflag='-qmkshrobj'
10007 tmp_addflag= ;;
3725885a
RW
10008 nvcc*) # Cuda Compiler Driver 2.2
10009 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'
10010 compiler_needs_object=yes
10011 ;;
ce2cded5
L
10012 esac
10013 case `$CC -V 2>&1 | sed 5q` in
10014 *Sun\ C*) # Sun C 5.9
3725885a 10015 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
10016 compiler_needs_object=yes
10017 tmp_sharedflag='-G' ;;
10018 *Sun\ F*) # Sun Fortran 8.3
10019 tmp_sharedflag='-G' ;;
ce2cded5
L
10020 esac
10021 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 10022
ce2cded5
L
10023 if test "x$supports_anon_versioning" = xyes; then
10024 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10025 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10026 echo "local: *; };" >> $output_objdir/$libname.ver~
10027 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10028 fi
b214d478
SE
10029
10030 case $cc_basename in
3725885a 10031 xlf* | bgf* | bgxlf* | mpixlf*)
b214d478
SE
10032 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10033 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10034 hardcode_libdir_flag_spec=
10035 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10036 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10037 if test "x$supports_anon_versioning" = xyes; then
10038 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10039 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10040 echo "local: *; };" >> $output_objdir/$libname.ver~
10041 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10042 fi
10043 ;;
10044 esac
ce2cded5
L
10045 else
10046 ld_shlibs=no
10047 fi
10048 ;;
d7040cdb 10049
ce2cded5
L
10050 netbsd*)
10051 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10052 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10053 wlarc=
10054 else
10055 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10056 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10057 fi
10058 ;;
10059
10060 solaris*)
10061 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10062 ld_shlibs=no
10063 cat <<_LT_EOF 1>&2
10064
10065*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10066*** create shared libraries on Solaris systems. Therefore, libtool
10067*** is disabling shared libraries support. We urge you to upgrade GNU
10068*** binutils to release 2.9.1 or newer. Another option is to modify
10069*** your PATH or compiler configuration so that the native linker is
10070*** used, and then restart.
10071
10072_LT_EOF
10073 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10074 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10075 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10076 else
10077 ld_shlibs=no
10078 fi
10079 ;;
10080
10081 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10082 case `$LD -v 2>&1` in
10083 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10084 ld_shlibs=no
10085 cat <<_LT_EOF 1>&2
10086
10087*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10088*** reliably create shared libraries on SCO systems. Therefore, libtool
10089*** is disabling shared libraries support. We urge you to upgrade GNU
10090*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10091*** your PATH or compiler configuration so that the native linker is
10092*** used, and then restart.
10093
10094_LT_EOF
10095 ;;
10096 *)
10097 # For security reasons, it is highly recommended that you always
10098 # use absolute paths for naming shared libraries, and exclude the
10099 # DT_RUNPATH tag from executables and libraries. But doing so
10100 # requires that you compile everything twice, which is a pain.
10101 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10102 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10103 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10104 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10105 else
10106 ld_shlibs=no
10107 fi
10108 ;;
10109 esac
10110 ;;
10111
10112 sunos4*)
10113 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10114 wlarc=
10115 hardcode_direct=yes
10116 hardcode_shlibpath_var=no
10117 ;;
10118
10119 *)
10120 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10121 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10122 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10123 else
10124 ld_shlibs=no
10125 fi
10126 ;;
10127 esac
10128
10129 if test "$ld_shlibs" = no; then
10130 runpath_var=
10131 hardcode_libdir_flag_spec=
10132 export_dynamic_flag_spec=
10133 whole_archive_flag_spec=
10134 fi
10135 else
10136 # PORTME fill in a description of your system's linker (not GNU ld)
10137 case $host_os in
10138 aix3*)
10139 allow_undefined_flag=unsupported
10140 always_export_symbols=yes
10141 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'
10142 # Note: this linker hardcodes the directories in LIBPATH if there
10143 # are no directories specified by -L.
10144 hardcode_minus_L=yes
10145 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10146 # Neither direct hardcoding nor static linking is supported with a
10147 # broken collect2.
10148 hardcode_direct=unsupported
10149 fi
10150 ;;
10151
50e7d84b 10152 aix[4-9]*)
ce2cded5
L
10153 if test "$host_cpu" = ia64; then
10154 # On IA64, the linker does run time linking by default, so we don't
10155 # have to do anything special.
10156 aix_use_runtimelinking=no
10157 exp_sym_flag='-Bexport'
10158 no_entry_flag=""
10159 else
10160 # If we're using GNU nm, then we don't want the "-C" option.
10161 # -C means demangle to AIX nm, but means don't demangle with GNU nm
3725885a
RW
10162 # Also, AIX nm treats weak defined symbols like other global
10163 # defined symbols, whereas GNU nm marks them as "W".
ce2cded5 10164 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
3725885a 10165 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
ce2cded5
L
10166 else
10167 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10168 fi
10169 aix_use_runtimelinking=no
10170
10171 # Test if we are trying to use run time linking or normal
10172 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10173 # need to do runtime linking.
50e7d84b 10174 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
ce2cded5
L
10175 for ld_flag in $LDFLAGS; do
10176 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10177 aix_use_runtimelinking=yes
10178 break
10179 fi
10180 done
10181 ;;
10182 esac
10183
10184 exp_sym_flag='-bexport'
10185 no_entry_flag='-bnoentry'
10186 fi
10187
10188 # When large executables or shared objects are built, AIX ld can
10189 # have problems creating the table of contents. If linking a library
10190 # or program results in "error TOC overflow" add -mminimal-toc to
10191 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10192 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10193
10194 archive_cmds=''
10195 hardcode_direct=yes
10196 hardcode_direct_absolute=yes
10197 hardcode_libdir_separator=':'
10198 link_all_deplibs=yes
10199 file_list_spec='${wl}-f,'
10200
10201 if test "$GCC" = yes; then
10202 case $host_os in aix4.[012]|aix4.[012].*)
10203 # We only want to do this on AIX 4.2 and lower, the check
10204 # below for broken collect2 doesn't work under 4.3+
10205 collect2name=`${CC} -print-prog-name=collect2`
10206 if test -f "$collect2name" &&
10207 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10208 then
10209 # We have reworked collect2
10210 :
10211 else
10212 # We have old collect2
10213 hardcode_direct=unsupported
10214 # It fails to find uninstalled libraries when the uninstalled
10215 # path is not listed in the libpath. Setting hardcode_minus_L
10216 # to unsupported forces relinking
10217 hardcode_minus_L=yes
10218 hardcode_libdir_flag_spec='-L$libdir'
10219 hardcode_libdir_separator=
10220 fi
10221 ;;
10222 esac
10223 shared_flag='-shared'
10224 if test "$aix_use_runtimelinking" = yes; then
10225 shared_flag="$shared_flag "'${wl}-G'
10226 fi
10227 else
10228 # not using gcc
10229 if test "$host_cpu" = ia64; then
10230 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10231 # chokes on -Wl,-G. The following line is correct:
10232 shared_flag='-G'
10233 else
10234 if test "$aix_use_runtimelinking" = yes; then
10235 shared_flag='${wl}-G'
10236 else
10237 shared_flag='${wl}-bM:SRE'
10238 fi
10239 fi
10240 fi
10241
b214d478 10242 export_dynamic_flag_spec='${wl}-bexpall'
ce2cded5
L
10243 # It seems that -bexpall does not export symbols beginning with
10244 # underscore (_), so it is better to generate a list of symbols to export.
10245 always_export_symbols=yes
10246 if test "$aix_use_runtimelinking" = yes; then
10247 # Warning - without using the other runtime loading flags (-brtl),
10248 # -berok will link without error, but may produce a broken library.
10249 allow_undefined_flag='-berok'
10250 # Determine the default libpath from the value encoded in an
10251 # empty executable.
81ecdfbb 10252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
10253/* end confdefs.h. */
10254
10255int
10256main ()
10257{
10258
10259 ;
10260 return 0;
10261}
10262_ACEOF
81ecdfbb 10263if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 10264
ce2cded5
L
10265lt_aix_libpath_sed='
10266 /Import File Strings/,/^$/ {
10267 /^0/ {
10268 s/^0 *\(.*\)$/\1/
10269 p
10270 }
10271 }'
10272aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10273# Check for a 64-bit object if we didn't find anything.
10274if test -z "$aix_libpath"; then
10275 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10276fi
d7040cdb 10277fi
81ecdfbb
RW
10278rm -f core conftest.err conftest.$ac_objext \
10279 conftest$ac_exeext conftest.$ac_ext
ce2cded5 10280if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 10281
ce2cded5 10282 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
3725885a 10283 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
10284 else
10285 if test "$host_cpu" = ia64; then
10286 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10287 allow_undefined_flag="-z nodefs"
10288 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"
10289 else
10290 # Determine the default libpath from the value encoded in an
10291 # empty executable.
81ecdfbb 10292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 10293/* end confdefs.h. */
d7040cdb 10294
ce2cded5
L
10295int
10296main ()
10297{
d7040cdb 10298
ce2cded5
L
10299 ;
10300 return 0;
10301}
10302_ACEOF
81ecdfbb 10303if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 10304
ce2cded5
L
10305lt_aix_libpath_sed='
10306 /Import File Strings/,/^$/ {
10307 /^0/ {
10308 s/^0 *\(.*\)$/\1/
10309 p
10310 }
10311 }'
10312aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10313# Check for a 64-bit object if we didn't find anything.
10314if test -z "$aix_libpath"; then
10315 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10316fi
ce2cded5 10317fi
81ecdfbb
RW
10318rm -f core conftest.err conftest.$ac_objext \
10319 conftest$ac_exeext conftest.$ac_ext
ce2cded5 10320if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 10321
ce2cded5
L
10322 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10323 # Warning - without using the other run time loading flags,
10324 # -berok will link without error, but may produce a broken library.
10325 no_undefined_flag=' ${wl}-bernotok'
10326 allow_undefined_flag=' ${wl}-berok'
3725885a
RW
10327 if test "$with_gnu_ld" = yes; then
10328 # We only use this code for GNU lds that support --whole-archive.
10329 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10330 else
10331 # Exported symbols can be pulled into shared objects from archives
10332 whole_archive_flag_spec='$convenience'
10333 fi
ce2cded5
L
10334 archive_cmds_need_lc=yes
10335 # This is similar to how AIX traditionally builds its shared libraries.
10336 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'
10337 fi
10338 fi
10339 ;;
d7040cdb 10340
ce2cded5 10341 amigaos*)
b214d478
SE
10342 case $host_cpu in
10343 powerpc)
10344 # see comment about AmigaOS4 .so support
10345 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10346 archive_expsym_cmds=''
10347 ;;
10348 m68k)
10349 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)'
10350 hardcode_libdir_flag_spec='-L$libdir'
10351 hardcode_minus_L=yes
10352 ;;
10353 esac
ce2cded5
L
10354 ;;
10355
10356 bsdi[45]*)
10357 export_dynamic_flag_spec=-rdynamic
10358 ;;
10359
b214d478 10360 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
10361 # When not using gcc, we currently assume that we are using
10362 # Microsoft Visual C++.
10363 # hardcode_libdir_flag_spec is actually meaningless, as there is
10364 # no search path for DLLs.
10365 hardcode_libdir_flag_spec=' '
10366 allow_undefined_flag=unsupported
10367 # Tell ltmain to make .lib files, not .a files.
10368 libext=lib
10369 # Tell ltmain to make .dll files, not .so files.
10370 shrext_cmds=".dll"
10371 # FIXME: Setting linknames here is a bad hack.
3725885a 10372 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
ce2cded5
L
10373 # The linker will automatically build a .lib file if we build a DLL.
10374 old_archive_from_new_cmds='true'
10375 # FIXME: Should let the user specify the lib program.
10376 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10377 fix_srcfile_path='`cygpath -w "$srcfile"`'
10378 enable_shared_with_static_runtimes=yes
10379 ;;
10380
10381 darwin* | rhapsody*)
d7040cdb 10382
b214d478
SE
10383
10384 archive_cmds_need_lc=no
10385 hardcode_direct=no
10386 hardcode_automatic=yes
10387 hardcode_shlibpath_var=unsupported
3725885a
RW
10388 if test "$lt_cv_ld_force_load" = "yes"; then
10389 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\"`'
10390 else
10391 whole_archive_flag_spec=''
10392 fi
b214d478
SE
10393 link_all_deplibs=yes
10394 allow_undefined_flag="$_lt_dar_allow_undefined"
10395 case $cc_basename in
10396 ifort*) _lt_dar_can_shared=yes ;;
10397 *) _lt_dar_can_shared=$GCC ;;
10398 esac
10399 if test "$_lt_dar_can_shared" = "yes"; then
3725885a 10400 output_verbose_link_cmd=func_echo_all
b214d478
SE
10401 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10402 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10403 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}"
10404 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}"
10405
10406 else
10407 ld_shlibs=no
10408 fi
10409
ce2cded5 10410 ;;
d7040cdb 10411
ce2cded5
L
10412 dgux*)
10413 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10414 hardcode_libdir_flag_spec='-L$libdir'
10415 hardcode_shlibpath_var=no
10416 ;;
d7040cdb 10417
ce2cded5
L
10418 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10419 # support. Future versions do this automatically, but an explicit c++rt0.o
10420 # does not break anything, and helps significantly (at the cost of a little
10421 # extra space).
10422 freebsd2.2*)
10423 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10424 hardcode_libdir_flag_spec='-R$libdir'
10425 hardcode_direct=yes
10426 hardcode_shlibpath_var=no
d7040cdb 10427 ;;
d7040cdb 10428
ce2cded5 10429 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6d2920c8 10430 freebsd2.*)
ce2cded5
L
10431 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10432 hardcode_direct=yes
10433 hardcode_minus_L=yes
10434 hardcode_shlibpath_var=no
10435 ;;
d7040cdb 10436
ce2cded5
L
10437 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10438 freebsd* | dragonfly*)
10439 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10440 hardcode_libdir_flag_spec='-R$libdir'
10441 hardcode_direct=yes
10442 hardcode_shlibpath_var=no
10443 ;;
d7040cdb 10444
ce2cded5
L
10445 hpux9*)
10446 if test "$GCC" = yes; then
10447 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'
10448 else
10449 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'
10450 fi
10451 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10452 hardcode_libdir_separator=:
10453 hardcode_direct=yes
d7040cdb 10454
ce2cded5
L
10455 # hardcode_minus_L: Not really in the search PATH,
10456 # but as the default location of the library.
10457 hardcode_minus_L=yes
10458 export_dynamic_flag_spec='${wl}-E'
10459 ;;
d7040cdb 10460
ce2cded5 10461 hpux10*)
3725885a 10462 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
ce2cded5
L
10463 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10464 else
10465 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10466 fi
10467 if test "$with_gnu_ld" = no; then
10468 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10469 hardcode_libdir_flag_spec_ld='+b $libdir'
10470 hardcode_libdir_separator=:
10471 hardcode_direct=yes
10472 hardcode_direct_absolute=yes
10473 export_dynamic_flag_spec='${wl}-E'
10474 # hardcode_minus_L: Not really in the search PATH,
10475 # but as the default location of the library.
10476 hardcode_minus_L=yes
10477 fi
10478 ;;
d7040cdb 10479
ce2cded5 10480 hpux11*)
3725885a 10481 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
ce2cded5
L
10482 case $host_cpu in
10483 hppa*64*)
10484 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10485 ;;
10486 ia64*)
b214d478 10487 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
10488 ;;
10489 *)
10490 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10491 ;;
10492 esac
10493 else
10494 case $host_cpu in
10495 hppa*64*)
10496 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10497 ;;
10498 ia64*)
10499 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10500 ;;
10501 *)
3725885a
RW
10502
10503 # Older versions of the 11.00 compiler do not understand -b yet
10504 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10506$as_echo_n "checking if $CC understands -b... " >&6; }
10507if test "${lt_cv_prog_compiler__b+set}" = set; then :
10508 $as_echo_n "(cached) " >&6
10509else
10510 lt_cv_prog_compiler__b=no
10511 save_LDFLAGS="$LDFLAGS"
10512 LDFLAGS="$LDFLAGS -b"
10513 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10514 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10515 # The linker can only warn and ignore the option if not recognized
10516 # So say no if there are warnings
10517 if test -s conftest.err; then
10518 # Append any errors to the config.log.
10519 cat conftest.err 1>&5
10520 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10521 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10522 if diff conftest.exp conftest.er2 >/dev/null; then
10523 lt_cv_prog_compiler__b=yes
10524 fi
10525 else
10526 lt_cv_prog_compiler__b=yes
10527 fi
10528 fi
10529 $RM -r conftest*
10530 LDFLAGS="$save_LDFLAGS"
10531
10532fi
10533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10534$as_echo "$lt_cv_prog_compiler__b" >&6; }
10535
10536if test x"$lt_cv_prog_compiler__b" = xyes; then
10537 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10538else
10539 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10540fi
10541
ce2cded5
L
10542 ;;
10543 esac
10544 fi
10545 if test "$with_gnu_ld" = no; then
10546 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10547 hardcode_libdir_separator=:
d7040cdb 10548
ce2cded5
L
10549 case $host_cpu in
10550 hppa*64*|ia64*)
10551 hardcode_direct=no
10552 hardcode_shlibpath_var=no
10553 ;;
10554 *)
10555 hardcode_direct=yes
10556 hardcode_direct_absolute=yes
10557 export_dynamic_flag_spec='${wl}-E'
d7040cdb 10558
ce2cded5
L
10559 # hardcode_minus_L: Not really in the search PATH,
10560 # but as the default location of the library.
10561 hardcode_minus_L=yes
10562 ;;
10563 esac
10564 fi
10565 ;;
d7040cdb 10566
ce2cded5
L
10567 irix5* | irix6* | nonstopux*)
10568 if test "$GCC" = yes; then
3725885a 10569 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
10570 # Try to use the -exported_symbol ld option, if it does not
10571 # work, assume that -exports_file does not work either and
10572 # implicitly export all symbols.
10573 save_LDFLAGS="$LDFLAGS"
10574 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
81ecdfbb
RW
10575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10576/* end confdefs.h. */
ce2cded5
L
10577int foo(void) {}
10578_ACEOF
81ecdfbb 10579if ac_fn_c_try_link "$LINENO"; then :
3725885a 10580 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 10581
ce2cded5 10582fi
81ecdfbb
RW
10583rm -f core conftest.err conftest.$ac_objext \
10584 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
10585 LDFLAGS="$save_LDFLAGS"
10586 else
3725885a
RW
10587 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'
10588 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
10589 fi
10590 archive_cmds_need_lc='no'
10591 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10592 hardcode_libdir_separator=:
10593 inherit_rpath=yes
10594 link_all_deplibs=yes
10595 ;;
d7040cdb 10596
ce2cded5
L
10597 netbsd*)
10598 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10599 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10600 else
10601 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10602 fi
10603 hardcode_libdir_flag_spec='-R$libdir'
10604 hardcode_direct=yes
10605 hardcode_shlibpath_var=no
10606 ;;
d7040cdb 10607
ce2cded5
L
10608 newsos6)
10609 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10610 hardcode_direct=yes
10611 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10612 hardcode_libdir_separator=:
10613 hardcode_shlibpath_var=no
10614 ;;
d7040cdb 10615
ce2cded5
L
10616 *nto* | *qnx*)
10617 ;;
d7040cdb 10618
ce2cded5 10619 openbsd*)
b214d478
SE
10620 if test -f /usr/libexec/ld.so; then
10621 hardcode_direct=yes
10622 hardcode_shlibpath_var=no
10623 hardcode_direct_absolute=yes
10624 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
ce2cded5 10625 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
b214d478 10626 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
ce2cded5 10627 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
b214d478
SE
10628 export_dynamic_flag_spec='${wl}-E'
10629 else
10630 case $host_os in
10631 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10632 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10633 hardcode_libdir_flag_spec='-R$libdir'
10634 ;;
10635 *)
10636 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10637 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10638 ;;
10639 esac
10640 fi
10641 else
10642 ld_shlibs=no
ce2cded5
L
10643 fi
10644 ;;
d7040cdb 10645
ce2cded5
L
10646 os2*)
10647 hardcode_libdir_flag_spec='-L$libdir'
10648 hardcode_minus_L=yes
10649 allow_undefined_flag=unsupported
3725885a 10650 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
10651 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10652 ;;
d7040cdb 10653
ce2cded5
L
10654 osf3*)
10655 if test "$GCC" = yes; then
10656 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 10657 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
10658 else
10659 allow_undefined_flag=' -expect_unresolved \*'
3725885a 10660 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
10661 fi
10662 archive_cmds_need_lc='no'
10663 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10664 hardcode_libdir_separator=:
10665 ;;
d7040cdb 10666
ce2cded5
L
10667 osf4* | osf5*) # as osf3* with the addition of -msym flag
10668 if test "$GCC" = yes; then
10669 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 10670 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
10671 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10672 else
10673 allow_undefined_flag=' -expect_unresolved \*'
3725885a 10674 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 10675 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 10676 $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 10677
ce2cded5
L
10678 # Both c and cxx compiler support -rpath directly
10679 hardcode_libdir_flag_spec='-rpath $libdir'
10680 fi
10681 archive_cmds_need_lc='no'
10682 hardcode_libdir_separator=:
10683 ;;
d7040cdb 10684
ce2cded5
L
10685 solaris*)
10686 no_undefined_flag=' -z defs'
10687 if test "$GCC" = yes; then
10688 wlarc='${wl}'
10689 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10690 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10691 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10692 else
10693 case `$CC -V 2>&1` in
10694 *"Compilers 5.0"*)
10695 wlarc=''
10696 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10697 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10698 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10699 ;;
10700 *)
10701 wlarc='${wl}'
10702 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10703 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10704 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10705 ;;
10706 esac
10707 fi
10708 hardcode_libdir_flag_spec='-R$libdir'
10709 hardcode_shlibpath_var=no
10710 case $host_os in
10711 solaris2.[0-5] | solaris2.[0-5].*) ;;
10712 *)
10713 # The compiler driver will combine and reorder linker options,
10714 # but understands `-z linker_flag'. GCC discards it without `$wl',
10715 # but is careful enough not to reorder.
10716 # Supported since Solaris 2.6 (maybe 2.5.1?)
10717 if test "$GCC" = yes; then
10718 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10719 else
10720 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10721 fi
10722 ;;
10723 esac
10724 link_all_deplibs=yes
10725 ;;
d7040cdb 10726
ce2cded5
L
10727 sunos4*)
10728 if test "x$host_vendor" = xsequent; then
10729 # Use $CC to link under sequent, because it throws in some extra .o
10730 # files that make .init and .fini sections work.
10731 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10732 else
10733 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10734 fi
10735 hardcode_libdir_flag_spec='-L$libdir'
10736 hardcode_direct=yes
10737 hardcode_minus_L=yes
10738 hardcode_shlibpath_var=no
10739 ;;
d7040cdb 10740
ce2cded5
L
10741 sysv4)
10742 case $host_vendor in
10743 sni)
10744 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10745 hardcode_direct=yes # is this really true???
10746 ;;
10747 siemens)
10748 ## LD is ld it makes a PLAMLIB
10749 ## CC just makes a GrossModule.
10750 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10751 reload_cmds='$CC -r -o $output$reload_objs'
10752 hardcode_direct=no
10753 ;;
10754 motorola)
10755 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10756 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10757 ;;
10758 esac
10759 runpath_var='LD_RUN_PATH'
10760 hardcode_shlibpath_var=no
10761 ;;
d7040cdb 10762
ce2cded5
L
10763 sysv4.3*)
10764 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10765 hardcode_shlibpath_var=no
10766 export_dynamic_flag_spec='-Bexport'
10767 ;;
d7040cdb 10768
ce2cded5
L
10769 sysv4*MP*)
10770 if test -d /usr/nec; then
10771 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10772 hardcode_shlibpath_var=no
10773 runpath_var=LD_RUN_PATH
10774 hardcode_runpath_var=yes
10775 ld_shlibs=yes
10776 fi
10777 ;;
d7040cdb 10778
ce2cded5
L
10779 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10780 no_undefined_flag='${wl}-z,text'
10781 archive_cmds_need_lc=no
10782 hardcode_shlibpath_var=no
10783 runpath_var='LD_RUN_PATH'
d7040cdb 10784
ce2cded5
L
10785 if test "$GCC" = yes; then
10786 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10787 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10788 else
10789 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10790 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10791 fi
10792 ;;
d7040cdb 10793
ce2cded5
L
10794 sysv5* | sco3.2v5* | sco5v6*)
10795 # Note: We can NOT use -z defs as we might desire, because we do not
10796 # link with -lc, and that would cause any symbols used from libc to
10797 # always be unresolved, which means just about no library would
10798 # ever link correctly. If we're not using GNU ld we use -z text
10799 # though, which does catch some bad symbols but isn't as heavy-handed
10800 # as -z defs.
10801 no_undefined_flag='${wl}-z,text'
10802 allow_undefined_flag='${wl}-z,nodefs'
10803 archive_cmds_need_lc=no
10804 hardcode_shlibpath_var=no
10805 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10806 hardcode_libdir_separator=':'
10807 link_all_deplibs=yes
10808 export_dynamic_flag_spec='${wl}-Bexport'
10809 runpath_var='LD_RUN_PATH'
d7040cdb 10810
ce2cded5
L
10811 if test "$GCC" = yes; then
10812 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10813 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10814 else
10815 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10816 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10817 fi
10818 ;;
d7040cdb 10819
ce2cded5
L
10820 uts4*)
10821 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10822 hardcode_libdir_flag_spec='-L$libdir'
10823 hardcode_shlibpath_var=no
10824 ;;
d7040cdb 10825
ce2cded5
L
10826 *)
10827 ld_shlibs=no
10828 ;;
10829 esac
d7040cdb 10830
ce2cded5
L
10831 if test x$host_vendor = xsni; then
10832 case $host in
10833 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10834 export_dynamic_flag_spec='${wl}-Blargedynsym'
10835 ;;
10836 esac
10837 fi
10838 fi
d7040cdb 10839
81ecdfbb
RW
10840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10841$as_echo "$ld_shlibs" >&6; }
ce2cded5 10842test "$ld_shlibs" = no && can_build_shared=no
d7040cdb 10843
ce2cded5 10844with_gnu_ld=$with_gnu_ld
d7040cdb
SE
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
ce2cded5
L
10860#
10861# Do we need to explicitly link libc?
10862#
10863case "x$archive_cmds_need_lc" in
10864x|xyes)
10865 # Assume -lc should be added
10866 archive_cmds_need_lc=yes
d7040cdb 10867
ce2cded5
L
10868 if test "$enable_shared" = yes && test "$GCC" = yes; then
10869 case $archive_cmds in
10870 *'~'*)
10871 # FIXME: we may have to deal with multi-command sequences.
10872 ;;
10873 '$CC '*)
10874 # Test whether the compiler implicitly links with -lc since on some
10875 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10876 # to ld, don't add -lc before -lgcc.
81ecdfbb
RW
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10878$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10879if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10880 $as_echo_n "(cached) " >&6
39144654
RW
10881else
10882 $RM conftest*
10883 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 10884
81ecdfbb 10885 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
ce2cded5
L
10886 (eval $ac_compile) 2>&5
10887 ac_status=$?
81ecdfbb
RW
10888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10889 test $ac_status = 0; } 2>conftest.err; then
39144654
RW
10890 soname=conftest
10891 lib=conftest
10892 libobjs=conftest.$ac_objext
10893 deplibs=
10894 wl=$lt_prog_compiler_wl
10895 pic_flag=$lt_prog_compiler_pic
10896 compiler_flags=-v
10897 linker_flags=-v
10898 verstring=
10899 output_objdir=.
10900 libname=conftest
10901 lt_save_allow_undefined_flag=$allow_undefined_flag
10902 allow_undefined_flag=
81ecdfbb 10903 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
ce2cded5
L
10904 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10905 ac_status=$?
81ecdfbb
RW
10906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10907 test $ac_status = 0; }
39144654
RW
10908 then
10909 lt_cv_archive_cmds_need_lc=no
10910 else
10911 lt_cv_archive_cmds_need_lc=yes
10912 fi
10913 allow_undefined_flag=$lt_save_allow_undefined_flag
10914 else
10915 cat conftest.err 1>&5
10916 fi
10917 $RM conftest*
10918
10919fi
81ecdfbb
RW
10920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10921$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
39144654 10922 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
ce2cded5
L
10923 ;;
10924 esac
10925 fi
10926 ;;
10927esac
d7040cdb
SE
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
d7040cdb 10955
d7040cdb 10956
d7040cdb
SE
10957
10958
10959
10960
10961
10962
d7040cdb 10963
d7040cdb 10964
d7040cdb 10965
d7040cdb 10966
d7040cdb 10967
d7040cdb 10968
d7040cdb 10969
d7040cdb 10970
d7040cdb 10971
d7040cdb 10972
d7040cdb 10973
d7040cdb 10974
d7040cdb 10975
d7040cdb 10976
d7040cdb 10977
d7040cdb 10978
d7040cdb 10979
d7040cdb 10980
d7040cdb 10981
d7040cdb 10982
d7040cdb 10983
d7040cdb 10984
d7040cdb 10985
d7040cdb 10986
d7040cdb 10987
d7040cdb 10988
d7040cdb 10989
d7040cdb 10990
ce2cded5
L
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
81ecdfbb
RW
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11086$as_echo_n "checking dynamic linker characteristics... " >&6; }
b214d478
SE
11087
11088if test "$GCC" = yes; then
ce2cded5
L
11089 case $host_os in
11090 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11091 *) lt_awk_arg="/^libraries:/" ;;
11092 esac
3725885a
RW
11093 case $host_os in
11094 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11095 *) lt_sed_strip_eq="s,=/,/,g" ;;
11096 esac
11097 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11098 case $lt_search_path_spec in
11099 *\;*)
ce2cded5
L
11100 # if the path contains ";" then we assume it to be the separator
11101 # otherwise default to the standard path separator (i.e. ":") - it is
11102 # assumed that no part of a normal pathname contains ";" but that should
11103 # okay in the real world where ";" in dirpaths is itself problematic.
3725885a
RW
11104 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11105 ;;
11106 *)
11107 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11108 ;;
11109 esac
ce2cded5
L
11110 # Ok, now we have the path, separated by spaces, we can step through it
11111 # and add multilib dir if necessary.
11112 lt_tmp_lt_search_path_spec=
11113 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11114 for lt_sys_path in $lt_search_path_spec; do
11115 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11116 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11117 else
11118 test -d "$lt_sys_path" && \
11119 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11120 fi
11121 done
3725885a 11122 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
ce2cded5
L
11123BEGIN {RS=" "; FS="/|\n";} {
11124 lt_foo="";
11125 lt_count=0;
11126 for (lt_i = NF; lt_i > 0; lt_i--) {
11127 if ($lt_i != "" && $lt_i != ".") {
11128 if ($lt_i == "..") {
11129 lt_count++;
11130 } else {
11131 if (lt_count == 0) {
11132 lt_foo="/" $lt_i lt_foo;
11133 } else {
11134 lt_count--;
11135 }
11136 }
11137 }
11138 }
11139 if (lt_foo != "") { lt_freq[lt_foo]++; }
11140 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11141}'`
3725885a
RW
11142 # AWK program above erroneously prepends '/' to C:/dos/paths
11143 # for these hosts.
11144 case $host_os in
11145 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11146 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11147 esac
11148 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
d7040cdb 11149else
ce2cded5
L
11150 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11151fi
11152library_names_spec=
11153libname_spec='lib$name'
11154soname_spec=
11155shrext_cmds=".so"
11156postinstall_cmds=
11157postuninstall_cmds=
11158finish_cmds=
11159finish_eval=
11160shlibpath_var=
11161shlibpath_overrides_runpath=unknown
11162version_type=none
11163dynamic_linker="$host_os ld.so"
11164sys_lib_dlsearch_path_spec="/lib /usr/lib"
11165need_lib_prefix=unknown
11166hardcode_into_libs=no
11167
11168# when you set need_version to no, make sure it does not cause -set_version
11169# flags to be left without arguments
11170need_version=unknown
11171
11172case $host_os in
11173aix3*)
11174 version_type=linux
11175 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11176 shlibpath_var=LIBPATH
11177
11178 # AIX 3 has no versioning support, so we append a major version to the name.
11179 soname_spec='${libname}${release}${shared_ext}$major'
11180 ;;
11181
50e7d84b 11182aix[4-9]*)
ce2cded5
L
11183 version_type=linux
11184 need_lib_prefix=no
11185 need_version=no
11186 hardcode_into_libs=yes
11187 if test "$host_cpu" = ia64; then
11188 # AIX 5 supports IA64
11189 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11190 shlibpath_var=LD_LIBRARY_PATH
11191 else
11192 # With GCC up to 2.95.x, collect2 would create an import file
11193 # for dependence libraries. The import file would start with
11194 # the line `#! .'. This would cause the generated library to
11195 # depend on `.', always an invalid library. This was fixed in
11196 # development snapshots of GCC prior to 3.0.
11197 case $host_os in
11198 aix4 | aix4.[01] | aix4.[01].*)
11199 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11200 echo ' yes '
11201 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11202 :
11203 else
11204 can_build_shared=no
11205 fi
11206 ;;
11207 esac
11208 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11209 # soname into executable. Probably we can add versioning support to
11210 # collect2, so additional links can be useful in future.
11211 if test "$aix_use_runtimelinking" = yes; then
11212 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11213 # instead of lib<name>.a to let people know that these are not
11214 # typical AIX shared libraries.
11215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11216 else
11217 # We preserve .a as extension for shared libraries through AIX4.2
11218 # and later when we are not doing run time linking.
11219 library_names_spec='${libname}${release}.a $libname.a'
11220 soname_spec='${libname}${release}${shared_ext}$major'
11221 fi
11222 shlibpath_var=LIBPATH
11223 fi
11224 ;;
11225
11226amigaos*)
b214d478
SE
11227 case $host_cpu in
11228 powerpc)
11229 # Since July 2007 AmigaOS4 officially supports .so libraries.
11230 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11232 ;;
11233 m68k)
ce2cded5
L
11234 library_names_spec='$libname.ixlibrary $libname.a'
11235 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3725885a 11236 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
11237 ;;
11238 esac
ce2cded5
L
11239 ;;
11240
11241beos*)
11242 library_names_spec='${libname}${shared_ext}'
11243 dynamic_linker="$host_os ld.so"
11244 shlibpath_var=LIBRARY_PATH
11245 ;;
11246
11247bsdi[45]*)
11248 version_type=linux
11249 need_version=no
11250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11251 soname_spec='${libname}${release}${shared_ext}$major'
11252 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11253 shlibpath_var=LD_LIBRARY_PATH
11254 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11255 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11256 # the default ld.so.conf also contains /usr/contrib/lib and
11257 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11258 # libtool to hard-code these into programs
11259 ;;
11260
b214d478 11261cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
11262 version_type=windows
11263 shrext_cmds=".dll"
11264 need_version=no
11265 need_lib_prefix=no
11266
b214d478
SE
11267 case $GCC,$host_os in
11268 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
ce2cded5
L
11269 library_names_spec='$libname.dll.a'
11270 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11271 postinstall_cmds='base_file=`basename \${file}`~
11272 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11273 dldir=$destdir/`dirname \$dlpath`~
11274 test -d \$dldir || mkdir -p \$dldir~
11275 $install_prog $dir/$dlname \$dldir/$dlname~
11276 chmod a+x \$dldir/$dlname~
11277 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11278 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11279 fi'
11280 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11281 dlpath=$dir/\$dldll~
11282 $RM \$dlpath'
11283 shlibpath_overrides_runpath=yes
11284
11285 case $host_os in
11286 cygwin*)
11287 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11288 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
3725885a
RW
11289
11290 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
ce2cded5 11291 ;;
b214d478 11292 mingw* | cegcc*)
ce2cded5
L
11293 # MinGW DLLs use traditional 'lib' prefix
11294 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
ce2cded5
L
11295 ;;
11296 pw32*)
11297 # pw32 DLLs use 'pw' prefix rather than 'lib'
11298 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11299 ;;
11300 esac
11301 ;;
11302
11303 *)
11304 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11305 ;;
11306 esac
11307 dynamic_linker='Win32 ld.exe'
11308 # FIXME: first we should search . and the directory the executable is in
11309 shlibpath_var=PATH
11310 ;;
11311
11312darwin* | rhapsody*)
11313 dynamic_linker="$host_os dyld"
11314 version_type=darwin
11315 need_lib_prefix=no
11316 need_version=no
11317 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11318 soname_spec='${libname}${release}${major}$shared_ext'
11319 shlibpath_overrides_runpath=yes
11320 shlibpath_var=DYLD_LIBRARY_PATH
11321 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11322
11323 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11324 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11325 ;;
11326
11327dgux*)
11328 version_type=linux
11329 need_lib_prefix=no
11330 need_version=no
11331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11332 soname_spec='${libname}${release}${shared_ext}$major'
11333 shlibpath_var=LD_LIBRARY_PATH
11334 ;;
11335
ce2cded5
L
11336freebsd* | dragonfly*)
11337 # DragonFly does not have aout. When/if they implement a new
11338 # versioning mechanism, adjust this.
11339 if test -x /usr/bin/objformat; then
11340 objformat=`/usr/bin/objformat`
11341 else
11342 case $host_os in
6d2920c8 11343 freebsd[23].*) objformat=aout ;;
ce2cded5
L
11344 *) objformat=elf ;;
11345 esac
11346 fi
11347 version_type=freebsd-$objformat
11348 case $version_type in
11349 freebsd-elf*)
11350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11351 need_version=no
11352 need_lib_prefix=no
11353 ;;
11354 freebsd-*)
11355 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11356 need_version=yes
11357 ;;
11358 esac
11359 shlibpath_var=LD_LIBRARY_PATH
11360 case $host_os in
6d2920c8 11361 freebsd2.*)
ce2cded5
L
11362 shlibpath_overrides_runpath=yes
11363 ;;
11364 freebsd3.[01]* | freebsdelf3.[01]*)
11365 shlibpath_overrides_runpath=yes
11366 hardcode_into_libs=yes
11367 ;;
11368 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11369 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11370 shlibpath_overrides_runpath=no
11371 hardcode_into_libs=yes
11372 ;;
11373 *) # from 4.6 on, and DragonFly
11374 shlibpath_overrides_runpath=yes
11375 hardcode_into_libs=yes
11376 ;;
11377 esac
11378 ;;
11379
11380gnu*)
11381 version_type=linux
11382 need_lib_prefix=no
11383 need_version=no
11384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11385 soname_spec='${libname}${release}${shared_ext}$major'
11386 shlibpath_var=LD_LIBRARY_PATH
11387 hardcode_into_libs=yes
11388 ;;
11389
3725885a
RW
11390haiku*)
11391 version_type=linux
11392 need_lib_prefix=no
11393 need_version=no
11394 dynamic_linker="$host_os runtime_loader"
11395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11396 soname_spec='${libname}${release}${shared_ext}$major'
11397 shlibpath_var=LIBRARY_PATH
11398 shlibpath_overrides_runpath=yes
11399 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11400 hardcode_into_libs=yes
11401 ;;
11402
ce2cded5
L
11403hpux9* | hpux10* | hpux11*)
11404 # Give a soname corresponding to the major version so that dld.sl refuses to
11405 # link against other versions.
11406 version_type=sunos
11407 need_lib_prefix=no
11408 need_version=no
11409 case $host_cpu in
11410 ia64*)
11411 shrext_cmds='.so'
11412 hardcode_into_libs=yes
11413 dynamic_linker="$host_os dld.so"
11414 shlibpath_var=LD_LIBRARY_PATH
11415 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11417 soname_spec='${libname}${release}${shared_ext}$major'
11418 if test "X$HPUX_IA64_MODE" = X32; then
11419 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11420 else
11421 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11422 fi
11423 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11424 ;;
11425 hppa*64*)
11426 shrext_cmds='.sl'
11427 hardcode_into_libs=yes
11428 dynamic_linker="$host_os dld.sl"
11429 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11430 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11432 soname_spec='${libname}${release}${shared_ext}$major'
11433 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11434 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11435 ;;
11436 *)
11437 shrext_cmds='.sl'
11438 dynamic_linker="$host_os dld.sl"
11439 shlibpath_var=SHLIB_PATH
11440 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11442 soname_spec='${libname}${release}${shared_ext}$major'
11443 ;;
11444 esac
3725885a 11445 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
ce2cded5 11446 postinstall_cmds='chmod 555 $lib'
3725885a
RW
11447 # or fails outright, so override atomically:
11448 install_override_mode=555
ce2cded5
L
11449 ;;
11450
11451interix[3-9]*)
11452 version_type=linux
11453 need_lib_prefix=no
11454 need_version=no
11455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11456 soname_spec='${libname}${release}${shared_ext}$major'
11457 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11458 shlibpath_var=LD_LIBRARY_PATH
11459 shlibpath_overrides_runpath=no
11460 hardcode_into_libs=yes
11461 ;;
11462
11463irix5* | irix6* | nonstopux*)
11464 case $host_os in
11465 nonstopux*) version_type=nonstopux ;;
11466 *)
11467 if test "$lt_cv_prog_gnu_ld" = yes; then
11468 version_type=linux
11469 else
11470 version_type=irix
11471 fi ;;
11472 esac
11473 need_lib_prefix=no
11474 need_version=no
11475 soname_spec='${libname}${release}${shared_ext}$major'
11476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11477 case $host_os in
11478 irix5* | nonstopux*)
11479 libsuff= shlibsuff=
11480 ;;
11481 *)
11482 case $LD in # libtool.m4 will add one of these switches to LD
11483 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11484 libsuff= shlibsuff= libmagic=32-bit;;
11485 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11486 libsuff=32 shlibsuff=N32 libmagic=N32;;
11487 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11488 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11489 *) libsuff= shlibsuff= libmagic=never-match;;
11490 esac
11491 ;;
11492 esac
11493 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11494 shlibpath_overrides_runpath=no
11495 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11496 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11497 hardcode_into_libs=yes
11498 ;;
11499
11500# No shared lib support for Linux oldld, aout, or coff.
11501linux*oldld* | linux*aout* | linux*coff*)
11502 dynamic_linker=no
11503 ;;
11504
11505# This must be Linux ELF.
58e24671 11506linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
11507 version_type=linux
11508 need_lib_prefix=no
11509 need_version=no
11510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11511 soname_spec='${libname}${release}${shared_ext}$major'
11512 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11513 shlibpath_var=LD_LIBRARY_PATH
11514 shlibpath_overrides_runpath=no
39144654 11515
ce2cded5 11516 # Some binutils ld are patched to set DT_RUNPATH
81ecdfbb
RW
11517 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11518 $as_echo_n "(cached) " >&6
39144654
RW
11519else
11520 lt_cv_shlibpath_overrides_runpath=no
11521 save_LDFLAGS=$LDFLAGS
11522 save_libdir=$libdir
11523 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11524 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
81ecdfbb 11525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11526/* end confdefs.h. */
11527
d7040cdb
SE
11528int
11529main ()
11530{
ce2cded5 11531
d7040cdb
SE
11532 ;
11533 return 0;
11534}
11535_ACEOF
81ecdfbb
RW
11536if ac_fn_c_try_link "$LINENO"; then :
11537 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
39144654 11538 lt_cv_shlibpath_overrides_runpath=yes
d7040cdb 11539fi
d7040cdb 11540fi
81ecdfbb
RW
11541rm -f core conftest.err conftest.$ac_objext \
11542 conftest$ac_exeext conftest.$ac_ext
39144654
RW
11543 LDFLAGS=$save_LDFLAGS
11544 libdir=$save_libdir
11545
11546fi
11547
11548 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
d7040cdb 11549
ce2cded5
L
11550 # This implies no fast_install, which is unacceptable.
11551 # Some rework will be needed to allow for fast_install
11552 # before this can be enabled.
11553 hardcode_into_libs=yes
d7040cdb 11554
ce2cded5
L
11555 # Append ld.so.conf contents to the search path
11556 if test -f /etc/ld.so.conf; then
3725885a 11557 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
11558 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11559 fi
d7040cdb 11560
ce2cded5
L
11561 # We used to test for /lib/ld.so.1 and disable shared libraries on
11562 # powerpc, because MkLinux only supported shared libraries with the
11563 # GNU dynamic linker. Since this was broken with cross compilers,
11564 # most powerpc-linux boxes support dynamic linking these days and
11565 # people can always --disable-shared, the test was removed, and we
11566 # assume the GNU/Linux dynamic linker is in use.
11567 dynamic_linker='GNU/Linux ld.so'
11568 ;;
d7040cdb 11569
ce2cded5
L
11570netbsd*)
11571 version_type=sunos
11572 need_lib_prefix=no
11573 need_version=no
11574 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11576 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11577 dynamic_linker='NetBSD (a.out) ld.so'
11578 else
11579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11580 soname_spec='${libname}${release}${shared_ext}$major'
11581 dynamic_linker='NetBSD ld.elf_so'
11582 fi
11583 shlibpath_var=LD_LIBRARY_PATH
11584 shlibpath_overrides_runpath=yes
11585 hardcode_into_libs=yes
11586 ;;
d7040cdb 11587
ce2cded5
L
11588newsos6)
11589 version_type=linux
11590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11591 shlibpath_var=LD_LIBRARY_PATH
11592 shlibpath_overrides_runpath=yes
11593 ;;
d7040cdb 11594
ce2cded5
L
11595*nto* | *qnx*)
11596 version_type=qnx
11597 need_lib_prefix=no
11598 need_version=no
11599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11600 soname_spec='${libname}${release}${shared_ext}$major'
11601 shlibpath_var=LD_LIBRARY_PATH
11602 shlibpath_overrides_runpath=no
11603 hardcode_into_libs=yes
11604 dynamic_linker='ldqnx.so'
11605 ;;
d7040cdb 11606
ce2cded5
L
11607openbsd*)
11608 version_type=sunos
11609 sys_lib_dlsearch_path_spec="/usr/lib"
11610 need_lib_prefix=no
11611 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11612 case $host_os in
11613 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11614 *) need_version=no ;;
11615 esac
11616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11617 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11618 shlibpath_var=LD_LIBRARY_PATH
11619 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11620 case $host_os in
11621 openbsd2.[89] | openbsd2.[89].*)
11622 shlibpath_overrides_runpath=no
11623 ;;
11624 *)
11625 shlibpath_overrides_runpath=yes
11626 ;;
11627 esac
11628 else
11629 shlibpath_overrides_runpath=yes
11630 fi
11631 ;;
d7040cdb 11632
ce2cded5
L
11633os2*)
11634 libname_spec='$name'
11635 shrext_cmds=".dll"
11636 need_lib_prefix=no
11637 library_names_spec='$libname${shared_ext} $libname.a'
11638 dynamic_linker='OS/2 ld.exe'
11639 shlibpath_var=LIBPATH
11640 ;;
d7040cdb 11641
ce2cded5
L
11642osf3* | osf4* | osf5*)
11643 version_type=osf
11644 need_lib_prefix=no
11645 need_version=no
11646 soname_spec='${libname}${release}${shared_ext}$major'
11647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11648 shlibpath_var=LD_LIBRARY_PATH
11649 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11650 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11651 ;;
d7040cdb 11652
ce2cded5
L
11653rdos*)
11654 dynamic_linker=no
11655 ;;
d7040cdb 11656
ce2cded5
L
11657solaris*)
11658 version_type=linux
11659 need_lib_prefix=no
11660 need_version=no
11661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11662 soname_spec='${libname}${release}${shared_ext}$major'
11663 shlibpath_var=LD_LIBRARY_PATH
11664 shlibpath_overrides_runpath=yes
11665 hardcode_into_libs=yes
11666 # ldd complains unless libraries are executable
11667 postinstall_cmds='chmod +x $lib'
11668 ;;
d7040cdb 11669
ce2cded5
L
11670sunos4*)
11671 version_type=sunos
11672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11673 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11674 shlibpath_var=LD_LIBRARY_PATH
11675 shlibpath_overrides_runpath=yes
11676 if test "$with_gnu_ld" = yes; then
11677 need_lib_prefix=no
11678 fi
11679 need_version=yes
11680 ;;
d7040cdb 11681
ce2cded5
L
11682sysv4 | sysv4.3*)
11683 version_type=linux
11684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11685 soname_spec='${libname}${release}${shared_ext}$major'
11686 shlibpath_var=LD_LIBRARY_PATH
11687 case $host_vendor in
11688 sni)
11689 shlibpath_overrides_runpath=no
11690 need_lib_prefix=no
11691 runpath_var=LD_RUN_PATH
11692 ;;
11693 siemens)
11694 need_lib_prefix=no
11695 ;;
11696 motorola)
11697 need_lib_prefix=no
11698 need_version=no
11699 shlibpath_overrides_runpath=no
11700 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11701 ;;
11702 esac
11703 ;;
d7040cdb 11704
ce2cded5
L
11705sysv4*MP*)
11706 if test -d /usr/nec ;then
11707 version_type=linux
11708 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11709 soname_spec='$libname${shared_ext}.$major'
11710 shlibpath_var=LD_LIBRARY_PATH
11711 fi
11712 ;;
d7040cdb 11713
ce2cded5
L
11714sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11715 version_type=freebsd-elf
11716 need_lib_prefix=no
11717 need_version=no
11718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11719 soname_spec='${libname}${release}${shared_ext}$major'
11720 shlibpath_var=LD_LIBRARY_PATH
11721 shlibpath_overrides_runpath=yes
11722 hardcode_into_libs=yes
11723 if test "$with_gnu_ld" = yes; then
11724 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11725 else
11726 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11727 case $host_os in
11728 sco3.2v5*)
11729 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11730 ;;
11731 esac
11732 fi
11733 sys_lib_dlsearch_path_spec='/usr/lib'
11734 ;;
d7040cdb 11735
ce2cded5
L
11736tpf*)
11737 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11738 version_type=linux
11739 need_lib_prefix=no
11740 need_version=no
b214d478 11741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
ce2cded5
L
11742 shlibpath_var=LD_LIBRARY_PATH
11743 shlibpath_overrides_runpath=no
11744 hardcode_into_libs=yes
11745 ;;
d7040cdb 11746
ce2cded5
L
11747uts4*)
11748 version_type=linux
11749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11750 soname_spec='${libname}${release}${shared_ext}$major'
11751 shlibpath_var=LD_LIBRARY_PATH
11752 ;;
d7040cdb 11753
ce2cded5
L
11754*)
11755 dynamic_linker=no
11756 ;;
11757esac
81ecdfbb
RW
11758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11759$as_echo "$dynamic_linker" >&6; }
ce2cded5
L
11760test "$dynamic_linker" = no && can_build_shared=no
11761
11762variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11763if test "$GCC" = yes; then
11764 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb
SE
11765fi
11766
b214d478
SE
11767if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11768 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11769fi
11770if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11771 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11772fi
11773
d7040cdb
SE
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
d7040cdb 11785
d7040cdb 11786
d7040cdb 11787
d7040cdb 11788
d7040cdb
SE
11789
11790
11791
11792
d7040cdb 11793
d7040cdb
SE
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
d7040cdb
SE
11807
11808
11809
11810
d7040cdb
SE
11811
11812
11813
11814
d7040cdb 11815
d7040cdb 11816
d7040cdb 11817
d7040cdb 11818
d7040cdb 11819
d7040cdb 11820
d7040cdb 11821
d7040cdb
SE
11822
11823
11824
11825
11826
d7040cdb 11827
d7040cdb 11828
d7040cdb 11829
d7040cdb 11830
d7040cdb 11831
d7040cdb 11832
d7040cdb
SE
11833
11834
11835
11836
11837
d7040cdb
SE
11838
11839
d7040cdb 11840
d7040cdb 11841
d7040cdb 11842
d7040cdb 11843
ce2cded5
L
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
3725885a
RW
11854
11855
11856
11857
11858
ce2cded5
L
11859
11860
11861
11862
11863
11864
81ecdfbb
RW
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11866$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
ce2cded5
L
11867hardcode_action=
11868if test -n "$hardcode_libdir_flag_spec" ||
11869 test -n "$runpath_var" ||
11870 test "X$hardcode_automatic" = "Xyes" ; then
11871
11872 # We can hardcode non-existent directories.
11873 if test "$hardcode_direct" != no &&
11874 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11875 # have to relink, otherwise we might link with an installed library
11876 # when we should be linking with a yet-to-be-installed one
11877 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11878 test "$hardcode_minus_L" != no; then
11879 # Linking always hardcodes the temporary library directory.
11880 hardcode_action=relink
11881 else
11882 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11883 hardcode_action=immediate
d7040cdb 11884 fi
d7040cdb 11885else
ce2cded5
L
11886 # We cannot hardcode anything, or else we can only hardcode existing
11887 # directories.
11888 hardcode_action=unsupported
d7040cdb 11889fi
81ecdfbb
RW
11890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11891$as_echo "$hardcode_action" >&6; }
d7040cdb 11892
ce2cded5
L
11893if test "$hardcode_action" = relink ||
11894 test "$inherit_rpath" = yes; then
11895 # Fast installation is not supported
11896 enable_fast_install=no
11897elif test "$shlibpath_overrides_runpath" = yes ||
11898 test "$enable_shared" = no; then
11899 # Fast installation is not necessary
11900 enable_fast_install=needless
d7040cdb
SE
11901fi
11902
d7040cdb 11903
d7040cdb 11904
d7040cdb 11905
d7040cdb 11906
d7040cdb 11907
ce2cded5
L
11908 if test "x$enable_dlopen" != xyes; then
11909 enable_dlopen=unknown
11910 enable_dlopen_self=unknown
11911 enable_dlopen_self_static=unknown
d7040cdb 11912else
ce2cded5
L
11913 lt_cv_dlopen=no
11914 lt_cv_dlopen_libs=
d7040cdb 11915
ce2cded5
L
11916 case $host_os in
11917 beos*)
11918 lt_cv_dlopen="load_add_on"
11919 lt_cv_dlopen_libs=
11920 lt_cv_dlopen_self=yes
11921 ;;
d7040cdb 11922
b214d478 11923 mingw* | pw32* | cegcc*)
ce2cded5
L
11924 lt_cv_dlopen="LoadLibrary"
11925 lt_cv_dlopen_libs=
11926 ;;
11927
11928 cygwin*)
11929 lt_cv_dlopen="dlopen"
11930 lt_cv_dlopen_libs=
11931 ;;
11932
11933 darwin*)
11934 # if libdl is installed we need to link against it
81ecdfbb
RW
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11936$as_echo_n "checking for dlopen in -ldl... " >&6; }
11937if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11938 $as_echo_n "(cached) " >&6
d7040cdb 11939else
ce2cded5
L
11940 ac_check_lib_save_LIBS=$LIBS
11941LIBS="-ldl $LIBS"
81ecdfbb 11942cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
11943/* end confdefs.h. */
11944
81ecdfbb
RW
11945/* Override any GCC internal prototype to avoid an error.
11946 Use char because int might match the return type of a GCC
11947 builtin and then its argument prototype would still apply. */
ce2cded5
L
11948#ifdef __cplusplus
11949extern "C"
11950#endif
ce2cded5
L
11951char dlopen ();
11952int
11953main ()
11954{
81ecdfbb 11955return dlopen ();
ce2cded5
L
11956 ;
11957 return 0;
11958}
11959_ACEOF
81ecdfbb 11960if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
11961 ac_cv_lib_dl_dlopen=yes
11962else
81ecdfbb 11963 ac_cv_lib_dl_dlopen=no
d7040cdb 11964fi
81ecdfbb
RW
11965rm -f core conftest.err conftest.$ac_objext \
11966 conftest$ac_exeext conftest.$ac_ext
ce2cded5 11967LIBS=$ac_check_lib_save_LIBS
d7040cdb 11968fi
81ecdfbb
RW
11969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11970$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11971if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5 11972 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 11973else
d7040cdb 11974
ce2cded5
L
11975 lt_cv_dlopen="dyld"
11976 lt_cv_dlopen_libs=
11977 lt_cv_dlopen_self=yes
11978
d7040cdb 11979fi
ce2cded5
L
11980
11981 ;;
11982
11983 *)
81ecdfbb
RW
11984 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11985if test "x$ac_cv_func_shl_load" = x""yes; then :
ce2cded5
L
11986 lt_cv_dlopen="shl_load"
11987else
81ecdfbb
RW
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11989$as_echo_n "checking for shl_load in -ldld... " >&6; }
11990if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11991 $as_echo_n "(cached) " >&6
ce2cded5
L
11992else
11993 ac_check_lib_save_LIBS=$LIBS
11994LIBS="-ldld $LIBS"
81ecdfbb 11995cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 11996/* end confdefs.h. */
d7040cdb 11997
81ecdfbb
RW
11998/* Override any GCC internal prototype to avoid an error.
11999 Use char because int might match the return type of a GCC
12000 builtin and then its argument prototype would still apply. */
ce2cded5
L
12001#ifdef __cplusplus
12002extern "C"
12003#endif
ce2cded5
L
12004char shl_load ();
12005int
12006main ()
12007{
81ecdfbb 12008return shl_load ();
ce2cded5
L
12009 ;
12010 return 0;
12011}
12012_ACEOF
81ecdfbb 12013if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
12014 ac_cv_lib_dld_shl_load=yes
12015else
81ecdfbb 12016 ac_cv_lib_dld_shl_load=no
ce2cded5 12017fi
81ecdfbb
RW
12018rm -f core conftest.err conftest.$ac_objext \
12019 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
12020LIBS=$ac_check_lib_save_LIBS
12021fi
81ecdfbb
RW
12022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12023$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12024if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
b214d478 12025 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
ce2cded5 12026else
81ecdfbb
RW
12027 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12028if test "x$ac_cv_func_dlopen" = x""yes; then :
ce2cded5
L
12029 lt_cv_dlopen="dlopen"
12030else
81ecdfbb
RW
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12032$as_echo_n "checking for dlopen in -ldl... " >&6; }
12033if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12034 $as_echo_n "(cached) " >&6
d7040cdb 12035else
ce2cded5
L
12036 ac_check_lib_save_LIBS=$LIBS
12037LIBS="-ldl $LIBS"
81ecdfbb 12038cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
12039/* end confdefs.h. */
12040
81ecdfbb
RW
12041/* Override any GCC internal prototype to avoid an error.
12042 Use char because int might match the return type of a GCC
12043 builtin and then its argument prototype would still apply. */
ce2cded5
L
12044#ifdef __cplusplus
12045extern "C"
12046#endif
ce2cded5 12047char dlopen ();
d7040cdb
SE
12048int
12049main ()
12050{
81ecdfbb 12051return dlopen ();
d7040cdb
SE
12052 ;
12053 return 0;
12054}
12055_ACEOF
81ecdfbb 12056if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 12057 ac_cv_lib_dl_dlopen=yes
d7040cdb 12058else
81ecdfbb 12059 ac_cv_lib_dl_dlopen=no
d7040cdb 12060fi
81ecdfbb
RW
12061rm -f core conftest.err conftest.$ac_objext \
12062 conftest$ac_exeext conftest.$ac_ext
ce2cded5 12063LIBS=$ac_check_lib_save_LIBS
d7040cdb 12064fi
81ecdfbb
RW
12065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12066$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12067if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5 12068 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 12069else
81ecdfbb
RW
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12071$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12072if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12073 $as_echo_n "(cached) " >&6
d7040cdb 12074else
ce2cded5
L
12075 ac_check_lib_save_LIBS=$LIBS
12076LIBS="-lsvld $LIBS"
81ecdfbb 12077cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 12078/* end confdefs.h. */
d7040cdb 12079
81ecdfbb
RW
12080/* Override any GCC internal prototype to avoid an error.
12081 Use char because int might match the return type of a GCC
12082 builtin and then its argument prototype would still apply. */
ce2cded5
L
12083#ifdef __cplusplus
12084extern "C"
12085#endif
ce2cded5 12086char dlopen ();
d7040cdb
SE
12087int
12088main ()
12089{
81ecdfbb 12090return dlopen ();
d7040cdb
SE
12091 ;
12092 return 0;
12093}
12094_ACEOF
81ecdfbb 12095if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 12096 ac_cv_lib_svld_dlopen=yes
d7040cdb 12097else
81ecdfbb 12098 ac_cv_lib_svld_dlopen=no
d7040cdb 12099fi
81ecdfbb
RW
12100rm -f core conftest.err conftest.$ac_objext \
12101 conftest$ac_exeext conftest.$ac_ext
ce2cded5 12102LIBS=$ac_check_lib_save_LIBS
d7040cdb 12103fi
81ecdfbb
RW
12104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12105$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12106if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
ce2cded5
L
12107 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12108else
81ecdfbb
RW
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12110$as_echo_n "checking for dld_link in -ldld... " >&6; }
12111if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12112 $as_echo_n "(cached) " >&6
ce2cded5
L
12113else
12114 ac_check_lib_save_LIBS=$LIBS
12115LIBS="-ldld $LIBS"
81ecdfbb 12116cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
12117/* end confdefs.h. */
12118
81ecdfbb
RW
12119/* Override any GCC internal prototype to avoid an error.
12120 Use char because int might match the return type of a GCC
12121 builtin and then its argument prototype would still apply. */
ce2cded5
L
12122#ifdef __cplusplus
12123extern "C"
12124#endif
ce2cded5 12125char dld_link ();
d7040cdb
SE
12126int
12127main ()
12128{
81ecdfbb 12129return dld_link ();
d7040cdb
SE
12130 ;
12131 return 0;
12132}
12133_ACEOF
81ecdfbb 12134if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 12135 ac_cv_lib_dld_dld_link=yes
d7040cdb 12136else
81ecdfbb 12137 ac_cv_lib_dld_dld_link=no
d7040cdb 12138fi
81ecdfbb
RW
12139rm -f core conftest.err conftest.$ac_objext \
12140 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
12141LIBS=$ac_check_lib_save_LIBS
12142fi
81ecdfbb
RW
12143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12144$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12145if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
b214d478 12146 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
ce2cded5
L
12147fi
12148
12149
12150fi
12151
12152
12153fi
12154
12155
12156fi
12157
12158
12159fi
12160
12161
12162fi
12163
12164 ;;
12165 esac
12166
12167 if test "x$lt_cv_dlopen" != xno; then
12168 enable_dlopen=yes
12169 else
12170 enable_dlopen=no
12171 fi
12172
12173 case $lt_cv_dlopen in
12174 dlopen)
12175 save_CPPFLAGS="$CPPFLAGS"
12176 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12177
12178 save_LDFLAGS="$LDFLAGS"
12179 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12180
12181 save_LIBS="$LIBS"
12182 LIBS="$lt_cv_dlopen_libs $LIBS"
12183
81ecdfbb
RW
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12185$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12186if test "${lt_cv_dlopen_self+set}" = set; then :
12187 $as_echo_n "(cached) " >&6
ce2cded5
L
12188else
12189 if test "$cross_compiling" = yes; then :
12190 lt_cv_dlopen_self=cross
12191else
12192 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12193 lt_status=$lt_dlunknown
12194 cat > conftest.$ac_ext <<_LT_EOF
cc9afea3 12195#line 12195 "configure"
ce2cded5
L
12196#include "confdefs.h"
12197
12198#if HAVE_DLFCN_H
12199#include <dlfcn.h>
12200#endif
12201
12202#include <stdio.h>
12203
12204#ifdef RTLD_GLOBAL
12205# define LT_DLGLOBAL RTLD_GLOBAL
12206#else
12207# ifdef DL_GLOBAL
12208# define LT_DLGLOBAL DL_GLOBAL
12209# else
12210# define LT_DLGLOBAL 0
12211# endif
12212#endif
12213
12214/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12215 find out it does not work in some platform. */
12216#ifndef LT_DLLAZY_OR_NOW
12217# ifdef RTLD_LAZY
12218# define LT_DLLAZY_OR_NOW RTLD_LAZY
12219# else
12220# ifdef DL_LAZY
12221# define LT_DLLAZY_OR_NOW DL_LAZY
12222# else
12223# ifdef RTLD_NOW
12224# define LT_DLLAZY_OR_NOW RTLD_NOW
12225# else
12226# ifdef DL_NOW
12227# define LT_DLLAZY_OR_NOW DL_NOW
12228# else
12229# define LT_DLLAZY_OR_NOW 0
12230# endif
12231# endif
12232# endif
12233# endif
12234#endif
12235
3725885a
RW
12236/* When -fvisbility=hidden is used, assume the code has been annotated
12237 correspondingly for the symbols needed. */
12238#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12239void fnord () __attribute__((visibility("default")));
12240#endif
12241
12242void fnord () { int i=42; }
ce2cded5 12243int main ()
d7040cdb 12244{
ce2cded5
L
12245 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12246 int status = $lt_dlunknown;
12247
12248 if (self)
12249 {
12250 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
12251 else
12252 {
12253 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12254 else puts (dlerror ());
12255 }
ce2cded5
L
12256 /* dlclose (self); */
12257 }
12258 else
12259 puts (dlerror ());
12260
b214d478 12261 return status;
d7040cdb 12262}
ce2cded5 12263_LT_EOF
81ecdfbb 12264 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5 12265 (eval $ac_link) 2>&5
d7040cdb 12266 ac_status=$?
81ecdfbb
RW
12267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12268 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
ce2cded5
L
12269 (./conftest; exit; ) >&5 2>/dev/null
12270 lt_status=$?
12271 case x$lt_status in
12272 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12273 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12274 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12275 esac
12276 else :
12277 # compilation failed
12278 lt_cv_dlopen_self=no
12279 fi
12280fi
12281rm -fr conftest*
12282
12283
12284fi
81ecdfbb
RW
12285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12286$as_echo "$lt_cv_dlopen_self" >&6; }
ce2cded5
L
12287
12288 if test "x$lt_cv_dlopen_self" = xyes; then
12289 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
81ecdfbb
RW
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12291$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12292if test "${lt_cv_dlopen_self_static+set}" = set; then :
12293 $as_echo_n "(cached) " >&6
ce2cded5
L
12294else
12295 if test "$cross_compiling" = yes; then :
12296 lt_cv_dlopen_self_static=cross
12297else
12298 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12299 lt_status=$lt_dlunknown
12300 cat > conftest.$ac_ext <<_LT_EOF
cc9afea3 12301#line 12301 "configure"
ce2cded5
L
12302#include "confdefs.h"
12303
12304#if HAVE_DLFCN_H
12305#include <dlfcn.h>
12306#endif
12307
12308#include <stdio.h>
12309
12310#ifdef RTLD_GLOBAL
12311# define LT_DLGLOBAL RTLD_GLOBAL
12312#else
12313# ifdef DL_GLOBAL
12314# define LT_DLGLOBAL DL_GLOBAL
12315# else
12316# define LT_DLGLOBAL 0
12317# endif
12318#endif
12319
12320/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12321 find out it does not work in some platform. */
12322#ifndef LT_DLLAZY_OR_NOW
12323# ifdef RTLD_LAZY
12324# define LT_DLLAZY_OR_NOW RTLD_LAZY
12325# else
12326# ifdef DL_LAZY
12327# define LT_DLLAZY_OR_NOW DL_LAZY
12328# else
12329# ifdef RTLD_NOW
12330# define LT_DLLAZY_OR_NOW RTLD_NOW
12331# else
12332# ifdef DL_NOW
12333# define LT_DLLAZY_OR_NOW DL_NOW
12334# else
12335# define LT_DLLAZY_OR_NOW 0
12336# endif
12337# endif
12338# endif
12339# endif
12340#endif
12341
3cb62297
L
12342/* When -fvisbility=hidden is used, assume the code has been annotated
12343 correspondingly for the symbols needed. */
12344#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12345void fnord () __attribute__((visibility("default")));
12346#endif
12347
12348void fnord () { int i=42; }
12349int main ()
12350{
12351 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12352 int status = $lt_dlunknown;
12353
12354 if (self)
12355 {
12356 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12357 else
12358 {
12359 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12360 else puts (dlerror ());
12361 }
12362 /* dlclose (self); */
12363 }
12364 else
12365 puts (dlerror ());
12366
12367 return status;
12368}
12369_LT_EOF
12370 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12371 (eval $ac_link) 2>&5
12372 ac_status=$?
12373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12374 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12375 (./conftest; exit; ) >&5 2>/dev/null
12376 lt_status=$?
12377 case x$lt_status in
12378 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12379 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12380 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12381 esac
12382 else :
12383 # compilation failed
12384 lt_cv_dlopen_self_static=no
12385 fi
12386fi
12387rm -fr conftest*
12388
12389
12390fi
12391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12392$as_echo "$lt_cv_dlopen_self_static" >&6; }
12393 fi
12394
12395 CPPFLAGS="$save_CPPFLAGS"
12396 LDFLAGS="$save_LDFLAGS"
12397 LIBS="$save_LIBS"
12398 ;;
12399 esac
12400
12401 case $lt_cv_dlopen_self in
12402 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12403 *) enable_dlopen_self=unknown ;;
12404 esac
12405
12406 case $lt_cv_dlopen_self_static in
12407 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12408 *) enable_dlopen_self_static=unknown ;;
12409 esac
12410fi
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428striplib=
12429old_striplib=
12430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12431$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12432if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12433 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12434 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12436$as_echo "yes" >&6; }
12437else
12438# FIXME - insert some real tests, host_os isn't really good enough
12439 case $host_os in
12440 darwin*)
12441 if test -n "$STRIP" ; then
12442 striplib="$STRIP -x"
12443 old_striplib="$STRIP -S"
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12445$as_echo "yes" >&6; }
12446 else
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12448$as_echo "no" >&6; }
12449 fi
12450 ;;
12451 *)
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12453$as_echo "no" >&6; }
12454 ;;
12455 esac
12456fi
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469 # Report which library types will actually be built
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12471$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12473$as_echo "$can_build_shared" >&6; }
12474
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12476$as_echo_n "checking whether to build shared libraries... " >&6; }
12477 test "$can_build_shared" = "no" && enable_shared=no
12478
12479 # On AIX, shared libraries and static libraries use the same namespace, and
12480 # are all built from PIC.
12481 case $host_os in
12482 aix3*)
12483 test "$enable_shared" = yes && enable_static=no
12484 if test -n "$RANLIB"; then
12485 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12486 postinstall_cmds='$RANLIB $lib'
12487 fi
12488 ;;
12489
12490 aix[4-9]*)
12491 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12492 test "$enable_shared" = yes && enable_static=no
12493 fi
12494 ;;
12495 esac
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12497$as_echo "$enable_shared" >&6; }
12498
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12500$as_echo_n "checking whether to build static libraries... " >&6; }
12501 # Make sure either enable_shared or enable_static is yes.
12502 test "$enable_shared" = yes || enable_static=yes
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12504$as_echo "$enable_static" >&6; }
12505
12506
12507
12508
12509fi
12510ac_ext=c
12511ac_cpp='$CPP $CPPFLAGS'
12512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12514ac_compiler_gnu=$ac_cv_c_compiler_gnu
12515
12516CC="$lt_save_CC"
12517
12518 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12519 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12520 (test "X$CXX" != "Xg++"))) ; then
12521 ac_ext=cpp
12522ac_cpp='$CXXCPP $CPPFLAGS'
12523ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12524ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12525ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12527$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12528if test -z "$CXXCPP"; then
12529 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12530 $as_echo_n "(cached) " >&6
12531else
12532 # Double quotes because CXXCPP needs to be expanded
12533 for CXXCPP in "$CXX -E" "/lib/cpp"
12534 do
12535 ac_preproc_ok=false
12536for ac_cxx_preproc_warn_flag in '' yes
12537do
12538 # Use a header file that comes with gcc, so configuring glibc
12539 # with a fresh cross-compiler works.
12540 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12541 # <limits.h> exists even on freestanding compilers.
12542 # On the NeXT, cc -E runs the code through the compiler's parser,
12543 # not just through cpp. "Syntax error" is here to catch this case.
12544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12545/* end confdefs.h. */
12546#ifdef __STDC__
12547# include <limits.h>
12548#else
12549# include <assert.h>
12550#endif
12551 Syntax error
12552_ACEOF
12553if ac_fn_cxx_try_cpp "$LINENO"; then :
12554
12555else
12556 # Broken: fails on valid input.
12557continue
12558fi
12559rm -f conftest.err conftest.$ac_ext
12560
12561 # OK, works on sane cases. Now check whether nonexistent headers
12562 # can be detected and how.
12563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12564/* end confdefs.h. */
12565#include <ac_nonexistent.h>
12566_ACEOF
12567if ac_fn_cxx_try_cpp "$LINENO"; then :
12568 # Broken: success on invalid input.
12569continue
12570else
12571 # Passes both tests.
12572ac_preproc_ok=:
12573break
12574fi
12575rm -f conftest.err conftest.$ac_ext
12576
12577done
12578# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12579rm -f conftest.err conftest.$ac_ext
12580if $ac_preproc_ok; then :
12581 break
12582fi
12583
12584 done
12585 ac_cv_prog_CXXCPP=$CXXCPP
12586
12587fi
12588 CXXCPP=$ac_cv_prog_CXXCPP
12589else
12590 ac_cv_prog_CXXCPP=$CXXCPP
12591fi
12592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12593$as_echo "$CXXCPP" >&6; }
12594ac_preproc_ok=false
12595for ac_cxx_preproc_warn_flag in '' yes
12596do
12597 # Use a header file that comes with gcc, so configuring glibc
12598 # with a fresh cross-compiler works.
12599 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12600 # <limits.h> exists even on freestanding compilers.
12601 # On the NeXT, cc -E runs the code through the compiler's parser,
12602 # not just through cpp. "Syntax error" is here to catch this case.
12603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12604/* end confdefs.h. */
12605#ifdef __STDC__
12606# include <limits.h>
12607#else
12608# include <assert.h>
12609#endif
12610 Syntax error
12611_ACEOF
12612if ac_fn_cxx_try_cpp "$LINENO"; then :
12613
12614else
12615 # Broken: fails on valid input.
12616continue
12617fi
12618rm -f conftest.err conftest.$ac_ext
12619
12620 # OK, works on sane cases. Now check whether nonexistent headers
12621 # can be detected and how.
12622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12623/* end confdefs.h. */
12624#include <ac_nonexistent.h>
12625_ACEOF
12626if ac_fn_cxx_try_cpp "$LINENO"; then :
12627 # Broken: success on invalid input.
12628continue
12629else
12630 # Passes both tests.
12631ac_preproc_ok=:
12632break
12633fi
12634rm -f conftest.err conftest.$ac_ext
12635
12636done
12637# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12638rm -f conftest.err conftest.$ac_ext
12639if $ac_preproc_ok; then :
12640
12641else
12642 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12643$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12644as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12645See \`config.log' for more details." "$LINENO" 5; }
12646fi
12647
12648ac_ext=c
12649ac_cpp='$CPP $CPPFLAGS'
12650ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12651ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12652ac_compiler_gnu=$ac_cv_c_compiler_gnu
12653
12654else
12655 _lt_caught_CXX_error=yes
12656fi
12657
12658ac_ext=cpp
12659ac_cpp='$CXXCPP $CPPFLAGS'
12660ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12661ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12662ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12663
12664archive_cmds_need_lc_CXX=no
12665allow_undefined_flag_CXX=
12666always_export_symbols_CXX=no
12667archive_expsym_cmds_CXX=
12668compiler_needs_object_CXX=no
12669export_dynamic_flag_spec_CXX=
12670hardcode_direct_CXX=no
12671hardcode_direct_absolute_CXX=no
12672hardcode_libdir_flag_spec_CXX=
12673hardcode_libdir_flag_spec_ld_CXX=
12674hardcode_libdir_separator_CXX=
12675hardcode_minus_L_CXX=no
12676hardcode_shlibpath_var_CXX=unsupported
12677hardcode_automatic_CXX=no
12678inherit_rpath_CXX=no
12679module_cmds_CXX=
12680module_expsym_cmds_CXX=
12681link_all_deplibs_CXX=unknown
12682old_archive_cmds_CXX=$old_archive_cmds
12683reload_flag_CXX=$reload_flag
12684reload_cmds_CXX=$reload_cmds
12685no_undefined_flag_CXX=
12686whole_archive_flag_spec_CXX=
12687enable_shared_with_static_runtimes_CXX=no
12688
12689# Source file extension for C++ test sources.
12690ac_ext=cpp
12691
12692# Object file extension for compiled C++ test sources.
12693objext=o
12694objext_CXX=$objext
12695
12696# No sense in running all these tests if we already determined that
12697# the CXX compiler isn't working. Some variables (like enable_shared)
12698# are currently assumed to apply to all compilers on this platform,
12699# and will be corrupted by setting them based on a non-working compiler.
12700if test "$_lt_caught_CXX_error" != yes; then
12701 # Code to be used in simple compile tests
12702 lt_simple_compile_test_code="int some_variable = 0;"
12703
12704 # Code to be used in simple link tests
12705 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12706
12707 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12708
12709
12710
12711
12712
12713
12714# If no C compiler was specified, use CC.
12715LTCC=${LTCC-"$CC"}
12716
12717# If no C compiler flags were specified, use CFLAGS.
12718LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12719
12720# Allow CC to be a program name with arguments.
12721compiler=$CC
12722
12723
12724 # save warnings/boilerplate of simple test code
12725 ac_outfile=conftest.$ac_objext
12726echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12727eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12728_lt_compiler_boilerplate=`cat conftest.err`
12729$RM conftest*
12730
12731 ac_outfile=conftest.$ac_objext
12732echo "$lt_simple_link_test_code" >conftest.$ac_ext
12733eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12734_lt_linker_boilerplate=`cat conftest.err`
12735$RM -r conftest*
12736
12737
12738 # Allow CC to be a program name with arguments.
12739 lt_save_CC=$CC
12740 lt_save_LD=$LD
12741 lt_save_GCC=$GCC
12742 GCC=$GXX
12743 lt_save_with_gnu_ld=$with_gnu_ld
12744 lt_save_path_LD=$lt_cv_path_LD
12745 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12746 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12747 else
12748 $as_unset lt_cv_prog_gnu_ld
12749 fi
12750 if test -n "${lt_cv_path_LDCXX+set}"; then
12751 lt_cv_path_LD=$lt_cv_path_LDCXX
12752 else
12753 $as_unset lt_cv_path_LD
12754 fi
12755 test -z "${LDCXX+set}" || LD=$LDCXX
12756 CC=${CXX-"c++"}
12757 compiler=$CC
12758 compiler_CXX=$CC
12759 for cc_temp in $compiler""; do
12760 case $cc_temp in
12761 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12762 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12763 \-*) ;;
12764 *) break;;
12765 esac
12766done
12767cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12768
12769
12770 if test -n "$compiler"; then
12771 # We don't want -fno-exception when compiling C++ code, so set the
12772 # no_builtin_flag separately
12773 if test "$GXX" = yes; then
12774 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12775 else
12776 lt_prog_compiler_no_builtin_flag_CXX=
12777 fi
12778
12779 if test "$GXX" = yes; then
12780 # Set up default GNU C++ configuration
12781
12782
12783
12784# Check whether --with-gnu-ld was given.
12785if test "${with_gnu_ld+set}" = set; then :
12786 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12787else
12788 with_gnu_ld=no
12789fi
12790
12791ac_prog=ld
12792if test "$GCC" = yes; then
12793 # Check if gcc -print-prog-name=ld gives a path.
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12795$as_echo_n "checking for ld used by $CC... " >&6; }
12796 case $host in
12797 *-*-mingw*)
12798 # gcc leaves a trailing carriage return which upsets mingw
12799 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12800 *)
12801 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12802 esac
12803 case $ac_prog in
12804 # Accept absolute paths.
12805 [\\/]* | ?:[\\/]*)
12806 re_direlt='/[^/][^/]*/\.\./'
12807 # Canonicalize the pathname of ld
12808 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12809 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12810 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12811 done
12812 test -z "$LD" && LD="$ac_prog"
12813 ;;
12814 "")
12815 # If it fails, then pretend we aren't using GCC.
12816 ac_prog=ld
12817 ;;
12818 *)
12819 # If it is relative, then search for the first ld in PATH.
12820 with_gnu_ld=unknown
12821 ;;
12822 esac
12823elif test "$with_gnu_ld" = yes; then
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12825$as_echo_n "checking for GNU ld... " >&6; }
12826else
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12828$as_echo_n "checking for non-GNU ld... " >&6; }
12829fi
12830if test "${lt_cv_path_LD+set}" = set; then :
12831 $as_echo_n "(cached) " >&6
12832else
12833 if test -z "$LD"; then
12834 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12835 for ac_dir in $PATH; do
12836 IFS="$lt_save_ifs"
12837 test -z "$ac_dir" && ac_dir=.
12838 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12839 lt_cv_path_LD="$ac_dir/$ac_prog"
12840 # Check to see if the program is GNU ld. I'd rather use --version,
12841 # but apparently some variants of GNU ld only accept -v.
12842 # Break only if it was the GNU/non-GNU ld that we prefer.
12843 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12844 *GNU* | *'with BFD'*)
12845 test "$with_gnu_ld" != no && break
12846 ;;
12847 *)
12848 test "$with_gnu_ld" != yes && break
12849 ;;
12850 esac
12851 fi
12852 done
12853 IFS="$lt_save_ifs"
12854else
12855 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12856fi
12857fi
12858
12859LD="$lt_cv_path_LD"
12860if test -n "$LD"; then
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12862$as_echo "$LD" >&6; }
12863else
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12865$as_echo "no" >&6; }
12866fi
12867test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12869$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12870if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12871 $as_echo_n "(cached) " >&6
12872else
12873 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12874case `$LD -v 2>&1 </dev/null` in
12875*GNU* | *'with BFD'*)
12876 lt_cv_prog_gnu_ld=yes
12877 ;;
12878*)
12879 lt_cv_prog_gnu_ld=no
12880 ;;
12881esac
12882fi
12883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12884$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12885with_gnu_ld=$lt_cv_prog_gnu_ld
12886
12887
12888
12889
12890
12891
12892
12893 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12894 # archiving commands below assume that GNU ld is being used.
12895 if test "$with_gnu_ld" = yes; then
12896 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12897 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12898
12899 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12900 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12901
12902 # If archive_cmds runs LD, not CC, wlarc should be empty
12903 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12904 # investigate it a little bit more. (MM)
12905 wlarc='${wl}'
12906
12907 # ancient GNU ld didn't support --whole-archive et. al.
12908 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12909 $GREP 'no-whole-archive' > /dev/null; then
12910 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12911 else
12912 whole_archive_flag_spec_CXX=
12913 fi
12914 else
12915 with_gnu_ld=no
12916 wlarc=
12917
12918 # A generic and very simple default shared library creation
12919 # command for GNU C++ for the case where it uses the native
12920 # linker, instead of GNU ld. If possible, this setting should
12921 # overridden to take advantage of the native linker features on
12922 # the platform it is being used on.
12923 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12924 fi
12925
12926 # Commands to make compiler produce verbose output that lists
12927 # what "hidden" libraries, object files and flags are used when
12928 # linking a shared library.
12929 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12930
12931 else
12932 GXX=no
12933 with_gnu_ld=no
12934 wlarc=
12935 fi
12936
12937 # PORTME: fill in a description of your system's C++ link characteristics
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12939$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12940 ld_shlibs_CXX=yes
12941 case $host_os in
12942 aix3*)
12943 # FIXME: insert proper C++ library support
12944 ld_shlibs_CXX=no
12945 ;;
12946 aix[4-9]*)
12947 if test "$host_cpu" = ia64; then
12948 # On IA64, the linker does run time linking by default, so we don't
12949 # have to do anything special.
12950 aix_use_runtimelinking=no
12951 exp_sym_flag='-Bexport'
12952 no_entry_flag=""
12953 else
12954 aix_use_runtimelinking=no
12955
12956 # Test if we are trying to use run time linking or normal
12957 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12958 # need to do runtime linking.
12959 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12960 for ld_flag in $LDFLAGS; do
12961 case $ld_flag in
12962 *-brtl*)
12963 aix_use_runtimelinking=yes
12964 break
12965 ;;
12966 esac
12967 done
12968 ;;
12969 esac
12970
12971 exp_sym_flag='-bexport'
12972 no_entry_flag='-bnoentry'
12973 fi
12974
12975 # When large executables or shared objects are built, AIX ld can
12976 # have problems creating the table of contents. If linking a library
12977 # or program results in "error TOC overflow" add -mminimal-toc to
12978 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12979 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12980
12981 archive_cmds_CXX=''
12982 hardcode_direct_CXX=yes
12983 hardcode_direct_absolute_CXX=yes
12984 hardcode_libdir_separator_CXX=':'
12985 link_all_deplibs_CXX=yes
12986 file_list_spec_CXX='${wl}-f,'
12987
12988 if test "$GXX" = yes; then
12989 case $host_os in aix4.[012]|aix4.[012].*)
12990 # We only want to do this on AIX 4.2 and lower, the check
12991 # below for broken collect2 doesn't work under 4.3+
12992 collect2name=`${CC} -print-prog-name=collect2`
12993 if test -f "$collect2name" &&
12994 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12995 then
12996 # We have reworked collect2
12997 :
12998 else
12999 # We have old collect2
13000 hardcode_direct_CXX=unsupported
13001 # It fails to find uninstalled libraries when the uninstalled
13002 # path is not listed in the libpath. Setting hardcode_minus_L
13003 # to unsupported forces relinking
13004 hardcode_minus_L_CXX=yes
13005 hardcode_libdir_flag_spec_CXX='-L$libdir'
13006 hardcode_libdir_separator_CXX=
13007 fi
13008 esac
13009 shared_flag='-shared'
13010 if test "$aix_use_runtimelinking" = yes; then
13011 shared_flag="$shared_flag "'${wl}-G'
13012 fi
13013 else
13014 # not using gcc
13015 if test "$host_cpu" = ia64; then
13016 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13017 # chokes on -Wl,-G. The following line is correct:
13018 shared_flag='-G'
13019 else
13020 if test "$aix_use_runtimelinking" = yes; then
13021 shared_flag='${wl}-G'
13022 else
13023 shared_flag='${wl}-bM:SRE'
13024 fi
13025 fi
13026 fi
13027
13028 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13029 # It seems that -bexpall does not export symbols beginning with
13030 # underscore (_), so it is better to generate a list of symbols to
13031 # export.
13032 always_export_symbols_CXX=yes
13033 if test "$aix_use_runtimelinking" = yes; then
13034 # Warning - without using the other runtime loading flags (-brtl),
13035 # -berok will link without error, but may produce a broken library.
13036 allow_undefined_flag_CXX='-berok'
13037 # Determine the default libpath from the value encoded in an empty
13038 # executable.
13039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13040/* end confdefs.h. */
13041
13042int
13043main ()
13044{
13045
13046 ;
13047 return 0;
13048}
13049_ACEOF
13050if ac_fn_cxx_try_link "$LINENO"; then :
13051
13052lt_aix_libpath_sed='
13053 /Import File Strings/,/^$/ {
13054 /^0/ {
13055 s/^0 *\(.*\)$/\1/
13056 p
13057 }
13058 }'
13059aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13060# Check for a 64-bit object if we didn't find anything.
13061if test -z "$aix_libpath"; then
13062 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13063fi
13064fi
13065rm -f core conftest.err conftest.$ac_objext \
13066 conftest$ac_exeext conftest.$ac_ext
13067if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13068
13069 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13070
13071 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"
13072 else
13073 if test "$host_cpu" = ia64; then
13074 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13075 allow_undefined_flag_CXX="-z nodefs"
13076 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"
13077 else
13078 # Determine the default libpath from the value encoded in an
13079 # empty executable.
13080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13081/* end confdefs.h. */
13082
13083int
13084main ()
13085{
13086
13087 ;
13088 return 0;
13089}
13090_ACEOF
13091if ac_fn_cxx_try_link "$LINENO"; then :
13092
13093lt_aix_libpath_sed='
13094 /Import File Strings/,/^$/ {
13095 /^0/ {
13096 s/^0 *\(.*\)$/\1/
13097 p
13098 }
13099 }'
13100aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13101# Check for a 64-bit object if we didn't find anything.
13102if test -z "$aix_libpath"; then
13103 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13104fi
13105fi
13106rm -f core conftest.err conftest.$ac_objext \
13107 conftest$ac_exeext conftest.$ac_ext
13108if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13109
13110 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13111 # Warning - without using the other run time loading flags,
13112 # -berok will link without error, but may produce a broken library.
13113 no_undefined_flag_CXX=' ${wl}-bernotok'
13114 allow_undefined_flag_CXX=' ${wl}-berok'
13115 if test "$with_gnu_ld" = yes; then
13116 # We only use this code for GNU lds that support --whole-archive.
13117 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13118 else
13119 # Exported symbols can be pulled into shared objects from archives
13120 whole_archive_flag_spec_CXX='$convenience'
13121 fi
13122 archive_cmds_need_lc_CXX=yes
13123 # This is similar to how AIX traditionally builds its shared
13124 # libraries.
13125 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'
13126 fi
13127 fi
13128 ;;
13129
13130 beos*)
13131 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13132 allow_undefined_flag_CXX=unsupported
13133 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13134 # support --undefined. This deserves some investigation. FIXME
13135 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13136 else
13137 ld_shlibs_CXX=no
13138 fi
13139 ;;
13140
13141 chorus*)
13142 case $cc_basename in
13143 *)
13144 # FIXME: insert proper C++ library support
13145 ld_shlibs_CXX=no
13146 ;;
13147 esac
13148 ;;
13149
13150 cygwin* | mingw* | pw32* | cegcc*)
13151 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13152 # as there is no search path for DLLs.
13153 hardcode_libdir_flag_spec_CXX='-L$libdir'
13154 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13155 allow_undefined_flag_CXX=unsupported
13156 always_export_symbols_CXX=no
13157 enable_shared_with_static_runtimes_CXX=yes
13158
13159 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13160 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'
13161 # If the export-symbols file already is a .def file (1st line
13162 # is EXPORTS), use it as is; otherwise, prepend...
13163 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13164 cp $export_symbols $output_objdir/$soname.def;
13165 else
13166 echo EXPORTS > $output_objdir/$soname.def;
13167 cat $export_symbols >> $output_objdir/$soname.def;
13168 fi~
13169 $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'
13170 else
13171 ld_shlibs_CXX=no
13172 fi
13173 ;;
13174 darwin* | rhapsody*)
13175
13176
13177 archive_cmds_need_lc_CXX=no
13178 hardcode_direct_CXX=no
13179 hardcode_automatic_CXX=yes
13180 hardcode_shlibpath_var_CXX=unsupported
13181 if test "$lt_cv_ld_force_load" = "yes"; then
13182 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\"`'
13183 else
13184 whole_archive_flag_spec_CXX=''
13185 fi
13186 link_all_deplibs_CXX=yes
13187 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13188 case $cc_basename in
13189 ifort*) _lt_dar_can_shared=yes ;;
13190 *) _lt_dar_can_shared=$GCC ;;
13191 esac
13192 if test "$_lt_dar_can_shared" = "yes"; then
13193 output_verbose_link_cmd=func_echo_all
13194 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}"
13195 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13196 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}"
13197 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}"
13198 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13199 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}"
13200 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}"
13201 fi
13202
13203 else
13204 ld_shlibs_CXX=no
13205 fi
13206
13207 ;;
13208
13209 dgux*)
13210 case $cc_basename in
13211 ec++*)
13212 # FIXME: insert proper C++ library support
13213 ld_shlibs_CXX=no
13214 ;;
13215 ghcx*)
13216 # Green Hills C++ Compiler
13217 # FIXME: insert proper C++ library support
13218 ld_shlibs_CXX=no
13219 ;;
13220 *)
13221 # FIXME: insert proper C++ library support
13222 ld_shlibs_CXX=no
13223 ;;
13224 esac
13225 ;;
13226
6d2920c8 13227 freebsd2.*)
3cb62297
L
13228 # C++ shared libraries reported to be fairly broken before
13229 # switch to ELF
13230 ld_shlibs_CXX=no
13231 ;;
13232
13233 freebsd-elf*)
13234 archive_cmds_need_lc_CXX=no
13235 ;;
13236
13237 freebsd* | dragonfly*)
13238 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13239 # conventions
13240 ld_shlibs_CXX=yes
13241 ;;
13242
13243 gnu*)
13244 ;;
13245
13246 haiku*)
13247 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13248 link_all_deplibs_CXX=yes
13249 ;;
13250
13251 hpux9*)
13252 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13253 hardcode_libdir_separator_CXX=:
13254 export_dynamic_flag_spec_CXX='${wl}-E'
13255 hardcode_direct_CXX=yes
13256 hardcode_minus_L_CXX=yes # Not in the search PATH,
13257 # but as the default
13258 # location of the library.
13259
13260 case $cc_basename in
13261 CC*)
13262 # FIXME: insert proper C++ library support
13263 ld_shlibs_CXX=no
13264 ;;
13265 aCC*)
13266 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'
13267 # Commands to make compiler produce verbose output that lists
13268 # what "hidden" libraries, object files and flags are used when
13269 # linking a shared library.
13270 #
13271 # There doesn't appear to be a way to prevent this compiler from
13272 # explicitly linking system object files so we need to strip them
13273 # from the output so that they don't get included in the library
13274 # dependencies.
13275 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"'
13276 ;;
13277 *)
13278 if test "$GXX" = yes; then
13279 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'
13280 else
13281 # FIXME: insert proper C++ library support
13282 ld_shlibs_CXX=no
13283 fi
13284 ;;
13285 esac
13286 ;;
13287
13288 hpux10*|hpux11*)
13289 if test $with_gnu_ld = no; then
13290 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13291 hardcode_libdir_separator_CXX=:
13292
13293 case $host_cpu in
13294 hppa*64*|ia64*)
13295 ;;
13296 *)
13297 export_dynamic_flag_spec_CXX='${wl}-E'
13298 ;;
13299 esac
13300 fi
13301 case $host_cpu in
13302 hppa*64*|ia64*)
13303 hardcode_direct_CXX=no
13304 hardcode_shlibpath_var_CXX=no
13305 ;;
13306 *)
13307 hardcode_direct_CXX=yes
13308 hardcode_direct_absolute_CXX=yes
13309 hardcode_minus_L_CXX=yes # Not in the search PATH,
13310 # but as the default
13311 # location of the library.
13312 ;;
13313 esac
13314
13315 case $cc_basename in
13316 CC*)
13317 # FIXME: insert proper C++ library support
13318 ld_shlibs_CXX=no
13319 ;;
13320 aCC*)
13321 case $host_cpu in
13322 hppa*64*)
13323 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13324 ;;
13325 ia64*)
13326 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13327 ;;
13328 *)
13329 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13330 ;;
13331 esac
13332 # Commands to make compiler produce verbose output that lists
13333 # what "hidden" libraries, object files and flags are used when
13334 # linking a shared library.
13335 #
13336 # There doesn't appear to be a way to prevent this compiler from
13337 # explicitly linking system object files so we need to strip them
13338 # from the output so that they don't get included in the library
13339 # dependencies.
13340 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"'
13341 ;;
13342 *)
13343 if test "$GXX" = yes; then
13344 if test $with_gnu_ld = no; then
13345 case $host_cpu in
13346 hppa*64*)
13347 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13348 ;;
13349 ia64*)
13350 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13351 ;;
13352 *)
13353 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'
13354 ;;
13355 esac
13356 fi
13357 else
13358 # FIXME: insert proper C++ library support
13359 ld_shlibs_CXX=no
13360 fi
13361 ;;
13362 esac
13363 ;;
13364
13365 interix[3-9]*)
13366 hardcode_direct_CXX=no
13367 hardcode_shlibpath_var_CXX=no
13368 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13369 export_dynamic_flag_spec_CXX='${wl}-E'
13370 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13371 # Instead, shared libraries are loaded at an image base (0x10000000 by
13372 # default) and relocated if they conflict, which is a slow very memory
13373 # consuming and fragmenting process. To avoid this, we pick a random,
13374 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13375 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13376 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'
13377 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'
13378 ;;
13379 irix5* | irix6*)
13380 case $cc_basename in
13381 CC*)
13382 # SGI C++
13383 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'
13384
13385 # Archives containing C++ object files must be created using
13386 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13387 # necessary to make sure instantiated templates are included
13388 # in the archive.
13389 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13390 ;;
13391 *)
13392 if test "$GXX" = yes; then
13393 if test "$with_gnu_ld" = no; then
13394 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'
13395 else
13396 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'
13397 fi
13398 fi
13399 link_all_deplibs_CXX=yes
13400 ;;
13401 esac
13402 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13403 hardcode_libdir_separator_CXX=:
13404 inherit_rpath_CXX=yes
13405 ;;
13406
13407 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13408 case $cc_basename in
13409 KCC*)
13410 # Kuck and Associates, Inc. (KAI) C++ Compiler
13411
13412 # KCC will only create a shared library if the output file
13413 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13414 # to its proper name (with version) after linking.
13415 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'
13416 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'
13417 # Commands to make compiler produce verbose output that lists
13418 # what "hidden" libraries, object files and flags are used when
13419 # linking a shared library.
13420 #
13421 # There doesn't appear to be a way to prevent this compiler from
13422 # explicitly linking system object files so we need to strip them
13423 # from the output so that they don't get included in the library
13424 # dependencies.
13425 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"'
13426
13427 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13428 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13429
13430 # Archives containing C++ object files must be created using
13431 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13432 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13433 ;;
13434 icpc* | ecpc* )
13435 # Intel C++
13436 with_gnu_ld=yes
13437 # version 8.0 and above of icpc choke on multiply defined symbols
13438 # if we add $predep_objects and $postdep_objects, however 7.1 and
13439 # earlier do not add the objects themselves.
13440 case `$CC -V 2>&1` in
13441 *"Version 7."*)
13442 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13443 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'
13444 ;;
13445 *) # Version 8.0 or newer
13446 tmp_idyn=
13447 case $host_cpu in
13448 ia64*) tmp_idyn=' -i_dynamic';;
13449 esac
13450 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13451 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'
13452 ;;
13453 esac
13454 archive_cmds_need_lc_CXX=no
13455 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13456 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13457 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13458 ;;
13459 pgCC* | pgcpp*)
13460 # Portland Group C++ compiler
13461 case `$CC -V` in
13462 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13463 prelink_cmds_CXX='tpldir=Template.dir~
13464 rm -rf $tpldir~
13465 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13466 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13467 old_archive_cmds_CXX='tpldir=Template.dir~
13468 rm -rf $tpldir~
13469 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13470 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13471 $RANLIB $oldlib'
13472 archive_cmds_CXX='tpldir=Template.dir~
13473 rm -rf $tpldir~
13474 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13475 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13476 archive_expsym_cmds_CXX='tpldir=Template.dir~
13477 rm -rf $tpldir~
13478 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13479 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13480 ;;
13481 *) # Version 6 and above use weak symbols
13482 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13483 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'
13484 ;;
13485 esac
13486
13487 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13488 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13489 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'
13490 ;;
13491 cxx*)
13492 # Compaq C++
13493 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13494 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'
13495
13496 runpath_var=LD_RUN_PATH
13497 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13498 hardcode_libdir_separator_CXX=:
13499
13500 # Commands to make compiler produce verbose output that lists
13501 # what "hidden" libraries, object files and flags are used when
13502 # linking a shared library.
13503 #
13504 # There doesn't appear to be a way to prevent this compiler from
13505 # explicitly linking system object files so we need to strip them
13506 # from the output so that they don't get included in the library
13507 # dependencies.
13508 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'
13509 ;;
13510 xl* | mpixl* | bgxl*)
13511 # IBM XL 8.0 on PPC, with GNU ld
13512 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13513 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13514 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13515 if test "x$supports_anon_versioning" = xyes; then
13516 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13517 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13518 echo "local: *; };" >> $output_objdir/$libname.ver~
13519 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13520 fi
13521 ;;
13522 *)
13523 case `$CC -V 2>&1 | sed 5q` in
13524 *Sun\ C*)
13525 # Sun C++ 5.9
13526 no_undefined_flag_CXX=' -zdefs'
13527 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13528 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'
13529 hardcode_libdir_flag_spec_CXX='-R$libdir'
13530 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'
13531 compiler_needs_object_CXX=yes
13532
13533 # Not sure whether something based on
13534 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13535 # would be better.
13536 output_verbose_link_cmd='func_echo_all'
13537
13538 # Archives containing C++ object files must be created using
13539 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13540 # necessary to make sure instantiated templates are included
13541 # in the archive.
13542 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13543 ;;
13544 esac
13545 ;;
13546 esac
13547 ;;
13548
13549 lynxos*)
13550 # FIXME: insert proper C++ library support
13551 ld_shlibs_CXX=no
13552 ;;
13553
13554 m88k*)
13555 # FIXME: insert proper C++ library support
13556 ld_shlibs_CXX=no
13557 ;;
13558
13559 mvs*)
13560 case $cc_basename in
13561 cxx*)
13562 # FIXME: insert proper C++ library support
13563 ld_shlibs_CXX=no
13564 ;;
13565 *)
13566 # FIXME: insert proper C++ library support
13567 ld_shlibs_CXX=no
13568 ;;
13569 esac
13570 ;;
13571
13572 netbsd*)
13573 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13574 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13575 wlarc=
13576 hardcode_libdir_flag_spec_CXX='-R$libdir'
13577 hardcode_direct_CXX=yes
13578 hardcode_shlibpath_var_CXX=no
13579 fi
13580 # Workaround some broken pre-1.5 toolchains
13581 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13582 ;;
13583
13584 *nto* | *qnx*)
13585 ld_shlibs_CXX=yes
13586 ;;
13587
13588 openbsd2*)
13589 # C++ shared libraries are fairly broken
13590 ld_shlibs_CXX=no
13591 ;;
13592
13593 openbsd*)
13594 if test -f /usr/libexec/ld.so; then
13595 hardcode_direct_CXX=yes
13596 hardcode_shlibpath_var_CXX=no
13597 hardcode_direct_absolute_CXX=yes
13598 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13599 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13600 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13601 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13602 export_dynamic_flag_spec_CXX='${wl}-E'
13603 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13604 fi
13605 output_verbose_link_cmd=func_echo_all
13606 else
13607 ld_shlibs_CXX=no
13608 fi
13609 ;;
13610
13611 osf3* | osf4* | osf5*)
13612 case $cc_basename in
13613 KCC*)
13614 # Kuck and Associates, Inc. (KAI) C++ Compiler
13615
13616 # KCC will only create a shared library if the output file
13617 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13618 # to its proper name (with version) after linking.
13619 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'
13620
13621 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13622 hardcode_libdir_separator_CXX=:
13623
13624 # Archives containing C++ object files must be created using
13625 # the KAI C++ compiler.
13626 case $host in
13627 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13628 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13629 esac
13630 ;;
13631 RCC*)
13632 # Rational C++ 2.4.1
13633 # FIXME: insert proper C++ library support
13634 ld_shlibs_CXX=no
13635 ;;
13636 cxx*)
13637 case $host in
13638 osf3*)
13639 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13640 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'
13641 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13642 ;;
13643 *)
13644 allow_undefined_flag_CXX=' -expect_unresolved \*'
13645 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'
13646 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13647 echo "-hidden">> $lib.exp~
13648 $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~
13649 $RM $lib.exp'
13650 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13651 ;;
13652 esac
13653
13654 hardcode_libdir_separator_CXX=:
13655
13656 # Commands to make compiler produce verbose output that lists
13657 # what "hidden" libraries, object files and flags are used when
13658 # linking a shared library.
13659 #
13660 # There doesn't appear to be a way to prevent this compiler from
13661 # explicitly linking system object files so we need to strip them
13662 # from the output so that they don't get included in the library
13663 # dependencies.
13664 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"'
13665 ;;
13666 *)
13667 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13668 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13669 case $host in
13670 osf3*)
13671 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'
13672 ;;
13673 *)
13674 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'
13675 ;;
13676 esac
13677
13678 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13679 hardcode_libdir_separator_CXX=:
13680
13681 # Commands to make compiler produce verbose output that lists
13682 # what "hidden" libraries, object files and flags are used when
13683 # linking a shared library.
13684 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13685
13686 else
13687 # FIXME: insert proper C++ library support
13688 ld_shlibs_CXX=no
13689 fi
13690 ;;
13691 esac
13692 ;;
13693
13694 psos*)
13695 # FIXME: insert proper C++ library support
13696 ld_shlibs_CXX=no
13697 ;;
13698
13699 sunos4*)
13700 case $cc_basename in
13701 CC*)
13702 # Sun C++ 4.x
13703 # FIXME: insert proper C++ library support
13704 ld_shlibs_CXX=no
13705 ;;
13706 lcc*)
13707 # Lucid
13708 # FIXME: insert proper C++ library support
13709 ld_shlibs_CXX=no
13710 ;;
13711 *)
13712 # FIXME: insert proper C++ library support
13713 ld_shlibs_CXX=no
13714 ;;
13715 esac
13716 ;;
13717
13718 solaris*)
13719 case $cc_basename in
13720 CC*)
13721 # Sun C++ 4.2, 5.x and Centerline C++
13722 archive_cmds_need_lc_CXX=yes
13723 no_undefined_flag_CXX=' -zdefs'
13724 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13725 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13726 $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'
13727
13728 hardcode_libdir_flag_spec_CXX='-R$libdir'
13729 hardcode_shlibpath_var_CXX=no
13730 case $host_os in
13731 solaris2.[0-5] | solaris2.[0-5].*) ;;
13732 *)
13733 # The compiler driver will combine and reorder linker options,
13734 # but understands `-z linker_flag'.
13735 # Supported since Solaris 2.6 (maybe 2.5.1?)
13736 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13737 ;;
13738 esac
13739 link_all_deplibs_CXX=yes
13740
13741 output_verbose_link_cmd='func_echo_all'
13742
13743 # Archives containing C++ object files must be created using
13744 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13745 # necessary to make sure instantiated templates are included
13746 # in the archive.
13747 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13748 ;;
13749 gcx*)
13750 # Green Hills C++ Compiler
13751 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13752
13753 # The C++ compiler must be used to create the archive.
13754 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13755 ;;
13756 *)
13757 # GNU C++ compiler with Solaris linker
13758 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13759 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13760 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13761 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13762 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13763 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13764
13765 # Commands to make compiler produce verbose output that lists
13766 # what "hidden" libraries, object files and flags are used when
13767 # linking a shared library.
13768 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13769 else
13770 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13771 # platform.
13772 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13773 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13774 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13775
13776 # Commands to make compiler produce verbose output that lists
13777 # what "hidden" libraries, object files and flags are used when
13778 # linking a shared library.
13779 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13780 fi
13781
13782 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13783 case $host_os in
13784 solaris2.[0-5] | solaris2.[0-5].*) ;;
13785 *)
13786 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13787 ;;
13788 esac
13789 fi
13790 ;;
13791 esac
13792 ;;
13793
13794 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13795 no_undefined_flag_CXX='${wl}-z,text'
13796 archive_cmds_need_lc_CXX=no
13797 hardcode_shlibpath_var_CXX=no
13798 runpath_var='LD_RUN_PATH'
13799
13800 case $cc_basename in
13801 CC*)
13802 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13803 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13804 ;;
13805 *)
13806 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13807 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13808 ;;
13809 esac
13810 ;;
13811
13812 sysv5* | sco3.2v5* | sco5v6*)
13813 # Note: We can NOT use -z defs as we might desire, because we do not
13814 # link with -lc, and that would cause any symbols used from libc to
13815 # always be unresolved, which means just about no library would
13816 # ever link correctly. If we're not using GNU ld we use -z text
13817 # though, which does catch some bad symbols but isn't as heavy-handed
13818 # as -z defs.
13819 no_undefined_flag_CXX='${wl}-z,text'
13820 allow_undefined_flag_CXX='${wl}-z,nodefs'
13821 archive_cmds_need_lc_CXX=no
13822 hardcode_shlibpath_var_CXX=no
13823 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13824 hardcode_libdir_separator_CXX=':'
13825 link_all_deplibs_CXX=yes
13826 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13827 runpath_var='LD_RUN_PATH'
13828
13829 case $cc_basename in
13830 CC*)
13831 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13832 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13833 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13834 '"$old_archive_cmds_CXX"
13835 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13836 '"$reload_cmds_CXX"
13837 ;;
13838 *)
13839 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13840 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13841 ;;
13842 esac
13843 ;;
13844
13845 tandem*)
13846 case $cc_basename in
13847 NCC*)
13848 # NonStop-UX NCC 3.20
13849 # FIXME: insert proper C++ library support
13850 ld_shlibs_CXX=no
13851 ;;
13852 *)
13853 # FIXME: insert proper C++ library support
13854 ld_shlibs_CXX=no
13855 ;;
13856 esac
13857 ;;
13858
13859 vxworks*)
13860 # FIXME: insert proper C++ library support
13861 ld_shlibs_CXX=no
13862 ;;
13863
13864 *)
13865 # FIXME: insert proper C++ library support
13866 ld_shlibs_CXX=no
13867 ;;
13868 esac
13869
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13871$as_echo "$ld_shlibs_CXX" >&6; }
13872 test "$ld_shlibs_CXX" = no && can_build_shared=no
13873
13874 GCC_CXX="$GXX"
13875 LD_CXX="$LD"
13876
13877 ## CAVEAT EMPTOR:
13878 ## There is no encapsulation within the following macros, do not change
13879 ## the running order or otherwise move them around unless you know exactly
13880 ## what you are doing...
13881 # Dependencies to place before and after the object being linked:
13882predep_objects_CXX=
13883postdep_objects_CXX=
13884predeps_CXX=
13885postdeps_CXX=
13886compiler_lib_search_path_CXX=
13887
13888cat > conftest.$ac_ext <<_LT_EOF
13889class Foo
13890{
13891public:
13892 Foo (void) { a = 0; }
13893private:
13894 int a;
13895};
13896_LT_EOF
13897
13898if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13899 (eval $ac_compile) 2>&5
13900 ac_status=$?
13901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13902 test $ac_status = 0; }; then
13903 # Parse the compiler output and extract the necessary
13904 # objects, libraries and library flags.
13905
13906 # Sentinel used to keep track of whether or not we are before
13907 # the conftest object file.
13908 pre_test_object_deps_done=no
13909
13910 for p in `eval "$output_verbose_link_cmd"`; do
13911 case $p in
13912
13913 -L* | -R* | -l*)
13914 # Some compilers place space between "-{L,R}" and the path.
13915 # Remove the space.
13916 if test $p = "-L" ||
13917 test $p = "-R"; then
13918 prev=$p
13919 continue
13920 else
13921 prev=
13922 fi
13923
13924 if test "$pre_test_object_deps_done" = no; then
13925 case $p in
13926 -L* | -R*)
13927 # Internal compiler library paths should come after those
13928 # provided the user. The postdeps already come after the
13929 # user supplied libs so there is no need to process them.
13930 if test -z "$compiler_lib_search_path_CXX"; then
13931 compiler_lib_search_path_CXX="${prev}${p}"
13932 else
13933 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13934 fi
13935 ;;
13936 # The "-l" case would never come before the object being
13937 # linked, so don't bother handling this case.
13938 esac
13939 else
13940 if test -z "$postdeps_CXX"; then
13941 postdeps_CXX="${prev}${p}"
13942 else
13943 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13944 fi
13945 fi
13946 ;;
13947
13948 *.$objext)
13949 # This assumes that the test object file only shows up
13950 # once in the compiler output.
13951 if test "$p" = "conftest.$objext"; then
13952 pre_test_object_deps_done=yes
13953 continue
13954 fi
13955
13956 if test "$pre_test_object_deps_done" = no; then
13957 if test -z "$predep_objects_CXX"; then
13958 predep_objects_CXX="$p"
13959 else
13960 predep_objects_CXX="$predep_objects_CXX $p"
13961 fi
13962 else
13963 if test -z "$postdep_objects_CXX"; then
13964 postdep_objects_CXX="$p"
13965 else
13966 postdep_objects_CXX="$postdep_objects_CXX $p"
13967 fi
13968 fi
13969 ;;
13970
13971 *) ;; # Ignore the rest.
13972
13973 esac
13974 done
13975
13976 # Clean up.
13977 rm -f a.out a.exe
13978else
13979 echo "libtool.m4: error: problem compiling CXX test program"
13980fi
13981
13982$RM -f confest.$objext
13983
13984# PORTME: override above test on systems where it is broken
13985case $host_os in
13986interix[3-9]*)
13987 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13988 # hack all around it, let's just trust "g++" to DTRT.
13989 predep_objects_CXX=
13990 postdep_objects_CXX=
13991 postdeps_CXX=
13992 ;;
13993
13994linux*)
13995 case `$CC -V 2>&1 | sed 5q` in
13996 *Sun\ C*)
13997 # Sun C++ 5.9
13998
13999 # The more standards-conforming stlport4 library is
14000 # incompatible with the Cstd library. Avoid specifying
14001 # it if it's in CXXFLAGS. Ignore libCrun as
14002 # -library=stlport4 depends on it.
14003 case " $CXX $CXXFLAGS " in
14004 *" -library=stlport4 "*)
14005 solaris_use_stlport4=yes
14006 ;;
14007 esac
14008
14009 if test "$solaris_use_stlport4" != yes; then
14010 postdeps_CXX='-library=Cstd -library=Crun'
14011 fi
14012 ;;
14013 esac
14014 ;;
14015
14016solaris*)
14017 case $cc_basename in
14018 CC*)
14019 # The more standards-conforming stlport4 library is
14020 # incompatible with the Cstd library. Avoid specifying
14021 # it if it's in CXXFLAGS. Ignore libCrun as
14022 # -library=stlport4 depends on it.
14023 case " $CXX $CXXFLAGS " in
14024 *" -library=stlport4 "*)
14025 solaris_use_stlport4=yes
14026 ;;
14027 esac
14028
14029 # Adding this requires a known-good setup of shared libraries for
14030 # Sun compiler versions before 5.6, else PIC objects from an old
14031 # archive will be linked into the output, leading to subtle bugs.
14032 if test "$solaris_use_stlport4" != yes; then
14033 postdeps_CXX='-library=Cstd -library=Crun'
14034 fi
14035 ;;
14036 esac
14037 ;;
14038esac
14039
14040
14041case " $postdeps_CXX " in
14042*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14043esac
14044 compiler_lib_search_dirs_CXX=
14045if test -n "${compiler_lib_search_path_CXX}"; then
14046 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14047fi
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079 lt_prog_compiler_wl_CXX=
14080lt_prog_compiler_pic_CXX=
14081lt_prog_compiler_static_CXX=
14082
14083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14084$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14085
14086 # C++ specific cases for pic, static, wl, etc.
14087 if test "$GXX" = yes; then
14088 lt_prog_compiler_wl_CXX='-Wl,'
14089 lt_prog_compiler_static_CXX='-static'
14090
14091 case $host_os in
14092 aix*)
14093 # All AIX code is PIC.
14094 if test "$host_cpu" = ia64; then
14095 # AIX 5 now supports IA64 processor
14096 lt_prog_compiler_static_CXX='-Bstatic'
14097 fi
52204357 14098 lt_prog_compiler_pic_CXX='-fPIC'
3cb62297
L
14099 ;;
14100
14101 amigaos*)
14102 case $host_cpu in
14103 powerpc)
14104 # see comment about AmigaOS4 .so support
14105 lt_prog_compiler_pic_CXX='-fPIC'
14106 ;;
14107 m68k)
14108 # FIXME: we need at least 68020 code to build shared libraries, but
14109 # adding the `-m68020' flag to GCC prevents building anything better,
14110 # like `-m68040'.
14111 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14112 ;;
14113 esac
14114 ;;
14115
14116 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14117 # PIC is the default for these OSes.
14118 ;;
14119 mingw* | cygwin* | os2* | pw32* | cegcc*)
14120 # This hack is so that the source file can tell whether it is being
14121 # built for inclusion in a dll (and should export symbols for example).
14122 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14123 # (--disable-auto-import) libraries
14124 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14125 ;;
14126 darwin* | rhapsody*)
14127 # PIC is the default on this platform
14128 # Common symbols not allowed in MH_DYLIB files
14129 lt_prog_compiler_pic_CXX='-fno-common'
14130 ;;
14131 *djgpp*)
14132 # DJGPP does not support shared libraries at all
14133 lt_prog_compiler_pic_CXX=
14134 ;;
14135 haiku*)
14136 # PIC is the default for Haiku.
14137 # The "-static" flag exists, but is broken.
14138 lt_prog_compiler_static_CXX=
14139 ;;
14140 interix[3-9]*)
14141 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14142 # Instead, we relocate shared libraries at runtime.
14143 ;;
14144 sysv4*MP*)
14145 if test -d /usr/nec; then
14146 lt_prog_compiler_pic_CXX=-Kconform_pic
14147 fi
14148 ;;
14149 hpux*)
14150 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14151 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14152 # sets the default TLS model and affects inlining.
14153 case $host_cpu in
14154 hppa*64*)
14155 ;;
14156 *)
14157 lt_prog_compiler_pic_CXX='-fPIC'
14158 ;;
14159 esac
14160 ;;
14161 *qnx* | *nto*)
14162 # QNX uses GNU C++, but need to define -shared option too, otherwise
14163 # it will coredump.
14164 lt_prog_compiler_pic_CXX='-fPIC -shared'
14165 ;;
14166 *)
14167 lt_prog_compiler_pic_CXX='-fPIC'
14168 ;;
14169 esac
14170 else
14171 case $host_os in
14172 aix[4-9]*)
14173 # All AIX code is PIC.
14174 if test "$host_cpu" = ia64; then
14175 # AIX 5 now supports IA64 processor
14176 lt_prog_compiler_static_CXX='-Bstatic'
14177 else
14178 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14179 fi
14180 ;;
14181 chorus*)
14182 case $cc_basename in
14183 cxch68*)
14184 # Green Hills C++ Compiler
14185 # _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"
14186 ;;
14187 esac
14188 ;;
14189 dgux*)
14190 case $cc_basename in
14191 ec++*)
14192 lt_prog_compiler_pic_CXX='-KPIC'
14193 ;;
14194 ghcx*)
14195 # Green Hills C++ Compiler
14196 lt_prog_compiler_pic_CXX='-pic'
14197 ;;
14198 *)
14199 ;;
14200 esac
14201 ;;
14202 freebsd* | dragonfly*)
14203 # FreeBSD uses GNU C++
14204 ;;
14205 hpux9* | hpux10* | hpux11*)
14206 case $cc_basename in
14207 CC*)
14208 lt_prog_compiler_wl_CXX='-Wl,'
14209 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14210 if test "$host_cpu" != ia64; then
14211 lt_prog_compiler_pic_CXX='+Z'
14212 fi
14213 ;;
14214 aCC*)
14215 lt_prog_compiler_wl_CXX='-Wl,'
14216 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14217 case $host_cpu in
14218 hppa*64*|ia64*)
14219 # +Z the default
14220 ;;
14221 *)
14222 lt_prog_compiler_pic_CXX='+Z'
14223 ;;
14224 esac
14225 ;;
14226 *)
14227 ;;
14228 esac
14229 ;;
14230 interix*)
14231 # This is c89, which is MS Visual C++ (no shared libs)
14232 # Anyone wants to do a port?
14233 ;;
14234 irix5* | irix6* | nonstopux*)
14235 case $cc_basename in
14236 CC*)
14237 lt_prog_compiler_wl_CXX='-Wl,'
14238 lt_prog_compiler_static_CXX='-non_shared'
14239 # CC pic flag -KPIC is the default.
14240 ;;
14241 *)
14242 ;;
14243 esac
14244 ;;
14245 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14246 case $cc_basename in
14247 KCC*)
14248 # KAI C++ Compiler
14249 lt_prog_compiler_wl_CXX='--backend -Wl,'
14250 lt_prog_compiler_pic_CXX='-fPIC'
14251 ;;
14252 ecpc* )
14253 # old Intel C++ for x86_64 which still supported -KPIC.
14254 lt_prog_compiler_wl_CXX='-Wl,'
14255 lt_prog_compiler_pic_CXX='-KPIC'
14256 lt_prog_compiler_static_CXX='-static'
14257 ;;
14258 icpc* )
14259 # Intel C++, used to be incompatible with GCC.
14260 # ICC 10 doesn't accept -KPIC any more.
14261 lt_prog_compiler_wl_CXX='-Wl,'
14262 lt_prog_compiler_pic_CXX='-fPIC'
14263 lt_prog_compiler_static_CXX='-static'
14264 ;;
14265 pgCC* | pgcpp*)
14266 # Portland Group C++ compiler
14267 lt_prog_compiler_wl_CXX='-Wl,'
14268 lt_prog_compiler_pic_CXX='-fpic'
14269 lt_prog_compiler_static_CXX='-Bstatic'
14270 ;;
14271 cxx*)
14272 # Compaq C++
14273 # Make sure the PIC flag is empty. It appears that all Alpha
14274 # Linux and Compaq Tru64 Unix objects are PIC.
14275 lt_prog_compiler_pic_CXX=
14276 lt_prog_compiler_static_CXX='-non_shared'
14277 ;;
14278 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14279 # IBM XL 8.0, 9.0 on PPC and BlueGene
14280 lt_prog_compiler_wl_CXX='-Wl,'
14281 lt_prog_compiler_pic_CXX='-qpic'
14282 lt_prog_compiler_static_CXX='-qstaticlink'
14283 ;;
14284 *)
14285 case `$CC -V 2>&1 | sed 5q` in
14286 *Sun\ C*)
14287 # Sun C++ 5.9
14288 lt_prog_compiler_pic_CXX='-KPIC'
14289 lt_prog_compiler_static_CXX='-Bstatic'
14290 lt_prog_compiler_wl_CXX='-Qoption ld '
14291 ;;
14292 esac
14293 ;;
14294 esac
14295 ;;
14296 lynxos*)
14297 ;;
14298 m88k*)
14299 ;;
14300 mvs*)
14301 case $cc_basename in
14302 cxx*)
14303 lt_prog_compiler_pic_CXX='-W c,exportall'
14304 ;;
14305 *)
14306 ;;
14307 esac
14308 ;;
14309 netbsd*)
14310 ;;
14311 *qnx* | *nto*)
14312 # QNX uses GNU C++, but need to define -shared option too, otherwise
14313 # it will coredump.
14314 lt_prog_compiler_pic_CXX='-fPIC -shared'
14315 ;;
14316 osf3* | osf4* | osf5*)
14317 case $cc_basename in
14318 KCC*)
14319 lt_prog_compiler_wl_CXX='--backend -Wl,'
14320 ;;
14321 RCC*)
14322 # Rational C++ 2.4.1
14323 lt_prog_compiler_pic_CXX='-pic'
14324 ;;
14325 cxx*)
14326 # Digital/Compaq C++
14327 lt_prog_compiler_wl_CXX='-Wl,'
14328 # Make sure the PIC flag is empty. It appears that all Alpha
14329 # Linux and Compaq Tru64 Unix objects are PIC.
14330 lt_prog_compiler_pic_CXX=
14331 lt_prog_compiler_static_CXX='-non_shared'
14332 ;;
14333 *)
14334 ;;
14335 esac
14336 ;;
14337 psos*)
14338 ;;
14339 solaris*)
14340 case $cc_basename in
14341 CC*)
14342 # Sun C++ 4.2, 5.x and Centerline C++
14343 lt_prog_compiler_pic_CXX='-KPIC'
14344 lt_prog_compiler_static_CXX='-Bstatic'
14345 lt_prog_compiler_wl_CXX='-Qoption ld '
14346 ;;
14347 gcx*)
14348 # Green Hills C++ Compiler
14349 lt_prog_compiler_pic_CXX='-PIC'
14350 ;;
14351 *)
14352 ;;
14353 esac
14354 ;;
14355 sunos4*)
14356 case $cc_basename in
14357 CC*)
14358 # Sun C++ 4.x
14359 lt_prog_compiler_pic_CXX='-pic'
14360 lt_prog_compiler_static_CXX='-Bstatic'
14361 ;;
14362 lcc*)
14363 # Lucid
14364 lt_prog_compiler_pic_CXX='-pic'
14365 ;;
14366 *)
14367 ;;
14368 esac
14369 ;;
14370 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14371 case $cc_basename in
14372 CC*)
14373 lt_prog_compiler_wl_CXX='-Wl,'
14374 lt_prog_compiler_pic_CXX='-KPIC'
14375 lt_prog_compiler_static_CXX='-Bstatic'
14376 ;;
14377 esac
14378 ;;
14379 tandem*)
14380 case $cc_basename in
14381 NCC*)
14382 # NonStop-UX NCC 3.20
14383 lt_prog_compiler_pic_CXX='-KPIC'
14384 ;;
14385 *)
14386 ;;
14387 esac
14388 ;;
14389 vxworks*)
14390 ;;
14391 *)
14392 lt_prog_compiler_can_build_shared_CXX=no
14393 ;;
14394 esac
14395 fi
14396
14397case $host_os in
14398 # For platforms which do not support PIC, -DPIC is meaningless:
14399 *djgpp*)
14400 lt_prog_compiler_pic_CXX=
14401 ;;
14402 *)
14403 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14404 ;;
14405esac
14406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14407$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14408
14409
14410
14411#
14412# Check to make sure the PIC flag actually works.
14413#
14414if test -n "$lt_prog_compiler_pic_CXX"; then
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14416$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14417if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14418 $as_echo_n "(cached) " >&6
14419else
14420 lt_cv_prog_compiler_pic_works_CXX=no
14421 ac_outfile=conftest.$ac_objext
14422 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14423 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14424 # Insert the option either (1) after the last *FLAGS variable, or
14425 # (2) before a word containing "conftest.", or (3) at the end.
14426 # Note that $ac_compile itself does not contain backslashes and begins
14427 # with a dollar sign (not a hyphen), so the echo should work correctly.
14428 # The option is referenced via a variable to avoid confusing sed.
14429 lt_compile=`echo "$ac_compile" | $SED \
14430 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14431 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14432 -e 's:$: $lt_compiler_flag:'`
14433 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14434 (eval "$lt_compile" 2>conftest.err)
14435 ac_status=$?
14436 cat conftest.err >&5
14437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438 if (exit $ac_status) && test -s "$ac_outfile"; then
14439 # The compiler can only warn and ignore the option if not recognized
14440 # So say no if there are warnings other than the usual output.
14441 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14442 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14443 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14444 lt_cv_prog_compiler_pic_works_CXX=yes
14445 fi
14446 fi
14447 $RM conftest*
14448
14449fi
14450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14451$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14452
14453if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14454 case $lt_prog_compiler_pic_CXX in
14455 "" | " "*) ;;
14456 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14457 esac
14458else
14459 lt_prog_compiler_pic_CXX=
14460 lt_prog_compiler_can_build_shared_CXX=no
14461fi
14462
14463fi
14464
14465
14466
14467#
14468# Check to make sure the static flag actually works.
14469#
14470wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14472$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14473if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14474 $as_echo_n "(cached) " >&6
14475else
14476 lt_cv_prog_compiler_static_works_CXX=no
14477 save_LDFLAGS="$LDFLAGS"
14478 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14479 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14480 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14481 # The linker can only warn and ignore the option if not recognized
14482 # So say no if there are warnings
14483 if test -s conftest.err; then
14484 # Append any errors to the config.log.
14485 cat conftest.err 1>&5
14486 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14487 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14488 if diff conftest.exp conftest.er2 >/dev/null; then
14489 lt_cv_prog_compiler_static_works_CXX=yes
14490 fi
14491 else
14492 lt_cv_prog_compiler_static_works_CXX=yes
14493 fi
14494 fi
14495 $RM -r conftest*
14496 LDFLAGS="$save_LDFLAGS"
14497
14498fi
14499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14500$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14501
14502if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14503 :
14504else
14505 lt_prog_compiler_static_CXX=
14506fi
14507
14508
14509
14510
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14512$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14513if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14514 $as_echo_n "(cached) " >&6
14515else
14516 lt_cv_prog_compiler_c_o_CXX=no
14517 $RM -r conftest 2>/dev/null
14518 mkdir conftest
14519 cd conftest
14520 mkdir out
14521 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14522
14523 lt_compiler_flag="-o out/conftest2.$ac_objext"
14524 # Insert the option either (1) after the last *FLAGS variable, or
14525 # (2) before a word containing "conftest.", or (3) at the end.
14526 # Note that $ac_compile itself does not contain backslashes and begins
14527 # with a dollar sign (not a hyphen), so the echo should work correctly.
14528 lt_compile=`echo "$ac_compile" | $SED \
14529 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14530 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14531 -e 's:$: $lt_compiler_flag:'`
14532 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14533 (eval "$lt_compile" 2>out/conftest.err)
14534 ac_status=$?
14535 cat out/conftest.err >&5
14536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14538 then
14539 # The compiler can only warn and ignore the option if not recognized
14540 # So say no if there are warnings
14541 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14542 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14543 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14544 lt_cv_prog_compiler_c_o_CXX=yes
14545 fi
14546 fi
14547 chmod u+w . 2>&5
14548 $RM conftest*
14549 # SGI C++ compiler will create directory out/ii_files/ for
14550 # template instantiation
14551 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14552 $RM out/* && rmdir out
14553 cd ..
14554 $RM -r conftest
14555 $RM conftest*
14556
14557fi
14558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14559$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14560
14561
14562
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14564$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14565if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14566 $as_echo_n "(cached) " >&6
14567else
14568 lt_cv_prog_compiler_c_o_CXX=no
14569 $RM -r conftest 2>/dev/null
14570 mkdir conftest
14571 cd conftest
14572 mkdir out
14573 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14574
14575 lt_compiler_flag="-o out/conftest2.$ac_objext"
14576 # Insert the option either (1) after the last *FLAGS variable, or
14577 # (2) before a word containing "conftest.", or (3) at the end.
14578 # Note that $ac_compile itself does not contain backslashes and begins
14579 # with a dollar sign (not a hyphen), so the echo should work correctly.
14580 lt_compile=`echo "$ac_compile" | $SED \
14581 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14582 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14583 -e 's:$: $lt_compiler_flag:'`
14584 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14585 (eval "$lt_compile" 2>out/conftest.err)
14586 ac_status=$?
14587 cat out/conftest.err >&5
14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14590 then
14591 # The compiler can only warn and ignore the option if not recognized
14592 # So say no if there are warnings
14593 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14594 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14595 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14596 lt_cv_prog_compiler_c_o_CXX=yes
14597 fi
14598 fi
14599 chmod u+w . 2>&5
14600 $RM conftest*
14601 # SGI C++ compiler will create directory out/ii_files/ for
14602 # template instantiation
14603 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14604 $RM out/* && rmdir out
14605 cd ..
14606 $RM -r conftest
14607 $RM conftest*
14608
14609fi
14610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14611$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14612
14613
14614
14615
14616hard_links="nottested"
14617if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14618 # do not overwrite the value of need_locks provided by the user
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14620$as_echo_n "checking if we can lock with hard links... " >&6; }
14621 hard_links=yes
14622 $RM conftest*
14623 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14624 touch conftest.a
14625 ln conftest.a conftest.b 2>&5 || hard_links=no
14626 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14628$as_echo "$hard_links" >&6; }
14629 if test "$hard_links" = no; then
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14631$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14632 need_locks=warn
14633 fi
14634else
14635 need_locks=no
14636fi
14637
14638
14639
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14641$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14642
14643 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14644 case $host_os in
14645 aix[4-9]*)
14646 # If we're using GNU nm, then we don't want the "-C" option.
14647 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14648 # Also, AIX nm treats weak defined symbols like other global defined
14649 # symbols, whereas GNU nm marks them as "W".
14650 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14651 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'
14652 else
14653 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14654 fi
14655 ;;
14656 pw32*)
14657 export_symbols_cmds_CXX="$ltdll_cmds"
14658 ;;
14659 cygwin* | mingw* | cegcc*)
14660 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'
14661 ;;
14662 *)
14663 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14664 ;;
14665 esac
14666 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14667
14668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14669$as_echo "$ld_shlibs_CXX" >&6; }
14670test "$ld_shlibs_CXX" = no && can_build_shared=no
14671
14672with_gnu_ld_CXX=$with_gnu_ld
14673
14674
14675
14676
14677
14678
14679#
14680# Do we need to explicitly link libc?
14681#
14682case "x$archive_cmds_need_lc_CXX" in
14683x|xyes)
14684 # Assume -lc should be added
14685 archive_cmds_need_lc_CXX=yes
14686
14687 if test "$enable_shared" = yes && test "$GCC" = yes; then
14688 case $archive_cmds_CXX in
14689 *'~'*)
14690 # FIXME: we may have to deal with multi-command sequences.
14691 ;;
14692 '$CC '*)
14693 # Test whether the compiler implicitly links with -lc since on some
14694 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14695 # to ld, don't add -lc before -lgcc.
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14697$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14698if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14699 $as_echo_n "(cached) " >&6
14700else
14701 $RM conftest*
14702 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14703
14704 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14705 (eval $ac_compile) 2>&5
14706 ac_status=$?
14707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14708 test $ac_status = 0; } 2>conftest.err; then
14709 soname=conftest
14710 lib=conftest
14711 libobjs=conftest.$ac_objext
14712 deplibs=
14713 wl=$lt_prog_compiler_wl_CXX
14714 pic_flag=$lt_prog_compiler_pic_CXX
14715 compiler_flags=-v
14716 linker_flags=-v
14717 verstring=
14718 output_objdir=.
14719 libname=conftest
14720 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14721 allow_undefined_flag_CXX=
14722 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14723 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14724 ac_status=$?
14725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14726 test $ac_status = 0; }
14727 then
14728 lt_cv_archive_cmds_need_lc_CXX=no
14729 else
14730 lt_cv_archive_cmds_need_lc_CXX=yes
14731 fi
14732 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14733 else
14734 cat conftest.err 1>&5
14735 fi
14736 $RM conftest*
14737
14738fi
14739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14740$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14741 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14742 ;;
14743 esac
14744 fi
14745 ;;
14746esac
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14812$as_echo_n "checking dynamic linker characteristics... " >&6; }
14813
14814library_names_spec=
14815libname_spec='lib$name'
14816soname_spec=
14817shrext_cmds=".so"
14818postinstall_cmds=
14819postuninstall_cmds=
14820finish_cmds=
14821finish_eval=
14822shlibpath_var=
14823shlibpath_overrides_runpath=unknown
14824version_type=none
14825dynamic_linker="$host_os ld.so"
14826sys_lib_dlsearch_path_spec="/lib /usr/lib"
14827need_lib_prefix=unknown
14828hardcode_into_libs=no
14829
14830# when you set need_version to no, make sure it does not cause -set_version
14831# flags to be left without arguments
14832need_version=unknown
14833
14834case $host_os in
14835aix3*)
14836 version_type=linux
14837 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14838 shlibpath_var=LIBPATH
14839
14840 # AIX 3 has no versioning support, so we append a major version to the name.
14841 soname_spec='${libname}${release}${shared_ext}$major'
14842 ;;
14843
14844aix[4-9]*)
14845 version_type=linux
14846 need_lib_prefix=no
14847 need_version=no
14848 hardcode_into_libs=yes
14849 if test "$host_cpu" = ia64; then
14850 # AIX 5 supports IA64
14851 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14852 shlibpath_var=LD_LIBRARY_PATH
14853 else
14854 # With GCC up to 2.95.x, collect2 would create an import file
14855 # for dependence libraries. The import file would start with
14856 # the line `#! .'. This would cause the generated library to
14857 # depend on `.', always an invalid library. This was fixed in
14858 # development snapshots of GCC prior to 3.0.
14859 case $host_os in
14860 aix4 | aix4.[01] | aix4.[01].*)
14861 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14862 echo ' yes '
14863 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14864 :
14865 else
14866 can_build_shared=no
14867 fi
14868 ;;
14869 esac
14870 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14871 # soname into executable. Probably we can add versioning support to
14872 # collect2, so additional links can be useful in future.
14873 if test "$aix_use_runtimelinking" = yes; then
14874 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14875 # instead of lib<name>.a to let people know that these are not
14876 # typical AIX shared libraries.
14877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14878 else
14879 # We preserve .a as extension for shared libraries through AIX4.2
14880 # and later when we are not doing run time linking.
14881 library_names_spec='${libname}${release}.a $libname.a'
14882 soname_spec='${libname}${release}${shared_ext}$major'
14883 fi
14884 shlibpath_var=LIBPATH
14885 fi
14886 ;;
14887
14888amigaos*)
14889 case $host_cpu in
14890 powerpc)
14891 # Since July 2007 AmigaOS4 officially supports .so libraries.
14892 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14894 ;;
14895 m68k)
14896 library_names_spec='$libname.ixlibrary $libname.a'
14897 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14898 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'
14899 ;;
14900 esac
14901 ;;
14902
14903beos*)
14904 library_names_spec='${libname}${shared_ext}'
14905 dynamic_linker="$host_os ld.so"
14906 shlibpath_var=LIBRARY_PATH
14907 ;;
14908
14909bsdi[45]*)
14910 version_type=linux
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14915 shlibpath_var=LD_LIBRARY_PATH
14916 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14917 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14918 # the default ld.so.conf also contains /usr/contrib/lib and
14919 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14920 # libtool to hard-code these into programs
14921 ;;
14922
14923cygwin* | mingw* | pw32* | cegcc*)
14924 version_type=windows
14925 shrext_cmds=".dll"
14926 need_version=no
14927 need_lib_prefix=no
14928
14929 case $GCC,$host_os in
14930 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14931 library_names_spec='$libname.dll.a'
14932 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14933 postinstall_cmds='base_file=`basename \${file}`~
14934 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14935 dldir=$destdir/`dirname \$dlpath`~
14936 test -d \$dldir || mkdir -p \$dldir~
14937 $install_prog $dir/$dlname \$dldir/$dlname~
14938 chmod a+x \$dldir/$dlname~
14939 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14940 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14941 fi'
14942 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14943 dlpath=$dir/\$dldll~
14944 $RM \$dlpath'
14945 shlibpath_overrides_runpath=yes
14946
14947 case $host_os in
14948 cygwin*)
14949 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14950 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14951
14952 ;;
14953 mingw* | cegcc*)
14954 # MinGW DLLs use traditional 'lib' prefix
14955 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14956 ;;
14957 pw32*)
14958 # pw32 DLLs use 'pw' prefix rather than 'lib'
14959 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14960 ;;
14961 esac
14962 ;;
14963
14964 *)
14965 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14966 ;;
14967 esac
14968 dynamic_linker='Win32 ld.exe'
14969 # FIXME: first we should search . and the directory the executable is in
14970 shlibpath_var=PATH
14971 ;;
14972
14973darwin* | rhapsody*)
14974 dynamic_linker="$host_os dyld"
14975 version_type=darwin
14976 need_lib_prefix=no
14977 need_version=no
14978 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14979 soname_spec='${libname}${release}${major}$shared_ext'
14980 shlibpath_overrides_runpath=yes
14981 shlibpath_var=DYLD_LIBRARY_PATH
14982 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14983
14984 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14985 ;;
14986
14987dgux*)
14988 version_type=linux
14989 need_lib_prefix=no
14990 need_version=no
14991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14992 soname_spec='${libname}${release}${shared_ext}$major'
14993 shlibpath_var=LD_LIBRARY_PATH
14994 ;;
14995
3cb62297
L
14996freebsd* | dragonfly*)
14997 # DragonFly does not have aout. When/if they implement a new
14998 # versioning mechanism, adjust this.
14999 if test -x /usr/bin/objformat; then
15000 objformat=`/usr/bin/objformat`
15001 else
15002 case $host_os in
6d2920c8 15003 freebsd[23].*) objformat=aout ;;
3cb62297
L
15004 *) objformat=elf ;;
15005 esac
15006 fi
15007 version_type=freebsd-$objformat
15008 case $version_type in
15009 freebsd-elf*)
15010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15011 need_version=no
15012 need_lib_prefix=no
15013 ;;
15014 freebsd-*)
15015 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15016 need_version=yes
15017 ;;
15018 esac
15019 shlibpath_var=LD_LIBRARY_PATH
15020 case $host_os in
6d2920c8 15021 freebsd2.*)
3cb62297
L
15022 shlibpath_overrides_runpath=yes
15023 ;;
15024 freebsd3.[01]* | freebsdelf3.[01]*)
15025 shlibpath_overrides_runpath=yes
15026 hardcode_into_libs=yes
15027 ;;
15028 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15029 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15030 shlibpath_overrides_runpath=no
15031 hardcode_into_libs=yes
15032 ;;
15033 *) # from 4.6 on, and DragonFly
15034 shlibpath_overrides_runpath=yes
15035 hardcode_into_libs=yes
15036 ;;
15037 esac
15038 ;;
15039
15040gnu*)
15041 version_type=linux
15042 need_lib_prefix=no
15043 need_version=no
15044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15045 soname_spec='${libname}${release}${shared_ext}$major'
15046 shlibpath_var=LD_LIBRARY_PATH
15047 hardcode_into_libs=yes
15048 ;;
15049
15050haiku*)
15051 version_type=linux
15052 need_lib_prefix=no
15053 need_version=no
15054 dynamic_linker="$host_os runtime_loader"
15055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15056 soname_spec='${libname}${release}${shared_ext}$major'
15057 shlibpath_var=LIBRARY_PATH
15058 shlibpath_overrides_runpath=yes
15059 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
15060 hardcode_into_libs=yes
15061 ;;
15062
15063hpux9* | hpux10* | hpux11*)
15064 # Give a soname corresponding to the major version so that dld.sl refuses to
15065 # link against other versions.
15066 version_type=sunos
15067 need_lib_prefix=no
15068 need_version=no
15069 case $host_cpu in
15070 ia64*)
15071 shrext_cmds='.so'
15072 hardcode_into_libs=yes
15073 dynamic_linker="$host_os dld.so"
15074 shlibpath_var=LD_LIBRARY_PATH
15075 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15077 soname_spec='${libname}${release}${shared_ext}$major'
15078 if test "X$HPUX_IA64_MODE" = X32; then
15079 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15080 else
15081 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15082 fi
15083 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15084 ;;
15085 hppa*64*)
15086 shrext_cmds='.sl'
15087 hardcode_into_libs=yes
15088 dynamic_linker="$host_os dld.sl"
15089 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15090 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15092 soname_spec='${libname}${release}${shared_ext}$major'
15093 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15094 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15095 ;;
15096 *)
15097 shrext_cmds='.sl'
15098 dynamic_linker="$host_os dld.sl"
15099 shlibpath_var=SHLIB_PATH
15100 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15102 soname_spec='${libname}${release}${shared_ext}$major'
15103 ;;
15104 esac
15105 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15106 postinstall_cmds='chmod 555 $lib'
15107 # or fails outright, so override atomically:
15108 install_override_mode=555
15109 ;;
15110
15111interix[3-9]*)
15112 version_type=linux
15113 need_lib_prefix=no
15114 need_version=no
15115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15116 soname_spec='${libname}${release}${shared_ext}$major'
15117 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15118 shlibpath_var=LD_LIBRARY_PATH
15119 shlibpath_overrides_runpath=no
15120 hardcode_into_libs=yes
15121 ;;
15122
15123irix5* | irix6* | nonstopux*)
15124 case $host_os in
15125 nonstopux*) version_type=nonstopux ;;
15126 *)
15127 if test "$lt_cv_prog_gnu_ld" = yes; then
15128 version_type=linux
15129 else
15130 version_type=irix
15131 fi ;;
15132 esac
15133 need_lib_prefix=no
15134 need_version=no
15135 soname_spec='${libname}${release}${shared_ext}$major'
15136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15137 case $host_os in
15138 irix5* | nonstopux*)
15139 libsuff= shlibsuff=
15140 ;;
15141 *)
15142 case $LD in # libtool.m4 will add one of these switches to LD
15143 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15144 libsuff= shlibsuff= libmagic=32-bit;;
15145 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15146 libsuff=32 shlibsuff=N32 libmagic=N32;;
15147 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15148 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15149 *) libsuff= shlibsuff= libmagic=never-match;;
15150 esac
15151 ;;
15152 esac
15153 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15154 shlibpath_overrides_runpath=no
15155 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15156 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15157 hardcode_into_libs=yes
15158 ;;
15159
15160# No shared lib support for Linux oldld, aout, or coff.
15161linux*oldld* | linux*aout* | linux*coff*)
15162 dynamic_linker=no
15163 ;;
15164
15165# This must be Linux ELF.
15166linux* | k*bsd*-gnu | kopensolaris*-gnu)
15167 version_type=linux
15168 need_lib_prefix=no
15169 need_version=no
15170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15171 soname_spec='${libname}${release}${shared_ext}$major'
15172 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15173 shlibpath_var=LD_LIBRARY_PATH
15174 shlibpath_overrides_runpath=no
15175
15176 # Some binutils ld are patched to set DT_RUNPATH
15177 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15178 $as_echo_n "(cached) " >&6
15179else
15180 lt_cv_shlibpath_overrides_runpath=no
15181 save_LDFLAGS=$LDFLAGS
15182 save_libdir=$libdir
15183 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15184 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15186/* end confdefs.h. */
15187
15188int
15189main ()
15190{
15191
15192 ;
15193 return 0;
15194}
15195_ACEOF
15196if ac_fn_cxx_try_link "$LINENO"; then :
15197 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15198 lt_cv_shlibpath_overrides_runpath=yes
15199fi
15200fi
15201rm -f core conftest.err conftest.$ac_objext \
15202 conftest$ac_exeext conftest.$ac_ext
15203 LDFLAGS=$save_LDFLAGS
15204 libdir=$save_libdir
15205
15206fi
15207
15208 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15209
15210 # This implies no fast_install, which is unacceptable.
15211 # Some rework will be needed to allow for fast_install
15212 # before this can be enabled.
15213 hardcode_into_libs=yes
15214
15215 # Append ld.so.conf contents to the search path
15216 if test -f /etc/ld.so.conf; then
15217 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' ' '`
15218 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15219 fi
15220
15221 # We used to test for /lib/ld.so.1 and disable shared libraries on
15222 # powerpc, because MkLinux only supported shared libraries with the
15223 # GNU dynamic linker. Since this was broken with cross compilers,
15224 # most powerpc-linux boxes support dynamic linking these days and
15225 # people can always --disable-shared, the test was removed, and we
15226 # assume the GNU/Linux dynamic linker is in use.
15227 dynamic_linker='GNU/Linux ld.so'
15228 ;;
15229
15230netbsd*)
15231 version_type=sunos
15232 need_lib_prefix=no
15233 need_version=no
15234 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15236 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15237 dynamic_linker='NetBSD (a.out) ld.so'
15238 else
15239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15240 soname_spec='${libname}${release}${shared_ext}$major'
15241 dynamic_linker='NetBSD ld.elf_so'
15242 fi
15243 shlibpath_var=LD_LIBRARY_PATH
15244 shlibpath_overrides_runpath=yes
15245 hardcode_into_libs=yes
15246 ;;
15247
15248newsos6)
15249 version_type=linux
15250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15251 shlibpath_var=LD_LIBRARY_PATH
15252 shlibpath_overrides_runpath=yes
15253 ;;
15254
15255*nto* | *qnx*)
15256 version_type=qnx
15257 need_lib_prefix=no
15258 need_version=no
15259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15260 soname_spec='${libname}${release}${shared_ext}$major'
15261 shlibpath_var=LD_LIBRARY_PATH
15262 shlibpath_overrides_runpath=no
15263 hardcode_into_libs=yes
15264 dynamic_linker='ldqnx.so'
15265 ;;
15266
15267openbsd*)
15268 version_type=sunos
15269 sys_lib_dlsearch_path_spec="/usr/lib"
15270 need_lib_prefix=no
15271 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15272 case $host_os in
15273 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15274 *) need_version=no ;;
15275 esac
15276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15277 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15278 shlibpath_var=LD_LIBRARY_PATH
15279 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15280 case $host_os in
15281 openbsd2.[89] | openbsd2.[89].*)
15282 shlibpath_overrides_runpath=no
15283 ;;
15284 *)
15285 shlibpath_overrides_runpath=yes
15286 ;;
15287 esac
15288 else
15289 shlibpath_overrides_runpath=yes
15290 fi
15291 ;;
15292
15293os2*)
15294 libname_spec='$name'
15295 shrext_cmds=".dll"
15296 need_lib_prefix=no
15297 library_names_spec='$libname${shared_ext} $libname.a'
15298 dynamic_linker='OS/2 ld.exe'
15299 shlibpath_var=LIBPATH
15300 ;;
15301
15302osf3* | osf4* | osf5*)
15303 version_type=osf
15304 need_lib_prefix=no
15305 need_version=no
15306 soname_spec='${libname}${release}${shared_ext}$major'
15307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15308 shlibpath_var=LD_LIBRARY_PATH
15309 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15310 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15311 ;;
15312
15313rdos*)
15314 dynamic_linker=no
15315 ;;
15316
15317solaris*)
15318 version_type=linux
15319 need_lib_prefix=no
15320 need_version=no
15321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15322 soname_spec='${libname}${release}${shared_ext}$major'
15323 shlibpath_var=LD_LIBRARY_PATH
15324 shlibpath_overrides_runpath=yes
15325 hardcode_into_libs=yes
15326 # ldd complains unless libraries are executable
15327 postinstall_cmds='chmod +x $lib'
15328 ;;
15329
15330sunos4*)
15331 version_type=sunos
15332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15333 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15334 shlibpath_var=LD_LIBRARY_PATH
15335 shlibpath_overrides_runpath=yes
15336 if test "$with_gnu_ld" = yes; then
15337 need_lib_prefix=no
15338 fi
15339 need_version=yes
15340 ;;
15341
15342sysv4 | sysv4.3*)
15343 version_type=linux
15344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15345 soname_spec='${libname}${release}${shared_ext}$major'
15346 shlibpath_var=LD_LIBRARY_PATH
15347 case $host_vendor in
15348 sni)
15349 shlibpath_overrides_runpath=no
15350 need_lib_prefix=no
15351 runpath_var=LD_RUN_PATH
15352 ;;
15353 siemens)
15354 need_lib_prefix=no
15355 ;;
15356 motorola)
15357 need_lib_prefix=no
15358 need_version=no
15359 shlibpath_overrides_runpath=no
15360 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15361 ;;
15362 esac
15363 ;;
15364
15365sysv4*MP*)
15366 if test -d /usr/nec ;then
15367 version_type=linux
15368 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15369 soname_spec='$libname${shared_ext}.$major'
15370 shlibpath_var=LD_LIBRARY_PATH
15371 fi
15372 ;;
15373
15374sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15375 version_type=freebsd-elf
15376 need_lib_prefix=no
15377 need_version=no
15378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15379 soname_spec='${libname}${release}${shared_ext}$major'
15380 shlibpath_var=LD_LIBRARY_PATH
15381 shlibpath_overrides_runpath=yes
15382 hardcode_into_libs=yes
15383 if test "$with_gnu_ld" = yes; then
15384 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15385 else
15386 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15387 case $host_os in
15388 sco3.2v5*)
15389 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15390 ;;
15391 esac
15392 fi
15393 sys_lib_dlsearch_path_spec='/usr/lib'
15394 ;;
15395
15396tpf*)
15397 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15398 version_type=linux
15399 need_lib_prefix=no
15400 need_version=no
15401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15402 shlibpath_var=LD_LIBRARY_PATH
15403 shlibpath_overrides_runpath=no
15404 hardcode_into_libs=yes
15405 ;;
15406
15407uts4*)
15408 version_type=linux
15409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15410 soname_spec='${libname}${release}${shared_ext}$major'
15411 shlibpath_var=LD_LIBRARY_PATH
15412 ;;
15413
15414*)
15415 dynamic_linker=no
15416 ;;
15417esac
15418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15419$as_echo "$dynamic_linker" >&6; }
15420test "$dynamic_linker" = no && can_build_shared=no
15421
15422variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15423if test "$GCC" = yes; then
15424 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15425fi
15426
15427if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15428 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15429fi
15430if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15431 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15432fi
15433
3725885a 15434
ce2cded5 15435
ce2cded5 15436
ce2cded5 15437
d7040cdb 15438
ce2cded5 15439
ce2cded5 15440
ce2cded5 15441
d7040cdb 15442
ce2cded5
L
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
ce2cded5
L
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
3cb62297
L
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15472$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15473hardcode_action_CXX=
15474if test -n "$hardcode_libdir_flag_spec_CXX" ||
15475 test -n "$runpath_var_CXX" ||
15476 test "X$hardcode_automatic_CXX" = "Xyes" ; then
ce2cded5 15477
3cb62297
L
15478 # We can hardcode non-existent directories.
15479 if test "$hardcode_direct_CXX" != no &&
15480 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15481 # have to relink, otherwise we might link with an installed library
15482 # when we should be linking with a yet-to-be-installed one
15483 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15484 test "$hardcode_minus_L_CXX" != no; then
15485 # Linking always hardcodes the temporary library directory.
15486 hardcode_action_CXX=relink
15487 else
15488 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15489 hardcode_action_CXX=immediate
15490 fi
15491else
15492 # We cannot hardcode anything, or else we can only hardcode existing
15493 # directories.
15494 hardcode_action_CXX=unsupported
15495fi
15496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15497$as_echo "$hardcode_action_CXX" >&6; }
ce2cded5 15498
3cb62297
L
15499if test "$hardcode_action_CXX" = relink ||
15500 test "$inherit_rpath_CXX" = yes; then
15501 # Fast installation is not supported
15502 enable_fast_install=no
15503elif test "$shlibpath_overrides_runpath" = yes ||
15504 test "$enable_shared" = no; then
15505 # Fast installation is not necessary
15506 enable_fast_install=needless
15507fi
ce2cded5 15508
ce2cded5 15509
ce2cded5
L
15510
15511
15512
d7040cdb 15513
3cb62297
L
15514
15515 fi # test -n "$compiler"
15516
15517 CC=$lt_save_CC
15518 LDCXX=$LD
15519 LD=$lt_save_LD
15520 GCC=$lt_save_GCC
15521 with_gnu_ld=$lt_save_with_gnu_ld
15522 lt_cv_path_LDCXX=$lt_cv_path_LD
15523 lt_cv_path_LD=$lt_save_path_LD
15524 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15525 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15526fi # test "$_lt_caught_CXX_error" != yes
15527
d7040cdb
SE
15528ac_ext=c
15529ac_cpp='$CPP $CPPFLAGS'
15530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15532ac_compiler_gnu=$ac_cv_c_compiler_gnu
15533
67310ccd
AM
15534
15535
d7040cdb
SE
15536
15537
d7040cdb 15538
d7040cdb 15539
d7040cdb 15540
ce2cded5
L
15541
15542
15543
15544
15545
81ecdfbb 15546 ac_config_commands="$ac_config_commands libtool"
ce2cded5
L
15547
15548
15549
15550
15551# Only expand once:
15552
d7040cdb
SE
15553
15554
3e4fe8ac 15555ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga fi id bg it uk"
d7040cdb
SE
15556# If we haven't got the data from the intl directory,
15557# assume NLS is disabled.
15558USE_NLS=no
15559LIBINTL=
15560LIBINTL_DEP=
15561INCINTL=
15562XGETTEXT=
15563GMSGFMT=
15564POSUB=
15565
15566if test -f ../intl/config.intl; then
15567 . ../intl/config.intl
15568fi
81ecdfbb
RW
15569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15570$as_echo_n "checking whether NLS is requested... " >&6; }
d7040cdb 15571if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
15572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15573$as_echo "no" >&6; }
d7040cdb 15574else
81ecdfbb
RW
15575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15576$as_echo "yes" >&6; }
d7040cdb 15577
81ecdfbb 15578$as_echo "#define ENABLE_NLS 1" >>confdefs.h
d7040cdb
SE
15579
15580
81ecdfbb
RW
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
15582$as_echo_n "checking for catalogs to be installed... " >&6; }
d7040cdb
SE
15583 # Look for .po and .gmo files in the source directory.
15584 CATALOGS=
15585 XLINGUAS=
15586 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
15587 # If there aren't any .gmo files the shell will give us the
15588 # literal string "../path/to/srcdir/po/*.gmo" which has to be
15589 # weeded out.
15590 case "$cat" in *\**)
15591 continue;;
15592 esac
15593 # The quadruple backslash is collapsed to a double backslash
15594 # by the backticks, then collapsed again by the double quotes,
15595 # leaving us with one backslash in the sed expression (right
15596 # before the dot that mustn't act as a wildcard).
15597 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
15598 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
15599 # The user is allowed to set LINGUAS to a list of languages to
15600 # install catalogs for. If it's empty that means "all of them."
15601 if test "x$LINGUAS" = x; then
15602 CATALOGS="$CATALOGS $cat"
15603 XLINGUAS="$XLINGUAS $lang"
15604 else
15605 case "$LINGUAS" in *$lang*)
15606 CATALOGS="$CATALOGS $cat"
15607 XLINGUAS="$XLINGUAS $lang"
15608 ;;
15609 esac
15610 fi
15611 done
15612 LINGUAS="$XLINGUAS"
81ecdfbb
RW
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
15614$as_echo "$LINGUAS" >&6; }
d7040cdb
SE
15615
15616
15617 DATADIRNAME=share
15618
15619 INSTOBJEXT=.mo
15620
15621 GENCAT=gencat
15622
15623 CATOBJEXT=.gmo
15624
15625fi
15626
15627 MKINSTALLDIRS=
15628 if test -n "$ac_aux_dir"; then
15629 case "$ac_aux_dir" in
15630 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
15631 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
15632 esac
15633 fi
15634 if test -z "$MKINSTALLDIRS"; then
15635 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15636 fi
15637
15638
15639
81ecdfbb
RW
15640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15641$as_echo_n "checking whether NLS is requested... " >&6; }
15642 # Check whether --enable-nls was given.
15643if test "${enable_nls+set}" = set; then :
15644 enableval=$enable_nls; USE_NLS=$enableval
d7040cdb
SE
15645else
15646 USE_NLS=yes
81ecdfbb
RW
15647fi
15648
15649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15650$as_echo "$USE_NLS" >&6; }
d7040cdb
SE
15651
15652
15653
15654
15655
15656
15657# Prepare PATH_SEPARATOR.
15658# The user is always right.
15659if test "${PATH_SEPARATOR+set}" != set; then
15660 echo "#! /bin/sh" >conf$$.sh
15661 echo "exit 0" >>conf$$.sh
15662 chmod +x conf$$.sh
15663 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15664 PATH_SEPARATOR=';'
15665 else
15666 PATH_SEPARATOR=:
15667 fi
15668 rm -f conf$$.sh
15669fi
15670
15671# Find out how to test for executable files. Don't use a zero-byte file,
15672# as systems may use methods other than mode bits to determine executability.
15673cat >conf$$.file <<_ASEOF
15674#! /bin/sh
15675exit 0
15676_ASEOF
15677chmod +x conf$$.file
15678if test -x conf$$.file >/dev/null 2>&1; then
15679 ac_executable_p="test -x"
15680else
15681 ac_executable_p="test -f"
15682fi
15683rm -f conf$$.file
15684
15685# Extract the first word of "msgfmt", so it can be a program name with args.
15686set dummy msgfmt; ac_word=$2
81ecdfbb
RW
15687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15688$as_echo_n "checking for $ac_word... " >&6; }
15689if test "${ac_cv_path_MSGFMT+set}" = set; then :
15690 $as_echo_n "(cached) " >&6
d7040cdb
SE
15691else
15692 case "$MSGFMT" in
15693 [\\/]* | ?:[\\/]*)
15694 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15695 ;;
15696 *)
15697 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15698 for ac_dir in $PATH; do
15699 IFS="$ac_save_IFS"
15700 test -z "$ac_dir" && ac_dir=.
15701 for ac_exec_ext in '' $ac_executable_extensions; do
15702 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15703 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
15704 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15705 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
15706 break 2
15707 fi
15708 fi
15709 done
15710 done
15711 IFS="$ac_save_IFS"
15712 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15713 ;;
15714esac
15715fi
15716MSGFMT="$ac_cv_path_MSGFMT"
15717if test "$MSGFMT" != ":"; then
81ecdfbb
RW
15718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
15719$as_echo "$MSGFMT" >&6; }
d7040cdb 15720else
81ecdfbb
RW
15721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15722$as_echo "no" >&6; }
d7040cdb
SE
15723fi
15724
15725 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15726set dummy gmsgfmt; ac_word=$2
81ecdfbb
RW
15727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15728$as_echo_n "checking for $ac_word... " >&6; }
15729if test "${ac_cv_path_GMSGFMT+set}" = set; then :
15730 $as_echo_n "(cached) " >&6
d7040cdb
SE
15731else
15732 case $GMSGFMT in
15733 [\\/]* | ?:[\\/]*)
15734 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15735 ;;
15736 *)
15737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15738for as_dir in $PATH
15739do
15740 IFS=$as_save_IFS
15741 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
15742 for ac_exec_ext in '' $ac_executable_extensions; do
15743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 15744 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 15745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
15746 break 2
15747 fi
15748done
81ecdfbb
RW
15749 done
15750IFS=$as_save_IFS
d7040cdb
SE
15751
15752 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15753 ;;
15754esac
15755fi
15756GMSGFMT=$ac_cv_path_GMSGFMT
d7040cdb 15757if test -n "$GMSGFMT"; then
81ecdfbb
RW
15758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
15759$as_echo "$GMSGFMT" >&6; }
d7040cdb 15760else
81ecdfbb
RW
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15762$as_echo "no" >&6; }
20e95c23 15763fi
42ecbf5e 15764
20e95c23 15765
252b5132 15766
81ecdfbb 15767
d7040cdb
SE
15768# Prepare PATH_SEPARATOR.
15769# The user is always right.
15770if test "${PATH_SEPARATOR+set}" != set; then
15771 echo "#! /bin/sh" >conf$$.sh
15772 echo "exit 0" >>conf$$.sh
15773 chmod +x conf$$.sh
15774 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15775 PATH_SEPARATOR=';'
15776 else
15777 PATH_SEPARATOR=:
15778 fi
15779 rm -f conf$$.sh
20e95c23 15780fi
252b5132 15781
d7040cdb
SE
15782# Find out how to test for executable files. Don't use a zero-byte file,
15783# as systems may use methods other than mode bits to determine executability.
15784cat >conf$$.file <<_ASEOF
15785#! /bin/sh
15786exit 0
15787_ASEOF
15788chmod +x conf$$.file
15789if test -x conf$$.file >/dev/null 2>&1; then
15790 ac_executable_p="test -x"
20e95c23 15791else
d7040cdb
SE
15792 ac_executable_p="test -f"
15793fi
15794rm -f conf$$.file
20e95c23 15795
d7040cdb
SE
15796# Extract the first word of "xgettext", so it can be a program name with args.
15797set dummy xgettext; ac_word=$2
81ecdfbb
RW
15798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15799$as_echo_n "checking for $ac_word... " >&6; }
15800if test "${ac_cv_path_XGETTEXT+set}" = set; then :
15801 $as_echo_n "(cached) " >&6
252b5132 15802else
d7040cdb
SE
15803 case "$XGETTEXT" in
15804 [\\/]* | ?:[\\/]*)
15805 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15806 ;;
15807 *)
15808 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15809 for ac_dir in $PATH; do
15810 IFS="$ac_save_IFS"
15811 test -z "$ac_dir" && ac_dir=.
15812 for ac_exec_ext in '' $ac_executable_extensions; do
15813 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15814 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
15815 (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
15816 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
15817 break 2
15818 fi
15819 fi
15820 done
15821 done
15822 IFS="$ac_save_IFS"
15823 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15824 ;;
15825esac
252b5132 15826fi
d7040cdb
SE
15827XGETTEXT="$ac_cv_path_XGETTEXT"
15828if test "$XGETTEXT" != ":"; then
81ecdfbb
RW
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
15830$as_echo "$XGETTEXT" >&6; }
d5fbea21 15831else
81ecdfbb
RW
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15833$as_echo "no" >&6; }
d5fbea21
DJ
15834fi
15835
d7040cdb 15836 rm -f messages.po
d5fbea21 15837
20e95c23 15838
d7040cdb
SE
15839# Prepare PATH_SEPARATOR.
15840# The user is always right.
15841if test "${PATH_SEPARATOR+set}" != set; then
15842 echo "#! /bin/sh" >conf$$.sh
15843 echo "exit 0" >>conf$$.sh
15844 chmod +x conf$$.sh
15845 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15846 PATH_SEPARATOR=';'
15847 else
15848 PATH_SEPARATOR=:
15849 fi
15850 rm -f conf$$.sh
15851fi
20e95c23 15852
d7040cdb
SE
15853# Find out how to test for executable files. Don't use a zero-byte file,
15854# as systems may use methods other than mode bits to determine executability.
15855cat >conf$$.file <<_ASEOF
15856#! /bin/sh
15857exit 0
15858_ASEOF
15859chmod +x conf$$.file
15860if test -x conf$$.file >/dev/null 2>&1; then
15861 ac_executable_p="test -x"
15862else
15863 ac_executable_p="test -f"
15864fi
15865rm -f conf$$.file
20e95c23 15866
d7040cdb
SE
15867# Extract the first word of "msgmerge", so it can be a program name with args.
15868set dummy msgmerge; ac_word=$2
81ecdfbb
RW
15869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15870$as_echo_n "checking for $ac_word... " >&6; }
15871if test "${ac_cv_path_MSGMERGE+set}" = set; then :
15872 $as_echo_n "(cached) " >&6
d7040cdb
SE
15873else
15874 case "$MSGMERGE" in
15875 [\\/]* | ?:[\\/]*)
15876 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
15877 ;;
15878 *)
15879 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15880 for ac_dir in $PATH; do
15881 IFS="$ac_save_IFS"
15882 test -z "$ac_dir" && ac_dir=.
15883 for ac_exec_ext in '' $ac_executable_extensions; do
15884 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15885 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
15886 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
15887 break 2
15888 fi
15889 fi
15890 done
15891 done
15892 IFS="$ac_save_IFS"
15893 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
15894 ;;
15895esac
15896fi
15897MSGMERGE="$ac_cv_path_MSGMERGE"
15898if test "$MSGMERGE" != ":"; then
81ecdfbb
RW
15899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
15900$as_echo "$MSGMERGE" >&6; }
d7040cdb 15901else
81ecdfbb
RW
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15903$as_echo "no" >&6; }
d7040cdb 15904fi
20e95c23
DJ
15905
15906
d7040cdb
SE
15907 if test "$GMSGFMT" != ":"; then
15908 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
15909 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15910 : ;
15911 else
15912 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
81ecdfbb
RW
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
15914$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
d7040cdb
SE
15915 GMSGFMT=":"
15916 fi
15917 fi
20e95c23 15918
d7040cdb
SE
15919 if test "$XGETTEXT" != ":"; then
15920 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
15921 (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
15922 : ;
15923 else
81ecdfbb
RW
15924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
15925$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
d7040cdb
SE
15926 XGETTEXT=":"
15927 fi
15928 rm -f messages.po
20e95c23 15929 fi
42ecbf5e 15930
81ecdfbb 15931 ac_config_commands="$ac_config_commands default-1"
252b5132 15932
42ecbf5e 15933
252b5132 15934
42ecbf5e
DJ
15935
15936
d7040cdb 15937for ac_prog in 'bison -y' byacc
20e95c23 15938do
d7040cdb
SE
15939 # Extract the first word of "$ac_prog", so it can be a program name with args.
15940set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
15941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15942$as_echo_n "checking for $ac_word... " >&6; }
15943if test "${ac_cv_prog_YACC+set}" = set; then :
15944 $as_echo_n "(cached) " >&6
20e95c23 15945else
d7040cdb
SE
15946 if test -n "$YACC"; then
15947 ac_cv_prog_YACC="$YACC" # Let the user override the test.
42ecbf5e 15948else
d7040cdb
SE
15949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15950for as_dir in $PATH
15951do
15952 IFS=$as_save_IFS
15953 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
15954 for ac_exec_ext in '' $ac_executable_extensions; do
15955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 15956 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 15957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
15958 break 2
15959 fi
15960done
81ecdfbb
RW
15961 done
15962IFS=$as_save_IFS
42ecbf5e 15963
42ecbf5e 15964fi
e5a52504 15965fi
d7040cdb
SE
15966YACC=$ac_cv_prog_YACC
15967if test -n "$YACC"; then
81ecdfbb
RW
15968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
15969$as_echo "$YACC" >&6; }
42ecbf5e 15970else
81ecdfbb
RW
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15972$as_echo "no" >&6; }
42ecbf5e 15973fi
252b5132 15974
81ecdfbb 15975
d7040cdb 15976 test -n "$YACC" && break
42ecbf5e 15977done
d7040cdb 15978test -n "$YACC" || YACC="yacc"
d15b04bd 15979
d7040cdb
SE
15980for ac_prog in flex lex
15981do
15982 # Extract the first word of "$ac_prog", so it can be a program name with args.
15983set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
15984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15985$as_echo_n "checking for $ac_word... " >&6; }
15986if test "${ac_cv_prog_LEX+set}" = set; then :
15987 $as_echo_n "(cached) " >&6
d15b04bd 15988else
d7040cdb
SE
15989 if test -n "$LEX"; then
15990 ac_cv_prog_LEX="$LEX" # Let the user override the test.
15991else
15992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15993for as_dir in $PATH
15994do
15995 IFS=$as_save_IFS
15996 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
15997 for ac_exec_ext in '' $ac_executable_extensions; do
15998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 15999 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 16000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
16001 break 2
16002 fi
16003done
81ecdfbb
RW
16004 done
16005IFS=$as_save_IFS
d7040cdb
SE
16006
16007fi
16008fi
16009LEX=$ac_cv_prog_LEX
16010if test -n "$LEX"; then
81ecdfbb
RW
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
16012$as_echo "$LEX" >&6; }
d7040cdb 16013else
81ecdfbb
RW
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16015$as_echo "no" >&6; }
d15b04bd 16016fi
e5a52504 16017
81ecdfbb 16018
d7040cdb
SE
16019 test -n "$LEX" && break
16020done
16021test -n "$LEX" || LEX=":"
42ecbf5e 16022
81ecdfbb
RW
16023if test "x$LEX" != "x:"; then
16024 cat >conftest.l <<_ACEOF
16025%%
16026a { ECHO; }
16027b { REJECT; }
16028c { yymore (); }
16029d { yyless (1); }
16030e { yyless (input () != 0); }
16031f { unput (yytext[0]); }
16032. { BEGIN INITIAL; }
16033%%
16034#ifdef YYTEXT_POINTER
16035extern char *yytext;
d7040cdb 16036#endif
42ecbf5e 16037int
81ecdfbb 16038main (void)
42ecbf5e 16039{
81ecdfbb 16040 return ! yylex () + ! yywrap ();
42ecbf5e
DJ
16041}
16042_ACEOF
81ecdfbb
RW
16043{ { ac_try="$LEX conftest.l"
16044case "(($ac_try" in
16045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16046 *) ac_try_echo=$ac_try;;
16047esac
16048eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16049$as_echo "$ac_try_echo"; } >&5
16050 (eval "$LEX conftest.l") 2>&5
42ecbf5e 16051 ac_status=$?
81ecdfbb
RW
16052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16053 test $ac_status = 0; }
16054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
16055$as_echo_n "checking lex output file root... " >&6; }
16056if test "${ac_cv_prog_lex_root+set}" = set; then :
16057 $as_echo_n "(cached) " >&6
42ecbf5e 16058else
42ecbf5e 16059
81ecdfbb
RW
16060if test -f lex.yy.c; then
16061 ac_cv_prog_lex_root=lex.yy
16062elif test -f lexyy.c; then
16063 ac_cv_prog_lex_root=lexyy
16064else
16065 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
42ecbf5e 16066fi
42ecbf5e 16067fi
81ecdfbb
RW
16068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
16069$as_echo "$ac_cv_prog_lex_root" >&6; }
16070LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
20e95c23 16071
81ecdfbb
RW
16072if test -z "${LEXLIB+set}"; then
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
16074$as_echo_n "checking lex library... " >&6; }
16075if test "${ac_cv_lib_lex+set}" = set; then :
16076 $as_echo_n "(cached) " >&6
252b5132 16077else
20e95c23 16078
81ecdfbb
RW
16079 ac_save_LIBS=$LIBS
16080 ac_cv_lib_lex='none needed'
16081 for ac_lib in '' -lfl -ll; do
16082 LIBS="$ac_lib $ac_save_LIBS"
16083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16084/* end confdefs.h. */
16085`cat $LEX_OUTPUT_ROOT.c`
16086_ACEOF
16087if ac_fn_c_try_link "$LINENO"; then :
16088 ac_cv_lib_lex=$ac_lib
20e95c23 16089fi
81ecdfbb
RW
16090rm -f core conftest.err conftest.$ac_objext \
16091 conftest$ac_exeext conftest.$ac_ext
16092 test "$ac_cv_lib_lex" != 'none needed' && break
16093 done
16094 LIBS=$ac_save_LIBS
20e95c23
DJ
16095
16096fi
81ecdfbb
RW
16097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
16098$as_echo "$ac_cv_lib_lex" >&6; }
16099 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
d7040cdb 16100fi
20e95c23 16101
20e95c23 16102
81ecdfbb
RW
16103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
16104$as_echo_n "checking whether yytext is a pointer... " >&6; }
16105if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
16106 $as_echo_n "(cached) " >&6
d7040cdb
SE
16107else
16108 # POSIX says lex can declare yytext either as a pointer or an array; the
81ecdfbb 16109# default is implementation-dependent. Figure out which it is, since
d7040cdb
SE
16110# not all implementations provide the %pointer and %array declarations.
16111ac_cv_prog_lex_yytext_pointer=no
d7040cdb 16112ac_save_LIBS=$LIBS
81ecdfbb
RW
16113LIBS="$LEXLIB $ac_save_LIBS"
16114cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16115/* end confdefs.h. */
16116#define YYTEXT_POINTER 1
d7040cdb 16117`cat $LEX_OUTPUT_ROOT.c`
20e95c23 16118_ACEOF
81ecdfbb 16119if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 16120 ac_cv_prog_lex_yytext_pointer=yes
d7040cdb 16121fi
81ecdfbb
RW
16122rm -f core conftest.err conftest.$ac_objext \
16123 conftest$ac_exeext conftest.$ac_ext
d7040cdb 16124LIBS=$ac_save_LIBS
d7040cdb
SE
16125
16126fi
81ecdfbb
RW
16127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
16128$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
d7040cdb
SE
16129if test $ac_cv_prog_lex_yytext_pointer = yes; then
16130
81ecdfbb 16131$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
d7040cdb
SE
16132
16133fi
81ecdfbb 16134rm -f conftest.l $LEX_OUTPUT_ROOT.c
d7040cdb
SE
16135
16136fi
16137if test "$LEX" = :; then
16138 LEX=${am_missing_run}flex
16139fi
16140
81ecdfbb
RW
16141
16142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
16143$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
16144 # Check whether --enable-maintainer-mode was given.
16145if test "${enable_maintainer_mode+set}" = set; then :
16146 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
252b5132 16147else
d7040cdb 16148 USE_MAINTAINER_MODE=no
81ecdfbb 16149fi
d7040cdb 16150
81ecdfbb
RW
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
16152$as_echo "$USE_MAINTAINER_MODE" >&6; }
16153 if test $USE_MAINTAINER_MODE = yes; then
d7040cdb
SE
16154 MAINTAINER_MODE_TRUE=
16155 MAINTAINER_MODE_FALSE='#'
16156else
16157 MAINTAINER_MODE_TRUE='#'
16158 MAINTAINER_MODE_FALSE=
252b5132 16159fi
252b5132 16160
d7040cdb
SE
16161 MAINT=$MAINTAINER_MODE_TRUE
16162
16163
81ecdfbb 16164 if false; then
d7040cdb
SE
16165 GENINSRC_NEVER_TRUE=
16166 GENINSRC_NEVER_FALSE='#'
16167else
16168 GENINSRC_NEVER_TRUE='#'
16169 GENINSRC_NEVER_FALSE=
252b5132
RH
16170fi
16171
81ecdfbb
RW
16172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
16173$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
16174if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
16175 $as_echo_n "(cached) " >&6
eccbf555
AM
16176else
16177 echo abfoo >t1
16178 echo cdfoo >t2
16179 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
16180 if cmp t1 t2 2 2 > /dev/null 2>&1; then
16181 if cmp t1 t2 1 1 > /dev/null 2>&1; then
16182 :
16183 else
16184 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
16185 fi
16186 fi
16187 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
16188 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
16189 :
16190 else
16191 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
16192 fi
16193 fi
16194 rm t1 t2
16195
16196fi
81ecdfbb
RW
16197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
16198$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
eccbf555
AM
16199do_compare="$gcc_cv_prog_cmp_skip"
16200
16201
d7040cdb
SE
16202
16203. ${srcdir}/configure.host
16204
16205
16206
16207
252b5132
RH
16208
16209
6738cadc 16210
58797674 16211for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h locale.h sys/param.h
81ecdfbb
RW
16212do :
16213 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16214ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16215eval as_val=\$$as_ac_Header
16216 if test "x$as_val" = x""yes; then :
42ecbf5e 16217 cat >>confdefs.h <<_ACEOF
81ecdfbb 16218#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
42ecbf5e
DJ
16219_ACEOF
16220
16221fi
16222
252b5132
RH
16223done
16224
5d3236ee
DK
16225for ac_header in fcntl.h sys/file.h sys/time.h sys/stat.h
16226do :
16227 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16228ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16229eval as_val=\$$as_ac_Header
16230 if test "x$as_val" = x""yes; then :
16231 cat >>confdefs.h <<_ACEOF
16232#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16233_ACEOF
16234
16235fi
16236
16237done
16238
208a4923
NC
16239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
16240$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
16241if test "${gcc_cv_header_string+set}" = set; then :
16242 $as_echo_n "(cached) " >&6
16243else
16244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16245/* end confdefs.h. */
16246#include <string.h>
16247#include <strings.h>
16248int
16249main ()
16250{
16251
16252 ;
16253 return 0;
16254}
16255_ACEOF
16256if ac_fn_c_try_compile "$LINENO"; then :
16257 gcc_cv_header_string=yes
16258else
16259 gcc_cv_header_string=no
16260fi
16261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16262fi
16263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
16264$as_echo "$gcc_cv_header_string" >&6; }
16265if test $gcc_cv_header_string = yes; then
16266
16267$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
16268
16269fi
16270
44350750 16271for ac_func in glob mkstemp realpath sbrk setlocale waitpid
81ecdfbb
RW
16272do :
16273 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16274ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16275eval as_val=\$$as_ac_var
16276 if test "x$as_val" = x""yes; then :
42ecbf5e 16277 cat >>confdefs.h <<_ACEOF
81ecdfbb 16278#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42ecbf5e 16279_ACEOF
252b5132 16280
252b5132
RH
16281fi
16282done
16283
5d3236ee
DK
16284for ac_func in open lseek close
16285do :
16286 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16287ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16288eval as_val=\$$as_ac_var
16289 if test "x$as_val" = x""yes; then :
16290 cat >>confdefs.h <<_ACEOF
16291#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16292_ACEOF
16293
16294fi
16295done
16296
252b5132 16297ac_header_dirent=no
42ecbf5e 16298for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
81ecdfbb
RW
16299 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
16301$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
16302if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
16303 $as_echo_n "(cached) " >&6
16304else
16305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 16306/* end confdefs.h. */
252b5132
RH
16307#include <sys/types.h>
16308#include <$ac_hdr>
42ecbf5e
DJ
16309
16310int
16311main ()
16312{
16313if ((DIR *) 0)
16314return 0;
16315 ;
16316 return 0;
16317}
16318_ACEOF
81ecdfbb 16319if ac_fn_c_try_compile "$LINENO"; then :
42ecbf5e
DJ
16320 eval "$as_ac_Header=yes"
16321else
81ecdfbb 16322 eval "$as_ac_Header=no"
42ecbf5e 16323fi
81ecdfbb 16324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e 16325fi
81ecdfbb
RW
16326eval ac_res=\$$as_ac_Header
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16328$as_echo "$ac_res" >&6; }
16329eval as_val=\$$as_ac_Header
16330 if test "x$as_val" = x""yes; then :
42ecbf5e 16331 cat >>confdefs.h <<_ACEOF
81ecdfbb 16332#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
42ecbf5e
DJ
16333_ACEOF
16334
16335ac_header_dirent=$ac_hdr; break
d15b04bd 16336fi
42ecbf5e 16337
d15b04bd
L
16338done
16339# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16340if test $ac_header_dirent = dirent.h; then
81ecdfbb
RW
16341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16342$as_echo_n "checking for library containing opendir... " >&6; }
16343if test "${ac_cv_search_opendir+set}" = set; then :
16344 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
16345else
16346 ac_func_search_save_LIBS=$LIBS
81ecdfbb 16347cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
16348/* end confdefs.h. */
16349
81ecdfbb
RW
16350/* Override any GCC internal prototype to avoid an error.
16351 Use char because int might match the return type of a GCC
16352 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
16353#ifdef __cplusplus
16354extern "C"
16355#endif
42ecbf5e
DJ
16356char opendir ();
16357int
16358main ()
16359{
81ecdfbb 16360return opendir ();
42ecbf5e
DJ
16361 ;
16362 return 0;
16363}
16364_ACEOF
81ecdfbb
RW
16365for ac_lib in '' dir; do
16366 if test -z "$ac_lib"; then
16367 ac_res="none required"
16368 else
16369 ac_res=-l$ac_lib
42ecbf5e 16370 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
16371 fi
16372 if ac_fn_c_try_link "$LINENO"; then :
16373 ac_cv_search_opendir=$ac_res
16374fi
16375rm -f core conftest.err conftest.$ac_objext \
16376 conftest$ac_exeext
16377 if test "${ac_cv_search_opendir+set}" = set; then :
16378 break
16379fi
16380done
16381if test "${ac_cv_search_opendir+set}" = set; then :
e5a52504 16382
42ecbf5e 16383else
81ecdfbb 16384 ac_cv_search_opendir=no
252b5132 16385fi
81ecdfbb 16386rm conftest.$ac_ext
42ecbf5e
DJ
16387LIBS=$ac_func_search_save_LIBS
16388fi
81ecdfbb
RW
16389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16390$as_echo "$ac_cv_search_opendir" >&6; }
16391ac_res=$ac_cv_search_opendir
16392if test "$ac_res" != no; then :
16393 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e 16394
d15b04bd 16395fi
252b5132
RH
16396
16397else
81ecdfbb
RW
16398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16399$as_echo_n "checking for library containing opendir... " >&6; }
16400if test "${ac_cv_search_opendir+set}" = set; then :
16401 $as_echo_n "(cached) " >&6
252b5132 16402else
42ecbf5e 16403 ac_func_search_save_LIBS=$LIBS
81ecdfbb 16404cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
16405/* end confdefs.h. */
16406
81ecdfbb
RW
16407/* Override any GCC internal prototype to avoid an error.
16408 Use char because int might match the return type of a GCC
16409 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
16410#ifdef __cplusplus
16411extern "C"
16412#endif
42ecbf5e
DJ
16413char opendir ();
16414int
16415main ()
16416{
81ecdfbb 16417return opendir ();
42ecbf5e
DJ
16418 ;
16419 return 0;
16420}
16421_ACEOF
81ecdfbb
RW
16422for ac_lib in '' x; do
16423 if test -z "$ac_lib"; then
16424 ac_res="none required"
16425 else
16426 ac_res=-l$ac_lib
42ecbf5e 16427 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
16428 fi
16429 if ac_fn_c_try_link "$LINENO"; then :
16430 ac_cv_search_opendir=$ac_res
16431fi
16432rm -f core conftest.err conftest.$ac_objext \
16433 conftest$ac_exeext
16434 if test "${ac_cv_search_opendir+set}" = set; then :
16435 break
16436fi
16437done
16438if test "${ac_cv_search_opendir+set}" = set; then :
252b5132 16439
42ecbf5e 16440else
81ecdfbb 16441 ac_cv_search_opendir=no
252b5132 16442fi
81ecdfbb 16443rm conftest.$ac_ext
42ecbf5e 16444LIBS=$ac_func_search_save_LIBS
252b5132 16445fi
81ecdfbb
RW
16446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16447$as_echo "$ac_cv_search_opendir" >&6; }
16448ac_res=$ac_cv_search_opendir
16449if test "$ac_res" != no; then :
16450 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e 16451
d15b04bd 16452fi
252b5132
RH
16453
16454fi
16455
16456
5d3236ee
DK
16457# Check for dlopen support and enable plugins if possible.
16458enable_plugins=yes
16459ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
16460"
16461if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
16462
16463else
16464 enable_plugins=no
16465fi
16466
16467
16468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16469$as_echo_n "checking for library containing dlopen... " >&6; }
16470if test "${ac_cv_search_dlopen+set}" = set; then :
16471 $as_echo_n "(cached) " >&6
16472else
16473 ac_func_search_save_LIBS=$LIBS
16474cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16475/* end confdefs.h. */
16476
16477/* Override any GCC internal prototype to avoid an error.
16478 Use char because int might match the return type of a GCC
16479 builtin and then its argument prototype would still apply. */
16480#ifdef __cplusplus
16481extern "C"
16482#endif
16483char dlopen ();
16484int
16485main ()
16486{
16487return dlopen ();
16488 ;
16489 return 0;
16490}
16491_ACEOF
16492for ac_lib in '' dl; do
16493 if test -z "$ac_lib"; then
16494 ac_res="none required"
16495 else
16496 ac_res=-l$ac_lib
16497 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16498 fi
16499 if ac_fn_c_try_link "$LINENO"; then :
16500 ac_cv_search_dlopen=$ac_res
16501fi
16502rm -f core conftest.err conftest.$ac_objext \
16503 conftest$ac_exeext
16504 if test "${ac_cv_search_dlopen+set}" = set; then :
16505 break
16506fi
16507done
16508if test "${ac_cv_search_dlopen+set}" = set; then :
16509
16510else
16511 ac_cv_search_dlopen=no
16512fi
16513rm conftest.$ac_ext
16514LIBS=$ac_func_search_save_LIBS
16515fi
16516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16517$as_echo "$ac_cv_search_dlopen" >&6; }
16518ac_res=$ac_cv_search_dlopen
16519if test "$ac_res" != no; then :
16520 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16521
16522else
16523 enable_plugins=no
16524fi
16525
16526for ac_func in dlopen dlsym dlclose
16527do :
16528 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16529ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16530eval as_val=\$$as_ac_var
16531 if test "x$as_val" = x""yes; then :
16532 cat >>confdefs.h <<_ACEOF
16533#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16534_ACEOF
16535
16536else
16537 enable_plugins=no
16538fi
16539done
16540
3917d5d5
DK
16541# We also support plugins on Windows (MinGW).
16542if test x$enable_plugins = xno ; then
f31d24a0 16543 for ac_header in windows.h
3917d5d5 16544do :
f31d24a0 16545 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
3917d5d5 16546"
f31d24a0 16547if test "x$ac_cv_header_windows_h" = x""yes; then :
3917d5d5
DK
16548 cat >>confdefs.h <<_ACEOF
16549#define HAVE_WINDOWS_H 1
16550_ACEOF
16551 enable_plugins=yes
16552fi
16553
16554done
16555
16556fi
5d3236ee
DK
16557 if test x$enable_plugins = xyes; then
16558 ENABLE_PLUGINS_TRUE=
16559 ENABLE_PLUGINS_FALSE='#'
16560else
16561 ENABLE_PLUGINS_TRUE='#'
16562 ENABLE_PLUGINS_FALSE=
16563fi
16564
16565
02ecc8e9
L
16566# Check whether --enable-initfini-array was given.
16567if test "${enable_initfini_array+set}" = set; then :
16568 enableval=$enable_initfini_array;
16569else
16570
16571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
16572$as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
16573if test "${gcc_cv_initfini_array+set}" = set; then :
16574 $as_echo_n "(cached) " >&6
16575else
16576 if test "x${build}" = "x${target}" ; then
16577 if test "$cross_compiling" = yes; then :
16578 gcc_cv_initfini_array=no
16579else
16580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16581/* end confdefs.h. */
16582
16583static int x = -1;
16584int main (void) { return x; }
16585int foo (void) { x = 0; }
16586int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
16587_ACEOF
16588if ac_fn_c_try_run "$LINENO"; then :
16589 gcc_cv_initfini_array=yes
16590else
16591 gcc_cv_initfini_array=no
16592fi
16593rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16594 conftest.$ac_objext conftest.beam conftest.$ac_ext
16595fi
16596
16597 else
16598 gcc_cv_initfini_array=no
16599 fi
16600fi
16601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
16602$as_echo "$gcc_cv_initfini_array" >&6; }
16603 enable_initfini_array=$gcc_cv_initfini_array
16604
16605fi
16606
16607
16608if test $enable_initfini_array = yes; then
16609
16610$as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
16611
16612fi
16613
81ecdfbb
RW
16614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
16615$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
16616if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then :
16617 $as_echo_n "(cached) " >&6
34875e64 16618else
81ecdfbb 16619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 16620/* end confdefs.h. */
34875e64 16621#include <unistd.h>
42ecbf5e
DJ
16622int
16623main ()
16624{
34875e64 16625extern int getopt (int, char *const*, const char *);
42ecbf5e
DJ
16626 ;
16627 return 0;
16628}
16629_ACEOF
81ecdfbb 16630if ac_fn_c_try_compile "$LINENO"; then :
34875e64
NC
16631 ld_cv_decl_getopt_unistd_h=yes
16632else
81ecdfbb 16633 ld_cv_decl_getopt_unistd_h=no
34875e64 16634fi
81ecdfbb 16635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34875e64
NC
16636fi
16637
81ecdfbb
RW
16638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5
16639$as_echo "$ld_cv_decl_getopt_unistd_h" >&6; }
34875e64 16640if test $ld_cv_decl_getopt_unistd_h = yes; then
42ecbf5e 16641
81ecdfbb 16642$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
34875e64
NC
16643
16644fi
42ecbf5e 16645
252b5132
RH
16646
16647case "${host}" in
a8100d5b 16648*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
42ecbf5e 16649
81ecdfbb 16650$as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
252b5132
RH
16651 ;;
16652esac
16653
81ecdfbb
RW
16654ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
16655if test "x$ac_cv_have_decl_strstr" = x""yes; then :
16656 ac_have_decl=1
252b5132 16657else
81ecdfbb
RW
16658 ac_have_decl=0
16659fi
502bdb00 16660
81ecdfbb
RW
16661cat >>confdefs.h <<_ACEOF
16662#define HAVE_DECL_STRSTR $ac_have_decl
42ecbf5e 16663_ACEOF
81ecdfbb
RW
16664ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
16665if test "x$ac_cv_have_decl_free" = x""yes; then :
16666 ac_have_decl=1
252b5132 16667else
81ecdfbb 16668 ac_have_decl=0
252b5132
RH
16669fi
16670
502bdb00 16671cat >>confdefs.h <<_ACEOF
81ecdfbb 16672#define HAVE_DECL_FREE $ac_have_decl
502bdb00 16673_ACEOF
81ecdfbb
RW
16674ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
16675if test "x$ac_cv_have_decl_sbrk" = x""yes; then :
16676 ac_have_decl=1
16677else
16678 ac_have_decl=0
16679fi
42ecbf5e 16680
81ecdfbb
RW
16681cat >>confdefs.h <<_ACEOF
16682#define HAVE_DECL_SBRK $ac_have_decl
16683_ACEOF
16684ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
16685if test "x$ac_cv_have_decl_getenv" = x""yes; then :
16686 ac_have_decl=1
16687else
16688 ac_have_decl=0
16689fi
502bdb00 16690
81ecdfbb
RW
16691cat >>confdefs.h <<_ACEOF
16692#define HAVE_DECL_GETENV $ac_have_decl
16693_ACEOF
16694ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
16695if test "x$ac_cv_have_decl_environ" = x""yes; then :
16696 ac_have_decl=1
502bdb00 16697else
81ecdfbb
RW
16698 ac_have_decl=0
16699fi
16700
16701cat >>confdefs.h <<_ACEOF
16702#define HAVE_DECL_ENVIRON $ac_have_decl
42ecbf5e 16703_ACEOF
252b5132 16704
252b5132 16705
81ecdfbb
RW
16706# Link in zlib if we can. This is needed only for the bootstrap tests
16707# right now, since those tests use libbfd, which depends on zlib.
52546677
RM
16708
16709 # See if the user specified whether he wants zlib support or not.
16710
16711# Check whether --with-zlib was given.
16712if test "${with_zlib+set}" = set; then :
16713 withval=$with_zlib;
16714else
16715 with_zlib=auto
16716fi
16717
16718
16719 if test "$with_zlib" != "no"; then
16720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
81ecdfbb
RW
16721$as_echo_n "checking for library containing zlibVersion... " >&6; }
16722if test "${ac_cv_search_zlibVersion+set}" = set; then :
16723 $as_echo_n "(cached) " >&6
252b5132 16724else
81ecdfbb
RW
16725 ac_func_search_save_LIBS=$LIBS
16726cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 16727/* end confdefs.h. */
502bdb00 16728
81ecdfbb
RW
16729/* Override any GCC internal prototype to avoid an error.
16730 Use char because int might match the return type of a GCC
4474d12b 16731 builtin and then its argument prototype would still apply. */
4474d12b
CS
16732#ifdef __cplusplus
16733extern "C"
16734#endif
4474d12b
CS
16735char zlibVersion ();
16736int
16737main ()
16738{
81ecdfbb 16739return zlibVersion ();
4474d12b
CS
16740 ;
16741 return 0;
16742}
16743_ACEOF
81ecdfbb
RW
16744for ac_lib in '' z; do
16745 if test -z "$ac_lib"; then
16746 ac_res="none required"
4474d12b 16747 else
81ecdfbb
RW
16748 ac_res=-l$ac_lib
16749 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4474d12b 16750 fi
81ecdfbb
RW
16751 if ac_fn_c_try_link "$LINENO"; then :
16752 ac_cv_search_zlibVersion=$ac_res
4474d12b 16753fi
81ecdfbb
RW
16754rm -f core conftest.err conftest.$ac_objext \
16755 conftest$ac_exeext
16756 if test "${ac_cv_search_zlibVersion+set}" = set; then :
16757 break
4474d12b 16758fi
81ecdfbb
RW
16759done
16760if test "${ac_cv_search_zlibVersion+set}" = set; then :
4474d12b 16761
4474d12b 16762else
81ecdfbb 16763 ac_cv_search_zlibVersion=no
4474d12b 16764fi
81ecdfbb
RW
16765rm conftest.$ac_ext
16766LIBS=$ac_func_search_save_LIBS
4474d12b 16767fi
81ecdfbb
RW
16768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
16769$as_echo "$ac_cv_search_zlibVersion" >&6; }
16770ac_res=$ac_cv_search_zlibVersion
16771if test "$ac_res" != no; then :
16772 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16773 for ac_header in zlib.h
16774do :
16775 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
16776if test "x$ac_cv_header_zlib_h" = x""yes; then :
4474d12b 16777 cat >>confdefs.h <<_ACEOF
81ecdfbb 16778#define HAVE_ZLIB_H 1
4474d12b
CS
16779_ACEOF
16780
16781fi
16782
16783done
16784
16785fi
16786
52546677
RM
16787 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
16788 as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
16789 fi
16790 fi
16791
4474d12b 16792
597e2591
ILT
16793# When converting linker scripts into strings for use in emulation
16794# files, use astring.sed if the compiler supports ANSI string
16795# concatenation, or ostring.sed otherwise. This is to support the
16796# broken Microsoft MSVC compiler, which limits the length of string
16797# constants, while still supporting pre-ANSI compilers which do not
16798# support string concatenation.
81ecdfbb
RW
16799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ANSI C string concatenation works" >&5
16800$as_echo_n "checking whether ANSI C string concatenation works... " >&6; }
16801if test "${ld_cv_string_concatenation+set}" = set; then :
16802 $as_echo_n "(cached) " >&6
42ecbf5e 16803else
81ecdfbb 16804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 16805/* end confdefs.h. */
81ecdfbb 16806
314e9a4e
L
16807int
16808main ()
16809{
81ecdfbb 16810char *a = "a" "a";
314e9a4e
L
16811 ;
16812 return 0;
16813}
16814_ACEOF
81ecdfbb
RW
16815if ac_fn_c_try_compile "$LINENO"; then :
16816 ld_cv_string_concatenation=yes
314e9a4e 16817else
81ecdfbb 16818 ld_cv_string_concatenation=no
314e9a4e 16819fi
81ecdfbb 16820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
314e9a4e 16821fi
81ecdfbb
RW
16822
16823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_string_concatenation" >&5
16824$as_echo "$ld_cv_string_concatenation" >&6; }
16825if test "$ld_cv_string_concatenation" = "yes"; then
16826 STRINGIFY=astring.sed
16827else
16828 STRINGIFY=ostring.sed
314e9a4e 16829fi
81ecdfbb
RW
16830
16831
16832# target-specific stuff:
16833
16834all_targets=
16835EMUL=
16836all_emuls=
16837all_emul_extras=
16838all_libpath=
16839
16840rm -f tdirs
16841
bf9ef603
RM
16842# If the host is 64-bit, then we enable 64-bit targets by default.
16843# This is consistent with what ../bfd/configure.in does.
16844if test x${want64} = xfalse; then
16845 # The cast to long int works around a bug in the HP C Compiler
16846# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16847# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16848# This bug is HP SR number 8606223364.
16849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16850$as_echo_n "checking size of void *... " >&6; }
16851if test "${ac_cv_sizeof_void_p+set}" = set; then :
16852 $as_echo_n "(cached) " >&6
16853else
16854 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
16855
16856else
16857 if test "$ac_cv_type_void_p" = yes; then
16858 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16859$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16860{ as_fn_set_status 77
16861as_fn_error "cannot compute sizeof (void *)
16862See \`config.log' for more details." "$LINENO" 5; }; }
16863 else
16864 ac_cv_sizeof_void_p=0
16865 fi
16866fi
16867
16868fi
16869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16870$as_echo "$ac_cv_sizeof_void_p" >&6; }
16871
16872
16873
16874cat >>confdefs.h <<_ACEOF
16875#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16876_ACEOF
16877
16878
16879 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
16880 want64=true
16881 fi
16882fi
16883
81ecdfbb
RW
16884for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
16885do
16886 if test "$targ_alias" = "all"; then
16887 all_targets=true
16888 else
16889 # Canonicalize the secondary target names.
16890 result=`$ac_config_sub $targ_alias 2>/dev/null`
16891 if test -n "$result"; then
16892 targ=$result
16893 else
16894 targ=$targ_alias
16895 fi
16896
16897 . ${srcdir}/configure.tgt
16898
16899 if test "$targ" = "$target"; then
16900 EMUL=$targ_emul
16901 fi
16902
16903 if test x${want64} = xfalse; then
16904 . ${srcdir}/../bfd/config.bfd
16905 fi
16906
16907 if test x${want64} = xtrue; then
16908 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
16909 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
16910 fi
16911
16912 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
16913 case " $all_emuls " in
16914 *" e${i}.o "*) ;;
16915 *)
16916 all_emuls="$all_emuls e${i}.o"
16917 eval result=\$tdir_$i
16918 test -z "$result" && result=$targ_alias
16919 echo tdir_$i=$result >> tdirs
16920 ;;
16921 esac
16922 done
16923
16924 for i in $targ_emul $targ_extra_libpath; do
16925 case " $all_libpath " in
16926 *" ${i} "*) ;;
16927 *)
16928 if test -z "$all_libpath"; then
16929 all_libpath=${i}
16930 else
16931 all_libpath="$all_libpath ${i}"
16932 fi
16933 ;;
16934 esac
16935 done
16936
16937 for i in $targ_extra_ofiles; do
16938 case " $all_emul_extras " in
16939 *" ${i} "*) ;;
16940 *)
16941 all_emul_extras="$all_emul_extras ${i}"
16942 ;;
16943 esac
16944 done
16945 fi
16946done
16947
16948
16949
16950TDIRS=tdirs
16951
16952
16953if test x${all_targets} = xtrue; then
42ecbf5e
DJ
16954 if test x${want64} = xtrue; then
16955 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
16956 else
16957 EMULATION_OFILES='$(ALL_EMULATIONS)'
16958 fi
16959 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
16960else
16961 EMULATION_OFILES=$all_emuls
16962 EMUL_EXTRA_OFILES=$all_emul_extras
16963fi
16964
16965
16966
16967
16968EMULATION_LIBPATH=$all_libpath
16969
16970
16971if test x${enable_static} = xno; then
16972 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
16973else
16974 TESTBFDLIB="../bfd/.libs/libbfd.a"
16975fi
16976
16977
16978target_vendor=${target_vendor=$host_vendor}
16979case "$target_vendor" in
16980 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
16981 *) EXTRA_SHLIB_EXTENSION= ;;
16982esac
16983
16984case "$target_os" in
16985 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
16986esac
16987
16988if test x${EXTRA_SHLIB_EXTENSION} != x ; then
16989
16990cat >>confdefs.h <<_ACEOF
16991#define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
16992_ACEOF
16993
16994fi
16995
108a6f8e
CD
16996
16997
16998
16999
31dd3154 17000
81ecdfbb 17001ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
da594c4a 17002
42ecbf5e
DJ
17003cat >confcache <<\_ACEOF
17004# This file is a shell script that caches the results of configure
17005# tests run on this system so they can be shared between configure
17006# scripts and configure runs, see configure's option --config-cache.
17007# It is not useful on other systems. If it contains results you don't
17008# want to keep, you may remove or edit it.
17009#
17010# config.status only pays attention to the cache file if you give it
17011# the --recheck option to rerun configure.
17012#
17013# `ac_cv_env_foo' variables (set or unset) will be overridden when
17014# loading this file, other *unset* `ac_cv_foo' will be assigned the
17015# following values.
17016
17017_ACEOF
17018
17019# The following way of writing the cache mishandles newlines in values,
17020# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 17021# So, we kill variables containing newlines.
42ecbf5e
DJ
17022# Ultrix sh set writes to stderr and can't be redirected directly,
17023# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
17024(
17025 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17026 eval ac_val=\$$ac_var
17027 case $ac_val in #(
17028 *${as_nl}*)
17029 case $ac_var in #(
17030 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17031$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17032 esac
17033 case $ac_var in #(
17034 _ | IFS | as_nl) ;; #(
17035 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17036 *) { eval $ac_var=; unset $ac_var;} ;;
17037 esac ;;
17038 esac
17039 done
17040
42ecbf5e 17041 (set) 2>&1 |
81ecdfbb
RW
17042 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17043 *${as_nl}ac_space=\ *)
17044 # `set' does not quote correctly, so add quotes: double-quote
17045 # substitution turns \\\\ into \\, and sed turns \\ into \.
42ecbf5e
DJ
17046 sed -n \
17047 "s/'/'\\\\''/g;
17048 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 17049 ;; #(
42ecbf5e
DJ
17050 *)
17051 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 17052 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42ecbf5e 17053 ;;
81ecdfbb
RW
17054 esac |
17055 sort
17056) |
42ecbf5e 17057 sed '
81ecdfbb 17058 /^ac_cv_env_/b end
42ecbf5e 17059 t clear
81ecdfbb 17060 :clear
42ecbf5e
DJ
17061 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17062 t end
81ecdfbb
RW
17063 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17064 :end' >>confcache
17065if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17066 if test -w "$cache_file"; then
17067 test "x$cache_file" != "x/dev/null" &&
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17069$as_echo "$as_me: updating cache $cache_file" >&6;}
42ecbf5e
DJ
17070 cat confcache >$cache_file
17071 else
81ecdfbb
RW
17072 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17073$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
42ecbf5e
DJ
17074 fi
17075fi
17076rm -f confcache
17077
17078test "x$prefix" = xNONE && prefix=$ac_default_prefix
17079# Let make expand exec_prefix.
17080test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17081
42ecbf5e
DJ
17082DEFS=-DHAVE_CONFIG_H
17083
17084ac_libobjs=
17085ac_ltlibobjs=
17086for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17087 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
17088 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17089 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17090 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17091 # will be set to the directory where LIBOBJS objects are built.
17092 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17093 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
42ecbf5e
DJ
17094done
17095LIBOBJS=$ac_libobjs
17096
17097LTLIBOBJS=$ac_ltlibobjs
17098
17099
17100if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
81ecdfbb
RW
17101 as_fn_error "conditional \"AMDEP\" was never defined.
17102Usually this means the macro was only invoked conditionally." "$LINENO" 5
42ecbf5e
DJ
17103fi
17104if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
81ecdfbb
RW
17105 as_fn_error "conditional \"am__fastdepCC\" was never defined.
17106Usually this means the macro was only invoked conditionally." "$LINENO" 5
17107fi
17108 if test -n "$EXEEXT"; then
17109 am__EXEEXT_TRUE=
17110 am__EXEEXT_FALSE='#'
17111else
17112 am__EXEEXT_TRUE='#'
17113 am__EXEEXT_FALSE=
42ecbf5e 17114fi
81ecdfbb 17115
64ac50ac
RW
17116if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17117 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17118Usually this means the macro was only invoked conditionally." "$LINENO" 5
17119fi
3cb62297
L
17120if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17121 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
17122Usually this means the macro was only invoked conditionally." "$LINENO" 5
17123fi
42ecbf5e 17124if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
81ecdfbb
RW
17125 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17126Usually this means the macro was only invoked conditionally." "$LINENO" 5
42ecbf5e 17127fi
d5fbea21 17128if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
81ecdfbb
RW
17129 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
17130Usually this means the macro was only invoked conditionally." "$LINENO" 5
d5fbea21 17131fi
5d3236ee
DK
17132if test -z "${ENABLE_PLUGINS_TRUE}" && test -z "${ENABLE_PLUGINS_FALSE}"; then
17133 as_fn_error "conditional \"ENABLE_PLUGINS\" was never defined.
17134Usually this means the macro was only invoked conditionally." "$LINENO" 5
17135fi
42ecbf5e
DJ
17136
17137: ${CONFIG_STATUS=./config.status}
81ecdfbb 17138ac_write_fail=0
42ecbf5e
DJ
17139ac_clean_files_save=$ac_clean_files
17140ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
17141{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17142$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17143as_write_fail=0
17144cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
42ecbf5e
DJ
17145#! $SHELL
17146# Generated by $as_me.
17147# Run this file to recreate the current configuration.
17148# Compiler output produced by configure, useful for debugging
17149# configure, is in config.log if it exists.
17150
17151debug=false
17152ac_cs_recheck=false
17153ac_cs_silent=false
42ecbf5e 17154
81ecdfbb
RW
17155SHELL=\${CONFIG_SHELL-$SHELL}
17156export SHELL
17157_ASEOF
17158cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17159## -------------------- ##
17160## M4sh Initialization. ##
17161## -------------------- ##
42ecbf5e 17162
81ecdfbb
RW
17163# Be more Bourne compatible
17164DUALCASE=1; export DUALCASE # for MKS sh
17165if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
42ecbf5e
DJ
17166 emulate sh
17167 NULLCMD=:
81ecdfbb 17168 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
42ecbf5e
DJ
17169 # is contrary to our usage. Disable this feature.
17170 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
17171 setopt NO_GLOB_SUBST
17172else
17173 case `(set -o) 2>/dev/null` in #(
17174 *posix*) :
17175 set -o posix ;; #(
17176 *) :
17177 ;;
17178esac
42ecbf5e 17179fi
42ecbf5e 17180
81ecdfbb
RW
17181
17182as_nl='
17183'
17184export as_nl
17185# Printing a long string crashes Solaris 7 /usr/bin/printf.
17186as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17187as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17188as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17189# Prefer a ksh shell builtin over an external printf program on Solaris,
17190# but without wasting forks for bash or zsh.
17191if test -z "$BASH_VERSION$ZSH_VERSION" \
17192 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17193 as_echo='print -r --'
17194 as_echo_n='print -rn --'
17195elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17196 as_echo='printf %s\n'
17197 as_echo_n='printf %s'
17198else
17199 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17200 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17201 as_echo_n='/usr/ucb/echo -n'
17202 else
17203 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17204 as_echo_n_body='eval
17205 arg=$1;
17206 case $arg in #(
17207 *"$as_nl"*)
17208 expr "X$arg" : "X\\(.*\\)$as_nl";
17209 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17210 esac;
17211 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17212 '
17213 export as_echo_n_body
17214 as_echo_n='sh -c $as_echo_n_body as_echo'
17215 fi
17216 export as_echo_body
17217 as_echo='sh -c $as_echo_body as_echo'
17218fi
17219
17220# The user is always right.
17221if test "${PATH_SEPARATOR+set}" != set; then
17222 PATH_SEPARATOR=:
17223 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17224 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17225 PATH_SEPARATOR=';'
17226 }
42ecbf5e
DJ
17227fi
17228
17229
81ecdfbb
RW
17230# IFS
17231# We need space, tab and new line, in precisely that order. Quoting is
17232# there to prevent editors from complaining about space-tab.
17233# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17234# splitting by setting IFS to empty value.)
17235IFS=" "" $as_nl"
17236
17237# Find who we are. Look in the path if we contain no directory separator.
17238case $0 in #((
17239 *[\\/]* ) as_myself=$0 ;;
17240 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17241for as_dir in $PATH
17242do
17243 IFS=$as_save_IFS
17244 test -z "$as_dir" && as_dir=.
17245 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17246 done
17247IFS=$as_save_IFS
17248
17249 ;;
17250esac
17251# We did not find ourselves, most probably we were run as `sh COMMAND'
17252# in which case we are not to be found in the path.
17253if test "x$as_myself" = x; then
17254 as_myself=$0
17255fi
17256if test ! -f "$as_myself"; then
17257 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17258 exit 1
17259fi
17260
17261# Unset variables that we do not need and which cause bugs (e.g. in
17262# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17263# suppresses any "Segmentation fault" message there. '((' could
17264# trigger a bug in pdksh 5.2.14.
17265for as_var in BASH_ENV ENV MAIL MAILPATH
17266do eval test x\${$as_var+set} = xset \
17267 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17268done
42ecbf5e
DJ
17269PS1='$ '
17270PS2='> '
17271PS4='+ '
17272
17273# NLS nuisances.
81ecdfbb
RW
17274LC_ALL=C
17275export LC_ALL
17276LANGUAGE=C
17277export LANGUAGE
17278
17279# CDPATH.
17280(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17281
17282
17283# as_fn_error ERROR [LINENO LOG_FD]
17284# ---------------------------------
17285# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17286# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17287# script with status $?, using 1 if that was 0.
17288as_fn_error ()
17289{
17290 as_status=$?; test $as_status -eq 0 && as_status=1
17291 if test "$3"; then
17292 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17293 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
42ecbf5e 17294 fi
81ecdfbb
RW
17295 $as_echo "$as_me: error: $1" >&2
17296 as_fn_exit $as_status
17297} # as_fn_error
17298
17299
17300# as_fn_set_status STATUS
17301# -----------------------
17302# Set $? to STATUS, without forking.
17303as_fn_set_status ()
17304{
17305 return $1
17306} # as_fn_set_status
17307
17308# as_fn_exit STATUS
17309# -----------------
17310# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17311as_fn_exit ()
17312{
17313 set +e
17314 as_fn_set_status $1
17315 exit $1
17316} # as_fn_exit
17317
17318# as_fn_unset VAR
17319# ---------------
17320# Portably unset VAR.
17321as_fn_unset ()
17322{
17323 { eval $1=; unset $1;}
17324}
17325as_unset=as_fn_unset
17326# as_fn_append VAR VALUE
17327# ----------------------
17328# Append the text in VALUE to the end of the definition contained in VAR. Take
17329# advantage of any shell optimizations that allow amortized linear growth over
17330# repeated appends, instead of the typical quadratic growth present in naive
17331# implementations.
17332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17333 eval 'as_fn_append ()
17334 {
17335 eval $1+=\$2
17336 }'
17337else
17338 as_fn_append ()
17339 {
17340 eval $1=\$$1\$2
17341 }
17342fi # as_fn_append
17343
17344# as_fn_arith ARG...
17345# ------------------
17346# Perform arithmetic evaluation on the ARGs, and store the result in the
17347# global $as_val. Take advantage of shells that can avoid forks. The arguments
17348# must be portable across $(()) and expr.
17349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17350 eval 'as_fn_arith ()
17351 {
17352 as_val=$(( $* ))
17353 }'
17354else
17355 as_fn_arith ()
17356 {
17357 as_val=`expr "$@" || test $? -eq 1`
17358 }
17359fi # as_fn_arith
17360
42ecbf5e 17361
81ecdfbb
RW
17362if expr a : '\(a\)' >/dev/null 2>&1 &&
17363 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42ecbf5e
DJ
17364 as_expr=expr
17365else
17366 as_expr=false
17367fi
17368
81ecdfbb 17369if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42ecbf5e
DJ
17370 as_basename=basename
17371else
17372 as_basename=false
17373fi
17374
81ecdfbb
RW
17375if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17376 as_dirname=dirname
17377else
17378 as_dirname=false
17379fi
42ecbf5e 17380
81ecdfbb 17381as_me=`$as_basename -- "$0" ||
42ecbf5e
DJ
17382$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17383 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
17384 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17385$as_echo X/"$0" |
17386 sed '/^.*\/\([^/][^/]*\)\/*$/{
17387 s//\1/
17388 q
17389 }
17390 /^X\/\(\/\/\)$/{
17391 s//\1/
17392 q
17393 }
17394 /^X\/\(\/\).*/{
17395 s//\1/
17396 q
17397 }
17398 s/.*/./; q'`
42ecbf5e 17399
42ecbf5e
DJ
17400# Avoid depending upon Character Ranges.
17401as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17402as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17403as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17404as_cr_digits='0123456789'
17405as_cr_alnum=$as_cr_Letters$as_cr_digits
17406
81ecdfbb
RW
17407ECHO_C= ECHO_N= ECHO_T=
17408case `echo -n x` in #(((((
17409-n*)
17410 case `echo 'xy\c'` in
17411 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17412 xy) ECHO_C='\c';;
17413 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17414 ECHO_T=' ';;
17415 esac;;
17416*)
17417 ECHO_N='-n';;
42ecbf5e 17418esac
252b5132 17419
81ecdfbb
RW
17420rm -f conf$$ conf$$.exe conf$$.file
17421if test -d conf$$.dir; then
17422 rm -f conf$$.dir/conf$$.file
42ecbf5e 17423else
81ecdfbb
RW
17424 rm -f conf$$.dir
17425 mkdir conf$$.dir 2>/dev/null
42ecbf5e 17426fi
81ecdfbb
RW
17427if (echo >conf$$.file) 2>/dev/null; then
17428 if ln -s conf$$.file conf$$ 2>/dev/null; then
42ecbf5e 17429 as_ln_s='ln -s'
81ecdfbb
RW
17430 # ... but there are two gotchas:
17431 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17432 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17433 # In both cases, we have to default to `cp -p'.
17434 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17435 as_ln_s='cp -p'
17436 elif ln conf$$.file conf$$ 2>/dev/null; then
17437 as_ln_s=ln
17438 else
17439 as_ln_s='cp -p'
252b5132 17440 fi
e5a52504 17441else
42ecbf5e 17442 as_ln_s='cp -p'
e5a52504 17443fi
81ecdfbb
RW
17444rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17445rmdir conf$$.dir 2>/dev/null
17446
17447
17448# as_fn_mkdir_p
17449# -------------
17450# Create "$as_dir" as a directory, including parents if necessary.
17451as_fn_mkdir_p ()
17452{
17453
17454 case $as_dir in #(
17455 -*) as_dir=./$as_dir;;
17456 esac
17457 test -d "$as_dir" || eval $as_mkdir_p || {
17458 as_dirs=
17459 while :; do
17460 case $as_dir in #(
17461 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17462 *) as_qdir=$as_dir;;
17463 esac
17464 as_dirs="'$as_qdir' $as_dirs"
17465 as_dir=`$as_dirname -- "$as_dir" ||
17466$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17467 X"$as_dir" : 'X\(//\)[^/]' \| \
17468 X"$as_dir" : 'X\(//\)$' \| \
17469 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17470$as_echo X"$as_dir" |
17471 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17472 s//\1/
17473 q
17474 }
17475 /^X\(\/\/\)[^/].*/{
17476 s//\1/
17477 q
17478 }
17479 /^X\(\/\/\)$/{
17480 s//\1/
17481 q
17482 }
17483 /^X\(\/\).*/{
17484 s//\1/
17485 q
17486 }
17487 s/.*/./; q'`
17488 test -d "$as_dir" && break
17489 done
17490 test -z "$as_dirs" || eval "mkdir $as_dirs"
17491 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17492
252b5132 17493
81ecdfbb 17494} # as_fn_mkdir_p
42ecbf5e 17495if mkdir -p . 2>/dev/null; then
81ecdfbb 17496 as_mkdir_p='mkdir -p "$as_dir"'
42ecbf5e
DJ
17497else
17498 test -d ./-p && rmdir ./-p
17499 as_mkdir_p=false
17500fi
252b5132 17501
81ecdfbb
RW
17502if test -x / >/dev/null 2>&1; then
17503 as_test_x='test -x'
17504else
17505 if ls -dL / >/dev/null 2>&1; then
17506 as_ls_L_option=L
17507 else
17508 as_ls_L_option=
17509 fi
17510 as_test_x='
17511 eval sh -c '\''
17512 if test -d "$1"; then
17513 test -d "$1/.";
17514 else
17515 case $1 in #(
17516 -*)set "./$1";;
17517 esac;
17518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17519 ???[sx]*):;;*)false;;esac;fi
17520 '\'' sh
17521 '
17522fi
17523as_executable_p=$as_test_x
252b5132 17524
42ecbf5e
DJ
17525# Sed expression to map a string onto a valid CPP name.
17526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
f234d5fe 17527
42ecbf5e
DJ
17528# Sed expression to map a string onto a valid variable name.
17529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
e5a52504 17530
e5a52504 17531
42ecbf5e 17532exec 6>&1
81ecdfbb
RW
17533## ----------------------------------- ##
17534## Main body of $CONFIG_STATUS script. ##
17535## ----------------------------------- ##
17536_ASEOF
17537test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
e5a52504 17538
81ecdfbb
RW
17539cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17540# Save the log message, to keep $0 and so on meaningful, and to
42ecbf5e 17541# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
17542# values after options handling.
17543ac_log="
42ecbf5e 17544This file was extended by $as_me, which was
81ecdfbb 17545generated by GNU Autoconf 2.64. Invocation command line was
42ecbf5e
DJ
17546
17547 CONFIG_FILES = $CONFIG_FILES
17548 CONFIG_HEADERS = $CONFIG_HEADERS
17549 CONFIG_LINKS = $CONFIG_LINKS
17550 CONFIG_COMMANDS = $CONFIG_COMMANDS
17551 $ $0 $@
e5a52504 17552
81ecdfbb
RW
17553on `(hostname || uname -n) 2>/dev/null | sed 1q`
17554"
17555
42ecbf5e
DJ
17556_ACEOF
17557
81ecdfbb
RW
17558case $ac_config_files in *"
17559"*) set x $ac_config_files; shift; ac_config_files=$*;;
17560esac
e5a52504 17561
81ecdfbb
RW
17562case $ac_config_headers in *"
17563"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17564esac
42ecbf5e 17565
42ecbf5e 17566
81ecdfbb
RW
17567cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17568# Files that config.status was made for.
17569config_files="$ac_config_files"
17570config_headers="$ac_config_headers"
17571config_commands="$ac_config_commands"
42ecbf5e 17572
81ecdfbb 17573_ACEOF
42ecbf5e 17574
81ecdfbb 17575cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e 17576ac_cs_usage="\
81ecdfbb
RW
17577\`$as_me' instantiates files and other configuration actions
17578from templates according to the current configuration. Unless the files
17579and actions are specified as TAGs, all are instantiated by default.
42ecbf5e 17580
81ecdfbb 17581Usage: $0 [OPTION]... [TAG]...
42ecbf5e
DJ
17582
17583 -h, --help print this help, then exit
81ecdfbb
RW
17584 -V, --version print version number and configuration settings, then exit
17585 -q, --quiet, --silent
17586 do not print progress messages
42ecbf5e
DJ
17587 -d, --debug don't remove temporary files
17588 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
17589 --file=FILE[:TEMPLATE]
17590 instantiate the configuration file FILE
17591 --header=FILE[:TEMPLATE]
17592 instantiate the configuration header FILE
42ecbf5e
DJ
17593
17594Configuration files:
17595$config_files
17596
17597Configuration headers:
17598$config_headers
17599
17600Configuration commands:
17601$config_commands
17602
81ecdfbb 17603Report bugs to the package provider."
42ecbf5e 17604
81ecdfbb
RW
17605_ACEOF
17606cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42ecbf5e
DJ
17607ac_cs_version="\\
17608config.status
81ecdfbb
RW
17609configured by $0, generated by GNU Autoconf 2.64,
17610 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
42ecbf5e 17611
81ecdfbb 17612Copyright (C) 2009 Free Software Foundation, Inc.
42ecbf5e
DJ
17613This config.status script is free software; the Free Software Foundation
17614gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
17615
17616ac_pwd='$ac_pwd'
17617srcdir='$srcdir'
17618INSTALL='$INSTALL'
17619MKDIR_P='$MKDIR_P'
17620AWK='$AWK'
17621test -n "\$AWK" || AWK=awk
42ecbf5e
DJ
17622_ACEOF
17623
81ecdfbb
RW
17624cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17625# The default lists apply if the user does not specify any file.
42ecbf5e
DJ
17626ac_need_defaults=:
17627while test $# != 0
17628do
17629 case $1 in
17630 --*=*)
81ecdfbb
RW
17631 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17632 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
42ecbf5e 17633 ac_shift=:
252b5132 17634 ;;
81ecdfbb 17635 *)
42ecbf5e
DJ
17636 ac_option=$1
17637 ac_optarg=$2
17638 ac_shift=shift
252b5132 17639 ;;
42ecbf5e 17640 esac
252b5132 17641
42ecbf5e
DJ
17642 case $ac_option in
17643 # Handling of the options.
42ecbf5e
DJ
17644 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17645 ac_cs_recheck=: ;;
81ecdfbb
RW
17646 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17647 $as_echo "$ac_cs_version"; exit ;;
17648 --debug | --debu | --deb | --de | --d | -d )
42ecbf5e
DJ
17649 debug=: ;;
17650 --file | --fil | --fi | --f )
17651 $ac_shift
81ecdfbb
RW
17652 case $ac_optarg in
17653 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17654 esac
17655 as_fn_append CONFIG_FILES " '$ac_optarg'"
42ecbf5e
DJ
17656 ac_need_defaults=false;;
17657 --header | --heade | --head | --hea )
17658 $ac_shift
81ecdfbb
RW
17659 case $ac_optarg in
17660 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17661 esac
17662 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
42ecbf5e 17663 ac_need_defaults=false;;
81ecdfbb
RW
17664 --he | --h)
17665 # Conflict between --help and --header
17666 as_fn_error "ambiguous option: \`$1'
17667Try \`$0 --help' for more information.";;
17668 --help | --hel | -h )
17669 $as_echo "$ac_cs_usage"; exit ;;
42ecbf5e
DJ
17670 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17671 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17672 ac_cs_silent=: ;;
252b5132 17673
42ecbf5e 17674 # This is an error.
81ecdfbb
RW
17675 -*) as_fn_error "unrecognized option: \`$1'
17676Try \`$0 --help' for more information." ;;
252b5132 17677
81ecdfbb
RW
17678 *) as_fn_append ac_config_targets " $1"
17679 ac_need_defaults=false ;;
252b5132 17680
42ecbf5e
DJ
17681 esac
17682 shift
17683done
d15b04bd 17684
42ecbf5e 17685ac_configure_extra_args=
e5a52504 17686
42ecbf5e
DJ
17687if $ac_cs_silent; then
17688 exec 6>/dev/null
17689 ac_configure_extra_args="$ac_configure_extra_args --silent"
17690fi
e5a52504 17691
42ecbf5e 17692_ACEOF
81ecdfbb 17693cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42ecbf5e 17694if \$ac_cs_recheck; then
81ecdfbb
RW
17695 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17696 shift
17697 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17698 CONFIG_SHELL='$SHELL'
17699 export CONFIG_SHELL
17700 exec "\$@"
42ecbf5e
DJ
17701fi
17702
17703_ACEOF
81ecdfbb
RW
17704cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17705exec 5>>config.log
17706{
17707 echo
17708 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17709## Running $as_me. ##
17710_ASBOX
17711 $as_echo "$ac_log"
17712} >&5
42ecbf5e 17713
81ecdfbb
RW
17714_ACEOF
17715cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
252b5132 17716#
81ecdfbb 17717# INIT-COMMANDS
252b5132 17718#
42ecbf5e 17719AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
17720
17721
17722# The HP-UX ksh and POSIX shell print the target directory to stdout
17723# if CDPATH is set.
17724(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17725
17726sed_quote_subst='$sed_quote_subst'
17727double_quote_subst='$double_quote_subst'
17728delay_variable_subst='$delay_variable_subst'
3725885a
RW
17729macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17730macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17731enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17732enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17733pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17734enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17735SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17736ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17737host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17738host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17739host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17740build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17741build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17742build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17743SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17744Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17745GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17746EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17747FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17748LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17749NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17750LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17751max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17752ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17753exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17754lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17755lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17756lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17757reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17758reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17759OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17760deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17761file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17762AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17763AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17764STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17765RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17766old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17767old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17768old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17769lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17770CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17771CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17772compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17773GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17774lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17775lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17776lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17777lt_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"`'
17778objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17779MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17780lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17781lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17782lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17783lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17784lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17785need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17786DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17787NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17788LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17789OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17790OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17791libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17792shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17793extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17794archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17795enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17796export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17797whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17798compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17799old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17800old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17801archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17802archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17803module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17804module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17805with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17806allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17807no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17808hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17809hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17810hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17811hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17812hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17813hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17814hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17815hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17816inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17817link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17818fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17819always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17820export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17821exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17822include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17823prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17824file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17825variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17826need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17827need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17828version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17829runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17830shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17831shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17832libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17833library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17834soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17835install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17836postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17837postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17838finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17839finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17840hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17841sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17842sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17843hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17844enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17845enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17846enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17847old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17848striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
3cb62297
L
17849compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17850predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17851postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17852predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17853postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17854compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17855LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17856reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17857reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17858old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17859compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17860GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17861lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17862lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17863lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17864lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17865lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17866archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17867enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17868export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17869whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17870compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17871old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17872old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17873archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17874archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17875module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17876module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17877with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17878allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17879no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17880hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17881hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17882hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17883hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17884hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17885hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17886hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17887hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17888inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17889link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17890fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
17891always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17892export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17893exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17894include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17895prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17896file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17897hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17898compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17899predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17900postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17901predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17902postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17903compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
d7040cdb
SE
17904
17905LTCC='$LTCC'
17906LTCFLAGS='$LTCFLAGS'
17907compiler='$compiler_DEFAULT'
17908
3725885a
RW
17909# A function that is used when there is no print builtin or printf.
17910func_fallback_echo ()
17911{
17912 eval 'cat <<_LTECHO_EOF
17913\$1
17914_LTECHO_EOF'
17915}
17916
d7040cdb 17917# Quote evaled strings.
3725885a
RW
17918for var in SHELL \
17919ECHO \
17920SED \
d7040cdb
SE
17921GREP \
17922EGREP \
17923FGREP \
17924LD \
17925NM \
17926LN_S \
17927lt_SP2NL \
17928lt_NL2SP \
17929reload_flag \
b214d478 17930OBJDUMP \
d7040cdb
SE
17931deplibs_check_method \
17932file_magic_cmd \
17933AR \
17934AR_FLAGS \
17935STRIP \
17936RANLIB \
17937CC \
17938CFLAGS \
17939compiler \
17940lt_cv_sys_global_symbol_pipe \
17941lt_cv_sys_global_symbol_to_cdecl \
17942lt_cv_sys_global_symbol_to_c_name_address \
b214d478 17943lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb
SE
17944lt_prog_compiler_no_builtin_flag \
17945lt_prog_compiler_wl \
17946lt_prog_compiler_pic \
17947lt_prog_compiler_static \
17948lt_cv_prog_compiler_c_o \
17949need_locks \
b214d478
SE
17950DSYMUTIL \
17951NMEDIT \
17952LIPO \
17953OTOOL \
17954OTOOL64 \
d7040cdb
SE
17955shrext_cmds \
17956export_dynamic_flag_spec \
17957whole_archive_flag_spec \
17958compiler_needs_object \
17959with_gnu_ld \
17960allow_undefined_flag \
17961no_undefined_flag \
17962hardcode_libdir_flag_spec \
17963hardcode_libdir_flag_spec_ld \
17964hardcode_libdir_separator \
17965fix_srcfile_path \
17966exclude_expsyms \
17967include_expsyms \
17968file_list_spec \
17969variables_saved_for_relink \
17970libname_spec \
17971library_names_spec \
17972soname_spec \
3725885a 17973install_override_mode \
d7040cdb
SE
17974finish_eval \
17975old_striplib \
3cb62297
L
17976striplib \
17977compiler_lib_search_dirs \
17978predep_objects \
17979postdep_objects \
17980predeps \
17981postdeps \
17982compiler_lib_search_path \
17983LD_CXX \
17984reload_flag_CXX \
17985compiler_CXX \
17986lt_prog_compiler_no_builtin_flag_CXX \
17987lt_prog_compiler_wl_CXX \
17988lt_prog_compiler_pic_CXX \
17989lt_prog_compiler_static_CXX \
17990lt_cv_prog_compiler_c_o_CXX \
17991export_dynamic_flag_spec_CXX \
17992whole_archive_flag_spec_CXX \
17993compiler_needs_object_CXX \
17994with_gnu_ld_CXX \
17995allow_undefined_flag_CXX \
17996no_undefined_flag_CXX \
17997hardcode_libdir_flag_spec_CXX \
17998hardcode_libdir_flag_spec_ld_CXX \
17999hardcode_libdir_separator_CXX \
18000fix_srcfile_path_CXX \
18001exclude_expsyms_CXX \
18002include_expsyms_CXX \
18003file_list_spec_CXX \
18004compiler_lib_search_dirs_CXX \
18005predep_objects_CXX \
18006postdep_objects_CXX \
18007predeps_CXX \
18008postdeps_CXX \
18009compiler_lib_search_path_CXX; do
3725885a 18010 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 18011 *[\\\\\\\`\\"\\\$]*)
3725885a 18012 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
d7040cdb
SE
18013 ;;
18014 *)
18015 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18016 ;;
18017 esac
18018done
18019
18020# Double-quote double-evaled strings.
18021for var in reload_cmds \
18022old_postinstall_cmds \
18023old_postuninstall_cmds \
18024old_archive_cmds \
18025extract_expsyms_cmds \
18026old_archive_from_new_cmds \
18027old_archive_from_expsyms_cmds \
18028archive_cmds \
18029archive_expsym_cmds \
18030module_cmds \
18031module_expsym_cmds \
18032export_symbols_cmds \
18033prelink_cmds \
18034postinstall_cmds \
18035postuninstall_cmds \
18036finish_cmds \
18037sys_lib_search_path_spec \
3cb62297
L
18038sys_lib_dlsearch_path_spec \
18039reload_cmds_CXX \
18040old_archive_cmds_CXX \
18041old_archive_from_new_cmds_CXX \
18042old_archive_from_expsyms_cmds_CXX \
18043archive_cmds_CXX \
18044archive_expsym_cmds_CXX \
18045module_cmds_CXX \
18046module_expsym_cmds_CXX \
18047export_symbols_cmds_CXX \
18048prelink_cmds_CXX; do
3725885a 18049 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 18050 *[\\\\\\\`\\"\\\$]*)
3725885a 18051 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
d7040cdb
SE
18052 ;;
18053 *)
18054 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18055 ;;
18056 esac
18057done
18058
d7040cdb
SE
18059ac_aux_dir='$ac_aux_dir'
18060xsi_shell='$xsi_shell'
18061lt_shell_append='$lt_shell_append'
18062
18063# See if we are running on zsh, and set the options which allow our
18064# commands through without removal of \ escapes INIT.
18065if test -n "\${ZSH_VERSION+set}" ; then
18066 setopt NO_GLOB_SUBST
18067fi
18068
18069
18070 PACKAGE='$PACKAGE'
18071 VERSION='$VERSION'
18072 TIMESTAMP='$TIMESTAMP'
18073 RM='$RM'
18074 ofile='$ofile'
18075
18076
18077
3cb62297
L
18078
18079
20e95c23
DJ
18080# Capture the value of obsolete ALL_LINGUAS because we need it to compute
18081 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
18082 # from automake.
18083 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
18084 # Capture the value of LINGUAS because we need it to compute CATALOGS.
18085 LINGUAS="${LINGUAS-%UNSET%}"
18086
42ecbf5e
DJ
18087
18088_ACEOF
18089
81ecdfbb 18090cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e 18091
81ecdfbb 18092# Handling of arguments.
42ecbf5e 18093for ac_config_target in $ac_config_targets
252b5132 18094do
81ecdfbb
RW
18095 case $ac_config_target in
18096 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18097 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
18098 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18099 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18100 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18101 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
18102
18103 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
252b5132
RH
18104 esac
18105done
18106
81ecdfbb 18107
42ecbf5e
DJ
18108# If the user did not use the arguments to specify the items to instantiate,
18109# then the envvar interface is used. Set only those that are not.
18110# We use the long form for the default assignment because of an extremely
18111# bizarre bug on SunOS 4.1.3.
18112if $ac_need_defaults; then
18113 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18114 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18115 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18116fi
18117
18118# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 18119# simply because there is no reason against having it here, and in addition,
42ecbf5e 18120# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
18121# Hook for its removal unless debugging.
18122# Note that there is a small window in which the directory will not be cleaned:
18123# after its creation but before its name has been assigned to `$tmp'.
42ecbf5e
DJ
18124$debug ||
18125{
81ecdfbb
RW
18126 tmp=
18127 trap 'exit_status=$?
18128 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18129' 0
18130 trap 'as_fn_exit 1' 1 2 13 15
42ecbf5e 18131}
42ecbf5e 18132# Create a (secure) tmp directory for tmp files.
e5a52504 18133
42ecbf5e 18134{
81ecdfbb 18135 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42ecbf5e
DJ
18136 test -n "$tmp" && test -d "$tmp"
18137} ||
18138{
81ecdfbb
RW
18139 tmp=./conf$$-$RANDOM
18140 (umask 077 && mkdir "$tmp")
18141} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18142
18143# Set up the scripts for CONFIG_FILES section.
18144# No need to generate them if there are no CONFIG_FILES.
18145# This happens for instance with `./config.status config.h'.
18146if test -n "$CONFIG_FILES"; then
18147
18148if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18149 ac_cs_awk_getline=:
18150 ac_cs_awk_pipe_init=
18151 ac_cs_awk_read_file='
18152 while ((getline aline < (F[key])) > 0)
18153 print(aline)
18154 close(F[key])'
18155 ac_cs_awk_pipe_fini=
18156else
18157 ac_cs_awk_getline=false
18158 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18159 ac_cs_awk_read_file='
18160 print "|#_!!_#|"
18161 print "cat " F[key] " &&"
18162 '$ac_cs_awk_pipe_init
18163 # The final `:' finishes the AND list.
18164 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18165fi
18166ac_cr=`echo X | tr X '\015'`
18167# On cygwin, bash can eat \r inside `` if the user requested igncr.
18168# But we know of no other shell where ac_cr would be empty at this
18169# point, so we can use a bashism as a fallback.
18170if test "x$ac_cr" = x; then
18171 eval ac_cr=\$\'\\r\'
18172fi
18173ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18174if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18175 ac_cs_awk_cr='\r'
18176else
18177 ac_cs_awk_cr=$ac_cr
18178fi
18179
18180echo 'BEGIN {' >"$tmp/subs1.awk" &&
18181_ACEOF
18182
18183# Create commands to substitute file output variables.
42ecbf5e 18184{
81ecdfbb
RW
18185 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18186 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
18187 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18188 echo "_ACAWK" &&
18189 echo "_ACEOF"
18190} >conf$$files.sh &&
18191. ./conf$$files.sh ||
18192 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18193rm -f conf$$files.sh
e5a52504 18194
81ecdfbb
RW
18195{
18196 echo "cat >conf$$subs.awk <<_ACEOF" &&
18197 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18198 echo "_ACEOF"
18199} >conf$$subs.sh ||
18200 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18201ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18202ac_delim='%!_!# '
18203for ac_last_try in false false false false false :; do
18204 . ./conf$$subs.sh ||
18205 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18206
18207 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18208 if test $ac_delim_n = $ac_delim_num; then
18209 break
18210 elif $ac_last_try; then
18211 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18212 else
18213 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18214 fi
18215done
18216rm -f conf$$subs.sh
18217
18218cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18219cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18220_ACEOF
18221sed -n '
18222h
18223s/^/S["/; s/!.*/"]=/
18224p
18225g
18226s/^[^!]*!//
18227:repl
18228t repl
18229s/'"$ac_delim"'$//
18230t delim
18231:nl
18232h
18233s/\(.\{148\}\).*/\1/
18234t more1
18235s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18236p
18237n
18238b repl
18239:more1
18240s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18241p
18242g
18243s/.\{148\}//
18244t nl
18245:delim
18246h
18247s/\(.\{148\}\).*/\1/
18248t more2
18249s/["\\]/\\&/g; s/^/"/; s/$/"/
18250p
18251b
18252:more2
18253s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18254p
18255g
18256s/.\{148\}//
18257t delim
18258' <conf$$subs.awk | sed '
18259/^[^""]/{
18260 N
18261 s/\n//
18262}
18263' >>$CONFIG_STATUS || ac_write_fail=1
18264rm -f conf$$subs.awk
18265cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18266_ACAWK
18267cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18268 for (key in S) S_is_set[key] = 1
18269 FS = "\a"
18270 \$ac_cs_awk_pipe_init
18271}
18272{
18273 line = $ 0
18274 nfields = split(line, field, "@")
18275 substed = 0
18276 len = length(field[1])
18277 for (i = 2; i < nfields; i++) {
18278 key = field[i]
18279 keylen = length(key)
18280 if (S_is_set[key]) {
18281 value = S[key]
18282 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18283 len += length(value) + length(field[++i])
18284 substed = 1
18285 } else
18286 len += 1 + keylen
18287 }
18288 if (nfields == 3 && !substed) {
18289 key = field[2]
18290 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18291 \$ac_cs_awk_read_file
18292 next
18293 }
18294 }
18295 print line
18296}
18297\$ac_cs_awk_pipe_fini
18298_ACAWK
18299_ACEOF
18300cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18301if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18302 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18303else
18304 cat
18305fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18306 || as_fn_error "could not setup config files machinery" "$LINENO" 5
42ecbf5e 18307_ACEOF
d15b04bd 18308
81ecdfbb
RW
18309# VPATH may cause trouble with some makes, so we remove $(srcdir),
18310# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18311# trailing colons and then remove the whole line if VPATH becomes empty
18312# (actually we leave an empty line to preserve line numbers).
18313if test "x$srcdir" = x.; then
18314 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18315s/:*\$(srcdir):*/:/
18316s/:*\${srcdir}:*/:/
18317s/:*@srcdir@:*/:/
18318s/^\([^=]*=[ ]*\):*/\1/
18319s/:*$//
18320s/^[^=]*=[ ]*$//
18321}'
18322fi
18323
18324cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18325fi # test -n "$CONFIG_FILES"
42ecbf5e 18326
81ecdfbb
RW
18327# Set up the scripts for CONFIG_HEADERS section.
18328# No need to generate them if there are no CONFIG_HEADERS.
18329# This happens for instance with `./config.status Makefile'.
18330if test -n "$CONFIG_HEADERS"; then
18331cat >"$tmp/defines.awk" <<\_ACAWK ||
18332BEGIN {
18333_ACEOF
42ecbf5e 18334
81ecdfbb
RW
18335# Transform confdefs.h into an awk script `defines.awk', embedded as
18336# here-document in config.status, that substitutes the proper values into
18337# config.h.in to produce config.h.
252b5132 18338
81ecdfbb
RW
18339# Create a delimiter string that does not exist in confdefs.h, to ease
18340# handling of long lines.
18341ac_delim='%!_!# '
18342for ac_last_try in false false :; do
18343 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18344 if test -z "$ac_t"; then
18345 break
18346 elif $ac_last_try; then
18347 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18348 else
18349 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18350 fi
18351done
18352
18353# For the awk script, D is an array of macro values keyed by name,
18354# likewise P contains macro parameters if any. Preserve backslash
18355# newline sequences.
18356
18357ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18358sed -n '
18359s/.\{148\}/&'"$ac_delim"'/g
18360t rset
18361:rset
18362s/^[ ]*#[ ]*define[ ][ ]*/ /
18363t def
18364d
18365:def
18366s/\\$//
18367t bsnl
18368s/["\\]/\\&/g
18369s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18370D["\1"]=" \3"/p
18371s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18372d
18373:bsnl
18374s/["\\]/\\&/g
18375s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18376D["\1"]=" \3\\\\\\n"\\/p
18377t cont
18378s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18379t cont
18380d
18381:cont
18382n
18383s/.\{148\}/&'"$ac_delim"'/g
18384t clear
18385:clear
18386s/\\$//
18387t bsnlc
18388s/["\\]/\\&/g; s/^/"/; s/$/"/p
18389d
18390:bsnlc
18391s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18392b cont
18393' <confdefs.h | sed '
18394s/'"$ac_delim"'/"\\\
18395"/g' >>$CONFIG_STATUS || ac_write_fail=1
18396
18397cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18398 for (key in D) D_is_set[key] = 1
18399 FS = "\a"
18400}
18401/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18402 line = \$ 0
18403 split(line, arg, " ")
18404 if (arg[1] == "#") {
18405 defundef = arg[2]
18406 mac1 = arg[3]
18407 } else {
18408 defundef = substr(arg[1], 2)
18409 mac1 = arg[2]
18410 }
18411 split(mac1, mac2, "(") #)
18412 macro = mac2[1]
18413 prefix = substr(line, 1, index(line, defundef) - 1)
18414 if (D_is_set[macro]) {
18415 # Preserve the white space surrounding the "#".
18416 print prefix "define", macro P[macro] D[macro]
18417 next
18418 } else {
18419 # Replace #undef with comments. This is necessary, for example,
18420 # in the case of _POSIX_SOURCE, which is predefined and required
18421 # on some systems where configure will not decide to define it.
18422 if (defundef == "undef") {
18423 print "/*", prefix defundef, macro, "*/"
18424 next
18425 }
18426 }
18427}
18428{ print }
18429_ACAWK
42ecbf5e 18430_ACEOF
81ecdfbb
RW
18431cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18432 as_fn_error "could not setup config headers machinery" "$LINENO" 5
18433fi # test -n "$CONFIG_HEADERS"
42ecbf5e 18434
81ecdfbb
RW
18435
18436eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18437shift
18438for ac_tag
18439do
18440 case $ac_tag in
18441 :[FHLC]) ac_mode=$ac_tag; continue;;
18442 esac
18443 case $ac_mode$ac_tag in
18444 :[FHL]*:*);;
18445 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18446 :[FH]-) ac_tag=-:-;;
18447 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18448 esac
18449 ac_save_IFS=$IFS
18450 IFS=:
18451 set x $ac_tag
18452 IFS=$ac_save_IFS
18453 shift
18454 ac_file=$1
18455 shift
18456
18457 case $ac_mode in
18458 :L) ac_source=$1;;
18459 :[FH])
18460 ac_file_inputs=
18461 for ac_f
18462 do
18463 case $ac_f in
18464 -) ac_f="$tmp/stdin";;
18465 *) # Look for the file first in the build tree, then in the source tree
18466 # (if the path is not absolute). The absolute path cannot be DOS-style,
18467 # because $ac_f cannot contain `:'.
18468 test -f "$ac_f" ||
18469 case $ac_f in
18470 [\\/$]*) false;;
18471 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18472 esac ||
18473 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18474 esac
18475 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18476 as_fn_append ac_file_inputs " '$ac_f'"
18477 done
18478
18479 # Let's still pretend it is `configure' which instantiates (i.e., don't
18480 # use $as_me), people would be surprised to read:
18481 # /* config.h. Generated by config.status. */
18482 configure_input='Generated from '`
18483 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18484 `' by configure.'
18485 if test x"$ac_file" != x-; then
18486 configure_input="$ac_file. $configure_input"
18487 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18488$as_echo "$as_me: creating $ac_file" >&6;}
252b5132 18489 fi
81ecdfbb
RW
18490 # Neutralize special characters interpreted by sed in replacement strings.
18491 case $configure_input in #(
18492 *\&* | *\|* | *\\* )
18493 ac_sed_conf_input=`$as_echo "$configure_input" |
18494 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18495 *) ac_sed_conf_input=$configure_input;;
18496 esac
252b5132 18497
81ecdfbb
RW
18498 case $ac_tag in
18499 *:-:* | *:-) cat >"$tmp/stdin" \
18500 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18501 esac
18502 ;;
252b5132
RH
18503 esac
18504
81ecdfbb 18505 ac_dir=`$as_dirname -- "$ac_file" ||
42ecbf5e
DJ
18506$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18507 X"$ac_file" : 'X\(//\)[^/]' \| \
18508 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
18509 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18510$as_echo X"$ac_file" |
18511 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18512 s//\1/
18513 q
18514 }
18515 /^X\(\/\/\)[^/].*/{
18516 s//\1/
18517 q
18518 }
18519 /^X\(\/\/\)$/{
18520 s//\1/
18521 q
18522 }
18523 /^X\(\/\).*/{
18524 s//\1/
18525 q
18526 }
18527 s/.*/./; q'`
18528 as_dir="$ac_dir"; as_fn_mkdir_p
42ecbf5e
DJ
18529 ac_builddir=.
18530
81ecdfbb
RW
18531case "$ac_dir" in
18532.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18533*)
18534 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18535 # A ".." for each directory in $ac_dir_suffix.
18536 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18537 case $ac_top_builddir_sub in
18538 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18539 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18540 esac ;;
18541esac
18542ac_abs_top_builddir=$ac_pwd
18543ac_abs_builddir=$ac_pwd$ac_dir_suffix
18544# for backward compatibility:
18545ac_top_builddir=$ac_top_build_prefix
252b5132 18546
42ecbf5e 18547case $srcdir in
81ecdfbb 18548 .) # We are building in place.
42ecbf5e 18549 ac_srcdir=.
81ecdfbb
RW
18550 ac_top_srcdir=$ac_top_builddir_sub
18551 ac_abs_top_srcdir=$ac_pwd ;;
18552 [\\/]* | ?:[\\/]* ) # Absolute name.
42ecbf5e 18553 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
18554 ac_top_srcdir=$srcdir
18555 ac_abs_top_srcdir=$srcdir ;;
18556 *) # Relative name.
18557 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18558 ac_top_srcdir=$ac_top_build_prefix$srcdir
18559 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42ecbf5e 18560esac
81ecdfbb 18561ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
42ecbf5e 18562
252b5132 18563
81ecdfbb
RW
18564 case $ac_mode in
18565 :F)
18566 #
18567 # CONFIG_FILE
18568 #
e5a52504 18569
42ecbf5e
DJ
18570 case $INSTALL in
18571 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb
RW
18572 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18573 esac
18574 ac_MKDIR_P=$MKDIR_P
18575 case $MKDIR_P in
18576 [\\/$]* | ?:[\\/]* ) ;;
18577 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
d15b04bd 18578 esac
81ecdfbb 18579_ACEOF
e5a52504 18580
81ecdfbb
RW
18581cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18582# If the template does not know about datarootdir, expand it.
18583# FIXME: This hack should be removed a few years after 2.60.
18584ac_datarootdir_hack=; ac_datarootdir_seen=
18585ac_sed_dataroot='
18586/datarootdir/ {
18587 p
18588 q
18589}
18590/@datadir@/p
18591/@docdir@/p
18592/@infodir@/p
18593/@localedir@/p
18594/@mandir@/p'
18595case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18596*datarootdir*) ac_datarootdir_seen=yes;;
18597*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18599$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18600_ACEOF
18601cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18602 ac_datarootdir_hack='
18603 s&@datadir@&$datadir&g
18604 s&@docdir@&$docdir&g
18605 s&@infodir@&$infodir&g
18606 s&@localedir@&$localedir&g
18607 s&@mandir@&$mandir&g
18608 s&\\\${datarootdir}&$datarootdir&g' ;;
18609esac
42ecbf5e 18610_ACEOF
81ecdfbb
RW
18611
18612# Neutralize VPATH when `$srcdir' = `.'.
18613# Shell code in configure.ac might set extrasub.
18614# FIXME: do we really want to maintain this feature?
18615cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18616ac_sed_extra="$ac_vpsub
42ecbf5e
DJ
18617$extrasub
18618_ACEOF
81ecdfbb 18619cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e
DJ
18620:t
18621/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
18622s|@configure_input@|$ac_sed_conf_input|;t t
18623s&@top_builddir@&$ac_top_builddir_sub&;t t
18624s&@top_build_prefix@&$ac_top_build_prefix&;t t
18625s&@srcdir@&$ac_srcdir&;t t
18626s&@abs_srcdir@&$ac_abs_srcdir&;t t
18627s&@top_srcdir@&$ac_top_srcdir&;t t
18628s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18629s&@builddir@&$ac_builddir&;t t
18630s&@abs_builddir@&$ac_abs_builddir&;t t
18631s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18632s&@INSTALL@&$ac_INSTALL&;t t
18633s&@MKDIR_P@&$ac_MKDIR_P&;t t
18634$ac_datarootdir_hack
18635"
18636eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18637if $ac_cs_awk_getline; then
18638 $AWK -f "$tmp/subs.awk"
18639else
18640 $AWK -f "$tmp/subs.awk" | $SHELL
18641fi >$tmp/out \
18642 || as_fn_error "could not create $ac_file" "$LINENO" 5
18643
18644test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18645 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18646 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18648which seems to be undefined. Please make sure it is defined." >&5
18649$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18650which seems to be undefined. Please make sure it is defined." >&2;}
18651
18652 rm -f "$tmp/stdin"
42ecbf5e 18653 case $ac_file in
81ecdfbb
RW
18654 -) cat "$tmp/out" && rm -f "$tmp/out";;
18655 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18656 esac \
18657 || as_fn_error "could not create $ac_file" "$LINENO" 5
18658 ;;
18659 :H)
18660 #
18661 # CONFIG_HEADER
18662 #
42ecbf5e 18663 if test x"$ac_file" != x-; then
81ecdfbb
RW
18664 {
18665 $as_echo "/* $configure_input */" \
18666 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18667 } >"$tmp/config.h" \
18668 || as_fn_error "could not create $ac_file" "$LINENO" 5
18669 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18670 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18671$as_echo "$as_me: $ac_file is unchanged" >&6;}
42ecbf5e 18672 else
81ecdfbb
RW
18673 rm -f "$ac_file"
18674 mv "$tmp/config.h" "$ac_file" \
18675 || as_fn_error "could not create $ac_file" "$LINENO" 5
252b5132 18676 fi
42ecbf5e 18677 else
81ecdfbb
RW
18678 $as_echo "/* $configure_input */" \
18679 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18680 || as_fn_error "could not create -" "$LINENO" 5
e5a52504 18681 fi
81ecdfbb
RW
18682# Compute "$ac_file"'s index in $config_headers.
18683_am_arg="$ac_file"
42ecbf5e
DJ
18684_am_stamp_count=1
18685for _am_header in $config_headers :; do
18686 case $_am_header in
81ecdfbb 18687 $_am_arg | $_am_arg:* )
42ecbf5e
DJ
18688 break ;;
18689 * )
18690 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18691 esac
18692done
81ecdfbb
RW
18693echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18694$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18695 X"$_am_arg" : 'X\(//\)[^/]' \| \
18696 X"$_am_arg" : 'X\(//\)$' \| \
18697 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18698$as_echo X"$_am_arg" |
18699 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18700 s//\1/
18701 q
18702 }
18703 /^X\(\/\/\)[^/].*/{
18704 s//\1/
18705 q
18706 }
18707 /^X\(\/\/\)$/{
18708 s//\1/
18709 q
18710 }
18711 /^X\(\/\).*/{
18712 s//\1/
18713 q
18714 }
18715 s/.*/./; q'`/stamp-h$_am_stamp_count
18716 ;;
42ecbf5e 18717
81ecdfbb
RW
18718 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18719$as_echo "$as_me: executing $ac_file commands" >&6;}
18720 ;;
18721 esac
42ecbf5e
DJ
18722
18723
81ecdfbb
RW
18724 case $ac_file$ac_mode in
18725 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18726 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18727 # are listed without --file. Let's play safe and only enable the eval
18728 # if we detect the quoting.
18729 case $CONFIG_FILES in
18730 *\'*) eval set x "$CONFIG_FILES" ;;
18731 *) set x $CONFIG_FILES ;;
18732 esac
18733 shift
18734 for mf
18735 do
18736 # Strip MF so we end up with the name of the file.
18737 mf=`echo "$mf" | sed -e 's/:.*$//'`
18738 # Check whether this is an Automake generated Makefile or not.
18739 # We used to match only the files named `Makefile.in', but
18740 # some people rename them; so instead we look at the file content.
18741 # Grep'ing the first line is not enough: some people post-process
18742 # each Makefile.in and add a new line on top of each file to say so.
18743 # Grep'ing the whole file is not good either: AIX grep has a line
18744 # limit of 2048, but all sed's we know have understand at least 4000.
18745 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18746 dirpart=`$as_dirname -- "$mf" ||
42ecbf5e
DJ
18747$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18748 X"$mf" : 'X\(//\)[^/]' \| \
18749 X"$mf" : 'X\(//\)$' \| \
81ecdfbb
RW
18750 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18751$as_echo X"$mf" |
18752 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18753 s//\1/
18754 q
18755 }
18756 /^X\(\/\/\)[^/].*/{
18757 s//\1/
18758 q
18759 }
18760 /^X\(\/\/\)$/{
18761 s//\1/
18762 q
18763 }
18764 /^X\(\/\).*/{
18765 s//\1/
18766 q
18767 }
18768 s/.*/./; q'`
18769 else
18770 continue
18771 fi
18772 # Extract the definition of DEPDIR, am__include, and am__quote
18773 # from the Makefile without running `make'.
18774 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18775 test -z "$DEPDIR" && continue
18776 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18777 test -z "am__include" && continue
18778 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18779 # When using ansi2knr, U may be empty or an underscore; expand it
18780 U=`sed -n 's/^U = //p' < "$mf"`
18781 # Find all dependency output files, they are included files with
18782 # $(DEPDIR) in their names. We invoke sed twice because it is the
18783 # simplest approach to changing $(DEPDIR) to its actual value in the
18784 # expansion.
18785 for file in `sed -n "
18786 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18787 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18788 # Make sure the directory exists.
18789 test -f "$dirpart/$file" && continue
18790 fdir=`$as_dirname -- "$file" ||
42ecbf5e
DJ
18791$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18792 X"$file" : 'X\(//\)[^/]' \| \
18793 X"$file" : 'X\(//\)$' \| \
81ecdfbb
RW
18794 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18795$as_echo X"$file" |
18796 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18797 s//\1/
18798 q
18799 }
18800 /^X\(\/\/\)[^/].*/{
18801 s//\1/
18802 q
18803 }
18804 /^X\(\/\/\)$/{
18805 s//\1/
18806 q
18807 }
18808 /^X\(\/\).*/{
18809 s//\1/
18810 q
18811 }
18812 s/.*/./; q'`
18813 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18814 # echo "creating $dirpart/$file"
18815 echo '# dummy' > "$dirpart/$file"
42ecbf5e 18816 done
42ecbf5e 18817 done
81ecdfbb 18818}
d7040cdb 18819 ;;
81ecdfbb 18820 "libtool":C)
d7040cdb
SE
18821
18822 # See if we are running on zsh, and set the options which allow our
18823 # commands through without removal of \ escapes.
18824 if test -n "${ZSH_VERSION+set}" ; then
18825 setopt NO_GLOB_SUBST
18826 fi
18827
18828 cfgfile="${ofile}T"
18829 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18830 $RM "$cfgfile"
18831
18832 cat <<_LT_EOF >> "$cfgfile"
18833#! $SHELL
18834
18835# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
b214d478 18836# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
18837# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18838# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18839#
b214d478 18840# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
3725885a 18841# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
b214d478 18842# Written by Gordon Matzigkeit, 1996
d7040cdb 18843#
b214d478 18844# This file is part of GNU Libtool.
d7040cdb 18845#
b214d478
SE
18846# GNU Libtool is free software; you can redistribute it and/or
18847# modify it under the terms of the GNU General Public License as
18848# published by the Free Software Foundation; either version 2 of
18849# the License, or (at your option) any later version.
d7040cdb 18850#
b214d478
SE
18851# As a special exception to the GNU General Public License,
18852# if you distribute this file as part of a program or library that
18853# is built using GNU Libtool, you may include this file under the
18854# same distribution terms that you use for the rest of that program.
d7040cdb 18855#
b214d478
SE
18856# GNU Libtool is distributed in the hope that it will be useful,
18857# but WITHOUT ANY WARRANTY; without even the implied warranty of
18858# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18859# GNU General Public License for more details.
d7040cdb 18860#
b214d478
SE
18861# You should have received a copy of the GNU General Public License
18862# along with GNU Libtool; see the file COPYING. If not, a copy
18863# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18864# obtained by writing to the Free Software Foundation, Inc.,
18865# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
18866
18867
18868# The names of the tagged configurations supported by this script.
3cb62297 18869available_tags="CXX "
d7040cdb
SE
18870
18871# ### BEGIN LIBTOOL CONFIG
18872
18873# Which release of libtool.m4 was used?
18874macro_version=$macro_version
18875macro_revision=$macro_revision
18876
18877# Whether or not to build shared libraries.
18878build_libtool_libs=$enable_shared
18879
18880# Whether or not to build static libraries.
18881build_old_libs=$enable_static
18882
18883# What type of objects to build.
18884pic_mode=$pic_mode
18885
18886# Whether or not to optimize for fast installation.
18887fast_install=$enable_fast_install
18888
3725885a
RW
18889# Shell to use when invoking shell scripts.
18890SHELL=$lt_SHELL
18891
18892# An echo program that protects backslashes.
18893ECHO=$lt_ECHO
18894
d7040cdb
SE
18895# The host system.
18896host_alias=$host_alias
18897host=$host
18898host_os=$host_os
18899
18900# The build system.
18901build_alias=$build_alias
18902build=$build
18903build_os=$build_os
18904
18905# A sed program that does not truncate output.
18906SED=$lt_SED
18907
18908# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18909Xsed="\$SED -e 1s/^X//"
18910
18911# A grep program that handles long lines.
18912GREP=$lt_GREP
18913
18914# An ERE matcher.
18915EGREP=$lt_EGREP
18916
18917# A literal string matcher.
18918FGREP=$lt_FGREP
18919
18920# A BSD- or MS-compatible name lister.
18921NM=$lt_NM
18922
18923# Whether we need soft or hard links.
18924LN_S=$lt_LN_S
18925
18926# What is the maximum length of a command?
18927max_cmd_len=$max_cmd_len
18928
18929# Object file suffix (normally "o").
18930objext=$ac_objext
18931
18932# Executable file suffix (normally "").
18933exeext=$exeext
18934
18935# whether the shell understands "unset".
18936lt_unset=$lt_unset
18937
18938# turn spaces into newlines.
18939SP2NL=$lt_lt_SP2NL
18940
18941# turn newlines into spaces.
18942NL2SP=$lt_lt_NL2SP
18943
b214d478
SE
18944# An object symbol dumper.
18945OBJDUMP=$lt_OBJDUMP
18946
d7040cdb
SE
18947# Method to check whether dependent libraries are shared objects.
18948deplibs_check_method=$lt_deplibs_check_method
18949
18950# Command to use when deplibs_check_method == "file_magic".
18951file_magic_cmd=$lt_file_magic_cmd
18952
18953# The archiver.
18954AR=$lt_AR
18955AR_FLAGS=$lt_AR_FLAGS
18956
18957# A symbol stripping program.
18958STRIP=$lt_STRIP
18959
18960# Commands used to install an old-style archive.
18961RANLIB=$lt_RANLIB
18962old_postinstall_cmds=$lt_old_postinstall_cmds
18963old_postuninstall_cmds=$lt_old_postuninstall_cmds
18964
3725885a
RW
18965# Whether to use a lock for old archive extraction.
18966lock_old_archive_extraction=$lock_old_archive_extraction
18967
d7040cdb
SE
18968# A C compiler.
18969LTCC=$lt_CC
18970
18971# LTCC compiler flags.
18972LTCFLAGS=$lt_CFLAGS
18973
18974# Take the output of nm and produce a listing of raw symbols and C names.
18975global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18976
18977# Transform the output of nm in a proper C declaration.
18978global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18979
18980# Transform the output of nm in a C name address pair.
18981global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18982
b214d478
SE
18983# Transform the output of nm in a C name address pair when lib prefix is needed.
18984global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18985
d7040cdb
SE
18986# The name of the directory that contains temporary libtool files.
18987objdir=$objdir
18988
d7040cdb
SE
18989# Used to examine libraries when file_magic_cmd begins with "file".
18990MAGIC_CMD=$MAGIC_CMD
18991
18992# Must we lock files when doing compilation?
18993need_locks=$lt_need_locks
18994
b214d478
SE
18995# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18996DSYMUTIL=$lt_DSYMUTIL
18997
18998# Tool to change global to local symbols on Mac OS X.
18999NMEDIT=$lt_NMEDIT
19000
19001# Tool to manipulate fat objects and archives on Mac OS X.
19002LIPO=$lt_LIPO
19003
19004# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19005OTOOL=$lt_OTOOL
19006
19007# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19008OTOOL64=$lt_OTOOL64
19009
d7040cdb
SE
19010# Old archive suffix (normally "a").
19011libext=$libext
19012
19013# Shared library suffix (normally ".so").
19014shrext_cmds=$lt_shrext_cmds
19015
19016# The commands to extract the exported symbol list from a shared archive.
19017extract_expsyms_cmds=$lt_extract_expsyms_cmds
19018
19019# Variables whose values should be saved in libtool wrapper scripts and
19020# restored at link time.
19021variables_saved_for_relink=$lt_variables_saved_for_relink
19022
19023# Do we need the "lib" prefix for modules?
19024need_lib_prefix=$need_lib_prefix
19025
19026# Do we need a version for libraries?
19027need_version=$need_version
19028
19029# Library versioning type.
19030version_type=$version_type
19031
19032# Shared library runtime path variable.
19033runpath_var=$runpath_var
19034
19035# Shared library path variable.
19036shlibpath_var=$shlibpath_var
19037
19038# Is shlibpath searched before the hard-coded library search path?
19039shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19040
19041# Format of library name prefix.
19042libname_spec=$lt_libname_spec
19043
19044# List of archive names. First name is the real one, the rest are links.
19045# The last name is the one that the linker finds with -lNAME
19046library_names_spec=$lt_library_names_spec
19047
19048# The coded name of the library, if different from the real name.
19049soname_spec=$lt_soname_spec
19050
3725885a
RW
19051# Permission mode override for installation of shared libraries.
19052install_override_mode=$lt_install_override_mode
19053
d7040cdb
SE
19054# Command to use after installation of a shared archive.
19055postinstall_cmds=$lt_postinstall_cmds
19056
19057# Command to use after uninstallation of a shared archive.
19058postuninstall_cmds=$lt_postuninstall_cmds
19059
19060# Commands used to finish a libtool library installation in a directory.
19061finish_cmds=$lt_finish_cmds
19062
19063# As "finish_cmds", except a single script fragment to be evaled but
19064# not shown.
19065finish_eval=$lt_finish_eval
19066
19067# Whether we should hardcode library paths into libraries.
19068hardcode_into_libs=$hardcode_into_libs
19069
19070# Compile-time system search path for libraries.
19071sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19072
19073# Run-time system search path for libraries.
19074sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19075
19076# Whether dlopen is supported.
19077dlopen_support=$enable_dlopen
19078
19079# Whether dlopen of programs is supported.
19080dlopen_self=$enable_dlopen_self
19081
19082# Whether dlopen of statically linked programs is supported.
19083dlopen_self_static=$enable_dlopen_self_static
19084
19085# Commands to strip libraries.
19086old_striplib=$lt_old_striplib
19087striplib=$lt_striplib
19088
19089
19090# The linker used to build libraries.
19091LD=$lt_LD
19092
3725885a
RW
19093# How to create reloadable object files.
19094reload_flag=$lt_reload_flag
19095reload_cmds=$lt_reload_cmds
19096
d7040cdb
SE
19097# Commands used to build an old-style archive.
19098old_archive_cmds=$lt_old_archive_cmds
19099
19100# A language specific compiler.
19101CC=$lt_compiler
19102
19103# Is the compiler the GNU compiler?
19104with_gcc=$GCC
19105
19106# Compiler flag to turn off builtin functions.
19107no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19108
19109# How to pass a linker flag through the compiler.
19110wl=$lt_lt_prog_compiler_wl
19111
19112# Additional compiler flags for building library objects.
19113pic_flag=$lt_lt_prog_compiler_pic
19114
19115# Compiler flag to prevent dynamic linking.
19116link_static_flag=$lt_lt_prog_compiler_static
19117
19118# Does compiler simultaneously support -c and -o options?
19119compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19120
19121# Whether or not to add -lc for building shared libraries.
19122build_libtool_need_lc=$archive_cmds_need_lc
19123
19124# Whether or not to disallow shared libs when runtime libs are static.
19125allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19126
19127# Compiler flag to allow reflexive dlopens.
19128export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19129
19130# Compiler flag to generate shared objects directly from archives.
19131whole_archive_flag_spec=$lt_whole_archive_flag_spec
19132
19133# Whether the compiler copes with passing no objects directly.
19134compiler_needs_object=$lt_compiler_needs_object
19135
19136# Create an old-style archive from a shared archive.
19137old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19138
19139# Create a temporary old-style archive to link instead of a shared archive.
19140old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19141
19142# Commands used to build a shared archive.
19143archive_cmds=$lt_archive_cmds
19144archive_expsym_cmds=$lt_archive_expsym_cmds
19145
19146# Commands used to build a loadable module if different from building
19147# a shared archive.
19148module_cmds=$lt_module_cmds
19149module_expsym_cmds=$lt_module_expsym_cmds
19150
19151# Whether we are building with GNU ld or not.
19152with_gnu_ld=$lt_with_gnu_ld
19153
19154# Flag that allows shared libraries with undefined symbols to be built.
19155allow_undefined_flag=$lt_allow_undefined_flag
19156
19157# Flag that enforces no undefined symbols.
19158no_undefined_flag=$lt_no_undefined_flag
19159
19160# Flag to hardcode \$libdir into a binary during linking.
19161# This must work even if \$libdir does not exist
19162hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19163
19164# If ld is used when linking, flag to hardcode \$libdir into a binary
19165# during linking. This must work even if \$libdir does not exist.
19166hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19167
19168# Whether we need a single "-rpath" flag with a separated argument.
19169hardcode_libdir_separator=$lt_hardcode_libdir_separator
19170
19171# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19172# DIR into the resulting binary.
19173hardcode_direct=$hardcode_direct
19174
19175# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19176# DIR into the resulting binary and the resulting library dependency is
19177# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19178# library is relocated.
19179hardcode_direct_absolute=$hardcode_direct_absolute
19180
19181# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19182# into the resulting binary.
19183hardcode_minus_L=$hardcode_minus_L
19184
19185# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19186# into the resulting binary.
19187hardcode_shlibpath_var=$hardcode_shlibpath_var
19188
19189# Set to "yes" if building a shared library automatically hardcodes DIR
19190# into the library and all subsequent libraries and executables linked
19191# against it.
19192hardcode_automatic=$hardcode_automatic
19193
19194# Set to yes if linker adds runtime paths of dependent libraries
19195# to runtime path list.
19196inherit_rpath=$inherit_rpath
19197
19198# Whether libtool must link a program against all its dependency libraries.
19199link_all_deplibs=$link_all_deplibs
19200
19201# Fix the shell variable \$srcfile for the compiler.
19202fix_srcfile_path=$lt_fix_srcfile_path
19203
19204# Set to "yes" if exported symbols are required.
19205always_export_symbols=$always_export_symbols
19206
19207# The commands to list exported symbols.
19208export_symbols_cmds=$lt_export_symbols_cmds
19209
19210# Symbols that should not be listed in the preloaded symbols.
19211exclude_expsyms=$lt_exclude_expsyms
19212
19213# Symbols that must always be exported.
19214include_expsyms=$lt_include_expsyms
19215
19216# Commands necessary for linking programs (against libraries) with templates.
19217prelink_cmds=$lt_prelink_cmds
19218
19219# Specify filename containing input files.
19220file_list_spec=$lt_file_list_spec
19221
19222# How to hardcode a shared library path into an executable.
19223hardcode_action=$hardcode_action
19224
3cb62297
L
19225# The directories searched by this compiler when creating a shared library.
19226compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19227
19228# Dependencies to place before and after the objects being linked to
19229# create a shared library.
19230predep_objects=$lt_predep_objects
19231postdep_objects=$lt_postdep_objects
19232predeps=$lt_predeps
19233postdeps=$lt_postdeps
19234
19235# The library search path used internally by the compiler when linking
19236# a shared library.
19237compiler_lib_search_path=$lt_compiler_lib_search_path
19238
d7040cdb
SE
19239# ### END LIBTOOL CONFIG
19240
19241_LT_EOF
19242
19243 case $host_os in
19244 aix3*)
19245 cat <<\_LT_EOF >> "$cfgfile"
19246# AIX sometimes has problems with the GCC collect2 program. For some
19247# reason, if we set the COLLECT_NAMES environment variable, the problems
19248# vanish in a puff of smoke.
19249if test "X${COLLECT_NAMES+set}" != Xset; then
19250 COLLECT_NAMES=
19251 export COLLECT_NAMES
19252fi
19253_LT_EOF
19254 ;;
19255 esac
19256
19257
19258ltmain="$ac_aux_dir/ltmain.sh"
19259
19260
19261 # We use sed instead of cat because bash on DJGPP gets confused if
19262 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19263 # text mode, it properly converts lines to CR/LF. This bash problem
19264 # is reportedly fixed, but why not run on old versions too?
19265 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19266 || (rm -f "$cfgfile"; exit 1)
19267
19268 case $xsi_shell in
19269 yes)
19270 cat << \_LT_EOF >> "$cfgfile"
b214d478 19271
d7040cdb
SE
19272# func_dirname file append nondir_replacement
19273# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19274# otherwise set result to NONDIR_REPLACEMENT.
19275func_dirname ()
19276{
19277 case ${1} in
19278 */*) func_dirname_result="${1%/*}${2}" ;;
19279 * ) func_dirname_result="${3}" ;;
19280 esac
19281}
19282
19283# func_basename file
19284func_basename ()
19285{
19286 func_basename_result="${1##*/}"
19287}
19288
b214d478
SE
19289# func_dirname_and_basename file append nondir_replacement
19290# perform func_basename and func_dirname in a single function
19291# call:
19292# dirname: Compute the dirname of FILE. If nonempty,
19293# add APPEND to the result, otherwise set result
19294# to NONDIR_REPLACEMENT.
19295# value returned in "$func_dirname_result"
19296# basename: Compute filename of FILE.
19297# value retuned in "$func_basename_result"
19298# Implementation must be kept synchronized with func_dirname
19299# and func_basename. For efficiency, we do not delegate to
19300# those functions but instead duplicate the functionality here.
19301func_dirname_and_basename ()
19302{
19303 case ${1} in
19304 */*) func_dirname_result="${1%/*}${2}" ;;
19305 * ) func_dirname_result="${3}" ;;
19306 esac
19307 func_basename_result="${1##*/}"
19308}
19309
d7040cdb
SE
19310# func_stripname prefix suffix name
19311# strip PREFIX and SUFFIX off of NAME.
19312# PREFIX and SUFFIX must not contain globbing or regex special
19313# characters, hashes, percent signs, but SUFFIX may contain a leading
19314# dot (in which case that matches only a dot).
19315func_stripname ()
19316{
19317 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19318 # positional parameters, so assign one to ordinary parameter first.
19319 func_stripname_result=${3}
19320 func_stripname_result=${func_stripname_result#"${1}"}
19321 func_stripname_result=${func_stripname_result%"${2}"}
19322}
19323
19324# func_opt_split
19325func_opt_split ()
19326{
19327 func_opt_split_opt=${1%%=*}
19328 func_opt_split_arg=${1#*=}
19329}
19330
19331# func_lo2o object
19332func_lo2o ()
19333{
19334 case ${1} in
19335 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19336 *) func_lo2o_result=${1} ;;
19337 esac
19338}
b214d478
SE
19339
19340# func_xform libobj-or-source
19341func_xform ()
19342{
19343 func_xform_result=${1%.*}.lo
19344}
19345
19346# func_arith arithmetic-term...
19347func_arith ()
19348{
19349 func_arith_result=$(( $* ))
19350}
19351
19352# func_len string
19353# STRING may not start with a hyphen.
19354func_len ()
19355{
19356 func_len_result=${#1}
19357}
19358
d7040cdb
SE
19359_LT_EOF
19360 ;;
19361 *) # Bourne compatible functions.
19362 cat << \_LT_EOF >> "$cfgfile"
b214d478 19363
d7040cdb
SE
19364# func_dirname file append nondir_replacement
19365# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19366# otherwise set result to NONDIR_REPLACEMENT.
19367func_dirname ()
19368{
19369 # Extract subdirectory from the argument.
3725885a 19370 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
d7040cdb
SE
19371 if test "X$func_dirname_result" = "X${1}"; then
19372 func_dirname_result="${3}"
19373 else
19374 func_dirname_result="$func_dirname_result${2}"
19375 fi
19376}
19377
19378# func_basename file
19379func_basename ()
19380{
3725885a 19381 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
d7040cdb
SE
19382}
19383
b214d478 19384
d7040cdb
SE
19385# func_stripname prefix suffix name
19386# strip PREFIX and SUFFIX off of NAME.
19387# PREFIX and SUFFIX must not contain globbing or regex special
19388# characters, hashes, percent signs, but SUFFIX may contain a leading
19389# dot (in which case that matches only a dot).
19390# func_strip_suffix prefix name
19391func_stripname ()
19392{
19393 case ${2} in
3725885a
RW
19394 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19395 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
d7040cdb
SE
19396 esac
19397}
19398
19399# sed scripts:
19400my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19401my_sed_long_arg='1s/^-[^=]*=//'
19402
19403# func_opt_split
19404func_opt_split ()
19405{
3725885a
RW
19406 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19407 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
d7040cdb
SE
19408}
19409
19410# func_lo2o object
19411func_lo2o ()
19412{
3725885a 19413 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
d7040cdb 19414}
b214d478
SE
19415
19416# func_xform libobj-or-source
19417func_xform ()
19418{
3725885a 19419 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
b214d478
SE
19420}
19421
19422# func_arith arithmetic-term...
19423func_arith ()
19424{
19425 func_arith_result=`expr "$@"`
19426}
19427
19428# func_len string
19429# STRING may not start with a hyphen.
19430func_len ()
19431{
19432 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19433}
19434
d7040cdb
SE
19435_LT_EOF
19436esac
19437
19438case $lt_shell_append in
19439 yes)
19440 cat << \_LT_EOF >> "$cfgfile"
19441
19442# func_append var value
19443# Append VALUE to the end of shell variable VAR.
19444func_append ()
19445{
19446 eval "$1+=\$2"
19447}
19448_LT_EOF
19449 ;;
19450 *)
19451 cat << \_LT_EOF >> "$cfgfile"
19452
19453# func_append var value
19454# Append VALUE to the end of shell variable VAR.
19455func_append ()
19456{
19457 eval "$1=\$$1\$2"
19458}
b214d478 19459
d7040cdb
SE
19460_LT_EOF
19461 ;;
19462 esac
19463
19464
19465 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19466 || (rm -f "$cfgfile"; exit 1)
19467
19468 mv -f "$cfgfile" "$ofile" ||
19469 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19470 chmod +x "$ofile"
19471
3cb62297
L
19472
19473 cat <<_LT_EOF >> "$ofile"
19474
19475# ### BEGIN LIBTOOL TAG CONFIG: CXX
19476
19477# The linker used to build libraries.
19478LD=$lt_LD_CXX
19479
19480# How to create reloadable object files.
19481reload_flag=$lt_reload_flag_CXX
19482reload_cmds=$lt_reload_cmds_CXX
19483
19484# Commands used to build an old-style archive.
19485old_archive_cmds=$lt_old_archive_cmds_CXX
19486
19487# A language specific compiler.
19488CC=$lt_compiler_CXX
19489
19490# Is the compiler the GNU compiler?
19491with_gcc=$GCC_CXX
19492
19493# Compiler flag to turn off builtin functions.
19494no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19495
19496# How to pass a linker flag through the compiler.
19497wl=$lt_lt_prog_compiler_wl_CXX
19498
19499# Additional compiler flags for building library objects.
19500pic_flag=$lt_lt_prog_compiler_pic_CXX
19501
19502# Compiler flag to prevent dynamic linking.
19503link_static_flag=$lt_lt_prog_compiler_static_CXX
19504
19505# Does compiler simultaneously support -c and -o options?
19506compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19507
19508# Whether or not to add -lc for building shared libraries.
19509build_libtool_need_lc=$archive_cmds_need_lc_CXX
19510
19511# Whether or not to disallow shared libs when runtime libs are static.
19512allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19513
19514# Compiler flag to allow reflexive dlopens.
19515export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19516
19517# Compiler flag to generate shared objects directly from archives.
19518whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19519
19520# Whether the compiler copes with passing no objects directly.
19521compiler_needs_object=$lt_compiler_needs_object_CXX
19522
19523# Create an old-style archive from a shared archive.
19524old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19525
19526# Create a temporary old-style archive to link instead of a shared archive.
19527old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19528
19529# Commands used to build a shared archive.
19530archive_cmds=$lt_archive_cmds_CXX
19531archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19532
19533# Commands used to build a loadable module if different from building
19534# a shared archive.
19535module_cmds=$lt_module_cmds_CXX
19536module_expsym_cmds=$lt_module_expsym_cmds_CXX
19537
19538# Whether we are building with GNU ld or not.
19539with_gnu_ld=$lt_with_gnu_ld_CXX
19540
19541# Flag that allows shared libraries with undefined symbols to be built.
19542allow_undefined_flag=$lt_allow_undefined_flag_CXX
19543
19544# Flag that enforces no undefined symbols.
19545no_undefined_flag=$lt_no_undefined_flag_CXX
19546
19547# Flag to hardcode \$libdir into a binary during linking.
19548# This must work even if \$libdir does not exist
19549hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19550
19551# If ld is used when linking, flag to hardcode \$libdir into a binary
19552# during linking. This must work even if \$libdir does not exist.
19553hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19554
19555# Whether we need a single "-rpath" flag with a separated argument.
19556hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19557
19558# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19559# DIR into the resulting binary.
19560hardcode_direct=$hardcode_direct_CXX
19561
19562# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19563# DIR into the resulting binary and the resulting library dependency is
19564# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19565# library is relocated.
19566hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19567
19568# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19569# into the resulting binary.
19570hardcode_minus_L=$hardcode_minus_L_CXX
19571
19572# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19573# into the resulting binary.
19574hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19575
19576# Set to "yes" if building a shared library automatically hardcodes DIR
19577# into the library and all subsequent libraries and executables linked
19578# against it.
19579hardcode_automatic=$hardcode_automatic_CXX
19580
19581# Set to yes if linker adds runtime paths of dependent libraries
19582# to runtime path list.
19583inherit_rpath=$inherit_rpath_CXX
19584
19585# Whether libtool must link a program against all its dependency libraries.
19586link_all_deplibs=$link_all_deplibs_CXX
19587
19588# Fix the shell variable \$srcfile for the compiler.
19589fix_srcfile_path=$lt_fix_srcfile_path_CXX
19590
19591# Set to "yes" if exported symbols are required.
19592always_export_symbols=$always_export_symbols_CXX
19593
19594# The commands to list exported symbols.
19595export_symbols_cmds=$lt_export_symbols_cmds_CXX
19596
19597# Symbols that should not be listed in the preloaded symbols.
19598exclude_expsyms=$lt_exclude_expsyms_CXX
19599
19600# Symbols that must always be exported.
19601include_expsyms=$lt_include_expsyms_CXX
19602
19603# Commands necessary for linking programs (against libraries) with templates.
19604prelink_cmds=$lt_prelink_cmds_CXX
19605
19606# Specify filename containing input files.
19607file_list_spec=$lt_file_list_spec_CXX
19608
19609# How to hardcode a shared library path into an executable.
19610hardcode_action=$hardcode_action_CXX
19611
19612# The directories searched by this compiler when creating a shared library.
19613compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19614
19615# Dependencies to place before and after the objects being linked to
19616# create a shared library.
19617predep_objects=$lt_predep_objects_CXX
19618postdep_objects=$lt_postdep_objects_CXX
19619predeps=$lt_predeps_CXX
19620postdeps=$lt_postdeps_CXX
19621
19622# The library search path used internally by the compiler when linking
19623# a shared library.
19624compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19625
19626# ### END LIBTOOL TAG CONFIG: CXX
19627_LT_EOF
19628
42ecbf5e 19629 ;;
81ecdfbb 19630 "default-1":C)
20e95c23
DJ
19631 for ac_file in $CONFIG_FILES; do
19632 # Support "outfile[:infile[:infile...]]"
19633 case "$ac_file" in
19634 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19635 esac
19636 # PO directories have a Makefile.in generated from Makefile.in.in.
19637 case "$ac_file" in */Makefile.in)
19638 # Adjust a relative srcdir.
19639 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
3cac54d2 19640 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
20e95c23
DJ
19641 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
19642 # In autoconf-2.13 it is called $ac_given_srcdir.
19643 # In autoconf-2.50 it is called $srcdir.
19644 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
19645 case "$ac_given_srcdir" in
19646 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
19647 /*) top_srcdir="$ac_given_srcdir" ;;
19648 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
19649 esac
19650 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
19651 rm -f "$ac_dir/POTFILES"
19652 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
19653 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
19654 POMAKEFILEDEPS="POTFILES.in"
19655 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
19656 # on $ac_dir but don't depend on user-specified configuration
19657 # parameters.
19658 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
19659 # The LINGUAS file contains the set of available languages.
19660 if test -n "$OBSOLETE_ALL_LINGUAS"; then
19661 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
19662 fi
19663 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
19664 # Hide the ALL_LINGUAS assigment from automake.
19665 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
19666 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
19667 else
19668 # The set of available languages was given in configure.in.
19669 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
19670 fi
19671 case "$ac_given_srcdir" in
19672 .) srcdirpre= ;;
19673 *) srcdirpre='$(srcdir)/' ;;
19674 esac
19675 POFILES=
19676 GMOFILES=
19677 UPDATEPOFILES=
19678 DUMMYPOFILES=
19679 for lang in $ALL_LINGUAS; do
19680 POFILES="$POFILES $srcdirpre$lang.po"
19681 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
19682 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
19683 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
19684 done
19685 # CATALOGS depends on both $ac_dir and the user's LINGUAS
19686 # environment variable.
19687 INST_LINGUAS=
19688 if test -n "$ALL_LINGUAS"; then
19689 for presentlang in $ALL_LINGUAS; do
19690 useit=no
19691 if test "%UNSET%" != "$LINGUAS"; then
19692 desiredlanguages="$LINGUAS"
19693 else
19694 desiredlanguages="$ALL_LINGUAS"
19695 fi
19696 for desiredlang in $desiredlanguages; do
19697 # Use the presentlang catalog if desiredlang is
19698 # a. equal to presentlang, or
19699 # b. a variant of presentlang (because in this case,
19700 # presentlang can be used as a fallback for messages
19701 # which are not translated in the desiredlang catalog).
19702 case "$desiredlang" in
19703 "$presentlang"*) useit=yes;;
19704 esac
19705 done
19706 if test $useit = yes; then
19707 INST_LINGUAS="$INST_LINGUAS $presentlang"
19708 fi
19709 done
19710 fi
19711 CATALOGS=
19712 if test -n "$INST_LINGUAS"; then
19713 for lang in $INST_LINGUAS; do
19714 CATALOGS="$CATALOGS $lang.gmo"
19715 done
19716 fi
19717 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
19718 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"
19719 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
19720 if test -f "$f"; then
19721 case "$f" in
19722 *.orig | *.bak | *~) ;;
19723 *) cat "$f" >> "$ac_dir/Makefile" ;;
19724 esac
19725 fi
19726 done
19727 fi
19728 ;;
19729 esac
19730 done ;;
81ecdfbb 19731
42ecbf5e 19732 esac
81ecdfbb 19733done # for ac_tag
42ecbf5e 19734
42ecbf5e 19735
81ecdfbb 19736as_fn_exit 0
42ecbf5e 19737_ACEOF
42ecbf5e
DJ
19738ac_clean_files=$ac_clean_files_save
19739
81ecdfbb
RW
19740test $ac_write_fail = 0 ||
19741 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19742
42ecbf5e
DJ
19743
19744# configure is writing to config.log, and then calls config.status.
19745# config.status does its own redirection, appending to config.log.
19746# Unfortunately, on DOS this fails, as config.log is still kept open
19747# by configure, so config.status won't be able to write to it; its
19748# output is simply discarded. So we exec the FD to /dev/null,
19749# effectively closing config.log, so it can be properly (re)opened and
19750# appended to by config.status. When coming back to configure, we
19751# need to make the FD available again.
19752if test "$no_create" != yes; then
19753 ac_cs_success=:
19754 ac_config_status_args=
19755 test "$silent" = yes &&
19756 ac_config_status_args="$ac_config_status_args --quiet"
19757 exec 5>/dev/null
19758 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19759 exec 5>>config.log
19760 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19761 # would make configure fail if this is the last instruction.
81ecdfbb
RW
19762 $ac_cs_success || as_fn_exit $?
19763fi
19764if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19766$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
42ecbf5e 19767fi
252b5132 19768
This page took 2.537211 seconds and 4 git commands to generate.