gas/
[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
617HOSTING_CRT0
618HDEFINES
619do_compare
620GENINSRC_NEVER_FALSE
621GENINSRC_NEVER_TRUE
81ecdfbb
RW
622LEXLIB
623LEX_OUTPUT_ROOT
624LEX
625YFLAGS
626YACC
627MSGMERGE
628MSGFMT
629MKINSTALLDIRS
630CATOBJEXT
631GENCAT
632INSTOBJEXT
633DATADIRNAME
634CATALOGS
635POSUB
636GMSGFMT
637XGETTEXT
638INCINTL
639LIBINTL_DEP
640LIBINTL
641USE_NLS
3cb62297 642CXXCPP
81ecdfbb
RW
643OTOOL64
644OTOOL
645LIPO
646NMEDIT
647DSYMUTIL
81ecdfbb
RW
648RANLIB
649AR
650OBJDUMP
651LN_S
652NM
653ac_ct_DUMPBIN
654DUMPBIN
655LD
656FGREP
657SED
658LIBTOOL
3cb62297
L
659am__fastdepCXX_FALSE
660am__fastdepCXX_TRUE
661CXXDEPMODE
662ac_ct_CXX
663CXXFLAGS
664CXX
397841b5
AM
665NO_WERROR
666WARN_CFLAGS
81ecdfbb
RW
667EGREP
668GREP
669CPP
4fda8867
NC
670installed_linker
671install_as_default
81ecdfbb
RW
672TARGET_SYSTEM_ROOT_DEFINE
673TARGET_SYSTEM_ROOT
674use_sysroot
64ac50ac
RW
675MAINT
676MAINTAINER_MODE_FALSE
677MAINTAINER_MODE_TRUE
81ecdfbb
RW
678am__fastdepCC_FALSE
679am__fastdepCC_TRUE
680CCDEPMODE
681AMDEPBACKSLASH
682AMDEP_FALSE
683AMDEP_TRUE
684am__quote
685am__include
686DEPDIR
687am__untar
688am__tar
689AMTAR
690am__leading_dot
691SET_MAKE
692AWK
693mkdir_p
694MKDIR_P
695INSTALL_STRIP_PROGRAM
696STRIP
697install_sh
698MAKEINFO
699AUTOHEADER
700AUTOMAKE
701AUTOCONF
702ACLOCAL
703VERSION
704PACKAGE
705CYGPATH_W
706am__isrc
707INSTALL_DATA
708INSTALL_SCRIPT
709INSTALL_PROGRAM
710OBJEXT
711EXEEXT
712ac_ct_CC
713CPPFLAGS
714LDFLAGS
715CFLAGS
716CC
717target_os
718target_vendor
719target_cpu
720target
721host_os
722host_vendor
723host_cpu
724host
725build_os
726build_vendor
727build_cpu
728build
729target_alias
730host_alias
731build_alias
732LIBS
733ECHO_T
734ECHO_N
735ECHO_C
736DEFS
737mandir
738localedir
739libdir
740psdir
741pdfdir
742dvidir
743htmldir
744infodir
745docdir
746oldincludedir
747includedir
748localstatedir
749sharedstatedir
750sysconfdir
751datadir
752datarootdir
753libexecdir
754sbindir
755bindir
756program_transform_name
757prefix
758exec_prefix
759PACKAGE_URL
760PACKAGE_BUGREPORT
761PACKAGE_STRING
762PACKAGE_VERSION
763PACKAGE_TARNAME
764PACKAGE_NAME
765PATH_SEPARATOR
766SHELL'
42ecbf5e 767ac_subst_files='TDIRS'
81ecdfbb
RW
768ac_user_opts='
769enable_option_checking
770enable_dependency_tracking
64ac50ac 771enable_maintainer_mode
81ecdfbb
RW
772with_lib_path
773enable_targets
774enable_64_bit_bfd
775with_sysroot
4fda8867 776enable_gold
81ecdfbb
RW
777enable_got
778enable_werror
779enable_build_warnings
da2f07f1 780enable_plugins
81ecdfbb
RW
781enable_largefile
782enable_shared
783enable_static
784with_pic
785enable_fast_install
786with_gnu_ld
787enable_libtool_lock
788enable_nls
02ecc8e9 789enable_initfini_array
81ecdfbb
RW
790'
791 ac_precious_vars='build_alias
792host_alias
793target_alias
794CC
795CFLAGS
796LDFLAGS
797LIBS
798CPPFLAGS
799CPP
3cb62297
L
800CXX
801CXXFLAGS
802CCC
803CXXCPP
81ecdfbb
RW
804YACC
805YFLAGS'
806
252b5132
RH
807
808# Initialize some variables set by options.
42ecbf5e
DJ
809ac_init_help=
810ac_init_version=false
81ecdfbb
RW
811ac_unrecognized_opts=
812ac_unrecognized_sep=
252b5132
RH
813# The variables have the same names as the options, with
814# dashes changed to underlines.
42ecbf5e 815cache_file=/dev/null
252b5132 816exec_prefix=NONE
252b5132 817no_create=
252b5132
RH
818no_recursion=
819prefix=NONE
820program_prefix=NONE
821program_suffix=NONE
822program_transform_name=s,x,x,
823silent=
824site=
825srcdir=
252b5132
RH
826verbose=
827x_includes=NONE
828x_libraries=NONE
42ecbf5e
DJ
829
830# Installation directory options.
831# These are left unexpanded so users can "make install exec_prefix=/foo"
832# and all the variables that are supposed to be based on exec_prefix
833# by default will actually change.
834# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 835# (The list follows the same order as the GNU Coding Standards.)
252b5132
RH
836bindir='${exec_prefix}/bin'
837sbindir='${exec_prefix}/sbin'
838libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
839datarootdir='${prefix}/share'
840datadir='${datarootdir}'
252b5132
RH
841sysconfdir='${prefix}/etc'
842sharedstatedir='${prefix}/com'
843localstatedir='${prefix}/var'
252b5132
RH
844includedir='${prefix}/include'
845oldincludedir='/usr/include'
81ecdfbb
RW
846docdir='${datarootdir}/doc/${PACKAGE}'
847infodir='${datarootdir}/info'
848htmldir='${docdir}'
849dvidir='${docdir}'
850pdfdir='${docdir}'
851psdir='${docdir}'
852libdir='${exec_prefix}/lib'
853localedir='${datarootdir}/locale'
854mandir='${datarootdir}/man'
252b5132 855
252b5132 856ac_prev=
81ecdfbb 857ac_dashdash=
252b5132
RH
858for ac_option
859do
252b5132
RH
860 # If the previous option needs an argument, assign it.
861 if test -n "$ac_prev"; then
81ecdfbb 862 eval $ac_prev=\$ac_option
252b5132
RH
863 ac_prev=
864 continue
865 fi
866
81ecdfbb
RW
867 case $ac_option in
868 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
869 *) ac_optarg=yes ;;
870 esac
252b5132
RH
871
872 # Accept the important Cygnus configure options, so we can diagnose typos.
873
81ecdfbb
RW
874 case $ac_dashdash$ac_option in
875 --)
876 ac_dashdash=yes ;;
252b5132
RH
877
878 -bindir | --bindir | --bindi | --bind | --bin | --bi)
879 ac_prev=bindir ;;
880 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
42ecbf5e 881 bindir=$ac_optarg ;;
252b5132
RH
882
883 -build | --build | --buil | --bui | --bu)
42ecbf5e 884 ac_prev=build_alias ;;
252b5132 885 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
42ecbf5e 886 build_alias=$ac_optarg ;;
252b5132
RH
887
888 -cache-file | --cache-file | --cache-fil | --cache-fi \
889 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
890 ac_prev=cache_file ;;
891 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
892 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
42ecbf5e
DJ
893 cache_file=$ac_optarg ;;
894
895 --config-cache | -C)
896 cache_file=config.cache ;;
252b5132 897
81ecdfbb 898 -datadir | --datadir | --datadi | --datad)
252b5132 899 ac_prev=datadir ;;
81ecdfbb 900 -datadir=* | --datadir=* | --datadi=* | --datad=*)
42ecbf5e 901 datadir=$ac_optarg ;;
252b5132 902
81ecdfbb
RW
903 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
904 | --dataroo | --dataro | --datar)
905 ac_prev=datarootdir ;;
906 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
907 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
908 datarootdir=$ac_optarg ;;
909
252b5132 910 -disable-* | --disable-*)
81ecdfbb 911 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 912 # Reject names that are not valid shell variable names.
81ecdfbb
RW
913 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
914 as_fn_error "invalid feature name: $ac_useropt"
915 ac_useropt_orig=$ac_useropt
916 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
917 case $ac_user_opts in
918 *"
919"enable_$ac_useropt"
920"*) ;;
921 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
922 ac_unrecognized_sep=', ';;
923 esac
924 eval enable_$ac_useropt=no ;;
925
926 -docdir | --docdir | --docdi | --doc | --do)
927 ac_prev=docdir ;;
928 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
929 docdir=$ac_optarg ;;
930
931 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
932 ac_prev=dvidir ;;
933 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
934 dvidir=$ac_optarg ;;
252b5132
RH
935
936 -enable-* | --enable-*)
81ecdfbb 937 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 938 # Reject names that are not valid shell variable names.
81ecdfbb
RW
939 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
940 as_fn_error "invalid feature name: $ac_useropt"
941 ac_useropt_orig=$ac_useropt
942 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
943 case $ac_user_opts in
944 *"
945"enable_$ac_useropt"
946"*) ;;
947 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
948 ac_unrecognized_sep=', ';;
252b5132 949 esac
81ecdfbb 950 eval enable_$ac_useropt=\$ac_optarg ;;
252b5132
RH
951
952 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
953 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
954 | --exec | --exe | --ex)
955 ac_prev=exec_prefix ;;
956 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
957 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
958 | --exec=* | --exe=* | --ex=*)
42ecbf5e 959 exec_prefix=$ac_optarg ;;
252b5132
RH
960
961 -gas | --gas | --ga | --g)
962 # Obsolete; use --with-gas.
963 with_gas=yes ;;
964
42ecbf5e
DJ
965 -help | --help | --hel | --he | -h)
966 ac_init_help=long ;;
967 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
968 ac_init_help=recursive ;;
969 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
970 ac_init_help=short ;;
252b5132
RH
971
972 -host | --host | --hos | --ho)
42ecbf5e 973 ac_prev=host_alias ;;
252b5132 974 -host=* | --host=* | --hos=* | --ho=*)
42ecbf5e 975 host_alias=$ac_optarg ;;
252b5132 976
81ecdfbb
RW
977 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
978 ac_prev=htmldir ;;
979 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
980 | --ht=*)
981 htmldir=$ac_optarg ;;
982
252b5132
RH
983 -includedir | --includedir | --includedi | --included | --include \
984 | --includ | --inclu | --incl | --inc)
985 ac_prev=includedir ;;
986 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
987 | --includ=* | --inclu=* | --incl=* | --inc=*)
42ecbf5e 988 includedir=$ac_optarg ;;
252b5132
RH
989
990 -infodir | --infodir | --infodi | --infod | --info | --inf)
991 ac_prev=infodir ;;
992 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
42ecbf5e 993 infodir=$ac_optarg ;;
252b5132
RH
994
995 -libdir | --libdir | --libdi | --libd)
996 ac_prev=libdir ;;
997 -libdir=* | --libdir=* | --libdi=* | --libd=*)
42ecbf5e 998 libdir=$ac_optarg ;;
252b5132
RH
999
1000 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1001 | --libexe | --libex | --libe)
1002 ac_prev=libexecdir ;;
1003 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1004 | --libexe=* | --libex=* | --libe=*)
42ecbf5e 1005 libexecdir=$ac_optarg ;;
252b5132 1006
81ecdfbb
RW
1007 -localedir | --localedir | --localedi | --localed | --locale)
1008 ac_prev=localedir ;;
1009 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1010 localedir=$ac_optarg ;;
1011
252b5132 1012 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1013 | --localstate | --localstat | --localsta | --localst | --locals)
252b5132
RH
1014 ac_prev=localstatedir ;;
1015 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1016 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
42ecbf5e 1017 localstatedir=$ac_optarg ;;
252b5132
RH
1018
1019 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1020 ac_prev=mandir ;;
1021 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
42ecbf5e 1022 mandir=$ac_optarg ;;
252b5132
RH
1023
1024 -nfp | --nfp | --nf)
1025 # Obsolete; use --without-fp.
1026 with_fp=no ;;
1027
1028 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
42ecbf5e 1029 | --no-cr | --no-c | -n)
252b5132
RH
1030 no_create=yes ;;
1031
1032 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1033 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1034 no_recursion=yes ;;
1035
1036 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1037 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1038 | --oldin | --oldi | --old | --ol | --o)
1039 ac_prev=oldincludedir ;;
1040 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1041 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1042 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
42ecbf5e 1043 oldincludedir=$ac_optarg ;;
252b5132
RH
1044
1045 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1046 ac_prev=prefix ;;
1047 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
42ecbf5e 1048 prefix=$ac_optarg ;;
252b5132
RH
1049
1050 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1051 | --program-pre | --program-pr | --program-p)
1052 ac_prev=program_prefix ;;
1053 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1054 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
42ecbf5e 1055 program_prefix=$ac_optarg ;;
252b5132
RH
1056
1057 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1058 | --program-suf | --program-su | --program-s)
1059 ac_prev=program_suffix ;;
1060 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1061 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
42ecbf5e 1062 program_suffix=$ac_optarg ;;
252b5132
RH
1063
1064 -program-transform-name | --program-transform-name \
1065 | --program-transform-nam | --program-transform-na \
1066 | --program-transform-n | --program-transform- \
1067 | --program-transform | --program-transfor \
1068 | --program-transfo | --program-transf \
1069 | --program-trans | --program-tran \
1070 | --progr-tra | --program-tr | --program-t)
1071 ac_prev=program_transform_name ;;
1072 -program-transform-name=* | --program-transform-name=* \
1073 | --program-transform-nam=* | --program-transform-na=* \
1074 | --program-transform-n=* | --program-transform-=* \
1075 | --program-transform=* | --program-transfor=* \
1076 | --program-transfo=* | --program-transf=* \
1077 | --program-trans=* | --program-tran=* \
1078 | --progr-tra=* | --program-tr=* | --program-t=*)
42ecbf5e 1079 program_transform_name=$ac_optarg ;;
252b5132 1080
81ecdfbb
RW
1081 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1082 ac_prev=pdfdir ;;
1083 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1084 pdfdir=$ac_optarg ;;
1085
1086 -psdir | --psdir | --psdi | --psd | --ps)
1087 ac_prev=psdir ;;
1088 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1089 psdir=$ac_optarg ;;
1090
252b5132
RH
1091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1092 | -silent | --silent | --silen | --sile | --sil)
1093 silent=yes ;;
1094
1095 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1096 ac_prev=sbindir ;;
1097 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1098 | --sbi=* | --sb=*)
42ecbf5e 1099 sbindir=$ac_optarg ;;
252b5132
RH
1100
1101 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1102 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1103 | --sharedst | --shareds | --shared | --share | --shar \
1104 | --sha | --sh)
1105 ac_prev=sharedstatedir ;;
1106 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1107 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1108 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1109 | --sha=* | --sh=*)
42ecbf5e 1110 sharedstatedir=$ac_optarg ;;
252b5132
RH
1111
1112 -site | --site | --sit)
1113 ac_prev=site ;;
1114 -site=* | --site=* | --sit=*)
42ecbf5e 1115 site=$ac_optarg ;;
85fbca6a 1116
252b5132
RH
1117 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1118 ac_prev=srcdir ;;
1119 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42ecbf5e 1120 srcdir=$ac_optarg ;;
252b5132
RH
1121
1122 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1123 | --syscon | --sysco | --sysc | --sys | --sy)
1124 ac_prev=sysconfdir ;;
1125 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1126 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
42ecbf5e 1127 sysconfdir=$ac_optarg ;;
252b5132
RH
1128
1129 -target | --target | --targe | --targ | --tar | --ta | --t)
42ecbf5e 1130 ac_prev=target_alias ;;
252b5132 1131 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
42ecbf5e 1132 target_alias=$ac_optarg ;;
252b5132
RH
1133
1134 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1135 verbose=yes ;;
1136
42ecbf5e
DJ
1137 -version | --version | --versio | --versi | --vers | -V)
1138 ac_init_version=: ;;
252b5132
RH
1139
1140 -with-* | --with-*)
81ecdfbb 1141 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 1142 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144 as_fn_error "invalid package name: $ac_useropt"
1145 ac_useropt_orig=$ac_useropt
1146 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1147 case $ac_user_opts in
1148 *"
1149"with_$ac_useropt"
1150"*) ;;
1151 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1152 ac_unrecognized_sep=', ';;
252b5132 1153 esac
81ecdfbb 1154 eval with_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1155
1156 -without-* | --without-*)
81ecdfbb 1157 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 1158 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160 as_fn_error "invalid package name: $ac_useropt"
1161 ac_useropt_orig=$ac_useropt
1162 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1163 case $ac_user_opts in
1164 *"
1165"with_$ac_useropt"
1166"*) ;;
1167 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1168 ac_unrecognized_sep=', ';;
1169 esac
1170 eval with_$ac_useropt=no ;;
252b5132
RH
1171
1172 --x)
1173 # Obsolete; use --with-x.
1174 with_x=yes ;;
1175
1176 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1177 | --x-incl | --x-inc | --x-in | --x-i)
1178 ac_prev=x_includes ;;
1179 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1180 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
42ecbf5e 1181 x_includes=$ac_optarg ;;
252b5132
RH
1182
1183 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1184 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1185 ac_prev=x_libraries ;;
1186 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1187 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
42ecbf5e 1188 x_libraries=$ac_optarg ;;
252b5132 1189
81ecdfbb
RW
1190 -*) as_fn_error "unrecognized option: \`$ac_option'
1191Try \`$0 --help' for more information."
252b5132
RH
1192 ;;
1193
42ecbf5e
DJ
1194 *=*)
1195 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1196 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1197 case $ac_envvar in #(
1198 '' | [0-9]* | *[!_$as_cr_alnum]* )
1199 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1200 esac
1201 eval $ac_envvar=\$ac_optarg
42ecbf5e
DJ
1202 export $ac_envvar ;;
1203
252b5132 1204 *)
42ecbf5e 1205 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1206 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
42ecbf5e 1207 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1208 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
42ecbf5e 1209 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
1210 ;;
1211
1212 esac
1213done
1214
1215if test -n "$ac_prev"; then
42ecbf5e 1216 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1217 as_fn_error "missing argument to $ac_option"
252b5132 1218fi
252b5132 1219
81ecdfbb
RW
1220if test -n "$ac_unrecognized_opts"; then
1221 case $enable_option_checking in
1222 no) ;;
1223 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1224 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
42ecbf5e 1225 esac
81ecdfbb 1226fi
252b5132 1227
81ecdfbb
RW
1228# Check all directory arguments for consistency.
1229for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1230 datadir sysconfdir sharedstatedir localstatedir includedir \
1231 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1232 libdir localedir mandir
252b5132 1233do
81ecdfbb
RW
1234 eval ac_val=\$$ac_var
1235 # Remove trailing slashes.
1236 case $ac_val in
1237 */ )
1238 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1239 eval $ac_var=\$ac_val;;
1240 esac
1241 # Be sure to have absolute directory names.
42ecbf5e 1242 case $ac_val in
81ecdfbb
RW
1243 [\\/$]* | ?:[\\/]* ) continue;;
1244 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
252b5132 1245 esac
81ecdfbb 1246 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
252b5132
RH
1247done
1248
42ecbf5e
DJ
1249# There might be people who depend on the old broken behavior: `$host'
1250# used to hold the argument of --host etc.
1251# FIXME: To remove some day.
1252build=$build_alias
1253host=$host_alias
1254target=$target_alias
1255
1256# FIXME: To remove some day.
1257if test "x$host_alias" != x; then
1258 if test "x$build_alias" = x; then
1259 cross_compiling=maybe
81ecdfbb 1260 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
42ecbf5e
DJ
1261 If a cross compiler is detected then cross compile mode will be used." >&2
1262 elif test "x$build_alias" != "x$host_alias"; then
1263 cross_compiling=yes
1264 fi
1265fi
e5a52504 1266
42ecbf5e
DJ
1267ac_tool_prefix=
1268test -n "$host_alias" && ac_tool_prefix=$host_alias-
1269
1270test "$silent" = yes && exec 6>/dev/null
252b5132 1271
252b5132 1272
81ecdfbb
RW
1273ac_pwd=`pwd` && test -n "$ac_pwd" &&
1274ac_ls_di=`ls -di .` &&
1275ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1276 as_fn_error "working directory cannot be determined"
1277test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1278 as_fn_error "pwd does not report name of working directory"
1279
1280
252b5132
RH
1281# Find the source files, if location was not specified.
1282if test -z "$srcdir"; then
1283 ac_srcdir_defaulted=yes
81ecdfbb
RW
1284 # Try the directory containing this script, then the parent directory.
1285 ac_confdir=`$as_dirname -- "$as_myself" ||
1286$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1287 X"$as_myself" : 'X\(//\)[^/]' \| \
1288 X"$as_myself" : 'X\(//\)$' \| \
1289 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1290$as_echo X"$as_myself" |
1291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1292 s//\1/
1293 q
1294 }
1295 /^X\(\/\/\)[^/].*/{
1296 s//\1/
1297 q
1298 }
1299 /^X\(\/\/\)$/{
1300 s//\1/
1301 q
1302 }
1303 /^X\(\/\).*/{
1304 s//\1/
1305 q
1306 }
1307 s/.*/./; q'`
252b5132 1308 srcdir=$ac_confdir
81ecdfbb 1309 if test ! -r "$srcdir/$ac_unique_file"; then
252b5132
RH
1310 srcdir=..
1311 fi
1312else
1313 ac_srcdir_defaulted=no
1314fi
81ecdfbb
RW
1315if test ! -r "$srcdir/$ac_unique_file"; then
1316 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1317 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1318fi
1319ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1320ac_abs_confdir=`(
1321 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1322 pwd)`
1323# When building in place, set srcdir=.
1324if test "$ac_abs_confdir" = "$ac_pwd"; then
1325 srcdir=.
1326fi
1327# Remove unnecessary trailing slashes from srcdir.
1328# Double slashes in file names in object file debugging info
1329# mess up M-x gdb in Emacs.
1330case $srcdir in
1331*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1332esac
1333for ac_var in $ac_precious_vars; do
1334 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1335 eval ac_env_${ac_var}_value=\$${ac_var}
1336 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1337 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1338done
252b5132 1339
42ecbf5e
DJ
1340#
1341# Report the --help message.
1342#
1343if test "$ac_init_help" = "long"; then
1344 # Omit some internal or obsolete options to make the list less imposing.
1345 # This message is too long to be a string in the A/UX 3.1 sh.
1346 cat <<_ACEOF
1347\`configure' configures this package to adapt to many kinds of systems.
252b5132 1348
42ecbf5e 1349Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 1350
42ecbf5e
DJ
1351To assign environment variables (e.g., CC, CFLAGS...), specify them as
1352VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 1353
42ecbf5e 1354Defaults for the options are specified in brackets.
ac48eca1 1355
42ecbf5e
DJ
1356Configuration:
1357 -h, --help display this help and exit
1358 --help=short display options specific to this package
1359 --help=recursive display the short help of all the included packages
1360 -V, --version display version information and exit
1361 -q, --quiet, --silent do not print \`checking...' messages
1362 --cache-file=FILE cache test results in FILE [disabled]
1363 -C, --config-cache alias for \`--cache-file=config.cache'
1364 -n, --no-create do not create output files
1365 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1366
42ecbf5e
DJ
1367Installation directories:
1368 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1369 [$ac_default_prefix]
42ecbf5e 1370 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1371 [PREFIX]
ac48eca1 1372
42ecbf5e
DJ
1373By default, \`make install' will install all the files in
1374\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1375an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1376for instance \`--prefix=\$HOME'.
ac48eca1 1377
42ecbf5e 1378For better control, use the options below.
ac48eca1 1379
42ecbf5e 1380Fine tuning of the installation directories:
81ecdfbb
RW
1381 --bindir=DIR user executables [EPREFIX/bin]
1382 --sbindir=DIR system admin executables [EPREFIX/sbin]
1383 --libexecdir=DIR program executables [EPREFIX/libexec]
1384 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1385 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1386 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1387 --libdir=DIR object code libraries [EPREFIX/lib]
1388 --includedir=DIR C header files [PREFIX/include]
1389 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1390 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1391 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1392 --infodir=DIR info documentation [DATAROOTDIR/info]
1393 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1394 --mandir=DIR man documentation [DATAROOTDIR/man]
1395 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1396 --htmldir=DIR html documentation [DOCDIR]
1397 --dvidir=DIR dvi documentation [DOCDIR]
1398 --pdfdir=DIR pdf documentation [DOCDIR]
1399 --psdir=DIR ps documentation [DOCDIR]
42ecbf5e 1400_ACEOF
ac48eca1 1401
42ecbf5e 1402 cat <<\_ACEOF
252b5132 1403
42ecbf5e
DJ
1404Program names:
1405 --program-prefix=PREFIX prepend PREFIX to installed program names
1406 --program-suffix=SUFFIX append SUFFIX to installed program names
1407 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 1408
42ecbf5e
DJ
1409System types:
1410 --build=BUILD configure for building on BUILD [guessed]
1411 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1412 --target=TARGET configure for building compilers for TARGET [HOST]
1413_ACEOF
252b5132 1414fi
252b5132 1415
42ecbf5e 1416if test -n "$ac_init_help"; then
252b5132 1417
42ecbf5e 1418 cat <<\_ACEOF
e5a52504 1419
42ecbf5e 1420Optional Features:
81ecdfbb 1421 --disable-option-checking ignore unrecognized --enable/--with options
42ecbf5e
DJ
1422 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1423 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1424 --disable-dependency-tracking speeds up one-time build
1425 --enable-dependency-tracking do not reject slow dependency extractors
64ac50ac
RW
1426 --enable-maintainer-mode enable make rules and dependencies not useful
1427 (and sometimes confusing) to the casual installer
ce2cded5
L
1428 --enable-targets alternative target configurations
1429 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
c7791212 1430 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
7fb9f789
NC
1431 --enable-got=<type> GOT handling scheme (target, single, negative,
1432 multigot)
ce2cded5
L
1433 --enable-werror treat compile warnings as errors
1434 --enable-build-warnings enable build-time compiler warnings
da2f07f1 1435 --enable-plugins Enable support for plugins (defaults no)
d053aef8 1436 --disable-largefile omit support for large files
81ecdfbb
RW
1437 --enable-shared[=PKGS] build shared libraries [default=yes]
1438 --enable-static[=PKGS] build static libraries [default=yes]
d7040cdb
SE
1439 --enable-fast-install[=PKGS]
1440 optimize for fast installation [default=yes]
42ecbf5e 1441 --disable-libtool-lock avoid locking (might break parallel builds)
42ecbf5e 1442 --disable-nls do not use Native Language Support
02ecc8e9 1443 --enable-initfini-array use .init_array/.fini_array sections
42ecbf5e
DJ
1444
1445Optional Packages:
1446 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1447 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
ce2cded5
L
1448 --with-lib-path=dir1:dir2... set default LIB_PATH
1449 --with-sysroot=DIR Search for usr/lib et al within DIR.
d7040cdb
SE
1450 --with-pic try to use only PIC/non-PIC objects [default=use
1451 both]
1452 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
42ecbf5e
DJ
1453
1454Some influential environment variables:
1455 CC C compiler command
1456 CFLAGS C compiler flags
1457 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1458 nonstandard directory <lib dir>
81ecdfbb
RW
1459 LIBS libraries to pass to the linker, e.g. -l<library>
1460 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1461 you have headers in a nonstandard directory <include dir>
42ecbf5e 1462 CPP C preprocessor
3cb62297
L
1463 CXX C++ compiler command
1464 CXXFLAGS C++ compiler flags
1465 CXXCPP C++ preprocessor
81ecdfbb
RW
1466 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1467 the first program found out of: `bison -y', `byacc', `yacc'.
1468 YFLAGS The list of arguments that will be passed by default to $YACC.
1469 This script will default YFLAGS to the empty string to avoid a
1470 default value of `-d' given by some make applications.
42ecbf5e
DJ
1471
1472Use these variables to override the choices made by `configure' or to help
1473it to find libraries and programs with nonstandard names/locations.
1474
81ecdfbb 1475Report bugs to the package provider.
42ecbf5e 1476_ACEOF
81ecdfbb 1477ac_status=$?
42ecbf5e
DJ
1478fi
1479
1480if test "$ac_init_help" = "recursive"; then
1481 # If there are subdirs, report their specific --help.
42ecbf5e 1482 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1483 test -d "$ac_dir" ||
1484 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1485 continue
42ecbf5e
DJ
1486 ac_builddir=.
1487
81ecdfbb
RW
1488case "$ac_dir" in
1489.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490*)
1491 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1492 # A ".." for each directory in $ac_dir_suffix.
1493 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1494 case $ac_top_builddir_sub in
1495 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1497 esac ;;
1498esac
1499ac_abs_top_builddir=$ac_pwd
1500ac_abs_builddir=$ac_pwd$ac_dir_suffix
1501# for backward compatibility:
1502ac_top_builddir=$ac_top_build_prefix
42ecbf5e
DJ
1503
1504case $srcdir in
81ecdfbb 1505 .) # We are building in place.
42ecbf5e 1506 ac_srcdir=.
81ecdfbb
RW
1507 ac_top_srcdir=$ac_top_builddir_sub
1508 ac_abs_top_srcdir=$ac_pwd ;;
1509 [\\/]* | ?:[\\/]* ) # Absolute name.
42ecbf5e 1510 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1511 ac_top_srcdir=$srcdir
1512 ac_abs_top_srcdir=$srcdir ;;
1513 *) # Relative name.
1514 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1515 ac_top_srcdir=$ac_top_build_prefix$srcdir
1516 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42ecbf5e 1517esac
81ecdfbb
RW
1518ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1519
1520 cd "$ac_dir" || { ac_status=$?; continue; }
1521 # Check for guested configure.
1522 if test -f "$ac_srcdir/configure.gnu"; then
1523 echo &&
1524 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1525 elif test -f "$ac_srcdir/configure"; then
1526 echo &&
1527 $SHELL "$ac_srcdir/configure" --help=recursive
42ecbf5e 1528 else
81ecdfbb
RW
1529 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1530 fi || ac_status=$?
1531 cd "$ac_pwd" || { ac_status=$?; break; }
42ecbf5e 1532 done
a2d91340
AC
1533fi
1534
81ecdfbb 1535test -n "$ac_init_help" && exit $ac_status
42ecbf5e
DJ
1536if $ac_init_version; then
1537 cat <<\_ACEOF
81ecdfbb
RW
1538configure
1539generated by GNU Autoconf 2.64
a2d91340 1540
81ecdfbb 1541Copyright (C) 2009 Free Software Foundation, Inc.
42ecbf5e
DJ
1542This configure script is free software; the Free Software Foundation
1543gives unlimited permission to copy, distribute and modify it.
1544_ACEOF
81ecdfbb 1545 exit
42ecbf5e 1546fi
a2d91340 1547
81ecdfbb
RW
1548## ------------------------ ##
1549## Autoconf initialization. ##
1550## ------------------------ ##
a2d91340 1551
81ecdfbb
RW
1552# ac_fn_c_try_compile LINENO
1553# --------------------------
1554# Try to compile conftest.$ac_ext, and return whether this succeeded.
1555ac_fn_c_try_compile ()
1556{
1557 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558 rm -f conftest.$ac_objext
1559 if { { ac_try="$ac_compile"
1560case "(($ac_try" in
1561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1562 *) ac_try_echo=$ac_try;;
1563esac
1564eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1565$as_echo "$ac_try_echo"; } >&5
1566 (eval "$ac_compile") 2>conftest.err
1567 ac_status=$?
1568 if test -s conftest.err; then
1569 grep -v '^ *+' conftest.err >conftest.er1
1570 cat conftest.er1 >&5
1571 mv -f conftest.er1 conftest.err
1572 fi
1573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1574 test $ac_status = 0; } && {
1575 test -z "$ac_c_werror_flag" ||
1576 test ! -s conftest.err
1577 } && test -s conftest.$ac_objext; then :
1578 ac_retval=0
1579else
1580 $as_echo "$as_me: failed program was:" >&5
1581sed 's/^/| /' conftest.$ac_ext >&5
a2d91340 1582
81ecdfbb
RW
1583 ac_retval=1
1584fi
1585 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1586 return $ac_retval
1587
1588} # ac_fn_c_try_compile
1589
1590# ac_fn_c_try_link LINENO
1591# -----------------------
1592# Try to link conftest.$ac_ext, and return whether this succeeded.
1593ac_fn_c_try_link ()
42ecbf5e 1594{
81ecdfbb
RW
1595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596 rm -f conftest.$ac_objext conftest$ac_exeext
1597 if { { ac_try="$ac_link"
1598case "(($ac_try" in
1599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600 *) ac_try_echo=$ac_try;;
1601esac
1602eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603$as_echo "$ac_try_echo"; } >&5
1604 (eval "$ac_link") 2>conftest.err
1605 ac_status=$?
1606 if test -s conftest.err; then
1607 grep -v '^ *+' conftest.err >conftest.er1
1608 cat conftest.er1 >&5
1609 mv -f conftest.er1 conftest.err
1610 fi
1611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612 test $ac_status = 0; } && {
1613 test -z "$ac_c_werror_flag" ||
1614 test ! -s conftest.err
1615 } && test -s conftest$ac_exeext && {
1616 test "$cross_compiling" = yes ||
1617 $as_test_x conftest$ac_exeext
1618 }; then :
1619 ac_retval=0
1620else
1621 $as_echo "$as_me: failed program was:" >&5
1622sed 's/^/| /' conftest.$ac_ext >&5
42ecbf5e 1623
81ecdfbb
RW
1624 ac_retval=1
1625fi
1626 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1627 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1628 # interfere with the next link command; also delete a directory that is
1629 # left behind by Apple's compiler. We do this before executing the actions.
1630 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1631 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1632 return $ac_retval
42ecbf5e 1633
81ecdfbb 1634} # ac_fn_c_try_link
42ecbf5e 1635
81ecdfbb
RW
1636# ac_fn_c_try_cpp LINENO
1637# ----------------------
1638# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1639ac_fn_c_try_cpp ()
1640{
1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642 if { { ac_try="$ac_cpp conftest.$ac_ext"
1643case "(($ac_try" in
1644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645 *) ac_try_echo=$ac_try;;
1646esac
1647eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648$as_echo "$ac_try_echo"; } >&5
1649 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1650 ac_status=$?
1651 if test -s conftest.err; then
1652 grep -v '^ *+' conftest.err >conftest.er1
1653 cat conftest.er1 >&5
1654 mv -f conftest.er1 conftest.err
1655 fi
1656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657 test $ac_status = 0; } >/dev/null && {
1658 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1659 test ! -s conftest.err
1660 }; then :
1661 ac_retval=0
1662else
1663 $as_echo "$as_me: failed program was:" >&5
1664sed 's/^/| /' conftest.$ac_ext >&5
1665
1666 ac_retval=1
1667fi
1668 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1669 return $ac_retval
1670
1671} # ac_fn_c_try_cpp
1672
3cb62297
L
1673# ac_fn_cxx_try_compile LINENO
1674# ----------------------------
1675# Try to compile conftest.$ac_ext, and return whether this succeeded.
1676ac_fn_cxx_try_compile ()
1677{
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 rm -f conftest.$ac_objext
1680 if { { ac_try="$ac_compile"
1681case "(($ac_try" in
1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683 *) ac_try_echo=$ac_try;;
1684esac
1685eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686$as_echo "$ac_try_echo"; } >&5
1687 (eval "$ac_compile") 2>conftest.err
1688 ac_status=$?
1689 if test -s conftest.err; then
1690 grep -v '^ *+' conftest.err >conftest.er1
1691 cat conftest.er1 >&5
1692 mv -f conftest.er1 conftest.err
1693 fi
1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; } && {
1696 test -z "$ac_cxx_werror_flag" ||
1697 test ! -s conftest.err
1698 } && test -s conftest.$ac_objext; then :
1699 ac_retval=0
1700else
1701 $as_echo "$as_me: failed program was:" >&5
1702sed 's/^/| /' conftest.$ac_ext >&5
1703
1704 ac_retval=1
1705fi
1706 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1707 return $ac_retval
1708
1709} # ac_fn_cxx_try_compile
1710
81ecdfbb
RW
1711# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1712# -------------------------------------------------------
1713# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1714# the include files in INCLUDES and setting the cache variable VAR
1715# accordingly.
1716ac_fn_c_check_header_mongrel ()
1717{
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1721$as_echo_n "checking for $2... " >&6; }
1722if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1723 $as_echo_n "(cached) " >&6
1724fi
1725eval ac_res=\$$3
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727$as_echo "$ac_res" >&6; }
1728else
1729 # Is the header compilable?
1730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1731$as_echo_n "checking $2 usability... " >&6; }
1732cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1733/* end confdefs.h. */
1734$4
1735#include <$2>
1736_ACEOF
1737if ac_fn_c_try_compile "$LINENO"; then :
1738 ac_header_compiler=yes
1739else
1740 ac_header_compiler=no
1741fi
1742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1744$as_echo "$ac_header_compiler" >&6; }
1745
1746# Is the header present?
1747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1748$as_echo_n "checking $2 presence... " >&6; }
1749cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750/* end confdefs.h. */
1751#include <$2>
1752_ACEOF
1753if ac_fn_c_try_cpp "$LINENO"; then :
1754 ac_header_preproc=yes
1755else
1756 ac_header_preproc=no
1757fi
1758rm -f conftest.err conftest.$ac_ext
1759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1760$as_echo "$ac_header_preproc" >&6; }
1761
1762# So? What about this header?
1763case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1764 yes:no: )
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1766$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1768$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1769 ;;
1770 no:yes:* )
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1772$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1774$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1776$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1778$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1780$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1781 ;;
1782esac
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1784$as_echo_n "checking for $2... " >&6; }
1785if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1786 $as_echo_n "(cached) " >&6
1787else
1788 eval "$3=\$ac_header_compiler"
1789fi
1790eval ac_res=\$$3
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792$as_echo "$ac_res" >&6; }
1793fi
1794 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1795
1796} # ac_fn_c_check_header_mongrel
1797
1798# ac_fn_c_try_run LINENO
1799# ----------------------
1800# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1801# that executables *can* be run.
1802ac_fn_c_try_run ()
1803{
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 if { { ac_try="$ac_link"
1806case "(($ac_try" in
1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808 *) ac_try_echo=$ac_try;;
1809esac
1810eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811$as_echo "$ac_try_echo"; } >&5
1812 (eval "$ac_link") 2>&5
1813 ac_status=$?
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1816 { { case "(($ac_try" in
1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818 *) ac_try_echo=$ac_try;;
1819esac
1820eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821$as_echo "$ac_try_echo"; } >&5
1822 (eval "$ac_try") 2>&5
1823 ac_status=$?
1824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825 test $ac_status = 0; }; }; then :
1826 ac_retval=0
1827else
1828 $as_echo "$as_me: program exited with status $ac_status" >&5
1829 $as_echo "$as_me: failed program was:" >&5
1830sed 's/^/| /' conftest.$ac_ext >&5
1831
1832 ac_retval=$ac_status
1833fi
1834 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1835 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1836 return $ac_retval
1837
1838} # ac_fn_c_try_run
1839
1840# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1841# -------------------------------------------------------
1842# Tests whether HEADER exists and can be compiled using the include files in
1843# INCLUDES, setting the cache variable VAR accordingly.
1844ac_fn_c_check_header_compile ()
1845{
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848$as_echo_n "checking for $2... " >&6; }
1849if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1850 $as_echo_n "(cached) " >&6
1851else
1852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853/* end confdefs.h. */
1854$4
1855#include <$2>
1856_ACEOF
1857if ac_fn_c_try_compile "$LINENO"; then :
1858 eval "$3=yes"
1859else
1860 eval "$3=no"
1861fi
1862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1863fi
1864eval ac_res=\$$3
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866$as_echo "$ac_res" >&6; }
1867 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1868
1869} # ac_fn_c_check_header_compile
1870
1871# ac_fn_c_check_func LINENO FUNC VAR
1872# ----------------------------------
1873# Tests whether FUNC exists, setting the cache variable VAR accordingly
1874ac_fn_c_check_func ()
1875{
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1878$as_echo_n "checking for $2... " >&6; }
1879if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1880 $as_echo_n "(cached) " >&6
1881else
1882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883/* end confdefs.h. */
1884/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1886#define $2 innocuous_$2
1887
1888/* System header to define __stub macros and hopefully few prototypes,
1889 which can conflict with char $2 (); below.
1890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1891 <limits.h> exists even on freestanding compilers. */
1892
1893#ifdef __STDC__
1894# include <limits.h>
1895#else
1896# include <assert.h>
1897#endif
1898
1899#undef $2
1900
1901/* Override any GCC internal prototype to avoid an error.
1902 Use char because int might match the return type of a GCC
1903 builtin and then its argument prototype would still apply. */
1904#ifdef __cplusplus
1905extern "C"
1906#endif
1907char $2 ();
1908/* The GNU C library defines this for functions which it implements
1909 to always fail with ENOSYS. Some functions are actually named
1910 something starting with __ and the normal name is an alias. */
1911#if defined __stub_$2 || defined __stub___$2
1912choke me
1913#endif
1914
1915int
1916main ()
1917{
1918return $2 ();
1919 ;
1920 return 0;
1921}
1922_ACEOF
1923if ac_fn_c_try_link "$LINENO"; then :
1924 eval "$3=yes"
1925else
1926 eval "$3=no"
1927fi
1928rm -f core conftest.err conftest.$ac_objext \
1929 conftest$ac_exeext conftest.$ac_ext
1930fi
1931eval ac_res=\$$3
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933$as_echo "$ac_res" >&6; }
1934 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1935
1936} # ac_fn_c_check_func
1937
3cb62297
L
1938# ac_fn_cxx_try_cpp LINENO
1939# ------------------------
1940# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1941ac_fn_cxx_try_cpp ()
1942{
1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944 if { { ac_try="$ac_cpp conftest.$ac_ext"
1945case "(($ac_try" in
1946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1947 *) ac_try_echo=$ac_try;;
1948esac
1949eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1950$as_echo "$ac_try_echo"; } >&5
1951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1952 ac_status=$?
1953 if test -s conftest.err; then
1954 grep -v '^ *+' conftest.err >conftest.er1
1955 cat conftest.er1 >&5
1956 mv -f conftest.er1 conftest.err
1957 fi
1958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1959 test $ac_status = 0; } >/dev/null && {
1960 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1961 test ! -s conftest.err
1962 }; then :
1963 ac_retval=0
1964else
1965 $as_echo "$as_me: failed program was:" >&5
1966sed 's/^/| /' conftest.$ac_ext >&5
1967
1968 ac_retval=1
1969fi
1970 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1971 return $ac_retval
1972
1973} # ac_fn_cxx_try_cpp
1974
1975# ac_fn_cxx_try_link LINENO
1976# -------------------------
1977# Try to link conftest.$ac_ext, and return whether this succeeded.
1978ac_fn_cxx_try_link ()
1979{
1980 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981 rm -f conftest.$ac_objext conftest$ac_exeext
1982 if { { ac_try="$ac_link"
1983case "(($ac_try" in
1984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1985 *) ac_try_echo=$ac_try;;
1986esac
1987eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1988$as_echo "$ac_try_echo"; } >&5
1989 (eval "$ac_link") 2>conftest.err
1990 ac_status=$?
1991 if test -s conftest.err; then
1992 grep -v '^ *+' conftest.err >conftest.er1
1993 cat conftest.er1 >&5
1994 mv -f conftest.er1 conftest.err
1995 fi
1996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1997 test $ac_status = 0; } && {
1998 test -z "$ac_cxx_werror_flag" ||
1999 test ! -s conftest.err
2000 } && test -s conftest$ac_exeext && {
2001 test "$cross_compiling" = yes ||
2002 $as_test_x conftest$ac_exeext
2003 }; then :
2004 ac_retval=0
2005else
2006 $as_echo "$as_me: failed program was:" >&5
2007sed 's/^/| /' conftest.$ac_ext >&5
2008
2009 ac_retval=1
2010fi
2011 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2012 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2013 # interfere with the next link command; also delete a directory that is
2014 # left behind by Apple's compiler. We do this before executing the actions.
2015 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2016 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2017 return $ac_retval
2018
2019} # ac_fn_cxx_try_link
2020
81ecdfbb
RW
2021# ac_fn_c_check_decl LINENO SYMBOL VAR
2022# ------------------------------------
2023# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2024ac_fn_c_check_decl ()
2025{
2026 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
360cfc9c
AM
2027 as_decl_name=`echo $2|sed 's/ *(.*//'`
2028 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2030$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
81ecdfbb
RW
2031if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2032 $as_echo_n "(cached) " >&6
2033else
2034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035/* end confdefs.h. */
2036$4
2037int
2038main ()
2039{
360cfc9c
AM
2040#ifndef $as_decl_name
2041#ifdef __cplusplus
2042 (void) $as_decl_use;
2043#else
2044 (void) $as_decl_name;
2045#endif
81ecdfbb
RW
2046#endif
2047
2048 ;
2049 return 0;
2050}
2051_ACEOF
2052if ac_fn_c_try_compile "$LINENO"; then :
2053 eval "$3=yes"
2054else
2055 eval "$3=no"
2056fi
2057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058fi
2059eval ac_res=\$$3
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2061$as_echo "$ac_res" >&6; }
2062 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2063
2064} # ac_fn_c_check_decl
2065
2066# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2067# --------------------------------------------
2068# Tries to find the compile-time value of EXPR in a program that includes
2069# INCLUDES, setting VAR accordingly. Returns whether the value could be
2070# computed
2071ac_fn_c_compute_int ()
2072{
2073 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2074 if test "$cross_compiling" = yes; then
2075 # Depending upon the size, compute the lo and hi bounds.
2076cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077/* end confdefs.h. */
2078$4
2079int
2080main ()
2081{
2082static int test_array [1 - 2 * !(($2) >= 0)];
2083test_array [0] = 0
2084
2085 ;
2086 return 0;
2087}
2088_ACEOF
2089if ac_fn_c_try_compile "$LINENO"; then :
2090 ac_lo=0 ac_mid=0
2091 while :; do
2092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2093/* end confdefs.h. */
2094$4
2095int
2096main ()
2097{
2098static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2099test_array [0] = 0
2100
2101 ;
2102 return 0;
2103}
2104_ACEOF
2105if ac_fn_c_try_compile "$LINENO"; then :
2106 ac_hi=$ac_mid; break
2107else
2108 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2109 if test $ac_lo -le $ac_mid; then
2110 ac_lo= ac_hi=
2111 break
2112 fi
2113 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2114fi
2115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2116 done
2117else
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119/* end confdefs.h. */
2120$4
2121int
2122main ()
2123{
2124static int test_array [1 - 2 * !(($2) < 0)];
2125test_array [0] = 0
2126
2127 ;
2128 return 0;
2129}
2130_ACEOF
2131if ac_fn_c_try_compile "$LINENO"; then :
2132 ac_hi=-1 ac_mid=-1
2133 while :; do
2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135/* end confdefs.h. */
2136$4
2137int
2138main ()
2139{
2140static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2141test_array [0] = 0
2142
2143 ;
2144 return 0;
2145}
2146_ACEOF
2147if ac_fn_c_try_compile "$LINENO"; then :
2148 ac_lo=$ac_mid; break
2149else
2150 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2151 if test $ac_mid -le $ac_hi; then
2152 ac_lo= ac_hi=
2153 break
2154 fi
2155 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2156fi
2157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2158 done
2159else
2160 ac_lo= ac_hi=
2161fi
2162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2163fi
2164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2165# Binary search between lo and hi bounds.
2166while test "x$ac_lo" != "x$ac_hi"; do
2167 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169/* end confdefs.h. */
2170$4
2171int
2172main ()
2173{
2174static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2175test_array [0] = 0
2176
2177 ;
2178 return 0;
2179}
2180_ACEOF
2181if ac_fn_c_try_compile "$LINENO"; then :
2182 ac_hi=$ac_mid
2183else
2184 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2185fi
2186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2187done
2188case $ac_lo in #((
2189?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2190'') ac_retval=1 ;;
2191esac
2192 else
2193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194/* end confdefs.h. */
2195$4
2196static long int longval () { return $2; }
2197static unsigned long int ulongval () { return $2; }
2198#include <stdio.h>
2199#include <stdlib.h>
2200int
2201main ()
2202{
2203
2204 FILE *f = fopen ("conftest.val", "w");
2205 if (! f)
2206 return 1;
2207 if (($2) < 0)
2208 {
2209 long int i = longval ();
2210 if (i != ($2))
2211 return 1;
2212 fprintf (f, "%ld", i);
2213 }
2214 else
2215 {
2216 unsigned long int i = ulongval ();
2217 if (i != ($2))
2218 return 1;
2219 fprintf (f, "%lu", i);
2220 }
2221 /* Do not output a trailing newline, as this causes \r\n confusion
2222 on some platforms. */
2223 return ferror (f) || fclose (f) != 0;
2224
2225 ;
2226 return 0;
2227}
2228_ACEOF
2229if ac_fn_c_try_run "$LINENO"; then :
2230 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2231else
2232 ac_retval=1
2233fi
2234rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2235 conftest.$ac_objext conftest.beam conftest.$ac_ext
2236rm -f conftest.val
2237
2238 fi
2239 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2240 return $ac_retval
2241
2242} # ac_fn_c_compute_int
2243cat >config.log <<_ACEOF
2244This file contains any messages produced by compilers while
2245running configure, to aid debugging if configure makes a mistake.
2246
2247It was created by $as_me, which was
2248generated by GNU Autoconf 2.64. Invocation command line was
2249
2250 $ $0 $@
2251
2252_ACEOF
2253exec 5>>config.log
2254{
2255cat <<_ASUNAME
2256## --------- ##
2257## Platform. ##
2258## --------- ##
2259
2260hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2261uname -m = `(uname -m) 2>/dev/null || echo unknown`
2262uname -r = `(uname -r) 2>/dev/null || echo unknown`
2263uname -s = `(uname -s) 2>/dev/null || echo unknown`
2264uname -v = `(uname -v) 2>/dev/null || echo unknown`
2265
2266/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2267/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2268
2269/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2270/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2271/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2272/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
42ecbf5e
DJ
2273/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2274/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2275/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2276
2277_ASUNAME
2278
2279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280for as_dir in $PATH
2281do
2282 IFS=$as_save_IFS
2283 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2284 $as_echo "PATH: $as_dir"
2285 done
2286IFS=$as_save_IFS
252b5132 2287
42ecbf5e 2288} >&5
5d64ca4e 2289
42ecbf5e 2290cat >&5 <<_ACEOF
5d64ca4e 2291
5d64ca4e 2292
42ecbf5e
DJ
2293## ----------- ##
2294## Core tests. ##
2295## ----------- ##
5d64ca4e 2296
42ecbf5e 2297_ACEOF
2469cfa2 2298
42ecbf5e
DJ
2299
2300# Keep a trace of the command line.
2301# Strip out --no-create and --no-recursion so they do not pile up.
2302# Strip out --silent because we don't want to record it for future runs.
2303# Also quote any args containing shell meta-characters.
2304# Make two passes to allow for proper duplicate-argument suppression.
2305ac_configure_args=
2306ac_configure_args0=
2307ac_configure_args1=
42ecbf5e
DJ
2308ac_must_keep_next=false
2309for ac_pass in 1 2
2310do
2311 for ac_arg
2312 do
2313 case $ac_arg in
2314 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2315 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2316 | -silent | --silent | --silen | --sile | --sil)
2317 continue ;;
81ecdfbb
RW
2318 *\'*)
2319 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
42ecbf5e
DJ
2320 esac
2321 case $ac_pass in
81ecdfbb 2322 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
42ecbf5e 2323 2)
81ecdfbb 2324 as_fn_append ac_configure_args1 " '$ac_arg'"
42ecbf5e
DJ
2325 if test $ac_must_keep_next = true; then
2326 ac_must_keep_next=false # Got value, back to normal.
2327 else
2328 case $ac_arg in
2329 *=* | --config-cache | -C | -disable-* | --disable-* \
2330 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2331 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2332 | -with-* | --with-* | -without-* | --without-* | --x)
2333 case "$ac_configure_args0 " in
2334 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2335 esac
2336 ;;
2337 -* ) ac_must_keep_next=true ;;
2338 esac
2339 fi
81ecdfbb 2340 as_fn_append ac_configure_args " '$ac_arg'"
42ecbf5e
DJ
2341 ;;
2342 esac
2343 done
2344done
81ecdfbb
RW
2345{ ac_configure_args0=; unset ac_configure_args0;}
2346{ ac_configure_args1=; unset ac_configure_args1;}
42ecbf5e
DJ
2347
2348# When interrupted or exit'd, cleanup temporary files, and complete
2349# config.log. We remove comments because anyway the quotes in there
2350# would cause problems or look ugly.
81ecdfbb
RW
2351# WARNING: Use '\'' to represent an apostrophe within the trap.
2352# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
42ecbf5e
DJ
2353trap 'exit_status=$?
2354 # Save into config.log some information that might help in debugging.
2355 {
2356 echo
2357
2358 cat <<\_ASBOX
2359## ---------------- ##
2360## Cache variables. ##
2361## ---------------- ##
2362_ASBOX
2363 echo
2364 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2365(
2366 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2367 eval ac_val=\$$ac_var
2368 case $ac_val in #(
2369 *${as_nl}*)
2370 case $ac_var in #(
2371 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2372$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2373 esac
2374 case $ac_var in #(
2375 _ | IFS | as_nl) ;; #(
2376 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2377 *) { eval $ac_var=; unset $ac_var;} ;;
2378 esac ;;
2379 esac
2380 done
42ecbf5e 2381 (set) 2>&1 |
81ecdfbb
RW
2382 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2383 *${as_nl}ac_space=\ *)
42ecbf5e 2384 sed -n \
81ecdfbb
RW
2385 "s/'\''/'\''\\\\'\'''\''/g;
2386 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2387 ;; #(
42ecbf5e 2388 *)
81ecdfbb 2389 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42ecbf5e 2390 ;;
81ecdfbb
RW
2391 esac |
2392 sort
2393)
42ecbf5e
DJ
2394 echo
2395
2396 cat <<\_ASBOX
2397## ----------------- ##
2398## Output variables. ##
2399## ----------------- ##
2400_ASBOX
2401 echo
2402 for ac_var in $ac_subst_vars
2403 do
81ecdfbb
RW
2404 eval ac_val=\$$ac_var
2405 case $ac_val in
2406 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2407 esac
2408 $as_echo "$ac_var='\''$ac_val'\''"
42ecbf5e
DJ
2409 done | sort
2410 echo
2411
2412 if test -n "$ac_subst_files"; then
2413 cat <<\_ASBOX
81ecdfbb
RW
2414## ------------------- ##
2415## File substitutions. ##
2416## ------------------- ##
42ecbf5e
DJ
2417_ASBOX
2418 echo
2419 for ac_var in $ac_subst_files
2420 do
81ecdfbb
RW
2421 eval ac_val=\$$ac_var
2422 case $ac_val in
2423 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2424 esac
2425 $as_echo "$ac_var='\''$ac_val'\''"
42ecbf5e
DJ
2426 done | sort
2427 echo
2428 fi
2429
2430 if test -s confdefs.h; then
2431 cat <<\_ASBOX
2432## ----------- ##
2433## confdefs.h. ##
2434## ----------- ##
2435_ASBOX
2436 echo
81ecdfbb 2437 cat confdefs.h
42ecbf5e
DJ
2438 echo
2439 fi
2440 test "$ac_signal" != 0 &&
81ecdfbb
RW
2441 $as_echo "$as_me: caught signal $ac_signal"
2442 $as_echo "$as_me: exit $exit_status"
42ecbf5e 2443 } >&5
81ecdfbb
RW
2444 rm -f core *.core core.conftest.* &&
2445 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
42ecbf5e 2446 exit $exit_status
81ecdfbb 2447' 0
42ecbf5e 2448for ac_signal in 1 2 13 15; do
81ecdfbb 2449 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
42ecbf5e
DJ
2450done
2451ac_signal=0
2452
2453# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2454rm -f -r conftest* confdefs.h
2455
2456$as_echo "/* confdefs.h */" > confdefs.h
42ecbf5e
DJ
2457
2458# Predefined preprocessor variables.
2459
2460cat >>confdefs.h <<_ACEOF
2461#define PACKAGE_NAME "$PACKAGE_NAME"
2462_ACEOF
2463
42ecbf5e
DJ
2464cat >>confdefs.h <<_ACEOF
2465#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2466_ACEOF
2467
42ecbf5e
DJ
2468cat >>confdefs.h <<_ACEOF
2469#define PACKAGE_VERSION "$PACKAGE_VERSION"
2470_ACEOF
2471
42ecbf5e
DJ
2472cat >>confdefs.h <<_ACEOF
2473#define PACKAGE_STRING "$PACKAGE_STRING"
2474_ACEOF
2475
42ecbf5e
DJ
2476cat >>confdefs.h <<_ACEOF
2477#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2478_ACEOF
2479
81ecdfbb
RW
2480cat >>confdefs.h <<_ACEOF
2481#define PACKAGE_URL "$PACKAGE_URL"
2482_ACEOF
2483
42ecbf5e
DJ
2484
2485# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2486# Prefer an explicitly selected file to automatically selected ones.
2487ac_site_file1=NONE
2488ac_site_file2=NONE
2489if test -n "$CONFIG_SITE"; then
2490 ac_site_file1=$CONFIG_SITE
2491elif test "x$prefix" != xNONE; then
2492 ac_site_file1=$prefix/share/config.site
2493 ac_site_file2=$prefix/etc/config.site
2494else
2495 ac_site_file1=$ac_default_prefix/share/config.site
2496 ac_site_file2=$ac_default_prefix/etc/config.site
2497fi
2498for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2499do
2500 test "x$ac_site_file" = xNONE && continue
42ecbf5e 2501 if test -r "$ac_site_file"; then
81ecdfbb
RW
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2503$as_echo "$as_me: loading site script $ac_site_file" >&6;}
42ecbf5e
DJ
2504 sed 's/^/| /' "$ac_site_file" >&5
2505 . "$ac_site_file"
2506 fi
2507done
2508
2509if test -r "$cache_file"; then
2510 # Some versions of bash will fail to source /dev/null (special
2511 # files actually), so we avoid doing that.
2512 if test -f "$cache_file"; then
81ecdfbb
RW
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2514$as_echo "$as_me: loading cache $cache_file" >&6;}
42ecbf5e 2515 case $cache_file in
81ecdfbb
RW
2516 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2517 *) . "./$cache_file";;
42ecbf5e
DJ
2518 esac
2519 fi
2520else
81ecdfbb
RW
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2522$as_echo "$as_me: creating cache $cache_file" >&6;}
42ecbf5e
DJ
2523 >$cache_file
2524fi
2525
2526# Check that the precious variables saved in the cache have kept the same
2527# value.
2528ac_cache_corrupted=false
81ecdfbb 2529for ac_var in $ac_precious_vars; do
42ecbf5e
DJ
2530 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2531 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2532 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2533 eval ac_new_val=\$ac_env_${ac_var}_value
42ecbf5e
DJ
2534 case $ac_old_set,$ac_new_set in
2535 set,)
81ecdfbb
RW
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2537$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
42ecbf5e
DJ
2538 ac_cache_corrupted=: ;;
2539 ,set)
81ecdfbb
RW
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2541$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
42ecbf5e
DJ
2542 ac_cache_corrupted=: ;;
2543 ,);;
2544 *)
2545 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2546 # differences in whitespace do not lead to failure.
2547 ac_old_val_w=`echo x $ac_old_val`
2548 ac_new_val_w=`echo x $ac_new_val`
2549 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2551$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2552 ac_cache_corrupted=:
2553 else
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2555$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2556 eval $ac_var=\$ac_old_val
2557 fi
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2559$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2561$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
42ecbf5e
DJ
2562 fi;;
2563 esac
2564 # Pass precious variables to config.status.
2565 if test "$ac_new_set" = set; then
2566 case $ac_new_val in
81ecdfbb 2567 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
42ecbf5e
DJ
2568 *) ac_arg=$ac_var=$ac_new_val ;;
2569 esac
2570 case " $ac_configure_args " in
2571 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2572 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
42ecbf5e
DJ
2573 esac
2574 fi
2575done
2576if $ac_cache_corrupted; then
81ecdfbb
RW
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2578$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2580$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2581 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
42ecbf5e 2582fi
81ecdfbb
RW
2583## -------------------- ##
2584## Main body of script. ##
2585## -------------------- ##
42ecbf5e
DJ
2586
2587ac_ext=c
2588ac_cpp='$CPP $CPPFLAGS'
2589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2591ac_compiler_gnu=$ac_cv_c_compiler_gnu
2592
2593
2594
42ecbf5e 2595
da594c4a 2596
42ecbf5e
DJ
2597
2598
2599ac_aux_dir=
81ecdfbb
RW
2600for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2601 for ac_t in install-sh install.sh shtool; do
2602 if test -f "$ac_dir/$ac_t"; then
2603 ac_aux_dir=$ac_dir
2604 ac_install_sh="$ac_aux_dir/$ac_t -c"
2605 break 2
2606 fi
2607 done
42ecbf5e
DJ
2608done
2609if test -z "$ac_aux_dir"; then
81ecdfbb 2610 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
42ecbf5e 2611fi
81ecdfbb
RW
2612
2613# These three variables are undocumented and unsupported,
2614# and are intended to be withdrawn in a future Autoconf release.
2615# They can cause serious problems if a builder's source tree is in a directory
2616# whose full name contains unusual characters.
2617ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2618ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2619ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2620
42ecbf5e
DJ
2621
2622# Make sure we can run config.sub.
81ecdfbb
RW
2623$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2624 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2625
2626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2627$as_echo_n "checking build system type... " >&6; }
2628if test "${ac_cv_build+set}" = set; then :
2629 $as_echo_n "(cached) " >&6
2630else
2631 ac_build_alias=$build_alias
2632test "x$ac_build_alias" = x &&
2633 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2634test "x$ac_build_alias" = x &&
2635 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2636ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2637 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2638
2639fi
2640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2641$as_echo "$ac_cv_build" >&6; }
2642case $ac_cv_build in
2643*-*-*) ;;
2644*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2645esac
42ecbf5e 2646build=$ac_cv_build
81ecdfbb
RW
2647ac_save_IFS=$IFS; IFS='-'
2648set x $ac_cv_build
2649shift
2650build_cpu=$1
2651build_vendor=$2
2652shift; shift
2653# Remember, the first character of IFS is used to create $*,
2654# except with old shells:
2655build_os=$*
2656IFS=$ac_save_IFS
2657case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2658
2659
81ecdfbb
RW
2660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2661$as_echo_n "checking host system type... " >&6; }
2662if test "${ac_cv_host+set}" = set; then :
2663 $as_echo_n "(cached) " >&6
2664else
2665 if test "x$host_alias" = x; then
2666 ac_cv_host=$ac_cv_build
42ecbf5e 2667else
81ecdfbb
RW
2668 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2669 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2670fi
42ecbf5e
DJ
2671
2672fi
81ecdfbb
RW
2673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2674$as_echo "$ac_cv_host" >&6; }
2675case $ac_cv_host in
2676*-*-*) ;;
2677*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2678esac
42ecbf5e 2679host=$ac_cv_host
81ecdfbb
RW
2680ac_save_IFS=$IFS; IFS='-'
2681set x $ac_cv_host
2682shift
2683host_cpu=$1
2684host_vendor=$2
2685shift; shift
2686# Remember, the first character of IFS is used to create $*,
2687# except with old shells:
2688host_os=$*
2689IFS=$ac_save_IFS
2690case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2691
2692
81ecdfbb
RW
2693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2694$as_echo_n "checking target system type... " >&6; }
2695if test "${ac_cv_target+set}" = set; then :
2696 $as_echo_n "(cached) " >&6
42ecbf5e 2697else
81ecdfbb
RW
2698 if test "x$target_alias" = x; then
2699 ac_cv_target=$ac_cv_host
2700else
2701 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2702 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2703fi
42ecbf5e
DJ
2704
2705fi
81ecdfbb
RW
2706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2707$as_echo "$ac_cv_target" >&6; }
2708case $ac_cv_target in
2709*-*-*) ;;
2710*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2711esac
42ecbf5e 2712target=$ac_cv_target
81ecdfbb
RW
2713ac_save_IFS=$IFS; IFS='-'
2714set x $ac_cv_target
2715shift
2716target_cpu=$1
2717target_vendor=$2
2718shift; shift
2719# Remember, the first character of IFS is used to create $*,
2720# except with old shells:
2721target_os=$*
2722IFS=$ac_save_IFS
2723case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2724
2725
2726# The aliases save the names the user supplied, while $host etc.
2727# will get canonicalized.
2728test -n "$target_alias" &&
2729 test "$program_prefix$program_suffix$program_transform_name" = \
2730 NONENONEs,x,x, &&
2731 program_prefix=${target_alias}-
02ecc8e9 2732
42ecbf5e
DJ
2733ac_ext=c
2734ac_cpp='$CPP $CPPFLAGS'
2735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2737ac_compiler_gnu=$ac_cv_c_compiler_gnu
2738if test -n "$ac_tool_prefix"; then
2739 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2740set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
2741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2742$as_echo_n "checking for $ac_word... " >&6; }
2743if test "${ac_cv_prog_CC+set}" = set; then :
2744 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2745else
2746 if test -n "$CC"; then
2747 ac_cv_prog_CC="$CC" # Let the user override the test.
2748else
2749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750for as_dir in $PATH
2751do
2752 IFS=$as_save_IFS
2753 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2754 for ac_exec_ext in '' $ac_executable_extensions; do
2755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2756 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 2757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2758 break 2
2759 fi
2760done
81ecdfbb
RW
2761 done
2762IFS=$as_save_IFS
42ecbf5e
DJ
2763
2764fi
2765fi
2766CC=$ac_cv_prog_CC
2767if test -n "$CC"; then
81ecdfbb
RW
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2769$as_echo "$CC" >&6; }
42ecbf5e 2770else
81ecdfbb
RW
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2772$as_echo "no" >&6; }
42ecbf5e
DJ
2773fi
2774
81ecdfbb 2775
42ecbf5e
DJ
2776fi
2777if test -z "$ac_cv_prog_CC"; then
2778 ac_ct_CC=$CC
2779 # Extract the first word of "gcc", so it can be a program name with args.
2780set dummy gcc; ac_word=$2
81ecdfbb
RW
2781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2782$as_echo_n "checking for $ac_word... " >&6; }
2783if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2784 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2785else
2786 if test -n "$ac_ct_CC"; then
2787 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2788else
2789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790for as_dir in $PATH
2791do
2792 IFS=$as_save_IFS
2793 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2794 for ac_exec_ext in '' $ac_executable_extensions; do
2795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2796 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 2797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2798 break 2
2799 fi
2800done
81ecdfbb
RW
2801 done
2802IFS=$as_save_IFS
42ecbf5e
DJ
2803
2804fi
2805fi
2806ac_ct_CC=$ac_cv_prog_ac_ct_CC
2807if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2809$as_echo "$ac_ct_CC" >&6; }
42ecbf5e 2810else
81ecdfbb
RW
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2812$as_echo "no" >&6; }
42ecbf5e
DJ
2813fi
2814
81ecdfbb
RW
2815 if test "x$ac_ct_CC" = x; then
2816 CC=""
2817 else
2818 case $cross_compiling:$ac_tool_warned in
2819yes:)
2820{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2821$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2822ac_tool_warned=yes ;;
2823esac
2824 CC=$ac_ct_CC
2825 fi
42ecbf5e
DJ
2826else
2827 CC="$ac_cv_prog_CC"
2828fi
2829
2830if test -z "$CC"; then
81ecdfbb
RW
2831 if test -n "$ac_tool_prefix"; then
2832 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
42ecbf5e 2833set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
2834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2835$as_echo_n "checking for $ac_word... " >&6; }
2836if test "${ac_cv_prog_CC+set}" = set; then :
2837 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2838else
2839 if test -n "$CC"; then
2840 ac_cv_prog_CC="$CC" # Let the user override the test.
2841else
2842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2843for as_dir in $PATH
2844do
2845 IFS=$as_save_IFS
2846 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2847 for ac_exec_ext in '' $ac_executable_extensions; do
2848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2849 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 2850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2851 break 2
2852 fi
2853done
81ecdfbb
RW
2854 done
2855IFS=$as_save_IFS
42ecbf5e
DJ
2856
2857fi
2858fi
2859CC=$ac_cv_prog_CC
2860if test -n "$CC"; then
81ecdfbb
RW
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2862$as_echo "$CC" >&6; }
42ecbf5e 2863else
81ecdfbb
RW
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2865$as_echo "no" >&6; }
42ecbf5e
DJ
2866fi
2867
42ecbf5e 2868
81ecdfbb 2869 fi
42ecbf5e
DJ
2870fi
2871if test -z "$CC"; then
2872 # Extract the first word of "cc", so it can be a program name with args.
2873set dummy cc; ac_word=$2
81ecdfbb
RW
2874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2875$as_echo_n "checking for $ac_word... " >&6; }
2876if test "${ac_cv_prog_CC+set}" = set; then :
2877 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2878else
2879 if test -n "$CC"; then
2880 ac_cv_prog_CC="$CC" # Let the user override the test.
2881else
2882 ac_prog_rejected=no
2883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884for as_dir in $PATH
2885do
2886 IFS=$as_save_IFS
2887 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2888 for ac_exec_ext in '' $ac_executable_extensions; do
2889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e
DJ
2890 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2891 ac_prog_rejected=yes
2892 continue
2893 fi
2894 ac_cv_prog_CC="cc"
81ecdfbb 2895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2896 break 2
2897 fi
2898done
81ecdfbb
RW
2899 done
2900IFS=$as_save_IFS
42ecbf5e
DJ
2901
2902if test $ac_prog_rejected = yes; then
2903 # We found a bogon in the path, so make sure we never use it.
2904 set dummy $ac_cv_prog_CC
2905 shift
2906 if test $# != 0; then
2907 # We chose a different compiler from the bogus one.
2908 # However, it has the same basename, so the bogon will be chosen
2909 # first if we set CC to just the basename; use the full file name.
2910 shift
2911 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2912 fi
2913fi
2914fi
2915fi
2916CC=$ac_cv_prog_CC
2917if test -n "$CC"; then
81ecdfbb
RW
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2919$as_echo "$CC" >&6; }
42ecbf5e 2920else
81ecdfbb
RW
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2922$as_echo "no" >&6; }
42ecbf5e
DJ
2923fi
2924
81ecdfbb 2925
42ecbf5e
DJ
2926fi
2927if test -z "$CC"; then
2928 if test -n "$ac_tool_prefix"; then
81ecdfbb 2929 for ac_prog in cl.exe
42ecbf5e
DJ
2930 do
2931 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2932set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
2933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2934$as_echo_n "checking for $ac_word... " >&6; }
2935if test "${ac_cv_prog_CC+set}" = set; then :
2936 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2937else
2938 if test -n "$CC"; then
2939 ac_cv_prog_CC="$CC" # Let the user override the test.
2940else
2941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942for as_dir in $PATH
2943do
2944 IFS=$as_save_IFS
2945 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2946 for ac_exec_ext in '' $ac_executable_extensions; do
2947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2948 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 2949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2950 break 2
2951 fi
2952done
81ecdfbb
RW
2953 done
2954IFS=$as_save_IFS
42ecbf5e
DJ
2955
2956fi
2957fi
2958CC=$ac_cv_prog_CC
2959if test -n "$CC"; then
81ecdfbb
RW
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2961$as_echo "$CC" >&6; }
42ecbf5e 2962else
81ecdfbb
RW
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2964$as_echo "no" >&6; }
42ecbf5e
DJ
2965fi
2966
81ecdfbb 2967
42ecbf5e
DJ
2968 test -n "$CC" && break
2969 done
2970fi
2971if test -z "$CC"; then
2972 ac_ct_CC=$CC
81ecdfbb 2973 for ac_prog in cl.exe
42ecbf5e
DJ
2974do
2975 # Extract the first word of "$ac_prog", so it can be a program name with args.
2976set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
2977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2978$as_echo_n "checking for $ac_word... " >&6; }
2979if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2980 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2981else
2982 if test -n "$ac_ct_CC"; then
2983 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2984else
2985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986for as_dir in $PATH
2987do
2988 IFS=$as_save_IFS
2989 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2990 for ac_exec_ext in '' $ac_executable_extensions; do
2991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2992 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 2993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2994 break 2
2995 fi
2996done
81ecdfbb
RW
2997 done
2998IFS=$as_save_IFS
42ecbf5e
DJ
2999
3000fi
3001fi
3002ac_ct_CC=$ac_cv_prog_ac_ct_CC
3003if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3005$as_echo "$ac_ct_CC" >&6; }
42ecbf5e 3006else
81ecdfbb
RW
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3008$as_echo "no" >&6; }
42ecbf5e
DJ
3009fi
3010
81ecdfbb 3011
42ecbf5e
DJ
3012 test -n "$ac_ct_CC" && break
3013done
3014
81ecdfbb
RW
3015 if test "x$ac_ct_CC" = x; then
3016 CC=""
3017 else
3018 case $cross_compiling:$ac_tool_warned in
3019yes:)
3020{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3021$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3022ac_tool_warned=yes ;;
3023esac
3024 CC=$ac_ct_CC
3025 fi
42ecbf5e
DJ
3026fi
3027
3028fi
3029
3030
81ecdfbb
RW
3031test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3032$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3033as_fn_error "no acceptable C compiler found in \$PATH
3034See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e
DJ
3035
3036# Provide some information about the compiler.
81ecdfbb
RW
3037$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3038set X $ac_compile
3039ac_compiler=$2
3040for ac_option in --version -v -V -qversion; do
3041 { { ac_try="$ac_compiler $ac_option >&5"
3042case "(($ac_try" in
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3045esac
3046eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3047$as_echo "$ac_try_echo"; } >&5
3048 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
42ecbf5e 3049 ac_status=$?
81ecdfbb
RW
3050 if test -s conftest.err; then
3051 sed '10a\
3052... rest of stderr output deleted ...
3053 10q' conftest.err >conftest.er1
3054 cat conftest.er1 >&5
3055 rm -f conftest.er1 conftest.err
3056 fi
3057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3058 test $ac_status = 0; }
3059done
42ecbf5e 3060
81ecdfbb 3061cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3062/* end confdefs.h. */
3063
3064int
3065main ()
3066{
3067
3068 ;
3069 return 0;
3070}
3071_ACEOF
3072ac_clean_files_save=$ac_clean_files
81ecdfbb 3073ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
42ecbf5e
DJ
3074# Try to create an executable without -o first, disregard a.out.
3075# It will help us diagnose broken compilers, and finding out an intuition
3076# of exeext.
81ecdfbb
RW
3077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3078$as_echo_n "checking for C compiler default output file name... " >&6; }
3079ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3080
3081# The possible output files:
3082ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3083
3084ac_rmfiles=
3085for ac_file in $ac_files
3086do
3087 case $ac_file in
3088 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3089 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3090 esac
3091done
3092rm -f $ac_rmfiles
3093
3094if { { ac_try="$ac_link_default"
3095case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3098esac
3099eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3100$as_echo "$ac_try_echo"; } >&5
3101 (eval "$ac_link_default") 2>&5
3102 ac_status=$?
3103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3104 test $ac_status = 0; }; then :
3105 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3106# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3107# in a Makefile. We should not override ac_cv_exeext if it was cached,
3108# so that the user can short-circuit this test for compilers unknown to
3109# Autoconf.
3110for ac_file in $ac_files ''
42ecbf5e
DJ
3111do
3112 test -f "$ac_file" || continue
3113 case $ac_file in
81ecdfbb 3114 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
42ecbf5e
DJ
3115 ;;
3116 [ab].out )
3117 # We found the default executable, but exeext='' is most
3118 # certainly right.
3119 break;;
3120 *.* )
81ecdfbb
RW
3121 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3122 then :; else
3123 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3124 fi
3125 # We set ac_cv_exeext here because the later test for it is not
3126 # safe: cross compilers may not add the suffix if given an `-o'
3127 # argument, so we may need to know it at that point already.
3128 # Even if this section looks crufty: it has the advantage of
3129 # actually working.
42ecbf5e
DJ
3130 break;;
3131 * )
3132 break;;
3133 esac
3134done
81ecdfbb
RW
3135test "$ac_cv_exeext" = no && ac_cv_exeext=
3136
42ecbf5e 3137else
81ecdfbb
RW
3138 ac_file=''
3139fi
3140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3141$as_echo "$ac_file" >&6; }
3142if test -z "$ac_file"; then :
3143 $as_echo "$as_me: failed program was:" >&5
42ecbf5e
DJ
3144sed 's/^/| /' conftest.$ac_ext >&5
3145
81ecdfbb
RW
3146{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3147$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3148{ as_fn_set_status 77
3149as_fn_error "C compiler cannot create executables
3150See \`config.log' for more details." "$LINENO" 5; }; }
42ecbf5e 3151fi
42ecbf5e 3152ac_exeext=$ac_cv_exeext
42ecbf5e 3153
81ecdfbb 3154# Check that the compiler produces executables we can run. If not, either
42ecbf5e 3155# the compiler is broken, or we cross compile.
81ecdfbb
RW
3156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3157$as_echo_n "checking whether the C compiler works... " >&6; }
42ecbf5e
DJ
3158# If not cross compiling, check that we can run a simple program.
3159if test "$cross_compiling" != yes; then
3160 if { ac_try='./$ac_file'
81ecdfbb
RW
3161 { { case "(($ac_try" in
3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163 *) ac_try_echo=$ac_try;;
3164esac
3165eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3166$as_echo "$ac_try_echo"; } >&5
3167 (eval "$ac_try") 2>&5
42ecbf5e 3168 ac_status=$?
81ecdfbb
RW
3169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3170 test $ac_status = 0; }; }; then
42ecbf5e
DJ
3171 cross_compiling=no
3172 else
3173 if test "$cross_compiling" = maybe; then
3174 cross_compiling=yes
3175 else
81ecdfbb
RW
3176 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3177$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3178as_fn_error "cannot run C compiled programs.
42ecbf5e 3179If you meant to cross compile, use \`--host'.
81ecdfbb 3180See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e
DJ
3181 fi
3182 fi
3183fi
81ecdfbb
RW
3184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3185$as_echo "yes" >&6; }
42ecbf5e 3186
81ecdfbb 3187rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
42ecbf5e 3188ac_clean_files=$ac_clean_files_save
81ecdfbb 3189# Check that the compiler produces executables we can run. If not, either
42ecbf5e 3190# the compiler is broken, or we cross compile.
81ecdfbb
RW
3191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3192$as_echo_n "checking whether we are cross compiling... " >&6; }
3193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3194$as_echo "$cross_compiling" >&6; }
3195
3196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3197$as_echo_n "checking for suffix of executables... " >&6; }
3198if { { ac_try="$ac_link"
3199case "(($ac_try" in
3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201 *) ac_try_echo=$ac_try;;
3202esac
3203eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3204$as_echo "$ac_try_echo"; } >&5
3205 (eval "$ac_link") 2>&5
42ecbf5e 3206 ac_status=$?
81ecdfbb
RW
3207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3208 test $ac_status = 0; }; then :
42ecbf5e
DJ
3209 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3210# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3211# work properly (i.e., refer to `conftest.exe'), while it won't with
3212# `rm'.
3213for ac_file in conftest.exe conftest conftest.*; do
3214 test -f "$ac_file" || continue
3215 case $ac_file in
81ecdfbb 3216 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
42ecbf5e 3217 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
42ecbf5e
DJ
3218 break;;
3219 * ) break;;
3220 esac
3221done
3222else
81ecdfbb
RW
3223 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3224$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3225as_fn_error "cannot compute suffix of executables: cannot compile and link
3226See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e 3227fi
42ecbf5e 3228rm -f conftest$ac_cv_exeext
81ecdfbb
RW
3229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3230$as_echo "$ac_cv_exeext" >&6; }
42ecbf5e
DJ
3231
3232rm -f conftest.$ac_ext
3233EXEEXT=$ac_cv_exeext
3234ac_exeext=$EXEEXT
81ecdfbb
RW
3235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3236$as_echo_n "checking for suffix of object files... " >&6; }
3237if test "${ac_cv_objext+set}" = set; then :
3238 $as_echo_n "(cached) " >&6
42ecbf5e 3239else
81ecdfbb 3240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3241/* end confdefs.h. */
3242
3243int
3244main ()
3245{
3246
3247 ;
3248 return 0;
3249}
3250_ACEOF
3251rm -f conftest.o conftest.obj
81ecdfbb
RW
3252if { { ac_try="$ac_compile"
3253case "(($ac_try" in
3254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255 *) ac_try_echo=$ac_try;;
3256esac
3257eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3258$as_echo "$ac_try_echo"; } >&5
3259 (eval "$ac_compile") 2>&5
3260 ac_status=$?
3261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3262 test $ac_status = 0; }; then :
3263 for ac_file in conftest.o conftest.obj conftest.*; do
3264 test -f "$ac_file" || continue;
42ecbf5e 3265 case $ac_file in
81ecdfbb 3266 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
42ecbf5e
DJ
3267 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3268 break;;
3269 esac
3270done
3271else
81ecdfbb 3272 $as_echo "$as_me: failed program was:" >&5
42ecbf5e
DJ
3273sed 's/^/| /' conftest.$ac_ext >&5
3274
81ecdfbb
RW
3275{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3276$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3277as_fn_error "cannot compute suffix of object files: cannot compile
3278See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e 3279fi
42ecbf5e
DJ
3280rm -f conftest.$ac_cv_objext conftest.$ac_ext
3281fi
81ecdfbb
RW
3282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3283$as_echo "$ac_cv_objext" >&6; }
42ecbf5e
DJ
3284OBJEXT=$ac_cv_objext
3285ac_objext=$OBJEXT
81ecdfbb
RW
3286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3287$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3288if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3289 $as_echo_n "(cached) " >&6
42ecbf5e 3290else
81ecdfbb 3291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3292/* end confdefs.h. */
3293
3294int
3295main ()
3296{
3297#ifndef __GNUC__
3298 choke me
3299#endif
3300
3301 ;
3302 return 0;
3303}
3304_ACEOF
81ecdfbb 3305if ac_fn_c_try_compile "$LINENO"; then :
42ecbf5e
DJ
3306 ac_compiler_gnu=yes
3307else
81ecdfbb 3308 ac_compiler_gnu=no
42ecbf5e 3309fi
81ecdfbb 3310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e
DJ
3311ac_cv_c_compiler_gnu=$ac_compiler_gnu
3312
3313fi
81ecdfbb
RW
3314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3315$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3316if test $ac_compiler_gnu = yes; then
3317 GCC=yes
3318else
3319 GCC=
3320fi
42ecbf5e
DJ
3321ac_test_CFLAGS=${CFLAGS+set}
3322ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
3323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3324$as_echo_n "checking whether $CC accepts -g... " >&6; }
3325if test "${ac_cv_prog_cc_g+set}" = set; then :
3326 $as_echo_n "(cached) " >&6
3327else
3328 ac_save_c_werror_flag=$ac_c_werror_flag
3329 ac_c_werror_flag=yes
3330 ac_cv_prog_cc_g=no
3331 CFLAGS="-g"
3332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3333/* end confdefs.h. */
3334
3335int
3336main ()
3337{
3338
3339 ;
3340 return 0;
3341}
3342_ACEOF
81ecdfbb 3343if ac_fn_c_try_compile "$LINENO"; then :
42ecbf5e
DJ
3344 ac_cv_prog_cc_g=yes
3345else
81ecdfbb
RW
3346 CFLAGS=""
3347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3348/* end confdefs.h. */
3349
3350int
3351main ()
3352{
3353
3354 ;
3355 return 0;
3356}
3357_ACEOF
3358if ac_fn_c_try_compile "$LINENO"; then :
3359
3360else
3361 ac_c_werror_flag=$ac_save_c_werror_flag
3362 CFLAGS="-g"
3363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3364/* end confdefs.h. */
3365
3366int
3367main ()
3368{
42ecbf5e 3369
81ecdfbb
RW
3370 ;
3371 return 0;
3372}
3373_ACEOF
3374if ac_fn_c_try_compile "$LINENO"; then :
3375 ac_cv_prog_cc_g=yes
3376fi
3377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3378fi
3379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e 3380fi
81ecdfbb
RW
3381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3382 ac_c_werror_flag=$ac_save_c_werror_flag
42ecbf5e 3383fi
81ecdfbb
RW
3384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3385$as_echo "$ac_cv_prog_cc_g" >&6; }
42ecbf5e
DJ
3386if test "$ac_test_CFLAGS" = set; then
3387 CFLAGS=$ac_save_CFLAGS
3388elif test $ac_cv_prog_cc_g = yes; then
3389 if test "$GCC" = yes; then
3390 CFLAGS="-g -O2"
3391 else
3392 CFLAGS="-g"
3393 fi
3394else
3395 if test "$GCC" = yes; then
3396 CFLAGS="-O2"
3397 else
3398 CFLAGS=
3399 fi
3400fi
81ecdfbb
RW
3401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3402$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3403if test "${ac_cv_prog_cc_c89+set}" = set; then :
3404 $as_echo_n "(cached) " >&6
42ecbf5e 3405else
81ecdfbb 3406 ac_cv_prog_cc_c89=no
42ecbf5e 3407ac_save_CC=$CC
81ecdfbb 3408cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3409/* end confdefs.h. */
3410#include <stdarg.h>
3411#include <stdio.h>
3412#include <sys/types.h>
3413#include <sys/stat.h>
3414/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3415struct buf { int x; };
3416FILE * (*rcsopen) (struct buf *, struct stat *, int);
3417static char *e (p, i)
3418 char **p;
3419 int i;
3420{
3421 return p[i];
3422}
3423static char *f (char * (*g) (char **, int), char **p, ...)
3424{
3425 char *s;
3426 va_list v;
3427 va_start (v,p);
3428 s = g (p, va_arg (v,int));
3429 va_end (v);
3430 return s;
3431}
3432
3433/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3434 function prototypes and stuff, but not '\xHH' hex character constants.
3435 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3436 as 'x'. The following induces an error, until -std is added to get
42ecbf5e
DJ
3437 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3438 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3439 that's true only with -std. */
42ecbf5e
DJ
3440int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3441
81ecdfbb
RW
3442/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3443 inside strings and character constants. */
3444#define FOO(x) 'x'
3445int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3446
42ecbf5e
DJ
3447int test (int i, double x);
3448struct s1 {int (*f) (int a);};
3449struct s2 {int (*f) (double a);};
3450int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3451int argc;
3452char **argv;
3453int
3454main ()
3455{
3456return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3457 ;
3458 return 0;
3459}
3460_ACEOF
81ecdfbb
RW
3461for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3462 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
42ecbf5e
DJ
3463do
3464 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3465 if ac_fn_c_try_compile "$LINENO"; then :
3466 ac_cv_prog_cc_c89=$ac_arg
42ecbf5e 3467fi
81ecdfbb
RW
3468rm -f core conftest.err conftest.$ac_objext
3469 test "x$ac_cv_prog_cc_c89" != "xno" && break
42ecbf5e 3470done
81ecdfbb 3471rm -f conftest.$ac_ext
42ecbf5e
DJ
3472CC=$ac_save_CC
3473
3474fi
81ecdfbb
RW
3475# AC_CACHE_VAL
3476case "x$ac_cv_prog_cc_c89" in
3477 x)
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3479$as_echo "none needed" >&6; } ;;
3480 xno)
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3482$as_echo "unsupported" >&6; } ;;
42ecbf5e 3483 *)
81ecdfbb
RW
3484 CC="$CC $ac_cv_prog_cc_c89"
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3486$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
42ecbf5e 3487esac
81ecdfbb 3488if test "x$ac_cv_prog_cc_c89" != xno; then :
42ecbf5e 3489
42ecbf5e
DJ
3490fi
3491
42ecbf5e
DJ
3492ac_ext=c
3493ac_cpp='$CPP $CPPFLAGS'
3494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3496ac_compiler_gnu=$ac_cv_c_compiler_gnu
3497
3498
81ecdfbb
RW
3499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3500$as_echo_n "checking for library containing strerror... " >&6; }
3501if test "${ac_cv_search_strerror+set}" = set; then :
3502 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
3503else
3504 ac_func_search_save_LIBS=$LIBS
81ecdfbb 3505cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3506/* end confdefs.h. */
3507
81ecdfbb
RW
3508/* Override any GCC internal prototype to avoid an error.
3509 Use char because int might match the return type of a GCC
3510 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
3511#ifdef __cplusplus
3512extern "C"
3513#endif
42ecbf5e
DJ
3514char strerror ();
3515int
3516main ()
3517{
81ecdfbb 3518return strerror ();
42ecbf5e
DJ
3519 ;
3520 return 0;
3521}
3522_ACEOF
81ecdfbb
RW
3523for ac_lib in '' cposix; do
3524 if test -z "$ac_lib"; then
3525 ac_res="none required"
3526 else
3527 ac_res=-l$ac_lib
42ecbf5e 3528 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
3529 fi
3530 if ac_fn_c_try_link "$LINENO"; then :
3531 ac_cv_search_strerror=$ac_res
3532fi
3533rm -f core conftest.err conftest.$ac_objext \
3534 conftest$ac_exeext
3535 if test "${ac_cv_search_strerror+set}" = set; then :
3536 break
3537fi
3538done
3539if test "${ac_cv_search_strerror+set}" = set; then :
42ecbf5e 3540
42ecbf5e 3541else
81ecdfbb 3542 ac_cv_search_strerror=no
42ecbf5e 3543fi
81ecdfbb 3544rm conftest.$ac_ext
42ecbf5e
DJ
3545LIBS=$ac_func_search_save_LIBS
3546fi
81ecdfbb
RW
3547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3548$as_echo "$ac_cv_search_strerror" >&6; }
3549ac_res=$ac_cv_search_strerror
3550if test "$ac_res" != no; then :
3551 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e
DJ
3552
3553fi
e5a52504
MM
3554
3555
3556BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
81ecdfbb
RW
3557am__api_version='1.11'
3558
e5a52504
MM
3559# Find a good install program. We prefer a C program (faster),
3560# so one script is as good as another. But avoid the broken or
3561# incompatible versions:
3562# SysV /etc/install, /usr/sbin/install
3563# SunOS /usr/etc/install
3564# IRIX /sbin/install
3565# AIX /bin/install
42ecbf5e 3566# AmigaOS /C/install, which installs bootblocks on floppy discs
e5a52504
MM
3567# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3568# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3569# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
42ecbf5e 3570# OS/2's system install, which has a completely different semantic
e5a52504 3571# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 3572# Reject install programs that cannot install multiple files.
81ecdfbb
RW
3573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3574$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5a52504 3575if test -z "$INSTALL"; then
81ecdfbb
RW
3576if test "${ac_cv_path_install+set}" = set; then :
3577 $as_echo_n "(cached) " >&6
e5a52504 3578else
42ecbf5e
DJ
3579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3580for as_dir in $PATH
3581do
3582 IFS=$as_save_IFS
3583 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3584 # Account for people who put trailing slashes in PATH elements.
3585case $as_dir/ in #((
3586 ./ | .// | /[cC]/* | \
42ecbf5e 3587 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 3588 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
42ecbf5e
DJ
3589 /usr/ucb/* ) ;;
3590 *)
3591 # OSF1 and SCO ODT 3.0 have their own names for install.
3592 # Don't use installbsd from OSF since it installs stuff as root
3593 # by default.
3594 for ac_prog in ginstall scoinst install; do
3595 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 3596 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
252b5132 3597 if test $ac_prog = install &&
42ecbf5e 3598 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
3599 # AIX install. It has an incompatible calling convention.
3600 :
42ecbf5e
DJ
3601 elif test $ac_prog = install &&
3602 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3603 # program-specific install script used by HP pwplus--don't use.
3604 :
252b5132 3605 else
58c85be7
RW
3606 rm -rf conftest.one conftest.two conftest.dir
3607 echo one > conftest.one
3608 echo two > conftest.two
3609 mkdir conftest.dir
3610 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3611 test -s conftest.one && test -s conftest.two &&
3612 test -s conftest.dir/conftest.one &&
3613 test -s conftest.dir/conftest.two
3614 then
3615 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3616 break 3
3617 fi
252b5132
RH
3618 fi
3619 fi
3620 done
42ecbf5e
DJ
3621 done
3622 ;;
3623esac
81ecdfbb
RW
3624
3625 done
3626IFS=$as_save_IFS
42ecbf5e 3627
58c85be7 3628rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
3629
3630fi
3631 if test "${ac_cv_path_install+set}" = set; then
42ecbf5e 3632 INSTALL=$ac_cv_path_install
252b5132 3633 else
58c85be7
RW
3634 # As a last resort, use the slow shell script. Don't cache a
3635 # value for INSTALL within a source directory, because that will
252b5132 3636 # break other packages using the cache if that directory is
58c85be7 3637 # removed, or if the value is a relative name.
42ecbf5e 3638 INSTALL=$ac_install_sh
252b5132
RH
3639 fi
3640fi
81ecdfbb
RW
3641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3642$as_echo "$INSTALL" >&6; }
252b5132
RH
3643
3644# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3645# It thinks the first close brace ends the variable substitution.
3646test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3647
42ecbf5e 3648test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
3649
3650test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3651
81ecdfbb
RW
3652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3653$as_echo_n "checking whether build environment is sane... " >&6; }
252b5132
RH
3654# Just in case
3655sleep 1
42ecbf5e 3656echo timestamp > conftest.file
81ecdfbb
RW
3657# Reject unsafe characters in $srcdir or the absolute working directory
3658# name. Accept space and tab only in the latter.
3659am_lf='
3660'
3661case `pwd` in
3662 *[\\\"\#\$\&\'\`$am_lf]*)
3663 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3664esac
3665case $srcdir in
3666 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3667 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3668esac
3669
252b5132
RH
3670# Do `set' in a subshell so we don't clobber the current shell's
3671# arguments. Must try -L first in case configure is actually a
3672# symlink; some systems play weird games with the mod time of symlinks
3673# (eg FreeBSD returns the mod time of the symlink's containing
3674# directory).
3675if (
81ecdfbb 3676 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
252b5132
RH
3677 if test "$*" = "X"; then
3678 # -L didn't work.
81ecdfbb 3679 set X `ls -t "$srcdir/configure" conftest.file`
252b5132 3680 fi
42ecbf5e
DJ
3681 rm -f conftest.file
3682 if test "$*" != "X $srcdir/configure conftest.file" \
3683 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
3684
3685 # If neither matched, then we have a broken ls. This can happen
3686 # if, for instance, CONFIG_SHELL is bash and it inherits a
3687 # broken ls alias from the environment. This has actually
3688 # happened. Such a system could not be considered "sane".
81ecdfbb
RW
3689 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3690alias in your environment" "$LINENO" 5
252b5132
RH
3691 fi
3692
42ecbf5e 3693 test "$2" = conftest.file
252b5132
RH
3694 )
3695then
3696 # Ok.
3697 :
3698else
81ecdfbb
RW
3699 as_fn_error "newly created file is older than distributed files!
3700Check your system clock" "$LINENO" 5
252b5132 3701fi
81ecdfbb
RW
3702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3703$as_echo "yes" >&6; }
252b5132 3704test "$program_prefix" != NONE &&
81ecdfbb 3705 program_transform_name="s&^&$program_prefix&;$program_transform_name"
252b5132
RH
3706# Use a double $ so make ignores it.
3707test "$program_suffix" != NONE &&
81ecdfbb
RW
3708 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3709# Double any \ or $.
42ecbf5e 3710# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
3711ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3712program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
42ecbf5e
DJ
3713
3714# expand $ac_aux_dir to an absolute path
3715am_aux_dir=`cd $ac_aux_dir && pwd`
3716
81ecdfbb
RW
3717if test x"${MISSING+set}" != xset; then
3718 case $am_aux_dir in
3719 *\ * | *\ *)
3720 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3721 *)
3722 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3723 esac
3724fi
42ecbf5e
DJ
3725# Use eval to expand $SHELL
3726if eval "$MISSING --run true"; then
3727 am_missing_run="$MISSING --run "
3728else
3729 am_missing_run=
81ecdfbb
RW
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3731$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3732fi
3733
3734if test x"${install_sh}" != xset; then
3735 case $am_aux_dir in
3736 *\ * | *\ *)
3737 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3738 *)
3739 install_sh="\${SHELL} $am_aux_dir/install-sh"
3740 esac
3741fi
3742
3743# Installed binaries are usually stripped using `strip' when the user
3744# run `make install-strip'. However `strip' might not be the right
3745# tool to use in cross-compilation environments, therefore Automake
3746# will honor the `STRIP' environment variable to overrule this program.
3747if test "$cross_compiling" != no; then
3748 if test -n "$ac_tool_prefix"; then
3749 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3750set dummy ${ac_tool_prefix}strip; ac_word=$2
3751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3752$as_echo_n "checking for $ac_word... " >&6; }
3753if test "${ac_cv_prog_STRIP+set}" = set; then :
3754 $as_echo_n "(cached) " >&6
3755else
3756 if test -n "$STRIP"; then
3757 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3758else
3759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3760for as_dir in $PATH
3761do
3762 IFS=$as_save_IFS
3763 test -z "$as_dir" && as_dir=.
3764 for ac_exec_ext in '' $ac_executable_extensions; do
3765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3766 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3768 break 2
3769 fi
3770done
3771 done
3772IFS=$as_save_IFS
3773
3774fi
3775fi
3776STRIP=$ac_cv_prog_STRIP
3777if test -n "$STRIP"; then
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3779$as_echo "$STRIP" >&6; }
3780else
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3782$as_echo "no" >&6; }
3783fi
3784
3785
3786fi
3787if test -z "$ac_cv_prog_STRIP"; then
3788 ac_ct_STRIP=$STRIP
3789 # Extract the first word of "strip", so it can be a program name with args.
3790set dummy strip; ac_word=$2
3791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3792$as_echo_n "checking for $ac_word... " >&6; }
3793if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3794 $as_echo_n "(cached) " >&6
3795else
3796 if test -n "$ac_ct_STRIP"; then
3797 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3798else
3799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3800for as_dir in $PATH
3801do
3802 IFS=$as_save_IFS
3803 test -z "$as_dir" && as_dir=.
3804 for ac_exec_ext in '' $ac_executable_extensions; do
3805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3806 ac_cv_prog_ac_ct_STRIP="strip"
3807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3808 break 2
3809 fi
3810done
3811 done
3812IFS=$as_save_IFS
3813
3814fi
3815fi
3816ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3817if test -n "$ac_ct_STRIP"; then
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3819$as_echo "$ac_ct_STRIP" >&6; }
3820else
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3822$as_echo "no" >&6; }
3823fi
3824
3825 if test "x$ac_ct_STRIP" = x; then
3826 STRIP=":"
3827 else
3828 case $cross_compiling:$ac_tool_warned in
3829yes:)
3830{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3831$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3832ac_tool_warned=yes ;;
3833esac
3834 STRIP=$ac_ct_STRIP
3835 fi
3836else
3837 STRIP="$ac_cv_prog_STRIP"
3838fi
3839
3840fi
3841INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3842
3843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3844$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3845if test -z "$MKDIR_P"; then
3846 if test "${ac_cv_path_mkdir+set}" = set; then :
3847 $as_echo_n "(cached) " >&6
3848else
3849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3850for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3851do
3852 IFS=$as_save_IFS
3853 test -z "$as_dir" && as_dir=.
3854 for ac_prog in mkdir gmkdir; do
3855 for ac_exec_ext in '' $ac_executable_extensions; do
3856 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3857 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3858 'mkdir (GNU coreutils) '* | \
3859 'mkdir (coreutils) '* | \
3860 'mkdir (fileutils) '4.1*)
3861 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3862 break 3;;
3863 esac
3864 done
3865 done
42ecbf5e 3866 done
81ecdfbb
RW
3867IFS=$as_save_IFS
3868
3869fi
3870
3871 if test "${ac_cv_path_mkdir+set}" = set; then
3872 MKDIR_P="$ac_cv_path_mkdir -p"
42ecbf5e 3873 else
81ecdfbb
RW
3874 # As a last resort, use the slow shell script. Don't cache a
3875 # value for MKDIR_P within a source directory, because that will
3876 # break other packages using the cache if that directory is
3877 # removed, or if the value is a relative name.
3878 test -d ./--version && rmdir ./--version
3879 MKDIR_P="$ac_install_sh -d"
42ecbf5e
DJ
3880 fi
3881fi
81ecdfbb
RW
3882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3883$as_echo "$MKDIR_P" >&6; }
3884
3885mkdir_p="$MKDIR_P"
3886case $mkdir_p in
3887 [\\/$]* | ?:[\\/]*) ;;
3888 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3889esac
42ecbf5e
DJ
3890
3891for ac_prog in gawk mawk nawk awk
3892do
3893 # Extract the first word of "$ac_prog", so it can be a program name with args.
3894set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
3895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3896$as_echo_n "checking for $ac_word... " >&6; }
3897if test "${ac_cv_prog_AWK+set}" = set; then :
3898 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
3899else
3900 if test -n "$AWK"; then
3901 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3902else
3903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3904for as_dir in $PATH
3905do
3906 IFS=$as_save_IFS
3907 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3908 for ac_exec_ext in '' $ac_executable_extensions; do
3909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 3910 ac_cv_prog_AWK="$ac_prog"
81ecdfbb 3911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
3912 break 2
3913 fi
3914done
81ecdfbb
RW
3915 done
3916IFS=$as_save_IFS
42ecbf5e
DJ
3917
3918fi
3919fi
3920AWK=$ac_cv_prog_AWK
3921if test -n "$AWK"; then
81ecdfbb
RW
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3923$as_echo "$AWK" >&6; }
42ecbf5e 3924else
81ecdfbb
RW
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3926$as_echo "no" >&6; }
42ecbf5e 3927fi
252b5132 3928
81ecdfbb 3929
42ecbf5e
DJ
3930 test -n "$AWK" && break
3931done
252b5132 3932
81ecdfbb
RW
3933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3934$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3935set x ${MAKE-make}
3936ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3937if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3938 $as_echo_n "(cached) " >&6
252b5132 3939else
42ecbf5e 3940 cat >conftest.make <<\_ACEOF
81ecdfbb 3941SHELL = /bin/sh
252b5132 3942all:
81ecdfbb 3943 @echo '@@@%%%=$(MAKE)=@@@%%%'
42ecbf5e 3944_ACEOF
252b5132 3945# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
81ecdfbb
RW
3946case `${MAKE-make} -f conftest.make 2>/dev/null` in
3947 *@@@%%%=?*=@@@%%%*)
3948 eval ac_cv_prog_make_${ac_make}_set=yes;;
3949 *)
3950 eval ac_cv_prog_make_${ac_make}_set=no;;
3951esac
42ecbf5e 3952rm -f conftest.make
252b5132 3953fi
81ecdfbb
RW
3954if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3956$as_echo "yes" >&6; }
252b5132
RH
3957 SET_MAKE=
3958else
81ecdfbb
RW
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3960$as_echo "no" >&6; }
252b5132
RH
3961 SET_MAKE="MAKE=${MAKE-make}"
3962fi
3963
42ecbf5e
DJ
3964rm -rf .tst 2>/dev/null
3965mkdir .tst 2>/dev/null
3966if test -d .tst; then
3967 am__leading_dot=.
3968else
3969 am__leading_dot=_
3970fi
3971rmdir .tst 2>/dev/null
3972
3973DEPDIR="${am__leading_dot}deps"
3974
81ecdfbb 3975ac_config_commands="$ac_config_commands depfiles"
42ecbf5e
DJ
3976
3977
3978am_make=${MAKE-make}
3979cat > confinc << 'END'
3980am__doit:
81ecdfbb 3981 @echo this is the am__doit target
42ecbf5e
DJ
3982.PHONY: am__doit
3983END
3984# If we don't find an include directive, just comment out the code.
81ecdfbb
RW
3985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3986$as_echo_n "checking for style of include used by $am_make... " >&6; }
42ecbf5e
DJ
3987am__include="#"
3988am__quote=
3989_am_result=none
3990# First try GNU make style include.
3991echo "include confinc" > confmf
81ecdfbb
RW
3992# Ignore all kinds of additional output from `make'.
3993case `$am_make -s -f confmf 2> /dev/null` in #(
3994*the\ am__doit\ target*)
3995 am__include=include
3996 am__quote=
3997 _am_result=GNU
3998 ;;
3999esac
42ecbf5e
DJ
4000# Now try BSD make style include.
4001if test "$am__include" = "#"; then
4002 echo '.include "confinc"' > confmf
81ecdfbb
RW
4003 case `$am_make -s -f confmf 2> /dev/null` in #(
4004 *the\ am__doit\ target*)
4005 am__include=.include
4006 am__quote="\""
4007 _am_result=BSD
4008 ;;
4009 esac
42ecbf5e
DJ
4010fi
4011
4012
81ecdfbb
RW
4013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4014$as_echo "$_am_result" >&6; }
42ecbf5e
DJ
4015rm -f confinc confmf
4016
81ecdfbb
RW
4017# Check whether --enable-dependency-tracking was given.
4018if test "${enable_dependency_tracking+set}" = set; then :
4019 enableval=$enable_dependency_tracking;
4020fi
42ecbf5e 4021
42ecbf5e
DJ
4022if test "x$enable_dependency_tracking" != xno; then
4023 am_depcomp="$ac_aux_dir/depcomp"
4024 AMDEPBACKSLASH='\'
4025fi
81ecdfbb 4026 if test "x$enable_dependency_tracking" != xno; then
42ecbf5e
DJ
4027 AMDEP_TRUE=
4028 AMDEP_FALSE='#'
4029else
4030 AMDEP_TRUE='#'
4031 AMDEP_FALSE=
4032fi
4033
e5a52504 4034
81ecdfbb
RW
4035if test "`cd $srcdir && pwd`" != "`pwd`"; then
4036 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4037 # is not polluted with repeated "-I."
4038 am__isrc=' -I$(srcdir)'
4039 # test to see if srcdir already configured
4040 if test -f $srcdir/config.status; then
4041 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4042 fi
42ecbf5e 4043fi
252b5132 4044
42ecbf5e
DJ
4045# test whether we have cygpath
4046if test -z "$CYGPATH_W"; then
4047 if (cygpath --version) >/dev/null 2>/dev/null; then
4048 CYGPATH_W='cygpath -w'
4049 else
4050 CYGPATH_W=echo
4051 fi
252b5132 4052fi
42ecbf5e
DJ
4053
4054
4055# Define the identity of the package.
4056 PACKAGE=ld
4057 VERSION=${BFD_VERSION}
4058
4059
4060cat >>confdefs.h <<_ACEOF
e5a52504 4061#define PACKAGE "$PACKAGE"
42ecbf5e
DJ
4062_ACEOF
4063
252b5132 4064
42ecbf5e 4065cat >>confdefs.h <<_ACEOF
e5a52504 4066#define VERSION "$VERSION"
42ecbf5e
DJ
4067_ACEOF
4068
4069# Some tools Automake needs.
4070
4071ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4072
4073
4074AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4075
4076
4077AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4078
4079
4080AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4081
e5a52504 4082
42ecbf5e 4083MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
e5a52504 4084
42ecbf5e
DJ
4085# We need awk for the "check" target. The system "awk" is bad on
4086# some platforms.
4087# Always define AMTAR for backward compatibility.
4088
4089AMTAR=${AMTAR-"${am_missing_run}tar"}
4090
4091am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4092
4093
4094
4095
4096depcc="$CC" am_compiler_list=
4097
81ecdfbb
RW
4098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4099$as_echo_n "checking dependency style of $depcc... " >&6; }
4100if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4101 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
4102else
4103 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4104 # We make a subdir and do the tests there. Otherwise we can end up
4105 # making bogus files that we don't know about and never remove. For
4106 # instance it was reported that on HP-UX the gcc test will end up
4107 # making a dummy file named `D' -- because `-MD' means `put the output
4108 # in D'.
4109 mkdir conftest.dir
4110 # Copy depcomp to subdir because otherwise we won't find it if we're
4111 # using a relative directory.
4112 cp "$am_depcomp" conftest.dir
4113 cd conftest.dir
4114 # We will build objects and dependencies in a subdirectory because
4115 # it helps to detect inapplicable dependency modes. For instance
4116 # both Tru64's cc and ICC support -MD to output dependencies as a
4117 # side effect of compilation, but ICC will put the dependencies in
4118 # the current directory while Tru64 will put them in the object
4119 # directory.
4120 mkdir sub
4121
4122 am_cv_CC_dependencies_compiler_type=none
4123 if test "$am_compiler_list" = ""; then
4124 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4125 fi
81ecdfbb
RW
4126 am__universal=false
4127 case " $depcc " in #(
4128 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4129 esac
4130
42ecbf5e
DJ
4131 for depmode in $am_compiler_list; do
4132 # Setup a source with many dependencies, because some compilers
4133 # like to wrap large dependency lists on column 80 (with \), and
4134 # we should not choose a depcomp mode which is confused by this.
4135 #
4136 # We need to recreate these files for each test, as the compiler may
4137 # overwrite some of them when testing with obscure command lines.
4138 # This happens at least with the AIX C compiler.
4139 : > sub/conftest.c
4140 for i in 1 2 3 4 5 6; do
4141 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4142 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4143 # Solaris 8's {/usr,}/bin/sh.
4144 touch sub/conftst$i.h
4145 done
4146 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4147
81ecdfbb
RW
4148 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4149 # mode. It turns out that the SunPro C++ compiler does not properly
4150 # handle `-M -o', and we need to detect this. Also, some Intel
4151 # versions had trouble with output in subdirs
4152 am__obj=sub/conftest.${OBJEXT-o}
4153 am__minus_obj="-o $am__obj"
42ecbf5e 4154 case $depmode in
81ecdfbb
RW
4155 gcc)
4156 # This depmode causes a compiler race in universal mode.
4157 test "$am__universal" = false || continue
4158 ;;
42ecbf5e
DJ
4159 nosideeffect)
4160 # after this tag, mechanisms are not by side-effect, so they'll
4161 # only be used when explicitly requested
4162 if test "x$enable_dependency_tracking" = xyes; then
4163 continue
4164 else
4165 break
4166 fi
4167 ;;
81ecdfbb
RW
4168 msvisualcpp | msvcmsys)
4169 # This compiler won't grok `-c -o', but also, the minuso test has
4170 # not run yet. These depmodes are late enough in the game, and
4171 # so weak that their functioning should not be impacted.
4172 am__obj=conftest.${OBJEXT-o}
4173 am__minus_obj=
4174 ;;
42ecbf5e
DJ
4175 none) break ;;
4176 esac
42ecbf5e 4177 if depmode=$depmode \
81ecdfbb 4178 source=sub/conftest.c object=$am__obj \
42ecbf5e 4179 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
81ecdfbb 4180 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
42ecbf5e 4181 >/dev/null 2>conftest.err &&
81ecdfbb 4182 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
42ecbf5e 4183 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
81ecdfbb 4184 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
42ecbf5e
DJ
4185 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4186 # icc doesn't choke on unknown options, it will just issue warnings
4187 # or remarks (even with -Werror). So we grep stderr for any message
4188 # that says an option was ignored or not supported.
4189 # When given -MP, icc 7.0 and 7.1 complain thusly:
4190 # icc: Command line warning: ignoring option '-M'; no argument required
4191 # The diagnosis changed in icc 8.0:
4192 # icc: Command line remark: option '-MP' not supported
4193 if (grep 'ignoring option' conftest.err ||
4194 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4195 am_cv_CC_dependencies_compiler_type=$depmode
4196 break
4197 fi
4198 fi
4199 done
2469cfa2 4200
42ecbf5e
DJ
4201 cd ..
4202 rm -rf conftest.dir
2469cfa2 4203else
42ecbf5e
DJ
4204 am_cv_CC_dependencies_compiler_type=none
4205fi
4206
2469cfa2 4207fi
81ecdfbb
RW
4208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4209$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
42ecbf5e
DJ
4210CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4211
81ecdfbb 4212 if
42ecbf5e
DJ
4213 test "x$enable_dependency_tracking" != xno \
4214 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4215 am__fastdepCC_TRUE=
4216 am__fastdepCC_FALSE='#'
2469cfa2 4217else
42ecbf5e
DJ
4218 am__fastdepCC_TRUE='#'
4219 am__fastdepCC_FALSE=
2469cfa2 4220fi
2469cfa2 4221
2469cfa2 4222
e5a52504 4223
42ecbf5e 4224
64ac50ac
RW
4225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4226$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4227 # Check whether --enable-maintainer-mode was given.
4228if test "${enable_maintainer_mode+set}" = set; then :
4229 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4230else
4231 USE_MAINTAINER_MODE=no
4232fi
4233
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4235$as_echo "$USE_MAINTAINER_MODE" >&6; }
4236 if test $USE_MAINTAINER_MODE = yes; then
4237 MAINTAINER_MODE_TRUE=
4238 MAINTAINER_MODE_FALSE='#'
4239else
4240 MAINTAINER_MODE_TRUE='#'
4241 MAINTAINER_MODE_FALSE=
4242fi
4243
4244 MAINT=$MAINTAINER_MODE_TRUE
4245
4246
4247
d7040cdb 4248
81ecdfbb
RW
4249# Check whether --with-lib-path was given.
4250if test "${with_lib_path+set}" = set; then :
4251 withval=$with_lib_path; LIB_PATH=$withval
4252fi
4253
4254# Check whether --enable-targets was given.
4255if test "${enable_targets+set}" = set; then :
4256 enableval=$enable_targets; case "${enableval}" in
4257 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
ce2cded5
L
4258 ;;
4259 no) enable_targets= ;;
4260 *) enable_targets=$enableval ;;
4261esac
81ecdfbb
RW
4262fi
4263# Check whether --enable-64-bit-bfd was given.
4264if test "${enable_64_bit_bfd+set}" = set; then :
4265 enableval=$enable_64_bit_bfd; case "${enableval}" in
ce2cded5
L
4266 yes) want64=true ;;
4267 no) want64=false ;;
81ecdfbb 4268 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
ce2cded5 4269esac
2469cfa2 4270else
ce2cded5 4271 want64=false
81ecdfbb 4272fi
d7040cdb
SE
4273
4274
81ecdfbb
RW
4275# Check whether --with-sysroot was given.
4276if test "${with_sysroot+set}" = set; then :
4277 withval=$with_sysroot;
ce2cded5
L
4278 case ${with_sysroot} in
4279 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
4280 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4281 esac
d7040cdb 4282
ce2cded5
L
4283 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4284 use_sysroot=yes
d7040cdb 4285
ce2cded5
L
4286 if test "x$prefix" = xNONE; then
4287 test_prefix=/usr/local
4288 else
4289 test_prefix=$prefix
4290 fi
4291 if test "x$exec_prefix" = xNONE; then
4292 test_exec_prefix=$test_prefix
4293 else
4294 test_exec_prefix=$exec_prefix
4295 fi
4296 case ${TARGET_SYSTEM_ROOT} in
4297 "${test_prefix}"|"${test_prefix}/"*|\
4298 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
4299 '${prefix}'|'${prefix}/'*|\
4300 '${exec_prefix}'|'${exec_prefix}/'*)
4301 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4302 TARGET_SYSTEM_ROOT_DEFINE="$t"
4303 ;;
4304 esac
d7040cdb 4305
e5a52504 4306else
d7040cdb 4307
ce2cded5
L
4308 use_sysroot=no
4309 TARGET_SYSTEM_ROOT=
4310 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
d7040cdb 4311
81ecdfbb
RW
4312fi
4313
d7040cdb
SE
4314
4315
4316
4317
4fda8867
NC
4318# Check whether --enable-gold was given.
4319if test "${enable_gold+set}" = set; then :
4320 enableval=$enable_gold; case "${enableval}" in
c7791212 4321 default)
4fda8867
NC
4322 install_as_default=no
4323 installed_linker=ld.bfd
4324 ;;
c7791212 4325 yes|no)
4fda8867
NC
4326 install_as_default=yes
4327 installed_linker=ld.bfd
4328 ;;
4329 *)
4330 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
4331 ;;
4332 esac
4333else
c7791212
NC
4334 install_as_default=yes
4335 installed_linker=ld.bfd
4fda8867
NC
4336fi
4337
4338
4339
4340
81ecdfbb
RW
4341# Check whether --enable-got was given.
4342if test "${enable_got+set}" = set; then :
4343 enableval=$enable_got; case "${enableval}" in
7fb9f789 4344 target | single | negative | multigot) got_handling=$enableval ;;
81ecdfbb 4345 *) as_fn_error "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;;
7fb9f789
NC
4346esac
4347else
4348 got_handling=target
81ecdfbb
RW
4349fi
4350
7fb9f789
NC
4351
4352case "${got_handling}" in
4353 target)
4354
81ecdfbb 4355$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h
7fb9f789
NC
4356 ;;
4357 single)
4358
81ecdfbb 4359$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h
7fb9f789
NC
4360 ;;
4361 negative)
4362
81ecdfbb 4363$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h
7fb9f789
NC
4364 ;;
4365 multigot)
4366
81ecdfbb 4367$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h
7fb9f789 4368 ;;
81ecdfbb 4369 *) as_fn_error "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;;
7fb9f789
NC
4370esac
4371
397841b5
AM
4372ac_ext=c
4373ac_cpp='$CPP $CPPFLAGS'
4374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4376ac_compiler_gnu=$ac_cv_c_compiler_gnu
4377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4378$as_echo_n "checking how to run the C preprocessor... " >&6; }
4379# On Suns, sometimes $CPP names a directory.
4380if test -n "$CPP" && test -d "$CPP"; then
4381 CPP=
ce2cded5 4382fi
397841b5
AM
4383if test -z "$CPP"; then
4384 if test "${ac_cv_prog_CPP+set}" = set; then :
4385 $as_echo_n "(cached) " >&6
4386else
4387 # Double quotes because CPP needs to be expanded
4388 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4389 do
4390 ac_preproc_ok=false
4391for ac_c_preproc_warn_flag in '' yes
4392do
4393 # Use a header file that comes with gcc, so configuring glibc
4394 # with a fresh cross-compiler works.
4395 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4396 # <limits.h> exists even on freestanding compilers.
4397 # On the NeXT, cc -E runs the code through the compiler's parser,
4398 # not just through cpp. "Syntax error" is here to catch this case.
4399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4400/* end confdefs.h. */
4401#ifdef __STDC__
4402# include <limits.h>
4403#else
4404# include <assert.h>
4405#endif
4406 Syntax error
4407_ACEOF
4408if ac_fn_c_try_cpp "$LINENO"; then :
d7040cdb 4409
397841b5
AM
4410else
4411 # Broken: fails on valid input.
4412continue
ce2cded5 4413fi
397841b5 4414rm -f conftest.err conftest.$ac_ext
d7040cdb 4415
397841b5
AM
4416 # OK, works on sane cases. Now check whether nonexistent headers
4417 # can be detected and how.
4418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4419/* end confdefs.h. */
4420#include <ac_nonexistent.h>
4421_ACEOF
4422if ac_fn_c_try_cpp "$LINENO"; then :
4423 # Broken: success on invalid input.
4424continue
4425else
4426 # Passes both tests.
4427ac_preproc_ok=:
4428break
ce2cded5 4429fi
397841b5 4430rm -f conftest.err conftest.$ac_ext
d7040cdb 4431
397841b5
AM
4432done
4433# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4434rm -f conftest.err conftest.$ac_ext
4435if $ac_preproc_ok; then :
4436 break
81ecdfbb
RW
4437fi
4438
397841b5
AM
4439 done
4440 ac_cv_prog_CPP=$CPP
d7040cdb 4441
ce2cded5 4442fi
397841b5
AM
4443 CPP=$ac_cv_prog_CPP
4444else
4445 ac_cv_prog_CPP=$CPP
4446fi
4447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4448$as_echo "$CPP" >&6; }
4449ac_preproc_ok=false
4450for ac_c_preproc_warn_flag in '' yes
4451do
4452 # Use a header file that comes with gcc, so configuring glibc
4453 # with a fresh cross-compiler works.
4454 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4455 # <limits.h> exists even on freestanding compilers.
4456 # On the NeXT, cc -E runs the code through the compiler's parser,
4457 # not just through cpp. "Syntax error" is here to catch this case.
4458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4459/* end confdefs.h. */
4460#ifdef __STDC__
4461# include <limits.h>
4462#else
4463# include <assert.h>
4464#endif
4465 Syntax error
4466_ACEOF
4467if ac_fn_c_try_cpp "$LINENO"; then :
d7040cdb 4468
397841b5
AM
4469else
4470 # Broken: fails on valid input.
4471continue
4472fi
4473rm -f conftest.err conftest.$ac_ext
2469cfa2 4474
397841b5
AM
4475 # OK, works on sane cases. Now check whether nonexistent headers
4476 # can be detected and how.
4477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4478/* end confdefs.h. */
4479#include <ac_nonexistent.h>
4480_ACEOF
4481if ac_fn_c_try_cpp "$LINENO"; then :
4482 # Broken: success on invalid input.
4483continue
4484else
4485 # Passes both tests.
4486ac_preproc_ok=:
4487break
4488fi
4489rm -f conftest.err conftest.$ac_ext
d7040cdb 4490
397841b5
AM
4491done
4492# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4493rm -f conftest.err conftest.$ac_ext
4494if $ac_preproc_ok; then :
d7040cdb 4495
397841b5
AM
4496else
4497 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4498$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4499as_fn_error "C preprocessor \"$CPP\" fails sanity check
4500See \`config.log' for more details." "$LINENO" 5; }
ce2cded5 4501fi
d7040cdb 4502
ce2cded5
L
4503ac_ext=c
4504ac_cpp='$CPP $CPPFLAGS'
4505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4507ac_compiler_gnu=$ac_cv_c_compiler_gnu
397841b5
AM
4508
4509
4510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4511$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4512if test "${ac_cv_path_GREP+set}" = set; then :
81ecdfbb 4513 $as_echo_n "(cached) " >&6
d7040cdb 4514else
397841b5
AM
4515 if test -z "$GREP"; then
4516 ac_path_GREP_found=false
4517 # Loop through the user's path and test for each of PROGNAME-LIST
4518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
d7040cdb
SE
4520do
4521 IFS=$as_save_IFS
4522 test -z "$as_dir" && as_dir=.
397841b5 4523 for ac_prog in grep ggrep; do
81ecdfbb 4524 for ac_exec_ext in '' $ac_executable_extensions; do
397841b5
AM
4525 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4526 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4527# Check for GNU ac_path_GREP and select it if it is found.
4528 # Check for GNU $ac_path_GREP
4529case `"$ac_path_GREP" --version 2>&1` in
4530*GNU*)
4531 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4532*)
4533 ac_count=0
4534 $as_echo_n 0123456789 >"conftest.in"
4535 while :
4536 do
4537 cat "conftest.in" "conftest.in" >"conftest.tmp"
4538 mv "conftest.tmp" "conftest.in"
4539 cp "conftest.in" "conftest.nl"
4540 $as_echo 'GREP' >> "conftest.nl"
4541 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4542 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4543 as_fn_arith $ac_count + 1 && ac_count=$as_val
4544 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4545 # Best one so far, save it but keep looking for a better one
4546 ac_cv_path_GREP="$ac_path_GREP"
4547 ac_path_GREP_max=$ac_count
4548 fi
4549 # 10*(2^10) chars as input seems more than enough
4550 test $ac_count -gt 10 && break
81ecdfbb 4551 done
397841b5
AM
4552 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4553esac
d7040cdb 4554
397841b5
AM
4555 $ac_path_GREP_found && break 3
4556 done
4557 done
4558 done
4559IFS=$as_save_IFS
4560 if test -z "$ac_cv_path_GREP"; then
4561 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4562 fi
d7040cdb 4563else
397841b5 4564 ac_cv_path_GREP=$GREP
d7040cdb 4565fi
d7040cdb 4566
252b5132 4567fi
397841b5
AM
4568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4569$as_echo "$ac_cv_path_GREP" >&6; }
4570 GREP="$ac_cv_path_GREP"
4571
4572
4573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4574$as_echo_n "checking for egrep... " >&6; }
4575if test "${ac_cv_path_EGREP+set}" = set; then :
4576 $as_echo_n "(cached) " >&6
4577else
4578 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4579 then ac_cv_path_EGREP="$GREP -E"
4580 else
4581 if test -z "$EGREP"; then
4582 ac_path_EGREP_found=false
4583 # Loop through the user's path and test for each of PROGNAME-LIST
4584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4586do
4587 IFS=$as_save_IFS
4588 test -z "$as_dir" && as_dir=.
4589 for ac_prog in egrep; do
4590 for ac_exec_ext in '' $ac_executable_extensions; do
4591 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4592 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4593# Check for GNU ac_path_EGREP and select it if it is found.
4594 # Check for GNU $ac_path_EGREP
4595case `"$ac_path_EGREP" --version 2>&1` in
4596*GNU*)
4597 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4598*)
4599 ac_count=0
4600 $as_echo_n 0123456789 >"conftest.in"
4601 while :
4602 do
4603 cat "conftest.in" "conftest.in" >"conftest.tmp"
4604 mv "conftest.tmp" "conftest.in"
4605 cp "conftest.in" "conftest.nl"
4606 $as_echo 'EGREP' >> "conftest.nl"
4607 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4608 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4609 as_fn_arith $ac_count + 1 && ac_count=$as_val
4610 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4611 # Best one so far, save it but keep looking for a better one
4612 ac_cv_path_EGREP="$ac_path_EGREP"
4613 ac_path_EGREP_max=$ac_count
4614 fi
4615 # 10*(2^10) chars as input seems more than enough
4616 test $ac_count -gt 10 && break
4617 done
4618 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4619esac
4620
4621 $ac_path_EGREP_found && break 3
4622 done
4623 done
4624 done
4625IFS=$as_save_IFS
4626 if test -z "$ac_cv_path_EGREP"; then
4627 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4628 fi
4629else
4630 ac_cv_path_EGREP=$EGREP
4631fi
4632
4633 fi
4634fi
4635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4636$as_echo "$ac_cv_path_EGREP" >&6; }
4637 EGREP="$ac_cv_path_EGREP"
4638
4639
4640
4641GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4642cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4643/* end confdefs.h. */
4644__GNUC__
4645_ACEOF
4646if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4647 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
4648
4649else
4650 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
4651fi
4652rm -f conftest*
4653
4654
4655# Check whether --enable-werror was given.
4656if test "${enable_werror+set}" = set; then :
4657 enableval=$enable_werror; case "${enableval}" in
4658 yes | y) ERROR_ON_WARNING="yes" ;;
4659 no | n) ERROR_ON_WARNING="no" ;;
4660 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
4661 esac
4662fi
4663
4664
4665# Disable -Wformat by default when using gcc on mingw
4666case "${host}" in
4667 *-*-mingw32*)
4668 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4669 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
4670 fi
4671 ;;
4672 *) ;;
4673esac
4674
4675# Enable -Werror by default when using gcc
4676if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4677 ERROR_ON_WARNING=yes
4678fi
4679
4680NO_WERROR=
4681if test "${ERROR_ON_WARNING}" = yes ; then
4682 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
4683 NO_WERROR="-Wno-error"
4684fi
4685
4686if test "${GCC}" = yes ; then
4687 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4688fi
4689
4690# Check whether --enable-build-warnings was given.
4691if test "${enable_build_warnings+set}" = set; then :
4692 enableval=$enable_build_warnings; case "${enableval}" in
4693 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4694 no) if test "${GCC}" = yes ; then
4695 WARN_CFLAGS="-w"
4696 fi;;
4697 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4698 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
4699 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4700 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
4701 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4702esac
4703fi
4704
4705
4706if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4707 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4708fi
4709
4710
4711
4712
4713
4714ac_config_headers="$ac_config_headers config.h:config.in"
4715
4716
4717if test -z "$target" ; then
4718 as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
4719fi
4720if test -z "$host" ; then
4721 as_fn_error "Unrecognized host system type; please check config.sub." "$LINENO" 5
4722fi
4723
4724# host-specific stuff:
4725
4726ac_ext=c
4727ac_cpp='$CPP $CPPFLAGS'
4728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4730ac_compiler_gnu=$ac_cv_c_compiler_gnu
4731if test -n "$ac_tool_prefix"; then
4732 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4733set dummy ${ac_tool_prefix}gcc; ac_word=$2
4734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4735$as_echo_n "checking for $ac_word... " >&6; }
4736if test "${ac_cv_prog_CC+set}" = set; then :
4737 $as_echo_n "(cached) " >&6
4738else
4739 if test -n "$CC"; then
4740 ac_cv_prog_CC="$CC" # Let the user override the test.
4741else
4742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4743for as_dir in $PATH
4744do
4745 IFS=$as_save_IFS
4746 test -z "$as_dir" && as_dir=.
4747 for ac_exec_ext in '' $ac_executable_extensions; do
4748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4749 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4751 break 2
4752 fi
4753done
4754 done
4755IFS=$as_save_IFS
4756
4757fi
4758fi
4759CC=$ac_cv_prog_CC
4760if test -n "$CC"; then
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4762$as_echo "$CC" >&6; }
4763else
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4765$as_echo "no" >&6; }
4766fi
4767
4768
4769fi
4770if test -z "$ac_cv_prog_CC"; then
4771 ac_ct_CC=$CC
4772 # Extract the first word of "gcc", so it can be a program name with args.
4773set dummy 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; }
81ecdfbb
RW
4776if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4777 $as_echo_n "(cached) " >&6
252b5132 4778else
ce2cded5
L
4779 if test -n "$ac_ct_CC"; then
4780 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 4781else
ce2cded5
L
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=.
81ecdfbb
RW
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
ce2cded5 4789 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 4790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4791 break 2
4792 fi
4793done
81ecdfbb
RW
4794 done
4795IFS=$as_save_IFS
4796
252b5132
RH
4797fi
4798fi
ce2cded5
L
4799ac_ct_CC=$ac_cv_prog_ac_ct_CC
4800if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4802$as_echo "$ac_ct_CC" >&6; }
252b5132 4803else
81ecdfbb
RW
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4805$as_echo "no" >&6; }
252b5132 4806fi
ce2cded5 4807
81ecdfbb
RW
4808 if test "x$ac_ct_CC" = x; then
4809 CC=""
4810 else
4811 case $cross_compiling:$ac_tool_warned in
4812yes:)
4813{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4814$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4815ac_tool_warned=yes ;;
4816esac
4817 CC=$ac_ct_CC
4818 fi
252b5132 4819else
ce2cded5 4820 CC="$ac_cv_prog_CC"
252b5132 4821fi
d7040cdb 4822
ce2cded5 4823if test -z "$CC"; then
81ecdfbb
RW
4824 if test -n "$ac_tool_prefix"; then
4825 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ce2cded5 4826set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
4827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4828$as_echo_n "checking for $ac_word... " >&6; }
4829if test "${ac_cv_prog_CC+set}" = set; then :
4830 $as_echo_n "(cached) " >&6
252b5132 4831else
ce2cded5
L
4832 if test -n "$CC"; then
4833 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 4834else
ce2cded5
L
4835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836for as_dir in $PATH
4837do
4838 IFS=$as_save_IFS
4839 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4840 for ac_exec_ext in '' $ac_executable_extensions; do
4841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4842 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4844 break 2
4845 fi
4846done
81ecdfbb
RW
4847 done
4848IFS=$as_save_IFS
ce2cded5 4849
252b5132
RH
4850fi
4851fi
ce2cded5
L
4852CC=$ac_cv_prog_CC
4853if test -n "$CC"; then
81ecdfbb
RW
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4855$as_echo "$CC" >&6; }
ce2cded5 4856else
81ecdfbb
RW
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4858$as_echo "no" >&6; }
ce2cded5
L
4859fi
4860
ce2cded5 4861
81ecdfbb 4862 fi
ce2cded5
L
4863fi
4864if test -z "$CC"; then
4865 # Extract the first word of "cc", so it can be a program name with args.
4866set dummy 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
ce2cded5
L
4871else
4872 if test -n "$CC"; then
4873 ac_cv_prog_CC="$CC" # Let the user override the test.
4874else
4875 ac_prog_rejected=no
4876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877for as_dir in $PATH
4878do
4879 IFS=$as_save_IFS
4880 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4881 for ac_exec_ext in '' $ac_executable_extensions; do
4882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5
L
4883 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4884 ac_prog_rejected=yes
4885 continue
4886 fi
4887 ac_cv_prog_CC="cc"
81ecdfbb 4888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4889 break 2
4890 fi
4891done
81ecdfbb
RW
4892 done
4893IFS=$as_save_IFS
ce2cded5
L
4894
4895if test $ac_prog_rejected = yes; then
4896 # We found a bogon in the path, so make sure we never use it.
4897 set dummy $ac_cv_prog_CC
4898 shift
4899 if test $# != 0; then
4900 # We chose a different compiler from the bogus one.
4901 # However, it has the same basename, so the bogon will be chosen
4902 # first if we set CC to just the basename; use the full file name.
4903 shift
4904 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4905 fi
4906fi
4907fi
4908fi
4909CC=$ac_cv_prog_CC
4910if test -n "$CC"; then
81ecdfbb
RW
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4912$as_echo "$CC" >&6; }
ce2cded5 4913else
81ecdfbb
RW
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4915$as_echo "no" >&6; }
ce2cded5
L
4916fi
4917
81ecdfbb 4918
ce2cded5
L
4919fi
4920if test -z "$CC"; then
d7040cdb 4921 if test -n "$ac_tool_prefix"; then
81ecdfbb 4922 for ac_prog in cl.exe
d7040cdb
SE
4923 do
4924 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4925set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4927$as_echo_n "checking for $ac_word... " >&6; }
4928if test "${ac_cv_prog_CC+set}" = set; then :
4929 $as_echo_n "(cached) " >&6
d7040cdb 4930else
ce2cded5
L
4931 if test -n "$CC"; then
4932 ac_cv_prog_CC="$CC" # Let the user override the test.
d7040cdb
SE
4933else
4934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935for as_dir in $PATH
4936do
4937 IFS=$as_save_IFS
4938 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4939 for ac_exec_ext in '' $ac_executable_extensions; do
4940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4941 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
4943 break 2
4944 fi
4945done
81ecdfbb
RW
4946 done
4947IFS=$as_save_IFS
d7040cdb
SE
4948
4949fi
4950fi
ce2cded5
L
4951CC=$ac_cv_prog_CC
4952if test -n "$CC"; then
81ecdfbb
RW
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4954$as_echo "$CC" >&6; }
d7040cdb 4955else
81ecdfbb
RW
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4957$as_echo "no" >&6; }
d7040cdb
SE
4958fi
4959
81ecdfbb 4960
ce2cded5 4961 test -n "$CC" && break
d7040cdb
SE
4962 done
4963fi
ce2cded5
L
4964if test -z "$CC"; then
4965 ac_ct_CC=$CC
81ecdfbb 4966 for ac_prog in cl.exe
d7040cdb
SE
4967do
4968 # Extract the first word of "$ac_prog", so it can be a program name with args.
4969set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4971$as_echo_n "checking for $ac_word... " >&6; }
4972if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4973 $as_echo_n "(cached) " >&6
d7040cdb 4974else
ce2cded5
L
4975 if test -n "$ac_ct_CC"; then
4976 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d7040cdb
SE
4977else
4978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979for as_dir in $PATH
4980do
4981 IFS=$as_save_IFS
4982 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4983 for ac_exec_ext in '' $ac_executable_extensions; do
4984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4985 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
4987 break 2
4988 fi
4989done
81ecdfbb
RW
4990 done
4991IFS=$as_save_IFS
d7040cdb
SE
4992
4993fi
4994fi
ce2cded5
L
4995ac_ct_CC=$ac_cv_prog_ac_ct_CC
4996if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4998$as_echo "$ac_ct_CC" >&6; }
d7040cdb 4999else
81ecdfbb
RW
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5001$as_echo "no" >&6; }
d7040cdb
SE
5002fi
5003
81ecdfbb 5004
ce2cded5 5005 test -n "$ac_ct_CC" && break
d7040cdb 5006done
d7040cdb 5007
81ecdfbb
RW
5008 if test "x$ac_ct_CC" = x; then
5009 CC=""
5010 else
5011 case $cross_compiling:$ac_tool_warned in
5012yes:)
5013{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5014$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5015ac_tool_warned=yes ;;
5016esac
5017 CC=$ac_ct_CC
5018 fi
d7040cdb
SE
5019fi
5020
d7040cdb 5021fi
d7040cdb
SE
5022
5023
81ecdfbb
RW
5024test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5025$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5026as_fn_error "no acceptable C compiler found in \$PATH
5027See \`config.log' for more details." "$LINENO" 5; }
d7040cdb 5028
ce2cded5 5029# Provide some information about the compiler.
81ecdfbb
RW
5030$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5031set X $ac_compile
5032ac_compiler=$2
5033for ac_option in --version -v -V -qversion; do
5034 { { ac_try="$ac_compiler $ac_option >&5"
5035case "(($ac_try" in
5036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5037 *) ac_try_echo=$ac_try;;
5038esac
5039eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5040$as_echo "$ac_try_echo"; } >&5
5041 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
ce2cded5 5042 ac_status=$?
81ecdfbb
RW
5043 if test -s conftest.err; then
5044 sed '10a\
5045... rest of stderr output deleted ...
5046 10q' conftest.err >conftest.er1
5047 cat conftest.er1 >&5
5048 rm -f conftest.er1 conftest.err
5049 fi
5050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5051 test $ac_status = 0; }
5052done
d7040cdb 5053
81ecdfbb
RW
5054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5055$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5056if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5057 $as_echo_n "(cached) " >&6
d7040cdb 5058else
81ecdfbb 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 5060/* end confdefs.h. */
d7040cdb 5061
ce2cded5
L
5062int
5063main ()
5064{
5065#ifndef __GNUC__
5066 choke me
5067#endif
5068
5069 ;
5070 return 0;
5071}
5072_ACEOF
81ecdfbb 5073if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5 5074 ac_compiler_gnu=yes
d7040cdb 5075else
81ecdfbb 5076 ac_compiler_gnu=no
d7040cdb 5077fi
81ecdfbb 5078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce2cded5 5079ac_cv_c_compiler_gnu=$ac_compiler_gnu
d7040cdb 5080
ce2cded5 5081fi
81ecdfbb
RW
5082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5083$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5084if test $ac_compiler_gnu = yes; then
5085 GCC=yes
5086else
5087 GCC=
5088fi
ce2cded5
L
5089ac_test_CFLAGS=${CFLAGS+set}
5090ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
5091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5092$as_echo_n "checking whether $CC accepts -g... " >&6; }
5093if test "${ac_cv_prog_cc_g+set}" = set; then :
5094 $as_echo_n "(cached) " >&6
5095else
5096 ac_save_c_werror_flag=$ac_c_werror_flag
5097 ac_c_werror_flag=yes
5098 ac_cv_prog_cc_g=no
5099 CFLAGS="-g"
5100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 5101/* end confdefs.h. */
d7040cdb 5102
ce2cded5
L
5103int
5104main ()
5105{
d7040cdb 5106
ce2cded5
L
5107 ;
5108 return 0;
5109}
5110_ACEOF
81ecdfbb 5111if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5
L
5112 ac_cv_prog_cc_g=yes
5113else
81ecdfbb
RW
5114 CFLAGS=""
5115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5116/* end confdefs.h. */
5117
5118int
5119main ()
5120{
5121
5122 ;
5123 return 0;
5124}
5125_ACEOF
5126if ac_fn_c_try_compile "$LINENO"; then :
5127
5128else
5129 ac_c_werror_flag=$ac_save_c_werror_flag
5130 CFLAGS="-g"
5131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5132/* end confdefs.h. */
5133
5134int
5135main ()
5136{
d7040cdb 5137
81ecdfbb
RW
5138 ;
5139 return 0;
5140}
5141_ACEOF
5142if ac_fn_c_try_compile "$LINENO"; then :
5143 ac_cv_prog_cc_g=yes
5144fi
5145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5146fi
5147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 5148fi
81ecdfbb
RW
5149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5150 ac_c_werror_flag=$ac_save_c_werror_flag
ce2cded5 5151fi
81ecdfbb
RW
5152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5153$as_echo "$ac_cv_prog_cc_g" >&6; }
ce2cded5
L
5154if test "$ac_test_CFLAGS" = set; then
5155 CFLAGS=$ac_save_CFLAGS
5156elif test $ac_cv_prog_cc_g = yes; then
5157 if test "$GCC" = yes; then
5158 CFLAGS="-g -O2"
5159 else
5160 CFLAGS="-g"
5161 fi
d7040cdb 5162else
ce2cded5
L
5163 if test "$GCC" = yes; then
5164 CFLAGS="-O2"
5165 else
5166 CFLAGS=
5167 fi
d7040cdb 5168fi
81ecdfbb
RW
5169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5170$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5171if test "${ac_cv_prog_cc_c89+set}" = set; then :
5172 $as_echo_n "(cached) " >&6
d7040cdb 5173else
81ecdfbb 5174 ac_cv_prog_cc_c89=no
ce2cded5 5175ac_save_CC=$CC
81ecdfbb 5176cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
5177/* end confdefs.h. */
5178#include <stdarg.h>
5179#include <stdio.h>
5180#include <sys/types.h>
5181#include <sys/stat.h>
5182/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5183struct buf { int x; };
5184FILE * (*rcsopen) (struct buf *, struct stat *, int);
5185static char *e (p, i)
5186 char **p;
5187 int i;
5188{
5189 return p[i];
5190}
5191static char *f (char * (*g) (char **, int), char **p, ...)
5192{
5193 char *s;
5194 va_list v;
5195 va_start (v,p);
5196 s = g (p, va_arg (v,int));
5197 va_end (v);
5198 return s;
5199}
d7040cdb 5200
ce2cded5
L
5201/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5202 function prototypes and stuff, but not '\xHH' hex character constants.
5203 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 5204 as 'x'. The following induces an error, until -std is added to get
ce2cded5
L
5205 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5206 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 5207 that's true only with -std. */
ce2cded5 5208int osf4_cc_array ['\x00' == 0 ? 1 : -1];
d7040cdb 5209
81ecdfbb
RW
5210/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5211 inside strings and character constants. */
5212#define FOO(x) 'x'
5213int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5214
ce2cded5
L
5215int test (int i, double x);
5216struct s1 {int (*f) (int a);};
5217struct s2 {int (*f) (double a);};
5218int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5219int argc;
5220char **argv;
5221int
5222main ()
5223{
5224return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5225 ;
5226 return 0;
5227}
5228_ACEOF
81ecdfbb
RW
5229for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5230 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ce2cded5
L
5231do
5232 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
5233 if ac_fn_c_try_compile "$LINENO"; then :
5234 ac_cv_prog_cc_c89=$ac_arg
ce2cded5 5235fi
81ecdfbb
RW
5236rm -f core conftest.err conftest.$ac_objext
5237 test "x$ac_cv_prog_cc_c89" != "xno" && break
ce2cded5 5238done
81ecdfbb 5239rm -f conftest.$ac_ext
ce2cded5 5240CC=$ac_save_CC
d7040cdb 5241
ce2cded5 5242fi
81ecdfbb
RW
5243# AC_CACHE_VAL
5244case "x$ac_cv_prog_cc_c89" in
5245 x)
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5247$as_echo "none needed" >&6; } ;;
5248 xno)
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5250$as_echo "unsupported" >&6; } ;;
ce2cded5 5251 *)
81ecdfbb
RW
5252 CC="$CC $ac_cv_prog_cc_c89"
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5254$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
d7040cdb 5255esac
81ecdfbb 5256if test "x$ac_cv_prog_cc_c89" != xno; then :
d7040cdb 5257
ce2cded5 5258fi
d7040cdb 5259
ce2cded5
L
5260ac_ext=c
5261ac_cpp='$CPP $CPPFLAGS'
5262ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5263ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5264ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 5265
3cb62297
L
5266ac_ext=cpp
5267ac_cpp='$CXXCPP $CPPFLAGS'
5268ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5269ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5270ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5271if test -z "$CXX"; then
5272 if test -n "$CCC"; then
5273 CXX=$CCC
5274 else
5275 if test -n "$ac_tool_prefix"; then
5276 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5277 do
5278 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5279set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5281$as_echo_n "checking for $ac_word... " >&6; }
5282if test "${ac_cv_prog_CXX+set}" = set; then :
81ecdfbb
RW
5283 $as_echo_n "(cached) " >&6
5284else
3cb62297
L
5285 if test -n "$CXX"; then
5286 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5287else
5288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289for as_dir in $PATH
5290do
5291 IFS=$as_save_IFS
5292 test -z "$as_dir" && as_dir=.
5293 for ac_exec_ext in '' $ac_executable_extensions; do
5294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5295 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5297 break 2
5298 fi
5299done
5300 done
5301IFS=$as_save_IFS
81ecdfbb 5302
3cb62297
L
5303fi
5304fi
5305CXX=$ac_cv_prog_CXX
5306if test -n "$CXX"; then
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5308$as_echo "$CXX" >&6; }
81ecdfbb 5309else
3cb62297
L
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5311$as_echo "no" >&6; }
7357c5b6 5312fi
42ecbf5e 5313
81ecdfbb 5314
3cb62297
L
5315 test -n "$CXX" && break
5316 done
7357c5b6 5317fi
3cb62297
L
5318if test -z "$CXX"; then
5319 ac_ct_CXX=$CXX
5320 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5321do
5322 # Extract the first word of "$ac_prog", so it can be a program name with args.
5323set dummy $ac_prog; ac_word=$2
5324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5325$as_echo_n "checking for $ac_word... " >&6; }
5326if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5327 $as_echo_n "(cached) " >&6
5328else
5329 if test -n "$ac_ct_CXX"; then
5330 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5331else
5332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5333for as_dir in $PATH
5334do
5335 IFS=$as_save_IFS
5336 test -z "$as_dir" && as_dir=.
5337 for ac_exec_ext in '' $ac_executable_extensions; do
5338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5339 ac_cv_prog_ac_ct_CXX="$ac_prog"
5340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5341 break 2
5342 fi
5343done
5344 done
5345IFS=$as_save_IFS
252b5132 5346
3cb62297
L
5347fi
5348fi
5349ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5350if test -n "$ac_ct_CXX"; then
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5352$as_echo "$ac_ct_CXX" >&6; }
5353else
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5355$as_echo "no" >&6; }
7357c5b6 5356fi
252b5132 5357
42ecbf5e 5358
3cb62297
L
5359 test -n "$ac_ct_CXX" && break
5360done
81ecdfbb 5361
3cb62297
L
5362 if test "x$ac_ct_CXX" = x; then
5363 CXX="g++"
5364 else
5365 case $cross_compiling:$ac_tool_warned in
5366yes:)
5367{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5368$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5369ac_tool_warned=yes ;;
5370esac
5371 CXX=$ac_ct_CXX
5372 fi
7357c5b6 5373fi
ac48eca1 5374
3cb62297 5375 fi
7357c5b6 5376fi
3cb62297
L
5377# Provide some information about the compiler.
5378$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5379set X $ac_compile
5380ac_compiler=$2
5381for ac_option in --version -v -V -qversion; do
5382 { { ac_try="$ac_compiler $ac_option >&5"
5383case "(($ac_try" in
5384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5385 *) ac_try_echo=$ac_try;;
5386esac
5387eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5388$as_echo "$ac_try_echo"; } >&5
5389 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5390 ac_status=$?
5391 if test -s conftest.err; then
5392 sed '10a\
5393... rest of stderr output deleted ...
5394 10q' conftest.err >conftest.er1
5395 cat conftest.er1 >&5
5396 rm -f conftest.er1 conftest.err
5397 fi
5398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5399 test $ac_status = 0; }
5400done
d7040cdb 5401
3cb62297
L
5402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5403$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5404if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5405 $as_echo_n "(cached) " >&6
7357c5b6 5406else
81ecdfbb 5407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6 5408/* end confdefs.h. */
d7040cdb 5409
7357c5b6
AM
5410int
5411main ()
5412{
3cb62297
L
5413#ifndef __GNUC__
5414 choke me
5415#endif
5416
5417 ;
81ecdfbb 5418 return 0;
7357c5b6
AM
5419}
5420_ACEOF
3cb62297
L
5421if ac_fn_cxx_try_compile "$LINENO"; then :
5422 ac_compiler_gnu=yes
81ecdfbb 5423else
3cb62297 5424 ac_compiler_gnu=no
7357c5b6 5425fi
3cb62297
L
5426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5427ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
81ecdfbb 5428
7357c5b6 5429fi
3cb62297
L
5430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5431$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5432if test $ac_compiler_gnu = yes; then
5433 GXX=yes
5434else
5435 GXX=
7357c5b6 5436fi
3cb62297
L
5437ac_test_CXXFLAGS=${CXXFLAGS+set}
5438ac_save_CXXFLAGS=$CXXFLAGS
5439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5440$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5441if test "${ac_cv_prog_cxx_g+set}" = set; then :
5442 $as_echo_n "(cached) " >&6
5443else
5444 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5445 ac_cxx_werror_flag=yes
5446 ac_cv_prog_cxx_g=no
5447 CXXFLAGS="-g"
5448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5449/* end confdefs.h. */
252b5132 5450
3cb62297
L
5451int
5452main ()
5453{
252b5132 5454
3cb62297
L
5455 ;
5456 return 0;
5457}
7357c5b6 5458_ACEOF
3cb62297
L
5459if ac_fn_cxx_try_compile "$LINENO"; then :
5460 ac_cv_prog_cxx_g=yes
5461else
5462 CXXFLAGS=""
5463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464/* end confdefs.h. */
42ecbf5e 5465
3cb62297
L
5466int
5467main ()
5468{
42ecbf5e 5469
3cb62297
L
5470 ;
5471 return 0;
5472}
5473_ACEOF
5474if ac_fn_cxx_try_compile "$LINENO"; then :
42ecbf5e 5475
3cb62297
L
5476else
5477 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5478 CXXFLAGS="-g"
5479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5480/* end confdefs.h. */
42ecbf5e 5481
3cb62297
L
5482int
5483main ()
5484{
42ecbf5e 5485
3cb62297
L
5486 ;
5487 return 0;
5488}
5489_ACEOF
5490if ac_fn_cxx_try_compile "$LINENO"; then :
5491 ac_cv_prog_cxx_g=yes
5492fi
5493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5494fi
5495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5496fi
5497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5498 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5499fi
5500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5501$as_echo "$ac_cv_prog_cxx_g" >&6; }
5502if test "$ac_test_CXXFLAGS" = set; then
5503 CXXFLAGS=$ac_save_CXXFLAGS
5504elif test $ac_cv_prog_cxx_g = yes; then
5505 if test "$GXX" = yes; then
5506 CXXFLAGS="-g -O2"
5507 else
5508 CXXFLAGS="-g"
5509 fi
ce2cded5 5510else
3cb62297
L
5511 if test "$GXX" = yes; then
5512 CXXFLAGS="-O2"
5513 else
5514 CXXFLAGS=
5515 fi
ce2cded5 5516fi
3cb62297
L
5517ac_ext=c
5518ac_cpp='$CPP $CPPFLAGS'
5519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5521ac_compiler_gnu=$ac_cv_c_compiler_gnu
42ecbf5e 5522
3cb62297 5523depcc="$CXX" am_compiler_list=
e5a52504 5524
3cb62297
L
5525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5526$as_echo_n "checking dependency style of $depcc... " >&6; }
5527if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5528 $as_echo_n "(cached) " >&6
5529else
5530 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5531 # We make a subdir and do the tests there. Otherwise we can end up
5532 # making bogus files that we don't know about and never remove. For
5533 # instance it was reported that on HP-UX the gcc test will end up
5534 # making a dummy file named `D' -- because `-MD' means `put the output
5535 # in D'.
5536 mkdir conftest.dir
5537 # Copy depcomp to subdir because otherwise we won't find it if we're
5538 # using a relative directory.
5539 cp "$am_depcomp" conftest.dir
5540 cd conftest.dir
5541 # We will build objects and dependencies in a subdirectory because
5542 # it helps to detect inapplicable dependency modes. For instance
5543 # both Tru64's cc and ICC support -MD to output dependencies as a
5544 # side effect of compilation, but ICC will put the dependencies in
5545 # the current directory while Tru64 will put them in the object
5546 # directory.
5547 mkdir sub
7357c5b6 5548
3cb62297
L
5549 am_cv_CXX_dependencies_compiler_type=none
5550 if test "$am_compiler_list" = ""; then
5551 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5552 fi
5553 am__universal=false
5554 case " $depcc " in #(
5555 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5556 esac
d7040cdb 5557
3cb62297
L
5558 for depmode in $am_compiler_list; do
5559 # Setup a source with many dependencies, because some compilers
5560 # like to wrap large dependency lists on column 80 (with \), and
5561 # we should not choose a depcomp mode which is confused by this.
5562 #
5563 # We need to recreate these files for each test, as the compiler may
5564 # overwrite some of them when testing with obscure command lines.
5565 # This happens at least with the AIX C compiler.
5566 : > sub/conftest.c
5567 for i in 1 2 3 4 5 6; do
5568 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5569 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5570 # Solaris 8's {/usr,}/bin/sh.
5571 touch sub/conftst$i.h
5572 done
5573 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
d7040cdb 5574
3cb62297
L
5575 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5576 # mode. It turns out that the SunPro C++ compiler does not properly
5577 # handle `-M -o', and we need to detect this. Also, some Intel
5578 # versions had trouble with output in subdirs
5579 am__obj=sub/conftest.${OBJEXT-o}
5580 am__minus_obj="-o $am__obj"
5581 case $depmode in
5582 gcc)
5583 # This depmode causes a compiler race in universal mode.
5584 test "$am__universal" = false || continue
5585 ;;
5586 nosideeffect)
5587 # after this tag, mechanisms are not by side-effect, so they'll
5588 # only be used when explicitly requested
5589 if test "x$enable_dependency_tracking" = xyes; then
5590 continue
5591 else
5592 break
5593 fi
5594 ;;
5595 msvisualcpp | msvcmsys)
5596 # This compiler won't grok `-c -o', but also, the minuso test has
5597 # not run yet. These depmodes are late enough in the game, and
5598 # so weak that their functioning should not be impacted.
5599 am__obj=conftest.${OBJEXT-o}
5600 am__minus_obj=
5601 ;;
5602 none) break ;;
5603 esac
5604 if depmode=$depmode \
5605 source=sub/conftest.c object=$am__obj \
5606 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5607 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5608 >/dev/null 2>conftest.err &&
5609 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5610 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5611 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5612 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5613 # icc doesn't choke on unknown options, it will just issue warnings
5614 # or remarks (even with -Werror). So we grep stderr for any message
5615 # that says an option was ignored or not supported.
5616 # When given -MP, icc 7.0 and 7.1 complain thusly:
5617 # icc: Command line warning: ignoring option '-M'; no argument required
5618 # The diagnosis changed in icc 8.0:
5619 # icc: Command line remark: option '-MP' not supported
5620 if (grep 'ignoring option' conftest.err ||
5621 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5622 am_cv_CXX_dependencies_compiler_type=$depmode
5623 break
5624 fi
5625 fi
5626 done
d7040cdb 5627
3cb62297
L
5628 cd ..
5629 rm -rf conftest.dir
5630else
5631 am_cv_CXX_dependencies_compiler_type=none
5632fi
d7040cdb 5633
3cb62297
L
5634fi
5635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5636$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5637CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
d7040cdb 5638
3cb62297
L
5639 if
5640 test "x$enable_dependency_tracking" != xno \
5641 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5642 am__fastdepCXX_TRUE=
5643 am__fastdepCXX_FALSE='#'
5644else
5645 am__fastdepCXX_TRUE='#'
5646 am__fastdepCXX_FALSE=
5647fi
d7040cdb 5648
d7040cdb 5649
3cb62297
L
5650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5651$as_echo_n "checking for ANSI C header files... " >&6; }
5652if test "${ac_cv_header_stdc+set}" = set; then :
81ecdfbb 5653 $as_echo_n "(cached) " >&6
ce2cded5 5654else
81ecdfbb 5655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6 5656/* end confdefs.h. */
3cb62297
L
5657#include <stdlib.h>
5658#include <stdarg.h>
5659#include <string.h>
5660#include <float.h>
7357c5b6 5661
7357c5b6
AM
5662int
5663main ()
5664{
5665
5666 ;
5667 return 0;
5668}
5669_ACEOF
81ecdfbb 5670if ac_fn_c_try_compile "$LINENO"; then :
3cb62297 5671 ac_cv_header_stdc=yes
ce2cded5 5672else
3cb62297 5673 ac_cv_header_stdc=no
ce2cded5 5674fi
81ecdfbb 5675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7357c5b6 5676
3cb62297
L
5677if test $ac_cv_header_stdc = yes; then
5678 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5680/* end confdefs.h. */
5681#include <string.h>
7357c5b6 5682
3cb62297
L
5683_ACEOF
5684if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5685 $EGREP "memchr" >/dev/null 2>&1; then :
d053aef8 5686
3cb62297
L
5687else
5688 ac_cv_header_stdc=no
5689fi
5690rm -f conftest*
da2f07f1 5691
3cb62297 5692fi
3388710e 5693
3cb62297
L
5694if test $ac_cv_header_stdc = yes; then
5695 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5697/* end confdefs.h. */
5698#include <stdlib.h>
3388710e 5699
3cb62297
L
5700_ACEOF
5701if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5702 $EGREP "free" >/dev/null 2>&1; then :
3388710e 5703
3cb62297
L
5704else
5705 ac_cv_header_stdc=no
5706fi
5707rm -f conftest*
5708
5709fi
5710
5711if test $ac_cv_header_stdc = yes; then
5712 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5713 if test "$cross_compiling" = yes; then :
5714 :
5715else
5716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5717/* end confdefs.h. */
5718#include <ctype.h>
5719#include <stdlib.h>
5720#if ((' ' & 0x0FF) == 0x020)
5721# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5722# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5723#else
5724# define ISLOWER(c) \
5725 (('a' <= (c) && (c) <= 'i') \
5726 || ('j' <= (c) && (c) <= 'r') \
5727 || ('s' <= (c) && (c) <= 'z'))
5728# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5729#endif
5730
5731#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5732int
5733main ()
5734{
5735 int i;
5736 for (i = 0; i < 256; i++)
5737 if (XOR (islower (i), ISLOWER (i))
5738 || toupper (i) != TOUPPER (i))
5739 return 2;
5740 return 0;
5741}
5742_ACEOF
5743if ac_fn_c_try_run "$LINENO"; then :
5744
5745else
5746 ac_cv_header_stdc=no
5747fi
5748rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5749 conftest.$ac_objext conftest.beam conftest.$ac_ext
5750fi
5751
5752fi
5753fi
5754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5755$as_echo "$ac_cv_header_stdc" >&6; }
5756if test $ac_cv_header_stdc = yes; then
5757
5758$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5759
5760fi
5761
5762# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5763for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5764 inttypes.h stdint.h unistd.h
5765do :
5766 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5767ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5768"
5769eval as_val=\$$as_ac_Header
5770 if test "x$as_val" = x""yes; then :
5771 cat >>confdefs.h <<_ACEOF
5772#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5773_ACEOF
5774
5775fi
5776
5777done
5778
5779
5780
5781 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5782if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5783 MINIX=yes
5784else
5785 MINIX=
5786fi
5787
5788
5789 if test "$MINIX" = yes; then
5790
5791$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5792
5793
5794$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5795
5796
5797$as_echo "#define _MINIX 1" >>confdefs.h
5798
5799 fi
5800
5801
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5803$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5804if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5805 $as_echo_n "(cached) " >&6
5806else
5807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5808/* end confdefs.h. */
5809
5810# define __EXTENSIONS__ 1
5811 $ac_includes_default
5812int
5813main ()
5814{
5815
5816 ;
5817 return 0;
5818}
5819_ACEOF
5820if ac_fn_c_try_compile "$LINENO"; then :
5821 ac_cv_safe_to_define___extensions__=yes
5822else
5823 ac_cv_safe_to_define___extensions__=no
5824fi
5825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5826fi
5827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5828$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5829 test $ac_cv_safe_to_define___extensions__ = yes &&
5830 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5831
5832 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5833
5834 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5835
5836 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5837
5838 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5839
5840
5841
5842
5843
5844# The tests for host and target for $enable_largefile require
5845# canonical names.
5846
5847
5848
5849# As the $enable_largefile decision depends on --enable-plugins we must set it
5850# even in directories otherwise not depending on the $plugins option.
da2f07f1
JK
5851
5852
5853# Check whether --enable-plugins was given.
5854if test "${enable_plugins+set}" = set; then :
5855 enableval=$enable_plugins; case "${enableval}" in
5856 yes | "") plugins=yes ;;
5857 no) plugins=no ;;
5858 *) plugins=yes ;;
5859 esac
5860else
5861 plugins=no
5862fi
5863
5864
5865
5866case "${host}" in
5867 sparc-*-solaris*|i[3-7]86-*-solaris*)
5868 # On native 32bit sparc and ia32 solaris, large-file and procfs support
5869 # are mutually exclusive; and without procfs support, the bfd/ elf module
5870 # cannot provide certain routines such as elfcore_write_prpsinfo
5871 # or elfcore_write_prstatus. So unless the user explicitly requested
5872 # large-file support through the --enable-largefile switch, disable
5873 # large-file support in favor of procfs support.
5874 test "${target}" = "${host}" -a "x$plugins" = xno \
5875 && : ${enable_largefile="no"}
5876 ;;
5877esac
5878
81ecdfbb
RW
5879# Check whether --enable-largefile was given.
5880if test "${enable_largefile+set}" = set; then :
5881 enableval=$enable_largefile;
5882fi
5883
d053aef8
JK
5884if test "$enable_largefile" != no; then
5885
81ecdfbb
RW
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5887$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5888if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5889 $as_echo_n "(cached) " >&6
d053aef8
JK
5890else
5891 ac_cv_sys_largefile_CC=no
5892 if test "$GCC" != yes; then
5893 ac_save_CC=$CC
5894 while :; do
81ecdfbb
RW
5895 # IRIX 6.2 and later do not support large files by default,
5896 # so use the C compiler's -n32 option if that helps.
5897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5898/* end confdefs.h. */
5899#include <sys/types.h>
5900 /* Check that off_t can represent 2**63 - 1 correctly.
5901 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5902 since some C++ compilers masquerading as C compilers
5903 incorrectly reject 9223372036854775807. */
5904#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5905 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5906 && LARGE_OFF_T % 2147483647 == 1)
5907 ? 1 : -1];
5908int
5909main ()
5910{
5911
5912 ;
5913 return 0;
5914}
5915_ACEOF
81ecdfbb 5916 if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 5917 break
d053aef8 5918fi
81ecdfbb
RW
5919rm -f core conftest.err conftest.$ac_objext
5920 CC="$CC -n32"
5921 if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 5922 ac_cv_sys_largefile_CC=' -n32'; break
d053aef8 5923fi
81ecdfbb 5924rm -f core conftest.err conftest.$ac_objext
d053aef8
JK
5925 break
5926 done
5927 CC=$ac_save_CC
5928 rm -f conftest.$ac_ext
5929 fi
5930fi
81ecdfbb
RW
5931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5932$as_echo "$ac_cv_sys_largefile_CC" >&6; }
d053aef8
JK
5933 if test "$ac_cv_sys_largefile_CC" != no; then
5934 CC=$CC$ac_cv_sys_largefile_CC
5935 fi
5936
81ecdfbb
RW
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5938$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5939if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5940 $as_echo_n "(cached) " >&6
d053aef8
JK
5941else
5942 while :; do
81ecdfbb 5943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5944/* end confdefs.h. */
5945#include <sys/types.h>
5946 /* Check that off_t can represent 2**63 - 1 correctly.
5947 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5948 since some C++ compilers masquerading as C compilers
5949 incorrectly reject 9223372036854775807. */
5950#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5951 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5952 && LARGE_OFF_T % 2147483647 == 1)
5953 ? 1 : -1];
5954int
5955main ()
5956{
5957
5958 ;
5959 return 0;
5960}
5961_ACEOF
81ecdfbb
RW
5962if ac_fn_c_try_compile "$LINENO"; then :
5963 ac_cv_sys_file_offset_bits=no; break
d053aef8 5964fi
81ecdfbb
RW
5965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5967/* end confdefs.h. */
5968#define _FILE_OFFSET_BITS 64
5969#include <sys/types.h>
5970 /* Check that off_t can represent 2**63 - 1 correctly.
5971 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5972 since some C++ compilers masquerading as C compilers
5973 incorrectly reject 9223372036854775807. */
5974#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5975 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5976 && LARGE_OFF_T % 2147483647 == 1)
5977 ? 1 : -1];
5978int
5979main ()
5980{
5981
5982 ;
5983 return 0;
5984}
5985_ACEOF
81ecdfbb 5986if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 5987 ac_cv_sys_file_offset_bits=64; break
d053aef8 5988fi
81ecdfbb
RW
5989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5990 ac_cv_sys_file_offset_bits=unknown
d053aef8
JK
5991 break
5992done
5993fi
81ecdfbb
RW
5994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5995$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5996case $ac_cv_sys_file_offset_bits in #(
5997 no | unknown) ;;
5998 *)
d053aef8
JK
5999cat >>confdefs.h <<_ACEOF
6000#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6001_ACEOF
81ecdfbb
RW
6002;;
6003esac
6004rm -rf conftest*
6005 if test $ac_cv_sys_file_offset_bits = unknown; then
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6007$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6008if test "${ac_cv_sys_large_files+set}" = set; then :
6009 $as_echo_n "(cached) " >&6
d053aef8
JK
6010else
6011 while :; do
81ecdfbb 6012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
6013/* end confdefs.h. */
6014#include <sys/types.h>
6015 /* Check that off_t can represent 2**63 - 1 correctly.
6016 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6017 since some C++ compilers masquerading as C compilers
6018 incorrectly reject 9223372036854775807. */
6019#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6020 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6021 && LARGE_OFF_T % 2147483647 == 1)
6022 ? 1 : -1];
6023int
6024main ()
6025{
6026
6027 ;
6028 return 0;
6029}
6030_ACEOF
81ecdfbb
RW
6031if ac_fn_c_try_compile "$LINENO"; then :
6032 ac_cv_sys_large_files=no; break
d053aef8 6033fi
81ecdfbb
RW
6034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
6036/* end confdefs.h. */
6037#define _LARGE_FILES 1
6038#include <sys/types.h>
6039 /* Check that off_t can represent 2**63 - 1 correctly.
6040 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6041 since some C++ compilers masquerading as C compilers
6042 incorrectly reject 9223372036854775807. */
6043#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6044 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6045 && LARGE_OFF_T % 2147483647 == 1)
6046 ? 1 : -1];
6047int
6048main ()
6049{
6050
6051 ;
6052 return 0;
6053}
6054_ACEOF
81ecdfbb 6055if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 6056 ac_cv_sys_large_files=1; break
d053aef8 6057fi
81ecdfbb
RW
6058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6059 ac_cv_sys_large_files=unknown
d053aef8
JK
6060 break
6061done
6062fi
81ecdfbb
RW
6063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6064$as_echo "$ac_cv_sys_large_files" >&6; }
6065case $ac_cv_sys_large_files in #(
6066 no | unknown) ;;
6067 *)
d053aef8
JK
6068cat >>confdefs.h <<_ACEOF
6069#define _LARGE_FILES $ac_cv_sys_large_files
6070_ACEOF
81ecdfbb
RW
6071;;
6072esac
6073rm -rf conftest*
6074 fi
d053aef8
JK
6075fi
6076
42ecbf5e 6077
42ecbf5e 6078
da2f07f1 6079
b214d478
SE
6080case `pwd` in
6081 *\ * | *\ *)
81ecdfbb
RW
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6083$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
b214d478 6084esac
252b5132 6085
42ecbf5e 6086
d7040cdb 6087
3725885a
RW
6088macro_version='2.2.7a'
6089macro_revision='1.3134'
d7040cdb 6090
d7040cdb
SE
6091
6092
d7040cdb 6093
d7040cdb 6094
42ecbf5e 6095
d7040cdb 6096
252b5132 6097
252b5132 6098
252b5132 6099
252b5132
RH
6100
6101
ce2cded5 6102
b214d478 6103ltmain="$ac_aux_dir/ltmain.sh"
ce2cded5 6104
3725885a
RW
6105# Backslashify metacharacters that are still active within
6106# double-quoted strings.
6107sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6108
6109# Same as above, but do not quote variable references.
6110double_quote_subst='s/\(["`\\]\)/\\\1/g'
6111
6112# Sed substitution to delay expansion of an escaped shell variable in a
6113# double_quote_subst'ed string.
6114delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6115
6116# Sed substitution to delay expansion of an escaped single quote.
6117delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6118
6119# Sed substitution to avoid accidental globbing in evaled expressions
6120no_glob_subst='s/\*/\\\*/g'
6121
6122ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6123ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6124ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6125
6126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6127$as_echo_n "checking how to print strings... " >&6; }
6128# Test print first, because it will be a builtin if present.
6129if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6130 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6131 ECHO='print -r --'
6132elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6133 ECHO='printf %s\n'
6134else
6135 # Use this function as a fallback that always works.
6136 func_fallback_echo ()
6137 {
6138 eval 'cat <<_LTECHO_EOF
6139$1
6140_LTECHO_EOF'
6141 }
6142 ECHO='func_fallback_echo'
6143fi
6144
6145# func_echo_all arg...
6146# Invoke $ECHO with all args, space-separated.
6147func_echo_all ()
6148{
6149 $ECHO ""
6150}
6151
6152case "$ECHO" in
6153 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6154$as_echo "printf" >&6; } ;;
6155 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6156$as_echo "print -r" >&6; } ;;
6157 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6158$as_echo "cat" >&6; } ;;
6159esac
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
81ecdfbb
RW
6174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6175$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6176if test "${ac_cv_path_SED+set}" = set; then :
6177 $as_echo_n "(cached) " >&6
6178else
6179 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6180 for ac_i in 1 2 3 4 5 6 7; do
6181 ac_script="$ac_script$as_nl$ac_script"
6182 done
6183 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6184 { ac_script=; unset ac_script;}
6185 if test -z "$SED"; then
6186 ac_path_SED_found=false
6187 # Loop through the user's path and test for each of PROGNAME-LIST
6188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357c5b6
AM
6189for as_dir in $PATH
6190do
6191 IFS=$as_save_IFS
6192 test -z "$as_dir" && as_dir=.
81ecdfbb 6193 for ac_prog in sed gsed; do
7357c5b6 6194 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb
RW
6195 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6196 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6197# Check for GNU ac_path_SED and select it if it is found.
6198 # Check for GNU $ac_path_SED
6199case `"$ac_path_SED" --version 2>&1` in
6200*GNU*)
6201 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6202*)
6203 ac_count=0
6204 $as_echo_n 0123456789 >"conftest.in"
6205 while :
6206 do
6207 cat "conftest.in" "conftest.in" >"conftest.tmp"
6208 mv "conftest.tmp" "conftest.in"
6209 cp "conftest.in" "conftest.nl"
6210 $as_echo '' >> "conftest.nl"
6211 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6212 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6213 as_fn_arith $ac_count + 1 && ac_count=$as_val
6214 if test $ac_count -gt ${ac_path_SED_max-0}; then
6215 # Best one so far, save it but keep looking for a better one
6216 ac_cv_path_SED="$ac_path_SED"
6217 ac_path_SED_max=$ac_count
6218 fi
6219 # 10*(2^10) chars as input seems more than enough
6220 test $ac_count -gt 10 && break
6221 done
6222 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6223esac
6224
6225 $ac_path_SED_found && break 3
7357c5b6
AM
6226 done
6227 done
81ecdfbb 6228 done
7357c5b6 6229IFS=$as_save_IFS
81ecdfbb
RW
6230 if test -z "$ac_cv_path_SED"; then
6231 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
ce2cded5 6232 fi
81ecdfbb
RW
6233else
6234 ac_cv_path_SED=$SED
7357c5b6 6235fi
20e95c23 6236
81ecdfbb
RW
6237fi
6238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6239$as_echo "$ac_cv_path_SED" >&6; }
6240 SED="$ac_cv_path_SED"
6241 rm -f conftest.sed
20e95c23 6242
7357c5b6
AM
6243test -z "$SED" && SED=sed
6244Xsed="$SED -e 1s/^X//"
20e95c23
DJ
6245
6246
6247
6248
6249
6250
20e95c23 6251
20e95c23 6252
d7040cdb 6253
d7040cdb 6254
7357c5b6 6255
81ecdfbb
RW
6256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6257$as_echo_n "checking for fgrep... " >&6; }
6258if test "${ac_cv_path_FGREP+set}" = set; then :
6259 $as_echo_n "(cached) " >&6
7357c5b6 6260else
81ecdfbb
RW
6261 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6262 then ac_cv_path_FGREP="$GREP -F"
6263 else
6264 if test -z "$FGREP"; then
6265 ac_path_FGREP_found=false
6266 # Loop through the user's path and test for each of PROGNAME-LIST
6267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6268for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6269do
6270 IFS=$as_save_IFS
6271 test -z "$as_dir" && as_dir=.
6272 for ac_prog in fgrep; do
6273 for ac_exec_ext in '' $ac_executable_extensions; do
6274 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6275 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6276# Check for GNU ac_path_FGREP and select it if it is found.
6277 # Check for GNU $ac_path_FGREP
6278case `"$ac_path_FGREP" --version 2>&1` in
6279*GNU*)
6280 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6281*)
6282 ac_count=0
6283 $as_echo_n 0123456789 >"conftest.in"
6284 while :
6285 do
6286 cat "conftest.in" "conftest.in" >"conftest.tmp"
6287 mv "conftest.tmp" "conftest.in"
6288 cp "conftest.in" "conftest.nl"
6289 $as_echo 'FGREP' >> "conftest.nl"
6290 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6291 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6292 as_fn_arith $ac_count + 1 && ac_count=$as_val
6293 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6294 # Best one so far, save it but keep looking for a better one
6295 ac_cv_path_FGREP="$ac_path_FGREP"
6296 ac_path_FGREP_max=$ac_count
7357c5b6 6297 fi
81ecdfbb
RW
6298 # 10*(2^10) chars as input seems more than enough
6299 test $ac_count -gt 10 && break
6300 done
6301 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6302esac
6303
6304 $ac_path_FGREP_found && break 3
6305 done
6306 done
6307 done
6308IFS=$as_save_IFS
6309 if test -z "$ac_cv_path_FGREP"; then
6310 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6311 fi
6312else
6313 ac_cv_path_FGREP=$FGREP
6314fi
6315
6316 fi
20e95c23 6317fi
81ecdfbb
RW
6318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6319$as_echo "$ac_cv_path_FGREP" >&6; }
6320 FGREP="$ac_cv_path_FGREP"
7357c5b6
AM
6321
6322
6323test -z "$GREP" && GREP=grep
6324
d7040cdb
SE
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
20e95c23 6336
ce2cded5 6337
d7040cdb 6338
7357c5b6
AM
6339
6340
6341
6342
81ecdfbb
RW
6343# Check whether --with-gnu-ld was given.
6344if test "${with_gnu_ld+set}" = set; then :
6345 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7357c5b6
AM
6346else
6347 with_gnu_ld=no
81ecdfbb
RW
6348fi
6349
7357c5b6
AM
6350ac_prog=ld
6351if test "$GCC" = yes; then
6352 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6354$as_echo_n "checking for ld used by $CC... " >&6; }
7357c5b6
AM
6355 case $host in
6356 *-*-mingw*)
6357 # gcc leaves a trailing carriage return which upsets mingw
6358 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6359 *)
6360 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6361 esac
6362 case $ac_prog in
6363 # Accept absolute paths.
6364 [\\/]* | ?:[\\/]*)
6365 re_direlt='/[^/][^/]*/\.\./'
6366 # Canonicalize the pathname of ld
6367 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6368 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6369 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6370 done
6371 test -z "$LD" && LD="$ac_prog"
6372 ;;
6373 "")
6374 # If it fails, then pretend we aren't using GCC.
6375 ac_prog=ld
6376 ;;
6377 *)
6378 # If it is relative, then search for the first ld in PATH.
6379 with_gnu_ld=unknown
6380 ;;
6381 esac
6382elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6384$as_echo_n "checking for GNU ld... " >&6; }
7357c5b6 6385else
81ecdfbb
RW
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6387$as_echo_n "checking for non-GNU ld... " >&6; }
ce2cded5 6388fi
81ecdfbb
RW
6389if test "${lt_cv_path_LD+set}" = set; then :
6390 $as_echo_n "(cached) " >&6
ce2cded5 6391else
7357c5b6
AM
6392 if test -z "$LD"; then
6393 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6394 for ac_dir in $PATH; do
6395 IFS="$lt_save_ifs"
6396 test -z "$ac_dir" && ac_dir=.
6397 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6398 lt_cv_path_LD="$ac_dir/$ac_prog"
6399 # Check to see if the program is GNU ld. I'd rather use --version,
6400 # but apparently some variants of GNU ld only accept -v.
6401 # Break only if it was the GNU/non-GNU ld that we prefer.
6402 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6403 *GNU* | *'with BFD'*)
6404 test "$with_gnu_ld" != no && break
6405 ;;
6406 *)
6407 test "$with_gnu_ld" != yes && break
6408 ;;
6409 esac
6410 fi
6411 done
6412 IFS="$lt_save_ifs"
ce2cded5 6413else
7357c5b6 6414 lt_cv_path_LD="$LD" # Let the user override the test with a path.
ce2cded5
L
6415fi
6416fi
7357c5b6
AM
6417
6418LD="$lt_cv_path_LD"
6419if test -n "$LD"; then
81ecdfbb
RW
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6421$as_echo "$LD" >&6; }
ce2cded5 6422else
81ecdfbb
RW
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6424$as_echo "no" >&6; }
ce2cded5 6425fi
81ecdfbb
RW
6426test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6428$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6429if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6430 $as_echo_n "(cached) " >&6
ce2cded5 6431else
7357c5b6
AM
6432 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6433case `$LD -v 2>&1 </dev/null` in
6434*GNU* | *'with BFD'*)
6435 lt_cv_prog_gnu_ld=yes
6436 ;;
6437*)
6438 lt_cv_prog_gnu_ld=no
6439 ;;
6440esac
ce2cded5 6441fi
81ecdfbb
RW
6442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6443$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7357c5b6 6444with_gnu_ld=$lt_cv_prog_gnu_ld
d7040cdb
SE
6445
6446
6447
6448
6449
6450
6451
6452
6453
81ecdfbb
RW
6454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6455$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6456if test "${lt_cv_path_NM+set}" = set; then :
6457 $as_echo_n "(cached) " >&6
ce2cded5 6458else
7357c5b6
AM
6459 if test -n "$NM"; then
6460 # Let the user override the test.
6461 lt_cv_path_NM="$NM"
ce2cded5 6462else
7357c5b6
AM
6463 lt_nm_to_check="${ac_tool_prefix}nm"
6464 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6465 lt_nm_to_check="$lt_nm_to_check nm"
20e95c23 6466 fi
7357c5b6
AM
6467 for lt_tmp_nm in $lt_nm_to_check; do
6468 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6469 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6470 IFS="$lt_save_ifs"
6471 test -z "$ac_dir" && ac_dir=.
6472 tmp_nm="$ac_dir/$lt_tmp_nm"
6473 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6474 # Check to see if the nm accepts a BSD-compat flag.
6475 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6476 # nm: unknown option "B" ignored
6477 # Tru64's nm complains that /dev/null is an invalid object file
6478 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6479 */dev/null* | *'Invalid file or object type'*)
6480 lt_cv_path_NM="$tmp_nm -B"
6481 break
6482 ;;
6483 *)
6484 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6485 */dev/null*)
6486 lt_cv_path_NM="$tmp_nm -p"
6487 break
6488 ;;
6489 *)
6490 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6491 continue # so that we can try to find one that supports BSD flags
6492 ;;
6493 esac
6494 ;;
6495 esac
6496 fi
6497 done
6498 IFS="$lt_save_ifs"
6499 done
6500 : ${lt_cv_path_NM=no}
ce2cded5
L
6501fi
6502fi
81ecdfbb
RW
6503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6504$as_echo "$lt_cv_path_NM" >&6; }
7357c5b6
AM
6505if test "$lt_cv_path_NM" != "no"; then
6506 NM="$lt_cv_path_NM"
ce2cded5 6507else
7357c5b6 6508 # Didn't find any BSD compatible name lister, look for dumpbin.
3725885a
RW
6509 if test -n "$DUMPBIN"; then :
6510 # Let the user override the test.
6511 else
6512 if test -n "$ac_tool_prefix"; then
6513 for ac_prog in dumpbin "link -dump"
7357c5b6
AM
6514 do
6515 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6516set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
6517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6518$as_echo_n "checking for $ac_word... " >&6; }
6519if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6520 $as_echo_n "(cached) " >&6
20e95c23 6521else
7357c5b6
AM
6522 if test -n "$DUMPBIN"; then
6523 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
ce2cded5
L
6524else
6525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6526for as_dir in $PATH
6527do
6528 IFS=$as_save_IFS
6529 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6530 for ac_exec_ext in '' $ac_executable_extensions; do
6531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6532 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
81ecdfbb 6533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6534 break 2
6535 fi
6536done
81ecdfbb
RW
6537 done
6538IFS=$as_save_IFS
d7040cdb 6539
20e95c23 6540fi
ce2cded5 6541fi
7357c5b6
AM
6542DUMPBIN=$ac_cv_prog_DUMPBIN
6543if test -n "$DUMPBIN"; then
81ecdfbb
RW
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6545$as_echo "$DUMPBIN" >&6; }
42ecbf5e 6546else
81ecdfbb
RW
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6548$as_echo "no" >&6; }
42ecbf5e
DJ
6549fi
6550
81ecdfbb 6551
7357c5b6
AM
6552 test -n "$DUMPBIN" && break
6553 done
ce2cded5 6554fi
7357c5b6
AM
6555if test -z "$DUMPBIN"; then
6556 ac_ct_DUMPBIN=$DUMPBIN
3725885a 6557 for ac_prog in dumpbin "link -dump"
7357c5b6
AM
6558do
6559 # Extract the first word of "$ac_prog", so it can be a program name with args.
6560set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
6561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6562$as_echo_n "checking for $ac_word... " >&6; }
6563if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6564 $as_echo_n "(cached) " >&6
42ecbf5e 6565else
7357c5b6
AM
6566 if test -n "$ac_ct_DUMPBIN"; then
6567 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
ce2cded5
L
6568else
6569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6570for as_dir in $PATH
6571do
6572 IFS=$as_save_IFS
6573 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6574 for ac_exec_ext in '' $ac_executable_extensions; do
6575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6576 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
81ecdfbb 6577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6578 break 2
6579 fi
6580done
81ecdfbb
RW
6581 done
6582IFS=$as_save_IFS
d7040cdb 6583
ce2cded5
L
6584fi
6585fi
7357c5b6
AM
6586ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6587if test -n "$ac_ct_DUMPBIN"; then
81ecdfbb
RW
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6589$as_echo "$ac_ct_DUMPBIN" >&6; }
ce2cded5 6590else
81ecdfbb
RW
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6592$as_echo "no" >&6; }
ce2cded5 6593fi
d7040cdb 6594
81ecdfbb 6595
7357c5b6 6596 test -n "$ac_ct_DUMPBIN" && break
ce2cded5 6597done
d7040cdb 6598
81ecdfbb
RW
6599 if test "x$ac_ct_DUMPBIN" = x; then
6600 DUMPBIN=":"
6601 else
6602 case $cross_compiling:$ac_tool_warned in
6603yes:)
6604{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6605$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6606ac_tool_warned=yes ;;
6607esac
6608 DUMPBIN=$ac_ct_DUMPBIN
6609 fi
ce2cded5 6610fi
7357c5b6 6611
3725885a
RW
6612 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6613 *COFF*)
6614 DUMPBIN="$DUMPBIN -symbols"
6615 ;;
6616 *)
6617 DUMPBIN=:
6618 ;;
6619 esac
6620 fi
7357c5b6
AM
6621
6622 if test "$DUMPBIN" != ":"; then
6623 NM="$DUMPBIN"
6624 fi
ce2cded5 6625fi
7357c5b6
AM
6626test -z "$NM" && NM=nm
6627
6628
6629
6630
6631
6632
81ecdfbb
RW
6633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6634$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6635if test "${lt_cv_nm_interface+set}" = set; then :
6636 $as_echo_n "(cached) " >&6
20e95c23 6637else
7357c5b6
AM
6638 lt_cv_nm_interface="BSD nm"
6639 echo "int some_variable = 0;" > conftest.$ac_ext
3725885a 6640 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7357c5b6
AM
6641 (eval "$ac_compile" 2>conftest.err)
6642 cat conftest.err >&5
3725885a 6643 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7357c5b6
AM
6644 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6645 cat conftest.err >&5
3725885a 6646 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7357c5b6
AM
6647 cat conftest.out >&5
6648 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6649 lt_cv_nm_interface="MS dumpbin"
6650 fi
6651 rm -f conftest*
20e95c23 6652fi
81ecdfbb
RW
6653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6654$as_echo "$lt_cv_nm_interface" >&6; }
20e95c23 6655
81ecdfbb
RW
6656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6657$as_echo_n "checking whether ln -s works... " >&6; }
7357c5b6
AM
6658LN_S=$as_ln_s
6659if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6661$as_echo "yes" >&6; }
ce2cded5 6662else
81ecdfbb
RW
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6664$as_echo "no, using $LN_S" >&6; }
d7040cdb 6665fi
20e95c23 6666
7357c5b6 6667# find the maximum length of command line arguments
81ecdfbb
RW
6668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6669$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6670if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6671 $as_echo_n "(cached) " >&6
7357c5b6
AM
6672else
6673 i=0
6674 teststring="ABCD"
20e95c23 6675
7357c5b6
AM
6676 case $build_os in
6677 msdosdjgpp*)
6678 # On DJGPP, this test can blow up pretty badly due to problems in libc
6679 # (any single argument exceeding 2000 bytes causes a buffer overrun
6680 # during glob expansion). Even if it were fixed, the result of this
6681 # check would be larger than it should be.
6682 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6683 ;;
20e95c23 6684
7357c5b6
AM
6685 gnu*)
6686 # Under GNU Hurd, this test is not required because there is
6687 # no limit to the length of command line arguments.
6688 # Libtool will interpret -1 as no limit whatsoever
6689 lt_cv_sys_max_cmd_len=-1;
6690 ;;
20e95c23 6691
b214d478 6692 cygwin* | mingw* | cegcc*)
7357c5b6
AM
6693 # On Win9x/ME, this test blows up -- it succeeds, but takes
6694 # about 5 minutes as the teststring grows exponentially.
6695 # Worse, since 9x/ME are not pre-emptively multitasking,
6696 # you end up with a "frozen" computer, even though with patience
6697 # the test eventually succeeds (with a max line length of 256k).
6698 # Instead, let's just punt: use the minimum linelength reported by
6699 # all of the supported platforms: 8192 (on NT/2K/XP).
6700 lt_cv_sys_max_cmd_len=8192;
6701 ;;
20e95c23 6702
3725885a
RW
6703 mint*)
6704 # On MiNT this can take a long time and run out of memory.
6705 lt_cv_sys_max_cmd_len=8192;
6706 ;;
6707
7357c5b6
AM
6708 amigaos*)
6709 # On AmigaOS with pdksh, this test takes hours, literally.
6710 # So we just punt and use a minimum line length of 8192.
6711 lt_cv_sys_max_cmd_len=8192;
6712 ;;
20e95c23 6713
7357c5b6
AM
6714 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6715 # This has been around since 386BSD, at least. Likely further.
6716 if test -x /sbin/sysctl; then
6717 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6718 elif test -x /usr/sbin/sysctl; then
6719 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6720 else
6721 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6722 fi
6723 # And add a safety zone
6724 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6725 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6726 ;;
d7040cdb 6727
7357c5b6
AM
6728 interix*)
6729 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6730 lt_cv_sys_max_cmd_len=196608
6731 ;;
d7040cdb 6732
7357c5b6
AM
6733 osf*)
6734 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6735 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6736 # nice to cause kernel panics so lets avoid the loop below.
6737 # First set a reasonable default.
6738 lt_cv_sys_max_cmd_len=16384
6739 #
6740 if test -x /sbin/sysconfig; then
6741 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6742 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6743 esac
6744 fi
6745 ;;
6746 sco3.2v5*)
6747 lt_cv_sys_max_cmd_len=102400
6748 ;;
6749 sysv5* | sco5v6* | sysv4.2uw2*)
6750 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6751 if test -n "$kargmax"; then
6752 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6753 else
6754 lt_cv_sys_max_cmd_len=32768
6755 fi
ce2cded5
L
6756 ;;
6757 *)
b214d478
SE
6758 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6759 if test -n "$lt_cv_sys_max_cmd_len"; then
7357c5b6
AM
6760 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6761 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6762 else
6763 # Make teststring a little bigger before we do anything with it.
6764 # a 1K string should be a reasonable start.
6765 for i in 1 2 3 4 5 6 7 8 ; do
6766 teststring=$teststring$teststring
6767 done
6768 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6769 # If test is not a shell built-in, we'll probably end up computing a
6770 # maximum length that is only half of the actual maximum length, but
6771 # we can't tell.
3725885a
RW
6772 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6773 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7357c5b6
AM
6774 test $i != 17 # 1/2 MB should be enough
6775 do
6776 i=`expr $i + 1`
6777 teststring=$teststring$teststring
6778 done
6779 # Only check the string length outside the loop.
6780 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6781 teststring=
6782 # Add a significant safety factor because C++ compilers can tack on
6783 # massive amounts of additional arguments before passing them to the
6784 # linker. It appears as though 1/2 is a usable value.
6785 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6786 fi
ce2cded5
L
6787 ;;
6788 esac
d7040cdb 6789
7357c5b6 6790fi
d7040cdb 6791
7357c5b6 6792if test -n $lt_cv_sys_max_cmd_len ; then
81ecdfbb
RW
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6794$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7357c5b6 6795else
81ecdfbb
RW
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6797$as_echo "none" >&6; }
7357c5b6
AM
6798fi
6799max_cmd_len=$lt_cv_sys_max_cmd_len
d7040cdb
SE
6800
6801
6802
6803
6804
d7040cdb 6805
7357c5b6
AM
6806: ${CP="cp -f"}
6807: ${MV="mv -f"}
6808: ${RM="rm -f"}
d7040cdb 6809
81ecdfbb
RW
6810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6811$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7357c5b6
AM
6812# Try some XSI features
6813xsi_shell=no
6814( _lt_dummy="a/b/c"
6815 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
b214d478
SE
6816 = c,a/b,, \
6817 && eval 'test $(( 1 + 1 )) -eq 2 \
6818 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7357c5b6 6819 && xsi_shell=yes
81ecdfbb
RW
6820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6821$as_echo "$xsi_shell" >&6; }
d7040cdb 6822
d7040cdb 6823
81ecdfbb
RW
6824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6825$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7357c5b6
AM
6826lt_shell_append=no
6827( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6828 >/dev/null 2>&1 \
6829 && lt_shell_append=yes
81ecdfbb
RW
6830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6831$as_echo "$lt_shell_append" >&6; }
d7040cdb
SE
6832
6833
7357c5b6
AM
6834if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6835 lt_unset=unset
6836else
6837 lt_unset=false
6838fi
d7040cdb 6839
d7040cdb 6840
d7040cdb 6841
d7040cdb 6842
d7040cdb 6843
7357c5b6
AM
6844# test EBCDIC or ASCII
6845case `echo X|tr X '\101'` in
6846 A) # ASCII based system
6847 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6848 lt_SP2NL='tr \040 \012'
6849 lt_NL2SP='tr \015\012 \040\040'
6850 ;;
6851 *) # EBCDIC based system
6852 lt_SP2NL='tr \100 \n'
6853 lt_NL2SP='tr \r\n \100\100'
6854 ;;
6855esac
42ecbf5e 6856
d7040cdb
SE
6857
6858
6859
6860
6861
6862
d7040cdb 6863
d7040cdb 6864
81ecdfbb
RW
6865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6866$as_echo_n "checking for $LD option to reload object files... " >&6; }
6867if test "${lt_cv_ld_reload_flag+set}" = set; then :
6868 $as_echo_n "(cached) " >&6
7357c5b6
AM
6869else
6870 lt_cv_ld_reload_flag='-r'
6871fi
81ecdfbb
RW
6872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6873$as_echo "$lt_cv_ld_reload_flag" >&6; }
7357c5b6
AM
6874reload_flag=$lt_cv_ld_reload_flag
6875case $reload_flag in
6876"" | " "*) ;;
6877*) reload_flag=" $reload_flag" ;;
6878esac
6879reload_cmds='$LD$reload_flag -o $output$reload_objs'
6880case $host_os in
6881 darwin*)
6882 if test "$GCC" = yes; then
6883 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6884 else
6885 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6886 fi
6887 ;;
6888esac
d7040cdb 6889
d7040cdb 6890
d7040cdb 6891
d7040cdb 6892
d7040cdb 6893
d7040cdb 6894
d7040cdb 6895
d7040cdb 6896
d7040cdb 6897
b214d478
SE
6898if test -n "$ac_tool_prefix"; then
6899 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6900set dummy ${ac_tool_prefix}objdump; ac_word=$2
81ecdfbb
RW
6901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6902$as_echo_n "checking for $ac_word... " >&6; }
6903if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6904 $as_echo_n "(cached) " >&6
b214d478
SE
6905else
6906 if test -n "$OBJDUMP"; then
6907 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6908else
6909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6910for as_dir in $PATH
6911do
6912 IFS=$as_save_IFS
6913 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6914 for ac_exec_ext in '' $ac_executable_extensions; do
6915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 6916 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
81ecdfbb 6917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
6918 break 2
6919 fi
6920done
81ecdfbb
RW
6921 done
6922IFS=$as_save_IFS
b214d478
SE
6923
6924fi
6925fi
6926OBJDUMP=$ac_cv_prog_OBJDUMP
6927if test -n "$OBJDUMP"; then
81ecdfbb
RW
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6929$as_echo "$OBJDUMP" >&6; }
b214d478 6930else
81ecdfbb
RW
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6932$as_echo "no" >&6; }
b214d478
SE
6933fi
6934
81ecdfbb 6935
b214d478
SE
6936fi
6937if test -z "$ac_cv_prog_OBJDUMP"; then
6938 ac_ct_OBJDUMP=$OBJDUMP
6939 # Extract the first word of "objdump", so it can be a program name with args.
6940set dummy 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_ac_ct_OBJDUMP+set}" = set; then :
6944 $as_echo_n "(cached) " >&6
b214d478
SE
6945else
6946 if test -n "$ac_ct_OBJDUMP"; then
6947 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_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_ac_ct_OBJDUMP="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 6963
b214d478
SE
6964fi
6965fi
6966ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6967if test -n "$ac_ct_OBJDUMP"; then
81ecdfbb
RW
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6969$as_echo "$ac_ct_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
RW
6975 if test "x$ac_ct_OBJDUMP" = x; then
6976 OBJDUMP="false"
6977 else
6978 case $cross_compiling:$ac_tool_warned in
6979yes:)
6980{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6981$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6982ac_tool_warned=yes ;;
6983esac
6984 OBJDUMP=$ac_ct_OBJDUMP
6985 fi
b214d478
SE
6986else
6987 OBJDUMP="$ac_cv_prog_OBJDUMP"
6988fi
6989
6990test -z "$OBJDUMP" && OBJDUMP=objdump
6991
6992
6993
6994
6995
6996
6997
6998
d7040cdb 6999
81ecdfbb
RW
7000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7001$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7002if test "${lt_cv_deplibs_check_method+set}" = set; then :
7003 $as_echo_n "(cached) " >&6
ce2cded5 7004else
7357c5b6
AM
7005 lt_cv_file_magic_cmd='$MAGIC_CMD'
7006lt_cv_file_magic_test_file=
7007lt_cv_deplibs_check_method='unknown'
7008# Need to set the preceding variable on all platforms that support
7009# interlibrary dependencies.
7010# 'none' -- dependencies not supported.
7011# `unknown' -- same as none, but documents that we really don't know.
7012# 'pass_all' -- all dependencies passed with no checks.
7013# 'test_compile' -- check by making test program.
7014# 'file_magic [[regex]]' -- check by looking for files in library path
7015# which responds to the $file_magic_cmd with a given extended regex.
7016# If you have `file' or equivalent on your system and you're not sure
7017# whether `pass_all' will *always* work, you probably want this one.
d7040cdb 7018
ce2cded5 7019case $host_os in
7357c5b6
AM
7020aix[4-9]*)
7021 lt_cv_deplibs_check_method=pass_all
ce2cded5 7022 ;;
7357c5b6
AM
7023
7024beos*)
7025 lt_cv_deplibs_check_method=pass_all
ce2cded5 7026 ;;
7357c5b6
AM
7027
7028bsdi[45]*)
7029 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7030 lt_cv_file_magic_cmd='/usr/bin/file -L'
7031 lt_cv_file_magic_test_file=/shlib/libc.so
ce2cded5 7032 ;;
7357c5b6
AM
7033
7034cygwin*)
7035 # func_win32_libid is a shell function defined in ltmain.sh
7036 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7037 lt_cv_file_magic_cmd='func_win32_libid'
ce2cded5 7038 ;;
7357c5b6
AM
7039
7040mingw* | pw32*)
7041 # Base MSYS/MinGW do not provide the 'file' command needed by
7042 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7043 # unless we find 'file', for example because we are cross-compiling.
3725885a
RW
7044 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7045 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7357c5b6
AM
7046 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7047 lt_cv_file_magic_cmd='func_win32_libid'
7048 else
7049 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7050 lt_cv_file_magic_cmd='$OBJDUMP -f'
7051 fi
ce2cded5 7052 ;;
7357c5b6 7053
3725885a 7054cegcc*)
b214d478
SE
7055 # use the weaker test based on 'objdump'. See mingw*.
7056 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7057 lt_cv_file_magic_cmd='$OBJDUMP -f'
7058 ;;
7059
7357c5b6
AM
7060darwin* | rhapsody*)
7061 lt_cv_deplibs_check_method=pass_all
ce2cded5 7062 ;;
7357c5b6
AM
7063
7064freebsd* | dragonfly*)
7065 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7066 case $host_cpu in
7067 i*86 )
7068 # Not sure whether the presence of OpenBSD here was a mistake.
7069 # Let's accept both of them until this is cleared up.
7070 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7071 lt_cv_file_magic_cmd=/usr/bin/file
7072 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7073 ;;
7074 esac
7075 else
7076 lt_cv_deplibs_check_method=pass_all
7077 fi
ce2cded5 7078 ;;
7357c5b6
AM
7079
7080gnu*)
7081 lt_cv_deplibs_check_method=pass_all
ce2cded5 7082 ;;
7357c5b6 7083
3725885a
RW
7084haiku*)
7085 lt_cv_deplibs_check_method=pass_all
7086 ;;
7087
7357c5b6
AM
7088hpux10.20* | hpux11*)
7089 lt_cv_file_magic_cmd=/usr/bin/file
7090 case $host_cpu in
7091 ia64*)
7092 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7093 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7094 ;;
7095 hppa*64*)
3725885a 7096 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
7097 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7098 ;;
7099 *)
3725885a 7100 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7357c5b6
AM
7101 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7102 ;;
7103 esac
ce2cded5 7104 ;;
d7040cdb 7105
7357c5b6
AM
7106interix[3-9]*)
7107 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7108 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7109 ;;
d7040cdb 7110
7357c5b6
AM
7111irix5* | irix6* | nonstopux*)
7112 case $LD in
7113 *-32|*"-32 ") libmagic=32-bit;;
7114 *-n32|*"-n32 ") libmagic=N32;;
7115 *-64|*"-64 ") libmagic=64-bit;;
7116 *) libmagic=never-match;;
7117 esac
7118 lt_cv_deplibs_check_method=pass_all
7119 ;;
d7040cdb 7120
7357c5b6 7121# This must be Linux ELF.
58e24671 7122linux* | k*bsd*-gnu | kopensolaris*-gnu)
7357c5b6
AM
7123 lt_cv_deplibs_check_method=pass_all
7124 ;;
d7040cdb 7125
7357c5b6
AM
7126netbsd*)
7127 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7128 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7129 else
7130 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7131 fi
ce2cded5 7132 ;;
d7040cdb 7133
7357c5b6
AM
7134newos6*)
7135 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7136 lt_cv_file_magic_cmd=/usr/bin/file
7137 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7138 ;;
d7040cdb 7139
7357c5b6
AM
7140*nto* | *qnx*)
7141 lt_cv_deplibs_check_method=pass_all
7142 ;;
d7040cdb 7143
7357c5b6
AM
7144openbsd*)
7145 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7146 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
ce2cded5 7147 else
7357c5b6 7148 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
ce2cded5 7149 fi
7357c5b6 7150 ;;
d7040cdb 7151
7357c5b6
AM
7152osf3* | osf4* | osf5*)
7153 lt_cv_deplibs_check_method=pass_all
7154 ;;
d7040cdb 7155
7357c5b6
AM
7156rdos*)
7157 lt_cv_deplibs_check_method=pass_all
7158 ;;
d7040cdb 7159
7357c5b6
AM
7160solaris*)
7161 lt_cv_deplibs_check_method=pass_all
7162 ;;
d7040cdb 7163
7357c5b6
AM
7164sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7165 lt_cv_deplibs_check_method=pass_all
7166 ;;
d7040cdb 7167
7357c5b6
AM
7168sysv4 | sysv4.3*)
7169 case $host_vendor in
7170 motorola)
7171 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]'
7172 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7173 ;;
7174 ncr)
7175 lt_cv_deplibs_check_method=pass_all
7176 ;;
7177 sequent)
7178 lt_cv_file_magic_cmd='/bin/file'
7179 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7180 ;;
7181 sni)
7182 lt_cv_file_magic_cmd='/bin/file'
7183 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7184 lt_cv_file_magic_test_file=/lib/libc.so
7185 ;;
7186 siemens)
7187 lt_cv_deplibs_check_method=pass_all
7188 ;;
7189 pc)
7190 lt_cv_deplibs_check_method=pass_all
7191 ;;
7192 esac
7193 ;;
d7040cdb 7194
7357c5b6
AM
7195tpf*)
7196 lt_cv_deplibs_check_method=pass_all
7197 ;;
7198esac
d7040cdb 7199
7357c5b6 7200fi
81ecdfbb
RW
7201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7202$as_echo "$lt_cv_deplibs_check_method" >&6; }
7357c5b6
AM
7203file_magic_cmd=$lt_cv_file_magic_cmd
7204deplibs_check_method=$lt_cv_deplibs_check_method
7205test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb
SE
7206
7207
7208
7357c5b6
AM
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218if test -n "$ac_tool_prefix"; then
7219 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7220set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
7221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7222$as_echo_n "checking for $ac_word... " >&6; }
7223if test "${ac_cv_prog_AR+set}" = set; then :
7224 $as_echo_n "(cached) " >&6
7357c5b6
AM
7225else
7226 if test -n "$AR"; then
7227 ac_cv_prog_AR="$AR" # Let the user override the test.
7228else
7229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7230for as_dir in $PATH
7231do
7232 IFS=$as_save_IFS
7233 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7234 for ac_exec_ext in '' $ac_executable_extensions; do
7235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 7236 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 7237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 7238 break 2
ce2cded5
L
7239 fi
7240done
81ecdfbb
RW
7241 done
7242IFS=$as_save_IFS
d7040cdb 7243
42ecbf5e 7244fi
ce2cded5 7245fi
7357c5b6
AM
7246AR=$ac_cv_prog_AR
7247if test -n "$AR"; then
81ecdfbb
RW
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7249$as_echo "$AR" >&6; }
42ecbf5e 7250else
81ecdfbb
RW
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7252$as_echo "no" >&6; }
42ecbf5e
DJ
7253fi
7254
81ecdfbb 7255
7357c5b6
AM
7256fi
7257if test -z "$ac_cv_prog_AR"; then
7258 ac_ct_AR=$AR
7259 # Extract the first word of "ar", so it can be a program name with args.
7260set dummy 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_ac_ct_AR+set}" = set; then :
7264 $as_echo_n "(cached) " >&6
7357c5b6
AM
7265else
7266 if test -n "$ac_ct_AR"; then
7267 ac_cv_prog_ac_ct_AR="$ac_ct_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_ac_ct_AR="ar"
81ecdfbb 7277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
7278 break 2
7279 fi
7280done
81ecdfbb
RW
7281 done
7282IFS=$as_save_IFS
42ecbf5e 7283
7357c5b6
AM
7284fi
7285fi
7286ac_ct_AR=$ac_cv_prog_ac_ct_AR
7287if test -n "$ac_ct_AR"; then
81ecdfbb
RW
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7289$as_echo "$ac_ct_AR" >&6; }
7357c5b6 7290else
81ecdfbb
RW
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7292$as_echo "no" >&6; }
7357c5b6 7293fi
d7040cdb 7294
81ecdfbb
RW
7295 if test "x$ac_ct_AR" = x; then
7296 AR="false"
7297 else
7298 case $cross_compiling:$ac_tool_warned in
7299yes:)
7300{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7301$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7302ac_tool_warned=yes ;;
7303esac
7304 AR=$ac_ct_AR
7305 fi
7357c5b6
AM
7306else
7307 AR="$ac_cv_prog_AR"
7308fi
d7040cdb 7309
7357c5b6
AM
7310test -z "$AR" && AR=ar
7311test -z "$AR_FLAGS" && AR_FLAGS=cru
d7040cdb
SE
7312
7313
7314
20e95c23 7315
d7040cdb 7316
d7040cdb
SE
7317
7318
7319
7320
7321
7322
7357c5b6
AM
7323if test -n "$ac_tool_prefix"; then
7324 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7325set dummy ${ac_tool_prefix}strip; ac_word=$2
81ecdfbb
RW
7326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7327$as_echo_n "checking for $ac_word... " >&6; }
7328if test "${ac_cv_prog_STRIP+set}" = set; then :
7329 $as_echo_n "(cached) " >&6
7357c5b6
AM
7330else
7331 if test -n "$STRIP"; then
7332 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7333else
7334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7335for as_dir in $PATH
7336do
7337 IFS=$as_save_IFS
7338 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7339 for ac_exec_ext in '' $ac_executable_extensions; do
7340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 7341 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
81ecdfbb 7342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 7343 break 2
ce2cded5 7344 fi
7357c5b6 7345done
81ecdfbb
RW
7346 done
7347IFS=$as_save_IFS
d7040cdb 7348
7357c5b6
AM
7349fi
7350fi
7351STRIP=$ac_cv_prog_STRIP
7352if test -n "$STRIP"; then
81ecdfbb
RW
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7354$as_echo "$STRIP" >&6; }
7357c5b6 7355else
81ecdfbb
RW
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7357$as_echo "no" >&6; }
7357c5b6
AM
7358fi
7359
81ecdfbb 7360
7357c5b6
AM
7361fi
7362if test -z "$ac_cv_prog_STRIP"; then
7363 ac_ct_STRIP=$STRIP
7364 # Extract the first word of "strip", so it can be a program name with args.
7365set dummy 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_ac_ct_STRIP+set}" = set; then :
7369 $as_echo_n "(cached) " >&6
7357c5b6
AM
7370else
7371 if test -n "$ac_ct_STRIP"; then
7372 ac_cv_prog_ac_ct_STRIP="$ac_ct_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_ac_ct_STRIP="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
7391ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7392if test -n "$ac_ct_STRIP"; then
81ecdfbb
RW
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7394$as_echo "$ac_ct_STRIP" >&6; }
20e95c23 7395else
81ecdfbb
RW
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7397$as_echo "no" >&6; }
7357c5b6 7398fi
d7040cdb 7399
81ecdfbb
RW
7400 if test "x$ac_ct_STRIP" = x; then
7401 STRIP=":"
7402 else
7403 case $cross_compiling:$ac_tool_warned in
7404yes:)
7405{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7406$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7407ac_tool_warned=yes ;;
7408esac
7409 STRIP=$ac_ct_STRIP
7410 fi
7357c5b6
AM
7411else
7412 STRIP="$ac_cv_prog_STRIP"
7413fi
d7040cdb 7414
7357c5b6 7415test -z "$STRIP" && STRIP=:
d7040cdb 7416
d7040cdb
SE
7417
7418
7419
d7040cdb 7420
7357c5b6
AM
7421
7422if test -n "$ac_tool_prefix"; then
7423 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7424set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
7425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7426$as_echo_n "checking for $ac_word... " >&6; }
7427if test "${ac_cv_prog_RANLIB+set}" = set; then :
7428 $as_echo_n "(cached) " >&6
ce2cded5 7429else
7357c5b6
AM
7430 if test -n "$RANLIB"; then
7431 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7432else
7433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7434for as_dir in $PATH
ce2cded5 7435do
7357c5b6
AM
7436 IFS=$as_save_IFS
7437 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7438 for ac_exec_ext in '' $ac_executable_extensions; do
7439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 7440 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 7441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 7442 break 2
ce2cded5 7443 fi
7357c5b6 7444done
81ecdfbb
RW
7445 done
7446IFS=$as_save_IFS
7357c5b6 7447
ce2cded5 7448fi
7357c5b6
AM
7449fi
7450RANLIB=$ac_cv_prog_RANLIB
7451if test -n "$RANLIB"; then
81ecdfbb
RW
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7453$as_echo "$RANLIB" >&6; }
ce2cded5 7454else
81ecdfbb
RW
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7456$as_echo "no" >&6; }
ce2cded5 7457fi
d7040cdb 7458
81ecdfbb 7459
7357c5b6
AM
7460fi
7461if test -z "$ac_cv_prog_RANLIB"; then
7462 ac_ct_RANLIB=$RANLIB
7463 # Extract the first word of "ranlib", so it can be a program name with args.
7464set dummy 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_ac_ct_RANLIB+set}" = set; then :
7468 $as_echo_n "(cached) " >&6
ce2cded5 7469else
7357c5b6
AM
7470 if test -n "$ac_ct_RANLIB"; then
7471 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7472else
7473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7474for as_dir in $PATH
7475do
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_ac_ct_RANLIB="ranlib"
81ecdfbb 7481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
7482 break 2
7483 fi
7484done
81ecdfbb
RW
7485 done
7486IFS=$as_save_IFS
7357c5b6 7487
ce2cded5 7488fi
7357c5b6
AM
7489fi
7490ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7491if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7493$as_echo "$ac_ct_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
RW
7499 if test "x$ac_ct_RANLIB" = x; then
7500 RANLIB=":"
7501 else
7502 case $cross_compiling:$ac_tool_warned in
7503yes:)
7504{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7505$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7506ac_tool_warned=yes ;;
7507esac
7508 RANLIB=$ac_ct_RANLIB
7509 fi
7357c5b6
AM
7510else
7511 RANLIB="$ac_cv_prog_RANLIB"
ce2cded5 7512fi
d7040cdb 7513
7357c5b6 7514test -z "$RANLIB" && RANLIB=:
d7040cdb 7515
7357c5b6
AM
7516
7517
7518
7519
7520
7521# Determine commands to create old-style static archives.
b214d478 7522old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7357c5b6
AM
7523old_postinstall_cmds='chmod 644 $oldlib'
7524old_postuninstall_cmds=
7525
7526if test -n "$RANLIB"; then
7527 case $host_os in
7528 openbsd*)
7529 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7530 ;;
7531 *)
7532 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7533 ;;
7534 esac
7535 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
ce2cded5 7536fi
7357c5b6 7537
3725885a
RW
7538case $host_os in
7539 darwin*)
7540 lock_old_archive_extraction=yes ;;
7541 *)
7542 lock_old_archive_extraction=no ;;
7543esac
7544
7545
7546
7547
7548
7549
7357c5b6
AM
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583# If no C compiler was specified, use CC.
7584LTCC=${LTCC-"$CC"}
7585
7586# If no C compiler flags were specified, use CFLAGS.
7587LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7588
7589# Allow CC to be a program name with arguments.
7590compiler=$CC
7591
7592
7593# Check for command to grab the raw symbol name followed by C symbol from nm.
81ecdfbb
RW
7594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7595$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7596if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7597 $as_echo_n "(cached) " >&6
ce2cded5 7598else
d7040cdb 7599
7357c5b6
AM
7600# These are sane defaults that work on at least a few old systems.
7601# [They come from Ultrix. What could be older than Ultrix?!! ;)]
d7040cdb 7602
7357c5b6
AM
7603# Character class describing NM global symbol codes.
7604symcode='[BCDEGRST]'
7605
7606# Regexp to match symbols that can be accessed directly from C.
7607sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7608
7609# Define system-specific variables.
7610case $host_os in
7611aix*)
7612 symcode='[BCDT]'
7613 ;;
b214d478 7614cygwin* | mingw* | pw32* | cegcc*)
7357c5b6
AM
7615 symcode='[ABCDGISTW]'
7616 ;;
7617hpux*)
7618 if test "$host_cpu" = ia64; then
7619 symcode='[ABCDEGRST]'
ce2cded5 7620 fi
7357c5b6
AM
7621 ;;
7622irix* | nonstopux*)
7623 symcode='[BCDEGRST]'
7624 ;;
7625osf*)
7626 symcode='[BCDEGQRST]'
7627 ;;
7628solaris*)
7629 symcode='[BDRT]'
7630 ;;
7631sco3.2v5*)
7632 symcode='[DT]'
7633 ;;
7634sysv4.2uw2*)
7635 symcode='[DT]'
7636 ;;
7637sysv5* | sco5v6* | unixware* | OpenUNIX*)
7638 symcode='[ABDT]'
7639 ;;
7640sysv4)
7641 symcode='[DFNSTU]'
7642 ;;
7643esac
d7040cdb 7644
7357c5b6
AM
7645# If we're using GNU nm, then use its standard symbol codes.
7646case `$NM -V 2>&1` in
7647*GNU* | *'with BFD'*)
7648 symcode='[ABCDGIRSTW]' ;;
7649esac
d7040cdb 7650
7357c5b6
AM
7651# Transform an extracted symbol line into a proper C declaration.
7652# Some systems (esp. on ia64) link data and code symbols differently,
7653# so use this general approach.
7654lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7655
7656# Transform an extracted symbol line into symbol name and symbol address
7657lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
b214d478 7658lt_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
7659
7660# Handle CRLF in mingw tool chain
7661opt_cr=
7662case $build_os in
7663mingw*)
7664 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7665 ;;
7666esac
d7040cdb 7667
7357c5b6
AM
7668# Try without a prefix underscore, then with it.
7669for ac_symprfx in "" "_"; do
d7040cdb 7670
7357c5b6
AM
7671 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7672 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 7673
7357c5b6
AM
7674 # Write the raw and C identifiers.
7675 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7676 # Fake it for dumpbin and say T for any non-static function
7677 # and D for any global variable.
7678 # Also find C++ and __fastcall symbols from MSVC++,
7679 # which start with @ or ?.
7680 lt_cv_sys_global_symbol_pipe="$AWK '"\
7681" {last_section=section; section=\$ 3};"\
7682" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7683" \$ 0!~/External *\|/{next};"\
7684" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7685" {if(hide[section]) next};"\
7686" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7687" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7688" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7689" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7690" ' prfx=^$ac_symprfx"
7691 else
7692 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7693 fi
d7040cdb 7694
7357c5b6
AM
7695 # Check to see that the pipe works correctly.
7696 pipe_works=no
d7040cdb 7697
7357c5b6
AM
7698 rm -f conftest*
7699 cat > conftest.$ac_ext <<_LT_EOF
7700#ifdef __cplusplus
7701extern "C" {
7702#endif
7703char nm_test_var;
7704void nm_test_func(void);
7705void nm_test_func(void){}
7706#ifdef __cplusplus
20e95c23 7707}
7357c5b6
AM
7708#endif
7709int main(){nm_test_var='a';nm_test_func();return(0);}
7710_LT_EOF
7711
81ecdfbb 7712 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6 7713 (eval $ac_compile) 2>&5
20e95c23 7714 ac_status=$?
81ecdfbb
RW
7715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7716 test $ac_status = 0; }; then
7357c5b6
AM
7717 # Now try to grab the symbols.
7718 nlist=conftest.nm
3725885a
RW
7719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7720 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
20e95c23 7721 ac_status=$?
81ecdfbb
RW
7722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7723 test $ac_status = 0; } && test -s "$nlist"; then
7357c5b6
AM
7724 # Try sorting and uniquifying the output.
7725 if sort "$nlist" | uniq > "$nlist"T; then
7726 mv -f "$nlist"T "$nlist"
7727 else
7728 rm -f "$nlist"T
7729 fi
d7040cdb 7730
7357c5b6
AM
7731 # Make sure that we snagged all the symbols we need.
7732 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7733 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7734 cat <<_LT_EOF > conftest.$ac_ext
7735#ifdef __cplusplus
7736extern "C" {
7737#endif
ce2cded5 7738
7357c5b6
AM
7739_LT_EOF
7740 # Now generate the symbol file.
7741 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
ce2cded5 7742
7357c5b6 7743 cat <<_LT_EOF >> conftest.$ac_ext
42ecbf5e 7744
7357c5b6
AM
7745/* The mapping between symbol names and symbols. */
7746const struct {
7747 const char *name;
7748 void *address;
7749}
7750lt__PROGRAM__LTX_preloaded_symbols[] =
7751{
7752 { "@PROGRAM@", (void *) 0 },
7753_LT_EOF
7754 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7755 cat <<\_LT_EOF >> conftest.$ac_ext
7756 {0, (void *) 0}
7757};
d7040cdb 7758
7357c5b6
AM
7759/* This works around a problem in FreeBSD linker */
7760#ifdef FREEBSD_WORKAROUND
7761static const void *lt_preloaded_setup() {
7762 return lt__PROGRAM__LTX_preloaded_symbols;
7763}
ce2cded5 7764#endif
42ecbf5e 7765
7357c5b6 7766#ifdef __cplusplus
ce2cded5 7767}
7357c5b6
AM
7768#endif
7769_LT_EOF
7770 # Now try linking the two files.
7771 mv conftest.$ac_objext conftstm.$ac_objext
7772 lt_save_LIBS="$LIBS"
7773 lt_save_CFLAGS="$CFLAGS"
7774 LIBS="conftstm.$ac_objext"
7775 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
81ecdfbb 7776 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5
L
7777 (eval $ac_link) 2>&5
7778 ac_status=$?
81ecdfbb
RW
7779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7780 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7357c5b6
AM
7781 pipe_works=yes
7782 fi
7783 LIBS="$lt_save_LIBS"
7784 CFLAGS="$lt_save_CFLAGS"
7785 else
7786 echo "cannot find nm_test_func in $nlist" >&5
7787 fi
7788 else
7789 echo "cannot find nm_test_var in $nlist" >&5
7790 fi
7791 else
7792 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7793 fi
7794 else
7795 echo "$progname: failed program was:" >&5
7796 cat conftest.$ac_ext >&5
7797 fi
b214d478 7798 rm -rf conftest* conftst*
7357c5b6
AM
7799
7800 # Do not use the global_symbol_pipe unless it works.
7801 if test "$pipe_works" = yes; then
7802 break
7803 else
7804 lt_cv_sys_global_symbol_pipe=
7805 fi
7806done
42ecbf5e 7807
ce2cded5 7808fi
7357c5b6
AM
7809
7810if test -z "$lt_cv_sys_global_symbol_pipe"; then
7811 lt_cv_sys_global_symbol_to_cdecl=
ce2cded5 7812fi
7357c5b6 7813if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
81ecdfbb
RW
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7815$as_echo "failed" >&6; }
7357c5b6 7816else
81ecdfbb
RW
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7818$as_echo "ok" >&6; }
ce2cded5 7819fi
e5a52504 7820
d7040cdb 7821
e5a52504 7822
d7040cdb 7823
d7040cdb 7824
d7040cdb 7825
d7040cdb 7826
d7040cdb 7827
d7040cdb 7828
d7040cdb 7829
d7040cdb 7830
d7040cdb 7831
7357c5b6
AM
7832
7833
7834
b214d478
SE
7835
7836
7837
7838
7839
7357c5b6
AM
7840
7841
81ecdfbb
RW
7842# Check whether --enable-libtool-lock was given.
7843if test "${enable_libtool_lock+set}" = set; then :
7844 enableval=$enable_libtool_lock;
7845fi
7357c5b6 7846
7357c5b6
AM
7847test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7848
7849# Some flags need to be propagated to the compiler or linker for good
7850# libtool support.
7851case $host in
7852ia64-*-hpux*)
7853 # Find out which ABI we are using.
7854 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7855 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7856 (eval $ac_compile) 2>&5
7857 ac_status=$?
81ecdfbb
RW
7858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7859 test $ac_status = 0; }; then
7357c5b6
AM
7860 case `/usr/bin/file conftest.$ac_objext` in
7861 *ELF-32*)
7862 HPUX_IA64_MODE="32"
7863 ;;
7864 *ELF-64*)
7865 HPUX_IA64_MODE="64"
7866 ;;
7867 esac
7868 fi
7869 rm -rf conftest*
7870 ;;
7871*-*-irix6*)
7872 # Find out which ABI we are using.
3725885a 7873 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
81ecdfbb 7874 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7875 (eval $ac_compile) 2>&5
7876 ac_status=$?
81ecdfbb
RW
7877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7878 test $ac_status = 0; }; then
7357c5b6
AM
7879 if test "$lt_cv_prog_gnu_ld" = yes; then
7880 case `/usr/bin/file conftest.$ac_objext` in
7881 *32-bit*)
7882 LD="${LD-ld} -melf32bsmip"
7883 ;;
7884 *N32*)
7885 LD="${LD-ld} -melf32bmipn32"
7886 ;;
7887 *64-bit*)
7888 LD="${LD-ld} -melf64bmip"
7889 ;;
7890 esac
7891 else
7892 case `/usr/bin/file conftest.$ac_objext` in
7893 *32-bit*)
7894 LD="${LD-ld} -32"
7895 ;;
7896 *N32*)
7897 LD="${LD-ld} -n32"
7898 ;;
7899 *64-bit*)
7900 LD="${LD-ld} -64"
7901 ;;
7902 esac
7903 fi
7904 fi
7905 rm -rf conftest*
7906 ;;
7907
7908x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7909s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7910 # Find out which ABI we are using.
7911 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7912 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7913 (eval $ac_compile) 2>&5
7914 ac_status=$?
81ecdfbb
RW
7915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7916 test $ac_status = 0; }; then
7357c5b6
AM
7917 case `/usr/bin/file conftest.o` in
7918 *32-bit*)
7919 case $host in
7920 x86_64-*kfreebsd*-gnu)
7921 LD="${LD-ld} -m elf_i386_fbsd"
7922 ;;
7923 x86_64-*linux*)
7924 LD="${LD-ld} -m elf_i386"
7925 ;;
7926 ppc64-*linux*|powerpc64-*linux*)
7927 LD="${LD-ld} -m elf32ppclinux"
7928 ;;
7929 s390x-*linux*)
7930 LD="${LD-ld} -m elf_s390"
7931 ;;
7932 sparc64-*linux*)
7933 LD="${LD-ld} -m elf32_sparc"
7934 ;;
7935 esac
7936 ;;
7937 *64-bit*)
7938 case $host in
7939 x86_64-*kfreebsd*-gnu)
7940 LD="${LD-ld} -m elf_x86_64_fbsd"
7941 ;;
7942 x86_64-*linux*)
7943 LD="${LD-ld} -m elf_x86_64"
7944 ;;
7945 ppc*-*linux*|powerpc*-*linux*)
7946 LD="${LD-ld} -m elf64ppc"
7947 ;;
7948 s390*-*linux*|s390*-*tpf*)
7949 LD="${LD-ld} -m elf64_s390"
7950 ;;
7951 sparc*-*linux*)
7952 LD="${LD-ld} -m elf64_sparc"
7953 ;;
7954 esac
7955 ;;
7956 esac
7957 fi
7958 rm -rf conftest*
7959 ;;
7960
7961*-*-sco3.2v5*)
7962 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7963 SAVE_CFLAGS="$CFLAGS"
7964 CFLAGS="$CFLAGS -belf"
81ecdfbb
RW
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7966$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7967if test "${lt_cv_cc_needs_belf+set}" = set; then :
7968 $as_echo_n "(cached) " >&6
ce2cded5 7969else
7357c5b6
AM
7970 ac_ext=c
7971ac_cpp='$CPP $CPPFLAGS'
7972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7974ac_compiler_gnu=$ac_cv_c_compiler_gnu
7975
81ecdfbb 7976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 7977/* end confdefs.h. */
d7040cdb 7978
7357c5b6
AM
7979int
7980main ()
7981{
7982
7983 ;
7984 return 0;
7985}
ce2cded5 7986_ACEOF
81ecdfbb 7987if ac_fn_c_try_link "$LINENO"; then :
7357c5b6 7988 lt_cv_cc_needs_belf=yes
ce2cded5 7989else
81ecdfbb 7990 lt_cv_cc_needs_belf=no
ce2cded5 7991fi
81ecdfbb
RW
7992rm -f core conftest.err conftest.$ac_objext \
7993 conftest$ac_exeext conftest.$ac_ext
7357c5b6
AM
7994 ac_ext=c
7995ac_cpp='$CPP $CPPFLAGS'
7996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7998ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 7999
b214d478 8000fi
81ecdfbb
RW
8001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8002$as_echo "$lt_cv_cc_needs_belf" >&6; }
b214d478
SE
8003 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8004 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8005 CFLAGS="$SAVE_CFLAGS"
8006 fi
8007 ;;
8008sparc*-*solaris*)
8009 # Find out which ABI we are using.
8010 echo 'int i;' > conftest.$ac_ext
81ecdfbb 8011 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
b214d478
SE
8012 (eval $ac_compile) 2>&5
8013 ac_status=$?
81ecdfbb
RW
8014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8015 test $ac_status = 0; }; then
b214d478
SE
8016 case `/usr/bin/file conftest.o` in
8017 *64-bit*)
8018 case $lt_cv_prog_gnu_ld in
8019 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8020 *)
8021 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8022 LD="${LD-ld} -64"
8023 fi
8024 ;;
8025 esac
8026 ;;
8027 esac
8028 fi
8029 rm -rf conftest*
8030 ;;
8031esac
8032
8033need_locks="$enable_libtool_lock"
8034
8035
8036 case $host_os in
8037 rhapsody* | darwin*)
8038 if test -n "$ac_tool_prefix"; then
8039 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8040set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
81ecdfbb
RW
8041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8042$as_echo_n "checking for $ac_word... " >&6; }
8043if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8044 $as_echo_n "(cached) " >&6
b214d478
SE
8045else
8046 if test -n "$DSYMUTIL"; then
8047 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8048else
8049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8050for as_dir in $PATH
8051do
8052 IFS=$as_save_IFS
8053 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8054 for ac_exec_ext in '' $ac_executable_extensions; do
8055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 8056 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
81ecdfbb 8057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8058 break 2
8059 fi
8060done
81ecdfbb
RW
8061 done
8062IFS=$as_save_IFS
b214d478
SE
8063
8064fi
8065fi
8066DSYMUTIL=$ac_cv_prog_DSYMUTIL
8067if test -n "$DSYMUTIL"; then
81ecdfbb
RW
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8069$as_echo "$DSYMUTIL" >&6; }
b214d478 8070else
81ecdfbb
RW
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8072$as_echo "no" >&6; }
b214d478
SE
8073fi
8074
81ecdfbb 8075
b214d478
SE
8076fi
8077if test -z "$ac_cv_prog_DSYMUTIL"; then
8078 ac_ct_DSYMUTIL=$DSYMUTIL
8079 # Extract the first word of "dsymutil", so it can be a program name with args.
8080set dummy dsymutil; ac_word=$2
81ecdfbb
RW
8081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8082$as_echo_n "checking for $ac_word... " >&6; }
8083if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8084 $as_echo_n "(cached) " >&6
b214d478
SE
8085else
8086 if test -n "$ac_ct_DSYMUTIL"; then
8087 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8088else
8089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8090for as_dir in $PATH
8091do
8092 IFS=$as_save_IFS
8093 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8094 for ac_exec_ext in '' $ac_executable_extensions; do
8095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 8096 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
81ecdfbb 8097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8098 break 2
8099 fi
8100done
81ecdfbb
RW
8101 done
8102IFS=$as_save_IFS
b214d478 8103
b214d478
SE
8104fi
8105fi
8106ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8107if test -n "$ac_ct_DSYMUTIL"; then
81ecdfbb
RW
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8109$as_echo "$ac_ct_DSYMUTIL" >&6; }
b214d478 8110else
81ecdfbb
RW
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8112$as_echo "no" >&6; }
b214d478
SE
8113fi
8114
81ecdfbb
RW
8115 if test "x$ac_ct_DSYMUTIL" = x; then
8116 DSYMUTIL=":"
8117 else
8118 case $cross_compiling:$ac_tool_warned in
8119yes:)
8120{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8121$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8122ac_tool_warned=yes ;;
8123esac
8124 DSYMUTIL=$ac_ct_DSYMUTIL
8125 fi
b214d478
SE
8126else
8127 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8128fi
8129
8130 if test -n "$ac_tool_prefix"; then
8131 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8132set dummy ${ac_tool_prefix}nmedit; ac_word=$2
81ecdfbb
RW
8133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8134$as_echo_n "checking for $ac_word... " >&6; }
8135if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8136 $as_echo_n "(cached) " >&6
b214d478
SE
8137else
8138 if test -n "$NMEDIT"; then
8139 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8140else
8141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8142for as_dir in $PATH
8143do
8144 IFS=$as_save_IFS
8145 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8146 for ac_exec_ext in '' $ac_executable_extensions; do
8147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 8148 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
81ecdfbb 8149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8150 break 2
8151 fi
8152done
81ecdfbb
RW
8153 done
8154IFS=$as_save_IFS
b214d478
SE
8155
8156fi
8157fi
8158NMEDIT=$ac_cv_prog_NMEDIT
8159if test -n "$NMEDIT"; then
81ecdfbb
RW
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8161$as_echo "$NMEDIT" >&6; }
b214d478 8162else
81ecdfbb
RW
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8164$as_echo "no" >&6; }
b214d478
SE
8165fi
8166
81ecdfbb 8167
b214d478
SE
8168fi
8169if test -z "$ac_cv_prog_NMEDIT"; then
8170 ac_ct_NMEDIT=$NMEDIT
8171 # Extract the first word of "nmedit", so it can be a program name with args.
8172set dummy nmedit; ac_word=$2
81ecdfbb
RW
8173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8174$as_echo_n "checking for $ac_word... " >&6; }
8175if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8176 $as_echo_n "(cached) " >&6
b214d478
SE
8177else
8178 if test -n "$ac_ct_NMEDIT"; then
8179 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8180else
8181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8182for as_dir in $PATH
8183do
8184 IFS=$as_save_IFS
8185 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8186 for ac_exec_ext in '' $ac_executable_extensions; do
8187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 8188 ac_cv_prog_ac_ct_NMEDIT="nmedit"
81ecdfbb 8189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8190 break 2
8191 fi
8192done
81ecdfbb
RW
8193 done
8194IFS=$as_save_IFS
b214d478 8195
b214d478
SE
8196fi
8197fi
8198ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8199if test -n "$ac_ct_NMEDIT"; then
81ecdfbb
RW
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8201$as_echo "$ac_ct_NMEDIT" >&6; }
b214d478 8202else
81ecdfbb
RW
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8204$as_echo "no" >&6; }
b214d478
SE
8205fi
8206
81ecdfbb
RW
8207 if test "x$ac_ct_NMEDIT" = x; then
8208 NMEDIT=":"
8209 else
8210 case $cross_compiling:$ac_tool_warned in
8211yes:)
8212{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8213$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8214ac_tool_warned=yes ;;
8215esac
8216 NMEDIT=$ac_ct_NMEDIT
8217 fi
b214d478
SE
8218else
8219 NMEDIT="$ac_cv_prog_NMEDIT"
8220fi
8221
8222 if test -n "$ac_tool_prefix"; then
8223 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8224set dummy ${ac_tool_prefix}lipo; ac_word=$2
81ecdfbb
RW
8225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8226$as_echo_n "checking for $ac_word... " >&6; }
8227if test "${ac_cv_prog_LIPO+set}" = set; then :
8228 $as_echo_n "(cached) " >&6
b214d478
SE
8229else
8230 if test -n "$LIPO"; then
8231 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8232else
8233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8234for as_dir in $PATH
8235do
8236 IFS=$as_save_IFS
8237 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8238 for ac_exec_ext in '' $ac_executable_extensions; do
8239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 8240 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
81ecdfbb 8241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8242 break 2
8243 fi
8244done
81ecdfbb
RW
8245 done
8246IFS=$as_save_IFS
b214d478
SE
8247
8248fi
8249fi
8250LIPO=$ac_cv_prog_LIPO
8251if test -n "$LIPO"; then
81ecdfbb
RW
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8253$as_echo "$LIPO" >&6; }
b214d478 8254else
81ecdfbb
RW
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8256$as_echo "no" >&6; }
b214d478
SE
8257fi
8258
81ecdfbb 8259
b214d478
SE
8260fi
8261if test -z "$ac_cv_prog_LIPO"; then
8262 ac_ct_LIPO=$LIPO
8263 # Extract the first word of "lipo", so it can be a program name with args.
8264set dummy lipo; ac_word=$2
81ecdfbb
RW
8265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8266$as_echo_n "checking for $ac_word... " >&6; }
8267if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8268 $as_echo_n "(cached) " >&6
b214d478
SE
8269else
8270 if test -n "$ac_ct_LIPO"; then
8271 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8272else
8273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8274for as_dir in $PATH
8275do
8276 IFS=$as_save_IFS
8277 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8278 for ac_exec_ext in '' $ac_executable_extensions; do
8279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 8280 ac_cv_prog_ac_ct_LIPO="lipo"
81ecdfbb 8281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8282 break 2
8283 fi
8284done
81ecdfbb
RW
8285 done
8286IFS=$as_save_IFS
b214d478 8287
b214d478
SE
8288fi
8289fi
8290ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8291if test -n "$ac_ct_LIPO"; then
81ecdfbb
RW
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8293$as_echo "$ac_ct_LIPO" >&6; }
b214d478 8294else
81ecdfbb
RW
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8296$as_echo "no" >&6; }
b214d478
SE
8297fi
8298
81ecdfbb
RW
8299 if test "x$ac_ct_LIPO" = x; then
8300 LIPO=":"
8301 else
8302 case $cross_compiling:$ac_tool_warned in
8303yes:)
8304{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8305$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8306ac_tool_warned=yes ;;
8307esac
8308 LIPO=$ac_ct_LIPO
8309 fi
b214d478
SE
8310else
8311 LIPO="$ac_cv_prog_LIPO"
8312fi
8313
8314 if test -n "$ac_tool_prefix"; then
8315 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8316set dummy ${ac_tool_prefix}otool; ac_word=$2
81ecdfbb
RW
8317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8318$as_echo_n "checking for $ac_word... " >&6; }
8319if test "${ac_cv_prog_OTOOL+set}" = set; then :
8320 $as_echo_n "(cached) " >&6
b214d478
SE
8321else
8322 if test -n "$OTOOL"; then
8323 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8324else
8325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8326for as_dir in $PATH
8327do
8328 IFS=$as_save_IFS
8329 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8330 for ac_exec_ext in '' $ac_executable_extensions; do
8331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 8332 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
81ecdfbb 8333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8334 break 2
8335 fi
8336done
81ecdfbb
RW
8337 done
8338IFS=$as_save_IFS
b214d478
SE
8339
8340fi
8341fi
8342OTOOL=$ac_cv_prog_OTOOL
8343if test -n "$OTOOL"; then
81ecdfbb
RW
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8345$as_echo "$OTOOL" >&6; }
b214d478 8346else
81ecdfbb
RW
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8348$as_echo "no" >&6; }
b214d478
SE
8349fi
8350
81ecdfbb 8351
b214d478
SE
8352fi
8353if test -z "$ac_cv_prog_OTOOL"; then
8354 ac_ct_OTOOL=$OTOOL
8355 # Extract the first word of "otool", so it can be a program name with args.
8356set dummy otool; ac_word=$2
81ecdfbb
RW
8357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8358$as_echo_n "checking for $ac_word... " >&6; }
8359if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8360 $as_echo_n "(cached) " >&6
b214d478
SE
8361else
8362 if test -n "$ac_ct_OTOOL"; then
8363 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8364else
8365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8366for as_dir in $PATH
8367do
8368 IFS=$as_save_IFS
8369 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8370 for ac_exec_ext in '' $ac_executable_extensions; do
8371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 8372 ac_cv_prog_ac_ct_OTOOL="otool"
81ecdfbb 8373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8374 break 2
8375 fi
8376done
81ecdfbb
RW
8377 done
8378IFS=$as_save_IFS
b214d478 8379
b214d478
SE
8380fi
8381fi
8382ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8383if test -n "$ac_ct_OTOOL"; then
81ecdfbb
RW
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8385$as_echo "$ac_ct_OTOOL" >&6; }
b214d478 8386else
81ecdfbb
RW
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8388$as_echo "no" >&6; }
b214d478
SE
8389fi
8390
81ecdfbb
RW
8391 if test "x$ac_ct_OTOOL" = x; then
8392 OTOOL=":"
8393 else
8394 case $cross_compiling:$ac_tool_warned in
8395yes:)
8396{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8397$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8398ac_tool_warned=yes ;;
8399esac
8400 OTOOL=$ac_ct_OTOOL
8401 fi
b214d478
SE
8402else
8403 OTOOL="$ac_cv_prog_OTOOL"
8404fi
8405
8406 if test -n "$ac_tool_prefix"; then
8407 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8408set dummy ${ac_tool_prefix}otool64; ac_word=$2
81ecdfbb
RW
8409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8410$as_echo_n "checking for $ac_word... " >&6; }
8411if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8412 $as_echo_n "(cached) " >&6
b214d478
SE
8413else
8414 if test -n "$OTOOL64"; then
8415 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8416else
8417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8418for as_dir in $PATH
8419do
8420 IFS=$as_save_IFS
8421 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8422 for ac_exec_ext in '' $ac_executable_extensions; do
8423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 8424 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
81ecdfbb 8425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8426 break 2
8427 fi
8428done
81ecdfbb
RW
8429 done
8430IFS=$as_save_IFS
b214d478
SE
8431
8432fi
8433fi
8434OTOOL64=$ac_cv_prog_OTOOL64
8435if test -n "$OTOOL64"; then
81ecdfbb
RW
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8437$as_echo "$OTOOL64" >&6; }
b214d478 8438else
81ecdfbb
RW
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8440$as_echo "no" >&6; }
b214d478
SE
8441fi
8442
81ecdfbb 8443
b214d478
SE
8444fi
8445if test -z "$ac_cv_prog_OTOOL64"; then
8446 ac_ct_OTOOL64=$OTOOL64
8447 # Extract the first word of "otool64", so it can be a program name with args.
8448set dummy otool64; ac_word=$2
81ecdfbb
RW
8449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8450$as_echo_n "checking for $ac_word... " >&6; }
8451if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8452 $as_echo_n "(cached) " >&6
b214d478
SE
8453else
8454 if test -n "$ac_ct_OTOOL64"; then
8455 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8456else
8457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8458for as_dir in $PATH
8459do
8460 IFS=$as_save_IFS
8461 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8462 for ac_exec_ext in '' $ac_executable_extensions; do
8463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 8464 ac_cv_prog_ac_ct_OTOOL64="otool64"
81ecdfbb 8465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8466 break 2
8467 fi
8468done
81ecdfbb
RW
8469 done
8470IFS=$as_save_IFS
b214d478 8471
b214d478
SE
8472fi
8473fi
8474ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8475if test -n "$ac_ct_OTOOL64"; then
81ecdfbb
RW
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8477$as_echo "$ac_ct_OTOOL64" >&6; }
b214d478 8478else
81ecdfbb
RW
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8480$as_echo "no" >&6; }
b214d478
SE
8481fi
8482
81ecdfbb
RW
8483 if test "x$ac_ct_OTOOL64" = x; then
8484 OTOOL64=":"
8485 else
8486 case $cross_compiling:$ac_tool_warned in
8487yes:)
8488{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8489$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8490ac_tool_warned=yes ;;
8491esac
8492 OTOOL64=$ac_ct_OTOOL64
8493 fi
b214d478
SE
8494else
8495 OTOOL64="$ac_cv_prog_OTOOL64"
8496fi
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
81ecdfbb
RW
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8525$as_echo_n "checking for -single_module linker flag... " >&6; }
8526if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8527 $as_echo_n "(cached) " >&6
b214d478
SE
8528else
8529 lt_cv_apple_cc_single_mod=no
8530 if test -z "${LT_MULTI_MODULE}"; then
8531 # By default we will add the -single_module flag. You can override
8532 # by either setting the environment variable LT_MULTI_MODULE
8533 # non-empty at configure time, or by adding -multi_module to the
8534 # link flags.
8535 rm -rf libconftest.dylib*
8536 echo "int foo(void){return 1;}" > conftest.c
8537 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8538-dynamiclib -Wl,-single_module conftest.c" >&5
8539 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8540 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8541 _lt_result=$?
8542 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8543 lt_cv_apple_cc_single_mod=yes
8544 else
8545 cat conftest.err >&5
8546 fi
8547 rm -rf libconftest.dylib*
8548 rm -f conftest.*
8549 fi
8550fi
81ecdfbb
RW
8551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8552$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8554$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8555if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8556 $as_echo_n "(cached) " >&6
b214d478
SE
8557else
8558 lt_cv_ld_exported_symbols_list=no
8559 save_LDFLAGS=$LDFLAGS
8560 echo "_main" > conftest.sym
8561 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
81ecdfbb 8562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b214d478
SE
8563/* end confdefs.h. */
8564
8565int
8566main ()
8567{
8568
8569 ;
8570 return 0;
8571}
8572_ACEOF
81ecdfbb 8573if ac_fn_c_try_link "$LINENO"; then :
b214d478
SE
8574 lt_cv_ld_exported_symbols_list=yes
8575else
81ecdfbb 8576 lt_cv_ld_exported_symbols_list=no
b214d478 8577fi
81ecdfbb
RW
8578rm -f core conftest.err conftest.$ac_objext \
8579 conftest$ac_exeext conftest.$ac_ext
b214d478
SE
8580 LDFLAGS="$save_LDFLAGS"
8581
8582fi
81ecdfbb
RW
8583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8584$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
3725885a
RW
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8586$as_echo_n "checking for -force_load linker flag... " >&6; }
8587if test "${lt_cv_ld_force_load+set}" = set; then :
8588 $as_echo_n "(cached) " >&6
8589else
8590 lt_cv_ld_force_load=no
8591 cat > conftest.c << _LT_EOF
8592int forced_loaded() { return 2;}
8593_LT_EOF
8594 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8595 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8596 echo "$AR cru libconftest.a conftest.o" >&5
8597 $AR cru libconftest.a conftest.o 2>&5
8598 cat > conftest.c << _LT_EOF
8599int main() { return 0;}
8600_LT_EOF
8601 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8602 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8603 _lt_result=$?
8604 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8605 lt_cv_ld_force_load=yes
8606 else
8607 cat conftest.err >&5
8608 fi
8609 rm -f conftest.err libconftest.a conftest conftest.c
8610 rm -rf conftest.dSYM
8611
8612fi
8613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8614$as_echo "$lt_cv_ld_force_load" >&6; }
b214d478
SE
8615 case $host_os in
8616 rhapsody* | darwin1.[012])
8617 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8618 darwin1.*)
8619 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8620 darwin*) # darwin 5.x on
8621 # if running on 10.5 or later, the deployment target defaults
8622 # to the OS version, if on x86, and 10.4, the deployment
8623 # target defaults to 10.4. Don't you love it?
8624 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8625 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8626 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8627 10.[012]*)
8628 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8629 10.*)
8630 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8631 esac
8632 ;;
8633 esac
8634 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8635 _lt_dar_single_mod='$single_module'
8636 fi
8637 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8638 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8639 else
8640 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8641 fi
3725885a 8642 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
b214d478
SE
8643 _lt_dsymutil='~$DSYMUTIL $lib || :'
8644 else
8645 _lt_dsymutil=
8646 fi
8647 ;;
8648 esac
8649
b214d478 8650for ac_header in dlfcn.h
81ecdfbb
RW
8651do :
8652 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8653"
8654if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
b214d478 8655 cat >>confdefs.h <<_ACEOF
81ecdfbb 8656#define HAVE_DLFCN_H 1
b214d478
SE
8657_ACEOF
8658
8659fi
8660
8661done
8662
8663
8664
3725885a
RW
8665
8666
3cb62297 8667
b214d478
SE
8668# Set options
8669
8670
8671
8672 enable_dlopen=no
8673
8674
8675 enable_win32_dll=no
8676
8677
81ecdfbb
RW
8678 # Check whether --enable-shared was given.
8679if test "${enable_shared+set}" = set; then :
8680 enableval=$enable_shared; p=${PACKAGE-default}
b214d478
SE
8681 case $enableval in
8682 yes) enable_shared=yes ;;
8683 no) enable_shared=no ;;
8684 *)
8685 enable_shared=no
8686 # Look at the argument we got. We use all the common list separators.
8687 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8688 for pkg in $enableval; do
8689 IFS="$lt_save_ifs"
8690 if test "X$pkg" = "X$p"; then
8691 enable_shared=yes
8692 fi
8693 done
8694 IFS="$lt_save_ifs"
8695 ;;
8696 esac
8697else
8698 enable_shared=yes
81ecdfbb 8699fi
b214d478
SE
8700
8701
8702
8703
8704
8705
8706
8707
81ecdfbb
RW
8708
8709 # Check whether --enable-static was given.
8710if test "${enable_static+set}" = set; then :
8711 enableval=$enable_static; p=${PACKAGE-default}
b214d478
SE
8712 case $enableval in
8713 yes) enable_static=yes ;;
8714 no) enable_static=no ;;
8715 *)
8716 enable_static=no
8717 # Look at the argument we got. We use all the common list separators.
8718 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8719 for pkg in $enableval; do
8720 IFS="$lt_save_ifs"
8721 if test "X$pkg" = "X$p"; then
8722 enable_static=yes
8723 fi
8724 done
8725 IFS="$lt_save_ifs"
8726 ;;
8727 esac
8728else
8729 enable_static=yes
81ecdfbb 8730fi
b214d478
SE
8731
8732
8733
8734
8735
8736
8737
8738
8739
81ecdfbb
RW
8740
8741# Check whether --with-pic was given.
8742if test "${with_pic+set}" = set; then :
8743 withval=$with_pic; pic_mode="$withval"
b214d478
SE
8744else
8745 pic_mode=default
81ecdfbb
RW
8746fi
8747
b214d478
SE
8748
8749test -z "$pic_mode" && pic_mode=default
8750
8751
8752
8753
8754
8755
8756
81ecdfbb
RW
8757 # Check whether --enable-fast-install was given.
8758if test "${enable_fast_install+set}" = set; then :
8759 enableval=$enable_fast_install; p=${PACKAGE-default}
b214d478
SE
8760 case $enableval in
8761 yes) enable_fast_install=yes ;;
8762 no) enable_fast_install=no ;;
8763 *)
8764 enable_fast_install=no
8765 # Look at the argument we got. We use all the common list separators.
8766 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8767 for pkg in $enableval; do
8768 IFS="$lt_save_ifs"
8769 if test "X$pkg" = "X$p"; then
8770 enable_fast_install=yes
8771 fi
8772 done
8773 IFS="$lt_save_ifs"
7357c5b6
AM
8774 ;;
8775 esac
b214d478
SE
8776else
8777 enable_fast_install=yes
81ecdfbb
RW
8778fi
8779
ce2cded5 8780
ce2cded5
L
8781
8782
ce2cded5 8783
42ecbf5e 8784
d7040cdb 8785
d7040cdb 8786
d7040cdb 8787
d7040cdb 8788
d7040cdb 8789
ce2cded5
L
8790# This can be used to rebuild libtool when needed
8791LIBTOOL_DEPS="$ltmain"
d7040cdb 8792
ce2cded5
L
8793# Always use our own libtool.
8794LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d7040cdb 8795
d7040cdb 8796
d7040cdb 8797
d7040cdb 8798
d7040cdb 8799
d7040cdb 8800
d7040cdb 8801
d7040cdb 8802
d7040cdb 8803
d7040cdb 8804
d7040cdb 8805
d7040cdb 8806
d7040cdb 8807
d7040cdb 8808
d7040cdb 8809
d7040cdb 8810
d7040cdb
SE
8811
8812
8813
8814
8815
8816
8817
3725885a 8818
d7040cdb
SE
8819
8820
ce2cded5 8821test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
8822
8823
8824
8825
8826
8827
d7040cdb
SE
8828
8829
8830
8831
8832
8833
8834
8835
ce2cded5
L
8836if test -n "${ZSH_VERSION+set}" ; then
8837 setopt NO_GLOB_SUBST
8838fi
d7040cdb 8839
81ecdfbb
RW
8840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8841$as_echo_n "checking for objdir... " >&6; }
8842if test "${lt_cv_objdir+set}" = set; then :
8843 $as_echo_n "(cached) " >&6
ce2cded5
L
8844else
8845 rm -f .libs 2>/dev/null
8846mkdir .libs 2>/dev/null
8847if test -d .libs; then
8848 lt_cv_objdir=.libs
8849else
8850 # MS-DOS does not allow filenames that begin with a dot.
8851 lt_cv_objdir=_libs
8852fi
8853rmdir .libs 2>/dev/null
8854fi
81ecdfbb
RW
8855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8856$as_echo "$lt_cv_objdir" >&6; }
ce2cded5 8857objdir=$lt_cv_objdir
d7040cdb
SE
8858
8859
8860
8861
8862
ce2cded5
L
8863cat >>confdefs.h <<_ACEOF
8864#define LT_OBJDIR "$lt_cv_objdir/"
8865_ACEOF
d7040cdb
SE
8866
8867
8868
8869
ce2cded5
L
8870case $host_os in
8871aix3*)
8872 # AIX sometimes has problems with the GCC collect2 program. For some
8873 # reason, if we set the COLLECT_NAMES environment variable, the problems
8874 # vanish in a puff of smoke.
8875 if test "X${COLLECT_NAMES+set}" != Xset; then
8876 COLLECT_NAMES=
8877 export COLLECT_NAMES
8878 fi
8879 ;;
8880esac
d7040cdb 8881
ce2cded5
L
8882# Global variables:
8883ofile=libtool
8884can_build_shared=yes
d7040cdb 8885
ce2cded5
L
8886# All known linkers require a `.a' archive for static linking (except MSVC,
8887# which needs '.lib').
8888libext=a
d7040cdb 8889
ce2cded5 8890with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 8891
ce2cded5
L
8892old_CC="$CC"
8893old_CFLAGS="$CFLAGS"
d7040cdb 8894
ce2cded5
L
8895# Set sane defaults for various variables
8896test -z "$CC" && CC=cc
8897test -z "$LTCC" && LTCC=$CC
8898test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8899test -z "$LD" && LD=ld
8900test -z "$ac_objext" && ac_objext=o
d7040cdb 8901
ce2cded5
L
8902for cc_temp in $compiler""; do
8903 case $cc_temp in
8904 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8905 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8906 \-*) ;;
8907 *) break;;
8908 esac
8909done
3725885a 8910cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
d7040cdb
SE
8911
8912
ce2cded5
L
8913# Only perform the check for file, if the check method requires it
8914test -z "$MAGIC_CMD" && MAGIC_CMD=file
8915case $deplibs_check_method in
8916file_magic*)
8917 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
81ecdfbb
RW
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8919$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8920if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8921 $as_echo_n "(cached) " >&6
ce2cded5
L
8922else
8923 case $MAGIC_CMD in
8924[\\/*] | ?:[\\/]*)
8925 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8926 ;;
8927*)
8928 lt_save_MAGIC_CMD="$MAGIC_CMD"
8929 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8930 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8931 for ac_dir in $ac_dummy; do
8932 IFS="$lt_save_ifs"
8933 test -z "$ac_dir" && ac_dir=.
8934 if test -f $ac_dir/${ac_tool_prefix}file; then
8935 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8936 if test -n "$file_magic_test_file"; then
8937 case $deplibs_check_method in
8938 "file_magic "*)
8939 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8940 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8941 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8942 $EGREP "$file_magic_regex" > /dev/null; then
8943 :
8944 else
8945 cat <<_LT_EOF 1>&2
d7040cdb 8946
ce2cded5
L
8947*** Warning: the command libtool uses to detect shared libraries,
8948*** $file_magic_cmd, produces output that libtool cannot recognize.
8949*** The result is that libtool may fail to recognize shared libraries
8950*** as such. This will affect the creation of libtool libraries that
8951*** depend on shared libraries, but programs linked with such libtool
8952*** libraries will work regardless of this problem. Nevertheless, you
8953*** may want to report the problem to your system manager and/or to
8954*** bug-libtool@gnu.org
d7040cdb 8955
ce2cded5
L
8956_LT_EOF
8957 fi ;;
8958 esac
8959 fi
8960 break
8961 fi
8962 done
8963 IFS="$lt_save_ifs"
8964 MAGIC_CMD="$lt_save_MAGIC_CMD"
8965 ;;
8966esac
8967fi
d7040cdb 8968
ce2cded5
L
8969MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8970if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8972$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 8973else
81ecdfbb
RW
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8975$as_echo "no" >&6; }
ce2cded5 8976fi
d7040cdb
SE
8977
8978
8979
8980
8981
ce2cded5
L
8982if test -z "$lt_cv_path_MAGIC_CMD"; then
8983 if test -n "$ac_tool_prefix"; then
81ecdfbb
RW
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8985$as_echo_n "checking for file... " >&6; }
8986if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8987 $as_echo_n "(cached) " >&6
ce2cded5
L
8988else
8989 case $MAGIC_CMD in
8990[\\/*] | ?:[\\/]*)
8991 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8992 ;;
8993*)
8994 lt_save_MAGIC_CMD="$MAGIC_CMD"
8995 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8996 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8997 for ac_dir in $ac_dummy; do
8998 IFS="$lt_save_ifs"
8999 test -z "$ac_dir" && ac_dir=.
9000 if test -f $ac_dir/file; then
9001 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9002 if test -n "$file_magic_test_file"; then
9003 case $deplibs_check_method in
9004 "file_magic "*)
9005 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9006 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9007 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9008 $EGREP "$file_magic_regex" > /dev/null; then
9009 :
9010 else
9011 cat <<_LT_EOF 1>&2
d7040cdb 9012
ce2cded5
L
9013*** Warning: the command libtool uses to detect shared libraries,
9014*** $file_magic_cmd, produces output that libtool cannot recognize.
9015*** The result is that libtool may fail to recognize shared libraries
9016*** as such. This will affect the creation of libtool libraries that
9017*** depend on shared libraries, but programs linked with such libtool
9018*** libraries will work regardless of this problem. Nevertheless, you
9019*** may want to report the problem to your system manager and/or to
9020*** bug-libtool@gnu.org
d7040cdb 9021
ce2cded5
L
9022_LT_EOF
9023 fi ;;
9024 esac
9025 fi
9026 break
9027 fi
9028 done
9029 IFS="$lt_save_ifs"
9030 MAGIC_CMD="$lt_save_MAGIC_CMD"
9031 ;;
9032esac
9033fi
d7040cdb 9034
ce2cded5
L
9035MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9036if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9038$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 9039else
81ecdfbb
RW
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9041$as_echo "no" >&6; }
ce2cded5 9042fi
d7040cdb
SE
9043
9044
ce2cded5
L
9045 else
9046 MAGIC_CMD=:
9047 fi
9048fi
d7040cdb 9049
ce2cded5
L
9050 fi
9051 ;;
9052esac
d7040cdb 9053
ce2cded5 9054# Use C for the default configuration in the libtool script
d7040cdb 9055
ce2cded5
L
9056lt_save_CC="$CC"
9057ac_ext=c
9058ac_cpp='$CPP $CPPFLAGS'
9059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9061ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
9062
9063
ce2cded5
L
9064# Source file extension for C test sources.
9065ac_ext=c
d7040cdb 9066
ce2cded5
L
9067# Object file extension for compiled C test sources.
9068objext=o
9069objext=$objext
d7040cdb 9070
ce2cded5
L
9071# Code to be used in simple compile tests
9072lt_simple_compile_test_code="int some_variable = 0;"
d7040cdb 9073
ce2cded5
L
9074# Code to be used in simple link tests
9075lt_simple_link_test_code='int main(){return(0);}'
d7040cdb
SE
9076
9077
9078
9079
9080
9081
9082
ce2cded5
L
9083# If no C compiler was specified, use CC.
9084LTCC=${LTCC-"$CC"}
d7040cdb 9085
ce2cded5
L
9086# If no C compiler flags were specified, use CFLAGS.
9087LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d7040cdb 9088
ce2cded5
L
9089# Allow CC to be a program name with arguments.
9090compiler=$CC
d7040cdb 9091
ce2cded5
L
9092# Save the default compiler, since it gets overwritten when the other
9093# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9094compiler_DEFAULT=$CC
d7040cdb 9095
ce2cded5
L
9096# save warnings/boilerplate of simple test code
9097ac_outfile=conftest.$ac_objext
9098echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9099eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9100_lt_compiler_boilerplate=`cat conftest.err`
9101$RM conftest*
d7040cdb 9102
ce2cded5
L
9103ac_outfile=conftest.$ac_objext
9104echo "$lt_simple_link_test_code" >conftest.$ac_ext
9105eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9106_lt_linker_boilerplate=`cat conftest.err`
b214d478 9107$RM -r conftest*
d7040cdb
SE
9108
9109
ce2cded5
L
9110## CAVEAT EMPTOR:
9111## There is no encapsulation within the following macros, do not change
9112## the running order or otherwise move them around unless you know exactly
9113## what you are doing...
9114if test -n "$compiler"; then
d7040cdb 9115
ce2cded5 9116lt_prog_compiler_no_builtin_flag=
d7040cdb 9117
ce2cded5 9118if test "$GCC" = yes; then
3725885a
RW
9119 case $cc_basename in
9120 nvcc*)
9121 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9122 *)
9123 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9124 esac
d7040cdb 9125
81ecdfbb
RW
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9127$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9128if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9129 $as_echo_n "(cached) " >&6
ce2cded5
L
9130else
9131 lt_cv_prog_compiler_rtti_exceptions=no
9132 ac_outfile=conftest.$ac_objext
9133 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9134 lt_compiler_flag="-fno-rtti -fno-exceptions"
9135 # Insert the option either (1) after the last *FLAGS variable, or
9136 # (2) before a word containing "conftest.", or (3) at the end.
9137 # Note that $ac_compile itself does not contain backslashes and begins
9138 # with a dollar sign (not a hyphen), so the echo should work correctly.
9139 # The option is referenced via a variable to avoid confusing sed.
9140 lt_compile=`echo "$ac_compile" | $SED \
9141 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9142 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9143 -e 's:$: $lt_compiler_flag:'`
3725885a 9144 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9145 (eval "$lt_compile" 2>conftest.err)
9146 ac_status=$?
9147 cat conftest.err >&5
3725885a 9148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9149 if (exit $ac_status) && test -s "$ac_outfile"; then
9150 # The compiler can only warn and ignore the option if not recognized
9151 # So say no if there are warnings other than the usual output.
3725885a 9152 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
9153 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9154 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9155 lt_cv_prog_compiler_rtti_exceptions=yes
9156 fi
9157 fi
9158 $RM conftest*
d7040cdb 9159
ce2cded5 9160fi
81ecdfbb
RW
9161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9162$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d7040cdb 9163
ce2cded5
L
9164if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9165 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9166else
9167 :
9168fi
d7040cdb 9169
ce2cded5 9170fi
d7040cdb
SE
9171
9172
9173
9174
9175
9176
ce2cded5
L
9177 lt_prog_compiler_wl=
9178lt_prog_compiler_pic=
9179lt_prog_compiler_static=
d7040cdb 9180
81ecdfbb
RW
9181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9182$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
d7040cdb 9183
ce2cded5
L
9184 if test "$GCC" = yes; then
9185 lt_prog_compiler_wl='-Wl,'
9186 lt_prog_compiler_static='-static'
d7040cdb 9187
ce2cded5
L
9188 case $host_os in
9189 aix*)
9190 # All AIX code is PIC.
9191 if test "$host_cpu" = ia64; then
9192 # AIX 5 now supports IA64 processor
9193 lt_prog_compiler_static='-Bstatic'
9194 fi
9195 ;;
d7040cdb 9196
ce2cded5 9197 amigaos*)
b214d478
SE
9198 case $host_cpu in
9199 powerpc)
9200 # see comment about AmigaOS4 .so support
9201 lt_prog_compiler_pic='-fPIC'
9202 ;;
9203 m68k)
9204 # FIXME: we need at least 68020 code to build shared libraries, but
9205 # adding the `-m68020' flag to GCC prevents building anything better,
9206 # like `-m68040'.
9207 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9208 ;;
9209 esac
ce2cded5 9210 ;;
d7040cdb 9211
ce2cded5
L
9212 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9213 # PIC is the default for these OSes.
9214 ;;
d7040cdb 9215
b214d478 9216 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
9217 # This hack is so that the source file can tell whether it is being
9218 # built for inclusion in a dll (and should export symbols for example).
9219 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9220 # (--disable-auto-import) libraries
9221 lt_prog_compiler_pic='-DDLL_EXPORT'
9222 ;;
d7040cdb 9223
ce2cded5
L
9224 darwin* | rhapsody*)
9225 # PIC is the default on this platform
9226 # Common symbols not allowed in MH_DYLIB files
9227 lt_prog_compiler_pic='-fno-common'
9228 ;;
d7040cdb 9229
3725885a
RW
9230 haiku*)
9231 # PIC is the default for Haiku.
9232 # The "-static" flag exists, but is broken.
9233 lt_prog_compiler_static=
9234 ;;
9235
ce2cded5 9236 hpux*)
b214d478
SE
9237 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9238 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9239 # sets the default TLS model and affects inlining.
ce2cded5 9240 case $host_cpu in
b214d478 9241 hppa*64*)
ce2cded5
L
9242 # +Z the default
9243 ;;
9244 *)
9245 lt_prog_compiler_pic='-fPIC'
9246 ;;
9247 esac
9248 ;;
d7040cdb 9249
ce2cded5
L
9250 interix[3-9]*)
9251 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9252 # Instead, we relocate shared libraries at runtime.
9253 ;;
d7040cdb 9254
ce2cded5
L
9255 msdosdjgpp*)
9256 # Just because we use GCC doesn't mean we suddenly get shared libraries
9257 # on systems that don't support them.
9258 lt_prog_compiler_can_build_shared=no
9259 enable_shared=no
9260 ;;
d7040cdb 9261
ce2cded5
L
9262 *nto* | *qnx*)
9263 # QNX uses GNU C++, but need to define -shared option too, otherwise
9264 # it will coredump.
9265 lt_prog_compiler_pic='-fPIC -shared'
9266 ;;
d7040cdb 9267
ce2cded5
L
9268 sysv4*MP*)
9269 if test -d /usr/nec; then
9270 lt_prog_compiler_pic=-Kconform_pic
9271 fi
9272 ;;
d7040cdb 9273
ce2cded5
L
9274 *)
9275 lt_prog_compiler_pic='-fPIC'
9276 ;;
9277 esac
3725885a
RW
9278
9279 case $cc_basename in
9280 nvcc*) # Cuda Compiler Driver 2.2
9281 lt_prog_compiler_wl='-Xlinker '
9282 lt_prog_compiler_pic='-Xcompiler -fPIC'
9283 ;;
9284 esac
ce2cded5
L
9285 else
9286 # PORTME Check for flag to pass linker flags through the system compiler.
9287 case $host_os in
9288 aix*)
9289 lt_prog_compiler_wl='-Wl,'
9290 if test "$host_cpu" = ia64; then
9291 # AIX 5 now supports IA64 processor
9292 lt_prog_compiler_static='-Bstatic'
9293 else
9294 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9295 fi
9296 ;;
d7040cdb 9297
b214d478 9298 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
9299 # This hack is so that the source file can tell whether it is being
9300 # built for inclusion in a dll (and should export symbols for example).
9301 lt_prog_compiler_pic='-DDLL_EXPORT'
9302 ;;
d7040cdb 9303
ce2cded5
L
9304 hpux9* | hpux10* | hpux11*)
9305 lt_prog_compiler_wl='-Wl,'
9306 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9307 # not for PA HP-UX.
9308 case $host_cpu in
9309 hppa*64*|ia64*)
9310 # +Z the default
9311 ;;
9312 *)
9313 lt_prog_compiler_pic='+Z'
9314 ;;
9315 esac
9316 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9317 lt_prog_compiler_static='${wl}-a ${wl}archive'
9318 ;;
d7040cdb 9319
ce2cded5
L
9320 irix5* | irix6* | nonstopux*)
9321 lt_prog_compiler_wl='-Wl,'
9322 # PIC (with -KPIC) is the default.
9323 lt_prog_compiler_static='-non_shared'
9324 ;;
d7040cdb 9325
58e24671 9326 linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5 9327 case $cc_basename in
b214d478
SE
9328 # old Intel for x86_64 which still supported -KPIC.
9329 ecc*)
ce2cded5
L
9330 lt_prog_compiler_wl='-Wl,'
9331 lt_prog_compiler_pic='-KPIC'
9332 lt_prog_compiler_static='-static'
9333 ;;
b214d478
SE
9334 # icc used to be incompatible with GCC.
9335 # ICC 10 doesn't accept -KPIC any more.
9336 icc* | ifort*)
9337 lt_prog_compiler_wl='-Wl,'
9338 lt_prog_compiler_pic='-fPIC'
9339 lt_prog_compiler_static='-static'
9340 ;;
9341 # Lahey Fortran 8.1.
9342 lf95*)
9343 lt_prog_compiler_wl='-Wl,'
9344 lt_prog_compiler_pic='--shared'
9345 lt_prog_compiler_static='--static'
9346 ;;
3725885a 9347 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
ce2cded5
L
9348 # Portland Group compilers (*not* the Pentium gcc compiler,
9349 # which looks to be a dead project)
9350 lt_prog_compiler_wl='-Wl,'
9351 lt_prog_compiler_pic='-fpic'
9352 lt_prog_compiler_static='-Bstatic'
9353 ;;
9354 ccc*)
9355 lt_prog_compiler_wl='-Wl,'
9356 # All Alpha code is PIC.
9357 lt_prog_compiler_static='-non_shared'
9358 ;;
3725885a
RW
9359 xl* | bgxl* | bgf* | mpixl*)
9360 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
b214d478
SE
9361 lt_prog_compiler_wl='-Wl,'
9362 lt_prog_compiler_pic='-qpic'
9363 lt_prog_compiler_static='-qstaticlink'
9364 ;;
ce2cded5
L
9365 *)
9366 case `$CC -V 2>&1 | sed 5q` in
3725885a
RW
9367 *Sun\ F* | *Sun*Fortran*)
9368 # Sun Fortran 8.3 passes all unrecognized flags to the linker
ce2cded5
L
9369 lt_prog_compiler_pic='-KPIC'
9370 lt_prog_compiler_static='-Bstatic'
3725885a 9371 lt_prog_compiler_wl=''
ce2cded5 9372 ;;
3725885a
RW
9373 *Sun\ C*)
9374 # Sun C 5.9
ce2cded5
L
9375 lt_prog_compiler_pic='-KPIC'
9376 lt_prog_compiler_static='-Bstatic'
3725885a 9377 lt_prog_compiler_wl='-Wl,'
ce2cded5
L
9378 ;;
9379 esac
9380 ;;
9381 esac
9382 ;;
d7040cdb 9383
ce2cded5
L
9384 newsos6)
9385 lt_prog_compiler_pic='-KPIC'
9386 lt_prog_compiler_static='-Bstatic'
9387 ;;
d7040cdb 9388
ce2cded5
L
9389 *nto* | *qnx*)
9390 # QNX uses GNU C++, but need to define -shared option too, otherwise
9391 # it will coredump.
9392 lt_prog_compiler_pic='-fPIC -shared'
9393 ;;
d7040cdb 9394
ce2cded5
L
9395 osf3* | osf4* | osf5*)
9396 lt_prog_compiler_wl='-Wl,'
9397 # All OSF/1 code is PIC.
9398 lt_prog_compiler_static='-non_shared'
9399 ;;
d7040cdb 9400
ce2cded5
L
9401 rdos*)
9402 lt_prog_compiler_static='-non_shared'
9403 ;;
d7040cdb 9404
ce2cded5
L
9405 solaris*)
9406 lt_prog_compiler_pic='-KPIC'
9407 lt_prog_compiler_static='-Bstatic'
9408 case $cc_basename in
9409 f77* | f90* | f95*)
9410 lt_prog_compiler_wl='-Qoption ld ';;
9411 *)
9412 lt_prog_compiler_wl='-Wl,';;
9413 esac
9414 ;;
d7040cdb 9415
ce2cded5
L
9416 sunos4*)
9417 lt_prog_compiler_wl='-Qoption ld '
9418 lt_prog_compiler_pic='-PIC'
9419 lt_prog_compiler_static='-Bstatic'
9420 ;;
d7040cdb 9421
ce2cded5
L
9422 sysv4 | sysv4.2uw2* | sysv4.3*)
9423 lt_prog_compiler_wl='-Wl,'
9424 lt_prog_compiler_pic='-KPIC'
9425 lt_prog_compiler_static='-Bstatic'
9426 ;;
d7040cdb 9427
ce2cded5
L
9428 sysv4*MP*)
9429 if test -d /usr/nec ;then
9430 lt_prog_compiler_pic='-Kconform_pic'
9431 lt_prog_compiler_static='-Bstatic'
9432 fi
9433 ;;
d7040cdb 9434
ce2cded5
L
9435 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9436 lt_prog_compiler_wl='-Wl,'
9437 lt_prog_compiler_pic='-KPIC'
9438 lt_prog_compiler_static='-Bstatic'
9439 ;;
d7040cdb 9440
ce2cded5
L
9441 unicos*)
9442 lt_prog_compiler_wl='-Wl,'
9443 lt_prog_compiler_can_build_shared=no
9444 ;;
d7040cdb 9445
ce2cded5
L
9446 uts4*)
9447 lt_prog_compiler_pic='-pic'
9448 lt_prog_compiler_static='-Bstatic'
9449 ;;
d7040cdb 9450
ce2cded5
L
9451 *)
9452 lt_prog_compiler_can_build_shared=no
9453 ;;
9454 esac
9455 fi
d7040cdb 9456
ce2cded5
L
9457case $host_os in
9458 # For platforms which do not support PIC, -DPIC is meaningless:
9459 *djgpp*)
9460 lt_prog_compiler_pic=
9461 ;;
9462 *)
9463 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9464 ;;
9465esac
81ecdfbb
RW
9466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9467$as_echo "$lt_prog_compiler_pic" >&6; }
d7040cdb
SE
9468
9469
9470
9471
9472
9473
ce2cded5
L
9474#
9475# Check to make sure the PIC flag actually works.
9476#
9477if test -n "$lt_prog_compiler_pic"; then
81ecdfbb
RW
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9479$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9480if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9481 $as_echo_n "(cached) " >&6
ce2cded5 9482else
b214d478 9483 lt_cv_prog_compiler_pic_works=no
ce2cded5
L
9484 ac_outfile=conftest.$ac_objext
9485 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9486 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9487 # Insert the option either (1) after the last *FLAGS variable, or
9488 # (2) before a word containing "conftest.", or (3) at the end.
9489 # Note that $ac_compile itself does not contain backslashes and begins
9490 # with a dollar sign (not a hyphen), so the echo should work correctly.
9491 # The option is referenced via a variable to avoid confusing sed.
9492 lt_compile=`echo "$ac_compile" | $SED \
9493 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9494 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9495 -e 's:$: $lt_compiler_flag:'`
3725885a 9496 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9497 (eval "$lt_compile" 2>conftest.err)
9498 ac_status=$?
9499 cat conftest.err >&5
3725885a 9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9501 if (exit $ac_status) && test -s "$ac_outfile"; then
9502 # The compiler can only warn and ignore the option if not recognized
9503 # So say no if there are warnings other than the usual output.
3725885a 9504 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
9505 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9506 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
b214d478 9507 lt_cv_prog_compiler_pic_works=yes
ce2cded5
L
9508 fi
9509 fi
9510 $RM conftest*
d7040cdb 9511
ce2cded5 9512fi
81ecdfbb
RW
9513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9514$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
ce2cded5 9515
b214d478 9516if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
ce2cded5
L
9517 case $lt_prog_compiler_pic in
9518 "" | " "*) ;;
9519 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9520 esac
9521else
9522 lt_prog_compiler_pic=
9523 lt_prog_compiler_can_build_shared=no
9524fi
9525
9526fi
d7040cdb
SE
9527
9528
9529
9530
9531
9532
ce2cded5
L
9533#
9534# Check to make sure the static flag actually works.
9535#
9536wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
81ecdfbb
RW
9537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9538$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9539if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9540 $as_echo_n "(cached) " >&6
ce2cded5 9541else
b214d478 9542 lt_cv_prog_compiler_static_works=no
ce2cded5
L
9543 save_LDFLAGS="$LDFLAGS"
9544 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9545 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9546 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9547 # The linker can only warn and ignore the option if not recognized
9548 # So say no if there are warnings
9549 if test -s conftest.err; then
9550 # Append any errors to the config.log.
9551 cat conftest.err 1>&5
3725885a 9552 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
ce2cded5
L
9553 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9554 if diff conftest.exp conftest.er2 >/dev/null; then
b214d478 9555 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
9556 fi
9557 else
b214d478 9558 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
9559 fi
9560 fi
b214d478 9561 $RM -r conftest*
ce2cded5 9562 LDFLAGS="$save_LDFLAGS"
d7040cdb 9563
ce2cded5 9564fi
81ecdfbb
RW
9565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9566$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d7040cdb 9567
b214d478 9568if test x"$lt_cv_prog_compiler_static_works" = xyes; then
ce2cded5
L
9569 :
9570else
9571 lt_prog_compiler_static=
9572fi
d7040cdb
SE
9573
9574
9575
9576
9577
9578
9579
81ecdfbb
RW
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9581$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9582if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9583 $as_echo_n "(cached) " >&6
ce2cded5
L
9584else
9585 lt_cv_prog_compiler_c_o=no
9586 $RM -r conftest 2>/dev/null
9587 mkdir conftest
9588 cd conftest
9589 mkdir out
9590 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9591
ce2cded5
L
9592 lt_compiler_flag="-o out/conftest2.$ac_objext"
9593 # Insert the option either (1) after the last *FLAGS variable, or
9594 # (2) before a word containing "conftest.", or (3) at the end.
9595 # Note that $ac_compile itself does not contain backslashes and begins
9596 # with a dollar sign (not a hyphen), so the echo should work correctly.
9597 lt_compile=`echo "$ac_compile" | $SED \
9598 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9599 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9600 -e 's:$: $lt_compiler_flag:'`
3725885a 9601 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9602 (eval "$lt_compile" 2>out/conftest.err)
9603 ac_status=$?
9604 cat out/conftest.err >&5
3725885a 9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9606 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9607 then
9608 # The compiler can only warn and ignore the option if not recognized
9609 # So say no if there are warnings
3725885a 9610 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
9611 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9612 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9613 lt_cv_prog_compiler_c_o=yes
9614 fi
9615 fi
9616 chmod u+w . 2>&5
9617 $RM conftest*
9618 # SGI C++ compiler will create directory out/ii_files/ for
9619 # template instantiation
9620 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9621 $RM out/* && rmdir out
9622 cd ..
9623 $RM -r conftest
9624 $RM conftest*
d7040cdb 9625
ce2cded5 9626fi
81ecdfbb
RW
9627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9628$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
9629
9630
9631
9632
9633
9634
81ecdfbb
RW
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9636$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9637if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9638 $as_echo_n "(cached) " >&6
ce2cded5
L
9639else
9640 lt_cv_prog_compiler_c_o=no
9641 $RM -r conftest 2>/dev/null
9642 mkdir conftest
9643 cd conftest
9644 mkdir out
9645 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9646
ce2cded5
L
9647 lt_compiler_flag="-o out/conftest2.$ac_objext"
9648 # Insert the option either (1) after the last *FLAGS variable, or
9649 # (2) before a word containing "conftest.", or (3) at the end.
9650 # Note that $ac_compile itself does not contain backslashes and begins
9651 # with a dollar sign (not a hyphen), so the echo should work correctly.
9652 lt_compile=`echo "$ac_compile" | $SED \
9653 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9654 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9655 -e 's:$: $lt_compiler_flag:'`
3725885a 9656 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9657 (eval "$lt_compile" 2>out/conftest.err)
9658 ac_status=$?
9659 cat out/conftest.err >&5
3725885a 9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9661 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9662 then
9663 # The compiler can only warn and ignore the option if not recognized
9664 # So say no if there are warnings
3725885a 9665 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
9666 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9667 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9668 lt_cv_prog_compiler_c_o=yes
9669 fi
9670 fi
9671 chmod u+w . 2>&5
9672 $RM conftest*
9673 # SGI C++ compiler will create directory out/ii_files/ for
9674 # template instantiation
9675 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9676 $RM out/* && rmdir out
9677 cd ..
9678 $RM -r conftest
9679 $RM conftest*
9680
9681fi
81ecdfbb
RW
9682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9683$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
ce2cded5
L
9684
9685
9686
9687
9688hard_links="nottested"
9689if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9690 # do not overwrite the value of need_locks provided by the user
81ecdfbb
RW
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9692$as_echo_n "checking if we can lock with hard links... " >&6; }
ce2cded5
L
9693 hard_links=yes
9694 $RM conftest*
9695 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9696 touch conftest.a
9697 ln conftest.a conftest.b 2>&5 || hard_links=no
9698 ln conftest.a conftest.b 2>/dev/null && hard_links=no
81ecdfbb
RW
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9700$as_echo "$hard_links" >&6; }
ce2cded5 9701 if test "$hard_links" = no; then
81ecdfbb
RW
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9703$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
ce2cded5 9704 need_locks=warn
d7040cdb 9705 fi
d7040cdb 9706else
ce2cded5 9707 need_locks=no
d7040cdb 9708fi
d7040cdb 9709
d7040cdb 9710
d7040cdb 9711
d7040cdb 9712
d7040cdb 9713
d7040cdb 9714
81ecdfbb
RW
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9716$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d7040cdb 9717
ce2cded5
L
9718 runpath_var=
9719 allow_undefined_flag=
9720 always_export_symbols=no
9721 archive_cmds=
9722 archive_expsym_cmds=
9723 compiler_needs_object=no
9724 enable_shared_with_static_runtimes=no
9725 export_dynamic_flag_spec=
9726 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9727 hardcode_automatic=no
9728 hardcode_direct=no
9729 hardcode_direct_absolute=no
9730 hardcode_libdir_flag_spec=
9731 hardcode_libdir_flag_spec_ld=
9732 hardcode_libdir_separator=
9733 hardcode_minus_L=no
9734 hardcode_shlibpath_var=unsupported
9735 inherit_rpath=no
9736 link_all_deplibs=unknown
9737 module_cmds=
9738 module_expsym_cmds=
9739 old_archive_from_new_cmds=
9740 old_archive_from_expsyms_cmds=
9741 thread_safe_flag_spec=
9742 whole_archive_flag_spec=
9743 # include_expsyms should be a list of space-separated symbols to be *always*
9744 # included in the symbol list
9745 include_expsyms=
9746 # exclude_expsyms can be an extended regexp of symbols to exclude
9747 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9748 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9749 # as well as any symbol that contains `d'.
b214d478 9750 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
ce2cded5
L
9751 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9752 # platforms (ab)use it in PIC code, but their linkers get confused if
9753 # the symbol is explicitly referenced. Since portable code cannot
9754 # rely on this symbol name, it's probably fine to never include it in
9755 # preloaded symbol tables.
b214d478 9756 # Exclude shared library initialization/finalization symbols.
ce2cded5 9757 extract_expsyms_cmds=
d7040cdb 9758
ce2cded5 9759 case $host_os in
b214d478 9760 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9761 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9762 # When not using gcc, we currently assume that we are using
9763 # Microsoft Visual C++.
9764 if test "$GCC" != yes; then
9765 with_gnu_ld=no
9766 fi
d7040cdb 9767 ;;
ce2cded5
L
9768 interix*)
9769 # we just hope/assume this is gcc and not c89 (= MSVC++)
9770 with_gnu_ld=yes
9771 ;;
9772 openbsd*)
9773 with_gnu_ld=no
d7040cdb
SE
9774 ;;
9775 esac
d7040cdb 9776
ce2cded5 9777 ld_shlibs=yes
3725885a
RW
9778
9779 # On some targets, GNU ld is compatible enough with the native linker
9780 # that we're better off using the native interface for both.
9781 lt_use_gnu_ld_interface=no
ce2cded5 9782 if test "$with_gnu_ld" = yes; then
3725885a
RW
9783 case $host_os in
9784 aix*)
9785 # The AIX port of GNU ld has always aspired to compatibility
9786 # with the native linker. However, as the warning in the GNU ld
9787 # block says, versions before 2.19.5* couldn't really create working
9788 # shared libraries, regardless of the interface used.
9789 case `$LD -v 2>&1` in
9790 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9791 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9792 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9793 *)
9794 lt_use_gnu_ld_interface=yes
9795 ;;
9796 esac
9797 ;;
9798 *)
9799 lt_use_gnu_ld_interface=yes
9800 ;;
9801 esac
9802 fi
9803
9804 if test "$lt_use_gnu_ld_interface" = yes; then
ce2cded5
L
9805 # If archive_cmds runs LD, not CC, wlarc should be empty
9806 wlarc='${wl}'
d7040cdb 9807
ce2cded5
L
9808 # Set some defaults for GNU ld with shared library support. These
9809 # are reset later if shared libraries are not supported. Putting them
9810 # here allows them to be overridden if necessary.
9811 runpath_var=LD_RUN_PATH
9812 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9813 export_dynamic_flag_spec='${wl}--export-dynamic'
9814 # ancient GNU ld didn't support --whole-archive et. al.
9815 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9816 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9817 else
9818 whole_archive_flag_spec=
9819 fi
9820 supports_anon_versioning=no
9821 case `$LD -v 2>&1` in
3725885a 9822 *GNU\ gold*) supports_anon_versioning=yes ;;
ce2cded5
L
9823 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9824 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9825 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9826 *\ 2.11.*) ;; # other 2.11 versions
9827 *) supports_anon_versioning=yes ;;
9828 esac
d7040cdb 9829
ce2cded5
L
9830 # See if GNU ld supports shared libraries.
9831 case $host_os in
50e7d84b 9832 aix[3-9]*)
ce2cded5
L
9833 # On AIX/PPC, the GNU linker is very broken
9834 if test "$host_cpu" != ia64; then
9835 ld_shlibs=no
9836 cat <<_LT_EOF 1>&2
d7040cdb 9837
3725885a 9838*** Warning: the GNU linker, at least up to release 2.19, is reported
ce2cded5
L
9839*** to be unable to reliably create shared libraries on AIX.
9840*** Therefore, libtool is disabling shared libraries support. If you
3725885a
RW
9841*** really care for shared libraries, you may want to install binutils
9842*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9843*** You will then need to restart the configuration process.
d7040cdb 9844
ce2cded5
L
9845_LT_EOF
9846 fi
d7040cdb 9847 ;;
d7040cdb 9848
ce2cded5 9849 amigaos*)
b214d478
SE
9850 case $host_cpu in
9851 powerpc)
9852 # see comment about AmigaOS4 .so support
9853 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9854 archive_expsym_cmds=''
9855 ;;
9856 m68k)
9857 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)'
9858 hardcode_libdir_flag_spec='-L$libdir'
9859 hardcode_minus_L=yes
9860 ;;
9861 esac
ce2cded5 9862 ;;
d7040cdb 9863
ce2cded5
L
9864 beos*)
9865 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9866 allow_undefined_flag=unsupported
9867 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9868 # support --undefined. This deserves some investigation. FIXME
9869 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9870 else
9871 ld_shlibs=no
9872 fi
9873 ;;
d7040cdb 9874
b214d478 9875 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9876 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9877 # as there is no search path for DLLs.
9878 hardcode_libdir_flag_spec='-L$libdir'
3725885a 9879 export_dynamic_flag_spec='${wl}--export-all-symbols'
ce2cded5
L
9880 allow_undefined_flag=unsupported
9881 always_export_symbols=no
9882 enable_shared_with_static_runtimes=yes
9883 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9884
9885 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9886 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9887 # If the export-symbols file already is a .def file (1st line
9888 # is EXPORTS), use it as is; otherwise, prepend...
9889 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9890 cp $export_symbols $output_objdir/$soname.def;
d7040cdb 9891 else
ce2cded5
L
9892 echo EXPORTS > $output_objdir/$soname.def;
9893 cat $export_symbols >> $output_objdir/$soname.def;
9894 fi~
9895 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9896 else
9897 ld_shlibs=no
9898 fi
9899 ;;
d7040cdb 9900
3725885a
RW
9901 haiku*)
9902 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9903 link_all_deplibs=yes
9904 ;;
9905
ce2cded5
L
9906 interix[3-9]*)
9907 hardcode_direct=no
9908 hardcode_shlibpath_var=no
9909 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9910 export_dynamic_flag_spec='${wl}-E'
9911 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9912 # Instead, shared libraries are loaded at an image base (0x10000000 by
9913 # default) and relocated if they conflict, which is a slow very memory
9914 # consuming and fragmenting process. To avoid this, we pick a random,
9915 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9916 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9917 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9918 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'
9919 ;;
d7040cdb 9920
58e24671 9921 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
9922 tmp_diet=no
9923 if test "$host_os" = linux-dietlibc; then
9924 case $cc_basename in
9925 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9926 esac
9927 fi
9928 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9929 && test "$tmp_diet" = no
9930 then
9931 tmp_addflag=
b214d478 9932 tmp_sharedflag='-shared'
ce2cded5
L
9933 case $cc_basename,$host_cpu in
9934 pgcc*) # Portland Group C compiler
3725885a 9935 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
9936 tmp_addflag=' $pic_flag'
9937 ;;
3725885a
RW
9938 pgf77* | pgf90* | pgf95* | pgfortran*)
9939 # Portland Group f77 and f90 compilers
9940 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
9941 tmp_addflag=' $pic_flag -Mnomain' ;;
9942 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9943 tmp_addflag=' -i_dynamic' ;;
9944 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9945 tmp_addflag=' -i_dynamic -nofor_main' ;;
9946 ifc* | ifort*) # Intel Fortran compiler
9947 tmp_addflag=' -nofor_main' ;;
b214d478
SE
9948 lf95*) # Lahey Fortran 8.1
9949 whole_archive_flag_spec=
9950 tmp_sharedflag='--shared' ;;
3725885a 9951 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
b214d478
SE
9952 tmp_sharedflag='-qmkshrobj'
9953 tmp_addflag= ;;
3725885a
RW
9954 nvcc*) # Cuda Compiler Driver 2.2
9955 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'
9956 compiler_needs_object=yes
9957 ;;
ce2cded5
L
9958 esac
9959 case `$CC -V 2>&1 | sed 5q` in
9960 *Sun\ C*) # Sun C 5.9
3725885a 9961 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
9962 compiler_needs_object=yes
9963 tmp_sharedflag='-G' ;;
9964 *Sun\ F*) # Sun Fortran 8.3
9965 tmp_sharedflag='-G' ;;
ce2cded5
L
9966 esac
9967 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 9968
ce2cded5
L
9969 if test "x$supports_anon_versioning" = xyes; then
9970 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9971 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9972 echo "local: *; };" >> $output_objdir/$libname.ver~
9973 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9974 fi
b214d478
SE
9975
9976 case $cc_basename in
3725885a 9977 xlf* | bgf* | bgxlf* | mpixlf*)
b214d478
SE
9978 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9979 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9980 hardcode_libdir_flag_spec=
9981 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9982 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9983 if test "x$supports_anon_versioning" = xyes; then
9984 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9985 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9986 echo "local: *; };" >> $output_objdir/$libname.ver~
9987 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9988 fi
9989 ;;
9990 esac
ce2cded5
L
9991 else
9992 ld_shlibs=no
9993 fi
9994 ;;
d7040cdb 9995
ce2cded5
L
9996 netbsd*)
9997 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9998 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9999 wlarc=
10000 else
10001 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10002 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10003 fi
10004 ;;
10005
10006 solaris*)
10007 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10008 ld_shlibs=no
10009 cat <<_LT_EOF 1>&2
10010
10011*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10012*** create shared libraries on Solaris systems. Therefore, libtool
10013*** is disabling shared libraries support. We urge you to upgrade GNU
10014*** binutils to release 2.9.1 or newer. Another option is to modify
10015*** your PATH or compiler configuration so that the native linker is
10016*** used, and then restart.
10017
10018_LT_EOF
10019 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10020 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10021 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10022 else
10023 ld_shlibs=no
10024 fi
10025 ;;
10026
10027 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10028 case `$LD -v 2>&1` in
10029 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10030 ld_shlibs=no
10031 cat <<_LT_EOF 1>&2
10032
10033*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10034*** reliably create shared libraries on SCO systems. Therefore, libtool
10035*** is disabling shared libraries support. We urge you to upgrade GNU
10036*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10037*** your PATH or compiler configuration so that the native linker is
10038*** used, and then restart.
10039
10040_LT_EOF
10041 ;;
10042 *)
10043 # For security reasons, it is highly recommended that you always
10044 # use absolute paths for naming shared libraries, and exclude the
10045 # DT_RUNPATH tag from executables and libraries. But doing so
10046 # requires that you compile everything twice, which is a pain.
10047 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10048 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10049 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10050 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10051 else
10052 ld_shlibs=no
10053 fi
10054 ;;
10055 esac
10056 ;;
10057
10058 sunos4*)
10059 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10060 wlarc=
10061 hardcode_direct=yes
10062 hardcode_shlibpath_var=no
10063 ;;
10064
10065 *)
10066 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10067 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10068 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10069 else
10070 ld_shlibs=no
10071 fi
10072 ;;
10073 esac
10074
10075 if test "$ld_shlibs" = no; then
10076 runpath_var=
10077 hardcode_libdir_flag_spec=
10078 export_dynamic_flag_spec=
10079 whole_archive_flag_spec=
10080 fi
10081 else
10082 # PORTME fill in a description of your system's linker (not GNU ld)
10083 case $host_os in
10084 aix3*)
10085 allow_undefined_flag=unsupported
10086 always_export_symbols=yes
10087 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'
10088 # Note: this linker hardcodes the directories in LIBPATH if there
10089 # are no directories specified by -L.
10090 hardcode_minus_L=yes
10091 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10092 # Neither direct hardcoding nor static linking is supported with a
10093 # broken collect2.
10094 hardcode_direct=unsupported
10095 fi
10096 ;;
10097
50e7d84b 10098 aix[4-9]*)
ce2cded5
L
10099 if test "$host_cpu" = ia64; then
10100 # On IA64, the linker does run time linking by default, so we don't
10101 # have to do anything special.
10102 aix_use_runtimelinking=no
10103 exp_sym_flag='-Bexport'
10104 no_entry_flag=""
10105 else
10106 # If we're using GNU nm, then we don't want the "-C" option.
10107 # -C means demangle to AIX nm, but means don't demangle with GNU nm
3725885a
RW
10108 # Also, AIX nm treats weak defined symbols like other global
10109 # defined symbols, whereas GNU nm marks them as "W".
ce2cded5 10110 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
3725885a 10111 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
10112 else
10113 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'
10114 fi
10115 aix_use_runtimelinking=no
10116
10117 # Test if we are trying to use run time linking or normal
10118 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10119 # need to do runtime linking.
50e7d84b 10120 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
ce2cded5
L
10121 for ld_flag in $LDFLAGS; do
10122 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10123 aix_use_runtimelinking=yes
10124 break
10125 fi
10126 done
10127 ;;
10128 esac
10129
10130 exp_sym_flag='-bexport'
10131 no_entry_flag='-bnoentry'
10132 fi
10133
10134 # When large executables or shared objects are built, AIX ld can
10135 # have problems creating the table of contents. If linking a library
10136 # or program results in "error TOC overflow" add -mminimal-toc to
10137 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10138 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10139
10140 archive_cmds=''
10141 hardcode_direct=yes
10142 hardcode_direct_absolute=yes
10143 hardcode_libdir_separator=':'
10144 link_all_deplibs=yes
10145 file_list_spec='${wl}-f,'
10146
10147 if test "$GCC" = yes; then
10148 case $host_os in aix4.[012]|aix4.[012].*)
10149 # We only want to do this on AIX 4.2 and lower, the check
10150 # below for broken collect2 doesn't work under 4.3+
10151 collect2name=`${CC} -print-prog-name=collect2`
10152 if test -f "$collect2name" &&
10153 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10154 then
10155 # We have reworked collect2
10156 :
10157 else
10158 # We have old collect2
10159 hardcode_direct=unsupported
10160 # It fails to find uninstalled libraries when the uninstalled
10161 # path is not listed in the libpath. Setting hardcode_minus_L
10162 # to unsupported forces relinking
10163 hardcode_minus_L=yes
10164 hardcode_libdir_flag_spec='-L$libdir'
10165 hardcode_libdir_separator=
10166 fi
10167 ;;
10168 esac
10169 shared_flag='-shared'
10170 if test "$aix_use_runtimelinking" = yes; then
10171 shared_flag="$shared_flag "'${wl}-G'
10172 fi
10173 else
10174 # not using gcc
10175 if test "$host_cpu" = ia64; then
10176 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10177 # chokes on -Wl,-G. The following line is correct:
10178 shared_flag='-G'
10179 else
10180 if test "$aix_use_runtimelinking" = yes; then
10181 shared_flag='${wl}-G'
10182 else
10183 shared_flag='${wl}-bM:SRE'
10184 fi
10185 fi
10186 fi
10187
b214d478 10188 export_dynamic_flag_spec='${wl}-bexpall'
ce2cded5
L
10189 # It seems that -bexpall does not export symbols beginning with
10190 # underscore (_), so it is better to generate a list of symbols to export.
10191 always_export_symbols=yes
10192 if test "$aix_use_runtimelinking" = yes; then
10193 # Warning - without using the other runtime loading flags (-brtl),
10194 # -berok will link without error, but may produce a broken library.
10195 allow_undefined_flag='-berok'
10196 # Determine the default libpath from the value encoded in an
10197 # empty executable.
81ecdfbb 10198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
10199/* end confdefs.h. */
10200
10201int
10202main ()
10203{
10204
10205 ;
10206 return 0;
10207}
10208_ACEOF
81ecdfbb 10209if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 10210
ce2cded5
L
10211lt_aix_libpath_sed='
10212 /Import File Strings/,/^$/ {
10213 /^0/ {
10214 s/^0 *\(.*\)$/\1/
10215 p
10216 }
10217 }'
10218aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10219# Check for a 64-bit object if we didn't find anything.
10220if test -z "$aix_libpath"; then
10221 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10222fi
d7040cdb 10223fi
81ecdfbb
RW
10224rm -f core conftest.err conftest.$ac_objext \
10225 conftest$ac_exeext conftest.$ac_ext
ce2cded5 10226if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 10227
ce2cded5 10228 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
3725885a 10229 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
10230 else
10231 if test "$host_cpu" = ia64; then
10232 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10233 allow_undefined_flag="-z nodefs"
10234 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"
10235 else
10236 # Determine the default libpath from the value encoded in an
10237 # empty executable.
81ecdfbb 10238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 10239/* end confdefs.h. */
d7040cdb 10240
ce2cded5
L
10241int
10242main ()
10243{
d7040cdb 10244
ce2cded5
L
10245 ;
10246 return 0;
10247}
10248_ACEOF
81ecdfbb 10249if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 10250
ce2cded5
L
10251lt_aix_libpath_sed='
10252 /Import File Strings/,/^$/ {
10253 /^0/ {
10254 s/^0 *\(.*\)$/\1/
10255 p
10256 }
10257 }'
10258aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10259# Check for a 64-bit object if we didn't find anything.
10260if test -z "$aix_libpath"; then
10261 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10262fi
ce2cded5 10263fi
81ecdfbb
RW
10264rm -f core conftest.err conftest.$ac_objext \
10265 conftest$ac_exeext conftest.$ac_ext
ce2cded5 10266if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 10267
ce2cded5
L
10268 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10269 # Warning - without using the other run time loading flags,
10270 # -berok will link without error, but may produce a broken library.
10271 no_undefined_flag=' ${wl}-bernotok'
10272 allow_undefined_flag=' ${wl}-berok'
3725885a
RW
10273 if test "$with_gnu_ld" = yes; then
10274 # We only use this code for GNU lds that support --whole-archive.
10275 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10276 else
10277 # Exported symbols can be pulled into shared objects from archives
10278 whole_archive_flag_spec='$convenience'
10279 fi
ce2cded5
L
10280 archive_cmds_need_lc=yes
10281 # This is similar to how AIX traditionally builds its shared libraries.
10282 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'
10283 fi
10284 fi
10285 ;;
d7040cdb 10286
ce2cded5 10287 amigaos*)
b214d478
SE
10288 case $host_cpu in
10289 powerpc)
10290 # see comment about AmigaOS4 .so support
10291 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10292 archive_expsym_cmds=''
10293 ;;
10294 m68k)
10295 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)'
10296 hardcode_libdir_flag_spec='-L$libdir'
10297 hardcode_minus_L=yes
10298 ;;
10299 esac
ce2cded5
L
10300 ;;
10301
10302 bsdi[45]*)
10303 export_dynamic_flag_spec=-rdynamic
10304 ;;
10305
b214d478 10306 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
10307 # When not using gcc, we currently assume that we are using
10308 # Microsoft Visual C++.
10309 # hardcode_libdir_flag_spec is actually meaningless, as there is
10310 # no search path for DLLs.
10311 hardcode_libdir_flag_spec=' '
10312 allow_undefined_flag=unsupported
10313 # Tell ltmain to make .lib files, not .a files.
10314 libext=lib
10315 # Tell ltmain to make .dll files, not .so files.
10316 shrext_cmds=".dll"
10317 # FIXME: Setting linknames here is a bad hack.
3725885a 10318 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
ce2cded5
L
10319 # The linker will automatically build a .lib file if we build a DLL.
10320 old_archive_from_new_cmds='true'
10321 # FIXME: Should let the user specify the lib program.
10322 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10323 fix_srcfile_path='`cygpath -w "$srcfile"`'
10324 enable_shared_with_static_runtimes=yes
10325 ;;
10326
10327 darwin* | rhapsody*)
d7040cdb 10328
b214d478
SE
10329
10330 archive_cmds_need_lc=no
10331 hardcode_direct=no
10332 hardcode_automatic=yes
10333 hardcode_shlibpath_var=unsupported
3725885a
RW
10334 if test "$lt_cv_ld_force_load" = "yes"; then
10335 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\"`'
10336 else
10337 whole_archive_flag_spec=''
10338 fi
b214d478
SE
10339 link_all_deplibs=yes
10340 allow_undefined_flag="$_lt_dar_allow_undefined"
10341 case $cc_basename in
10342 ifort*) _lt_dar_can_shared=yes ;;
10343 *) _lt_dar_can_shared=$GCC ;;
10344 esac
10345 if test "$_lt_dar_can_shared" = "yes"; then
3725885a 10346 output_verbose_link_cmd=func_echo_all
b214d478
SE
10347 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10348 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10349 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}"
10350 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}"
10351
10352 else
10353 ld_shlibs=no
10354 fi
10355
ce2cded5 10356 ;;
d7040cdb 10357
ce2cded5
L
10358 dgux*)
10359 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10360 hardcode_libdir_flag_spec='-L$libdir'
10361 hardcode_shlibpath_var=no
10362 ;;
d7040cdb 10363
ce2cded5
L
10364 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10365 # support. Future versions do this automatically, but an explicit c++rt0.o
10366 # does not break anything, and helps significantly (at the cost of a little
10367 # extra space).
10368 freebsd2.2*)
10369 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10370 hardcode_libdir_flag_spec='-R$libdir'
10371 hardcode_direct=yes
10372 hardcode_shlibpath_var=no
d7040cdb 10373 ;;
d7040cdb 10374
ce2cded5
L
10375 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10376 freebsd2*)
10377 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10378 hardcode_direct=yes
10379 hardcode_minus_L=yes
10380 hardcode_shlibpath_var=no
10381 ;;
d7040cdb 10382
ce2cded5
L
10383 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10384 freebsd* | dragonfly*)
10385 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10386 hardcode_libdir_flag_spec='-R$libdir'
10387 hardcode_direct=yes
10388 hardcode_shlibpath_var=no
10389 ;;
d7040cdb 10390
ce2cded5
L
10391 hpux9*)
10392 if test "$GCC" = yes; then
10393 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'
10394 else
10395 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'
10396 fi
10397 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10398 hardcode_libdir_separator=:
10399 hardcode_direct=yes
d7040cdb 10400
ce2cded5
L
10401 # hardcode_minus_L: Not really in the search PATH,
10402 # but as the default location of the library.
10403 hardcode_minus_L=yes
10404 export_dynamic_flag_spec='${wl}-E'
10405 ;;
d7040cdb 10406
ce2cded5 10407 hpux10*)
3725885a 10408 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
ce2cded5
L
10409 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10410 else
10411 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10412 fi
10413 if test "$with_gnu_ld" = no; then
10414 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10415 hardcode_libdir_flag_spec_ld='+b $libdir'
10416 hardcode_libdir_separator=:
10417 hardcode_direct=yes
10418 hardcode_direct_absolute=yes
10419 export_dynamic_flag_spec='${wl}-E'
10420 # hardcode_minus_L: Not really in the search PATH,
10421 # but as the default location of the library.
10422 hardcode_minus_L=yes
10423 fi
10424 ;;
d7040cdb 10425
ce2cded5 10426 hpux11*)
3725885a 10427 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
ce2cded5
L
10428 case $host_cpu in
10429 hppa*64*)
10430 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10431 ;;
10432 ia64*)
b214d478 10433 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
10434 ;;
10435 *)
10436 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10437 ;;
10438 esac
10439 else
10440 case $host_cpu in
10441 hppa*64*)
10442 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10443 ;;
10444 ia64*)
10445 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10446 ;;
10447 *)
3725885a
RW
10448
10449 # Older versions of the 11.00 compiler do not understand -b yet
10450 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10452$as_echo_n "checking if $CC understands -b... " >&6; }
10453if test "${lt_cv_prog_compiler__b+set}" = set; then :
10454 $as_echo_n "(cached) " >&6
10455else
10456 lt_cv_prog_compiler__b=no
10457 save_LDFLAGS="$LDFLAGS"
10458 LDFLAGS="$LDFLAGS -b"
10459 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10460 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10461 # The linker can only warn and ignore the option if not recognized
10462 # So say no if there are warnings
10463 if test -s conftest.err; then
10464 # Append any errors to the config.log.
10465 cat conftest.err 1>&5
10466 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10467 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10468 if diff conftest.exp conftest.er2 >/dev/null; then
10469 lt_cv_prog_compiler__b=yes
10470 fi
10471 else
10472 lt_cv_prog_compiler__b=yes
10473 fi
10474 fi
10475 $RM -r conftest*
10476 LDFLAGS="$save_LDFLAGS"
10477
10478fi
10479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10480$as_echo "$lt_cv_prog_compiler__b" >&6; }
10481
10482if test x"$lt_cv_prog_compiler__b" = xyes; then
10483 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10484else
10485 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10486fi
10487
ce2cded5
L
10488 ;;
10489 esac
10490 fi
10491 if test "$with_gnu_ld" = no; then
10492 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10493 hardcode_libdir_separator=:
d7040cdb 10494
ce2cded5
L
10495 case $host_cpu in
10496 hppa*64*|ia64*)
10497 hardcode_direct=no
10498 hardcode_shlibpath_var=no
10499 ;;
10500 *)
10501 hardcode_direct=yes
10502 hardcode_direct_absolute=yes
10503 export_dynamic_flag_spec='${wl}-E'
d7040cdb 10504
ce2cded5
L
10505 # hardcode_minus_L: Not really in the search PATH,
10506 # but as the default location of the library.
10507 hardcode_minus_L=yes
10508 ;;
10509 esac
10510 fi
10511 ;;
d7040cdb 10512
ce2cded5
L
10513 irix5* | irix6* | nonstopux*)
10514 if test "$GCC" = yes; then
3725885a 10515 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
10516 # Try to use the -exported_symbol ld option, if it does not
10517 # work, assume that -exports_file does not work either and
10518 # implicitly export all symbols.
10519 save_LDFLAGS="$LDFLAGS"
10520 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
81ecdfbb
RW
10521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10522/* end confdefs.h. */
ce2cded5
L
10523int foo(void) {}
10524_ACEOF
81ecdfbb 10525if ac_fn_c_try_link "$LINENO"; then :
3725885a 10526 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 10527
ce2cded5 10528fi
81ecdfbb
RW
10529rm -f core conftest.err conftest.$ac_objext \
10530 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
10531 LDFLAGS="$save_LDFLAGS"
10532 else
3725885a
RW
10533 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'
10534 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
10535 fi
10536 archive_cmds_need_lc='no'
10537 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10538 hardcode_libdir_separator=:
10539 inherit_rpath=yes
10540 link_all_deplibs=yes
10541 ;;
d7040cdb 10542
ce2cded5
L
10543 netbsd*)
10544 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10545 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10546 else
10547 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10548 fi
10549 hardcode_libdir_flag_spec='-R$libdir'
10550 hardcode_direct=yes
10551 hardcode_shlibpath_var=no
10552 ;;
d7040cdb 10553
ce2cded5
L
10554 newsos6)
10555 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10556 hardcode_direct=yes
10557 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10558 hardcode_libdir_separator=:
10559 hardcode_shlibpath_var=no
10560 ;;
d7040cdb 10561
ce2cded5
L
10562 *nto* | *qnx*)
10563 ;;
d7040cdb 10564
ce2cded5 10565 openbsd*)
b214d478
SE
10566 if test -f /usr/libexec/ld.so; then
10567 hardcode_direct=yes
10568 hardcode_shlibpath_var=no
10569 hardcode_direct_absolute=yes
10570 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
ce2cded5 10571 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
b214d478 10572 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
ce2cded5 10573 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
b214d478
SE
10574 export_dynamic_flag_spec='${wl}-E'
10575 else
10576 case $host_os in
10577 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10578 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10579 hardcode_libdir_flag_spec='-R$libdir'
10580 ;;
10581 *)
10582 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10583 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10584 ;;
10585 esac
10586 fi
10587 else
10588 ld_shlibs=no
ce2cded5
L
10589 fi
10590 ;;
d7040cdb 10591
ce2cded5
L
10592 os2*)
10593 hardcode_libdir_flag_spec='-L$libdir'
10594 hardcode_minus_L=yes
10595 allow_undefined_flag=unsupported
3725885a 10596 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
10597 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10598 ;;
d7040cdb 10599
ce2cded5
L
10600 osf3*)
10601 if test "$GCC" = yes; then
10602 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 10603 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
10604 else
10605 allow_undefined_flag=' -expect_unresolved \*'
3725885a 10606 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
10607 fi
10608 archive_cmds_need_lc='no'
10609 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10610 hardcode_libdir_separator=:
10611 ;;
d7040cdb 10612
ce2cded5
L
10613 osf4* | osf5*) # as osf3* with the addition of -msym flag
10614 if test "$GCC" = yes; then
10615 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 10616 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
10617 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10618 else
10619 allow_undefined_flag=' -expect_unresolved \*'
3725885a 10620 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 10621 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 10622 $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 10623
ce2cded5
L
10624 # Both c and cxx compiler support -rpath directly
10625 hardcode_libdir_flag_spec='-rpath $libdir'
10626 fi
10627 archive_cmds_need_lc='no'
10628 hardcode_libdir_separator=:
10629 ;;
d7040cdb 10630
ce2cded5
L
10631 solaris*)
10632 no_undefined_flag=' -z defs'
10633 if test "$GCC" = yes; then
10634 wlarc='${wl}'
10635 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10636 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10637 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10638 else
10639 case `$CC -V 2>&1` in
10640 *"Compilers 5.0"*)
10641 wlarc=''
10642 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10643 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10644 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10645 ;;
10646 *)
10647 wlarc='${wl}'
10648 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10649 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10650 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10651 ;;
10652 esac
10653 fi
10654 hardcode_libdir_flag_spec='-R$libdir'
10655 hardcode_shlibpath_var=no
10656 case $host_os in
10657 solaris2.[0-5] | solaris2.[0-5].*) ;;
10658 *)
10659 # The compiler driver will combine and reorder linker options,
10660 # but understands `-z linker_flag'. GCC discards it without `$wl',
10661 # but is careful enough not to reorder.
10662 # Supported since Solaris 2.6 (maybe 2.5.1?)
10663 if test "$GCC" = yes; then
10664 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10665 else
10666 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10667 fi
10668 ;;
10669 esac
10670 link_all_deplibs=yes
10671 ;;
d7040cdb 10672
ce2cded5
L
10673 sunos4*)
10674 if test "x$host_vendor" = xsequent; then
10675 # Use $CC to link under sequent, because it throws in some extra .o
10676 # files that make .init and .fini sections work.
10677 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10678 else
10679 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10680 fi
10681 hardcode_libdir_flag_spec='-L$libdir'
10682 hardcode_direct=yes
10683 hardcode_minus_L=yes
10684 hardcode_shlibpath_var=no
10685 ;;
d7040cdb 10686
ce2cded5
L
10687 sysv4)
10688 case $host_vendor in
10689 sni)
10690 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10691 hardcode_direct=yes # is this really true???
10692 ;;
10693 siemens)
10694 ## LD is ld it makes a PLAMLIB
10695 ## CC just makes a GrossModule.
10696 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10697 reload_cmds='$CC -r -o $output$reload_objs'
10698 hardcode_direct=no
10699 ;;
10700 motorola)
10701 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10702 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10703 ;;
10704 esac
10705 runpath_var='LD_RUN_PATH'
10706 hardcode_shlibpath_var=no
10707 ;;
d7040cdb 10708
ce2cded5
L
10709 sysv4.3*)
10710 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10711 hardcode_shlibpath_var=no
10712 export_dynamic_flag_spec='-Bexport'
10713 ;;
d7040cdb 10714
ce2cded5
L
10715 sysv4*MP*)
10716 if test -d /usr/nec; then
10717 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10718 hardcode_shlibpath_var=no
10719 runpath_var=LD_RUN_PATH
10720 hardcode_runpath_var=yes
10721 ld_shlibs=yes
10722 fi
10723 ;;
d7040cdb 10724
ce2cded5
L
10725 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10726 no_undefined_flag='${wl}-z,text'
10727 archive_cmds_need_lc=no
10728 hardcode_shlibpath_var=no
10729 runpath_var='LD_RUN_PATH'
d7040cdb 10730
ce2cded5
L
10731 if test "$GCC" = yes; then
10732 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10733 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10734 else
10735 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10736 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10737 fi
10738 ;;
d7040cdb 10739
ce2cded5
L
10740 sysv5* | sco3.2v5* | sco5v6*)
10741 # Note: We can NOT use -z defs as we might desire, because we do not
10742 # link with -lc, and that would cause any symbols used from libc to
10743 # always be unresolved, which means just about no library would
10744 # ever link correctly. If we're not using GNU ld we use -z text
10745 # though, which does catch some bad symbols but isn't as heavy-handed
10746 # as -z defs.
10747 no_undefined_flag='${wl}-z,text'
10748 allow_undefined_flag='${wl}-z,nodefs'
10749 archive_cmds_need_lc=no
10750 hardcode_shlibpath_var=no
10751 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10752 hardcode_libdir_separator=':'
10753 link_all_deplibs=yes
10754 export_dynamic_flag_spec='${wl}-Bexport'
10755 runpath_var='LD_RUN_PATH'
d7040cdb 10756
ce2cded5
L
10757 if test "$GCC" = yes; then
10758 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10759 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10760 else
10761 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10762 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10763 fi
10764 ;;
d7040cdb 10765
ce2cded5
L
10766 uts4*)
10767 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10768 hardcode_libdir_flag_spec='-L$libdir'
10769 hardcode_shlibpath_var=no
10770 ;;
d7040cdb 10771
ce2cded5
L
10772 *)
10773 ld_shlibs=no
10774 ;;
10775 esac
d7040cdb 10776
ce2cded5
L
10777 if test x$host_vendor = xsni; then
10778 case $host in
10779 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10780 export_dynamic_flag_spec='${wl}-Blargedynsym'
10781 ;;
10782 esac
10783 fi
10784 fi
d7040cdb 10785
81ecdfbb
RW
10786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10787$as_echo "$ld_shlibs" >&6; }
ce2cded5 10788test "$ld_shlibs" = no && can_build_shared=no
d7040cdb 10789
ce2cded5 10790with_gnu_ld=$with_gnu_ld
d7040cdb
SE
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
ce2cded5
L
10806#
10807# Do we need to explicitly link libc?
10808#
10809case "x$archive_cmds_need_lc" in
10810x|xyes)
10811 # Assume -lc should be added
10812 archive_cmds_need_lc=yes
d7040cdb 10813
ce2cded5
L
10814 if test "$enable_shared" = yes && test "$GCC" = yes; then
10815 case $archive_cmds in
10816 *'~'*)
10817 # FIXME: we may have to deal with multi-command sequences.
10818 ;;
10819 '$CC '*)
10820 # Test whether the compiler implicitly links with -lc since on some
10821 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10822 # to ld, don't add -lc before -lgcc.
81ecdfbb
RW
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10824$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10825if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10826 $as_echo_n "(cached) " >&6
39144654
RW
10827else
10828 $RM conftest*
10829 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 10830
81ecdfbb 10831 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
ce2cded5
L
10832 (eval $ac_compile) 2>&5
10833 ac_status=$?
81ecdfbb
RW
10834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10835 test $ac_status = 0; } 2>conftest.err; then
39144654
RW
10836 soname=conftest
10837 lib=conftest
10838 libobjs=conftest.$ac_objext
10839 deplibs=
10840 wl=$lt_prog_compiler_wl
10841 pic_flag=$lt_prog_compiler_pic
10842 compiler_flags=-v
10843 linker_flags=-v
10844 verstring=
10845 output_objdir=.
10846 libname=conftest
10847 lt_save_allow_undefined_flag=$allow_undefined_flag
10848 allow_undefined_flag=
81ecdfbb 10849 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
ce2cded5
L
10850 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10851 ac_status=$?
81ecdfbb
RW
10852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10853 test $ac_status = 0; }
39144654
RW
10854 then
10855 lt_cv_archive_cmds_need_lc=no
10856 else
10857 lt_cv_archive_cmds_need_lc=yes
10858 fi
10859 allow_undefined_flag=$lt_save_allow_undefined_flag
10860 else
10861 cat conftest.err 1>&5
10862 fi
10863 $RM conftest*
10864
10865fi
81ecdfbb
RW
10866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10867$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
39144654 10868 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
ce2cded5
L
10869 ;;
10870 esac
10871 fi
10872 ;;
10873esac
d7040cdb
SE
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
d7040cdb 10901
d7040cdb 10902
d7040cdb
SE
10903
10904
10905
10906
10907
10908
d7040cdb 10909
d7040cdb 10910
d7040cdb 10911
d7040cdb 10912
d7040cdb 10913
d7040cdb 10914
d7040cdb 10915
d7040cdb 10916
d7040cdb 10917
d7040cdb 10918
d7040cdb 10919
d7040cdb 10920
d7040cdb 10921
d7040cdb 10922
d7040cdb 10923
d7040cdb 10924
d7040cdb 10925
d7040cdb 10926
d7040cdb 10927
d7040cdb 10928
d7040cdb 10929
d7040cdb 10930
d7040cdb 10931
d7040cdb 10932
d7040cdb 10933
d7040cdb 10934
d7040cdb 10935
d7040cdb 10936
ce2cded5
L
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
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
81ecdfbb
RW
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11032$as_echo_n "checking dynamic linker characteristics... " >&6; }
b214d478
SE
11033
11034if test "$GCC" = yes; then
ce2cded5
L
11035 case $host_os in
11036 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11037 *) lt_awk_arg="/^libraries:/" ;;
11038 esac
3725885a
RW
11039 case $host_os in
11040 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11041 *) lt_sed_strip_eq="s,=/,/,g" ;;
11042 esac
11043 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11044 case $lt_search_path_spec in
11045 *\;*)
ce2cded5
L
11046 # if the path contains ";" then we assume it to be the separator
11047 # otherwise default to the standard path separator (i.e. ":") - it is
11048 # assumed that no part of a normal pathname contains ";" but that should
11049 # okay in the real world where ";" in dirpaths is itself problematic.
3725885a
RW
11050 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11051 ;;
11052 *)
11053 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11054 ;;
11055 esac
ce2cded5
L
11056 # Ok, now we have the path, separated by spaces, we can step through it
11057 # and add multilib dir if necessary.
11058 lt_tmp_lt_search_path_spec=
11059 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11060 for lt_sys_path in $lt_search_path_spec; do
11061 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11062 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11063 else
11064 test -d "$lt_sys_path" && \
11065 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11066 fi
11067 done
3725885a 11068 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
ce2cded5
L
11069BEGIN {RS=" "; FS="/|\n";} {
11070 lt_foo="";
11071 lt_count=0;
11072 for (lt_i = NF; lt_i > 0; lt_i--) {
11073 if ($lt_i != "" && $lt_i != ".") {
11074 if ($lt_i == "..") {
11075 lt_count++;
11076 } else {
11077 if (lt_count == 0) {
11078 lt_foo="/" $lt_i lt_foo;
11079 } else {
11080 lt_count--;
11081 }
11082 }
11083 }
11084 }
11085 if (lt_foo != "") { lt_freq[lt_foo]++; }
11086 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11087}'`
3725885a
RW
11088 # AWK program above erroneously prepends '/' to C:/dos/paths
11089 # for these hosts.
11090 case $host_os in
11091 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11092 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11093 esac
11094 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
d7040cdb 11095else
ce2cded5
L
11096 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11097fi
11098library_names_spec=
11099libname_spec='lib$name'
11100soname_spec=
11101shrext_cmds=".so"
11102postinstall_cmds=
11103postuninstall_cmds=
11104finish_cmds=
11105finish_eval=
11106shlibpath_var=
11107shlibpath_overrides_runpath=unknown
11108version_type=none
11109dynamic_linker="$host_os ld.so"
11110sys_lib_dlsearch_path_spec="/lib /usr/lib"
11111need_lib_prefix=unknown
11112hardcode_into_libs=no
11113
11114# when you set need_version to no, make sure it does not cause -set_version
11115# flags to be left without arguments
11116need_version=unknown
11117
11118case $host_os in
11119aix3*)
11120 version_type=linux
11121 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11122 shlibpath_var=LIBPATH
11123
11124 # AIX 3 has no versioning support, so we append a major version to the name.
11125 soname_spec='${libname}${release}${shared_ext}$major'
11126 ;;
11127
50e7d84b 11128aix[4-9]*)
ce2cded5
L
11129 version_type=linux
11130 need_lib_prefix=no
11131 need_version=no
11132 hardcode_into_libs=yes
11133 if test "$host_cpu" = ia64; then
11134 # AIX 5 supports IA64
11135 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11136 shlibpath_var=LD_LIBRARY_PATH
11137 else
11138 # With GCC up to 2.95.x, collect2 would create an import file
11139 # for dependence libraries. The import file would start with
11140 # the line `#! .'. This would cause the generated library to
11141 # depend on `.', always an invalid library. This was fixed in
11142 # development snapshots of GCC prior to 3.0.
11143 case $host_os in
11144 aix4 | aix4.[01] | aix4.[01].*)
11145 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11146 echo ' yes '
11147 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11148 :
11149 else
11150 can_build_shared=no
11151 fi
11152 ;;
11153 esac
11154 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11155 # soname into executable. Probably we can add versioning support to
11156 # collect2, so additional links can be useful in future.
11157 if test "$aix_use_runtimelinking" = yes; then
11158 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11159 # instead of lib<name>.a to let people know that these are not
11160 # typical AIX shared libraries.
11161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11162 else
11163 # We preserve .a as extension for shared libraries through AIX4.2
11164 # and later when we are not doing run time linking.
11165 library_names_spec='${libname}${release}.a $libname.a'
11166 soname_spec='${libname}${release}${shared_ext}$major'
11167 fi
11168 shlibpath_var=LIBPATH
11169 fi
11170 ;;
11171
11172amigaos*)
b214d478
SE
11173 case $host_cpu in
11174 powerpc)
11175 # Since July 2007 AmigaOS4 officially supports .so libraries.
11176 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11178 ;;
11179 m68k)
ce2cded5
L
11180 library_names_spec='$libname.ixlibrary $libname.a'
11181 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3725885a 11182 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
11183 ;;
11184 esac
ce2cded5
L
11185 ;;
11186
11187beos*)
11188 library_names_spec='${libname}${shared_ext}'
11189 dynamic_linker="$host_os ld.so"
11190 shlibpath_var=LIBRARY_PATH
11191 ;;
11192
11193bsdi[45]*)
11194 version_type=linux
11195 need_version=no
11196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11197 soname_spec='${libname}${release}${shared_ext}$major'
11198 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11199 shlibpath_var=LD_LIBRARY_PATH
11200 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11201 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11202 # the default ld.so.conf also contains /usr/contrib/lib and
11203 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11204 # libtool to hard-code these into programs
11205 ;;
11206
b214d478 11207cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
11208 version_type=windows
11209 shrext_cmds=".dll"
11210 need_version=no
11211 need_lib_prefix=no
11212
b214d478
SE
11213 case $GCC,$host_os in
11214 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
ce2cded5
L
11215 library_names_spec='$libname.dll.a'
11216 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11217 postinstall_cmds='base_file=`basename \${file}`~
11218 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11219 dldir=$destdir/`dirname \$dlpath`~
11220 test -d \$dldir || mkdir -p \$dldir~
11221 $install_prog $dir/$dlname \$dldir/$dlname~
11222 chmod a+x \$dldir/$dlname~
11223 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11224 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11225 fi'
11226 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11227 dlpath=$dir/\$dldll~
11228 $RM \$dlpath'
11229 shlibpath_overrides_runpath=yes
11230
11231 case $host_os in
11232 cygwin*)
11233 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11234 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
3725885a
RW
11235
11236 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
ce2cded5 11237 ;;
b214d478 11238 mingw* | cegcc*)
ce2cded5
L
11239 # MinGW DLLs use traditional 'lib' prefix
11240 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
ce2cded5
L
11241 ;;
11242 pw32*)
11243 # pw32 DLLs use 'pw' prefix rather than 'lib'
11244 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11245 ;;
11246 esac
11247 ;;
11248
11249 *)
11250 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11251 ;;
11252 esac
11253 dynamic_linker='Win32 ld.exe'
11254 # FIXME: first we should search . and the directory the executable is in
11255 shlibpath_var=PATH
11256 ;;
11257
11258darwin* | rhapsody*)
11259 dynamic_linker="$host_os dyld"
11260 version_type=darwin
11261 need_lib_prefix=no
11262 need_version=no
11263 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11264 soname_spec='${libname}${release}${major}$shared_ext'
11265 shlibpath_overrides_runpath=yes
11266 shlibpath_var=DYLD_LIBRARY_PATH
11267 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11268
11269 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11270 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11271 ;;
11272
11273dgux*)
11274 version_type=linux
11275 need_lib_prefix=no
11276 need_version=no
11277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11278 soname_spec='${libname}${release}${shared_ext}$major'
11279 shlibpath_var=LD_LIBRARY_PATH
11280 ;;
11281
ce2cded5
L
11282freebsd* | dragonfly*)
11283 # DragonFly does not have aout. When/if they implement a new
11284 # versioning mechanism, adjust this.
11285 if test -x /usr/bin/objformat; then
11286 objformat=`/usr/bin/objformat`
11287 else
11288 case $host_os in
11289 freebsd[123]*) objformat=aout ;;
11290 *) objformat=elf ;;
11291 esac
11292 fi
11293 version_type=freebsd-$objformat
11294 case $version_type in
11295 freebsd-elf*)
11296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11297 need_version=no
11298 need_lib_prefix=no
11299 ;;
11300 freebsd-*)
11301 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11302 need_version=yes
11303 ;;
11304 esac
11305 shlibpath_var=LD_LIBRARY_PATH
11306 case $host_os in
11307 freebsd2*)
11308 shlibpath_overrides_runpath=yes
11309 ;;
11310 freebsd3.[01]* | freebsdelf3.[01]*)
11311 shlibpath_overrides_runpath=yes
11312 hardcode_into_libs=yes
11313 ;;
11314 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11315 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11316 shlibpath_overrides_runpath=no
11317 hardcode_into_libs=yes
11318 ;;
11319 *) # from 4.6 on, and DragonFly
11320 shlibpath_overrides_runpath=yes
11321 hardcode_into_libs=yes
11322 ;;
11323 esac
11324 ;;
11325
11326gnu*)
11327 version_type=linux
11328 need_lib_prefix=no
11329 need_version=no
11330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11331 soname_spec='${libname}${release}${shared_ext}$major'
11332 shlibpath_var=LD_LIBRARY_PATH
11333 hardcode_into_libs=yes
11334 ;;
11335
3725885a
RW
11336haiku*)
11337 version_type=linux
11338 need_lib_prefix=no
11339 need_version=no
11340 dynamic_linker="$host_os runtime_loader"
11341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11342 soname_spec='${libname}${release}${shared_ext}$major'
11343 shlibpath_var=LIBRARY_PATH
11344 shlibpath_overrides_runpath=yes
11345 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11346 hardcode_into_libs=yes
11347 ;;
11348
ce2cded5
L
11349hpux9* | hpux10* | hpux11*)
11350 # Give a soname corresponding to the major version so that dld.sl refuses to
11351 # link against other versions.
11352 version_type=sunos
11353 need_lib_prefix=no
11354 need_version=no
11355 case $host_cpu in
11356 ia64*)
11357 shrext_cmds='.so'
11358 hardcode_into_libs=yes
11359 dynamic_linker="$host_os dld.so"
11360 shlibpath_var=LD_LIBRARY_PATH
11361 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11363 soname_spec='${libname}${release}${shared_ext}$major'
11364 if test "X$HPUX_IA64_MODE" = X32; then
11365 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11366 else
11367 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11368 fi
11369 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11370 ;;
11371 hppa*64*)
11372 shrext_cmds='.sl'
11373 hardcode_into_libs=yes
11374 dynamic_linker="$host_os dld.sl"
11375 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11376 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11378 soname_spec='${libname}${release}${shared_ext}$major'
11379 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11380 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11381 ;;
11382 *)
11383 shrext_cmds='.sl'
11384 dynamic_linker="$host_os dld.sl"
11385 shlibpath_var=SHLIB_PATH
11386 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11388 soname_spec='${libname}${release}${shared_ext}$major'
11389 ;;
11390 esac
3725885a 11391 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
ce2cded5 11392 postinstall_cmds='chmod 555 $lib'
3725885a
RW
11393 # or fails outright, so override atomically:
11394 install_override_mode=555
ce2cded5
L
11395 ;;
11396
11397interix[3-9]*)
11398 version_type=linux
11399 need_lib_prefix=no
11400 need_version=no
11401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11402 soname_spec='${libname}${release}${shared_ext}$major'
11403 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11404 shlibpath_var=LD_LIBRARY_PATH
11405 shlibpath_overrides_runpath=no
11406 hardcode_into_libs=yes
11407 ;;
11408
11409irix5* | irix6* | nonstopux*)
11410 case $host_os in
11411 nonstopux*) version_type=nonstopux ;;
11412 *)
11413 if test "$lt_cv_prog_gnu_ld" = yes; then
11414 version_type=linux
11415 else
11416 version_type=irix
11417 fi ;;
11418 esac
11419 need_lib_prefix=no
11420 need_version=no
11421 soname_spec='${libname}${release}${shared_ext}$major'
11422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11423 case $host_os in
11424 irix5* | nonstopux*)
11425 libsuff= shlibsuff=
11426 ;;
11427 *)
11428 case $LD in # libtool.m4 will add one of these switches to LD
11429 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11430 libsuff= shlibsuff= libmagic=32-bit;;
11431 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11432 libsuff=32 shlibsuff=N32 libmagic=N32;;
11433 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11434 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11435 *) libsuff= shlibsuff= libmagic=never-match;;
11436 esac
11437 ;;
11438 esac
11439 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11440 shlibpath_overrides_runpath=no
11441 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11442 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11443 hardcode_into_libs=yes
11444 ;;
11445
11446# No shared lib support for Linux oldld, aout, or coff.
11447linux*oldld* | linux*aout* | linux*coff*)
11448 dynamic_linker=no
11449 ;;
11450
11451# This must be Linux ELF.
58e24671 11452linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
11453 version_type=linux
11454 need_lib_prefix=no
11455 need_version=no
11456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11457 soname_spec='${libname}${release}${shared_ext}$major'
11458 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11459 shlibpath_var=LD_LIBRARY_PATH
11460 shlibpath_overrides_runpath=no
39144654 11461
ce2cded5 11462 # Some binutils ld are patched to set DT_RUNPATH
81ecdfbb
RW
11463 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11464 $as_echo_n "(cached) " >&6
39144654
RW
11465else
11466 lt_cv_shlibpath_overrides_runpath=no
11467 save_LDFLAGS=$LDFLAGS
11468 save_libdir=$libdir
11469 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11470 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
81ecdfbb 11471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11472/* end confdefs.h. */
11473
d7040cdb
SE
11474int
11475main ()
11476{
ce2cded5 11477
d7040cdb
SE
11478 ;
11479 return 0;
11480}
11481_ACEOF
81ecdfbb
RW
11482if ac_fn_c_try_link "$LINENO"; then :
11483 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
39144654 11484 lt_cv_shlibpath_overrides_runpath=yes
d7040cdb 11485fi
d7040cdb 11486fi
81ecdfbb
RW
11487rm -f core conftest.err conftest.$ac_objext \
11488 conftest$ac_exeext conftest.$ac_ext
39144654
RW
11489 LDFLAGS=$save_LDFLAGS
11490 libdir=$save_libdir
11491
11492fi
11493
11494 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
d7040cdb 11495
ce2cded5
L
11496 # This implies no fast_install, which is unacceptable.
11497 # Some rework will be needed to allow for fast_install
11498 # before this can be enabled.
11499 hardcode_into_libs=yes
d7040cdb 11500
ce2cded5
L
11501 # Append ld.so.conf contents to the search path
11502 if test -f /etc/ld.so.conf; then
3725885a 11503 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
11504 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11505 fi
d7040cdb 11506
ce2cded5
L
11507 # We used to test for /lib/ld.so.1 and disable shared libraries on
11508 # powerpc, because MkLinux only supported shared libraries with the
11509 # GNU dynamic linker. Since this was broken with cross compilers,
11510 # most powerpc-linux boxes support dynamic linking these days and
11511 # people can always --disable-shared, the test was removed, and we
11512 # assume the GNU/Linux dynamic linker is in use.
11513 dynamic_linker='GNU/Linux ld.so'
11514 ;;
d7040cdb 11515
ce2cded5
L
11516netbsd*)
11517 version_type=sunos
11518 need_lib_prefix=no
11519 need_version=no
11520 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11522 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11523 dynamic_linker='NetBSD (a.out) ld.so'
11524 else
11525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11526 soname_spec='${libname}${release}${shared_ext}$major'
11527 dynamic_linker='NetBSD ld.elf_so'
11528 fi
11529 shlibpath_var=LD_LIBRARY_PATH
11530 shlibpath_overrides_runpath=yes
11531 hardcode_into_libs=yes
11532 ;;
d7040cdb 11533
ce2cded5
L
11534newsos6)
11535 version_type=linux
11536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11537 shlibpath_var=LD_LIBRARY_PATH
11538 shlibpath_overrides_runpath=yes
11539 ;;
d7040cdb 11540
ce2cded5
L
11541*nto* | *qnx*)
11542 version_type=qnx
11543 need_lib_prefix=no
11544 need_version=no
11545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11546 soname_spec='${libname}${release}${shared_ext}$major'
11547 shlibpath_var=LD_LIBRARY_PATH
11548 shlibpath_overrides_runpath=no
11549 hardcode_into_libs=yes
11550 dynamic_linker='ldqnx.so'
11551 ;;
d7040cdb 11552
ce2cded5
L
11553openbsd*)
11554 version_type=sunos
11555 sys_lib_dlsearch_path_spec="/usr/lib"
11556 need_lib_prefix=no
11557 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11558 case $host_os in
11559 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11560 *) need_version=no ;;
11561 esac
11562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11563 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11564 shlibpath_var=LD_LIBRARY_PATH
11565 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11566 case $host_os in
11567 openbsd2.[89] | openbsd2.[89].*)
11568 shlibpath_overrides_runpath=no
11569 ;;
11570 *)
11571 shlibpath_overrides_runpath=yes
11572 ;;
11573 esac
11574 else
11575 shlibpath_overrides_runpath=yes
11576 fi
11577 ;;
d7040cdb 11578
ce2cded5
L
11579os2*)
11580 libname_spec='$name'
11581 shrext_cmds=".dll"
11582 need_lib_prefix=no
11583 library_names_spec='$libname${shared_ext} $libname.a'
11584 dynamic_linker='OS/2 ld.exe'
11585 shlibpath_var=LIBPATH
11586 ;;
d7040cdb 11587
ce2cded5
L
11588osf3* | osf4* | osf5*)
11589 version_type=osf
11590 need_lib_prefix=no
11591 need_version=no
11592 soname_spec='${libname}${release}${shared_ext}$major'
11593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11594 shlibpath_var=LD_LIBRARY_PATH
11595 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11596 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11597 ;;
d7040cdb 11598
ce2cded5
L
11599rdos*)
11600 dynamic_linker=no
11601 ;;
d7040cdb 11602
ce2cded5
L
11603solaris*)
11604 version_type=linux
11605 need_lib_prefix=no
11606 need_version=no
11607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11608 soname_spec='${libname}${release}${shared_ext}$major'
11609 shlibpath_var=LD_LIBRARY_PATH
11610 shlibpath_overrides_runpath=yes
11611 hardcode_into_libs=yes
11612 # ldd complains unless libraries are executable
11613 postinstall_cmds='chmod +x $lib'
11614 ;;
d7040cdb 11615
ce2cded5
L
11616sunos4*)
11617 version_type=sunos
11618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11619 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11620 shlibpath_var=LD_LIBRARY_PATH
11621 shlibpath_overrides_runpath=yes
11622 if test "$with_gnu_ld" = yes; then
11623 need_lib_prefix=no
11624 fi
11625 need_version=yes
11626 ;;
d7040cdb 11627
ce2cded5
L
11628sysv4 | sysv4.3*)
11629 version_type=linux
11630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11631 soname_spec='${libname}${release}${shared_ext}$major'
11632 shlibpath_var=LD_LIBRARY_PATH
11633 case $host_vendor in
11634 sni)
11635 shlibpath_overrides_runpath=no
11636 need_lib_prefix=no
11637 runpath_var=LD_RUN_PATH
11638 ;;
11639 siemens)
11640 need_lib_prefix=no
11641 ;;
11642 motorola)
11643 need_lib_prefix=no
11644 need_version=no
11645 shlibpath_overrides_runpath=no
11646 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11647 ;;
11648 esac
11649 ;;
d7040cdb 11650
ce2cded5
L
11651sysv4*MP*)
11652 if test -d /usr/nec ;then
11653 version_type=linux
11654 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11655 soname_spec='$libname${shared_ext}.$major'
11656 shlibpath_var=LD_LIBRARY_PATH
11657 fi
11658 ;;
d7040cdb 11659
ce2cded5
L
11660sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11661 version_type=freebsd-elf
11662 need_lib_prefix=no
11663 need_version=no
11664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11665 soname_spec='${libname}${release}${shared_ext}$major'
11666 shlibpath_var=LD_LIBRARY_PATH
11667 shlibpath_overrides_runpath=yes
11668 hardcode_into_libs=yes
11669 if test "$with_gnu_ld" = yes; then
11670 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11671 else
11672 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11673 case $host_os in
11674 sco3.2v5*)
11675 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11676 ;;
11677 esac
11678 fi
11679 sys_lib_dlsearch_path_spec='/usr/lib'
11680 ;;
d7040cdb 11681
ce2cded5
L
11682tpf*)
11683 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11684 version_type=linux
11685 need_lib_prefix=no
11686 need_version=no
b214d478 11687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
ce2cded5
L
11688 shlibpath_var=LD_LIBRARY_PATH
11689 shlibpath_overrides_runpath=no
11690 hardcode_into_libs=yes
11691 ;;
d7040cdb 11692
ce2cded5
L
11693uts4*)
11694 version_type=linux
11695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11696 soname_spec='${libname}${release}${shared_ext}$major'
11697 shlibpath_var=LD_LIBRARY_PATH
11698 ;;
d7040cdb 11699
ce2cded5
L
11700*)
11701 dynamic_linker=no
11702 ;;
11703esac
81ecdfbb
RW
11704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11705$as_echo "$dynamic_linker" >&6; }
ce2cded5
L
11706test "$dynamic_linker" = no && can_build_shared=no
11707
11708variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11709if test "$GCC" = yes; then
11710 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb
SE
11711fi
11712
b214d478
SE
11713if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11714 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11715fi
11716if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11717 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11718fi
11719
d7040cdb
SE
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
d7040cdb 11731
d7040cdb 11732
d7040cdb 11733
d7040cdb 11734
d7040cdb
SE
11735
11736
11737
11738
d7040cdb 11739
d7040cdb
SE
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
d7040cdb
SE
11753
11754
11755
11756
d7040cdb
SE
11757
11758
11759
11760
d7040cdb 11761
d7040cdb 11762
d7040cdb 11763
d7040cdb 11764
d7040cdb 11765
d7040cdb 11766
d7040cdb 11767
d7040cdb
SE
11768
11769
11770
11771
11772
d7040cdb 11773
d7040cdb 11774
d7040cdb 11775
d7040cdb 11776
d7040cdb 11777
d7040cdb 11778
d7040cdb
SE
11779
11780
11781
11782
11783
d7040cdb
SE
11784
11785
d7040cdb 11786
d7040cdb 11787
d7040cdb 11788
d7040cdb 11789
ce2cded5
L
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
3725885a
RW
11800
11801
11802
11803
11804
ce2cded5
L
11805
11806
11807
11808
11809
11810
81ecdfbb
RW
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11812$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
ce2cded5
L
11813hardcode_action=
11814if test -n "$hardcode_libdir_flag_spec" ||
11815 test -n "$runpath_var" ||
11816 test "X$hardcode_automatic" = "Xyes" ; then
11817
11818 # We can hardcode non-existent directories.
11819 if test "$hardcode_direct" != no &&
11820 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11821 # have to relink, otherwise we might link with an installed library
11822 # when we should be linking with a yet-to-be-installed one
11823 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11824 test "$hardcode_minus_L" != no; then
11825 # Linking always hardcodes the temporary library directory.
11826 hardcode_action=relink
11827 else
11828 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11829 hardcode_action=immediate
d7040cdb 11830 fi
d7040cdb 11831else
ce2cded5
L
11832 # We cannot hardcode anything, or else we can only hardcode existing
11833 # directories.
11834 hardcode_action=unsupported
d7040cdb 11835fi
81ecdfbb
RW
11836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11837$as_echo "$hardcode_action" >&6; }
d7040cdb 11838
ce2cded5
L
11839if test "$hardcode_action" = relink ||
11840 test "$inherit_rpath" = yes; then
11841 # Fast installation is not supported
11842 enable_fast_install=no
11843elif test "$shlibpath_overrides_runpath" = yes ||
11844 test "$enable_shared" = no; then
11845 # Fast installation is not necessary
11846 enable_fast_install=needless
d7040cdb
SE
11847fi
11848
d7040cdb 11849
d7040cdb 11850
d7040cdb 11851
d7040cdb 11852
d7040cdb 11853
ce2cded5
L
11854 if test "x$enable_dlopen" != xyes; then
11855 enable_dlopen=unknown
11856 enable_dlopen_self=unknown
11857 enable_dlopen_self_static=unknown
d7040cdb 11858else
ce2cded5
L
11859 lt_cv_dlopen=no
11860 lt_cv_dlopen_libs=
d7040cdb 11861
ce2cded5
L
11862 case $host_os in
11863 beos*)
11864 lt_cv_dlopen="load_add_on"
11865 lt_cv_dlopen_libs=
11866 lt_cv_dlopen_self=yes
11867 ;;
d7040cdb 11868
b214d478 11869 mingw* | pw32* | cegcc*)
ce2cded5
L
11870 lt_cv_dlopen="LoadLibrary"
11871 lt_cv_dlopen_libs=
11872 ;;
11873
11874 cygwin*)
11875 lt_cv_dlopen="dlopen"
11876 lt_cv_dlopen_libs=
11877 ;;
11878
11879 darwin*)
11880 # if libdl is installed we need to link against it
81ecdfbb
RW
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11882$as_echo_n "checking for dlopen in -ldl... " >&6; }
11883if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11884 $as_echo_n "(cached) " >&6
d7040cdb 11885else
ce2cded5
L
11886 ac_check_lib_save_LIBS=$LIBS
11887LIBS="-ldl $LIBS"
81ecdfbb 11888cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
11889/* end confdefs.h. */
11890
81ecdfbb
RW
11891/* Override any GCC internal prototype to avoid an error.
11892 Use char because int might match the return type of a GCC
11893 builtin and then its argument prototype would still apply. */
ce2cded5
L
11894#ifdef __cplusplus
11895extern "C"
11896#endif
ce2cded5
L
11897char dlopen ();
11898int
11899main ()
11900{
81ecdfbb 11901return dlopen ();
ce2cded5
L
11902 ;
11903 return 0;
11904}
11905_ACEOF
81ecdfbb 11906if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
11907 ac_cv_lib_dl_dlopen=yes
11908else
81ecdfbb 11909 ac_cv_lib_dl_dlopen=no
d7040cdb 11910fi
81ecdfbb
RW
11911rm -f core conftest.err conftest.$ac_objext \
11912 conftest$ac_exeext conftest.$ac_ext
ce2cded5 11913LIBS=$ac_check_lib_save_LIBS
d7040cdb 11914fi
81ecdfbb
RW
11915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11916$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11917if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5 11918 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 11919else
d7040cdb 11920
ce2cded5
L
11921 lt_cv_dlopen="dyld"
11922 lt_cv_dlopen_libs=
11923 lt_cv_dlopen_self=yes
11924
d7040cdb 11925fi
ce2cded5
L
11926
11927 ;;
11928
11929 *)
81ecdfbb
RW
11930 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11931if test "x$ac_cv_func_shl_load" = x""yes; then :
ce2cded5
L
11932 lt_cv_dlopen="shl_load"
11933else
81ecdfbb
RW
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11935$as_echo_n "checking for shl_load in -ldld... " >&6; }
11936if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11937 $as_echo_n "(cached) " >&6
ce2cded5
L
11938else
11939 ac_check_lib_save_LIBS=$LIBS
11940LIBS="-ldld $LIBS"
81ecdfbb 11941cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 11942/* end confdefs.h. */
d7040cdb 11943
81ecdfbb
RW
11944/* Override any GCC internal prototype to avoid an error.
11945 Use char because int might match the return type of a GCC
11946 builtin and then its argument prototype would still apply. */
ce2cded5
L
11947#ifdef __cplusplus
11948extern "C"
11949#endif
ce2cded5
L
11950char shl_load ();
11951int
11952main ()
11953{
81ecdfbb 11954return shl_load ();
ce2cded5
L
11955 ;
11956 return 0;
11957}
11958_ACEOF
81ecdfbb 11959if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
11960 ac_cv_lib_dld_shl_load=yes
11961else
81ecdfbb 11962 ac_cv_lib_dld_shl_load=no
ce2cded5 11963fi
81ecdfbb
RW
11964rm -f core conftest.err conftest.$ac_objext \
11965 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
11966LIBS=$ac_check_lib_save_LIBS
11967fi
81ecdfbb
RW
11968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11969$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11970if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
b214d478 11971 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
ce2cded5 11972else
81ecdfbb
RW
11973 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11974if test "x$ac_cv_func_dlopen" = x""yes; then :
ce2cded5
L
11975 lt_cv_dlopen="dlopen"
11976else
81ecdfbb
RW
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11978$as_echo_n "checking for dlopen in -ldl... " >&6; }
11979if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11980 $as_echo_n "(cached) " >&6
d7040cdb 11981else
ce2cded5
L
11982 ac_check_lib_save_LIBS=$LIBS
11983LIBS="-ldl $LIBS"
81ecdfbb 11984cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11985/* end confdefs.h. */
11986
81ecdfbb
RW
11987/* Override any GCC internal prototype to avoid an error.
11988 Use char because int might match the return type of a GCC
11989 builtin and then its argument prototype would still apply. */
ce2cded5
L
11990#ifdef __cplusplus
11991extern "C"
11992#endif
ce2cded5 11993char dlopen ();
d7040cdb
SE
11994int
11995main ()
11996{
81ecdfbb 11997return dlopen ();
d7040cdb
SE
11998 ;
11999 return 0;
12000}
12001_ACEOF
81ecdfbb 12002if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 12003 ac_cv_lib_dl_dlopen=yes
d7040cdb 12004else
81ecdfbb 12005 ac_cv_lib_dl_dlopen=no
d7040cdb 12006fi
81ecdfbb
RW
12007rm -f core conftest.err conftest.$ac_objext \
12008 conftest$ac_exeext conftest.$ac_ext
ce2cded5 12009LIBS=$ac_check_lib_save_LIBS
d7040cdb 12010fi
81ecdfbb
RW
12011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12012$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12013if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5 12014 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 12015else
81ecdfbb
RW
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12017$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12018if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12019 $as_echo_n "(cached) " >&6
d7040cdb 12020else
ce2cded5
L
12021 ac_check_lib_save_LIBS=$LIBS
12022LIBS="-lsvld $LIBS"
81ecdfbb 12023cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 12024/* end confdefs.h. */
d7040cdb 12025
81ecdfbb
RW
12026/* Override any GCC internal prototype to avoid an error.
12027 Use char because int might match the return type of a GCC
12028 builtin and then its argument prototype would still apply. */
ce2cded5
L
12029#ifdef __cplusplus
12030extern "C"
12031#endif
ce2cded5 12032char dlopen ();
d7040cdb
SE
12033int
12034main ()
12035{
81ecdfbb 12036return dlopen ();
d7040cdb
SE
12037 ;
12038 return 0;
12039}
12040_ACEOF
81ecdfbb 12041if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 12042 ac_cv_lib_svld_dlopen=yes
d7040cdb 12043else
81ecdfbb 12044 ac_cv_lib_svld_dlopen=no
d7040cdb 12045fi
81ecdfbb
RW
12046rm -f core conftest.err conftest.$ac_objext \
12047 conftest$ac_exeext conftest.$ac_ext
ce2cded5 12048LIBS=$ac_check_lib_save_LIBS
d7040cdb 12049fi
81ecdfbb
RW
12050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12051$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12052if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
ce2cded5
L
12053 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12054else
81ecdfbb
RW
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12056$as_echo_n "checking for dld_link in -ldld... " >&6; }
12057if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12058 $as_echo_n "(cached) " >&6
ce2cded5
L
12059else
12060 ac_check_lib_save_LIBS=$LIBS
12061LIBS="-ldld $LIBS"
81ecdfbb 12062cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
12063/* end confdefs.h. */
12064
81ecdfbb
RW
12065/* Override any GCC internal prototype to avoid an error.
12066 Use char because int might match the return type of a GCC
12067 builtin and then its argument prototype would still apply. */
ce2cded5
L
12068#ifdef __cplusplus
12069extern "C"
12070#endif
ce2cded5 12071char dld_link ();
d7040cdb
SE
12072int
12073main ()
12074{
81ecdfbb 12075return dld_link ();
d7040cdb
SE
12076 ;
12077 return 0;
12078}
12079_ACEOF
81ecdfbb 12080if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 12081 ac_cv_lib_dld_dld_link=yes
d7040cdb 12082else
81ecdfbb 12083 ac_cv_lib_dld_dld_link=no
d7040cdb 12084fi
81ecdfbb
RW
12085rm -f core conftest.err conftest.$ac_objext \
12086 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
12087LIBS=$ac_check_lib_save_LIBS
12088fi
81ecdfbb
RW
12089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12090$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12091if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
b214d478 12092 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
ce2cded5
L
12093fi
12094
12095
12096fi
12097
12098
12099fi
12100
12101
12102fi
12103
12104
12105fi
12106
12107
12108fi
12109
12110 ;;
12111 esac
12112
12113 if test "x$lt_cv_dlopen" != xno; then
12114 enable_dlopen=yes
12115 else
12116 enable_dlopen=no
12117 fi
12118
12119 case $lt_cv_dlopen in
12120 dlopen)
12121 save_CPPFLAGS="$CPPFLAGS"
12122 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12123
12124 save_LDFLAGS="$LDFLAGS"
12125 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12126
12127 save_LIBS="$LIBS"
12128 LIBS="$lt_cv_dlopen_libs $LIBS"
12129
81ecdfbb
RW
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12131$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12132if test "${lt_cv_dlopen_self+set}" = set; then :
12133 $as_echo_n "(cached) " >&6
ce2cded5
L
12134else
12135 if test "$cross_compiling" = yes; then :
12136 lt_cv_dlopen_self=cross
12137else
12138 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12139 lt_status=$lt_dlunknown
12140 cat > conftest.$ac_ext <<_LT_EOF
822ce8ee 12141#line 12141 "configure"
ce2cded5
L
12142#include "confdefs.h"
12143
12144#if HAVE_DLFCN_H
12145#include <dlfcn.h>
12146#endif
12147
12148#include <stdio.h>
12149
12150#ifdef RTLD_GLOBAL
12151# define LT_DLGLOBAL RTLD_GLOBAL
12152#else
12153# ifdef DL_GLOBAL
12154# define LT_DLGLOBAL DL_GLOBAL
12155# else
12156# define LT_DLGLOBAL 0
12157# endif
12158#endif
12159
12160/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12161 find out it does not work in some platform. */
12162#ifndef LT_DLLAZY_OR_NOW
12163# ifdef RTLD_LAZY
12164# define LT_DLLAZY_OR_NOW RTLD_LAZY
12165# else
12166# ifdef DL_LAZY
12167# define LT_DLLAZY_OR_NOW DL_LAZY
12168# else
12169# ifdef RTLD_NOW
12170# define LT_DLLAZY_OR_NOW RTLD_NOW
12171# else
12172# ifdef DL_NOW
12173# define LT_DLLAZY_OR_NOW DL_NOW
12174# else
12175# define LT_DLLAZY_OR_NOW 0
12176# endif
12177# endif
12178# endif
12179# endif
12180#endif
12181
3725885a
RW
12182/* When -fvisbility=hidden is used, assume the code has been annotated
12183 correspondingly for the symbols needed. */
12184#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12185void fnord () __attribute__((visibility("default")));
12186#endif
12187
12188void fnord () { int i=42; }
ce2cded5 12189int main ()
d7040cdb 12190{
ce2cded5
L
12191 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12192 int status = $lt_dlunknown;
12193
12194 if (self)
12195 {
12196 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
12197 else
12198 {
12199 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12200 else puts (dlerror ());
12201 }
ce2cded5
L
12202 /* dlclose (self); */
12203 }
12204 else
12205 puts (dlerror ());
12206
b214d478 12207 return status;
d7040cdb 12208}
ce2cded5 12209_LT_EOF
81ecdfbb 12210 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5 12211 (eval $ac_link) 2>&5
d7040cdb 12212 ac_status=$?
81ecdfbb
RW
12213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12214 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
ce2cded5
L
12215 (./conftest; exit; ) >&5 2>/dev/null
12216 lt_status=$?
12217 case x$lt_status in
12218 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12219 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12220 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12221 esac
12222 else :
12223 # compilation failed
12224 lt_cv_dlopen_self=no
12225 fi
12226fi
12227rm -fr conftest*
12228
12229
12230fi
81ecdfbb
RW
12231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12232$as_echo "$lt_cv_dlopen_self" >&6; }
ce2cded5
L
12233
12234 if test "x$lt_cv_dlopen_self" = xyes; then
12235 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
81ecdfbb
RW
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12237$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12238if test "${lt_cv_dlopen_self_static+set}" = set; then :
12239 $as_echo_n "(cached) " >&6
ce2cded5
L
12240else
12241 if test "$cross_compiling" = yes; then :
12242 lt_cv_dlopen_self_static=cross
12243else
12244 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12245 lt_status=$lt_dlunknown
12246 cat > conftest.$ac_ext <<_LT_EOF
822ce8ee 12247#line 12247 "configure"
ce2cded5
L
12248#include "confdefs.h"
12249
12250#if HAVE_DLFCN_H
12251#include <dlfcn.h>
12252#endif
12253
12254#include <stdio.h>
12255
12256#ifdef RTLD_GLOBAL
12257# define LT_DLGLOBAL RTLD_GLOBAL
12258#else
12259# ifdef DL_GLOBAL
12260# define LT_DLGLOBAL DL_GLOBAL
12261# else
12262# define LT_DLGLOBAL 0
12263# endif
12264#endif
12265
12266/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12267 find out it does not work in some platform. */
12268#ifndef LT_DLLAZY_OR_NOW
12269# ifdef RTLD_LAZY
12270# define LT_DLLAZY_OR_NOW RTLD_LAZY
12271# else
12272# ifdef DL_LAZY
12273# define LT_DLLAZY_OR_NOW DL_LAZY
12274# else
12275# ifdef RTLD_NOW
12276# define LT_DLLAZY_OR_NOW RTLD_NOW
12277# else
12278# ifdef DL_NOW
12279# define LT_DLLAZY_OR_NOW DL_NOW
12280# else
12281# define LT_DLLAZY_OR_NOW 0
12282# endif
12283# endif
12284# endif
12285# endif
12286#endif
12287
3cb62297
L
12288/* When -fvisbility=hidden is used, assume the code has been annotated
12289 correspondingly for the symbols needed. */
12290#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12291void fnord () __attribute__((visibility("default")));
12292#endif
12293
12294void fnord () { int i=42; }
12295int main ()
12296{
12297 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12298 int status = $lt_dlunknown;
12299
12300 if (self)
12301 {
12302 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12303 else
12304 {
12305 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12306 else puts (dlerror ());
12307 }
12308 /* dlclose (self); */
12309 }
12310 else
12311 puts (dlerror ());
12312
12313 return status;
12314}
12315_LT_EOF
12316 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12317 (eval $ac_link) 2>&5
12318 ac_status=$?
12319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12320 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12321 (./conftest; exit; ) >&5 2>/dev/null
12322 lt_status=$?
12323 case x$lt_status in
12324 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12325 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12326 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12327 esac
12328 else :
12329 # compilation failed
12330 lt_cv_dlopen_self_static=no
12331 fi
12332fi
12333rm -fr conftest*
12334
12335
12336fi
12337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12338$as_echo "$lt_cv_dlopen_self_static" >&6; }
12339 fi
12340
12341 CPPFLAGS="$save_CPPFLAGS"
12342 LDFLAGS="$save_LDFLAGS"
12343 LIBS="$save_LIBS"
12344 ;;
12345 esac
12346
12347 case $lt_cv_dlopen_self in
12348 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12349 *) enable_dlopen_self=unknown ;;
12350 esac
12351
12352 case $lt_cv_dlopen_self_static in
12353 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12354 *) enable_dlopen_self_static=unknown ;;
12355 esac
12356fi
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374striplib=
12375old_striplib=
12376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12377$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12378if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12379 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12380 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12382$as_echo "yes" >&6; }
12383else
12384# FIXME - insert some real tests, host_os isn't really good enough
12385 case $host_os in
12386 darwin*)
12387 if test -n "$STRIP" ; then
12388 striplib="$STRIP -x"
12389 old_striplib="$STRIP -S"
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12391$as_echo "yes" >&6; }
12392 else
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12394$as_echo "no" >&6; }
12395 fi
12396 ;;
12397 *)
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12399$as_echo "no" >&6; }
12400 ;;
12401 esac
12402fi
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415 # Report which library types will actually be built
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12417$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12419$as_echo "$can_build_shared" >&6; }
12420
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12422$as_echo_n "checking whether to build shared libraries... " >&6; }
12423 test "$can_build_shared" = "no" && enable_shared=no
12424
12425 # On AIX, shared libraries and static libraries use the same namespace, and
12426 # are all built from PIC.
12427 case $host_os in
12428 aix3*)
12429 test "$enable_shared" = yes && enable_static=no
12430 if test -n "$RANLIB"; then
12431 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12432 postinstall_cmds='$RANLIB $lib'
12433 fi
12434 ;;
12435
12436 aix[4-9]*)
12437 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12438 test "$enable_shared" = yes && enable_static=no
12439 fi
12440 ;;
12441 esac
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12443$as_echo "$enable_shared" >&6; }
12444
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12446$as_echo_n "checking whether to build static libraries... " >&6; }
12447 # Make sure either enable_shared or enable_static is yes.
12448 test "$enable_shared" = yes || enable_static=yes
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12450$as_echo "$enable_static" >&6; }
12451
12452
12453
12454
12455fi
12456ac_ext=c
12457ac_cpp='$CPP $CPPFLAGS'
12458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12460ac_compiler_gnu=$ac_cv_c_compiler_gnu
12461
12462CC="$lt_save_CC"
12463
12464 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12465 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12466 (test "X$CXX" != "Xg++"))) ; then
12467 ac_ext=cpp
12468ac_cpp='$CXXCPP $CPPFLAGS'
12469ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12470ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12471ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12473$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12474if test -z "$CXXCPP"; then
12475 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12476 $as_echo_n "(cached) " >&6
12477else
12478 # Double quotes because CXXCPP needs to be expanded
12479 for CXXCPP in "$CXX -E" "/lib/cpp"
12480 do
12481 ac_preproc_ok=false
12482for ac_cxx_preproc_warn_flag in '' yes
12483do
12484 # Use a header file that comes with gcc, so configuring glibc
12485 # with a fresh cross-compiler works.
12486 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12487 # <limits.h> exists even on freestanding compilers.
12488 # On the NeXT, cc -E runs the code through the compiler's parser,
12489 # not just through cpp. "Syntax error" is here to catch this case.
12490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12491/* end confdefs.h. */
12492#ifdef __STDC__
12493# include <limits.h>
12494#else
12495# include <assert.h>
12496#endif
12497 Syntax error
12498_ACEOF
12499if ac_fn_cxx_try_cpp "$LINENO"; then :
12500
12501else
12502 # Broken: fails on valid input.
12503continue
12504fi
12505rm -f conftest.err conftest.$ac_ext
12506
12507 # OK, works on sane cases. Now check whether nonexistent headers
12508 # can be detected and how.
12509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12510/* end confdefs.h. */
12511#include <ac_nonexistent.h>
12512_ACEOF
12513if ac_fn_cxx_try_cpp "$LINENO"; then :
12514 # Broken: success on invalid input.
12515continue
12516else
12517 # Passes both tests.
12518ac_preproc_ok=:
12519break
12520fi
12521rm -f conftest.err conftest.$ac_ext
12522
12523done
12524# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12525rm -f conftest.err conftest.$ac_ext
12526if $ac_preproc_ok; then :
12527 break
12528fi
12529
12530 done
12531 ac_cv_prog_CXXCPP=$CXXCPP
12532
12533fi
12534 CXXCPP=$ac_cv_prog_CXXCPP
12535else
12536 ac_cv_prog_CXXCPP=$CXXCPP
12537fi
12538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12539$as_echo "$CXXCPP" >&6; }
12540ac_preproc_ok=false
12541for ac_cxx_preproc_warn_flag in '' yes
12542do
12543 # Use a header file that comes with gcc, so configuring glibc
12544 # with a fresh cross-compiler works.
12545 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12546 # <limits.h> exists even on freestanding compilers.
12547 # On the NeXT, cc -E runs the code through the compiler's parser,
12548 # not just through cpp. "Syntax error" is here to catch this case.
12549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12550/* end confdefs.h. */
12551#ifdef __STDC__
12552# include <limits.h>
12553#else
12554# include <assert.h>
12555#endif
12556 Syntax error
12557_ACEOF
12558if ac_fn_cxx_try_cpp "$LINENO"; then :
12559
12560else
12561 # Broken: fails on valid input.
12562continue
12563fi
12564rm -f conftest.err conftest.$ac_ext
12565
12566 # OK, works on sane cases. Now check whether nonexistent headers
12567 # can be detected and how.
12568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12569/* end confdefs.h. */
12570#include <ac_nonexistent.h>
12571_ACEOF
12572if ac_fn_cxx_try_cpp "$LINENO"; then :
12573 # Broken: success on invalid input.
12574continue
12575else
12576 # Passes both tests.
12577ac_preproc_ok=:
12578break
12579fi
12580rm -f conftest.err conftest.$ac_ext
12581
12582done
12583# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12584rm -f conftest.err conftest.$ac_ext
12585if $ac_preproc_ok; then :
12586
12587else
12588 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12589$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12590as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12591See \`config.log' for more details." "$LINENO" 5; }
12592fi
12593
12594ac_ext=c
12595ac_cpp='$CPP $CPPFLAGS'
12596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12598ac_compiler_gnu=$ac_cv_c_compiler_gnu
12599
12600else
12601 _lt_caught_CXX_error=yes
12602fi
12603
12604ac_ext=cpp
12605ac_cpp='$CXXCPP $CPPFLAGS'
12606ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12607ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12608ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12609
12610archive_cmds_need_lc_CXX=no
12611allow_undefined_flag_CXX=
12612always_export_symbols_CXX=no
12613archive_expsym_cmds_CXX=
12614compiler_needs_object_CXX=no
12615export_dynamic_flag_spec_CXX=
12616hardcode_direct_CXX=no
12617hardcode_direct_absolute_CXX=no
12618hardcode_libdir_flag_spec_CXX=
12619hardcode_libdir_flag_spec_ld_CXX=
12620hardcode_libdir_separator_CXX=
12621hardcode_minus_L_CXX=no
12622hardcode_shlibpath_var_CXX=unsupported
12623hardcode_automatic_CXX=no
12624inherit_rpath_CXX=no
12625module_cmds_CXX=
12626module_expsym_cmds_CXX=
12627link_all_deplibs_CXX=unknown
12628old_archive_cmds_CXX=$old_archive_cmds
12629reload_flag_CXX=$reload_flag
12630reload_cmds_CXX=$reload_cmds
12631no_undefined_flag_CXX=
12632whole_archive_flag_spec_CXX=
12633enable_shared_with_static_runtimes_CXX=no
12634
12635# Source file extension for C++ test sources.
12636ac_ext=cpp
12637
12638# Object file extension for compiled C++ test sources.
12639objext=o
12640objext_CXX=$objext
12641
12642# No sense in running all these tests if we already determined that
12643# the CXX compiler isn't working. Some variables (like enable_shared)
12644# are currently assumed to apply to all compilers on this platform,
12645# and will be corrupted by setting them based on a non-working compiler.
12646if test "$_lt_caught_CXX_error" != yes; then
12647 # Code to be used in simple compile tests
12648 lt_simple_compile_test_code="int some_variable = 0;"
12649
12650 # Code to be used in simple link tests
12651 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12652
12653 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12654
12655
12656
12657
12658
12659
12660# If no C compiler was specified, use CC.
12661LTCC=${LTCC-"$CC"}
12662
12663# If no C compiler flags were specified, use CFLAGS.
12664LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12665
12666# Allow CC to be a program name with arguments.
12667compiler=$CC
12668
12669
12670 # save warnings/boilerplate of simple test code
12671 ac_outfile=conftest.$ac_objext
12672echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12673eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12674_lt_compiler_boilerplate=`cat conftest.err`
12675$RM conftest*
12676
12677 ac_outfile=conftest.$ac_objext
12678echo "$lt_simple_link_test_code" >conftest.$ac_ext
12679eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12680_lt_linker_boilerplate=`cat conftest.err`
12681$RM -r conftest*
12682
12683
12684 # Allow CC to be a program name with arguments.
12685 lt_save_CC=$CC
12686 lt_save_LD=$LD
12687 lt_save_GCC=$GCC
12688 GCC=$GXX
12689 lt_save_with_gnu_ld=$with_gnu_ld
12690 lt_save_path_LD=$lt_cv_path_LD
12691 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12692 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12693 else
12694 $as_unset lt_cv_prog_gnu_ld
12695 fi
12696 if test -n "${lt_cv_path_LDCXX+set}"; then
12697 lt_cv_path_LD=$lt_cv_path_LDCXX
12698 else
12699 $as_unset lt_cv_path_LD
12700 fi
12701 test -z "${LDCXX+set}" || LD=$LDCXX
12702 CC=${CXX-"c++"}
12703 compiler=$CC
12704 compiler_CXX=$CC
12705 for cc_temp in $compiler""; do
12706 case $cc_temp in
12707 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12708 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12709 \-*) ;;
12710 *) break;;
12711 esac
12712done
12713cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12714
12715
12716 if test -n "$compiler"; then
12717 # We don't want -fno-exception when compiling C++ code, so set the
12718 # no_builtin_flag separately
12719 if test "$GXX" = yes; then
12720 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12721 else
12722 lt_prog_compiler_no_builtin_flag_CXX=
12723 fi
12724
12725 if test "$GXX" = yes; then
12726 # Set up default GNU C++ configuration
12727
12728
12729
12730# Check whether --with-gnu-ld was given.
12731if test "${with_gnu_ld+set}" = set; then :
12732 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12733else
12734 with_gnu_ld=no
12735fi
12736
12737ac_prog=ld
12738if test "$GCC" = yes; then
12739 # Check if gcc -print-prog-name=ld gives a path.
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12741$as_echo_n "checking for ld used by $CC... " >&6; }
12742 case $host in
12743 *-*-mingw*)
12744 # gcc leaves a trailing carriage return which upsets mingw
12745 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12746 *)
12747 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12748 esac
12749 case $ac_prog in
12750 # Accept absolute paths.
12751 [\\/]* | ?:[\\/]*)
12752 re_direlt='/[^/][^/]*/\.\./'
12753 # Canonicalize the pathname of ld
12754 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12755 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12756 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12757 done
12758 test -z "$LD" && LD="$ac_prog"
12759 ;;
12760 "")
12761 # If it fails, then pretend we aren't using GCC.
12762 ac_prog=ld
12763 ;;
12764 *)
12765 # If it is relative, then search for the first ld in PATH.
12766 with_gnu_ld=unknown
12767 ;;
12768 esac
12769elif test "$with_gnu_ld" = yes; then
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12771$as_echo_n "checking for GNU ld... " >&6; }
12772else
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12774$as_echo_n "checking for non-GNU ld... " >&6; }
12775fi
12776if test "${lt_cv_path_LD+set}" = set; then :
12777 $as_echo_n "(cached) " >&6
12778else
12779 if test -z "$LD"; then
12780 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12781 for ac_dir in $PATH; do
12782 IFS="$lt_save_ifs"
12783 test -z "$ac_dir" && ac_dir=.
12784 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12785 lt_cv_path_LD="$ac_dir/$ac_prog"
12786 # Check to see if the program is GNU ld. I'd rather use --version,
12787 # but apparently some variants of GNU ld only accept -v.
12788 # Break only if it was the GNU/non-GNU ld that we prefer.
12789 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12790 *GNU* | *'with BFD'*)
12791 test "$with_gnu_ld" != no && break
12792 ;;
12793 *)
12794 test "$with_gnu_ld" != yes && break
12795 ;;
12796 esac
12797 fi
12798 done
12799 IFS="$lt_save_ifs"
12800else
12801 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12802fi
12803fi
12804
12805LD="$lt_cv_path_LD"
12806if test -n "$LD"; then
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12808$as_echo "$LD" >&6; }
12809else
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12811$as_echo "no" >&6; }
12812fi
12813test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12815$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12816if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12817 $as_echo_n "(cached) " >&6
12818else
12819 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12820case `$LD -v 2>&1 </dev/null` in
12821*GNU* | *'with BFD'*)
12822 lt_cv_prog_gnu_ld=yes
12823 ;;
12824*)
12825 lt_cv_prog_gnu_ld=no
12826 ;;
12827esac
12828fi
12829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12830$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12831with_gnu_ld=$lt_cv_prog_gnu_ld
12832
12833
12834
12835
12836
12837
12838
12839 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12840 # archiving commands below assume that GNU ld is being used.
12841 if test "$with_gnu_ld" = yes; then
12842 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12843 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'
12844
12845 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12846 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12847
12848 # If archive_cmds runs LD, not CC, wlarc should be empty
12849 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12850 # investigate it a little bit more. (MM)
12851 wlarc='${wl}'
12852
12853 # ancient GNU ld didn't support --whole-archive et. al.
12854 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12855 $GREP 'no-whole-archive' > /dev/null; then
12856 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12857 else
12858 whole_archive_flag_spec_CXX=
12859 fi
12860 else
12861 with_gnu_ld=no
12862 wlarc=
12863
12864 # A generic and very simple default shared library creation
12865 # command for GNU C++ for the case where it uses the native
12866 # linker, instead of GNU ld. If possible, this setting should
12867 # overridden to take advantage of the native linker features on
12868 # the platform it is being used on.
12869 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12870 fi
12871
12872 # Commands to make compiler produce verbose output that lists
12873 # what "hidden" libraries, object files and flags are used when
12874 # linking a shared library.
12875 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12876
12877 else
12878 GXX=no
12879 with_gnu_ld=no
12880 wlarc=
12881 fi
12882
12883 # PORTME: fill in a description of your system's C++ link characteristics
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12885$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12886 ld_shlibs_CXX=yes
12887 case $host_os in
12888 aix3*)
12889 # FIXME: insert proper C++ library support
12890 ld_shlibs_CXX=no
12891 ;;
12892 aix[4-9]*)
12893 if test "$host_cpu" = ia64; then
12894 # On IA64, the linker does run time linking by default, so we don't
12895 # have to do anything special.
12896 aix_use_runtimelinking=no
12897 exp_sym_flag='-Bexport'
12898 no_entry_flag=""
12899 else
12900 aix_use_runtimelinking=no
12901
12902 # Test if we are trying to use run time linking or normal
12903 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12904 # need to do runtime linking.
12905 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12906 for ld_flag in $LDFLAGS; do
12907 case $ld_flag in
12908 *-brtl*)
12909 aix_use_runtimelinking=yes
12910 break
12911 ;;
12912 esac
12913 done
12914 ;;
12915 esac
12916
12917 exp_sym_flag='-bexport'
12918 no_entry_flag='-bnoentry'
12919 fi
12920
12921 # When large executables or shared objects are built, AIX ld can
12922 # have problems creating the table of contents. If linking a library
12923 # or program results in "error TOC overflow" add -mminimal-toc to
12924 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12925 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12926
12927 archive_cmds_CXX=''
12928 hardcode_direct_CXX=yes
12929 hardcode_direct_absolute_CXX=yes
12930 hardcode_libdir_separator_CXX=':'
12931 link_all_deplibs_CXX=yes
12932 file_list_spec_CXX='${wl}-f,'
12933
12934 if test "$GXX" = yes; then
12935 case $host_os in aix4.[012]|aix4.[012].*)
12936 # We only want to do this on AIX 4.2 and lower, the check
12937 # below for broken collect2 doesn't work under 4.3+
12938 collect2name=`${CC} -print-prog-name=collect2`
12939 if test -f "$collect2name" &&
12940 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12941 then
12942 # We have reworked collect2
12943 :
12944 else
12945 # We have old collect2
12946 hardcode_direct_CXX=unsupported
12947 # It fails to find uninstalled libraries when the uninstalled
12948 # path is not listed in the libpath. Setting hardcode_minus_L
12949 # to unsupported forces relinking
12950 hardcode_minus_L_CXX=yes
12951 hardcode_libdir_flag_spec_CXX='-L$libdir'
12952 hardcode_libdir_separator_CXX=
12953 fi
12954 esac
12955 shared_flag='-shared'
12956 if test "$aix_use_runtimelinking" = yes; then
12957 shared_flag="$shared_flag "'${wl}-G'
12958 fi
12959 else
12960 # not using gcc
12961 if test "$host_cpu" = ia64; then
12962 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12963 # chokes on -Wl,-G. The following line is correct:
12964 shared_flag='-G'
12965 else
12966 if test "$aix_use_runtimelinking" = yes; then
12967 shared_flag='${wl}-G'
12968 else
12969 shared_flag='${wl}-bM:SRE'
12970 fi
12971 fi
12972 fi
12973
12974 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12975 # It seems that -bexpall does not export symbols beginning with
12976 # underscore (_), so it is better to generate a list of symbols to
12977 # export.
12978 always_export_symbols_CXX=yes
12979 if test "$aix_use_runtimelinking" = yes; then
12980 # Warning - without using the other runtime loading flags (-brtl),
12981 # -berok will link without error, but may produce a broken library.
12982 allow_undefined_flag_CXX='-berok'
12983 # Determine the default libpath from the value encoded in an empty
12984 # executable.
12985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12986/* end confdefs.h. */
12987
12988int
12989main ()
12990{
12991
12992 ;
12993 return 0;
12994}
12995_ACEOF
12996if ac_fn_cxx_try_link "$LINENO"; then :
12997
12998lt_aix_libpath_sed='
12999 /Import File Strings/,/^$/ {
13000 /^0/ {
13001 s/^0 *\(.*\)$/\1/
13002 p
13003 }
13004 }'
13005aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13006# Check for a 64-bit object if we didn't find anything.
13007if test -z "$aix_libpath"; then
13008 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13009fi
13010fi
13011rm -f core conftest.err conftest.$ac_objext \
13012 conftest$ac_exeext conftest.$ac_ext
13013if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13014
13015 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13016
13017 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"
13018 else
13019 if test "$host_cpu" = ia64; then
13020 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13021 allow_undefined_flag_CXX="-z nodefs"
13022 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"
13023 else
13024 # Determine the default libpath from the value encoded in an
13025 # empty executable.
13026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13027/* end confdefs.h. */
13028
13029int
13030main ()
13031{
13032
13033 ;
13034 return 0;
13035}
13036_ACEOF
13037if ac_fn_cxx_try_link "$LINENO"; then :
13038
13039lt_aix_libpath_sed='
13040 /Import File Strings/,/^$/ {
13041 /^0/ {
13042 s/^0 *\(.*\)$/\1/
13043 p
13044 }
13045 }'
13046aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13047# Check for a 64-bit object if we didn't find anything.
13048if test -z "$aix_libpath"; then
13049 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13050fi
13051fi
13052rm -f core conftest.err conftest.$ac_objext \
13053 conftest$ac_exeext conftest.$ac_ext
13054if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13055
13056 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13057 # Warning - without using the other run time loading flags,
13058 # -berok will link without error, but may produce a broken library.
13059 no_undefined_flag_CXX=' ${wl}-bernotok'
13060 allow_undefined_flag_CXX=' ${wl}-berok'
13061 if test "$with_gnu_ld" = yes; then
13062 # We only use this code for GNU lds that support --whole-archive.
13063 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13064 else
13065 # Exported symbols can be pulled into shared objects from archives
13066 whole_archive_flag_spec_CXX='$convenience'
13067 fi
13068 archive_cmds_need_lc_CXX=yes
13069 # This is similar to how AIX traditionally builds its shared
13070 # libraries.
13071 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'
13072 fi
13073 fi
13074 ;;
13075
13076 beos*)
13077 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13078 allow_undefined_flag_CXX=unsupported
13079 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13080 # support --undefined. This deserves some investigation. FIXME
13081 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13082 else
13083 ld_shlibs_CXX=no
13084 fi
13085 ;;
13086
13087 chorus*)
13088 case $cc_basename in
13089 *)
13090 # FIXME: insert proper C++ library support
13091 ld_shlibs_CXX=no
13092 ;;
13093 esac
13094 ;;
13095
13096 cygwin* | mingw* | pw32* | cegcc*)
13097 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13098 # as there is no search path for DLLs.
13099 hardcode_libdir_flag_spec_CXX='-L$libdir'
13100 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13101 allow_undefined_flag_CXX=unsupported
13102 always_export_symbols_CXX=no
13103 enable_shared_with_static_runtimes_CXX=yes
13104
13105 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13106 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'
13107 # If the export-symbols file already is a .def file (1st line
13108 # is EXPORTS), use it as is; otherwise, prepend...
13109 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13110 cp $export_symbols $output_objdir/$soname.def;
13111 else
13112 echo EXPORTS > $output_objdir/$soname.def;
13113 cat $export_symbols >> $output_objdir/$soname.def;
13114 fi~
13115 $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'
13116 else
13117 ld_shlibs_CXX=no
13118 fi
13119 ;;
13120 darwin* | rhapsody*)
13121
13122
13123 archive_cmds_need_lc_CXX=no
13124 hardcode_direct_CXX=no
13125 hardcode_automatic_CXX=yes
13126 hardcode_shlibpath_var_CXX=unsupported
13127 if test "$lt_cv_ld_force_load" = "yes"; then
13128 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\"`'
13129 else
13130 whole_archive_flag_spec_CXX=''
13131 fi
13132 link_all_deplibs_CXX=yes
13133 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13134 case $cc_basename in
13135 ifort*) _lt_dar_can_shared=yes ;;
13136 *) _lt_dar_can_shared=$GCC ;;
13137 esac
13138 if test "$_lt_dar_can_shared" = "yes"; then
13139 output_verbose_link_cmd=func_echo_all
13140 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}"
13141 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13142 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}"
13143 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}"
13144 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13145 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}"
13146 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}"
13147 fi
13148
13149 else
13150 ld_shlibs_CXX=no
13151 fi
13152
13153 ;;
13154
13155 dgux*)
13156 case $cc_basename in
13157 ec++*)
13158 # FIXME: insert proper C++ library support
13159 ld_shlibs_CXX=no
13160 ;;
13161 ghcx*)
13162 # Green Hills C++ Compiler
13163 # FIXME: insert proper C++ library support
13164 ld_shlibs_CXX=no
13165 ;;
13166 *)
13167 # FIXME: insert proper C++ library support
13168 ld_shlibs_CXX=no
13169 ;;
13170 esac
13171 ;;
13172
13173 freebsd[12]*)
13174 # C++ shared libraries reported to be fairly broken before
13175 # switch to ELF
13176 ld_shlibs_CXX=no
13177 ;;
13178
13179 freebsd-elf*)
13180 archive_cmds_need_lc_CXX=no
13181 ;;
13182
13183 freebsd* | dragonfly*)
13184 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13185 # conventions
13186 ld_shlibs_CXX=yes
13187 ;;
13188
13189 gnu*)
13190 ;;
13191
13192 haiku*)
13193 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13194 link_all_deplibs_CXX=yes
13195 ;;
13196
13197 hpux9*)
13198 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13199 hardcode_libdir_separator_CXX=:
13200 export_dynamic_flag_spec_CXX='${wl}-E'
13201 hardcode_direct_CXX=yes
13202 hardcode_minus_L_CXX=yes # Not in the search PATH,
13203 # but as the default
13204 # location of the library.
13205
13206 case $cc_basename in
13207 CC*)
13208 # FIXME: insert proper C++ library support
13209 ld_shlibs_CXX=no
13210 ;;
13211 aCC*)
13212 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'
13213 # Commands to make compiler produce verbose output that lists
13214 # what "hidden" libraries, object files and flags are used when
13215 # linking a shared library.
13216 #
13217 # There doesn't appear to be a way to prevent this compiler from
13218 # explicitly linking system object files so we need to strip them
13219 # from the output so that they don't get included in the library
13220 # dependencies.
13221 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"'
13222 ;;
13223 *)
13224 if test "$GXX" = yes; then
13225 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'
13226 else
13227 # FIXME: insert proper C++ library support
13228 ld_shlibs_CXX=no
13229 fi
13230 ;;
13231 esac
13232 ;;
13233
13234 hpux10*|hpux11*)
13235 if test $with_gnu_ld = no; then
13236 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13237 hardcode_libdir_separator_CXX=:
13238
13239 case $host_cpu in
13240 hppa*64*|ia64*)
13241 ;;
13242 *)
13243 export_dynamic_flag_spec_CXX='${wl}-E'
13244 ;;
13245 esac
13246 fi
13247 case $host_cpu in
13248 hppa*64*|ia64*)
13249 hardcode_direct_CXX=no
13250 hardcode_shlibpath_var_CXX=no
13251 ;;
13252 *)
13253 hardcode_direct_CXX=yes
13254 hardcode_direct_absolute_CXX=yes
13255 hardcode_minus_L_CXX=yes # Not in the search PATH,
13256 # but as the default
13257 # location of the library.
13258 ;;
13259 esac
13260
13261 case $cc_basename in
13262 CC*)
13263 # FIXME: insert proper C++ library support
13264 ld_shlibs_CXX=no
13265 ;;
13266 aCC*)
13267 case $host_cpu in
13268 hppa*64*)
13269 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13270 ;;
13271 ia64*)
13272 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13273 ;;
13274 *)
13275 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13276 ;;
13277 esac
13278 # Commands to make compiler produce verbose output that lists
13279 # what "hidden" libraries, object files and flags are used when
13280 # linking a shared library.
13281 #
13282 # There doesn't appear to be a way to prevent this compiler from
13283 # explicitly linking system object files so we need to strip them
13284 # from the output so that they don't get included in the library
13285 # dependencies.
13286 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"'
13287 ;;
13288 *)
13289 if test "$GXX" = yes; then
13290 if test $with_gnu_ld = no; then
13291 case $host_cpu in
13292 hppa*64*)
13293 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13294 ;;
13295 ia64*)
13296 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13297 ;;
13298 *)
13299 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'
13300 ;;
13301 esac
13302 fi
13303 else
13304 # FIXME: insert proper C++ library support
13305 ld_shlibs_CXX=no
13306 fi
13307 ;;
13308 esac
13309 ;;
13310
13311 interix[3-9]*)
13312 hardcode_direct_CXX=no
13313 hardcode_shlibpath_var_CXX=no
13314 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13315 export_dynamic_flag_spec_CXX='${wl}-E'
13316 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13317 # Instead, shared libraries are loaded at an image base (0x10000000 by
13318 # default) and relocated if they conflict, which is a slow very memory
13319 # consuming and fragmenting process. To avoid this, we pick a random,
13320 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13321 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13322 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'
13323 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'
13324 ;;
13325 irix5* | irix6*)
13326 case $cc_basename in
13327 CC*)
13328 # SGI C++
13329 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'
13330
13331 # Archives containing C++ object files must be created using
13332 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13333 # necessary to make sure instantiated templates are included
13334 # in the archive.
13335 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13336 ;;
13337 *)
13338 if test "$GXX" = yes; then
13339 if test "$with_gnu_ld" = no; then
13340 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'
13341 else
13342 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'
13343 fi
13344 fi
13345 link_all_deplibs_CXX=yes
13346 ;;
13347 esac
13348 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13349 hardcode_libdir_separator_CXX=:
13350 inherit_rpath_CXX=yes
13351 ;;
13352
13353 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13354 case $cc_basename in
13355 KCC*)
13356 # Kuck and Associates, Inc. (KAI) C++ Compiler
13357
13358 # KCC will only create a shared library if the output file
13359 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13360 # to its proper name (with version) after linking.
13361 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'
13362 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'
13363 # Commands to make compiler produce verbose output that lists
13364 # what "hidden" libraries, object files and flags are used when
13365 # linking a shared library.
13366 #
13367 # There doesn't appear to be a way to prevent this compiler from
13368 # explicitly linking system object files so we need to strip them
13369 # from the output so that they don't get included in the library
13370 # dependencies.
13371 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"'
13372
13373 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13374 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13375
13376 # Archives containing C++ object files must be created using
13377 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13378 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13379 ;;
13380 icpc* | ecpc* )
13381 # Intel C++
13382 with_gnu_ld=yes
13383 # version 8.0 and above of icpc choke on multiply defined symbols
13384 # if we add $predep_objects and $postdep_objects, however 7.1 and
13385 # earlier do not add the objects themselves.
13386 case `$CC -V 2>&1` in
13387 *"Version 7."*)
13388 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13389 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'
13390 ;;
13391 *) # Version 8.0 or newer
13392 tmp_idyn=
13393 case $host_cpu in
13394 ia64*) tmp_idyn=' -i_dynamic';;
13395 esac
13396 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13397 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'
13398 ;;
13399 esac
13400 archive_cmds_need_lc_CXX=no
13401 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13402 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13403 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13404 ;;
13405 pgCC* | pgcpp*)
13406 # Portland Group C++ compiler
13407 case `$CC -V` in
13408 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13409 prelink_cmds_CXX='tpldir=Template.dir~
13410 rm -rf $tpldir~
13411 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13412 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13413 old_archive_cmds_CXX='tpldir=Template.dir~
13414 rm -rf $tpldir~
13415 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13416 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13417 $RANLIB $oldlib'
13418 archive_cmds_CXX='tpldir=Template.dir~
13419 rm -rf $tpldir~
13420 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13421 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13422 archive_expsym_cmds_CXX='tpldir=Template.dir~
13423 rm -rf $tpldir~
13424 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13425 $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'
13426 ;;
13427 *) # Version 6 and above use weak symbols
13428 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13429 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'
13430 ;;
13431 esac
13432
13433 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13434 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13435 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'
13436 ;;
13437 cxx*)
13438 # Compaq C++
13439 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13440 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'
13441
13442 runpath_var=LD_RUN_PATH
13443 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13444 hardcode_libdir_separator_CXX=:
13445
13446 # Commands to make compiler produce verbose output that lists
13447 # what "hidden" libraries, object files and flags are used when
13448 # linking a shared library.
13449 #
13450 # There doesn't appear to be a way to prevent this compiler from
13451 # explicitly linking system object files so we need to strip them
13452 # from the output so that they don't get included in the library
13453 # dependencies.
13454 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'
13455 ;;
13456 xl* | mpixl* | bgxl*)
13457 # IBM XL 8.0 on PPC, with GNU ld
13458 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13459 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13460 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13461 if test "x$supports_anon_versioning" = xyes; then
13462 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13463 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13464 echo "local: *; };" >> $output_objdir/$libname.ver~
13465 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13466 fi
13467 ;;
13468 *)
13469 case `$CC -V 2>&1 | sed 5q` in
13470 *Sun\ C*)
13471 # Sun C++ 5.9
13472 no_undefined_flag_CXX=' -zdefs'
13473 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13474 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'
13475 hardcode_libdir_flag_spec_CXX='-R$libdir'
13476 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'
13477 compiler_needs_object_CXX=yes
13478
13479 # Not sure whether something based on
13480 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13481 # would be better.
13482 output_verbose_link_cmd='func_echo_all'
13483
13484 # Archives containing C++ object files must be created using
13485 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13486 # necessary to make sure instantiated templates are included
13487 # in the archive.
13488 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13489 ;;
13490 esac
13491 ;;
13492 esac
13493 ;;
13494
13495 lynxos*)
13496 # FIXME: insert proper C++ library support
13497 ld_shlibs_CXX=no
13498 ;;
13499
13500 m88k*)
13501 # FIXME: insert proper C++ library support
13502 ld_shlibs_CXX=no
13503 ;;
13504
13505 mvs*)
13506 case $cc_basename in
13507 cxx*)
13508 # FIXME: insert proper C++ library support
13509 ld_shlibs_CXX=no
13510 ;;
13511 *)
13512 # FIXME: insert proper C++ library support
13513 ld_shlibs_CXX=no
13514 ;;
13515 esac
13516 ;;
13517
13518 netbsd*)
13519 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13520 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13521 wlarc=
13522 hardcode_libdir_flag_spec_CXX='-R$libdir'
13523 hardcode_direct_CXX=yes
13524 hardcode_shlibpath_var_CXX=no
13525 fi
13526 # Workaround some broken pre-1.5 toolchains
13527 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13528 ;;
13529
13530 *nto* | *qnx*)
13531 ld_shlibs_CXX=yes
13532 ;;
13533
13534 openbsd2*)
13535 # C++ shared libraries are fairly broken
13536 ld_shlibs_CXX=no
13537 ;;
13538
13539 openbsd*)
13540 if test -f /usr/libexec/ld.so; then
13541 hardcode_direct_CXX=yes
13542 hardcode_shlibpath_var_CXX=no
13543 hardcode_direct_absolute_CXX=yes
13544 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13545 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13546 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13547 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13548 export_dynamic_flag_spec_CXX='${wl}-E'
13549 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13550 fi
13551 output_verbose_link_cmd=func_echo_all
13552 else
13553 ld_shlibs_CXX=no
13554 fi
13555 ;;
13556
13557 osf3* | osf4* | osf5*)
13558 case $cc_basename in
13559 KCC*)
13560 # Kuck and Associates, Inc. (KAI) C++ Compiler
13561
13562 # KCC will only create a shared library if the output file
13563 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13564 # to its proper name (with version) after linking.
13565 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'
13566
13567 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13568 hardcode_libdir_separator_CXX=:
13569
13570 # Archives containing C++ object files must be created using
13571 # the KAI C++ compiler.
13572 case $host in
13573 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13574 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13575 esac
13576 ;;
13577 RCC*)
13578 # Rational C++ 2.4.1
13579 # FIXME: insert proper C++ library support
13580 ld_shlibs_CXX=no
13581 ;;
13582 cxx*)
13583 case $host in
13584 osf3*)
13585 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13586 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'
13587 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13588 ;;
13589 *)
13590 allow_undefined_flag_CXX=' -expect_unresolved \*'
13591 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'
13592 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13593 echo "-hidden">> $lib.exp~
13594 $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~
13595 $RM $lib.exp'
13596 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13597 ;;
13598 esac
13599
13600 hardcode_libdir_separator_CXX=:
13601
13602 # Commands to make compiler produce verbose output that lists
13603 # what "hidden" libraries, object files and flags are used when
13604 # linking a shared library.
13605 #
13606 # There doesn't appear to be a way to prevent this compiler from
13607 # explicitly linking system object files so we need to strip them
13608 # from the output so that they don't get included in the library
13609 # dependencies.
13610 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"'
13611 ;;
13612 *)
13613 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13614 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13615 case $host in
13616 osf3*)
13617 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'
13618 ;;
13619 *)
13620 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'
13621 ;;
13622 esac
13623
13624 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13625 hardcode_libdir_separator_CXX=:
13626
13627 # Commands to make compiler produce verbose output that lists
13628 # what "hidden" libraries, object files and flags are used when
13629 # linking a shared library.
13630 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13631
13632 else
13633 # FIXME: insert proper C++ library support
13634 ld_shlibs_CXX=no
13635 fi
13636 ;;
13637 esac
13638 ;;
13639
13640 psos*)
13641 # FIXME: insert proper C++ library support
13642 ld_shlibs_CXX=no
13643 ;;
13644
13645 sunos4*)
13646 case $cc_basename in
13647 CC*)
13648 # Sun C++ 4.x
13649 # FIXME: insert proper C++ library support
13650 ld_shlibs_CXX=no
13651 ;;
13652 lcc*)
13653 # Lucid
13654 # FIXME: insert proper C++ library support
13655 ld_shlibs_CXX=no
13656 ;;
13657 *)
13658 # FIXME: insert proper C++ library support
13659 ld_shlibs_CXX=no
13660 ;;
13661 esac
13662 ;;
13663
13664 solaris*)
13665 case $cc_basename in
13666 CC*)
13667 # Sun C++ 4.2, 5.x and Centerline C++
13668 archive_cmds_need_lc_CXX=yes
13669 no_undefined_flag_CXX=' -zdefs'
13670 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13671 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13672 $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'
13673
13674 hardcode_libdir_flag_spec_CXX='-R$libdir'
13675 hardcode_shlibpath_var_CXX=no
13676 case $host_os in
13677 solaris2.[0-5] | solaris2.[0-5].*) ;;
13678 *)
13679 # The compiler driver will combine and reorder linker options,
13680 # but understands `-z linker_flag'.
13681 # Supported since Solaris 2.6 (maybe 2.5.1?)
13682 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13683 ;;
13684 esac
13685 link_all_deplibs_CXX=yes
13686
13687 output_verbose_link_cmd='func_echo_all'
13688
13689 # Archives containing C++ object files must be created using
13690 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13691 # necessary to make sure instantiated templates are included
13692 # in the archive.
13693 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13694 ;;
13695 gcx*)
13696 # Green Hills C++ Compiler
13697 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13698
13699 # The C++ compiler must be used to create the archive.
13700 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13701 ;;
13702 *)
13703 # GNU C++ compiler with Solaris linker
13704 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13705 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13706 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13707 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13708 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13709 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13710
13711 # Commands to make compiler produce verbose output that lists
13712 # what "hidden" libraries, object files and flags are used when
13713 # linking a shared library.
13714 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13715 else
13716 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13717 # platform.
13718 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13719 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13720 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13721
13722 # Commands to make compiler produce verbose output that lists
13723 # what "hidden" libraries, object files and flags are used when
13724 # linking a shared library.
13725 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13726 fi
13727
13728 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13729 case $host_os in
13730 solaris2.[0-5] | solaris2.[0-5].*) ;;
13731 *)
13732 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13733 ;;
13734 esac
13735 fi
13736 ;;
13737 esac
13738 ;;
13739
13740 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13741 no_undefined_flag_CXX='${wl}-z,text'
13742 archive_cmds_need_lc_CXX=no
13743 hardcode_shlibpath_var_CXX=no
13744 runpath_var='LD_RUN_PATH'
13745
13746 case $cc_basename in
13747 CC*)
13748 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13749 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13750 ;;
13751 *)
13752 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13753 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13754 ;;
13755 esac
13756 ;;
13757
13758 sysv5* | sco3.2v5* | sco5v6*)
13759 # Note: We can NOT use -z defs as we might desire, because we do not
13760 # link with -lc, and that would cause any symbols used from libc to
13761 # always be unresolved, which means just about no library would
13762 # ever link correctly. If we're not using GNU ld we use -z text
13763 # though, which does catch some bad symbols but isn't as heavy-handed
13764 # as -z defs.
13765 no_undefined_flag_CXX='${wl}-z,text'
13766 allow_undefined_flag_CXX='${wl}-z,nodefs'
13767 archive_cmds_need_lc_CXX=no
13768 hardcode_shlibpath_var_CXX=no
13769 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13770 hardcode_libdir_separator_CXX=':'
13771 link_all_deplibs_CXX=yes
13772 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13773 runpath_var='LD_RUN_PATH'
13774
13775 case $cc_basename in
13776 CC*)
13777 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13778 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13779 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13780 '"$old_archive_cmds_CXX"
13781 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13782 '"$reload_cmds_CXX"
13783 ;;
13784 *)
13785 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13786 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13787 ;;
13788 esac
13789 ;;
13790
13791 tandem*)
13792 case $cc_basename in
13793 NCC*)
13794 # NonStop-UX NCC 3.20
13795 # FIXME: insert proper C++ library support
13796 ld_shlibs_CXX=no
13797 ;;
13798 *)
13799 # FIXME: insert proper C++ library support
13800 ld_shlibs_CXX=no
13801 ;;
13802 esac
13803 ;;
13804
13805 vxworks*)
13806 # FIXME: insert proper C++ library support
13807 ld_shlibs_CXX=no
13808 ;;
13809
13810 *)
13811 # FIXME: insert proper C++ library support
13812 ld_shlibs_CXX=no
13813 ;;
13814 esac
13815
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13817$as_echo "$ld_shlibs_CXX" >&6; }
13818 test "$ld_shlibs_CXX" = no && can_build_shared=no
13819
13820 GCC_CXX="$GXX"
13821 LD_CXX="$LD"
13822
13823 ## CAVEAT EMPTOR:
13824 ## There is no encapsulation within the following macros, do not change
13825 ## the running order or otherwise move them around unless you know exactly
13826 ## what you are doing...
13827 # Dependencies to place before and after the object being linked:
13828predep_objects_CXX=
13829postdep_objects_CXX=
13830predeps_CXX=
13831postdeps_CXX=
13832compiler_lib_search_path_CXX=
13833
13834cat > conftest.$ac_ext <<_LT_EOF
13835class Foo
13836{
13837public:
13838 Foo (void) { a = 0; }
13839private:
13840 int a;
13841};
13842_LT_EOF
13843
13844if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13845 (eval $ac_compile) 2>&5
13846 ac_status=$?
13847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13848 test $ac_status = 0; }; then
13849 # Parse the compiler output and extract the necessary
13850 # objects, libraries and library flags.
13851
13852 # Sentinel used to keep track of whether or not we are before
13853 # the conftest object file.
13854 pre_test_object_deps_done=no
13855
13856 for p in `eval "$output_verbose_link_cmd"`; do
13857 case $p in
13858
13859 -L* | -R* | -l*)
13860 # Some compilers place space between "-{L,R}" and the path.
13861 # Remove the space.
13862 if test $p = "-L" ||
13863 test $p = "-R"; then
13864 prev=$p
13865 continue
13866 else
13867 prev=
13868 fi
13869
13870 if test "$pre_test_object_deps_done" = no; then
13871 case $p in
13872 -L* | -R*)
13873 # Internal compiler library paths should come after those
13874 # provided the user. The postdeps already come after the
13875 # user supplied libs so there is no need to process them.
13876 if test -z "$compiler_lib_search_path_CXX"; then
13877 compiler_lib_search_path_CXX="${prev}${p}"
13878 else
13879 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13880 fi
13881 ;;
13882 # The "-l" case would never come before the object being
13883 # linked, so don't bother handling this case.
13884 esac
13885 else
13886 if test -z "$postdeps_CXX"; then
13887 postdeps_CXX="${prev}${p}"
13888 else
13889 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13890 fi
13891 fi
13892 ;;
13893
13894 *.$objext)
13895 # This assumes that the test object file only shows up
13896 # once in the compiler output.
13897 if test "$p" = "conftest.$objext"; then
13898 pre_test_object_deps_done=yes
13899 continue
13900 fi
13901
13902 if test "$pre_test_object_deps_done" = no; then
13903 if test -z "$predep_objects_CXX"; then
13904 predep_objects_CXX="$p"
13905 else
13906 predep_objects_CXX="$predep_objects_CXX $p"
13907 fi
13908 else
13909 if test -z "$postdep_objects_CXX"; then
13910 postdep_objects_CXX="$p"
13911 else
13912 postdep_objects_CXX="$postdep_objects_CXX $p"
13913 fi
13914 fi
13915 ;;
13916
13917 *) ;; # Ignore the rest.
13918
13919 esac
13920 done
13921
13922 # Clean up.
13923 rm -f a.out a.exe
13924else
13925 echo "libtool.m4: error: problem compiling CXX test program"
13926fi
13927
13928$RM -f confest.$objext
13929
13930# PORTME: override above test on systems where it is broken
13931case $host_os in
13932interix[3-9]*)
13933 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13934 # hack all around it, let's just trust "g++" to DTRT.
13935 predep_objects_CXX=
13936 postdep_objects_CXX=
13937 postdeps_CXX=
13938 ;;
13939
13940linux*)
13941 case `$CC -V 2>&1 | sed 5q` in
13942 *Sun\ C*)
13943 # Sun C++ 5.9
13944
13945 # The more standards-conforming stlport4 library is
13946 # incompatible with the Cstd library. Avoid specifying
13947 # it if it's in CXXFLAGS. Ignore libCrun as
13948 # -library=stlport4 depends on it.
13949 case " $CXX $CXXFLAGS " in
13950 *" -library=stlport4 "*)
13951 solaris_use_stlport4=yes
13952 ;;
13953 esac
13954
13955 if test "$solaris_use_stlport4" != yes; then
13956 postdeps_CXX='-library=Cstd -library=Crun'
13957 fi
13958 ;;
13959 esac
13960 ;;
13961
13962solaris*)
13963 case $cc_basename in
13964 CC*)
13965 # The more standards-conforming stlport4 library is
13966 # incompatible with the Cstd library. Avoid specifying
13967 # it if it's in CXXFLAGS. Ignore libCrun as
13968 # -library=stlport4 depends on it.
13969 case " $CXX $CXXFLAGS " in
13970 *" -library=stlport4 "*)
13971 solaris_use_stlport4=yes
13972 ;;
13973 esac
13974
13975 # Adding this requires a known-good setup of shared libraries for
13976 # Sun compiler versions before 5.6, else PIC objects from an old
13977 # archive will be linked into the output, leading to subtle bugs.
13978 if test "$solaris_use_stlport4" != yes; then
13979 postdeps_CXX='-library=Cstd -library=Crun'
13980 fi
13981 ;;
13982 esac
13983 ;;
13984esac
13985
13986
13987case " $postdeps_CXX " in
13988*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13989esac
13990 compiler_lib_search_dirs_CXX=
13991if test -n "${compiler_lib_search_path_CXX}"; then
13992 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13993fi
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025 lt_prog_compiler_wl_CXX=
14026lt_prog_compiler_pic_CXX=
14027lt_prog_compiler_static_CXX=
14028
14029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14030$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14031
14032 # C++ specific cases for pic, static, wl, etc.
14033 if test "$GXX" = yes; then
14034 lt_prog_compiler_wl_CXX='-Wl,'
14035 lt_prog_compiler_static_CXX='-static'
14036
14037 case $host_os in
14038 aix*)
14039 # All AIX code is PIC.
14040 if test "$host_cpu" = ia64; then
14041 # AIX 5 now supports IA64 processor
14042 lt_prog_compiler_static_CXX='-Bstatic'
14043 fi
14044 ;;
14045
14046 amigaos*)
14047 case $host_cpu in
14048 powerpc)
14049 # see comment about AmigaOS4 .so support
14050 lt_prog_compiler_pic_CXX='-fPIC'
14051 ;;
14052 m68k)
14053 # FIXME: we need at least 68020 code to build shared libraries, but
14054 # adding the `-m68020' flag to GCC prevents building anything better,
14055 # like `-m68040'.
14056 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14057 ;;
14058 esac
14059 ;;
14060
14061 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14062 # PIC is the default for these OSes.
14063 ;;
14064 mingw* | cygwin* | os2* | pw32* | cegcc*)
14065 # This hack is so that the source file can tell whether it is being
14066 # built for inclusion in a dll (and should export symbols for example).
14067 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14068 # (--disable-auto-import) libraries
14069 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14070 ;;
14071 darwin* | rhapsody*)
14072 # PIC is the default on this platform
14073 # Common symbols not allowed in MH_DYLIB files
14074 lt_prog_compiler_pic_CXX='-fno-common'
14075 ;;
14076 *djgpp*)
14077 # DJGPP does not support shared libraries at all
14078 lt_prog_compiler_pic_CXX=
14079 ;;
14080 haiku*)
14081 # PIC is the default for Haiku.
14082 # The "-static" flag exists, but is broken.
14083 lt_prog_compiler_static_CXX=
14084 ;;
14085 interix[3-9]*)
14086 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14087 # Instead, we relocate shared libraries at runtime.
14088 ;;
14089 sysv4*MP*)
14090 if test -d /usr/nec; then
14091 lt_prog_compiler_pic_CXX=-Kconform_pic
14092 fi
14093 ;;
14094 hpux*)
14095 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14096 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14097 # sets the default TLS model and affects inlining.
14098 case $host_cpu in
14099 hppa*64*)
14100 ;;
14101 *)
14102 lt_prog_compiler_pic_CXX='-fPIC'
14103 ;;
14104 esac
14105 ;;
14106 *qnx* | *nto*)
14107 # QNX uses GNU C++, but need to define -shared option too, otherwise
14108 # it will coredump.
14109 lt_prog_compiler_pic_CXX='-fPIC -shared'
14110 ;;
14111 *)
14112 lt_prog_compiler_pic_CXX='-fPIC'
14113 ;;
14114 esac
14115 else
14116 case $host_os in
14117 aix[4-9]*)
14118 # All AIX code is PIC.
14119 if test "$host_cpu" = ia64; then
14120 # AIX 5 now supports IA64 processor
14121 lt_prog_compiler_static_CXX='-Bstatic'
14122 else
14123 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14124 fi
14125 ;;
14126 chorus*)
14127 case $cc_basename in
14128 cxch68*)
14129 # Green Hills C++ Compiler
14130 # _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"
14131 ;;
14132 esac
14133 ;;
14134 dgux*)
14135 case $cc_basename in
14136 ec++*)
14137 lt_prog_compiler_pic_CXX='-KPIC'
14138 ;;
14139 ghcx*)
14140 # Green Hills C++ Compiler
14141 lt_prog_compiler_pic_CXX='-pic'
14142 ;;
14143 *)
14144 ;;
14145 esac
14146 ;;
14147 freebsd* | dragonfly*)
14148 # FreeBSD uses GNU C++
14149 ;;
14150 hpux9* | hpux10* | hpux11*)
14151 case $cc_basename in
14152 CC*)
14153 lt_prog_compiler_wl_CXX='-Wl,'
14154 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14155 if test "$host_cpu" != ia64; then
14156 lt_prog_compiler_pic_CXX='+Z'
14157 fi
14158 ;;
14159 aCC*)
14160 lt_prog_compiler_wl_CXX='-Wl,'
14161 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14162 case $host_cpu in
14163 hppa*64*|ia64*)
14164 # +Z the default
14165 ;;
14166 *)
14167 lt_prog_compiler_pic_CXX='+Z'
14168 ;;
14169 esac
14170 ;;
14171 *)
14172 ;;
14173 esac
14174 ;;
14175 interix*)
14176 # This is c89, which is MS Visual C++ (no shared libs)
14177 # Anyone wants to do a port?
14178 ;;
14179 irix5* | irix6* | nonstopux*)
14180 case $cc_basename in
14181 CC*)
14182 lt_prog_compiler_wl_CXX='-Wl,'
14183 lt_prog_compiler_static_CXX='-non_shared'
14184 # CC pic flag -KPIC is the default.
14185 ;;
14186 *)
14187 ;;
14188 esac
14189 ;;
14190 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14191 case $cc_basename in
14192 KCC*)
14193 # KAI C++ Compiler
14194 lt_prog_compiler_wl_CXX='--backend -Wl,'
14195 lt_prog_compiler_pic_CXX='-fPIC'
14196 ;;
14197 ecpc* )
14198 # old Intel C++ for x86_64 which still supported -KPIC.
14199 lt_prog_compiler_wl_CXX='-Wl,'
14200 lt_prog_compiler_pic_CXX='-KPIC'
14201 lt_prog_compiler_static_CXX='-static'
14202 ;;
14203 icpc* )
14204 # Intel C++, used to be incompatible with GCC.
14205 # ICC 10 doesn't accept -KPIC any more.
14206 lt_prog_compiler_wl_CXX='-Wl,'
14207 lt_prog_compiler_pic_CXX='-fPIC'
14208 lt_prog_compiler_static_CXX='-static'
14209 ;;
14210 pgCC* | pgcpp*)
14211 # Portland Group C++ compiler
14212 lt_prog_compiler_wl_CXX='-Wl,'
14213 lt_prog_compiler_pic_CXX='-fpic'
14214 lt_prog_compiler_static_CXX='-Bstatic'
14215 ;;
14216 cxx*)
14217 # Compaq C++
14218 # Make sure the PIC flag is empty. It appears that all Alpha
14219 # Linux and Compaq Tru64 Unix objects are PIC.
14220 lt_prog_compiler_pic_CXX=
14221 lt_prog_compiler_static_CXX='-non_shared'
14222 ;;
14223 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14224 # IBM XL 8.0, 9.0 on PPC and BlueGene
14225 lt_prog_compiler_wl_CXX='-Wl,'
14226 lt_prog_compiler_pic_CXX='-qpic'
14227 lt_prog_compiler_static_CXX='-qstaticlink'
14228 ;;
14229 *)
14230 case `$CC -V 2>&1 | sed 5q` in
14231 *Sun\ C*)
14232 # Sun C++ 5.9
14233 lt_prog_compiler_pic_CXX='-KPIC'
14234 lt_prog_compiler_static_CXX='-Bstatic'
14235 lt_prog_compiler_wl_CXX='-Qoption ld '
14236 ;;
14237 esac
14238 ;;
14239 esac
14240 ;;
14241 lynxos*)
14242 ;;
14243 m88k*)
14244 ;;
14245 mvs*)
14246 case $cc_basename in
14247 cxx*)
14248 lt_prog_compiler_pic_CXX='-W c,exportall'
14249 ;;
14250 *)
14251 ;;
14252 esac
14253 ;;
14254 netbsd*)
14255 ;;
14256 *qnx* | *nto*)
14257 # QNX uses GNU C++, but need to define -shared option too, otherwise
14258 # it will coredump.
14259 lt_prog_compiler_pic_CXX='-fPIC -shared'
14260 ;;
14261 osf3* | osf4* | osf5*)
14262 case $cc_basename in
14263 KCC*)
14264 lt_prog_compiler_wl_CXX='--backend -Wl,'
14265 ;;
14266 RCC*)
14267 # Rational C++ 2.4.1
14268 lt_prog_compiler_pic_CXX='-pic'
14269 ;;
14270 cxx*)
14271 # Digital/Compaq C++
14272 lt_prog_compiler_wl_CXX='-Wl,'
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 *)
14279 ;;
14280 esac
14281 ;;
14282 psos*)
14283 ;;
14284 solaris*)
14285 case $cc_basename in
14286 CC*)
14287 # Sun C++ 4.2, 5.x and Centerline C++
14288 lt_prog_compiler_pic_CXX='-KPIC'
14289 lt_prog_compiler_static_CXX='-Bstatic'
14290 lt_prog_compiler_wl_CXX='-Qoption ld '
14291 ;;
14292 gcx*)
14293 # Green Hills C++ Compiler
14294 lt_prog_compiler_pic_CXX='-PIC'
14295 ;;
14296 *)
14297 ;;
14298 esac
14299 ;;
14300 sunos4*)
14301 case $cc_basename in
14302 CC*)
14303 # Sun C++ 4.x
14304 lt_prog_compiler_pic_CXX='-pic'
14305 lt_prog_compiler_static_CXX='-Bstatic'
14306 ;;
14307 lcc*)
14308 # Lucid
14309 lt_prog_compiler_pic_CXX='-pic'
14310 ;;
14311 *)
14312 ;;
14313 esac
14314 ;;
14315 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14316 case $cc_basename in
14317 CC*)
14318 lt_prog_compiler_wl_CXX='-Wl,'
14319 lt_prog_compiler_pic_CXX='-KPIC'
14320 lt_prog_compiler_static_CXX='-Bstatic'
14321 ;;
14322 esac
14323 ;;
14324 tandem*)
14325 case $cc_basename in
14326 NCC*)
14327 # NonStop-UX NCC 3.20
14328 lt_prog_compiler_pic_CXX='-KPIC'
14329 ;;
14330 *)
14331 ;;
14332 esac
14333 ;;
14334 vxworks*)
14335 ;;
14336 *)
14337 lt_prog_compiler_can_build_shared_CXX=no
14338 ;;
14339 esac
14340 fi
14341
14342case $host_os in
14343 # For platforms which do not support PIC, -DPIC is meaningless:
14344 *djgpp*)
14345 lt_prog_compiler_pic_CXX=
14346 ;;
14347 *)
14348 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14349 ;;
14350esac
14351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14352$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14353
14354
14355
14356#
14357# Check to make sure the PIC flag actually works.
14358#
14359if test -n "$lt_prog_compiler_pic_CXX"; then
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14361$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14362if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14363 $as_echo_n "(cached) " >&6
14364else
14365 lt_cv_prog_compiler_pic_works_CXX=no
14366 ac_outfile=conftest.$ac_objext
14367 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14368 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14369 # Insert the option either (1) after the last *FLAGS variable, or
14370 # (2) before a word containing "conftest.", or (3) at the end.
14371 # Note that $ac_compile itself does not contain backslashes and begins
14372 # with a dollar sign (not a hyphen), so the echo should work correctly.
14373 # The option is referenced via a variable to avoid confusing sed.
14374 lt_compile=`echo "$ac_compile" | $SED \
14375 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14376 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14377 -e 's:$: $lt_compiler_flag:'`
14378 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14379 (eval "$lt_compile" 2>conftest.err)
14380 ac_status=$?
14381 cat conftest.err >&5
14382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383 if (exit $ac_status) && test -s "$ac_outfile"; then
14384 # The compiler can only warn and ignore the option if not recognized
14385 # So say no if there are warnings other than the usual output.
14386 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14387 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14388 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14389 lt_cv_prog_compiler_pic_works_CXX=yes
14390 fi
14391 fi
14392 $RM conftest*
14393
14394fi
14395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14396$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14397
14398if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14399 case $lt_prog_compiler_pic_CXX in
14400 "" | " "*) ;;
14401 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14402 esac
14403else
14404 lt_prog_compiler_pic_CXX=
14405 lt_prog_compiler_can_build_shared_CXX=no
14406fi
14407
14408fi
14409
14410
14411
14412#
14413# Check to make sure the static flag actually works.
14414#
14415wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14417$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14418if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14419 $as_echo_n "(cached) " >&6
14420else
14421 lt_cv_prog_compiler_static_works_CXX=no
14422 save_LDFLAGS="$LDFLAGS"
14423 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14424 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14425 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14426 # The linker can only warn and ignore the option if not recognized
14427 # So say no if there are warnings
14428 if test -s conftest.err; then
14429 # Append any errors to the config.log.
14430 cat conftest.err 1>&5
14431 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14432 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14433 if diff conftest.exp conftest.er2 >/dev/null; then
14434 lt_cv_prog_compiler_static_works_CXX=yes
14435 fi
14436 else
14437 lt_cv_prog_compiler_static_works_CXX=yes
14438 fi
14439 fi
14440 $RM -r conftest*
14441 LDFLAGS="$save_LDFLAGS"
14442
14443fi
14444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14445$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14446
14447if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14448 :
14449else
14450 lt_prog_compiler_static_CXX=
14451fi
14452
14453
14454
14455
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14457$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14458if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14459 $as_echo_n "(cached) " >&6
14460else
14461 lt_cv_prog_compiler_c_o_CXX=no
14462 $RM -r conftest 2>/dev/null
14463 mkdir conftest
14464 cd conftest
14465 mkdir out
14466 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14467
14468 lt_compiler_flag="-o out/conftest2.$ac_objext"
14469 # Insert the option either (1) after the last *FLAGS variable, or
14470 # (2) before a word containing "conftest.", or (3) at the end.
14471 # Note that $ac_compile itself does not contain backslashes and begins
14472 # with a dollar sign (not a hyphen), so the echo should work correctly.
14473 lt_compile=`echo "$ac_compile" | $SED \
14474 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14475 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14476 -e 's:$: $lt_compiler_flag:'`
14477 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14478 (eval "$lt_compile" 2>out/conftest.err)
14479 ac_status=$?
14480 cat out/conftest.err >&5
14481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14483 then
14484 # The compiler can only warn and ignore the option if not recognized
14485 # So say no if there are warnings
14486 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14487 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14488 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14489 lt_cv_prog_compiler_c_o_CXX=yes
14490 fi
14491 fi
14492 chmod u+w . 2>&5
14493 $RM conftest*
14494 # SGI C++ compiler will create directory out/ii_files/ for
14495 # template instantiation
14496 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14497 $RM out/* && rmdir out
14498 cd ..
14499 $RM -r conftest
14500 $RM conftest*
14501
14502fi
14503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14504$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14505
14506
14507
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14509$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14510if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14511 $as_echo_n "(cached) " >&6
14512else
14513 lt_cv_prog_compiler_c_o_CXX=no
14514 $RM -r conftest 2>/dev/null
14515 mkdir conftest
14516 cd conftest
14517 mkdir out
14518 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14519
14520 lt_compiler_flag="-o out/conftest2.$ac_objext"
14521 # Insert the option either (1) after the last *FLAGS variable, or
14522 # (2) before a word containing "conftest.", or (3) at the end.
14523 # Note that $ac_compile itself does not contain backslashes and begins
14524 # with a dollar sign (not a hyphen), so the echo should work correctly.
14525 lt_compile=`echo "$ac_compile" | $SED \
14526 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14527 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14528 -e 's:$: $lt_compiler_flag:'`
14529 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14530 (eval "$lt_compile" 2>out/conftest.err)
14531 ac_status=$?
14532 cat out/conftest.err >&5
14533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14535 then
14536 # The compiler can only warn and ignore the option if not recognized
14537 # So say no if there are warnings
14538 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14539 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14540 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14541 lt_cv_prog_compiler_c_o_CXX=yes
14542 fi
14543 fi
14544 chmod u+w . 2>&5
14545 $RM conftest*
14546 # SGI C++ compiler will create directory out/ii_files/ for
14547 # template instantiation
14548 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14549 $RM out/* && rmdir out
14550 cd ..
14551 $RM -r conftest
14552 $RM conftest*
14553
14554fi
14555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14556$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14557
14558
14559
14560
14561hard_links="nottested"
14562if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14563 # do not overwrite the value of need_locks provided by the user
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14565$as_echo_n "checking if we can lock with hard links... " >&6; }
14566 hard_links=yes
14567 $RM conftest*
14568 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14569 touch conftest.a
14570 ln conftest.a conftest.b 2>&5 || hard_links=no
14571 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14573$as_echo "$hard_links" >&6; }
14574 if test "$hard_links" = no; then
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14576$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14577 need_locks=warn
14578 fi
14579else
14580 need_locks=no
14581fi
14582
14583
14584
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14586$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14587
14588 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14589 case $host_os in
14590 aix[4-9]*)
14591 # If we're using GNU nm, then we don't want the "-C" option.
14592 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14593 # Also, AIX nm treats weak defined symbols like other global defined
14594 # symbols, whereas GNU nm marks them as "W".
14595 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14596 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'
14597 else
14598 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'
14599 fi
14600 ;;
14601 pw32*)
14602 export_symbols_cmds_CXX="$ltdll_cmds"
14603 ;;
14604 cygwin* | mingw* | cegcc*)
14605 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'
14606 ;;
14607 *)
14608 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14609 ;;
14610 esac
14611 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14612
14613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14614$as_echo "$ld_shlibs_CXX" >&6; }
14615test "$ld_shlibs_CXX" = no && can_build_shared=no
14616
14617with_gnu_ld_CXX=$with_gnu_ld
14618
14619
14620
14621
14622
14623
14624#
14625# Do we need to explicitly link libc?
14626#
14627case "x$archive_cmds_need_lc_CXX" in
14628x|xyes)
14629 # Assume -lc should be added
14630 archive_cmds_need_lc_CXX=yes
14631
14632 if test "$enable_shared" = yes && test "$GCC" = yes; then
14633 case $archive_cmds_CXX in
14634 *'~'*)
14635 # FIXME: we may have to deal with multi-command sequences.
14636 ;;
14637 '$CC '*)
14638 # Test whether the compiler implicitly links with -lc since on some
14639 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14640 # to ld, don't add -lc before -lgcc.
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14642$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14643if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14644 $as_echo_n "(cached) " >&6
14645else
14646 $RM conftest*
14647 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14648
14649 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14650 (eval $ac_compile) 2>&5
14651 ac_status=$?
14652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14653 test $ac_status = 0; } 2>conftest.err; then
14654 soname=conftest
14655 lib=conftest
14656 libobjs=conftest.$ac_objext
14657 deplibs=
14658 wl=$lt_prog_compiler_wl_CXX
14659 pic_flag=$lt_prog_compiler_pic_CXX
14660 compiler_flags=-v
14661 linker_flags=-v
14662 verstring=
14663 output_objdir=.
14664 libname=conftest
14665 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14666 allow_undefined_flag_CXX=
14667 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14668 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14669 ac_status=$?
14670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14671 test $ac_status = 0; }
14672 then
14673 lt_cv_archive_cmds_need_lc_CXX=no
14674 else
14675 lt_cv_archive_cmds_need_lc_CXX=yes
14676 fi
14677 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14678 else
14679 cat conftest.err 1>&5
14680 fi
14681 $RM conftest*
14682
14683fi
14684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14685$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14686 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14687 ;;
14688 esac
14689 fi
14690 ;;
14691esac
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14757$as_echo_n "checking dynamic linker characteristics... " >&6; }
14758
14759library_names_spec=
14760libname_spec='lib$name'
14761soname_spec=
14762shrext_cmds=".so"
14763postinstall_cmds=
14764postuninstall_cmds=
14765finish_cmds=
14766finish_eval=
14767shlibpath_var=
14768shlibpath_overrides_runpath=unknown
14769version_type=none
14770dynamic_linker="$host_os ld.so"
14771sys_lib_dlsearch_path_spec="/lib /usr/lib"
14772need_lib_prefix=unknown
14773hardcode_into_libs=no
14774
14775# when you set need_version to no, make sure it does not cause -set_version
14776# flags to be left without arguments
14777need_version=unknown
14778
14779case $host_os in
14780aix3*)
14781 version_type=linux
14782 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14783 shlibpath_var=LIBPATH
14784
14785 # AIX 3 has no versioning support, so we append a major version to the name.
14786 soname_spec='${libname}${release}${shared_ext}$major'
14787 ;;
14788
14789aix[4-9]*)
14790 version_type=linux
14791 need_lib_prefix=no
14792 need_version=no
14793 hardcode_into_libs=yes
14794 if test "$host_cpu" = ia64; then
14795 # AIX 5 supports IA64
14796 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14797 shlibpath_var=LD_LIBRARY_PATH
14798 else
14799 # With GCC up to 2.95.x, collect2 would create an import file
14800 # for dependence libraries. The import file would start with
14801 # the line `#! .'. This would cause the generated library to
14802 # depend on `.', always an invalid library. This was fixed in
14803 # development snapshots of GCC prior to 3.0.
14804 case $host_os in
14805 aix4 | aix4.[01] | aix4.[01].*)
14806 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14807 echo ' yes '
14808 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14809 :
14810 else
14811 can_build_shared=no
14812 fi
14813 ;;
14814 esac
14815 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14816 # soname into executable. Probably we can add versioning support to
14817 # collect2, so additional links can be useful in future.
14818 if test "$aix_use_runtimelinking" = yes; then
14819 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14820 # instead of lib<name>.a to let people know that these are not
14821 # typical AIX shared libraries.
14822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14823 else
14824 # We preserve .a as extension for shared libraries through AIX4.2
14825 # and later when we are not doing run time linking.
14826 library_names_spec='${libname}${release}.a $libname.a'
14827 soname_spec='${libname}${release}${shared_ext}$major'
14828 fi
14829 shlibpath_var=LIBPATH
14830 fi
14831 ;;
14832
14833amigaos*)
14834 case $host_cpu in
14835 powerpc)
14836 # Since July 2007 AmigaOS4 officially supports .so libraries.
14837 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14839 ;;
14840 m68k)
14841 library_names_spec='$libname.ixlibrary $libname.a'
14842 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14843 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'
14844 ;;
14845 esac
14846 ;;
14847
14848beos*)
14849 library_names_spec='${libname}${shared_ext}'
14850 dynamic_linker="$host_os ld.so"
14851 shlibpath_var=LIBRARY_PATH
14852 ;;
14853
14854bsdi[45]*)
14855 version_type=linux
14856 need_version=no
14857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14858 soname_spec='${libname}${release}${shared_ext}$major'
14859 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14860 shlibpath_var=LD_LIBRARY_PATH
14861 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14862 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14863 # the default ld.so.conf also contains /usr/contrib/lib and
14864 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14865 # libtool to hard-code these into programs
14866 ;;
14867
14868cygwin* | mingw* | pw32* | cegcc*)
14869 version_type=windows
14870 shrext_cmds=".dll"
14871 need_version=no
14872 need_lib_prefix=no
14873
14874 case $GCC,$host_os in
14875 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14876 library_names_spec='$libname.dll.a'
14877 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14878 postinstall_cmds='base_file=`basename \${file}`~
14879 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14880 dldir=$destdir/`dirname \$dlpath`~
14881 test -d \$dldir || mkdir -p \$dldir~
14882 $install_prog $dir/$dlname \$dldir/$dlname~
14883 chmod a+x \$dldir/$dlname~
14884 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14885 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14886 fi'
14887 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14888 dlpath=$dir/\$dldll~
14889 $RM \$dlpath'
14890 shlibpath_overrides_runpath=yes
14891
14892 case $host_os in
14893 cygwin*)
14894 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14895 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14896
14897 ;;
14898 mingw* | cegcc*)
14899 # MinGW DLLs use traditional 'lib' prefix
14900 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14901 ;;
14902 pw32*)
14903 # pw32 DLLs use 'pw' prefix rather than 'lib'
14904 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14905 ;;
14906 esac
14907 ;;
14908
14909 *)
14910 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14911 ;;
14912 esac
14913 dynamic_linker='Win32 ld.exe'
14914 # FIXME: first we should search . and the directory the executable is in
14915 shlibpath_var=PATH
14916 ;;
14917
14918darwin* | rhapsody*)
14919 dynamic_linker="$host_os dyld"
14920 version_type=darwin
14921 need_lib_prefix=no
14922 need_version=no
14923 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14924 soname_spec='${libname}${release}${major}$shared_ext'
14925 shlibpath_overrides_runpath=yes
14926 shlibpath_var=DYLD_LIBRARY_PATH
14927 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14928
14929 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14930 ;;
14931
14932dgux*)
14933 version_type=linux
14934 need_lib_prefix=no
14935 need_version=no
14936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14937 soname_spec='${libname}${release}${shared_ext}$major'
14938 shlibpath_var=LD_LIBRARY_PATH
14939 ;;
14940
3cb62297
L
14941freebsd* | dragonfly*)
14942 # DragonFly does not have aout. When/if they implement a new
14943 # versioning mechanism, adjust this.
14944 if test -x /usr/bin/objformat; then
14945 objformat=`/usr/bin/objformat`
14946 else
14947 case $host_os in
14948 freebsd[123]*) objformat=aout ;;
14949 *) objformat=elf ;;
14950 esac
14951 fi
14952 version_type=freebsd-$objformat
14953 case $version_type in
14954 freebsd-elf*)
14955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14956 need_version=no
14957 need_lib_prefix=no
14958 ;;
14959 freebsd-*)
14960 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14961 need_version=yes
14962 ;;
14963 esac
14964 shlibpath_var=LD_LIBRARY_PATH
14965 case $host_os in
14966 freebsd2*)
14967 shlibpath_overrides_runpath=yes
14968 ;;
14969 freebsd3.[01]* | freebsdelf3.[01]*)
14970 shlibpath_overrides_runpath=yes
14971 hardcode_into_libs=yes
14972 ;;
14973 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14974 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14975 shlibpath_overrides_runpath=no
14976 hardcode_into_libs=yes
14977 ;;
14978 *) # from 4.6 on, and DragonFly
14979 shlibpath_overrides_runpath=yes
14980 hardcode_into_libs=yes
14981 ;;
14982 esac
14983 ;;
14984
14985gnu*)
14986 version_type=linux
14987 need_lib_prefix=no
14988 need_version=no
14989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14990 soname_spec='${libname}${release}${shared_ext}$major'
14991 shlibpath_var=LD_LIBRARY_PATH
14992 hardcode_into_libs=yes
14993 ;;
14994
14995haiku*)
14996 version_type=linux
14997 need_lib_prefix=no
14998 need_version=no
14999 dynamic_linker="$host_os runtime_loader"
15000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15001 soname_spec='${libname}${release}${shared_ext}$major'
15002 shlibpath_var=LIBRARY_PATH
15003 shlibpath_overrides_runpath=yes
15004 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
15005 hardcode_into_libs=yes
15006 ;;
15007
15008hpux9* | hpux10* | hpux11*)
15009 # Give a soname corresponding to the major version so that dld.sl refuses to
15010 # link against other versions.
15011 version_type=sunos
15012 need_lib_prefix=no
15013 need_version=no
15014 case $host_cpu in
15015 ia64*)
15016 shrext_cmds='.so'
15017 hardcode_into_libs=yes
15018 dynamic_linker="$host_os dld.so"
15019 shlibpath_var=LD_LIBRARY_PATH
15020 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15022 soname_spec='${libname}${release}${shared_ext}$major'
15023 if test "X$HPUX_IA64_MODE" = X32; then
15024 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15025 else
15026 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15027 fi
15028 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15029 ;;
15030 hppa*64*)
15031 shrext_cmds='.sl'
15032 hardcode_into_libs=yes
15033 dynamic_linker="$host_os dld.sl"
15034 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15035 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15037 soname_spec='${libname}${release}${shared_ext}$major'
15038 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15039 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15040 ;;
15041 *)
15042 shrext_cmds='.sl'
15043 dynamic_linker="$host_os dld.sl"
15044 shlibpath_var=SHLIB_PATH
15045 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15047 soname_spec='${libname}${release}${shared_ext}$major'
15048 ;;
15049 esac
15050 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15051 postinstall_cmds='chmod 555 $lib'
15052 # or fails outright, so override atomically:
15053 install_override_mode=555
15054 ;;
15055
15056interix[3-9]*)
15057 version_type=linux
15058 need_lib_prefix=no
15059 need_version=no
15060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15061 soname_spec='${libname}${release}${shared_ext}$major'
15062 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15063 shlibpath_var=LD_LIBRARY_PATH
15064 shlibpath_overrides_runpath=no
15065 hardcode_into_libs=yes
15066 ;;
15067
15068irix5* | irix6* | nonstopux*)
15069 case $host_os in
15070 nonstopux*) version_type=nonstopux ;;
15071 *)
15072 if test "$lt_cv_prog_gnu_ld" = yes; then
15073 version_type=linux
15074 else
15075 version_type=irix
15076 fi ;;
15077 esac
15078 need_lib_prefix=no
15079 need_version=no
15080 soname_spec='${libname}${release}${shared_ext}$major'
15081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15082 case $host_os in
15083 irix5* | nonstopux*)
15084 libsuff= shlibsuff=
15085 ;;
15086 *)
15087 case $LD in # libtool.m4 will add one of these switches to LD
15088 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15089 libsuff= shlibsuff= libmagic=32-bit;;
15090 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15091 libsuff=32 shlibsuff=N32 libmagic=N32;;
15092 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15093 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15094 *) libsuff= shlibsuff= libmagic=never-match;;
15095 esac
15096 ;;
15097 esac
15098 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15099 shlibpath_overrides_runpath=no
15100 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15101 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15102 hardcode_into_libs=yes
15103 ;;
15104
15105# No shared lib support for Linux oldld, aout, or coff.
15106linux*oldld* | linux*aout* | linux*coff*)
15107 dynamic_linker=no
15108 ;;
15109
15110# This must be Linux ELF.
15111linux* | k*bsd*-gnu | kopensolaris*-gnu)
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15118 shlibpath_var=LD_LIBRARY_PATH
15119 shlibpath_overrides_runpath=no
15120
15121 # Some binutils ld are patched to set DT_RUNPATH
15122 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15123 $as_echo_n "(cached) " >&6
15124else
15125 lt_cv_shlibpath_overrides_runpath=no
15126 save_LDFLAGS=$LDFLAGS
15127 save_libdir=$libdir
15128 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15129 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15131/* end confdefs.h. */
15132
15133int
15134main ()
15135{
15136
15137 ;
15138 return 0;
15139}
15140_ACEOF
15141if ac_fn_cxx_try_link "$LINENO"; then :
15142 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15143 lt_cv_shlibpath_overrides_runpath=yes
15144fi
15145fi
15146rm -f core conftest.err conftest.$ac_objext \
15147 conftest$ac_exeext conftest.$ac_ext
15148 LDFLAGS=$save_LDFLAGS
15149 libdir=$save_libdir
15150
15151fi
15152
15153 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15154
15155 # This implies no fast_install, which is unacceptable.
15156 # Some rework will be needed to allow for fast_install
15157 # before this can be enabled.
15158 hardcode_into_libs=yes
15159
15160 # Append ld.so.conf contents to the search path
15161 if test -f /etc/ld.so.conf; then
15162 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' ' '`
15163 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15164 fi
15165
15166 # We used to test for /lib/ld.so.1 and disable shared libraries on
15167 # powerpc, because MkLinux only supported shared libraries with the
15168 # GNU dynamic linker. Since this was broken with cross compilers,
15169 # most powerpc-linux boxes support dynamic linking these days and
15170 # people can always --disable-shared, the test was removed, and we
15171 # assume the GNU/Linux dynamic linker is in use.
15172 dynamic_linker='GNU/Linux ld.so'
15173 ;;
15174
15175netbsd*)
15176 version_type=sunos
15177 need_lib_prefix=no
15178 need_version=no
15179 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15181 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15182 dynamic_linker='NetBSD (a.out) ld.so'
15183 else
15184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15185 soname_spec='${libname}${release}${shared_ext}$major'
15186 dynamic_linker='NetBSD ld.elf_so'
15187 fi
15188 shlibpath_var=LD_LIBRARY_PATH
15189 shlibpath_overrides_runpath=yes
15190 hardcode_into_libs=yes
15191 ;;
15192
15193newsos6)
15194 version_type=linux
15195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15196 shlibpath_var=LD_LIBRARY_PATH
15197 shlibpath_overrides_runpath=yes
15198 ;;
15199
15200*nto* | *qnx*)
15201 version_type=qnx
15202 need_lib_prefix=no
15203 need_version=no
15204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15205 soname_spec='${libname}${release}${shared_ext}$major'
15206 shlibpath_var=LD_LIBRARY_PATH
15207 shlibpath_overrides_runpath=no
15208 hardcode_into_libs=yes
15209 dynamic_linker='ldqnx.so'
15210 ;;
15211
15212openbsd*)
15213 version_type=sunos
15214 sys_lib_dlsearch_path_spec="/usr/lib"
15215 need_lib_prefix=no
15216 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15217 case $host_os in
15218 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15219 *) need_version=no ;;
15220 esac
15221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15222 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15223 shlibpath_var=LD_LIBRARY_PATH
15224 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15225 case $host_os in
15226 openbsd2.[89] | openbsd2.[89].*)
15227 shlibpath_overrides_runpath=no
15228 ;;
15229 *)
15230 shlibpath_overrides_runpath=yes
15231 ;;
15232 esac
15233 else
15234 shlibpath_overrides_runpath=yes
15235 fi
15236 ;;
15237
15238os2*)
15239 libname_spec='$name'
15240 shrext_cmds=".dll"
15241 need_lib_prefix=no
15242 library_names_spec='$libname${shared_ext} $libname.a'
15243 dynamic_linker='OS/2 ld.exe'
15244 shlibpath_var=LIBPATH
15245 ;;
15246
15247osf3* | osf4* | osf5*)
15248 version_type=osf
15249 need_lib_prefix=no
15250 need_version=no
15251 soname_spec='${libname}${release}${shared_ext}$major'
15252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15253 shlibpath_var=LD_LIBRARY_PATH
15254 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15255 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15256 ;;
15257
15258rdos*)
15259 dynamic_linker=no
15260 ;;
15261
15262solaris*)
15263 version_type=linux
15264 need_lib_prefix=no
15265 need_version=no
15266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15267 soname_spec='${libname}${release}${shared_ext}$major'
15268 shlibpath_var=LD_LIBRARY_PATH
15269 shlibpath_overrides_runpath=yes
15270 hardcode_into_libs=yes
15271 # ldd complains unless libraries are executable
15272 postinstall_cmds='chmod +x $lib'
15273 ;;
15274
15275sunos4*)
15276 version_type=sunos
15277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15278 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15279 shlibpath_var=LD_LIBRARY_PATH
15280 shlibpath_overrides_runpath=yes
15281 if test "$with_gnu_ld" = yes; then
15282 need_lib_prefix=no
15283 fi
15284 need_version=yes
15285 ;;
15286
15287sysv4 | sysv4.3*)
15288 version_type=linux
15289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15290 soname_spec='${libname}${release}${shared_ext}$major'
15291 shlibpath_var=LD_LIBRARY_PATH
15292 case $host_vendor in
15293 sni)
15294 shlibpath_overrides_runpath=no
15295 need_lib_prefix=no
15296 runpath_var=LD_RUN_PATH
15297 ;;
15298 siemens)
15299 need_lib_prefix=no
15300 ;;
15301 motorola)
15302 need_lib_prefix=no
15303 need_version=no
15304 shlibpath_overrides_runpath=no
15305 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15306 ;;
15307 esac
15308 ;;
15309
15310sysv4*MP*)
15311 if test -d /usr/nec ;then
15312 version_type=linux
15313 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15314 soname_spec='$libname${shared_ext}.$major'
15315 shlibpath_var=LD_LIBRARY_PATH
15316 fi
15317 ;;
15318
15319sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15320 version_type=freebsd-elf
15321 need_lib_prefix=no
15322 need_version=no
15323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15324 soname_spec='${libname}${release}${shared_ext}$major'
15325 shlibpath_var=LD_LIBRARY_PATH
15326 shlibpath_overrides_runpath=yes
15327 hardcode_into_libs=yes
15328 if test "$with_gnu_ld" = yes; then
15329 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15330 else
15331 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15332 case $host_os in
15333 sco3.2v5*)
15334 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15335 ;;
15336 esac
15337 fi
15338 sys_lib_dlsearch_path_spec='/usr/lib'
15339 ;;
15340
15341tpf*)
15342 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15343 version_type=linux
15344 need_lib_prefix=no
15345 need_version=no
15346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15347 shlibpath_var=LD_LIBRARY_PATH
15348 shlibpath_overrides_runpath=no
15349 hardcode_into_libs=yes
15350 ;;
15351
15352uts4*)
15353 version_type=linux
15354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15355 soname_spec='${libname}${release}${shared_ext}$major'
15356 shlibpath_var=LD_LIBRARY_PATH
15357 ;;
15358
15359*)
15360 dynamic_linker=no
15361 ;;
15362esac
15363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15364$as_echo "$dynamic_linker" >&6; }
15365test "$dynamic_linker" = no && can_build_shared=no
15366
15367variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15368if test "$GCC" = yes; then
15369 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15370fi
15371
15372if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15373 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15374fi
15375if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15376 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15377fi
15378
3725885a 15379
ce2cded5 15380
ce2cded5 15381
ce2cded5 15382
d7040cdb 15383
ce2cded5 15384
ce2cded5 15385
ce2cded5 15386
d7040cdb 15387
ce2cded5
L
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
ce2cded5
L
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
3cb62297
L
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15417$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15418hardcode_action_CXX=
15419if test -n "$hardcode_libdir_flag_spec_CXX" ||
15420 test -n "$runpath_var_CXX" ||
15421 test "X$hardcode_automatic_CXX" = "Xyes" ; then
ce2cded5 15422
3cb62297
L
15423 # We can hardcode non-existent directories.
15424 if test "$hardcode_direct_CXX" != no &&
15425 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15426 # have to relink, otherwise we might link with an installed library
15427 # when we should be linking with a yet-to-be-installed one
15428 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15429 test "$hardcode_minus_L_CXX" != no; then
15430 # Linking always hardcodes the temporary library directory.
15431 hardcode_action_CXX=relink
15432 else
15433 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15434 hardcode_action_CXX=immediate
15435 fi
15436else
15437 # We cannot hardcode anything, or else we can only hardcode existing
15438 # directories.
15439 hardcode_action_CXX=unsupported
15440fi
15441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15442$as_echo "$hardcode_action_CXX" >&6; }
ce2cded5 15443
3cb62297
L
15444if test "$hardcode_action_CXX" = relink ||
15445 test "$inherit_rpath_CXX" = yes; then
15446 # Fast installation is not supported
15447 enable_fast_install=no
15448elif test "$shlibpath_overrides_runpath" = yes ||
15449 test "$enable_shared" = no; then
15450 # Fast installation is not necessary
15451 enable_fast_install=needless
15452fi
ce2cded5 15453
ce2cded5 15454
ce2cded5
L
15455
15456
15457
d7040cdb 15458
3cb62297
L
15459
15460 fi # test -n "$compiler"
15461
15462 CC=$lt_save_CC
15463 LDCXX=$LD
15464 LD=$lt_save_LD
15465 GCC=$lt_save_GCC
15466 with_gnu_ld=$lt_save_with_gnu_ld
15467 lt_cv_path_LDCXX=$lt_cv_path_LD
15468 lt_cv_path_LD=$lt_save_path_LD
15469 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15470 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15471fi # test "$_lt_caught_CXX_error" != yes
15472
d7040cdb
SE
15473ac_ext=c
15474ac_cpp='$CPP $CPPFLAGS'
15475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15477ac_compiler_gnu=$ac_cv_c_compiler_gnu
15478
67310ccd
AM
15479
15480
d7040cdb
SE
15481
15482
d7040cdb 15483
d7040cdb 15484
d7040cdb 15485
ce2cded5
L
15486
15487
15488
15489
15490
81ecdfbb 15491 ac_config_commands="$ac_config_commands libtool"
ce2cded5
L
15492
15493
15494
15495
15496# Only expand once:
15497
d7040cdb
SE
15498
15499
ef3f88be 15500ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga fi id bg"
d7040cdb
SE
15501# If we haven't got the data from the intl directory,
15502# assume NLS is disabled.
15503USE_NLS=no
15504LIBINTL=
15505LIBINTL_DEP=
15506INCINTL=
15507XGETTEXT=
15508GMSGFMT=
15509POSUB=
15510
15511if test -f ../intl/config.intl; then
15512 . ../intl/config.intl
15513fi
81ecdfbb
RW
15514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15515$as_echo_n "checking whether NLS is requested... " >&6; }
d7040cdb 15516if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15518$as_echo "no" >&6; }
d7040cdb 15519else
81ecdfbb
RW
15520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15521$as_echo "yes" >&6; }
d7040cdb 15522
81ecdfbb 15523$as_echo "#define ENABLE_NLS 1" >>confdefs.h
d7040cdb
SE
15524
15525
81ecdfbb
RW
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
15527$as_echo_n "checking for catalogs to be installed... " >&6; }
d7040cdb
SE
15528 # Look for .po and .gmo files in the source directory.
15529 CATALOGS=
15530 XLINGUAS=
15531 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
15532 # If there aren't any .gmo files the shell will give us the
15533 # literal string "../path/to/srcdir/po/*.gmo" which has to be
15534 # weeded out.
15535 case "$cat" in *\**)
15536 continue;;
15537 esac
15538 # The quadruple backslash is collapsed to a double backslash
15539 # by the backticks, then collapsed again by the double quotes,
15540 # leaving us with one backslash in the sed expression (right
15541 # before the dot that mustn't act as a wildcard).
15542 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
15543 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
15544 # The user is allowed to set LINGUAS to a list of languages to
15545 # install catalogs for. If it's empty that means "all of them."
15546 if test "x$LINGUAS" = x; then
15547 CATALOGS="$CATALOGS $cat"
15548 XLINGUAS="$XLINGUAS $lang"
15549 else
15550 case "$LINGUAS" in *$lang*)
15551 CATALOGS="$CATALOGS $cat"
15552 XLINGUAS="$XLINGUAS $lang"
15553 ;;
15554 esac
15555 fi
15556 done
15557 LINGUAS="$XLINGUAS"
81ecdfbb
RW
15558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
15559$as_echo "$LINGUAS" >&6; }
d7040cdb
SE
15560
15561
15562 DATADIRNAME=share
15563
15564 INSTOBJEXT=.mo
15565
15566 GENCAT=gencat
15567
15568 CATOBJEXT=.gmo
15569
15570fi
15571
15572 MKINSTALLDIRS=
15573 if test -n "$ac_aux_dir"; then
15574 case "$ac_aux_dir" in
15575 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
15576 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
15577 esac
15578 fi
15579 if test -z "$MKINSTALLDIRS"; then
15580 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15581 fi
15582
15583
15584
81ecdfbb
RW
15585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15586$as_echo_n "checking whether NLS is requested... " >&6; }
15587 # Check whether --enable-nls was given.
15588if test "${enable_nls+set}" = set; then :
15589 enableval=$enable_nls; USE_NLS=$enableval
d7040cdb
SE
15590else
15591 USE_NLS=yes
81ecdfbb
RW
15592fi
15593
15594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15595$as_echo "$USE_NLS" >&6; }
d7040cdb
SE
15596
15597
15598
15599
15600
15601
15602# Prepare PATH_SEPARATOR.
15603# The user is always right.
15604if test "${PATH_SEPARATOR+set}" != set; then
15605 echo "#! /bin/sh" >conf$$.sh
15606 echo "exit 0" >>conf$$.sh
15607 chmod +x conf$$.sh
15608 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15609 PATH_SEPARATOR=';'
15610 else
15611 PATH_SEPARATOR=:
15612 fi
15613 rm -f conf$$.sh
15614fi
15615
15616# Find out how to test for executable files. Don't use a zero-byte file,
15617# as systems may use methods other than mode bits to determine executability.
15618cat >conf$$.file <<_ASEOF
15619#! /bin/sh
15620exit 0
15621_ASEOF
15622chmod +x conf$$.file
15623if test -x conf$$.file >/dev/null 2>&1; then
15624 ac_executable_p="test -x"
15625else
15626 ac_executable_p="test -f"
15627fi
15628rm -f conf$$.file
15629
15630# Extract the first word of "msgfmt", so it can be a program name with args.
15631set dummy msgfmt; ac_word=$2
81ecdfbb
RW
15632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15633$as_echo_n "checking for $ac_word... " >&6; }
15634if test "${ac_cv_path_MSGFMT+set}" = set; then :
15635 $as_echo_n "(cached) " >&6
d7040cdb
SE
15636else
15637 case "$MSGFMT" in
15638 [\\/]* | ?:[\\/]*)
15639 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15640 ;;
15641 *)
15642 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15643 for ac_dir in $PATH; do
15644 IFS="$ac_save_IFS"
15645 test -z "$ac_dir" && ac_dir=.
15646 for ac_exec_ext in '' $ac_executable_extensions; do
15647 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15648 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
15649 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15650 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
15651 break 2
15652 fi
15653 fi
15654 done
15655 done
15656 IFS="$ac_save_IFS"
15657 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15658 ;;
15659esac
15660fi
15661MSGFMT="$ac_cv_path_MSGFMT"
15662if test "$MSGFMT" != ":"; then
81ecdfbb
RW
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
15664$as_echo "$MSGFMT" >&6; }
d7040cdb 15665else
81ecdfbb
RW
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15667$as_echo "no" >&6; }
d7040cdb
SE
15668fi
15669
15670 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15671set dummy gmsgfmt; ac_word=$2
81ecdfbb
RW
15672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15673$as_echo_n "checking for $ac_word... " >&6; }
15674if test "${ac_cv_path_GMSGFMT+set}" = set; then :
15675 $as_echo_n "(cached) " >&6
d7040cdb
SE
15676else
15677 case $GMSGFMT in
15678 [\\/]* | ?:[\\/]*)
15679 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15680 ;;
15681 *)
15682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15683for as_dir in $PATH
15684do
15685 IFS=$as_save_IFS
15686 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
15687 for ac_exec_ext in '' $ac_executable_extensions; do
15688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 15689 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 15690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
15691 break 2
15692 fi
15693done
81ecdfbb
RW
15694 done
15695IFS=$as_save_IFS
d7040cdb
SE
15696
15697 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15698 ;;
15699esac
15700fi
15701GMSGFMT=$ac_cv_path_GMSGFMT
d7040cdb 15702if test -n "$GMSGFMT"; then
81ecdfbb
RW
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
15704$as_echo "$GMSGFMT" >&6; }
d7040cdb 15705else
81ecdfbb
RW
15706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15707$as_echo "no" >&6; }
20e95c23 15708fi
42ecbf5e 15709
20e95c23 15710
252b5132 15711
81ecdfbb 15712
d7040cdb
SE
15713# Prepare PATH_SEPARATOR.
15714# The user is always right.
15715if test "${PATH_SEPARATOR+set}" != set; then
15716 echo "#! /bin/sh" >conf$$.sh
15717 echo "exit 0" >>conf$$.sh
15718 chmod +x conf$$.sh
15719 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15720 PATH_SEPARATOR=';'
15721 else
15722 PATH_SEPARATOR=:
15723 fi
15724 rm -f conf$$.sh
20e95c23 15725fi
252b5132 15726
d7040cdb
SE
15727# Find out how to test for executable files. Don't use a zero-byte file,
15728# as systems may use methods other than mode bits to determine executability.
15729cat >conf$$.file <<_ASEOF
15730#! /bin/sh
15731exit 0
15732_ASEOF
15733chmod +x conf$$.file
15734if test -x conf$$.file >/dev/null 2>&1; then
15735 ac_executable_p="test -x"
20e95c23 15736else
d7040cdb
SE
15737 ac_executable_p="test -f"
15738fi
15739rm -f conf$$.file
20e95c23 15740
d7040cdb
SE
15741# Extract the first word of "xgettext", so it can be a program name with args.
15742set dummy xgettext; ac_word=$2
81ecdfbb
RW
15743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15744$as_echo_n "checking for $ac_word... " >&6; }
15745if test "${ac_cv_path_XGETTEXT+set}" = set; then :
15746 $as_echo_n "(cached) " >&6
252b5132 15747else
d7040cdb
SE
15748 case "$XGETTEXT" in
15749 [\\/]* | ?:[\\/]*)
15750 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15751 ;;
15752 *)
15753 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15754 for ac_dir in $PATH; do
15755 IFS="$ac_save_IFS"
15756 test -z "$ac_dir" && ac_dir=.
15757 for ac_exec_ext in '' $ac_executable_extensions; do
15758 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15759 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
15760 (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
15761 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
15762 break 2
15763 fi
15764 fi
15765 done
15766 done
15767 IFS="$ac_save_IFS"
15768 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15769 ;;
15770esac
252b5132 15771fi
d7040cdb
SE
15772XGETTEXT="$ac_cv_path_XGETTEXT"
15773if test "$XGETTEXT" != ":"; then
81ecdfbb
RW
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
15775$as_echo "$XGETTEXT" >&6; }
d5fbea21 15776else
81ecdfbb
RW
15777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15778$as_echo "no" >&6; }
d5fbea21
DJ
15779fi
15780
d7040cdb 15781 rm -f messages.po
d5fbea21 15782
20e95c23 15783
d7040cdb
SE
15784# Prepare PATH_SEPARATOR.
15785# The user is always right.
15786if test "${PATH_SEPARATOR+set}" != set; then
15787 echo "#! /bin/sh" >conf$$.sh
15788 echo "exit 0" >>conf$$.sh
15789 chmod +x conf$$.sh
15790 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15791 PATH_SEPARATOR=';'
15792 else
15793 PATH_SEPARATOR=:
15794 fi
15795 rm -f conf$$.sh
15796fi
20e95c23 15797
d7040cdb
SE
15798# Find out how to test for executable files. Don't use a zero-byte file,
15799# as systems may use methods other than mode bits to determine executability.
15800cat >conf$$.file <<_ASEOF
15801#! /bin/sh
15802exit 0
15803_ASEOF
15804chmod +x conf$$.file
15805if test -x conf$$.file >/dev/null 2>&1; then
15806 ac_executable_p="test -x"
15807else
15808 ac_executable_p="test -f"
15809fi
15810rm -f conf$$.file
20e95c23 15811
d7040cdb
SE
15812# Extract the first word of "msgmerge", so it can be a program name with args.
15813set dummy msgmerge; ac_word=$2
81ecdfbb
RW
15814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15815$as_echo_n "checking for $ac_word... " >&6; }
15816if test "${ac_cv_path_MSGMERGE+set}" = set; then :
15817 $as_echo_n "(cached) " >&6
d7040cdb
SE
15818else
15819 case "$MSGMERGE" in
15820 [\\/]* | ?:[\\/]*)
15821 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
15822 ;;
15823 *)
15824 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15825 for ac_dir in $PATH; do
15826 IFS="$ac_save_IFS"
15827 test -z "$ac_dir" && ac_dir=.
15828 for ac_exec_ext in '' $ac_executable_extensions; do
15829 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15830 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
15831 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
15832 break 2
15833 fi
15834 fi
15835 done
15836 done
15837 IFS="$ac_save_IFS"
15838 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
15839 ;;
15840esac
15841fi
15842MSGMERGE="$ac_cv_path_MSGMERGE"
15843if test "$MSGMERGE" != ":"; then
81ecdfbb
RW
15844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
15845$as_echo "$MSGMERGE" >&6; }
d7040cdb 15846else
81ecdfbb
RW
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15848$as_echo "no" >&6; }
d7040cdb 15849fi
20e95c23
DJ
15850
15851
d7040cdb
SE
15852 if test "$GMSGFMT" != ":"; then
15853 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
15854 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15855 : ;
15856 else
15857 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
81ecdfbb
RW
15858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
15859$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
d7040cdb
SE
15860 GMSGFMT=":"
15861 fi
15862 fi
20e95c23 15863
d7040cdb
SE
15864 if test "$XGETTEXT" != ":"; then
15865 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
15866 (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
15867 : ;
15868 else
81ecdfbb
RW
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
15870$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
d7040cdb
SE
15871 XGETTEXT=":"
15872 fi
15873 rm -f messages.po
20e95c23 15874 fi
42ecbf5e 15875
81ecdfbb 15876 ac_config_commands="$ac_config_commands default-1"
252b5132 15877
42ecbf5e 15878
252b5132 15879
42ecbf5e
DJ
15880
15881
d7040cdb 15882for ac_prog in 'bison -y' byacc
20e95c23 15883do
d7040cdb
SE
15884 # Extract the first word of "$ac_prog", so it can be a program name with args.
15885set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
15886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15887$as_echo_n "checking for $ac_word... " >&6; }
15888if test "${ac_cv_prog_YACC+set}" = set; then :
15889 $as_echo_n "(cached) " >&6
20e95c23 15890else
d7040cdb
SE
15891 if test -n "$YACC"; then
15892 ac_cv_prog_YACC="$YACC" # Let the user override the test.
42ecbf5e 15893else
d7040cdb
SE
15894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15895for as_dir in $PATH
15896do
15897 IFS=$as_save_IFS
15898 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
15899 for ac_exec_ext in '' $ac_executable_extensions; do
15900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 15901 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 15902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
15903 break 2
15904 fi
15905done
81ecdfbb
RW
15906 done
15907IFS=$as_save_IFS
42ecbf5e 15908
42ecbf5e 15909fi
e5a52504 15910fi
d7040cdb
SE
15911YACC=$ac_cv_prog_YACC
15912if test -n "$YACC"; then
81ecdfbb
RW
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
15914$as_echo "$YACC" >&6; }
42ecbf5e 15915else
81ecdfbb
RW
15916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15917$as_echo "no" >&6; }
42ecbf5e 15918fi
252b5132 15919
81ecdfbb 15920
d7040cdb 15921 test -n "$YACC" && break
42ecbf5e 15922done
d7040cdb 15923test -n "$YACC" || YACC="yacc"
d15b04bd 15924
d7040cdb
SE
15925for ac_prog in flex lex
15926do
15927 # Extract the first word of "$ac_prog", so it can be a program name with args.
15928set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
15929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15930$as_echo_n "checking for $ac_word... " >&6; }
15931if test "${ac_cv_prog_LEX+set}" = set; then :
15932 $as_echo_n "(cached) " >&6
d15b04bd 15933else
d7040cdb
SE
15934 if test -n "$LEX"; then
15935 ac_cv_prog_LEX="$LEX" # Let the user override the test.
15936else
15937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15938for as_dir in $PATH
15939do
15940 IFS=$as_save_IFS
15941 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
15942 for ac_exec_ext in '' $ac_executable_extensions; do
15943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 15944 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 15945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
15946 break 2
15947 fi
15948done
81ecdfbb
RW
15949 done
15950IFS=$as_save_IFS
d7040cdb
SE
15951
15952fi
15953fi
15954LEX=$ac_cv_prog_LEX
15955if test -n "$LEX"; then
81ecdfbb
RW
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
15957$as_echo "$LEX" >&6; }
d7040cdb 15958else
81ecdfbb
RW
15959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15960$as_echo "no" >&6; }
d15b04bd 15961fi
e5a52504 15962
81ecdfbb 15963
d7040cdb
SE
15964 test -n "$LEX" && break
15965done
15966test -n "$LEX" || LEX=":"
42ecbf5e 15967
81ecdfbb
RW
15968if test "x$LEX" != "x:"; then
15969 cat >conftest.l <<_ACEOF
15970%%
15971a { ECHO; }
15972b { REJECT; }
15973c { yymore (); }
15974d { yyless (1); }
15975e { yyless (input () != 0); }
15976f { unput (yytext[0]); }
15977. { BEGIN INITIAL; }
15978%%
15979#ifdef YYTEXT_POINTER
15980extern char *yytext;
d7040cdb 15981#endif
42ecbf5e 15982int
81ecdfbb 15983main (void)
42ecbf5e 15984{
81ecdfbb 15985 return ! yylex () + ! yywrap ();
42ecbf5e
DJ
15986}
15987_ACEOF
81ecdfbb
RW
15988{ { ac_try="$LEX conftest.l"
15989case "(($ac_try" in
15990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15991 *) ac_try_echo=$ac_try;;
15992esac
15993eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15994$as_echo "$ac_try_echo"; } >&5
15995 (eval "$LEX conftest.l") 2>&5
42ecbf5e 15996 ac_status=$?
81ecdfbb
RW
15997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15998 test $ac_status = 0; }
15999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
16000$as_echo_n "checking lex output file root... " >&6; }
16001if test "${ac_cv_prog_lex_root+set}" = set; then :
16002 $as_echo_n "(cached) " >&6
42ecbf5e 16003else
42ecbf5e 16004
81ecdfbb
RW
16005if test -f lex.yy.c; then
16006 ac_cv_prog_lex_root=lex.yy
16007elif test -f lexyy.c; then
16008 ac_cv_prog_lex_root=lexyy
16009else
16010 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
42ecbf5e 16011fi
42ecbf5e 16012fi
81ecdfbb
RW
16013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
16014$as_echo "$ac_cv_prog_lex_root" >&6; }
16015LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
20e95c23 16016
81ecdfbb
RW
16017if test -z "${LEXLIB+set}"; then
16018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
16019$as_echo_n "checking lex library... " >&6; }
16020if test "${ac_cv_lib_lex+set}" = set; then :
16021 $as_echo_n "(cached) " >&6
252b5132 16022else
20e95c23 16023
81ecdfbb
RW
16024 ac_save_LIBS=$LIBS
16025 ac_cv_lib_lex='none needed'
16026 for ac_lib in '' -lfl -ll; do
16027 LIBS="$ac_lib $ac_save_LIBS"
16028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16029/* end confdefs.h. */
16030`cat $LEX_OUTPUT_ROOT.c`
16031_ACEOF
16032if ac_fn_c_try_link "$LINENO"; then :
16033 ac_cv_lib_lex=$ac_lib
20e95c23 16034fi
81ecdfbb
RW
16035rm -f core conftest.err conftest.$ac_objext \
16036 conftest$ac_exeext conftest.$ac_ext
16037 test "$ac_cv_lib_lex" != 'none needed' && break
16038 done
16039 LIBS=$ac_save_LIBS
20e95c23
DJ
16040
16041fi
81ecdfbb
RW
16042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
16043$as_echo "$ac_cv_lib_lex" >&6; }
16044 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
d7040cdb 16045fi
20e95c23 16046
20e95c23 16047
81ecdfbb
RW
16048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
16049$as_echo_n "checking whether yytext is a pointer... " >&6; }
16050if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
16051 $as_echo_n "(cached) " >&6
d7040cdb
SE
16052else
16053 # POSIX says lex can declare yytext either as a pointer or an array; the
81ecdfbb 16054# default is implementation-dependent. Figure out which it is, since
d7040cdb
SE
16055# not all implementations provide the %pointer and %array declarations.
16056ac_cv_prog_lex_yytext_pointer=no
d7040cdb 16057ac_save_LIBS=$LIBS
81ecdfbb
RW
16058LIBS="$LEXLIB $ac_save_LIBS"
16059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16060/* end confdefs.h. */
16061#define YYTEXT_POINTER 1
d7040cdb 16062`cat $LEX_OUTPUT_ROOT.c`
20e95c23 16063_ACEOF
81ecdfbb 16064if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 16065 ac_cv_prog_lex_yytext_pointer=yes
d7040cdb 16066fi
81ecdfbb
RW
16067rm -f core conftest.err conftest.$ac_objext \
16068 conftest$ac_exeext conftest.$ac_ext
d7040cdb 16069LIBS=$ac_save_LIBS
d7040cdb
SE
16070
16071fi
81ecdfbb
RW
16072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
16073$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
d7040cdb
SE
16074if test $ac_cv_prog_lex_yytext_pointer = yes; then
16075
81ecdfbb 16076$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
d7040cdb
SE
16077
16078fi
81ecdfbb 16079rm -f conftest.l $LEX_OUTPUT_ROOT.c
d7040cdb
SE
16080
16081fi
16082if test "$LEX" = :; then
16083 LEX=${am_missing_run}flex
16084fi
16085
81ecdfbb
RW
16086
16087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
16088$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
16089 # Check whether --enable-maintainer-mode was given.
16090if test "${enable_maintainer_mode+set}" = set; then :
16091 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
252b5132 16092else
d7040cdb 16093 USE_MAINTAINER_MODE=no
81ecdfbb 16094fi
d7040cdb 16095
81ecdfbb
RW
16096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
16097$as_echo "$USE_MAINTAINER_MODE" >&6; }
16098 if test $USE_MAINTAINER_MODE = yes; then
d7040cdb
SE
16099 MAINTAINER_MODE_TRUE=
16100 MAINTAINER_MODE_FALSE='#'
16101else
16102 MAINTAINER_MODE_TRUE='#'
16103 MAINTAINER_MODE_FALSE=
252b5132 16104fi
252b5132 16105
d7040cdb
SE
16106 MAINT=$MAINTAINER_MODE_TRUE
16107
16108
81ecdfbb 16109 if false; then
d7040cdb
SE
16110 GENINSRC_NEVER_TRUE=
16111 GENINSRC_NEVER_FALSE='#'
16112else
16113 GENINSRC_NEVER_TRUE='#'
16114 GENINSRC_NEVER_FALSE=
252b5132
RH
16115fi
16116
81ecdfbb
RW
16117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
16118$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
16119if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
16120 $as_echo_n "(cached) " >&6
eccbf555
AM
16121else
16122 echo abfoo >t1
16123 echo cdfoo >t2
16124 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
16125 if cmp t1 t2 2 2 > /dev/null 2>&1; then
16126 if cmp t1 t2 1 1 > /dev/null 2>&1; then
16127 :
16128 else
16129 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
16130 fi
16131 fi
16132 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
16133 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
16134 :
16135 else
16136 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
16137 fi
16138 fi
16139 rm t1 t2
16140
16141fi
81ecdfbb
RW
16142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
16143$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
eccbf555
AM
16144do_compare="$gcc_cv_prog_cmp_skip"
16145
16146
d7040cdb
SE
16147
16148. ${srcdir}/configure.host
16149
16150
16151
16152
252b5132
RH
16153
16154
a3ffa599 16155for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h sys/param.h
81ecdfbb
RW
16156do :
16157 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16158ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16159eval as_val=\$$as_ac_Header
16160 if test "x$as_val" = x""yes; then :
42ecbf5e 16161 cat >>confdefs.h <<_ACEOF
81ecdfbb 16162#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
42ecbf5e
DJ
16163_ACEOF
16164
16165fi
16166
252b5132
RH
16167done
16168
5d3236ee
DK
16169for ac_header in fcntl.h sys/file.h sys/time.h sys/stat.h
16170do :
16171 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16172ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16173eval as_val=\$$as_ac_Header
16174 if test "x$as_val" = x""yes; then :
16175 cat >>confdefs.h <<_ACEOF
16176#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16177_ACEOF
16178
16179fi
16180
16181done
16182
dc27aea4 16183for ac_func in glob mkstemp realpath sbrk waitpid
81ecdfbb
RW
16184do :
16185 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16186ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16187eval as_val=\$$as_ac_var
16188 if test "x$as_val" = x""yes; then :
42ecbf5e 16189 cat >>confdefs.h <<_ACEOF
81ecdfbb 16190#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42ecbf5e 16191_ACEOF
252b5132 16192
252b5132
RH
16193fi
16194done
16195
5d3236ee
DK
16196for ac_func in open lseek close
16197do :
16198 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16199ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16200eval as_val=\$$as_ac_var
16201 if test "x$as_val" = x""yes; then :
16202 cat >>confdefs.h <<_ACEOF
16203#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16204_ACEOF
16205
16206fi
16207done
16208
252b5132 16209ac_header_dirent=no
42ecbf5e 16210for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
81ecdfbb
RW
16211 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
16213$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
16214if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
16215 $as_echo_n "(cached) " >&6
16216else
16217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 16218/* end confdefs.h. */
252b5132
RH
16219#include <sys/types.h>
16220#include <$ac_hdr>
42ecbf5e
DJ
16221
16222int
16223main ()
16224{
16225if ((DIR *) 0)
16226return 0;
16227 ;
16228 return 0;
16229}
16230_ACEOF
81ecdfbb 16231if ac_fn_c_try_compile "$LINENO"; then :
42ecbf5e
DJ
16232 eval "$as_ac_Header=yes"
16233else
81ecdfbb 16234 eval "$as_ac_Header=no"
42ecbf5e 16235fi
81ecdfbb 16236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e 16237fi
81ecdfbb
RW
16238eval ac_res=\$$as_ac_Header
16239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16240$as_echo "$ac_res" >&6; }
16241eval as_val=\$$as_ac_Header
16242 if test "x$as_val" = x""yes; then :
42ecbf5e 16243 cat >>confdefs.h <<_ACEOF
81ecdfbb 16244#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
42ecbf5e
DJ
16245_ACEOF
16246
16247ac_header_dirent=$ac_hdr; break
d15b04bd 16248fi
42ecbf5e 16249
d15b04bd
L
16250done
16251# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16252if test $ac_header_dirent = dirent.h; then
81ecdfbb
RW
16253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16254$as_echo_n "checking for library containing opendir... " >&6; }
16255if test "${ac_cv_search_opendir+set}" = set; then :
16256 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
16257else
16258 ac_func_search_save_LIBS=$LIBS
81ecdfbb 16259cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
16260/* end confdefs.h. */
16261
81ecdfbb
RW
16262/* Override any GCC internal prototype to avoid an error.
16263 Use char because int might match the return type of a GCC
16264 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
16265#ifdef __cplusplus
16266extern "C"
16267#endif
42ecbf5e
DJ
16268char opendir ();
16269int
16270main ()
16271{
81ecdfbb 16272return opendir ();
42ecbf5e
DJ
16273 ;
16274 return 0;
16275}
16276_ACEOF
81ecdfbb
RW
16277for ac_lib in '' dir; do
16278 if test -z "$ac_lib"; then
16279 ac_res="none required"
16280 else
16281 ac_res=-l$ac_lib
42ecbf5e 16282 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
16283 fi
16284 if ac_fn_c_try_link "$LINENO"; then :
16285 ac_cv_search_opendir=$ac_res
16286fi
16287rm -f core conftest.err conftest.$ac_objext \
16288 conftest$ac_exeext
16289 if test "${ac_cv_search_opendir+set}" = set; then :
16290 break
16291fi
16292done
16293if test "${ac_cv_search_opendir+set}" = set; then :
e5a52504 16294
42ecbf5e 16295else
81ecdfbb 16296 ac_cv_search_opendir=no
252b5132 16297fi
81ecdfbb 16298rm conftest.$ac_ext
42ecbf5e
DJ
16299LIBS=$ac_func_search_save_LIBS
16300fi
81ecdfbb
RW
16301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16302$as_echo "$ac_cv_search_opendir" >&6; }
16303ac_res=$ac_cv_search_opendir
16304if test "$ac_res" != no; then :
16305 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e 16306
d15b04bd 16307fi
252b5132
RH
16308
16309else
81ecdfbb
RW
16310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16311$as_echo_n "checking for library containing opendir... " >&6; }
16312if test "${ac_cv_search_opendir+set}" = set; then :
16313 $as_echo_n "(cached) " >&6
252b5132 16314else
42ecbf5e 16315 ac_func_search_save_LIBS=$LIBS
81ecdfbb 16316cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
16317/* end confdefs.h. */
16318
81ecdfbb
RW
16319/* Override any GCC internal prototype to avoid an error.
16320 Use char because int might match the return type of a GCC
16321 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
16322#ifdef __cplusplus
16323extern "C"
16324#endif
42ecbf5e
DJ
16325char opendir ();
16326int
16327main ()
16328{
81ecdfbb 16329return opendir ();
42ecbf5e
DJ
16330 ;
16331 return 0;
16332}
16333_ACEOF
81ecdfbb
RW
16334for ac_lib in '' x; do
16335 if test -z "$ac_lib"; then
16336 ac_res="none required"
16337 else
16338 ac_res=-l$ac_lib
42ecbf5e 16339 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
16340 fi
16341 if ac_fn_c_try_link "$LINENO"; then :
16342 ac_cv_search_opendir=$ac_res
16343fi
16344rm -f core conftest.err conftest.$ac_objext \
16345 conftest$ac_exeext
16346 if test "${ac_cv_search_opendir+set}" = set; then :
16347 break
16348fi
16349done
16350if test "${ac_cv_search_opendir+set}" = set; then :
252b5132 16351
42ecbf5e 16352else
81ecdfbb 16353 ac_cv_search_opendir=no
252b5132 16354fi
81ecdfbb 16355rm conftest.$ac_ext
42ecbf5e 16356LIBS=$ac_func_search_save_LIBS
252b5132 16357fi
81ecdfbb
RW
16358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16359$as_echo "$ac_cv_search_opendir" >&6; }
16360ac_res=$ac_cv_search_opendir
16361if test "$ac_res" != no; then :
16362 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e 16363
d15b04bd 16364fi
252b5132
RH
16365
16366fi
16367
16368
5d3236ee
DK
16369# Check for dlopen support and enable plugins if possible.
16370enable_plugins=yes
16371ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
16372"
16373if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
16374
16375else
16376 enable_plugins=no
16377fi
16378
16379
16380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16381$as_echo_n "checking for library containing dlopen... " >&6; }
16382if test "${ac_cv_search_dlopen+set}" = set; then :
16383 $as_echo_n "(cached) " >&6
16384else
16385 ac_func_search_save_LIBS=$LIBS
16386cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16387/* end confdefs.h. */
16388
16389/* Override any GCC internal prototype to avoid an error.
16390 Use char because int might match the return type of a GCC
16391 builtin and then its argument prototype would still apply. */
16392#ifdef __cplusplus
16393extern "C"
16394#endif
16395char dlopen ();
16396int
16397main ()
16398{
16399return dlopen ();
16400 ;
16401 return 0;
16402}
16403_ACEOF
16404for ac_lib in '' dl; do
16405 if test -z "$ac_lib"; then
16406 ac_res="none required"
16407 else
16408 ac_res=-l$ac_lib
16409 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16410 fi
16411 if ac_fn_c_try_link "$LINENO"; then :
16412 ac_cv_search_dlopen=$ac_res
16413fi
16414rm -f core conftest.err conftest.$ac_objext \
16415 conftest$ac_exeext
16416 if test "${ac_cv_search_dlopen+set}" = set; then :
16417 break
16418fi
16419done
16420if test "${ac_cv_search_dlopen+set}" = set; then :
16421
16422else
16423 ac_cv_search_dlopen=no
16424fi
16425rm conftest.$ac_ext
16426LIBS=$ac_func_search_save_LIBS
16427fi
16428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16429$as_echo "$ac_cv_search_dlopen" >&6; }
16430ac_res=$ac_cv_search_dlopen
16431if test "$ac_res" != no; then :
16432 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16433
16434else
16435 enable_plugins=no
16436fi
16437
16438for ac_func in dlopen dlsym dlclose
16439do :
16440 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16441ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16442eval as_val=\$$as_ac_var
16443 if test "x$as_val" = x""yes; then :
16444 cat >>confdefs.h <<_ACEOF
16445#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16446_ACEOF
16447
16448else
16449 enable_plugins=no
16450fi
16451done
16452
3917d5d5
DK
16453# We also support plugins on Windows (MinGW).
16454if test x$enable_plugins = xno ; then
f31d24a0 16455 for ac_header in windows.h
3917d5d5 16456do :
f31d24a0 16457 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
3917d5d5 16458"
f31d24a0 16459if test "x$ac_cv_header_windows_h" = x""yes; then :
3917d5d5
DK
16460 cat >>confdefs.h <<_ACEOF
16461#define HAVE_WINDOWS_H 1
16462_ACEOF
16463 enable_plugins=yes
16464fi
16465
16466done
16467
16468fi
5d3236ee
DK
16469 if test x$enable_plugins = xyes; then
16470 ENABLE_PLUGINS_TRUE=
16471 ENABLE_PLUGINS_FALSE='#'
16472else
16473 ENABLE_PLUGINS_TRUE='#'
16474 ENABLE_PLUGINS_FALSE=
16475fi
16476
16477
02ecc8e9
L
16478# Check whether --enable-initfini-array was given.
16479if test "${enable_initfini_array+set}" = set; then :
16480 enableval=$enable_initfini_array;
16481else
16482
16483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
16484$as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
16485if test "${gcc_cv_initfini_array+set}" = set; then :
16486 $as_echo_n "(cached) " >&6
16487else
16488 if test "x${build}" = "x${target}" ; then
16489 if test "$cross_compiling" = yes; then :
16490 gcc_cv_initfini_array=no
16491else
16492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16493/* end confdefs.h. */
16494
16495static int x = -1;
16496int main (void) { return x; }
16497int foo (void) { x = 0; }
16498int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
16499_ACEOF
16500if ac_fn_c_try_run "$LINENO"; then :
16501 gcc_cv_initfini_array=yes
16502else
16503 gcc_cv_initfini_array=no
16504fi
16505rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16506 conftest.$ac_objext conftest.beam conftest.$ac_ext
16507fi
16508
16509 else
16510 gcc_cv_initfini_array=no
16511 fi
16512fi
16513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
16514$as_echo "$gcc_cv_initfini_array" >&6; }
16515 enable_initfini_array=$gcc_cv_initfini_array
16516
16517fi
16518
16519
16520if test $enable_initfini_array = yes; then
16521
16522$as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
16523
16524fi
16525
81ecdfbb
RW
16526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
16527$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
16528if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then :
16529 $as_echo_n "(cached) " >&6
34875e64 16530else
81ecdfbb 16531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 16532/* end confdefs.h. */
34875e64 16533#include <unistd.h>
42ecbf5e
DJ
16534int
16535main ()
16536{
34875e64 16537extern int getopt (int, char *const*, const char *);
42ecbf5e
DJ
16538 ;
16539 return 0;
16540}
16541_ACEOF
81ecdfbb 16542if ac_fn_c_try_compile "$LINENO"; then :
34875e64
NC
16543 ld_cv_decl_getopt_unistd_h=yes
16544else
81ecdfbb 16545 ld_cv_decl_getopt_unistd_h=no
34875e64 16546fi
81ecdfbb 16547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34875e64
NC
16548fi
16549
81ecdfbb
RW
16550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5
16551$as_echo "$ld_cv_decl_getopt_unistd_h" >&6; }
34875e64 16552if test $ld_cv_decl_getopt_unistd_h = yes; then
42ecbf5e 16553
81ecdfbb 16554$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
34875e64
NC
16555
16556fi
42ecbf5e 16557
252b5132
RH
16558
16559case "${host}" in
a8100d5b 16560*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
42ecbf5e 16561
81ecdfbb 16562$as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
252b5132
RH
16563 ;;
16564esac
16565
81ecdfbb
RW
16566ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
16567if test "x$ac_cv_have_decl_strstr" = x""yes; then :
16568 ac_have_decl=1
252b5132 16569else
81ecdfbb
RW
16570 ac_have_decl=0
16571fi
502bdb00 16572
81ecdfbb
RW
16573cat >>confdefs.h <<_ACEOF
16574#define HAVE_DECL_STRSTR $ac_have_decl
42ecbf5e 16575_ACEOF
81ecdfbb
RW
16576ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
16577if test "x$ac_cv_have_decl_free" = x""yes; then :
16578 ac_have_decl=1
252b5132 16579else
81ecdfbb 16580 ac_have_decl=0
252b5132
RH
16581fi
16582
502bdb00 16583cat >>confdefs.h <<_ACEOF
81ecdfbb 16584#define HAVE_DECL_FREE $ac_have_decl
502bdb00 16585_ACEOF
81ecdfbb
RW
16586ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
16587if test "x$ac_cv_have_decl_sbrk" = x""yes; then :
16588 ac_have_decl=1
16589else
16590 ac_have_decl=0
16591fi
42ecbf5e 16592
81ecdfbb
RW
16593cat >>confdefs.h <<_ACEOF
16594#define HAVE_DECL_SBRK $ac_have_decl
16595_ACEOF
16596ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
16597if test "x$ac_cv_have_decl_getenv" = x""yes; then :
16598 ac_have_decl=1
16599else
16600 ac_have_decl=0
16601fi
502bdb00 16602
81ecdfbb
RW
16603cat >>confdefs.h <<_ACEOF
16604#define HAVE_DECL_GETENV $ac_have_decl
16605_ACEOF
16606ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
16607if test "x$ac_cv_have_decl_environ" = x""yes; then :
16608 ac_have_decl=1
502bdb00 16609else
81ecdfbb
RW
16610 ac_have_decl=0
16611fi
16612
16613cat >>confdefs.h <<_ACEOF
16614#define HAVE_DECL_ENVIRON $ac_have_decl
42ecbf5e 16615_ACEOF
252b5132 16616
252b5132 16617
81ecdfbb
RW
16618# Link in zlib if we can. This is needed only for the bootstrap tests
16619# right now, since those tests use libbfd, which depends on zlib.
16620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
16621$as_echo_n "checking for library containing zlibVersion... " >&6; }
16622if test "${ac_cv_search_zlibVersion+set}" = set; then :
16623 $as_echo_n "(cached) " >&6
252b5132 16624else
81ecdfbb
RW
16625 ac_func_search_save_LIBS=$LIBS
16626cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 16627/* end confdefs.h. */
502bdb00 16628
81ecdfbb
RW
16629/* Override any GCC internal prototype to avoid an error.
16630 Use char because int might match the return type of a GCC
4474d12b 16631 builtin and then its argument prototype would still apply. */
4474d12b
CS
16632#ifdef __cplusplus
16633extern "C"
16634#endif
4474d12b
CS
16635char zlibVersion ();
16636int
16637main ()
16638{
81ecdfbb 16639return zlibVersion ();
4474d12b
CS
16640 ;
16641 return 0;
16642}
16643_ACEOF
81ecdfbb
RW
16644for ac_lib in '' z; do
16645 if test -z "$ac_lib"; then
16646 ac_res="none required"
4474d12b 16647 else
81ecdfbb
RW
16648 ac_res=-l$ac_lib
16649 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4474d12b 16650 fi
81ecdfbb
RW
16651 if ac_fn_c_try_link "$LINENO"; then :
16652 ac_cv_search_zlibVersion=$ac_res
4474d12b 16653fi
81ecdfbb
RW
16654rm -f core conftest.err conftest.$ac_objext \
16655 conftest$ac_exeext
16656 if test "${ac_cv_search_zlibVersion+set}" = set; then :
16657 break
4474d12b 16658fi
81ecdfbb
RW
16659done
16660if test "${ac_cv_search_zlibVersion+set}" = set; then :
4474d12b 16661
4474d12b 16662else
81ecdfbb 16663 ac_cv_search_zlibVersion=no
4474d12b 16664fi
81ecdfbb
RW
16665rm conftest.$ac_ext
16666LIBS=$ac_func_search_save_LIBS
4474d12b 16667fi
81ecdfbb
RW
16668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
16669$as_echo "$ac_cv_search_zlibVersion" >&6; }
16670ac_res=$ac_cv_search_zlibVersion
16671if test "$ac_res" != no; then :
16672 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16673 for ac_header in zlib.h
16674do :
16675 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
16676if test "x$ac_cv_header_zlib_h" = x""yes; then :
4474d12b 16677 cat >>confdefs.h <<_ACEOF
81ecdfbb 16678#define HAVE_ZLIB_H 1
4474d12b
CS
16679_ACEOF
16680
16681fi
16682
16683done
16684
16685fi
16686
16687
597e2591
ILT
16688# When converting linker scripts into strings for use in emulation
16689# files, use astring.sed if the compiler supports ANSI string
16690# concatenation, or ostring.sed otherwise. This is to support the
16691# broken Microsoft MSVC compiler, which limits the length of string
16692# constants, while still supporting pre-ANSI compilers which do not
16693# support string concatenation.
81ecdfbb
RW
16694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ANSI C string concatenation works" >&5
16695$as_echo_n "checking whether ANSI C string concatenation works... " >&6; }
16696if test "${ld_cv_string_concatenation+set}" = set; then :
16697 $as_echo_n "(cached) " >&6
42ecbf5e 16698else
81ecdfbb 16699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 16700/* end confdefs.h. */
81ecdfbb 16701
314e9a4e
L
16702int
16703main ()
16704{
81ecdfbb 16705char *a = "a" "a";
314e9a4e
L
16706 ;
16707 return 0;
16708}
16709_ACEOF
81ecdfbb
RW
16710if ac_fn_c_try_compile "$LINENO"; then :
16711 ld_cv_string_concatenation=yes
314e9a4e 16712else
81ecdfbb 16713 ld_cv_string_concatenation=no
314e9a4e 16714fi
81ecdfbb 16715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
314e9a4e 16716fi
81ecdfbb
RW
16717
16718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_string_concatenation" >&5
16719$as_echo "$ld_cv_string_concatenation" >&6; }
16720if test "$ld_cv_string_concatenation" = "yes"; then
16721 STRINGIFY=astring.sed
16722else
16723 STRINGIFY=ostring.sed
314e9a4e 16724fi
81ecdfbb
RW
16725
16726
16727# target-specific stuff:
16728
16729all_targets=
16730EMUL=
16731all_emuls=
16732all_emul_extras=
16733all_libpath=
16734
16735rm -f tdirs
16736
16737for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
16738do
16739 if test "$targ_alias" = "all"; then
16740 all_targets=true
16741 else
16742 # Canonicalize the secondary target names.
16743 result=`$ac_config_sub $targ_alias 2>/dev/null`
16744 if test -n "$result"; then
16745 targ=$result
16746 else
16747 targ=$targ_alias
16748 fi
16749
16750 . ${srcdir}/configure.tgt
16751
16752 if test "$targ" = "$target"; then
16753 EMUL=$targ_emul
16754 fi
16755
16756 if test x${want64} = xfalse; then
16757 . ${srcdir}/../bfd/config.bfd
16758 fi
16759
16760 if test x${want64} = xtrue; then
16761 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
16762 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
16763 fi
16764
16765 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
16766 case " $all_emuls " in
16767 *" e${i}.o "*) ;;
16768 *)
16769 all_emuls="$all_emuls e${i}.o"
16770 eval result=\$tdir_$i
16771 test -z "$result" && result=$targ_alias
16772 echo tdir_$i=$result >> tdirs
16773 ;;
16774 esac
16775 done
16776
16777 for i in $targ_emul $targ_extra_libpath; do
16778 case " $all_libpath " in
16779 *" ${i} "*) ;;
16780 *)
16781 if test -z "$all_libpath"; then
16782 all_libpath=${i}
16783 else
16784 all_libpath="$all_libpath ${i}"
16785 fi
16786 ;;
16787 esac
16788 done
16789
16790 for i in $targ_extra_ofiles; do
16791 case " $all_emul_extras " in
16792 *" ${i} "*) ;;
16793 *)
16794 all_emul_extras="$all_emul_extras ${i}"
16795 ;;
16796 esac
16797 done
16798 fi
16799done
16800
16801
16802
16803TDIRS=tdirs
16804
16805
16806if test x${all_targets} = xtrue; then
16807 if test x${want64} = xfalse; then
16808 # The cast to long int works around a bug in the HP C Compiler
16809# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16810# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16811# This bug is HP SR number 8606223364.
16812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16813$as_echo_n "checking size of long... " >&6; }
16814if test "${ac_cv_sizeof_long+set}" = set; then :
16815 $as_echo_n "(cached) " >&6
16816else
16817 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16818
314e9a4e 16819else
81ecdfbb
RW
16820 if test "$ac_cv_type_long" = yes; then
16821 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16822$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16823{ as_fn_set_status 77
16824as_fn_error "cannot compute sizeof (long)
16825See \`config.log' for more details." "$LINENO" 5; }; }
16826 else
16827 ac_cv_sizeof_long=0
16828 fi
314e9a4e 16829fi
81ecdfbb 16830
314e9a4e 16831fi
81ecdfbb
RW
16832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16833$as_echo "$ac_cv_sizeof_long" >&6; }
16834
16835
16836
314e9a4e
L
16837cat >>confdefs.h <<_ACEOF
16838#define SIZEOF_LONG $ac_cv_sizeof_long
16839_ACEOF
16840
16841
16842 if test "x${ac_cv_sizeof_long}" = "x8"; then
16843 want64=true
16844 fi
16845 fi
42ecbf5e
DJ
16846 if test x${want64} = xtrue; then
16847 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
16848 else
16849 EMULATION_OFILES='$(ALL_EMULATIONS)'
16850 fi
16851 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
16852else
16853 EMULATION_OFILES=$all_emuls
16854 EMUL_EXTRA_OFILES=$all_emul_extras
16855fi
16856
16857
16858
16859
16860EMULATION_LIBPATH=$all_libpath
16861
16862
16863if test x${enable_static} = xno; then
16864 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
16865else
16866 TESTBFDLIB="../bfd/.libs/libbfd.a"
16867fi
16868
16869
16870target_vendor=${target_vendor=$host_vendor}
16871case "$target_vendor" in
16872 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
16873 *) EXTRA_SHLIB_EXTENSION= ;;
16874esac
16875
16876case "$target_os" in
16877 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
16878esac
16879
16880if test x${EXTRA_SHLIB_EXTENSION} != x ; then
16881
16882cat >>confdefs.h <<_ACEOF
16883#define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
16884_ACEOF
16885
16886fi
16887
108a6f8e
CD
16888
16889
16890
16891
31dd3154 16892
81ecdfbb 16893ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
da594c4a 16894
42ecbf5e
DJ
16895cat >confcache <<\_ACEOF
16896# This file is a shell script that caches the results of configure
16897# tests run on this system so they can be shared between configure
16898# scripts and configure runs, see configure's option --config-cache.
16899# It is not useful on other systems. If it contains results you don't
16900# want to keep, you may remove or edit it.
16901#
16902# config.status only pays attention to the cache file if you give it
16903# the --recheck option to rerun configure.
16904#
16905# `ac_cv_env_foo' variables (set or unset) will be overridden when
16906# loading this file, other *unset* `ac_cv_foo' will be assigned the
16907# following values.
16908
16909_ACEOF
16910
16911# The following way of writing the cache mishandles newlines in values,
16912# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 16913# So, we kill variables containing newlines.
42ecbf5e
DJ
16914# Ultrix sh set writes to stderr and can't be redirected directly,
16915# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
16916(
16917 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16918 eval ac_val=\$$ac_var
16919 case $ac_val in #(
16920 *${as_nl}*)
16921 case $ac_var in #(
16922 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16923$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16924 esac
16925 case $ac_var in #(
16926 _ | IFS | as_nl) ;; #(
16927 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16928 *) { eval $ac_var=; unset $ac_var;} ;;
16929 esac ;;
16930 esac
16931 done
16932
42ecbf5e 16933 (set) 2>&1 |
81ecdfbb
RW
16934 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16935 *${as_nl}ac_space=\ *)
16936 # `set' does not quote correctly, so add quotes: double-quote
16937 # substitution turns \\\\ into \\, and sed turns \\ into \.
42ecbf5e
DJ
16938 sed -n \
16939 "s/'/'\\\\''/g;
16940 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 16941 ;; #(
42ecbf5e
DJ
16942 *)
16943 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 16944 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42ecbf5e 16945 ;;
81ecdfbb
RW
16946 esac |
16947 sort
16948) |
42ecbf5e 16949 sed '
81ecdfbb 16950 /^ac_cv_env_/b end
42ecbf5e 16951 t clear
81ecdfbb 16952 :clear
42ecbf5e
DJ
16953 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16954 t end
81ecdfbb
RW
16955 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16956 :end' >>confcache
16957if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16958 if test -w "$cache_file"; then
16959 test "x$cache_file" != "x/dev/null" &&
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16961$as_echo "$as_me: updating cache $cache_file" >&6;}
42ecbf5e
DJ
16962 cat confcache >$cache_file
16963 else
81ecdfbb
RW
16964 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16965$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
42ecbf5e
DJ
16966 fi
16967fi
16968rm -f confcache
16969
16970test "x$prefix" = xNONE && prefix=$ac_default_prefix
16971# Let make expand exec_prefix.
16972test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16973
42ecbf5e
DJ
16974DEFS=-DHAVE_CONFIG_H
16975
16976ac_libobjs=
16977ac_ltlibobjs=
16978for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16979 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
16980 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16981 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16982 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16983 # will be set to the directory where LIBOBJS objects are built.
16984 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16985 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
42ecbf5e
DJ
16986done
16987LIBOBJS=$ac_libobjs
16988
16989LTLIBOBJS=$ac_ltlibobjs
16990
16991
16992if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
81ecdfbb
RW
16993 as_fn_error "conditional \"AMDEP\" was never defined.
16994Usually this means the macro was only invoked conditionally." "$LINENO" 5
42ecbf5e
DJ
16995fi
16996if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
81ecdfbb
RW
16997 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16998Usually this means the macro was only invoked conditionally." "$LINENO" 5
16999fi
17000 if test -n "$EXEEXT"; then
17001 am__EXEEXT_TRUE=
17002 am__EXEEXT_FALSE='#'
17003else
17004 am__EXEEXT_TRUE='#'
17005 am__EXEEXT_FALSE=
42ecbf5e 17006fi
81ecdfbb 17007
64ac50ac
RW
17008if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17009 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17010Usually this means the macro was only invoked conditionally." "$LINENO" 5
17011fi
3cb62297
L
17012if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17013 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
17014Usually this means the macro was only invoked conditionally." "$LINENO" 5
17015fi
42ecbf5e 17016if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
81ecdfbb
RW
17017 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17018Usually this means the macro was only invoked conditionally." "$LINENO" 5
42ecbf5e 17019fi
d5fbea21 17020if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
81ecdfbb
RW
17021 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
17022Usually this means the macro was only invoked conditionally." "$LINENO" 5
d5fbea21 17023fi
5d3236ee
DK
17024if test -z "${ENABLE_PLUGINS_TRUE}" && test -z "${ENABLE_PLUGINS_FALSE}"; then
17025 as_fn_error "conditional \"ENABLE_PLUGINS\" was never defined.
17026Usually this means the macro was only invoked conditionally." "$LINENO" 5
17027fi
42ecbf5e
DJ
17028
17029: ${CONFIG_STATUS=./config.status}
81ecdfbb 17030ac_write_fail=0
42ecbf5e
DJ
17031ac_clean_files_save=$ac_clean_files
17032ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
17033{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17034$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17035as_write_fail=0
17036cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
42ecbf5e
DJ
17037#! $SHELL
17038# Generated by $as_me.
17039# Run this file to recreate the current configuration.
17040# Compiler output produced by configure, useful for debugging
17041# configure, is in config.log if it exists.
17042
17043debug=false
17044ac_cs_recheck=false
17045ac_cs_silent=false
42ecbf5e 17046
81ecdfbb
RW
17047SHELL=\${CONFIG_SHELL-$SHELL}
17048export SHELL
17049_ASEOF
17050cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17051## -------------------- ##
17052## M4sh Initialization. ##
17053## -------------------- ##
42ecbf5e 17054
81ecdfbb
RW
17055# Be more Bourne compatible
17056DUALCASE=1; export DUALCASE # for MKS sh
17057if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
42ecbf5e
DJ
17058 emulate sh
17059 NULLCMD=:
81ecdfbb 17060 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
42ecbf5e
DJ
17061 # is contrary to our usage. Disable this feature.
17062 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
17063 setopt NO_GLOB_SUBST
17064else
17065 case `(set -o) 2>/dev/null` in #(
17066 *posix*) :
17067 set -o posix ;; #(
17068 *) :
17069 ;;
17070esac
42ecbf5e 17071fi
42ecbf5e 17072
81ecdfbb
RW
17073
17074as_nl='
17075'
17076export as_nl
17077# Printing a long string crashes Solaris 7 /usr/bin/printf.
17078as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17079as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17080as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17081# Prefer a ksh shell builtin over an external printf program on Solaris,
17082# but without wasting forks for bash or zsh.
17083if test -z "$BASH_VERSION$ZSH_VERSION" \
17084 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17085 as_echo='print -r --'
17086 as_echo_n='print -rn --'
17087elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17088 as_echo='printf %s\n'
17089 as_echo_n='printf %s'
17090else
17091 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17092 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17093 as_echo_n='/usr/ucb/echo -n'
17094 else
17095 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17096 as_echo_n_body='eval
17097 arg=$1;
17098 case $arg in #(
17099 *"$as_nl"*)
17100 expr "X$arg" : "X\\(.*\\)$as_nl";
17101 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17102 esac;
17103 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17104 '
17105 export as_echo_n_body
17106 as_echo_n='sh -c $as_echo_n_body as_echo'
17107 fi
17108 export as_echo_body
17109 as_echo='sh -c $as_echo_body as_echo'
17110fi
17111
17112# The user is always right.
17113if test "${PATH_SEPARATOR+set}" != set; then
17114 PATH_SEPARATOR=:
17115 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17116 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17117 PATH_SEPARATOR=';'
17118 }
42ecbf5e
DJ
17119fi
17120
17121
81ecdfbb
RW
17122# IFS
17123# We need space, tab and new line, in precisely that order. Quoting is
17124# there to prevent editors from complaining about space-tab.
17125# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17126# splitting by setting IFS to empty value.)
17127IFS=" "" $as_nl"
17128
17129# Find who we are. Look in the path if we contain no directory separator.
17130case $0 in #((
17131 *[\\/]* ) as_myself=$0 ;;
17132 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17133for as_dir in $PATH
17134do
17135 IFS=$as_save_IFS
17136 test -z "$as_dir" && as_dir=.
17137 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17138 done
17139IFS=$as_save_IFS
17140
17141 ;;
17142esac
17143# We did not find ourselves, most probably we were run as `sh COMMAND'
17144# in which case we are not to be found in the path.
17145if test "x$as_myself" = x; then
17146 as_myself=$0
17147fi
17148if test ! -f "$as_myself"; then
17149 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17150 exit 1
17151fi
17152
17153# Unset variables that we do not need and which cause bugs (e.g. in
17154# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17155# suppresses any "Segmentation fault" message there. '((' could
17156# trigger a bug in pdksh 5.2.14.
17157for as_var in BASH_ENV ENV MAIL MAILPATH
17158do eval test x\${$as_var+set} = xset \
17159 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17160done
42ecbf5e
DJ
17161PS1='$ '
17162PS2='> '
17163PS4='+ '
17164
17165# NLS nuisances.
81ecdfbb
RW
17166LC_ALL=C
17167export LC_ALL
17168LANGUAGE=C
17169export LANGUAGE
17170
17171# CDPATH.
17172(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17173
17174
17175# as_fn_error ERROR [LINENO LOG_FD]
17176# ---------------------------------
17177# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17178# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17179# script with status $?, using 1 if that was 0.
17180as_fn_error ()
17181{
17182 as_status=$?; test $as_status -eq 0 && as_status=1
17183 if test "$3"; then
17184 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17185 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
42ecbf5e 17186 fi
81ecdfbb
RW
17187 $as_echo "$as_me: error: $1" >&2
17188 as_fn_exit $as_status
17189} # as_fn_error
17190
17191
17192# as_fn_set_status STATUS
17193# -----------------------
17194# Set $? to STATUS, without forking.
17195as_fn_set_status ()
17196{
17197 return $1
17198} # as_fn_set_status
17199
17200# as_fn_exit STATUS
17201# -----------------
17202# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17203as_fn_exit ()
17204{
17205 set +e
17206 as_fn_set_status $1
17207 exit $1
17208} # as_fn_exit
17209
17210# as_fn_unset VAR
17211# ---------------
17212# Portably unset VAR.
17213as_fn_unset ()
17214{
17215 { eval $1=; unset $1;}
17216}
17217as_unset=as_fn_unset
17218# as_fn_append VAR VALUE
17219# ----------------------
17220# Append the text in VALUE to the end of the definition contained in VAR. Take
17221# advantage of any shell optimizations that allow amortized linear growth over
17222# repeated appends, instead of the typical quadratic growth present in naive
17223# implementations.
17224if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17225 eval 'as_fn_append ()
17226 {
17227 eval $1+=\$2
17228 }'
17229else
17230 as_fn_append ()
17231 {
17232 eval $1=\$$1\$2
17233 }
17234fi # as_fn_append
17235
17236# as_fn_arith ARG...
17237# ------------------
17238# Perform arithmetic evaluation on the ARGs, and store the result in the
17239# global $as_val. Take advantage of shells that can avoid forks. The arguments
17240# must be portable across $(()) and expr.
17241if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17242 eval 'as_fn_arith ()
17243 {
17244 as_val=$(( $* ))
17245 }'
17246else
17247 as_fn_arith ()
17248 {
17249 as_val=`expr "$@" || test $? -eq 1`
17250 }
17251fi # as_fn_arith
17252
42ecbf5e 17253
81ecdfbb
RW
17254if expr a : '\(a\)' >/dev/null 2>&1 &&
17255 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42ecbf5e
DJ
17256 as_expr=expr
17257else
17258 as_expr=false
17259fi
17260
81ecdfbb 17261if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42ecbf5e
DJ
17262 as_basename=basename
17263else
17264 as_basename=false
17265fi
17266
81ecdfbb
RW
17267if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17268 as_dirname=dirname
17269else
17270 as_dirname=false
17271fi
42ecbf5e 17272
81ecdfbb 17273as_me=`$as_basename -- "$0" ||
42ecbf5e
DJ
17274$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17275 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
17276 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17277$as_echo X/"$0" |
17278 sed '/^.*\/\([^/][^/]*\)\/*$/{
17279 s//\1/
17280 q
17281 }
17282 /^X\/\(\/\/\)$/{
17283 s//\1/
17284 q
17285 }
17286 /^X\/\(\/\).*/{
17287 s//\1/
17288 q
17289 }
17290 s/.*/./; q'`
42ecbf5e 17291
42ecbf5e
DJ
17292# Avoid depending upon Character Ranges.
17293as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17294as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17295as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17296as_cr_digits='0123456789'
17297as_cr_alnum=$as_cr_Letters$as_cr_digits
17298
81ecdfbb
RW
17299ECHO_C= ECHO_N= ECHO_T=
17300case `echo -n x` in #(((((
17301-n*)
17302 case `echo 'xy\c'` in
17303 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17304 xy) ECHO_C='\c';;
17305 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17306 ECHO_T=' ';;
17307 esac;;
17308*)
17309 ECHO_N='-n';;
42ecbf5e 17310esac
252b5132 17311
81ecdfbb
RW
17312rm -f conf$$ conf$$.exe conf$$.file
17313if test -d conf$$.dir; then
17314 rm -f conf$$.dir/conf$$.file
42ecbf5e 17315else
81ecdfbb
RW
17316 rm -f conf$$.dir
17317 mkdir conf$$.dir 2>/dev/null
42ecbf5e 17318fi
81ecdfbb
RW
17319if (echo >conf$$.file) 2>/dev/null; then
17320 if ln -s conf$$.file conf$$ 2>/dev/null; then
42ecbf5e 17321 as_ln_s='ln -s'
81ecdfbb
RW
17322 # ... but there are two gotchas:
17323 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17324 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17325 # In both cases, we have to default to `cp -p'.
17326 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17327 as_ln_s='cp -p'
17328 elif ln conf$$.file conf$$ 2>/dev/null; then
17329 as_ln_s=ln
17330 else
17331 as_ln_s='cp -p'
252b5132 17332 fi
e5a52504 17333else
42ecbf5e 17334 as_ln_s='cp -p'
e5a52504 17335fi
81ecdfbb
RW
17336rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17337rmdir conf$$.dir 2>/dev/null
17338
17339
17340# as_fn_mkdir_p
17341# -------------
17342# Create "$as_dir" as a directory, including parents if necessary.
17343as_fn_mkdir_p ()
17344{
17345
17346 case $as_dir in #(
17347 -*) as_dir=./$as_dir;;
17348 esac
17349 test -d "$as_dir" || eval $as_mkdir_p || {
17350 as_dirs=
17351 while :; do
17352 case $as_dir in #(
17353 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17354 *) as_qdir=$as_dir;;
17355 esac
17356 as_dirs="'$as_qdir' $as_dirs"
17357 as_dir=`$as_dirname -- "$as_dir" ||
17358$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17359 X"$as_dir" : 'X\(//\)[^/]' \| \
17360 X"$as_dir" : 'X\(//\)$' \| \
17361 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17362$as_echo X"$as_dir" |
17363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17364 s//\1/
17365 q
17366 }
17367 /^X\(\/\/\)[^/].*/{
17368 s//\1/
17369 q
17370 }
17371 /^X\(\/\/\)$/{
17372 s//\1/
17373 q
17374 }
17375 /^X\(\/\).*/{
17376 s//\1/
17377 q
17378 }
17379 s/.*/./; q'`
17380 test -d "$as_dir" && break
17381 done
17382 test -z "$as_dirs" || eval "mkdir $as_dirs"
17383 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17384
252b5132 17385
81ecdfbb 17386} # as_fn_mkdir_p
42ecbf5e 17387if mkdir -p . 2>/dev/null; then
81ecdfbb 17388 as_mkdir_p='mkdir -p "$as_dir"'
42ecbf5e
DJ
17389else
17390 test -d ./-p && rmdir ./-p
17391 as_mkdir_p=false
17392fi
252b5132 17393
81ecdfbb
RW
17394if test -x / >/dev/null 2>&1; then
17395 as_test_x='test -x'
17396else
17397 if ls -dL / >/dev/null 2>&1; then
17398 as_ls_L_option=L
17399 else
17400 as_ls_L_option=
17401 fi
17402 as_test_x='
17403 eval sh -c '\''
17404 if test -d "$1"; then
17405 test -d "$1/.";
17406 else
17407 case $1 in #(
17408 -*)set "./$1";;
17409 esac;
17410 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17411 ???[sx]*):;;*)false;;esac;fi
17412 '\'' sh
17413 '
17414fi
17415as_executable_p=$as_test_x
252b5132 17416
42ecbf5e
DJ
17417# Sed expression to map a string onto a valid CPP name.
17418as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
f234d5fe 17419
42ecbf5e
DJ
17420# Sed expression to map a string onto a valid variable name.
17421as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
e5a52504 17422
e5a52504 17423
42ecbf5e 17424exec 6>&1
81ecdfbb
RW
17425## ----------------------------------- ##
17426## Main body of $CONFIG_STATUS script. ##
17427## ----------------------------------- ##
17428_ASEOF
17429test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
e5a52504 17430
81ecdfbb
RW
17431cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17432# Save the log message, to keep $0 and so on meaningful, and to
42ecbf5e 17433# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
17434# values after options handling.
17435ac_log="
42ecbf5e 17436This file was extended by $as_me, which was
81ecdfbb 17437generated by GNU Autoconf 2.64. Invocation command line was
42ecbf5e
DJ
17438
17439 CONFIG_FILES = $CONFIG_FILES
17440 CONFIG_HEADERS = $CONFIG_HEADERS
17441 CONFIG_LINKS = $CONFIG_LINKS
17442 CONFIG_COMMANDS = $CONFIG_COMMANDS
17443 $ $0 $@
e5a52504 17444
81ecdfbb
RW
17445on `(hostname || uname -n) 2>/dev/null | sed 1q`
17446"
17447
42ecbf5e
DJ
17448_ACEOF
17449
81ecdfbb
RW
17450case $ac_config_files in *"
17451"*) set x $ac_config_files; shift; ac_config_files=$*;;
17452esac
e5a52504 17453
81ecdfbb
RW
17454case $ac_config_headers in *"
17455"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17456esac
42ecbf5e 17457
42ecbf5e 17458
81ecdfbb
RW
17459cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17460# Files that config.status was made for.
17461config_files="$ac_config_files"
17462config_headers="$ac_config_headers"
17463config_commands="$ac_config_commands"
42ecbf5e 17464
81ecdfbb 17465_ACEOF
42ecbf5e 17466
81ecdfbb 17467cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e 17468ac_cs_usage="\
81ecdfbb
RW
17469\`$as_me' instantiates files and other configuration actions
17470from templates according to the current configuration. Unless the files
17471and actions are specified as TAGs, all are instantiated by default.
42ecbf5e 17472
81ecdfbb 17473Usage: $0 [OPTION]... [TAG]...
42ecbf5e
DJ
17474
17475 -h, --help print this help, then exit
81ecdfbb
RW
17476 -V, --version print version number and configuration settings, then exit
17477 -q, --quiet, --silent
17478 do not print progress messages
42ecbf5e
DJ
17479 -d, --debug don't remove temporary files
17480 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
17481 --file=FILE[:TEMPLATE]
17482 instantiate the configuration file FILE
17483 --header=FILE[:TEMPLATE]
17484 instantiate the configuration header FILE
42ecbf5e
DJ
17485
17486Configuration files:
17487$config_files
17488
17489Configuration headers:
17490$config_headers
17491
17492Configuration commands:
17493$config_commands
17494
81ecdfbb 17495Report bugs to the package provider."
42ecbf5e 17496
81ecdfbb
RW
17497_ACEOF
17498cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42ecbf5e
DJ
17499ac_cs_version="\\
17500config.status
81ecdfbb
RW
17501configured by $0, generated by GNU Autoconf 2.64,
17502 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
42ecbf5e 17503
81ecdfbb 17504Copyright (C) 2009 Free Software Foundation, Inc.
42ecbf5e
DJ
17505This config.status script is free software; the Free Software Foundation
17506gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
17507
17508ac_pwd='$ac_pwd'
17509srcdir='$srcdir'
17510INSTALL='$INSTALL'
17511MKDIR_P='$MKDIR_P'
17512AWK='$AWK'
17513test -n "\$AWK" || AWK=awk
42ecbf5e
DJ
17514_ACEOF
17515
81ecdfbb
RW
17516cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17517# The default lists apply if the user does not specify any file.
42ecbf5e
DJ
17518ac_need_defaults=:
17519while test $# != 0
17520do
17521 case $1 in
17522 --*=*)
81ecdfbb
RW
17523 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17524 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
42ecbf5e 17525 ac_shift=:
252b5132 17526 ;;
81ecdfbb 17527 *)
42ecbf5e
DJ
17528 ac_option=$1
17529 ac_optarg=$2
17530 ac_shift=shift
252b5132 17531 ;;
42ecbf5e 17532 esac
252b5132 17533
42ecbf5e
DJ
17534 case $ac_option in
17535 # Handling of the options.
42ecbf5e
DJ
17536 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17537 ac_cs_recheck=: ;;
81ecdfbb
RW
17538 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17539 $as_echo "$ac_cs_version"; exit ;;
17540 --debug | --debu | --deb | --de | --d | -d )
42ecbf5e
DJ
17541 debug=: ;;
17542 --file | --fil | --fi | --f )
17543 $ac_shift
81ecdfbb
RW
17544 case $ac_optarg in
17545 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17546 esac
17547 as_fn_append CONFIG_FILES " '$ac_optarg'"
42ecbf5e
DJ
17548 ac_need_defaults=false;;
17549 --header | --heade | --head | --hea )
17550 $ac_shift
81ecdfbb
RW
17551 case $ac_optarg in
17552 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17553 esac
17554 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
42ecbf5e 17555 ac_need_defaults=false;;
81ecdfbb
RW
17556 --he | --h)
17557 # Conflict between --help and --header
17558 as_fn_error "ambiguous option: \`$1'
17559Try \`$0 --help' for more information.";;
17560 --help | --hel | -h )
17561 $as_echo "$ac_cs_usage"; exit ;;
42ecbf5e
DJ
17562 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17563 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17564 ac_cs_silent=: ;;
252b5132 17565
42ecbf5e 17566 # This is an error.
81ecdfbb
RW
17567 -*) as_fn_error "unrecognized option: \`$1'
17568Try \`$0 --help' for more information." ;;
252b5132 17569
81ecdfbb
RW
17570 *) as_fn_append ac_config_targets " $1"
17571 ac_need_defaults=false ;;
252b5132 17572
42ecbf5e
DJ
17573 esac
17574 shift
17575done
d15b04bd 17576
42ecbf5e 17577ac_configure_extra_args=
e5a52504 17578
42ecbf5e
DJ
17579if $ac_cs_silent; then
17580 exec 6>/dev/null
17581 ac_configure_extra_args="$ac_configure_extra_args --silent"
17582fi
e5a52504 17583
42ecbf5e 17584_ACEOF
81ecdfbb 17585cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42ecbf5e 17586if \$ac_cs_recheck; then
81ecdfbb
RW
17587 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17588 shift
17589 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17590 CONFIG_SHELL='$SHELL'
17591 export CONFIG_SHELL
17592 exec "\$@"
42ecbf5e
DJ
17593fi
17594
17595_ACEOF
81ecdfbb
RW
17596cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17597exec 5>>config.log
17598{
17599 echo
17600 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17601## Running $as_me. ##
17602_ASBOX
17603 $as_echo "$ac_log"
17604} >&5
42ecbf5e 17605
81ecdfbb
RW
17606_ACEOF
17607cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
252b5132 17608#
81ecdfbb 17609# INIT-COMMANDS
252b5132 17610#
42ecbf5e 17611AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
17612
17613
17614# The HP-UX ksh and POSIX shell print the target directory to stdout
17615# if CDPATH is set.
17616(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17617
17618sed_quote_subst='$sed_quote_subst'
17619double_quote_subst='$double_quote_subst'
17620delay_variable_subst='$delay_variable_subst'
3725885a
RW
17621macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17622macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17623enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17624enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17625pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17626enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17627SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17628ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17629host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17630host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17631host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17632build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17633build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17634build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17635SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17636Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17637GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17638EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17639FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17640LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17641NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17642LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17643max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17644ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17645exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17646lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17647lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17648lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17649reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17650reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17651OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17652deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17653file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17654AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17655AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17656STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17657RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17658old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17659old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17660old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17661lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17662CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17663CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17664compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17665GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17666lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17667lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17668lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17669lt_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"`'
17670objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17671MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17672lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17673lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17674lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17675lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17676lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17677need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17678DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17679NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17680LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17681OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17682OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17683libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17684shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17685extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17686archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17687enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17688export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17689whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17690compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17691old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17692old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17693archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17694archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17695module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17696module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17697with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17698allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17699no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17700hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17701hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17702hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17703hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17704hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17705hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17706hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17707hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17708inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17709link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17710fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17711always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17712export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17713exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17714include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17715prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17716file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17717variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17718need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17719need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17720version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17721runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17722shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17723shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17724libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17725library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17726soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17727install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17728postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17729postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17730finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17731finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17732hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17733sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17734sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17735hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17736enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17737enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17738enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17739old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17740striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
3cb62297
L
17741compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17742predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17743postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17744predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17745postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17746compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17747LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17748reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17749reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17750old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17751compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17752GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17753lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17754lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17755lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17756lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17757lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17758archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17759enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17760export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17761whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17762compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17763old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17764old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17765archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17766archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17767module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17768module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17769with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17770allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17771no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17772hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17773hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17774hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17775hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17776hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17777hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17778hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17779hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17780inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17781link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17782fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
17783always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17784export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17785exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17786include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17787prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17788file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17789hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17790compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17791predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17792postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17793predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17794postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17795compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
d7040cdb
SE
17796
17797LTCC='$LTCC'
17798LTCFLAGS='$LTCFLAGS'
17799compiler='$compiler_DEFAULT'
17800
3725885a
RW
17801# A function that is used when there is no print builtin or printf.
17802func_fallback_echo ()
17803{
17804 eval 'cat <<_LTECHO_EOF
17805\$1
17806_LTECHO_EOF'
17807}
17808
d7040cdb 17809# Quote evaled strings.
3725885a
RW
17810for var in SHELL \
17811ECHO \
17812SED \
d7040cdb
SE
17813GREP \
17814EGREP \
17815FGREP \
17816LD \
17817NM \
17818LN_S \
17819lt_SP2NL \
17820lt_NL2SP \
17821reload_flag \
b214d478 17822OBJDUMP \
d7040cdb
SE
17823deplibs_check_method \
17824file_magic_cmd \
17825AR \
17826AR_FLAGS \
17827STRIP \
17828RANLIB \
17829CC \
17830CFLAGS \
17831compiler \
17832lt_cv_sys_global_symbol_pipe \
17833lt_cv_sys_global_symbol_to_cdecl \
17834lt_cv_sys_global_symbol_to_c_name_address \
b214d478 17835lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb
SE
17836lt_prog_compiler_no_builtin_flag \
17837lt_prog_compiler_wl \
17838lt_prog_compiler_pic \
17839lt_prog_compiler_static \
17840lt_cv_prog_compiler_c_o \
17841need_locks \
b214d478
SE
17842DSYMUTIL \
17843NMEDIT \
17844LIPO \
17845OTOOL \
17846OTOOL64 \
d7040cdb
SE
17847shrext_cmds \
17848export_dynamic_flag_spec \
17849whole_archive_flag_spec \
17850compiler_needs_object \
17851with_gnu_ld \
17852allow_undefined_flag \
17853no_undefined_flag \
17854hardcode_libdir_flag_spec \
17855hardcode_libdir_flag_spec_ld \
17856hardcode_libdir_separator \
17857fix_srcfile_path \
17858exclude_expsyms \
17859include_expsyms \
17860file_list_spec \
17861variables_saved_for_relink \
17862libname_spec \
17863library_names_spec \
17864soname_spec \
3725885a 17865install_override_mode \
d7040cdb
SE
17866finish_eval \
17867old_striplib \
3cb62297
L
17868striplib \
17869compiler_lib_search_dirs \
17870predep_objects \
17871postdep_objects \
17872predeps \
17873postdeps \
17874compiler_lib_search_path \
17875LD_CXX \
17876reload_flag_CXX \
17877compiler_CXX \
17878lt_prog_compiler_no_builtin_flag_CXX \
17879lt_prog_compiler_wl_CXX \
17880lt_prog_compiler_pic_CXX \
17881lt_prog_compiler_static_CXX \
17882lt_cv_prog_compiler_c_o_CXX \
17883export_dynamic_flag_spec_CXX \
17884whole_archive_flag_spec_CXX \
17885compiler_needs_object_CXX \
17886with_gnu_ld_CXX \
17887allow_undefined_flag_CXX \
17888no_undefined_flag_CXX \
17889hardcode_libdir_flag_spec_CXX \
17890hardcode_libdir_flag_spec_ld_CXX \
17891hardcode_libdir_separator_CXX \
17892fix_srcfile_path_CXX \
17893exclude_expsyms_CXX \
17894include_expsyms_CXX \
17895file_list_spec_CXX \
17896compiler_lib_search_dirs_CXX \
17897predep_objects_CXX \
17898postdep_objects_CXX \
17899predeps_CXX \
17900postdeps_CXX \
17901compiler_lib_search_path_CXX; do
3725885a 17902 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 17903 *[\\\\\\\`\\"\\\$]*)
3725885a 17904 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
d7040cdb
SE
17905 ;;
17906 *)
17907 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17908 ;;
17909 esac
17910done
17911
17912# Double-quote double-evaled strings.
17913for var in reload_cmds \
17914old_postinstall_cmds \
17915old_postuninstall_cmds \
17916old_archive_cmds \
17917extract_expsyms_cmds \
17918old_archive_from_new_cmds \
17919old_archive_from_expsyms_cmds \
17920archive_cmds \
17921archive_expsym_cmds \
17922module_cmds \
17923module_expsym_cmds \
17924export_symbols_cmds \
17925prelink_cmds \
17926postinstall_cmds \
17927postuninstall_cmds \
17928finish_cmds \
17929sys_lib_search_path_spec \
3cb62297
L
17930sys_lib_dlsearch_path_spec \
17931reload_cmds_CXX \
17932old_archive_cmds_CXX \
17933old_archive_from_new_cmds_CXX \
17934old_archive_from_expsyms_cmds_CXX \
17935archive_cmds_CXX \
17936archive_expsym_cmds_CXX \
17937module_cmds_CXX \
17938module_expsym_cmds_CXX \
17939export_symbols_cmds_CXX \
17940prelink_cmds_CXX; do
3725885a 17941 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 17942 *[\\\\\\\`\\"\\\$]*)
3725885a 17943 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
d7040cdb
SE
17944 ;;
17945 *)
17946 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17947 ;;
17948 esac
17949done
17950
d7040cdb
SE
17951ac_aux_dir='$ac_aux_dir'
17952xsi_shell='$xsi_shell'
17953lt_shell_append='$lt_shell_append'
17954
17955# See if we are running on zsh, and set the options which allow our
17956# commands through without removal of \ escapes INIT.
17957if test -n "\${ZSH_VERSION+set}" ; then
17958 setopt NO_GLOB_SUBST
17959fi
17960
17961
17962 PACKAGE='$PACKAGE'
17963 VERSION='$VERSION'
17964 TIMESTAMP='$TIMESTAMP'
17965 RM='$RM'
17966 ofile='$ofile'
17967
17968
17969
3cb62297
L
17970
17971
20e95c23
DJ
17972# Capture the value of obsolete ALL_LINGUAS because we need it to compute
17973 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
17974 # from automake.
17975 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17976 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17977 LINGUAS="${LINGUAS-%UNSET%}"
17978
42ecbf5e
DJ
17979
17980_ACEOF
17981
81ecdfbb 17982cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e 17983
81ecdfbb 17984# Handling of arguments.
42ecbf5e 17985for ac_config_target in $ac_config_targets
252b5132 17986do
81ecdfbb
RW
17987 case $ac_config_target in
17988 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17989 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
17990 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17991 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17992 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17993 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
17994
17995 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
252b5132
RH
17996 esac
17997done
17998
81ecdfbb 17999
42ecbf5e
DJ
18000# If the user did not use the arguments to specify the items to instantiate,
18001# then the envvar interface is used. Set only those that are not.
18002# We use the long form for the default assignment because of an extremely
18003# bizarre bug on SunOS 4.1.3.
18004if $ac_need_defaults; then
18005 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18006 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18007 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18008fi
18009
18010# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 18011# simply because there is no reason against having it here, and in addition,
42ecbf5e 18012# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
18013# Hook for its removal unless debugging.
18014# Note that there is a small window in which the directory will not be cleaned:
18015# after its creation but before its name has been assigned to `$tmp'.
42ecbf5e
DJ
18016$debug ||
18017{
81ecdfbb
RW
18018 tmp=
18019 trap 'exit_status=$?
18020 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18021' 0
18022 trap 'as_fn_exit 1' 1 2 13 15
42ecbf5e 18023}
42ecbf5e 18024# Create a (secure) tmp directory for tmp files.
e5a52504 18025
42ecbf5e 18026{
81ecdfbb 18027 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42ecbf5e
DJ
18028 test -n "$tmp" && test -d "$tmp"
18029} ||
18030{
81ecdfbb
RW
18031 tmp=./conf$$-$RANDOM
18032 (umask 077 && mkdir "$tmp")
18033} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18034
18035# Set up the scripts for CONFIG_FILES section.
18036# No need to generate them if there are no CONFIG_FILES.
18037# This happens for instance with `./config.status config.h'.
18038if test -n "$CONFIG_FILES"; then
18039
18040if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18041 ac_cs_awk_getline=:
18042 ac_cs_awk_pipe_init=
18043 ac_cs_awk_read_file='
18044 while ((getline aline < (F[key])) > 0)
18045 print(aline)
18046 close(F[key])'
18047 ac_cs_awk_pipe_fini=
18048else
18049 ac_cs_awk_getline=false
18050 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18051 ac_cs_awk_read_file='
18052 print "|#_!!_#|"
18053 print "cat " F[key] " &&"
18054 '$ac_cs_awk_pipe_init
18055 # The final `:' finishes the AND list.
18056 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18057fi
18058ac_cr=`echo X | tr X '\015'`
18059# On cygwin, bash can eat \r inside `` if the user requested igncr.
18060# But we know of no other shell where ac_cr would be empty at this
18061# point, so we can use a bashism as a fallback.
18062if test "x$ac_cr" = x; then
18063 eval ac_cr=\$\'\\r\'
18064fi
18065ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18066if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18067 ac_cs_awk_cr='\r'
18068else
18069 ac_cs_awk_cr=$ac_cr
18070fi
18071
18072echo 'BEGIN {' >"$tmp/subs1.awk" &&
18073_ACEOF
18074
18075# Create commands to substitute file output variables.
42ecbf5e 18076{
81ecdfbb
RW
18077 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18078 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
18079 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18080 echo "_ACAWK" &&
18081 echo "_ACEOF"
18082} >conf$$files.sh &&
18083. ./conf$$files.sh ||
18084 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18085rm -f conf$$files.sh
e5a52504 18086
81ecdfbb
RW
18087{
18088 echo "cat >conf$$subs.awk <<_ACEOF" &&
18089 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18090 echo "_ACEOF"
18091} >conf$$subs.sh ||
18092 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18093ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18094ac_delim='%!_!# '
18095for ac_last_try in false false false false false :; do
18096 . ./conf$$subs.sh ||
18097 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18098
18099 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18100 if test $ac_delim_n = $ac_delim_num; then
18101 break
18102 elif $ac_last_try; then
18103 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18104 else
18105 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18106 fi
18107done
18108rm -f conf$$subs.sh
18109
18110cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18111cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18112_ACEOF
18113sed -n '
18114h
18115s/^/S["/; s/!.*/"]=/
18116p
18117g
18118s/^[^!]*!//
18119:repl
18120t repl
18121s/'"$ac_delim"'$//
18122t delim
18123:nl
18124h
18125s/\(.\{148\}\).*/\1/
18126t more1
18127s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18128p
18129n
18130b repl
18131:more1
18132s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18133p
18134g
18135s/.\{148\}//
18136t nl
18137:delim
18138h
18139s/\(.\{148\}\).*/\1/
18140t more2
18141s/["\\]/\\&/g; s/^/"/; s/$/"/
18142p
18143b
18144:more2
18145s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18146p
18147g
18148s/.\{148\}//
18149t delim
18150' <conf$$subs.awk | sed '
18151/^[^""]/{
18152 N
18153 s/\n//
18154}
18155' >>$CONFIG_STATUS || ac_write_fail=1
18156rm -f conf$$subs.awk
18157cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18158_ACAWK
18159cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18160 for (key in S) S_is_set[key] = 1
18161 FS = "\a"
18162 \$ac_cs_awk_pipe_init
18163}
18164{
18165 line = $ 0
18166 nfields = split(line, field, "@")
18167 substed = 0
18168 len = length(field[1])
18169 for (i = 2; i < nfields; i++) {
18170 key = field[i]
18171 keylen = length(key)
18172 if (S_is_set[key]) {
18173 value = S[key]
18174 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18175 len += length(value) + length(field[++i])
18176 substed = 1
18177 } else
18178 len += 1 + keylen
18179 }
18180 if (nfields == 3 && !substed) {
18181 key = field[2]
18182 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18183 \$ac_cs_awk_read_file
18184 next
18185 }
18186 }
18187 print line
18188}
18189\$ac_cs_awk_pipe_fini
18190_ACAWK
18191_ACEOF
18192cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18193if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18194 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18195else
18196 cat
18197fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18198 || as_fn_error "could not setup config files machinery" "$LINENO" 5
42ecbf5e 18199_ACEOF
d15b04bd 18200
81ecdfbb
RW
18201# VPATH may cause trouble with some makes, so we remove $(srcdir),
18202# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18203# trailing colons and then remove the whole line if VPATH becomes empty
18204# (actually we leave an empty line to preserve line numbers).
18205if test "x$srcdir" = x.; then
18206 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18207s/:*\$(srcdir):*/:/
18208s/:*\${srcdir}:*/:/
18209s/:*@srcdir@:*/:/
18210s/^\([^=]*=[ ]*\):*/\1/
18211s/:*$//
18212s/^[^=]*=[ ]*$//
18213}'
18214fi
18215
18216cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18217fi # test -n "$CONFIG_FILES"
42ecbf5e 18218
81ecdfbb
RW
18219# Set up the scripts for CONFIG_HEADERS section.
18220# No need to generate them if there are no CONFIG_HEADERS.
18221# This happens for instance with `./config.status Makefile'.
18222if test -n "$CONFIG_HEADERS"; then
18223cat >"$tmp/defines.awk" <<\_ACAWK ||
18224BEGIN {
18225_ACEOF
42ecbf5e 18226
81ecdfbb
RW
18227# Transform confdefs.h into an awk script `defines.awk', embedded as
18228# here-document in config.status, that substitutes the proper values into
18229# config.h.in to produce config.h.
252b5132 18230
81ecdfbb
RW
18231# Create a delimiter string that does not exist in confdefs.h, to ease
18232# handling of long lines.
18233ac_delim='%!_!# '
18234for ac_last_try in false false :; do
18235 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18236 if test -z "$ac_t"; then
18237 break
18238 elif $ac_last_try; then
18239 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18240 else
18241 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18242 fi
18243done
18244
18245# For the awk script, D is an array of macro values keyed by name,
18246# likewise P contains macro parameters if any. Preserve backslash
18247# newline sequences.
18248
18249ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18250sed -n '
18251s/.\{148\}/&'"$ac_delim"'/g
18252t rset
18253:rset
18254s/^[ ]*#[ ]*define[ ][ ]*/ /
18255t def
18256d
18257:def
18258s/\\$//
18259t bsnl
18260s/["\\]/\\&/g
18261s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18262D["\1"]=" \3"/p
18263s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18264d
18265:bsnl
18266s/["\\]/\\&/g
18267s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18268D["\1"]=" \3\\\\\\n"\\/p
18269t cont
18270s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18271t cont
18272d
18273:cont
18274n
18275s/.\{148\}/&'"$ac_delim"'/g
18276t clear
18277:clear
18278s/\\$//
18279t bsnlc
18280s/["\\]/\\&/g; s/^/"/; s/$/"/p
18281d
18282:bsnlc
18283s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18284b cont
18285' <confdefs.h | sed '
18286s/'"$ac_delim"'/"\\\
18287"/g' >>$CONFIG_STATUS || ac_write_fail=1
18288
18289cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18290 for (key in D) D_is_set[key] = 1
18291 FS = "\a"
18292}
18293/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18294 line = \$ 0
18295 split(line, arg, " ")
18296 if (arg[1] == "#") {
18297 defundef = arg[2]
18298 mac1 = arg[3]
18299 } else {
18300 defundef = substr(arg[1], 2)
18301 mac1 = arg[2]
18302 }
18303 split(mac1, mac2, "(") #)
18304 macro = mac2[1]
18305 prefix = substr(line, 1, index(line, defundef) - 1)
18306 if (D_is_set[macro]) {
18307 # Preserve the white space surrounding the "#".
18308 print prefix "define", macro P[macro] D[macro]
18309 next
18310 } else {
18311 # Replace #undef with comments. This is necessary, for example,
18312 # in the case of _POSIX_SOURCE, which is predefined and required
18313 # on some systems where configure will not decide to define it.
18314 if (defundef == "undef") {
18315 print "/*", prefix defundef, macro, "*/"
18316 next
18317 }
18318 }
18319}
18320{ print }
18321_ACAWK
42ecbf5e 18322_ACEOF
81ecdfbb
RW
18323cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18324 as_fn_error "could not setup config headers machinery" "$LINENO" 5
18325fi # test -n "$CONFIG_HEADERS"
42ecbf5e 18326
81ecdfbb
RW
18327
18328eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18329shift
18330for ac_tag
18331do
18332 case $ac_tag in
18333 :[FHLC]) ac_mode=$ac_tag; continue;;
18334 esac
18335 case $ac_mode$ac_tag in
18336 :[FHL]*:*);;
18337 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18338 :[FH]-) ac_tag=-:-;;
18339 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18340 esac
18341 ac_save_IFS=$IFS
18342 IFS=:
18343 set x $ac_tag
18344 IFS=$ac_save_IFS
18345 shift
18346 ac_file=$1
18347 shift
18348
18349 case $ac_mode in
18350 :L) ac_source=$1;;
18351 :[FH])
18352 ac_file_inputs=
18353 for ac_f
18354 do
18355 case $ac_f in
18356 -) ac_f="$tmp/stdin";;
18357 *) # Look for the file first in the build tree, then in the source tree
18358 # (if the path is not absolute). The absolute path cannot be DOS-style,
18359 # because $ac_f cannot contain `:'.
18360 test -f "$ac_f" ||
18361 case $ac_f in
18362 [\\/$]*) false;;
18363 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18364 esac ||
18365 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18366 esac
18367 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18368 as_fn_append ac_file_inputs " '$ac_f'"
18369 done
18370
18371 # Let's still pretend it is `configure' which instantiates (i.e., don't
18372 # use $as_me), people would be surprised to read:
18373 # /* config.h. Generated by config.status. */
18374 configure_input='Generated from '`
18375 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18376 `' by configure.'
18377 if test x"$ac_file" != x-; then
18378 configure_input="$ac_file. $configure_input"
18379 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18380$as_echo "$as_me: creating $ac_file" >&6;}
252b5132 18381 fi
81ecdfbb
RW
18382 # Neutralize special characters interpreted by sed in replacement strings.
18383 case $configure_input in #(
18384 *\&* | *\|* | *\\* )
18385 ac_sed_conf_input=`$as_echo "$configure_input" |
18386 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18387 *) ac_sed_conf_input=$configure_input;;
18388 esac
252b5132 18389
81ecdfbb
RW
18390 case $ac_tag in
18391 *:-:* | *:-) cat >"$tmp/stdin" \
18392 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18393 esac
18394 ;;
252b5132
RH
18395 esac
18396
81ecdfbb 18397 ac_dir=`$as_dirname -- "$ac_file" ||
42ecbf5e
DJ
18398$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18399 X"$ac_file" : 'X\(//\)[^/]' \| \
18400 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
18401 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18402$as_echo X"$ac_file" |
18403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18404 s//\1/
18405 q
18406 }
18407 /^X\(\/\/\)[^/].*/{
18408 s//\1/
18409 q
18410 }
18411 /^X\(\/\/\)$/{
18412 s//\1/
18413 q
18414 }
18415 /^X\(\/\).*/{
18416 s//\1/
18417 q
18418 }
18419 s/.*/./; q'`
18420 as_dir="$ac_dir"; as_fn_mkdir_p
42ecbf5e
DJ
18421 ac_builddir=.
18422
81ecdfbb
RW
18423case "$ac_dir" in
18424.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18425*)
18426 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18427 # A ".." for each directory in $ac_dir_suffix.
18428 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18429 case $ac_top_builddir_sub in
18430 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18431 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18432 esac ;;
18433esac
18434ac_abs_top_builddir=$ac_pwd
18435ac_abs_builddir=$ac_pwd$ac_dir_suffix
18436# for backward compatibility:
18437ac_top_builddir=$ac_top_build_prefix
252b5132 18438
42ecbf5e 18439case $srcdir in
81ecdfbb 18440 .) # We are building in place.
42ecbf5e 18441 ac_srcdir=.
81ecdfbb
RW
18442 ac_top_srcdir=$ac_top_builddir_sub
18443 ac_abs_top_srcdir=$ac_pwd ;;
18444 [\\/]* | ?:[\\/]* ) # Absolute name.
42ecbf5e 18445 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
18446 ac_top_srcdir=$srcdir
18447 ac_abs_top_srcdir=$srcdir ;;
18448 *) # Relative name.
18449 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18450 ac_top_srcdir=$ac_top_build_prefix$srcdir
18451 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42ecbf5e 18452esac
81ecdfbb 18453ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
42ecbf5e 18454
252b5132 18455
81ecdfbb
RW
18456 case $ac_mode in
18457 :F)
18458 #
18459 # CONFIG_FILE
18460 #
e5a52504 18461
42ecbf5e
DJ
18462 case $INSTALL in
18463 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb
RW
18464 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18465 esac
18466 ac_MKDIR_P=$MKDIR_P
18467 case $MKDIR_P in
18468 [\\/$]* | ?:[\\/]* ) ;;
18469 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
d15b04bd 18470 esac
81ecdfbb 18471_ACEOF
e5a52504 18472
81ecdfbb
RW
18473cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18474# If the template does not know about datarootdir, expand it.
18475# FIXME: This hack should be removed a few years after 2.60.
18476ac_datarootdir_hack=; ac_datarootdir_seen=
18477ac_sed_dataroot='
18478/datarootdir/ {
18479 p
18480 q
18481}
18482/@datadir@/p
18483/@docdir@/p
18484/@infodir@/p
18485/@localedir@/p
18486/@mandir@/p'
18487case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18488*datarootdir*) ac_datarootdir_seen=yes;;
18489*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18491$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18492_ACEOF
18493cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18494 ac_datarootdir_hack='
18495 s&@datadir@&$datadir&g
18496 s&@docdir@&$docdir&g
18497 s&@infodir@&$infodir&g
18498 s&@localedir@&$localedir&g
18499 s&@mandir@&$mandir&g
18500 s&\\\${datarootdir}&$datarootdir&g' ;;
18501esac
42ecbf5e 18502_ACEOF
81ecdfbb
RW
18503
18504# Neutralize VPATH when `$srcdir' = `.'.
18505# Shell code in configure.ac might set extrasub.
18506# FIXME: do we really want to maintain this feature?
18507cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18508ac_sed_extra="$ac_vpsub
42ecbf5e
DJ
18509$extrasub
18510_ACEOF
81ecdfbb 18511cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e
DJ
18512:t
18513/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
18514s|@configure_input@|$ac_sed_conf_input|;t t
18515s&@top_builddir@&$ac_top_builddir_sub&;t t
18516s&@top_build_prefix@&$ac_top_build_prefix&;t t
18517s&@srcdir@&$ac_srcdir&;t t
18518s&@abs_srcdir@&$ac_abs_srcdir&;t t
18519s&@top_srcdir@&$ac_top_srcdir&;t t
18520s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18521s&@builddir@&$ac_builddir&;t t
18522s&@abs_builddir@&$ac_abs_builddir&;t t
18523s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18524s&@INSTALL@&$ac_INSTALL&;t t
18525s&@MKDIR_P@&$ac_MKDIR_P&;t t
18526$ac_datarootdir_hack
18527"
18528eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18529if $ac_cs_awk_getline; then
18530 $AWK -f "$tmp/subs.awk"
18531else
18532 $AWK -f "$tmp/subs.awk" | $SHELL
18533fi >$tmp/out \
18534 || as_fn_error "could not create $ac_file" "$LINENO" 5
18535
18536test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18537 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18538 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18540which seems to be undefined. Please make sure it is defined." >&5
18541$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18542which seems to be undefined. Please make sure it is defined." >&2;}
18543
18544 rm -f "$tmp/stdin"
42ecbf5e 18545 case $ac_file in
81ecdfbb
RW
18546 -) cat "$tmp/out" && rm -f "$tmp/out";;
18547 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18548 esac \
18549 || as_fn_error "could not create $ac_file" "$LINENO" 5
18550 ;;
18551 :H)
18552 #
18553 # CONFIG_HEADER
18554 #
42ecbf5e 18555 if test x"$ac_file" != x-; then
81ecdfbb
RW
18556 {
18557 $as_echo "/* $configure_input */" \
18558 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18559 } >"$tmp/config.h" \
18560 || as_fn_error "could not create $ac_file" "$LINENO" 5
18561 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18562 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18563$as_echo "$as_me: $ac_file is unchanged" >&6;}
42ecbf5e 18564 else
81ecdfbb
RW
18565 rm -f "$ac_file"
18566 mv "$tmp/config.h" "$ac_file" \
18567 || as_fn_error "could not create $ac_file" "$LINENO" 5
252b5132 18568 fi
42ecbf5e 18569 else
81ecdfbb
RW
18570 $as_echo "/* $configure_input */" \
18571 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18572 || as_fn_error "could not create -" "$LINENO" 5
e5a52504 18573 fi
81ecdfbb
RW
18574# Compute "$ac_file"'s index in $config_headers.
18575_am_arg="$ac_file"
42ecbf5e
DJ
18576_am_stamp_count=1
18577for _am_header in $config_headers :; do
18578 case $_am_header in
81ecdfbb 18579 $_am_arg | $_am_arg:* )
42ecbf5e
DJ
18580 break ;;
18581 * )
18582 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18583 esac
18584done
81ecdfbb
RW
18585echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18586$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18587 X"$_am_arg" : 'X\(//\)[^/]' \| \
18588 X"$_am_arg" : 'X\(//\)$' \| \
18589 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18590$as_echo X"$_am_arg" |
18591 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18592 s//\1/
18593 q
18594 }
18595 /^X\(\/\/\)[^/].*/{
18596 s//\1/
18597 q
18598 }
18599 /^X\(\/\/\)$/{
18600 s//\1/
18601 q
18602 }
18603 /^X\(\/\).*/{
18604 s//\1/
18605 q
18606 }
18607 s/.*/./; q'`/stamp-h$_am_stamp_count
18608 ;;
42ecbf5e 18609
81ecdfbb
RW
18610 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18611$as_echo "$as_me: executing $ac_file commands" >&6;}
18612 ;;
18613 esac
42ecbf5e
DJ
18614
18615
81ecdfbb
RW
18616 case $ac_file$ac_mode in
18617 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18618 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18619 # are listed without --file. Let's play safe and only enable the eval
18620 # if we detect the quoting.
18621 case $CONFIG_FILES in
18622 *\'*) eval set x "$CONFIG_FILES" ;;
18623 *) set x $CONFIG_FILES ;;
18624 esac
18625 shift
18626 for mf
18627 do
18628 # Strip MF so we end up with the name of the file.
18629 mf=`echo "$mf" | sed -e 's/:.*$//'`
18630 # Check whether this is an Automake generated Makefile or not.
18631 # We used to match only the files named `Makefile.in', but
18632 # some people rename them; so instead we look at the file content.
18633 # Grep'ing the first line is not enough: some people post-process
18634 # each Makefile.in and add a new line on top of each file to say so.
18635 # Grep'ing the whole file is not good either: AIX grep has a line
18636 # limit of 2048, but all sed's we know have understand at least 4000.
18637 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18638 dirpart=`$as_dirname -- "$mf" ||
42ecbf5e
DJ
18639$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18640 X"$mf" : 'X\(//\)[^/]' \| \
18641 X"$mf" : 'X\(//\)$' \| \
81ecdfbb
RW
18642 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18643$as_echo X"$mf" |
18644 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18645 s//\1/
18646 q
18647 }
18648 /^X\(\/\/\)[^/].*/{
18649 s//\1/
18650 q
18651 }
18652 /^X\(\/\/\)$/{
18653 s//\1/
18654 q
18655 }
18656 /^X\(\/\).*/{
18657 s//\1/
18658 q
18659 }
18660 s/.*/./; q'`
18661 else
18662 continue
18663 fi
18664 # Extract the definition of DEPDIR, am__include, and am__quote
18665 # from the Makefile without running `make'.
18666 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18667 test -z "$DEPDIR" && continue
18668 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18669 test -z "am__include" && continue
18670 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18671 # When using ansi2knr, U may be empty or an underscore; expand it
18672 U=`sed -n 's/^U = //p' < "$mf"`
18673 # Find all dependency output files, they are included files with
18674 # $(DEPDIR) in their names. We invoke sed twice because it is the
18675 # simplest approach to changing $(DEPDIR) to its actual value in the
18676 # expansion.
18677 for file in `sed -n "
18678 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18679 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18680 # Make sure the directory exists.
18681 test -f "$dirpart/$file" && continue
18682 fdir=`$as_dirname -- "$file" ||
42ecbf5e
DJ
18683$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18684 X"$file" : 'X\(//\)[^/]' \| \
18685 X"$file" : 'X\(//\)$' \| \
81ecdfbb
RW
18686 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18687$as_echo X"$file" |
18688 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18689 s//\1/
18690 q
18691 }
18692 /^X\(\/\/\)[^/].*/{
18693 s//\1/
18694 q
18695 }
18696 /^X\(\/\/\)$/{
18697 s//\1/
18698 q
18699 }
18700 /^X\(\/\).*/{
18701 s//\1/
18702 q
18703 }
18704 s/.*/./; q'`
18705 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18706 # echo "creating $dirpart/$file"
18707 echo '# dummy' > "$dirpart/$file"
42ecbf5e 18708 done
42ecbf5e 18709 done
81ecdfbb 18710}
d7040cdb 18711 ;;
81ecdfbb 18712 "libtool":C)
d7040cdb
SE
18713
18714 # See if we are running on zsh, and set the options which allow our
18715 # commands through without removal of \ escapes.
18716 if test -n "${ZSH_VERSION+set}" ; then
18717 setopt NO_GLOB_SUBST
18718 fi
18719
18720 cfgfile="${ofile}T"
18721 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18722 $RM "$cfgfile"
18723
18724 cat <<_LT_EOF >> "$cfgfile"
18725#! $SHELL
18726
18727# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
b214d478 18728# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
18729# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18730# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18731#
b214d478 18732# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
3725885a 18733# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
b214d478 18734# Written by Gordon Matzigkeit, 1996
d7040cdb 18735#
b214d478 18736# This file is part of GNU Libtool.
d7040cdb 18737#
b214d478
SE
18738# GNU Libtool is free software; you can redistribute it and/or
18739# modify it under the terms of the GNU General Public License as
18740# published by the Free Software Foundation; either version 2 of
18741# the License, or (at your option) any later version.
d7040cdb 18742#
b214d478
SE
18743# As a special exception to the GNU General Public License,
18744# if you distribute this file as part of a program or library that
18745# is built using GNU Libtool, you may include this file under the
18746# same distribution terms that you use for the rest of that program.
d7040cdb 18747#
b214d478
SE
18748# GNU Libtool is distributed in the hope that it will be useful,
18749# but WITHOUT ANY WARRANTY; without even the implied warranty of
18750# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18751# GNU General Public License for more details.
d7040cdb 18752#
b214d478
SE
18753# You should have received a copy of the GNU General Public License
18754# along with GNU Libtool; see the file COPYING. If not, a copy
18755# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18756# obtained by writing to the Free Software Foundation, Inc.,
18757# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
18758
18759
18760# The names of the tagged configurations supported by this script.
3cb62297 18761available_tags="CXX "
d7040cdb
SE
18762
18763# ### BEGIN LIBTOOL CONFIG
18764
18765# Which release of libtool.m4 was used?
18766macro_version=$macro_version
18767macro_revision=$macro_revision
18768
18769# Whether or not to build shared libraries.
18770build_libtool_libs=$enable_shared
18771
18772# Whether or not to build static libraries.
18773build_old_libs=$enable_static
18774
18775# What type of objects to build.
18776pic_mode=$pic_mode
18777
18778# Whether or not to optimize for fast installation.
18779fast_install=$enable_fast_install
18780
3725885a
RW
18781# Shell to use when invoking shell scripts.
18782SHELL=$lt_SHELL
18783
18784# An echo program that protects backslashes.
18785ECHO=$lt_ECHO
18786
d7040cdb
SE
18787# The host system.
18788host_alias=$host_alias
18789host=$host
18790host_os=$host_os
18791
18792# The build system.
18793build_alias=$build_alias
18794build=$build
18795build_os=$build_os
18796
18797# A sed program that does not truncate output.
18798SED=$lt_SED
18799
18800# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18801Xsed="\$SED -e 1s/^X//"
18802
18803# A grep program that handles long lines.
18804GREP=$lt_GREP
18805
18806# An ERE matcher.
18807EGREP=$lt_EGREP
18808
18809# A literal string matcher.
18810FGREP=$lt_FGREP
18811
18812# A BSD- or MS-compatible name lister.
18813NM=$lt_NM
18814
18815# Whether we need soft or hard links.
18816LN_S=$lt_LN_S
18817
18818# What is the maximum length of a command?
18819max_cmd_len=$max_cmd_len
18820
18821# Object file suffix (normally "o").
18822objext=$ac_objext
18823
18824# Executable file suffix (normally "").
18825exeext=$exeext
18826
18827# whether the shell understands "unset".
18828lt_unset=$lt_unset
18829
18830# turn spaces into newlines.
18831SP2NL=$lt_lt_SP2NL
18832
18833# turn newlines into spaces.
18834NL2SP=$lt_lt_NL2SP
18835
b214d478
SE
18836# An object symbol dumper.
18837OBJDUMP=$lt_OBJDUMP
18838
d7040cdb
SE
18839# Method to check whether dependent libraries are shared objects.
18840deplibs_check_method=$lt_deplibs_check_method
18841
18842# Command to use when deplibs_check_method == "file_magic".
18843file_magic_cmd=$lt_file_magic_cmd
18844
18845# The archiver.
18846AR=$lt_AR
18847AR_FLAGS=$lt_AR_FLAGS
18848
18849# A symbol stripping program.
18850STRIP=$lt_STRIP
18851
18852# Commands used to install an old-style archive.
18853RANLIB=$lt_RANLIB
18854old_postinstall_cmds=$lt_old_postinstall_cmds
18855old_postuninstall_cmds=$lt_old_postuninstall_cmds
18856
3725885a
RW
18857# Whether to use a lock for old archive extraction.
18858lock_old_archive_extraction=$lock_old_archive_extraction
18859
d7040cdb
SE
18860# A C compiler.
18861LTCC=$lt_CC
18862
18863# LTCC compiler flags.
18864LTCFLAGS=$lt_CFLAGS
18865
18866# Take the output of nm and produce a listing of raw symbols and C names.
18867global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18868
18869# Transform the output of nm in a proper C declaration.
18870global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18871
18872# Transform the output of nm in a C name address pair.
18873global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18874
b214d478
SE
18875# Transform the output of nm in a C name address pair when lib prefix is needed.
18876global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18877
d7040cdb
SE
18878# The name of the directory that contains temporary libtool files.
18879objdir=$objdir
18880
d7040cdb
SE
18881# Used to examine libraries when file_magic_cmd begins with "file".
18882MAGIC_CMD=$MAGIC_CMD
18883
18884# Must we lock files when doing compilation?
18885need_locks=$lt_need_locks
18886
b214d478
SE
18887# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18888DSYMUTIL=$lt_DSYMUTIL
18889
18890# Tool to change global to local symbols on Mac OS X.
18891NMEDIT=$lt_NMEDIT
18892
18893# Tool to manipulate fat objects and archives on Mac OS X.
18894LIPO=$lt_LIPO
18895
18896# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18897OTOOL=$lt_OTOOL
18898
18899# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18900OTOOL64=$lt_OTOOL64
18901
d7040cdb
SE
18902# Old archive suffix (normally "a").
18903libext=$libext
18904
18905# Shared library suffix (normally ".so").
18906shrext_cmds=$lt_shrext_cmds
18907
18908# The commands to extract the exported symbol list from a shared archive.
18909extract_expsyms_cmds=$lt_extract_expsyms_cmds
18910
18911# Variables whose values should be saved in libtool wrapper scripts and
18912# restored at link time.
18913variables_saved_for_relink=$lt_variables_saved_for_relink
18914
18915# Do we need the "lib" prefix for modules?
18916need_lib_prefix=$need_lib_prefix
18917
18918# Do we need a version for libraries?
18919need_version=$need_version
18920
18921# Library versioning type.
18922version_type=$version_type
18923
18924# Shared library runtime path variable.
18925runpath_var=$runpath_var
18926
18927# Shared library path variable.
18928shlibpath_var=$shlibpath_var
18929
18930# Is shlibpath searched before the hard-coded library search path?
18931shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18932
18933# Format of library name prefix.
18934libname_spec=$lt_libname_spec
18935
18936# List of archive names. First name is the real one, the rest are links.
18937# The last name is the one that the linker finds with -lNAME
18938library_names_spec=$lt_library_names_spec
18939
18940# The coded name of the library, if different from the real name.
18941soname_spec=$lt_soname_spec
18942
3725885a
RW
18943# Permission mode override for installation of shared libraries.
18944install_override_mode=$lt_install_override_mode
18945
d7040cdb
SE
18946# Command to use after installation of a shared archive.
18947postinstall_cmds=$lt_postinstall_cmds
18948
18949# Command to use after uninstallation of a shared archive.
18950postuninstall_cmds=$lt_postuninstall_cmds
18951
18952# Commands used to finish a libtool library installation in a directory.
18953finish_cmds=$lt_finish_cmds
18954
18955# As "finish_cmds", except a single script fragment to be evaled but
18956# not shown.
18957finish_eval=$lt_finish_eval
18958
18959# Whether we should hardcode library paths into libraries.
18960hardcode_into_libs=$hardcode_into_libs
18961
18962# Compile-time system search path for libraries.
18963sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18964
18965# Run-time system search path for libraries.
18966sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18967
18968# Whether dlopen is supported.
18969dlopen_support=$enable_dlopen
18970
18971# Whether dlopen of programs is supported.
18972dlopen_self=$enable_dlopen_self
18973
18974# Whether dlopen of statically linked programs is supported.
18975dlopen_self_static=$enable_dlopen_self_static
18976
18977# Commands to strip libraries.
18978old_striplib=$lt_old_striplib
18979striplib=$lt_striplib
18980
18981
18982# The linker used to build libraries.
18983LD=$lt_LD
18984
3725885a
RW
18985# How to create reloadable object files.
18986reload_flag=$lt_reload_flag
18987reload_cmds=$lt_reload_cmds
18988
d7040cdb
SE
18989# Commands used to build an old-style archive.
18990old_archive_cmds=$lt_old_archive_cmds
18991
18992# A language specific compiler.
18993CC=$lt_compiler
18994
18995# Is the compiler the GNU compiler?
18996with_gcc=$GCC
18997
18998# Compiler flag to turn off builtin functions.
18999no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19000
19001# How to pass a linker flag through the compiler.
19002wl=$lt_lt_prog_compiler_wl
19003
19004# Additional compiler flags for building library objects.
19005pic_flag=$lt_lt_prog_compiler_pic
19006
19007# Compiler flag to prevent dynamic linking.
19008link_static_flag=$lt_lt_prog_compiler_static
19009
19010# Does compiler simultaneously support -c and -o options?
19011compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19012
19013# Whether or not to add -lc for building shared libraries.
19014build_libtool_need_lc=$archive_cmds_need_lc
19015
19016# Whether or not to disallow shared libs when runtime libs are static.
19017allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19018
19019# Compiler flag to allow reflexive dlopens.
19020export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19021
19022# Compiler flag to generate shared objects directly from archives.
19023whole_archive_flag_spec=$lt_whole_archive_flag_spec
19024
19025# Whether the compiler copes with passing no objects directly.
19026compiler_needs_object=$lt_compiler_needs_object
19027
19028# Create an old-style archive from a shared archive.
19029old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19030
19031# Create a temporary old-style archive to link instead of a shared archive.
19032old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19033
19034# Commands used to build a shared archive.
19035archive_cmds=$lt_archive_cmds
19036archive_expsym_cmds=$lt_archive_expsym_cmds
19037
19038# Commands used to build a loadable module if different from building
19039# a shared archive.
19040module_cmds=$lt_module_cmds
19041module_expsym_cmds=$lt_module_expsym_cmds
19042
19043# Whether we are building with GNU ld or not.
19044with_gnu_ld=$lt_with_gnu_ld
19045
19046# Flag that allows shared libraries with undefined symbols to be built.
19047allow_undefined_flag=$lt_allow_undefined_flag
19048
19049# Flag that enforces no undefined symbols.
19050no_undefined_flag=$lt_no_undefined_flag
19051
19052# Flag to hardcode \$libdir into a binary during linking.
19053# This must work even if \$libdir does not exist
19054hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19055
19056# If ld is used when linking, flag to hardcode \$libdir into a binary
19057# during linking. This must work even if \$libdir does not exist.
19058hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19059
19060# Whether we need a single "-rpath" flag with a separated argument.
19061hardcode_libdir_separator=$lt_hardcode_libdir_separator
19062
19063# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19064# DIR into the resulting binary.
19065hardcode_direct=$hardcode_direct
19066
19067# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19068# DIR into the resulting binary and the resulting library dependency is
19069# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19070# library is relocated.
19071hardcode_direct_absolute=$hardcode_direct_absolute
19072
19073# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19074# into the resulting binary.
19075hardcode_minus_L=$hardcode_minus_L
19076
19077# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19078# into the resulting binary.
19079hardcode_shlibpath_var=$hardcode_shlibpath_var
19080
19081# Set to "yes" if building a shared library automatically hardcodes DIR
19082# into the library and all subsequent libraries and executables linked
19083# against it.
19084hardcode_automatic=$hardcode_automatic
19085
19086# Set to yes if linker adds runtime paths of dependent libraries
19087# to runtime path list.
19088inherit_rpath=$inherit_rpath
19089
19090# Whether libtool must link a program against all its dependency libraries.
19091link_all_deplibs=$link_all_deplibs
19092
19093# Fix the shell variable \$srcfile for the compiler.
19094fix_srcfile_path=$lt_fix_srcfile_path
19095
19096# Set to "yes" if exported symbols are required.
19097always_export_symbols=$always_export_symbols
19098
19099# The commands to list exported symbols.
19100export_symbols_cmds=$lt_export_symbols_cmds
19101
19102# Symbols that should not be listed in the preloaded symbols.
19103exclude_expsyms=$lt_exclude_expsyms
19104
19105# Symbols that must always be exported.
19106include_expsyms=$lt_include_expsyms
19107
19108# Commands necessary for linking programs (against libraries) with templates.
19109prelink_cmds=$lt_prelink_cmds
19110
19111# Specify filename containing input files.
19112file_list_spec=$lt_file_list_spec
19113
19114# How to hardcode a shared library path into an executable.
19115hardcode_action=$hardcode_action
19116
3cb62297
L
19117# The directories searched by this compiler when creating a shared library.
19118compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19119
19120# Dependencies to place before and after the objects being linked to
19121# create a shared library.
19122predep_objects=$lt_predep_objects
19123postdep_objects=$lt_postdep_objects
19124predeps=$lt_predeps
19125postdeps=$lt_postdeps
19126
19127# The library search path used internally by the compiler when linking
19128# a shared library.
19129compiler_lib_search_path=$lt_compiler_lib_search_path
19130
d7040cdb
SE
19131# ### END LIBTOOL CONFIG
19132
19133_LT_EOF
19134
19135 case $host_os in
19136 aix3*)
19137 cat <<\_LT_EOF >> "$cfgfile"
19138# AIX sometimes has problems with the GCC collect2 program. For some
19139# reason, if we set the COLLECT_NAMES environment variable, the problems
19140# vanish in a puff of smoke.
19141if test "X${COLLECT_NAMES+set}" != Xset; then
19142 COLLECT_NAMES=
19143 export COLLECT_NAMES
19144fi
19145_LT_EOF
19146 ;;
19147 esac
19148
19149
19150ltmain="$ac_aux_dir/ltmain.sh"
19151
19152
19153 # We use sed instead of cat because bash on DJGPP gets confused if
19154 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19155 # text mode, it properly converts lines to CR/LF. This bash problem
19156 # is reportedly fixed, but why not run on old versions too?
19157 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19158 || (rm -f "$cfgfile"; exit 1)
19159
19160 case $xsi_shell in
19161 yes)
19162 cat << \_LT_EOF >> "$cfgfile"
b214d478 19163
d7040cdb
SE
19164# func_dirname file append nondir_replacement
19165# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19166# otherwise set result to NONDIR_REPLACEMENT.
19167func_dirname ()
19168{
19169 case ${1} in
19170 */*) func_dirname_result="${1%/*}${2}" ;;
19171 * ) func_dirname_result="${3}" ;;
19172 esac
19173}
19174
19175# func_basename file
19176func_basename ()
19177{
19178 func_basename_result="${1##*/}"
19179}
19180
b214d478
SE
19181# func_dirname_and_basename file append nondir_replacement
19182# perform func_basename and func_dirname in a single function
19183# call:
19184# dirname: Compute the dirname of FILE. If nonempty,
19185# add APPEND to the result, otherwise set result
19186# to NONDIR_REPLACEMENT.
19187# value returned in "$func_dirname_result"
19188# basename: Compute filename of FILE.
19189# value retuned in "$func_basename_result"
19190# Implementation must be kept synchronized with func_dirname
19191# and func_basename. For efficiency, we do not delegate to
19192# those functions but instead duplicate the functionality here.
19193func_dirname_and_basename ()
19194{
19195 case ${1} in
19196 */*) func_dirname_result="${1%/*}${2}" ;;
19197 * ) func_dirname_result="${3}" ;;
19198 esac
19199 func_basename_result="${1##*/}"
19200}
19201
d7040cdb
SE
19202# func_stripname prefix suffix name
19203# strip PREFIX and SUFFIX off of NAME.
19204# PREFIX and SUFFIX must not contain globbing or regex special
19205# characters, hashes, percent signs, but SUFFIX may contain a leading
19206# dot (in which case that matches only a dot).
19207func_stripname ()
19208{
19209 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19210 # positional parameters, so assign one to ordinary parameter first.
19211 func_stripname_result=${3}
19212 func_stripname_result=${func_stripname_result#"${1}"}
19213 func_stripname_result=${func_stripname_result%"${2}"}
19214}
19215
19216# func_opt_split
19217func_opt_split ()
19218{
19219 func_opt_split_opt=${1%%=*}
19220 func_opt_split_arg=${1#*=}
19221}
19222
19223# func_lo2o object
19224func_lo2o ()
19225{
19226 case ${1} in
19227 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19228 *) func_lo2o_result=${1} ;;
19229 esac
19230}
b214d478
SE
19231
19232# func_xform libobj-or-source
19233func_xform ()
19234{
19235 func_xform_result=${1%.*}.lo
19236}
19237
19238# func_arith arithmetic-term...
19239func_arith ()
19240{
19241 func_arith_result=$(( $* ))
19242}
19243
19244# func_len string
19245# STRING may not start with a hyphen.
19246func_len ()
19247{
19248 func_len_result=${#1}
19249}
19250
d7040cdb
SE
19251_LT_EOF
19252 ;;
19253 *) # Bourne compatible functions.
19254 cat << \_LT_EOF >> "$cfgfile"
b214d478 19255
d7040cdb
SE
19256# func_dirname file append nondir_replacement
19257# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19258# otherwise set result to NONDIR_REPLACEMENT.
19259func_dirname ()
19260{
19261 # Extract subdirectory from the argument.
3725885a 19262 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
d7040cdb
SE
19263 if test "X$func_dirname_result" = "X${1}"; then
19264 func_dirname_result="${3}"
19265 else
19266 func_dirname_result="$func_dirname_result${2}"
19267 fi
19268}
19269
19270# func_basename file
19271func_basename ()
19272{
3725885a 19273 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
d7040cdb
SE
19274}
19275
b214d478 19276
d7040cdb
SE
19277# func_stripname prefix suffix name
19278# strip PREFIX and SUFFIX off of NAME.
19279# PREFIX and SUFFIX must not contain globbing or regex special
19280# characters, hashes, percent signs, but SUFFIX may contain a leading
19281# dot (in which case that matches only a dot).
19282# func_strip_suffix prefix name
19283func_stripname ()
19284{
19285 case ${2} in
3725885a
RW
19286 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19287 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
d7040cdb
SE
19288 esac
19289}
19290
19291# sed scripts:
19292my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19293my_sed_long_arg='1s/^-[^=]*=//'
19294
19295# func_opt_split
19296func_opt_split ()
19297{
3725885a
RW
19298 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19299 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
d7040cdb
SE
19300}
19301
19302# func_lo2o object
19303func_lo2o ()
19304{
3725885a 19305 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
d7040cdb 19306}
b214d478
SE
19307
19308# func_xform libobj-or-source
19309func_xform ()
19310{
3725885a 19311 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
b214d478
SE
19312}
19313
19314# func_arith arithmetic-term...
19315func_arith ()
19316{
19317 func_arith_result=`expr "$@"`
19318}
19319
19320# func_len string
19321# STRING may not start with a hyphen.
19322func_len ()
19323{
19324 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19325}
19326
d7040cdb
SE
19327_LT_EOF
19328esac
19329
19330case $lt_shell_append in
19331 yes)
19332 cat << \_LT_EOF >> "$cfgfile"
19333
19334# func_append var value
19335# Append VALUE to the end of shell variable VAR.
19336func_append ()
19337{
19338 eval "$1+=\$2"
19339}
19340_LT_EOF
19341 ;;
19342 *)
19343 cat << \_LT_EOF >> "$cfgfile"
19344
19345# func_append var value
19346# Append VALUE to the end of shell variable VAR.
19347func_append ()
19348{
19349 eval "$1=\$$1\$2"
19350}
b214d478 19351
d7040cdb
SE
19352_LT_EOF
19353 ;;
19354 esac
19355
19356
19357 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19358 || (rm -f "$cfgfile"; exit 1)
19359
19360 mv -f "$cfgfile" "$ofile" ||
19361 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19362 chmod +x "$ofile"
19363
3cb62297
L
19364
19365 cat <<_LT_EOF >> "$ofile"
19366
19367# ### BEGIN LIBTOOL TAG CONFIG: CXX
19368
19369# The linker used to build libraries.
19370LD=$lt_LD_CXX
19371
19372# How to create reloadable object files.
19373reload_flag=$lt_reload_flag_CXX
19374reload_cmds=$lt_reload_cmds_CXX
19375
19376# Commands used to build an old-style archive.
19377old_archive_cmds=$lt_old_archive_cmds_CXX
19378
19379# A language specific compiler.
19380CC=$lt_compiler_CXX
19381
19382# Is the compiler the GNU compiler?
19383with_gcc=$GCC_CXX
19384
19385# Compiler flag to turn off builtin functions.
19386no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19387
19388# How to pass a linker flag through the compiler.
19389wl=$lt_lt_prog_compiler_wl_CXX
19390
19391# Additional compiler flags for building library objects.
19392pic_flag=$lt_lt_prog_compiler_pic_CXX
19393
19394# Compiler flag to prevent dynamic linking.
19395link_static_flag=$lt_lt_prog_compiler_static_CXX
19396
19397# Does compiler simultaneously support -c and -o options?
19398compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19399
19400# Whether or not to add -lc for building shared libraries.
19401build_libtool_need_lc=$archive_cmds_need_lc_CXX
19402
19403# Whether or not to disallow shared libs when runtime libs are static.
19404allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19405
19406# Compiler flag to allow reflexive dlopens.
19407export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19408
19409# Compiler flag to generate shared objects directly from archives.
19410whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19411
19412# Whether the compiler copes with passing no objects directly.
19413compiler_needs_object=$lt_compiler_needs_object_CXX
19414
19415# Create an old-style archive from a shared archive.
19416old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19417
19418# Create a temporary old-style archive to link instead of a shared archive.
19419old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19420
19421# Commands used to build a shared archive.
19422archive_cmds=$lt_archive_cmds_CXX
19423archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19424
19425# Commands used to build a loadable module if different from building
19426# a shared archive.
19427module_cmds=$lt_module_cmds_CXX
19428module_expsym_cmds=$lt_module_expsym_cmds_CXX
19429
19430# Whether we are building with GNU ld or not.
19431with_gnu_ld=$lt_with_gnu_ld_CXX
19432
19433# Flag that allows shared libraries with undefined symbols to be built.
19434allow_undefined_flag=$lt_allow_undefined_flag_CXX
19435
19436# Flag that enforces no undefined symbols.
19437no_undefined_flag=$lt_no_undefined_flag_CXX
19438
19439# Flag to hardcode \$libdir into a binary during linking.
19440# This must work even if \$libdir does not exist
19441hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19442
19443# If ld is used when linking, flag to hardcode \$libdir into a binary
19444# during linking. This must work even if \$libdir does not exist.
19445hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19446
19447# Whether we need a single "-rpath" flag with a separated argument.
19448hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19449
19450# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19451# DIR into the resulting binary.
19452hardcode_direct=$hardcode_direct_CXX
19453
19454# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19455# DIR into the resulting binary and the resulting library dependency is
19456# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19457# library is relocated.
19458hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19459
19460# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19461# into the resulting binary.
19462hardcode_minus_L=$hardcode_minus_L_CXX
19463
19464# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19465# into the resulting binary.
19466hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19467
19468# Set to "yes" if building a shared library automatically hardcodes DIR
19469# into the library and all subsequent libraries and executables linked
19470# against it.
19471hardcode_automatic=$hardcode_automatic_CXX
19472
19473# Set to yes if linker adds runtime paths of dependent libraries
19474# to runtime path list.
19475inherit_rpath=$inherit_rpath_CXX
19476
19477# Whether libtool must link a program against all its dependency libraries.
19478link_all_deplibs=$link_all_deplibs_CXX
19479
19480# Fix the shell variable \$srcfile for the compiler.
19481fix_srcfile_path=$lt_fix_srcfile_path_CXX
19482
19483# Set to "yes" if exported symbols are required.
19484always_export_symbols=$always_export_symbols_CXX
19485
19486# The commands to list exported symbols.
19487export_symbols_cmds=$lt_export_symbols_cmds_CXX
19488
19489# Symbols that should not be listed in the preloaded symbols.
19490exclude_expsyms=$lt_exclude_expsyms_CXX
19491
19492# Symbols that must always be exported.
19493include_expsyms=$lt_include_expsyms_CXX
19494
19495# Commands necessary for linking programs (against libraries) with templates.
19496prelink_cmds=$lt_prelink_cmds_CXX
19497
19498# Specify filename containing input files.
19499file_list_spec=$lt_file_list_spec_CXX
19500
19501# How to hardcode a shared library path into an executable.
19502hardcode_action=$hardcode_action_CXX
19503
19504# The directories searched by this compiler when creating a shared library.
19505compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19506
19507# Dependencies to place before and after the objects being linked to
19508# create a shared library.
19509predep_objects=$lt_predep_objects_CXX
19510postdep_objects=$lt_postdep_objects_CXX
19511predeps=$lt_predeps_CXX
19512postdeps=$lt_postdeps_CXX
19513
19514# The library search path used internally by the compiler when linking
19515# a shared library.
19516compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19517
19518# ### END LIBTOOL TAG CONFIG: CXX
19519_LT_EOF
19520
42ecbf5e 19521 ;;
81ecdfbb 19522 "default-1":C)
20e95c23
DJ
19523 for ac_file in $CONFIG_FILES; do
19524 # Support "outfile[:infile[:infile...]]"
19525 case "$ac_file" in
19526 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19527 esac
19528 # PO directories have a Makefile.in generated from Makefile.in.in.
19529 case "$ac_file" in */Makefile.in)
19530 # Adjust a relative srcdir.
19531 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
3cac54d2 19532 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
20e95c23
DJ
19533 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
19534 # In autoconf-2.13 it is called $ac_given_srcdir.
19535 # In autoconf-2.50 it is called $srcdir.
19536 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
19537 case "$ac_given_srcdir" in
19538 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
19539 /*) top_srcdir="$ac_given_srcdir" ;;
19540 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
19541 esac
19542 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
19543 rm -f "$ac_dir/POTFILES"
19544 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
19545 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
19546 POMAKEFILEDEPS="POTFILES.in"
19547 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
19548 # on $ac_dir but don't depend on user-specified configuration
19549 # parameters.
19550 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
19551 # The LINGUAS file contains the set of available languages.
19552 if test -n "$OBSOLETE_ALL_LINGUAS"; then
19553 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
19554 fi
19555 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
19556 # Hide the ALL_LINGUAS assigment from automake.
19557 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
19558 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
19559 else
19560 # The set of available languages was given in configure.in.
19561 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
19562 fi
19563 case "$ac_given_srcdir" in
19564 .) srcdirpre= ;;
19565 *) srcdirpre='$(srcdir)/' ;;
19566 esac
19567 POFILES=
19568 GMOFILES=
19569 UPDATEPOFILES=
19570 DUMMYPOFILES=
19571 for lang in $ALL_LINGUAS; do
19572 POFILES="$POFILES $srcdirpre$lang.po"
19573 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
19574 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
19575 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
19576 done
19577 # CATALOGS depends on both $ac_dir and the user's LINGUAS
19578 # environment variable.
19579 INST_LINGUAS=
19580 if test -n "$ALL_LINGUAS"; then
19581 for presentlang in $ALL_LINGUAS; do
19582 useit=no
19583 if test "%UNSET%" != "$LINGUAS"; then
19584 desiredlanguages="$LINGUAS"
19585 else
19586 desiredlanguages="$ALL_LINGUAS"
19587 fi
19588 for desiredlang in $desiredlanguages; do
19589 # Use the presentlang catalog if desiredlang is
19590 # a. equal to presentlang, or
19591 # b. a variant of presentlang (because in this case,
19592 # presentlang can be used as a fallback for messages
19593 # which are not translated in the desiredlang catalog).
19594 case "$desiredlang" in
19595 "$presentlang"*) useit=yes;;
19596 esac
19597 done
19598 if test $useit = yes; then
19599 INST_LINGUAS="$INST_LINGUAS $presentlang"
19600 fi
19601 done
19602 fi
19603 CATALOGS=
19604 if test -n "$INST_LINGUAS"; then
19605 for lang in $INST_LINGUAS; do
19606 CATALOGS="$CATALOGS $lang.gmo"
19607 done
19608 fi
19609 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
19610 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"
19611 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
19612 if test -f "$f"; then
19613 case "$f" in
19614 *.orig | *.bak | *~) ;;
19615 *) cat "$f" >> "$ac_dir/Makefile" ;;
19616 esac
19617 fi
19618 done
19619 fi
19620 ;;
19621 esac
19622 done ;;
81ecdfbb 19623
42ecbf5e 19624 esac
81ecdfbb 19625done # for ac_tag
42ecbf5e 19626
42ecbf5e 19627
81ecdfbb 19628as_fn_exit 0
42ecbf5e 19629_ACEOF
42ecbf5e
DJ
19630ac_clean_files=$ac_clean_files_save
19631
81ecdfbb
RW
19632test $ac_write_fail = 0 ||
19633 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19634
42ecbf5e
DJ
19635
19636# configure is writing to config.log, and then calls config.status.
19637# config.status does its own redirection, appending to config.log.
19638# Unfortunately, on DOS this fails, as config.log is still kept open
19639# by configure, so config.status won't be able to write to it; its
19640# output is simply discarded. So we exec the FD to /dev/null,
19641# effectively closing config.log, so it can be properly (re)opened and
19642# appended to by config.status. When coming back to configure, we
19643# need to make the FD available again.
19644if test "$no_create" != yes; then
19645 ac_cs_success=:
19646 ac_config_status_args=
19647 test "$silent" = yes &&
19648 ac_config_status_args="$ac_config_status_args --quiet"
19649 exec 5>/dev/null
19650 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19651 exec 5>>config.log
19652 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19653 # would make configure fail if this is the last instruction.
81ecdfbb
RW
19654 $ac_cs_success || as_fn_exit $?
19655fi
19656if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19658$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
42ecbf5e 19659fi
252b5132 19660
This page took 1.594544 seconds and 4 git commands to generate.