bfd/
[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
642OTOOL64
643OTOOL
644LIPO
645NMEDIT
646DSYMUTIL
81ecdfbb
RW
647RANLIB
648AR
649OBJDUMP
650LN_S
651NM
652ac_ct_DUMPBIN
653DUMPBIN
654LD
655FGREP
656SED
657LIBTOOL
397841b5
AM
658NO_WERROR
659WARN_CFLAGS
81ecdfbb
RW
660EGREP
661GREP
662CPP
4fda8867
NC
663installed_linker
664install_as_default
81ecdfbb
RW
665TARGET_SYSTEM_ROOT_DEFINE
666TARGET_SYSTEM_ROOT
667use_sysroot
64ac50ac
RW
668MAINT
669MAINTAINER_MODE_FALSE
670MAINTAINER_MODE_TRUE
81ecdfbb
RW
671am__fastdepCC_FALSE
672am__fastdepCC_TRUE
673CCDEPMODE
674AMDEPBACKSLASH
675AMDEP_FALSE
676AMDEP_TRUE
677am__quote
678am__include
679DEPDIR
680am__untar
681am__tar
682AMTAR
683am__leading_dot
684SET_MAKE
685AWK
686mkdir_p
687MKDIR_P
688INSTALL_STRIP_PROGRAM
689STRIP
690install_sh
691MAKEINFO
692AUTOHEADER
693AUTOMAKE
694AUTOCONF
695ACLOCAL
696VERSION
697PACKAGE
698CYGPATH_W
699am__isrc
700INSTALL_DATA
701INSTALL_SCRIPT
702INSTALL_PROGRAM
703OBJEXT
704EXEEXT
705ac_ct_CC
706CPPFLAGS
707LDFLAGS
708CFLAGS
709CC
710target_os
711target_vendor
712target_cpu
713target
714host_os
715host_vendor
716host_cpu
717host
718build_os
719build_vendor
720build_cpu
721build
722target_alias
723host_alias
724build_alias
725LIBS
726ECHO_T
727ECHO_N
728ECHO_C
729DEFS
730mandir
731localedir
732libdir
733psdir
734pdfdir
735dvidir
736htmldir
737infodir
738docdir
739oldincludedir
740includedir
741localstatedir
742sharedstatedir
743sysconfdir
744datadir
745datarootdir
746libexecdir
747sbindir
748bindir
749program_transform_name
750prefix
751exec_prefix
752PACKAGE_URL
753PACKAGE_BUGREPORT
754PACKAGE_STRING
755PACKAGE_VERSION
756PACKAGE_TARNAME
757PACKAGE_NAME
758PATH_SEPARATOR
759SHELL'
42ecbf5e 760ac_subst_files='TDIRS'
81ecdfbb
RW
761ac_user_opts='
762enable_option_checking
763enable_dependency_tracking
64ac50ac 764enable_maintainer_mode
81ecdfbb
RW
765with_lib_path
766enable_targets
767enable_64_bit_bfd
768with_sysroot
4fda8867 769enable_gold
81ecdfbb
RW
770enable_got
771enable_werror
772enable_build_warnings
da2f07f1 773enable_plugins
81ecdfbb
RW
774enable_largefile
775enable_shared
776enable_static
777with_pic
778enable_fast_install
779with_gnu_ld
780enable_libtool_lock
781enable_nls
02ecc8e9 782enable_initfini_array
81ecdfbb
RW
783'
784 ac_precious_vars='build_alias
785host_alias
786target_alias
787CC
788CFLAGS
789LDFLAGS
790LIBS
791CPPFLAGS
792CPP
793YACC
794YFLAGS'
795
252b5132
RH
796
797# Initialize some variables set by options.
42ecbf5e
DJ
798ac_init_help=
799ac_init_version=false
81ecdfbb
RW
800ac_unrecognized_opts=
801ac_unrecognized_sep=
252b5132
RH
802# The variables have the same names as the options, with
803# dashes changed to underlines.
42ecbf5e 804cache_file=/dev/null
252b5132 805exec_prefix=NONE
252b5132 806no_create=
252b5132
RH
807no_recursion=
808prefix=NONE
809program_prefix=NONE
810program_suffix=NONE
811program_transform_name=s,x,x,
812silent=
813site=
814srcdir=
252b5132
RH
815verbose=
816x_includes=NONE
817x_libraries=NONE
42ecbf5e
DJ
818
819# Installation directory options.
820# These are left unexpanded so users can "make install exec_prefix=/foo"
821# and all the variables that are supposed to be based on exec_prefix
822# by default will actually change.
823# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 824# (The list follows the same order as the GNU Coding Standards.)
252b5132
RH
825bindir='${exec_prefix}/bin'
826sbindir='${exec_prefix}/sbin'
827libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
828datarootdir='${prefix}/share'
829datadir='${datarootdir}'
252b5132
RH
830sysconfdir='${prefix}/etc'
831sharedstatedir='${prefix}/com'
832localstatedir='${prefix}/var'
252b5132
RH
833includedir='${prefix}/include'
834oldincludedir='/usr/include'
81ecdfbb
RW
835docdir='${datarootdir}/doc/${PACKAGE}'
836infodir='${datarootdir}/info'
837htmldir='${docdir}'
838dvidir='${docdir}'
839pdfdir='${docdir}'
840psdir='${docdir}'
841libdir='${exec_prefix}/lib'
842localedir='${datarootdir}/locale'
843mandir='${datarootdir}/man'
252b5132 844
252b5132 845ac_prev=
81ecdfbb 846ac_dashdash=
252b5132
RH
847for ac_option
848do
252b5132
RH
849 # If the previous option needs an argument, assign it.
850 if test -n "$ac_prev"; then
81ecdfbb 851 eval $ac_prev=\$ac_option
252b5132
RH
852 ac_prev=
853 continue
854 fi
855
81ecdfbb
RW
856 case $ac_option in
857 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
858 *) ac_optarg=yes ;;
859 esac
252b5132
RH
860
861 # Accept the important Cygnus configure options, so we can diagnose typos.
862
81ecdfbb
RW
863 case $ac_dashdash$ac_option in
864 --)
865 ac_dashdash=yes ;;
252b5132
RH
866
867 -bindir | --bindir | --bindi | --bind | --bin | --bi)
868 ac_prev=bindir ;;
869 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
42ecbf5e 870 bindir=$ac_optarg ;;
252b5132
RH
871
872 -build | --build | --buil | --bui | --bu)
42ecbf5e 873 ac_prev=build_alias ;;
252b5132 874 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
42ecbf5e 875 build_alias=$ac_optarg ;;
252b5132
RH
876
877 -cache-file | --cache-file | --cache-fil | --cache-fi \
878 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
879 ac_prev=cache_file ;;
880 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
881 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
42ecbf5e
DJ
882 cache_file=$ac_optarg ;;
883
884 --config-cache | -C)
885 cache_file=config.cache ;;
252b5132 886
81ecdfbb 887 -datadir | --datadir | --datadi | --datad)
252b5132 888 ac_prev=datadir ;;
81ecdfbb 889 -datadir=* | --datadir=* | --datadi=* | --datad=*)
42ecbf5e 890 datadir=$ac_optarg ;;
252b5132 891
81ecdfbb
RW
892 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
893 | --dataroo | --dataro | --datar)
894 ac_prev=datarootdir ;;
895 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
896 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
897 datarootdir=$ac_optarg ;;
898
252b5132 899 -disable-* | --disable-*)
81ecdfbb 900 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 901 # Reject names that are not valid shell variable names.
81ecdfbb
RW
902 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
903 as_fn_error "invalid feature name: $ac_useropt"
904 ac_useropt_orig=$ac_useropt
905 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
906 case $ac_user_opts in
907 *"
908"enable_$ac_useropt"
909"*) ;;
910 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
911 ac_unrecognized_sep=', ';;
912 esac
913 eval enable_$ac_useropt=no ;;
914
915 -docdir | --docdir | --docdi | --doc | --do)
916 ac_prev=docdir ;;
917 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
918 docdir=$ac_optarg ;;
919
920 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
921 ac_prev=dvidir ;;
922 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
923 dvidir=$ac_optarg ;;
252b5132
RH
924
925 -enable-* | --enable-*)
81ecdfbb 926 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 927 # Reject names that are not valid shell variable names.
81ecdfbb
RW
928 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929 as_fn_error "invalid feature name: $ac_useropt"
930 ac_useropt_orig=$ac_useropt
931 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932 case $ac_user_opts in
933 *"
934"enable_$ac_useropt"
935"*) ;;
936 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
937 ac_unrecognized_sep=', ';;
252b5132 938 esac
81ecdfbb 939 eval enable_$ac_useropt=\$ac_optarg ;;
252b5132
RH
940
941 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
942 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
943 | --exec | --exe | --ex)
944 ac_prev=exec_prefix ;;
945 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
946 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
947 | --exec=* | --exe=* | --ex=*)
42ecbf5e 948 exec_prefix=$ac_optarg ;;
252b5132
RH
949
950 -gas | --gas | --ga | --g)
951 # Obsolete; use --with-gas.
952 with_gas=yes ;;
953
42ecbf5e
DJ
954 -help | --help | --hel | --he | -h)
955 ac_init_help=long ;;
956 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
957 ac_init_help=recursive ;;
958 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
959 ac_init_help=short ;;
252b5132
RH
960
961 -host | --host | --hos | --ho)
42ecbf5e 962 ac_prev=host_alias ;;
252b5132 963 -host=* | --host=* | --hos=* | --ho=*)
42ecbf5e 964 host_alias=$ac_optarg ;;
252b5132 965
81ecdfbb
RW
966 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
967 ac_prev=htmldir ;;
968 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
969 | --ht=*)
970 htmldir=$ac_optarg ;;
971
252b5132
RH
972 -includedir | --includedir | --includedi | --included | --include \
973 | --includ | --inclu | --incl | --inc)
974 ac_prev=includedir ;;
975 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
976 | --includ=* | --inclu=* | --incl=* | --inc=*)
42ecbf5e 977 includedir=$ac_optarg ;;
252b5132
RH
978
979 -infodir | --infodir | --infodi | --infod | --info | --inf)
980 ac_prev=infodir ;;
981 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
42ecbf5e 982 infodir=$ac_optarg ;;
252b5132
RH
983
984 -libdir | --libdir | --libdi | --libd)
985 ac_prev=libdir ;;
986 -libdir=* | --libdir=* | --libdi=* | --libd=*)
42ecbf5e 987 libdir=$ac_optarg ;;
252b5132
RH
988
989 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
990 | --libexe | --libex | --libe)
991 ac_prev=libexecdir ;;
992 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
993 | --libexe=* | --libex=* | --libe=*)
42ecbf5e 994 libexecdir=$ac_optarg ;;
252b5132 995
81ecdfbb
RW
996 -localedir | --localedir | --localedi | --localed | --locale)
997 ac_prev=localedir ;;
998 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
999 localedir=$ac_optarg ;;
1000
252b5132 1001 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1002 | --localstate | --localstat | --localsta | --localst | --locals)
252b5132
RH
1003 ac_prev=localstatedir ;;
1004 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1005 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
42ecbf5e 1006 localstatedir=$ac_optarg ;;
252b5132
RH
1007
1008 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1009 ac_prev=mandir ;;
1010 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
42ecbf5e 1011 mandir=$ac_optarg ;;
252b5132
RH
1012
1013 -nfp | --nfp | --nf)
1014 # Obsolete; use --without-fp.
1015 with_fp=no ;;
1016
1017 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
42ecbf5e 1018 | --no-cr | --no-c | -n)
252b5132
RH
1019 no_create=yes ;;
1020
1021 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1022 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1023 no_recursion=yes ;;
1024
1025 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1026 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1027 | --oldin | --oldi | --old | --ol | --o)
1028 ac_prev=oldincludedir ;;
1029 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1030 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1031 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
42ecbf5e 1032 oldincludedir=$ac_optarg ;;
252b5132
RH
1033
1034 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1035 ac_prev=prefix ;;
1036 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
42ecbf5e 1037 prefix=$ac_optarg ;;
252b5132
RH
1038
1039 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1040 | --program-pre | --program-pr | --program-p)
1041 ac_prev=program_prefix ;;
1042 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1043 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
42ecbf5e 1044 program_prefix=$ac_optarg ;;
252b5132
RH
1045
1046 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1047 | --program-suf | --program-su | --program-s)
1048 ac_prev=program_suffix ;;
1049 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1050 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
42ecbf5e 1051 program_suffix=$ac_optarg ;;
252b5132
RH
1052
1053 -program-transform-name | --program-transform-name \
1054 | --program-transform-nam | --program-transform-na \
1055 | --program-transform-n | --program-transform- \
1056 | --program-transform | --program-transfor \
1057 | --program-transfo | --program-transf \
1058 | --program-trans | --program-tran \
1059 | --progr-tra | --program-tr | --program-t)
1060 ac_prev=program_transform_name ;;
1061 -program-transform-name=* | --program-transform-name=* \
1062 | --program-transform-nam=* | --program-transform-na=* \
1063 | --program-transform-n=* | --program-transform-=* \
1064 | --program-transform=* | --program-transfor=* \
1065 | --program-transfo=* | --program-transf=* \
1066 | --program-trans=* | --program-tran=* \
1067 | --progr-tra=* | --program-tr=* | --program-t=*)
42ecbf5e 1068 program_transform_name=$ac_optarg ;;
252b5132 1069
81ecdfbb
RW
1070 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1071 ac_prev=pdfdir ;;
1072 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1073 pdfdir=$ac_optarg ;;
1074
1075 -psdir | --psdir | --psdi | --psd | --ps)
1076 ac_prev=psdir ;;
1077 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1078 psdir=$ac_optarg ;;
1079
252b5132
RH
1080 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1081 | -silent | --silent | --silen | --sile | --sil)
1082 silent=yes ;;
1083
1084 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1085 ac_prev=sbindir ;;
1086 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1087 | --sbi=* | --sb=*)
42ecbf5e 1088 sbindir=$ac_optarg ;;
252b5132
RH
1089
1090 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1091 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1092 | --sharedst | --shareds | --shared | --share | --shar \
1093 | --sha | --sh)
1094 ac_prev=sharedstatedir ;;
1095 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1096 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1097 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1098 | --sha=* | --sh=*)
42ecbf5e 1099 sharedstatedir=$ac_optarg ;;
252b5132
RH
1100
1101 -site | --site | --sit)
1102 ac_prev=site ;;
1103 -site=* | --site=* | --sit=*)
42ecbf5e 1104 site=$ac_optarg ;;
85fbca6a 1105
252b5132
RH
1106 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1107 ac_prev=srcdir ;;
1108 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42ecbf5e 1109 srcdir=$ac_optarg ;;
252b5132
RH
1110
1111 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1112 | --syscon | --sysco | --sysc | --sys | --sy)
1113 ac_prev=sysconfdir ;;
1114 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1115 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
42ecbf5e 1116 sysconfdir=$ac_optarg ;;
252b5132
RH
1117
1118 -target | --target | --targe | --targ | --tar | --ta | --t)
42ecbf5e 1119 ac_prev=target_alias ;;
252b5132 1120 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
42ecbf5e 1121 target_alias=$ac_optarg ;;
252b5132
RH
1122
1123 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1124 verbose=yes ;;
1125
42ecbf5e
DJ
1126 -version | --version | --versio | --versi | --vers | -V)
1127 ac_init_version=: ;;
252b5132
RH
1128
1129 -with-* | --with-*)
81ecdfbb 1130 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 1131 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1133 as_fn_error "invalid package name: $ac_useropt"
1134 ac_useropt_orig=$ac_useropt
1135 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136 case $ac_user_opts in
1137 *"
1138"with_$ac_useropt"
1139"*) ;;
1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1141 ac_unrecognized_sep=', ';;
252b5132 1142 esac
81ecdfbb 1143 eval with_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1144
1145 -without-* | --without-*)
81ecdfbb 1146 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 1147 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1148 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149 as_fn_error "invalid package name: $ac_useropt"
1150 ac_useropt_orig=$ac_useropt
1151 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1152 case $ac_user_opts in
1153 *"
1154"with_$ac_useropt"
1155"*) ;;
1156 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1157 ac_unrecognized_sep=', ';;
1158 esac
1159 eval with_$ac_useropt=no ;;
252b5132
RH
1160
1161 --x)
1162 # Obsolete; use --with-x.
1163 with_x=yes ;;
1164
1165 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1166 | --x-incl | --x-inc | --x-in | --x-i)
1167 ac_prev=x_includes ;;
1168 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1169 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
42ecbf5e 1170 x_includes=$ac_optarg ;;
252b5132
RH
1171
1172 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1173 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1174 ac_prev=x_libraries ;;
1175 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1176 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
42ecbf5e 1177 x_libraries=$ac_optarg ;;
252b5132 1178
81ecdfbb
RW
1179 -*) as_fn_error "unrecognized option: \`$ac_option'
1180Try \`$0 --help' for more information."
252b5132
RH
1181 ;;
1182
42ecbf5e
DJ
1183 *=*)
1184 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1185 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1186 case $ac_envvar in #(
1187 '' | [0-9]* | *[!_$as_cr_alnum]* )
1188 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1189 esac
1190 eval $ac_envvar=\$ac_optarg
42ecbf5e
DJ
1191 export $ac_envvar ;;
1192
252b5132 1193 *)
42ecbf5e 1194 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1195 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
42ecbf5e 1196 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1197 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
42ecbf5e 1198 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
1199 ;;
1200
1201 esac
1202done
1203
1204if test -n "$ac_prev"; then
42ecbf5e 1205 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1206 as_fn_error "missing argument to $ac_option"
252b5132 1207fi
252b5132 1208
81ecdfbb
RW
1209if test -n "$ac_unrecognized_opts"; then
1210 case $enable_option_checking in
1211 no) ;;
1212 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1213 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
42ecbf5e 1214 esac
81ecdfbb 1215fi
252b5132 1216
81ecdfbb
RW
1217# Check all directory arguments for consistency.
1218for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1219 datadir sysconfdir sharedstatedir localstatedir includedir \
1220 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1221 libdir localedir mandir
252b5132 1222do
81ecdfbb
RW
1223 eval ac_val=\$$ac_var
1224 # Remove trailing slashes.
1225 case $ac_val in
1226 */ )
1227 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1228 eval $ac_var=\$ac_val;;
1229 esac
1230 # Be sure to have absolute directory names.
42ecbf5e 1231 case $ac_val in
81ecdfbb
RW
1232 [\\/$]* | ?:[\\/]* ) continue;;
1233 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
252b5132 1234 esac
81ecdfbb 1235 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
252b5132
RH
1236done
1237
42ecbf5e
DJ
1238# There might be people who depend on the old broken behavior: `$host'
1239# used to hold the argument of --host etc.
1240# FIXME: To remove some day.
1241build=$build_alias
1242host=$host_alias
1243target=$target_alias
1244
1245# FIXME: To remove some day.
1246if test "x$host_alias" != x; then
1247 if test "x$build_alias" = x; then
1248 cross_compiling=maybe
81ecdfbb 1249 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
42ecbf5e
DJ
1250 If a cross compiler is detected then cross compile mode will be used." >&2
1251 elif test "x$build_alias" != "x$host_alias"; then
1252 cross_compiling=yes
1253 fi
1254fi
e5a52504 1255
42ecbf5e
DJ
1256ac_tool_prefix=
1257test -n "$host_alias" && ac_tool_prefix=$host_alias-
1258
1259test "$silent" = yes && exec 6>/dev/null
252b5132 1260
252b5132 1261
81ecdfbb
RW
1262ac_pwd=`pwd` && test -n "$ac_pwd" &&
1263ac_ls_di=`ls -di .` &&
1264ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1265 as_fn_error "working directory cannot be determined"
1266test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1267 as_fn_error "pwd does not report name of working directory"
1268
1269
252b5132
RH
1270# Find the source files, if location was not specified.
1271if test -z "$srcdir"; then
1272 ac_srcdir_defaulted=yes
81ecdfbb
RW
1273 # Try the directory containing this script, then the parent directory.
1274 ac_confdir=`$as_dirname -- "$as_myself" ||
1275$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1276 X"$as_myself" : 'X\(//\)[^/]' \| \
1277 X"$as_myself" : 'X\(//\)$' \| \
1278 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1279$as_echo X"$as_myself" |
1280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1281 s//\1/
1282 q
1283 }
1284 /^X\(\/\/\)[^/].*/{
1285 s//\1/
1286 q
1287 }
1288 /^X\(\/\/\)$/{
1289 s//\1/
1290 q
1291 }
1292 /^X\(\/\).*/{
1293 s//\1/
1294 q
1295 }
1296 s/.*/./; q'`
252b5132 1297 srcdir=$ac_confdir
81ecdfbb 1298 if test ! -r "$srcdir/$ac_unique_file"; then
252b5132
RH
1299 srcdir=..
1300 fi
1301else
1302 ac_srcdir_defaulted=no
1303fi
81ecdfbb
RW
1304if test ! -r "$srcdir/$ac_unique_file"; then
1305 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1306 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1307fi
1308ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1309ac_abs_confdir=`(
1310 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1311 pwd)`
1312# When building in place, set srcdir=.
1313if test "$ac_abs_confdir" = "$ac_pwd"; then
1314 srcdir=.
1315fi
1316# Remove unnecessary trailing slashes from srcdir.
1317# Double slashes in file names in object file debugging info
1318# mess up M-x gdb in Emacs.
1319case $srcdir in
1320*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1321esac
1322for ac_var in $ac_precious_vars; do
1323 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1324 eval ac_env_${ac_var}_value=\$${ac_var}
1325 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1326 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1327done
252b5132 1328
42ecbf5e
DJ
1329#
1330# Report the --help message.
1331#
1332if test "$ac_init_help" = "long"; then
1333 # Omit some internal or obsolete options to make the list less imposing.
1334 # This message is too long to be a string in the A/UX 3.1 sh.
1335 cat <<_ACEOF
1336\`configure' configures this package to adapt to many kinds of systems.
252b5132 1337
42ecbf5e 1338Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 1339
42ecbf5e
DJ
1340To assign environment variables (e.g., CC, CFLAGS...), specify them as
1341VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 1342
42ecbf5e 1343Defaults for the options are specified in brackets.
ac48eca1 1344
42ecbf5e
DJ
1345Configuration:
1346 -h, --help display this help and exit
1347 --help=short display options specific to this package
1348 --help=recursive display the short help of all the included packages
1349 -V, --version display version information and exit
1350 -q, --quiet, --silent do not print \`checking...' messages
1351 --cache-file=FILE cache test results in FILE [disabled]
1352 -C, --config-cache alias for \`--cache-file=config.cache'
1353 -n, --no-create do not create output files
1354 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1355
42ecbf5e
DJ
1356Installation directories:
1357 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1358 [$ac_default_prefix]
42ecbf5e 1359 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1360 [PREFIX]
ac48eca1 1361
42ecbf5e
DJ
1362By default, \`make install' will install all the files in
1363\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1364an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1365for instance \`--prefix=\$HOME'.
ac48eca1 1366
42ecbf5e 1367For better control, use the options below.
ac48eca1 1368
42ecbf5e 1369Fine tuning of the installation directories:
81ecdfbb
RW
1370 --bindir=DIR user executables [EPREFIX/bin]
1371 --sbindir=DIR system admin executables [EPREFIX/sbin]
1372 --libexecdir=DIR program executables [EPREFIX/libexec]
1373 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1374 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1375 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1376 --libdir=DIR object code libraries [EPREFIX/lib]
1377 --includedir=DIR C header files [PREFIX/include]
1378 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1379 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1380 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1381 --infodir=DIR info documentation [DATAROOTDIR/info]
1382 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1383 --mandir=DIR man documentation [DATAROOTDIR/man]
1384 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1385 --htmldir=DIR html documentation [DOCDIR]
1386 --dvidir=DIR dvi documentation [DOCDIR]
1387 --pdfdir=DIR pdf documentation [DOCDIR]
1388 --psdir=DIR ps documentation [DOCDIR]
42ecbf5e 1389_ACEOF
ac48eca1 1390
42ecbf5e 1391 cat <<\_ACEOF
252b5132 1392
42ecbf5e
DJ
1393Program names:
1394 --program-prefix=PREFIX prepend PREFIX to installed program names
1395 --program-suffix=SUFFIX append SUFFIX to installed program names
1396 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 1397
42ecbf5e
DJ
1398System types:
1399 --build=BUILD configure for building on BUILD [guessed]
1400 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1401 --target=TARGET configure for building compilers for TARGET [HOST]
1402_ACEOF
252b5132 1403fi
252b5132 1404
42ecbf5e 1405if test -n "$ac_init_help"; then
252b5132 1406
42ecbf5e 1407 cat <<\_ACEOF
e5a52504 1408
42ecbf5e 1409Optional Features:
81ecdfbb 1410 --disable-option-checking ignore unrecognized --enable/--with options
42ecbf5e
DJ
1411 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1412 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1413 --disable-dependency-tracking speeds up one-time build
1414 --enable-dependency-tracking do not reject slow dependency extractors
64ac50ac
RW
1415 --enable-maintainer-mode enable make rules and dependencies not useful
1416 (and sometimes confusing) to the casual installer
ce2cded5
L
1417 --enable-targets alternative target configurations
1418 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
c7791212 1419 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
7fb9f789
NC
1420 --enable-got=<type> GOT handling scheme (target, single, negative,
1421 multigot)
ce2cded5
L
1422 --enable-werror treat compile warnings as errors
1423 --enable-build-warnings enable build-time compiler warnings
da2f07f1 1424 --enable-plugins Enable support for plugins (defaults no)
d053aef8 1425 --disable-largefile omit support for large files
81ecdfbb
RW
1426 --enable-shared[=PKGS] build shared libraries [default=yes]
1427 --enable-static[=PKGS] build static libraries [default=yes]
d7040cdb
SE
1428 --enable-fast-install[=PKGS]
1429 optimize for fast installation [default=yes]
42ecbf5e 1430 --disable-libtool-lock avoid locking (might break parallel builds)
42ecbf5e 1431 --disable-nls do not use Native Language Support
02ecc8e9 1432 --enable-initfini-array use .init_array/.fini_array sections
42ecbf5e
DJ
1433
1434Optional Packages:
1435 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1436 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
ce2cded5
L
1437 --with-lib-path=dir1:dir2... set default LIB_PATH
1438 --with-sysroot=DIR Search for usr/lib et al within DIR.
d7040cdb
SE
1439 --with-pic try to use only PIC/non-PIC objects [default=use
1440 both]
1441 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
42ecbf5e
DJ
1442
1443Some influential environment variables:
1444 CC C compiler command
1445 CFLAGS C compiler flags
1446 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1447 nonstandard directory <lib dir>
81ecdfbb
RW
1448 LIBS libraries to pass to the linker, e.g. -l<library>
1449 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1450 you have headers in a nonstandard directory <include dir>
42ecbf5e 1451 CPP C preprocessor
81ecdfbb
RW
1452 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1453 the first program found out of: `bison -y', `byacc', `yacc'.
1454 YFLAGS The list of arguments that will be passed by default to $YACC.
1455 This script will default YFLAGS to the empty string to avoid a
1456 default value of `-d' given by some make applications.
42ecbf5e
DJ
1457
1458Use these variables to override the choices made by `configure' or to help
1459it to find libraries and programs with nonstandard names/locations.
1460
81ecdfbb 1461Report bugs to the package provider.
42ecbf5e 1462_ACEOF
81ecdfbb 1463ac_status=$?
42ecbf5e
DJ
1464fi
1465
1466if test "$ac_init_help" = "recursive"; then
1467 # If there are subdirs, report their specific --help.
42ecbf5e 1468 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1469 test -d "$ac_dir" ||
1470 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1471 continue
42ecbf5e
DJ
1472 ac_builddir=.
1473
81ecdfbb
RW
1474case "$ac_dir" in
1475.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1476*)
1477 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1478 # A ".." for each directory in $ac_dir_suffix.
1479 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1480 case $ac_top_builddir_sub in
1481 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1482 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1483 esac ;;
1484esac
1485ac_abs_top_builddir=$ac_pwd
1486ac_abs_builddir=$ac_pwd$ac_dir_suffix
1487# for backward compatibility:
1488ac_top_builddir=$ac_top_build_prefix
42ecbf5e
DJ
1489
1490case $srcdir in
81ecdfbb 1491 .) # We are building in place.
42ecbf5e 1492 ac_srcdir=.
81ecdfbb
RW
1493 ac_top_srcdir=$ac_top_builddir_sub
1494 ac_abs_top_srcdir=$ac_pwd ;;
1495 [\\/]* | ?:[\\/]* ) # Absolute name.
42ecbf5e 1496 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1497 ac_top_srcdir=$srcdir
1498 ac_abs_top_srcdir=$srcdir ;;
1499 *) # Relative name.
1500 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1501 ac_top_srcdir=$ac_top_build_prefix$srcdir
1502 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42ecbf5e 1503esac
81ecdfbb
RW
1504ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1505
1506 cd "$ac_dir" || { ac_status=$?; continue; }
1507 # Check for guested configure.
1508 if test -f "$ac_srcdir/configure.gnu"; then
1509 echo &&
1510 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1511 elif test -f "$ac_srcdir/configure"; then
1512 echo &&
1513 $SHELL "$ac_srcdir/configure" --help=recursive
42ecbf5e 1514 else
81ecdfbb
RW
1515 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1516 fi || ac_status=$?
1517 cd "$ac_pwd" || { ac_status=$?; break; }
42ecbf5e 1518 done
a2d91340
AC
1519fi
1520
81ecdfbb 1521test -n "$ac_init_help" && exit $ac_status
42ecbf5e
DJ
1522if $ac_init_version; then
1523 cat <<\_ACEOF
81ecdfbb
RW
1524configure
1525generated by GNU Autoconf 2.64
a2d91340 1526
81ecdfbb 1527Copyright (C) 2009 Free Software Foundation, Inc.
42ecbf5e
DJ
1528This configure script is free software; the Free Software Foundation
1529gives unlimited permission to copy, distribute and modify it.
1530_ACEOF
81ecdfbb 1531 exit
42ecbf5e 1532fi
a2d91340 1533
81ecdfbb
RW
1534## ------------------------ ##
1535## Autoconf initialization. ##
1536## ------------------------ ##
a2d91340 1537
81ecdfbb
RW
1538# ac_fn_c_try_compile LINENO
1539# --------------------------
1540# Try to compile conftest.$ac_ext, and return whether this succeeded.
1541ac_fn_c_try_compile ()
1542{
1543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1544 rm -f conftest.$ac_objext
1545 if { { ac_try="$ac_compile"
1546case "(($ac_try" in
1547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1548 *) ac_try_echo=$ac_try;;
1549esac
1550eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1551$as_echo "$ac_try_echo"; } >&5
1552 (eval "$ac_compile") 2>conftest.err
1553 ac_status=$?
1554 if test -s conftest.err; then
1555 grep -v '^ *+' conftest.err >conftest.er1
1556 cat conftest.er1 >&5
1557 mv -f conftest.er1 conftest.err
1558 fi
1559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1560 test $ac_status = 0; } && {
1561 test -z "$ac_c_werror_flag" ||
1562 test ! -s conftest.err
1563 } && test -s conftest.$ac_objext; then :
1564 ac_retval=0
1565else
1566 $as_echo "$as_me: failed program was:" >&5
1567sed 's/^/| /' conftest.$ac_ext >&5
a2d91340 1568
81ecdfbb
RW
1569 ac_retval=1
1570fi
1571 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1572 return $ac_retval
1573
1574} # ac_fn_c_try_compile
1575
1576# ac_fn_c_try_link LINENO
1577# -----------------------
1578# Try to link conftest.$ac_ext, and return whether this succeeded.
1579ac_fn_c_try_link ()
42ecbf5e 1580{
81ecdfbb
RW
1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582 rm -f conftest.$ac_objext conftest$ac_exeext
1583 if { { ac_try="$ac_link"
1584case "(($ac_try" in
1585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1586 *) ac_try_echo=$ac_try;;
1587esac
1588eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1589$as_echo "$ac_try_echo"; } >&5
1590 (eval "$ac_link") 2>conftest.err
1591 ac_status=$?
1592 if test -s conftest.err; then
1593 grep -v '^ *+' conftest.err >conftest.er1
1594 cat conftest.er1 >&5
1595 mv -f conftest.er1 conftest.err
1596 fi
1597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1598 test $ac_status = 0; } && {
1599 test -z "$ac_c_werror_flag" ||
1600 test ! -s conftest.err
1601 } && test -s conftest$ac_exeext && {
1602 test "$cross_compiling" = yes ||
1603 $as_test_x conftest$ac_exeext
1604 }; then :
1605 ac_retval=0
1606else
1607 $as_echo "$as_me: failed program was:" >&5
1608sed 's/^/| /' conftest.$ac_ext >&5
42ecbf5e 1609
81ecdfbb
RW
1610 ac_retval=1
1611fi
1612 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1613 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1614 # interfere with the next link command; also delete a directory that is
1615 # left behind by Apple's compiler. We do this before executing the actions.
1616 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1617 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1618 return $ac_retval
42ecbf5e 1619
81ecdfbb 1620} # ac_fn_c_try_link
42ecbf5e 1621
81ecdfbb
RW
1622# ac_fn_c_try_cpp LINENO
1623# ----------------------
1624# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1625ac_fn_c_try_cpp ()
1626{
1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628 if { { ac_try="$ac_cpp conftest.$ac_ext"
1629case "(($ac_try" in
1630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1631 *) ac_try_echo=$ac_try;;
1632esac
1633eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634$as_echo "$ac_try_echo"; } >&5
1635 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1636 ac_status=$?
1637 if test -s conftest.err; then
1638 grep -v '^ *+' conftest.err >conftest.er1
1639 cat conftest.er1 >&5
1640 mv -f conftest.er1 conftest.err
1641 fi
1642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643 test $ac_status = 0; } >/dev/null && {
1644 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1645 test ! -s conftest.err
1646 }; then :
1647 ac_retval=0
1648else
1649 $as_echo "$as_me: failed program was:" >&5
1650sed 's/^/| /' conftest.$ac_ext >&5
1651
1652 ac_retval=1
1653fi
1654 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1655 return $ac_retval
1656
1657} # ac_fn_c_try_cpp
1658
1659# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1660# -------------------------------------------------------
1661# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1662# the include files in INCLUDES and setting the cache variable VAR
1663# accordingly.
1664ac_fn_c_check_header_mongrel ()
1665{
1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1669$as_echo_n "checking for $2... " >&6; }
1670if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1671 $as_echo_n "(cached) " >&6
1672fi
1673eval ac_res=\$$3
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1675$as_echo "$ac_res" >&6; }
1676else
1677 # Is the header compilable?
1678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1679$as_echo_n "checking $2 usability... " >&6; }
1680cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1681/* end confdefs.h. */
1682$4
1683#include <$2>
1684_ACEOF
1685if ac_fn_c_try_compile "$LINENO"; then :
1686 ac_header_compiler=yes
1687else
1688 ac_header_compiler=no
1689fi
1690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1692$as_echo "$ac_header_compiler" >&6; }
1693
1694# Is the header present?
1695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1696$as_echo_n "checking $2 presence... " >&6; }
1697cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1698/* end confdefs.h. */
1699#include <$2>
1700_ACEOF
1701if ac_fn_c_try_cpp "$LINENO"; then :
1702 ac_header_preproc=yes
1703else
1704 ac_header_preproc=no
1705fi
1706rm -f conftest.err conftest.$ac_ext
1707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1708$as_echo "$ac_header_preproc" >&6; }
1709
1710# So? What about this header?
1711case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1712 yes:no: )
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1714$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1716$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1717 ;;
1718 no:yes:* )
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1720$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1722$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1724$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1726$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1728$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1729 ;;
1730esac
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1732$as_echo_n "checking for $2... " >&6; }
1733if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1734 $as_echo_n "(cached) " >&6
1735else
1736 eval "$3=\$ac_header_compiler"
1737fi
1738eval ac_res=\$$3
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1740$as_echo "$ac_res" >&6; }
1741fi
1742 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1743
1744} # ac_fn_c_check_header_mongrel
1745
1746# ac_fn_c_try_run LINENO
1747# ----------------------
1748# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1749# that executables *can* be run.
1750ac_fn_c_try_run ()
1751{
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 if { { ac_try="$ac_link"
1754case "(($ac_try" in
1755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756 *) ac_try_echo=$ac_try;;
1757esac
1758eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759$as_echo "$ac_try_echo"; } >&5
1760 (eval "$ac_link") 2>&5
1761 ac_status=$?
1762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1764 { { case "(($ac_try" in
1765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1766 *) ac_try_echo=$ac_try;;
1767esac
1768eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769$as_echo "$ac_try_echo"; } >&5
1770 (eval "$ac_try") 2>&5
1771 ac_status=$?
1772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773 test $ac_status = 0; }; }; then :
1774 ac_retval=0
1775else
1776 $as_echo "$as_me: program exited with status $ac_status" >&5
1777 $as_echo "$as_me: failed program was:" >&5
1778sed 's/^/| /' conftest.$ac_ext >&5
1779
1780 ac_retval=$ac_status
1781fi
1782 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1783 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1784 return $ac_retval
1785
1786} # ac_fn_c_try_run
1787
1788# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1789# -------------------------------------------------------
1790# Tests whether HEADER exists and can be compiled using the include files in
1791# INCLUDES, setting the cache variable VAR accordingly.
1792ac_fn_c_check_header_compile ()
1793{
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1796$as_echo_n "checking for $2... " >&6; }
1797if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1798 $as_echo_n "(cached) " >&6
1799else
1800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801/* end confdefs.h. */
1802$4
1803#include <$2>
1804_ACEOF
1805if ac_fn_c_try_compile "$LINENO"; then :
1806 eval "$3=yes"
1807else
1808 eval "$3=no"
1809fi
1810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1811fi
1812eval ac_res=\$$3
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1814$as_echo "$ac_res" >&6; }
1815 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1816
1817} # ac_fn_c_check_header_compile
1818
1819# ac_fn_c_check_func LINENO FUNC VAR
1820# ----------------------------------
1821# Tests whether FUNC exists, setting the cache variable VAR accordingly
1822ac_fn_c_check_func ()
1823{
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1826$as_echo_n "checking for $2... " >&6; }
1827if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1828 $as_echo_n "(cached) " >&6
1829else
1830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1831/* end confdefs.h. */
1832/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1834#define $2 innocuous_$2
1835
1836/* System header to define __stub macros and hopefully few prototypes,
1837 which can conflict with char $2 (); below.
1838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1839 <limits.h> exists even on freestanding compilers. */
1840
1841#ifdef __STDC__
1842# include <limits.h>
1843#else
1844# include <assert.h>
1845#endif
1846
1847#undef $2
1848
1849/* Override any GCC internal prototype to avoid an error.
1850 Use char because int might match the return type of a GCC
1851 builtin and then its argument prototype would still apply. */
1852#ifdef __cplusplus
1853extern "C"
1854#endif
1855char $2 ();
1856/* The GNU C library defines this for functions which it implements
1857 to always fail with ENOSYS. Some functions are actually named
1858 something starting with __ and the normal name is an alias. */
1859#if defined __stub_$2 || defined __stub___$2
1860choke me
1861#endif
1862
1863int
1864main ()
1865{
1866return $2 ();
1867 ;
1868 return 0;
1869}
1870_ACEOF
1871if ac_fn_c_try_link "$LINENO"; then :
1872 eval "$3=yes"
1873else
1874 eval "$3=no"
1875fi
1876rm -f core conftest.err conftest.$ac_objext \
1877 conftest$ac_exeext conftest.$ac_ext
1878fi
1879eval ac_res=\$$3
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1881$as_echo "$ac_res" >&6; }
1882 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1883
1884} # ac_fn_c_check_func
1885
1886# ac_fn_c_check_decl LINENO SYMBOL VAR
1887# ------------------------------------
1888# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1889ac_fn_c_check_decl ()
1890{
1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
360cfc9c
AM
1892 as_decl_name=`echo $2|sed 's/ *(.*//'`
1893 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1895$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
81ecdfbb
RW
1896if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1897 $as_echo_n "(cached) " >&6
1898else
1899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1900/* end confdefs.h. */
1901$4
1902int
1903main ()
1904{
360cfc9c
AM
1905#ifndef $as_decl_name
1906#ifdef __cplusplus
1907 (void) $as_decl_use;
1908#else
1909 (void) $as_decl_name;
1910#endif
81ecdfbb
RW
1911#endif
1912
1913 ;
1914 return 0;
1915}
1916_ACEOF
1917if ac_fn_c_try_compile "$LINENO"; then :
1918 eval "$3=yes"
1919else
1920 eval "$3=no"
1921fi
1922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1923fi
1924eval ac_res=\$$3
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1926$as_echo "$ac_res" >&6; }
1927 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1928
1929} # ac_fn_c_check_decl
1930
1931# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1932# --------------------------------------------
1933# Tries to find the compile-time value of EXPR in a program that includes
1934# INCLUDES, setting VAR accordingly. Returns whether the value could be
1935# computed
1936ac_fn_c_compute_int ()
1937{
1938 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1939 if test "$cross_compiling" = yes; then
1940 # Depending upon the size, compute the lo and hi bounds.
1941cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1942/* end confdefs.h. */
1943$4
1944int
1945main ()
1946{
1947static int test_array [1 - 2 * !(($2) >= 0)];
1948test_array [0] = 0
1949
1950 ;
1951 return 0;
1952}
1953_ACEOF
1954if ac_fn_c_try_compile "$LINENO"; then :
1955 ac_lo=0 ac_mid=0
1956 while :; do
1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958/* end confdefs.h. */
1959$4
1960int
1961main ()
1962{
1963static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1964test_array [0] = 0
1965
1966 ;
1967 return 0;
1968}
1969_ACEOF
1970if ac_fn_c_try_compile "$LINENO"; then :
1971 ac_hi=$ac_mid; break
1972else
1973 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1974 if test $ac_lo -le $ac_mid; then
1975 ac_lo= ac_hi=
1976 break
1977 fi
1978 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1979fi
1980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1981 done
1982else
1983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984/* end confdefs.h. */
1985$4
1986int
1987main ()
1988{
1989static int test_array [1 - 2 * !(($2) < 0)];
1990test_array [0] = 0
1991
1992 ;
1993 return 0;
1994}
1995_ACEOF
1996if ac_fn_c_try_compile "$LINENO"; then :
1997 ac_hi=-1 ac_mid=-1
1998 while :; do
1999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000/* end confdefs.h. */
2001$4
2002int
2003main ()
2004{
2005static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2006test_array [0] = 0
2007
2008 ;
2009 return 0;
2010}
2011_ACEOF
2012if ac_fn_c_try_compile "$LINENO"; then :
2013 ac_lo=$ac_mid; break
2014else
2015 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2016 if test $ac_mid -le $ac_hi; then
2017 ac_lo= ac_hi=
2018 break
2019 fi
2020 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2021fi
2022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2023 done
2024else
2025 ac_lo= ac_hi=
2026fi
2027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2028fi
2029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2030# Binary search between lo and hi bounds.
2031while test "x$ac_lo" != "x$ac_hi"; do
2032 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034/* end confdefs.h. */
2035$4
2036int
2037main ()
2038{
2039static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2040test_array [0] = 0
2041
2042 ;
2043 return 0;
2044}
2045_ACEOF
2046if ac_fn_c_try_compile "$LINENO"; then :
2047 ac_hi=$ac_mid
2048else
2049 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2050fi
2051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2052done
2053case $ac_lo in #((
2054?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2055'') ac_retval=1 ;;
2056esac
2057 else
2058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2059/* end confdefs.h. */
2060$4
2061static long int longval () { return $2; }
2062static unsigned long int ulongval () { return $2; }
2063#include <stdio.h>
2064#include <stdlib.h>
2065int
2066main ()
2067{
2068
2069 FILE *f = fopen ("conftest.val", "w");
2070 if (! f)
2071 return 1;
2072 if (($2) < 0)
2073 {
2074 long int i = longval ();
2075 if (i != ($2))
2076 return 1;
2077 fprintf (f, "%ld", i);
2078 }
2079 else
2080 {
2081 unsigned long int i = ulongval ();
2082 if (i != ($2))
2083 return 1;
2084 fprintf (f, "%lu", i);
2085 }
2086 /* Do not output a trailing newline, as this causes \r\n confusion
2087 on some platforms. */
2088 return ferror (f) || fclose (f) != 0;
2089
2090 ;
2091 return 0;
2092}
2093_ACEOF
2094if ac_fn_c_try_run "$LINENO"; then :
2095 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2096else
2097 ac_retval=1
2098fi
2099rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2100 conftest.$ac_objext conftest.beam conftest.$ac_ext
2101rm -f conftest.val
2102
2103 fi
2104 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2105 return $ac_retval
2106
2107} # ac_fn_c_compute_int
2108cat >config.log <<_ACEOF
2109This file contains any messages produced by compilers while
2110running configure, to aid debugging if configure makes a mistake.
2111
2112It was created by $as_me, which was
2113generated by GNU Autoconf 2.64. Invocation command line was
2114
2115 $ $0 $@
2116
2117_ACEOF
2118exec 5>>config.log
2119{
2120cat <<_ASUNAME
2121## --------- ##
2122## Platform. ##
2123## --------- ##
2124
2125hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2126uname -m = `(uname -m) 2>/dev/null || echo unknown`
2127uname -r = `(uname -r) 2>/dev/null || echo unknown`
2128uname -s = `(uname -s) 2>/dev/null || echo unknown`
2129uname -v = `(uname -v) 2>/dev/null || echo unknown`
2130
2131/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2132/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2133
2134/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2135/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2136/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2137/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
42ecbf5e
DJ
2138/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2139/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2140/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2141
2142_ASUNAME
2143
2144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145for as_dir in $PATH
2146do
2147 IFS=$as_save_IFS
2148 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2149 $as_echo "PATH: $as_dir"
2150 done
2151IFS=$as_save_IFS
252b5132 2152
42ecbf5e 2153} >&5
5d64ca4e 2154
42ecbf5e 2155cat >&5 <<_ACEOF
5d64ca4e 2156
5d64ca4e 2157
42ecbf5e
DJ
2158## ----------- ##
2159## Core tests. ##
2160## ----------- ##
5d64ca4e 2161
42ecbf5e 2162_ACEOF
2469cfa2 2163
42ecbf5e
DJ
2164
2165# Keep a trace of the command line.
2166# Strip out --no-create and --no-recursion so they do not pile up.
2167# Strip out --silent because we don't want to record it for future runs.
2168# Also quote any args containing shell meta-characters.
2169# Make two passes to allow for proper duplicate-argument suppression.
2170ac_configure_args=
2171ac_configure_args0=
2172ac_configure_args1=
42ecbf5e
DJ
2173ac_must_keep_next=false
2174for ac_pass in 1 2
2175do
2176 for ac_arg
2177 do
2178 case $ac_arg in
2179 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2180 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2181 | -silent | --silent | --silen | --sile | --sil)
2182 continue ;;
81ecdfbb
RW
2183 *\'*)
2184 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
42ecbf5e
DJ
2185 esac
2186 case $ac_pass in
81ecdfbb 2187 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
42ecbf5e 2188 2)
81ecdfbb 2189 as_fn_append ac_configure_args1 " '$ac_arg'"
42ecbf5e
DJ
2190 if test $ac_must_keep_next = true; then
2191 ac_must_keep_next=false # Got value, back to normal.
2192 else
2193 case $ac_arg in
2194 *=* | --config-cache | -C | -disable-* | --disable-* \
2195 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2196 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2197 | -with-* | --with-* | -without-* | --without-* | --x)
2198 case "$ac_configure_args0 " in
2199 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2200 esac
2201 ;;
2202 -* ) ac_must_keep_next=true ;;
2203 esac
2204 fi
81ecdfbb 2205 as_fn_append ac_configure_args " '$ac_arg'"
42ecbf5e
DJ
2206 ;;
2207 esac
2208 done
2209done
81ecdfbb
RW
2210{ ac_configure_args0=; unset ac_configure_args0;}
2211{ ac_configure_args1=; unset ac_configure_args1;}
42ecbf5e
DJ
2212
2213# When interrupted or exit'd, cleanup temporary files, and complete
2214# config.log. We remove comments because anyway the quotes in there
2215# would cause problems or look ugly.
81ecdfbb
RW
2216# WARNING: Use '\'' to represent an apostrophe within the trap.
2217# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
42ecbf5e
DJ
2218trap 'exit_status=$?
2219 # Save into config.log some information that might help in debugging.
2220 {
2221 echo
2222
2223 cat <<\_ASBOX
2224## ---------------- ##
2225## Cache variables. ##
2226## ---------------- ##
2227_ASBOX
2228 echo
2229 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2230(
2231 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2232 eval ac_val=\$$ac_var
2233 case $ac_val in #(
2234 *${as_nl}*)
2235 case $ac_var in #(
2236 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2237$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2238 esac
2239 case $ac_var in #(
2240 _ | IFS | as_nl) ;; #(
2241 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2242 *) { eval $ac_var=; unset $ac_var;} ;;
2243 esac ;;
2244 esac
2245 done
42ecbf5e 2246 (set) 2>&1 |
81ecdfbb
RW
2247 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2248 *${as_nl}ac_space=\ *)
42ecbf5e 2249 sed -n \
81ecdfbb
RW
2250 "s/'\''/'\''\\\\'\'''\''/g;
2251 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2252 ;; #(
42ecbf5e 2253 *)
81ecdfbb 2254 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42ecbf5e 2255 ;;
81ecdfbb
RW
2256 esac |
2257 sort
2258)
42ecbf5e
DJ
2259 echo
2260
2261 cat <<\_ASBOX
2262## ----------------- ##
2263## Output variables. ##
2264## ----------------- ##
2265_ASBOX
2266 echo
2267 for ac_var in $ac_subst_vars
2268 do
81ecdfbb
RW
2269 eval ac_val=\$$ac_var
2270 case $ac_val in
2271 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2272 esac
2273 $as_echo "$ac_var='\''$ac_val'\''"
42ecbf5e
DJ
2274 done | sort
2275 echo
2276
2277 if test -n "$ac_subst_files"; then
2278 cat <<\_ASBOX
81ecdfbb
RW
2279## ------------------- ##
2280## File substitutions. ##
2281## ------------------- ##
42ecbf5e
DJ
2282_ASBOX
2283 echo
2284 for ac_var in $ac_subst_files
2285 do
81ecdfbb
RW
2286 eval ac_val=\$$ac_var
2287 case $ac_val in
2288 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2289 esac
2290 $as_echo "$ac_var='\''$ac_val'\''"
42ecbf5e
DJ
2291 done | sort
2292 echo
2293 fi
2294
2295 if test -s confdefs.h; then
2296 cat <<\_ASBOX
2297## ----------- ##
2298## confdefs.h. ##
2299## ----------- ##
2300_ASBOX
2301 echo
81ecdfbb 2302 cat confdefs.h
42ecbf5e
DJ
2303 echo
2304 fi
2305 test "$ac_signal" != 0 &&
81ecdfbb
RW
2306 $as_echo "$as_me: caught signal $ac_signal"
2307 $as_echo "$as_me: exit $exit_status"
42ecbf5e 2308 } >&5
81ecdfbb
RW
2309 rm -f core *.core core.conftest.* &&
2310 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
42ecbf5e 2311 exit $exit_status
81ecdfbb 2312' 0
42ecbf5e 2313for ac_signal in 1 2 13 15; do
81ecdfbb 2314 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
42ecbf5e
DJ
2315done
2316ac_signal=0
2317
2318# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2319rm -f -r conftest* confdefs.h
2320
2321$as_echo "/* confdefs.h */" > confdefs.h
42ecbf5e
DJ
2322
2323# Predefined preprocessor variables.
2324
2325cat >>confdefs.h <<_ACEOF
2326#define PACKAGE_NAME "$PACKAGE_NAME"
2327_ACEOF
2328
42ecbf5e
DJ
2329cat >>confdefs.h <<_ACEOF
2330#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2331_ACEOF
2332
42ecbf5e
DJ
2333cat >>confdefs.h <<_ACEOF
2334#define PACKAGE_VERSION "$PACKAGE_VERSION"
2335_ACEOF
2336
42ecbf5e
DJ
2337cat >>confdefs.h <<_ACEOF
2338#define PACKAGE_STRING "$PACKAGE_STRING"
2339_ACEOF
2340
42ecbf5e
DJ
2341cat >>confdefs.h <<_ACEOF
2342#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2343_ACEOF
2344
81ecdfbb
RW
2345cat >>confdefs.h <<_ACEOF
2346#define PACKAGE_URL "$PACKAGE_URL"
2347_ACEOF
2348
42ecbf5e
DJ
2349
2350# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2351# Prefer an explicitly selected file to automatically selected ones.
2352ac_site_file1=NONE
2353ac_site_file2=NONE
2354if test -n "$CONFIG_SITE"; then
2355 ac_site_file1=$CONFIG_SITE
2356elif test "x$prefix" != xNONE; then
2357 ac_site_file1=$prefix/share/config.site
2358 ac_site_file2=$prefix/etc/config.site
2359else
2360 ac_site_file1=$ac_default_prefix/share/config.site
2361 ac_site_file2=$ac_default_prefix/etc/config.site
2362fi
2363for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2364do
2365 test "x$ac_site_file" = xNONE && continue
42ecbf5e 2366 if test -r "$ac_site_file"; then
81ecdfbb
RW
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2368$as_echo "$as_me: loading site script $ac_site_file" >&6;}
42ecbf5e
DJ
2369 sed 's/^/| /' "$ac_site_file" >&5
2370 . "$ac_site_file"
2371 fi
2372done
2373
2374if test -r "$cache_file"; then
2375 # Some versions of bash will fail to source /dev/null (special
2376 # files actually), so we avoid doing that.
2377 if test -f "$cache_file"; then
81ecdfbb
RW
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2379$as_echo "$as_me: loading cache $cache_file" >&6;}
42ecbf5e 2380 case $cache_file in
81ecdfbb
RW
2381 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2382 *) . "./$cache_file";;
42ecbf5e
DJ
2383 esac
2384 fi
2385else
81ecdfbb
RW
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2387$as_echo "$as_me: creating cache $cache_file" >&6;}
42ecbf5e
DJ
2388 >$cache_file
2389fi
2390
2391# Check that the precious variables saved in the cache have kept the same
2392# value.
2393ac_cache_corrupted=false
81ecdfbb 2394for ac_var in $ac_precious_vars; do
42ecbf5e
DJ
2395 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2396 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2397 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2398 eval ac_new_val=\$ac_env_${ac_var}_value
42ecbf5e
DJ
2399 case $ac_old_set,$ac_new_set in
2400 set,)
81ecdfbb
RW
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2402$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
42ecbf5e
DJ
2403 ac_cache_corrupted=: ;;
2404 ,set)
81ecdfbb
RW
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2406$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
42ecbf5e
DJ
2407 ac_cache_corrupted=: ;;
2408 ,);;
2409 *)
2410 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2411 # differences in whitespace do not lead to failure.
2412 ac_old_val_w=`echo x $ac_old_val`
2413 ac_new_val_w=`echo x $ac_new_val`
2414 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2416$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2417 ac_cache_corrupted=:
2418 else
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2420$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2421 eval $ac_var=\$ac_old_val
2422 fi
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2424$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2426$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
42ecbf5e
DJ
2427 fi;;
2428 esac
2429 # Pass precious variables to config.status.
2430 if test "$ac_new_set" = set; then
2431 case $ac_new_val in
81ecdfbb 2432 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
42ecbf5e
DJ
2433 *) ac_arg=$ac_var=$ac_new_val ;;
2434 esac
2435 case " $ac_configure_args " in
2436 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2437 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
42ecbf5e
DJ
2438 esac
2439 fi
2440done
2441if $ac_cache_corrupted; then
81ecdfbb
RW
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2443$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2445$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2446 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
42ecbf5e 2447fi
81ecdfbb
RW
2448## -------------------- ##
2449## Main body of script. ##
2450## -------------------- ##
42ecbf5e
DJ
2451
2452ac_ext=c
2453ac_cpp='$CPP $CPPFLAGS'
2454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2456ac_compiler_gnu=$ac_cv_c_compiler_gnu
2457
2458
2459
42ecbf5e 2460
da594c4a 2461
42ecbf5e
DJ
2462
2463
2464ac_aux_dir=
81ecdfbb
RW
2465for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2466 for ac_t in install-sh install.sh shtool; do
2467 if test -f "$ac_dir/$ac_t"; then
2468 ac_aux_dir=$ac_dir
2469 ac_install_sh="$ac_aux_dir/$ac_t -c"
2470 break 2
2471 fi
2472 done
42ecbf5e
DJ
2473done
2474if test -z "$ac_aux_dir"; then
81ecdfbb 2475 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
42ecbf5e 2476fi
81ecdfbb
RW
2477
2478# These three variables are undocumented and unsupported,
2479# and are intended to be withdrawn in a future Autoconf release.
2480# They can cause serious problems if a builder's source tree is in a directory
2481# whose full name contains unusual characters.
2482ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2483ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2484ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2485
42ecbf5e
DJ
2486
2487# Make sure we can run config.sub.
81ecdfbb
RW
2488$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2489 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2490
2491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2492$as_echo_n "checking build system type... " >&6; }
2493if test "${ac_cv_build+set}" = set; then :
2494 $as_echo_n "(cached) " >&6
2495else
2496 ac_build_alias=$build_alias
2497test "x$ac_build_alias" = x &&
2498 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2499test "x$ac_build_alias" = x &&
2500 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2501ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2502 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2503
2504fi
2505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2506$as_echo "$ac_cv_build" >&6; }
2507case $ac_cv_build in
2508*-*-*) ;;
2509*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2510esac
42ecbf5e 2511build=$ac_cv_build
81ecdfbb
RW
2512ac_save_IFS=$IFS; IFS='-'
2513set x $ac_cv_build
2514shift
2515build_cpu=$1
2516build_vendor=$2
2517shift; shift
2518# Remember, the first character of IFS is used to create $*,
2519# except with old shells:
2520build_os=$*
2521IFS=$ac_save_IFS
2522case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2523
2524
81ecdfbb
RW
2525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2526$as_echo_n "checking host system type... " >&6; }
2527if test "${ac_cv_host+set}" = set; then :
2528 $as_echo_n "(cached) " >&6
2529else
2530 if test "x$host_alias" = x; then
2531 ac_cv_host=$ac_cv_build
42ecbf5e 2532else
81ecdfbb
RW
2533 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2534 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2535fi
42ecbf5e
DJ
2536
2537fi
81ecdfbb
RW
2538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2539$as_echo "$ac_cv_host" >&6; }
2540case $ac_cv_host in
2541*-*-*) ;;
2542*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2543esac
42ecbf5e 2544host=$ac_cv_host
81ecdfbb
RW
2545ac_save_IFS=$IFS; IFS='-'
2546set x $ac_cv_host
2547shift
2548host_cpu=$1
2549host_vendor=$2
2550shift; shift
2551# Remember, the first character of IFS is used to create $*,
2552# except with old shells:
2553host_os=$*
2554IFS=$ac_save_IFS
2555case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2556
2557
81ecdfbb
RW
2558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2559$as_echo_n "checking target system type... " >&6; }
2560if test "${ac_cv_target+set}" = set; then :
2561 $as_echo_n "(cached) " >&6
42ecbf5e 2562else
81ecdfbb
RW
2563 if test "x$target_alias" = x; then
2564 ac_cv_target=$ac_cv_host
2565else
2566 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2567 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2568fi
42ecbf5e
DJ
2569
2570fi
81ecdfbb
RW
2571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2572$as_echo "$ac_cv_target" >&6; }
2573case $ac_cv_target in
2574*-*-*) ;;
2575*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2576esac
42ecbf5e 2577target=$ac_cv_target
81ecdfbb
RW
2578ac_save_IFS=$IFS; IFS='-'
2579set x $ac_cv_target
2580shift
2581target_cpu=$1
2582target_vendor=$2
2583shift; shift
2584# Remember, the first character of IFS is used to create $*,
2585# except with old shells:
2586target_os=$*
2587IFS=$ac_save_IFS
2588case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2589
2590
2591# The aliases save the names the user supplied, while $host etc.
2592# will get canonicalized.
2593test -n "$target_alias" &&
2594 test "$program_prefix$program_suffix$program_transform_name" = \
2595 NONENONEs,x,x, &&
2596 program_prefix=${target_alias}-
02ecc8e9 2597
42ecbf5e
DJ
2598ac_ext=c
2599ac_cpp='$CPP $CPPFLAGS'
2600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2602ac_compiler_gnu=$ac_cv_c_compiler_gnu
2603if test -n "$ac_tool_prefix"; then
2604 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2605set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
2606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2607$as_echo_n "checking for $ac_word... " >&6; }
2608if test "${ac_cv_prog_CC+set}" = set; then :
2609 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2610else
2611 if test -n "$CC"; then
2612 ac_cv_prog_CC="$CC" # Let the user override the test.
2613else
2614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615for as_dir in $PATH
2616do
2617 IFS=$as_save_IFS
2618 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2619 for ac_exec_ext in '' $ac_executable_extensions; do
2620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2621 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 2622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2623 break 2
2624 fi
2625done
81ecdfbb
RW
2626 done
2627IFS=$as_save_IFS
42ecbf5e
DJ
2628
2629fi
2630fi
2631CC=$ac_cv_prog_CC
2632if test -n "$CC"; then
81ecdfbb
RW
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2634$as_echo "$CC" >&6; }
42ecbf5e 2635else
81ecdfbb
RW
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2637$as_echo "no" >&6; }
42ecbf5e
DJ
2638fi
2639
81ecdfbb 2640
42ecbf5e
DJ
2641fi
2642if test -z "$ac_cv_prog_CC"; then
2643 ac_ct_CC=$CC
2644 # Extract the first word of "gcc", so it can be a program name with args.
2645set dummy gcc; ac_word=$2
81ecdfbb
RW
2646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2647$as_echo_n "checking for $ac_word... " >&6; }
2648if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2649 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2650else
2651 if test -n "$ac_ct_CC"; then
2652 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2653else
2654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655for as_dir in $PATH
2656do
2657 IFS=$as_save_IFS
2658 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2659 for ac_exec_ext in '' $ac_executable_extensions; do
2660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2661 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 2662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2663 break 2
2664 fi
2665done
81ecdfbb
RW
2666 done
2667IFS=$as_save_IFS
42ecbf5e
DJ
2668
2669fi
2670fi
2671ac_ct_CC=$ac_cv_prog_ac_ct_CC
2672if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2674$as_echo "$ac_ct_CC" >&6; }
42ecbf5e 2675else
81ecdfbb
RW
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2677$as_echo "no" >&6; }
42ecbf5e
DJ
2678fi
2679
81ecdfbb
RW
2680 if test "x$ac_ct_CC" = x; then
2681 CC=""
2682 else
2683 case $cross_compiling:$ac_tool_warned in
2684yes:)
2685{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2686$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2687ac_tool_warned=yes ;;
2688esac
2689 CC=$ac_ct_CC
2690 fi
42ecbf5e
DJ
2691else
2692 CC="$ac_cv_prog_CC"
2693fi
2694
2695if test -z "$CC"; then
81ecdfbb
RW
2696 if test -n "$ac_tool_prefix"; then
2697 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
42ecbf5e 2698set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
2699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2700$as_echo_n "checking for $ac_word... " >&6; }
2701if test "${ac_cv_prog_CC+set}" = set; then :
2702 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2703else
2704 if test -n "$CC"; then
2705 ac_cv_prog_CC="$CC" # Let the user override the test.
2706else
2707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2708for as_dir in $PATH
2709do
2710 IFS=$as_save_IFS
2711 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2712 for ac_exec_ext in '' $ac_executable_extensions; do
2713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2714 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 2715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2716 break 2
2717 fi
2718done
81ecdfbb
RW
2719 done
2720IFS=$as_save_IFS
42ecbf5e
DJ
2721
2722fi
2723fi
2724CC=$ac_cv_prog_CC
2725if test -n "$CC"; then
81ecdfbb
RW
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2727$as_echo "$CC" >&6; }
42ecbf5e 2728else
81ecdfbb
RW
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2730$as_echo "no" >&6; }
42ecbf5e
DJ
2731fi
2732
42ecbf5e 2733
81ecdfbb 2734 fi
42ecbf5e
DJ
2735fi
2736if test -z "$CC"; then
2737 # Extract the first word of "cc", so it can be a program name with args.
2738set dummy cc; ac_word=$2
81ecdfbb
RW
2739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2740$as_echo_n "checking for $ac_word... " >&6; }
2741if test "${ac_cv_prog_CC+set}" = set; then :
2742 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2743else
2744 if test -n "$CC"; then
2745 ac_cv_prog_CC="$CC" # Let the user override the test.
2746else
2747 ac_prog_rejected=no
2748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749for as_dir in $PATH
2750do
2751 IFS=$as_save_IFS
2752 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2753 for ac_exec_ext in '' $ac_executable_extensions; do
2754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e
DJ
2755 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2756 ac_prog_rejected=yes
2757 continue
2758 fi
2759 ac_cv_prog_CC="cc"
81ecdfbb 2760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2761 break 2
2762 fi
2763done
81ecdfbb
RW
2764 done
2765IFS=$as_save_IFS
42ecbf5e
DJ
2766
2767if test $ac_prog_rejected = yes; then
2768 # We found a bogon in the path, so make sure we never use it.
2769 set dummy $ac_cv_prog_CC
2770 shift
2771 if test $# != 0; then
2772 # We chose a different compiler from the bogus one.
2773 # However, it has the same basename, so the bogon will be chosen
2774 # first if we set CC to just the basename; use the full file name.
2775 shift
2776 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2777 fi
2778fi
2779fi
2780fi
2781CC=$ac_cv_prog_CC
2782if test -n "$CC"; then
81ecdfbb
RW
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2784$as_echo "$CC" >&6; }
42ecbf5e 2785else
81ecdfbb
RW
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2787$as_echo "no" >&6; }
42ecbf5e
DJ
2788fi
2789
81ecdfbb 2790
42ecbf5e
DJ
2791fi
2792if test -z "$CC"; then
2793 if test -n "$ac_tool_prefix"; then
81ecdfbb 2794 for ac_prog in cl.exe
42ecbf5e
DJ
2795 do
2796 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2797set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
2798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2799$as_echo_n "checking for $ac_word... " >&6; }
2800if test "${ac_cv_prog_CC+set}" = set; then :
2801 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2802else
2803 if test -n "$CC"; then
2804 ac_cv_prog_CC="$CC" # Let the user override the test.
2805else
2806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2807for as_dir in $PATH
2808do
2809 IFS=$as_save_IFS
2810 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2811 for ac_exec_ext in '' $ac_executable_extensions; do
2812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2813 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 2814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2815 break 2
2816 fi
2817done
81ecdfbb
RW
2818 done
2819IFS=$as_save_IFS
42ecbf5e
DJ
2820
2821fi
2822fi
2823CC=$ac_cv_prog_CC
2824if test -n "$CC"; then
81ecdfbb
RW
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2826$as_echo "$CC" >&6; }
42ecbf5e 2827else
81ecdfbb
RW
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2829$as_echo "no" >&6; }
42ecbf5e
DJ
2830fi
2831
81ecdfbb 2832
42ecbf5e
DJ
2833 test -n "$CC" && break
2834 done
2835fi
2836if test -z "$CC"; then
2837 ac_ct_CC=$CC
81ecdfbb 2838 for ac_prog in cl.exe
42ecbf5e
DJ
2839do
2840 # Extract the first word of "$ac_prog", so it can be a program name with args.
2841set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
2842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2843$as_echo_n "checking for $ac_word... " >&6; }
2844if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2845 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2846else
2847 if test -n "$ac_ct_CC"; then
2848 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2849else
2850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851for as_dir in $PATH
2852do
2853 IFS=$as_save_IFS
2854 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2855 for ac_exec_ext in '' $ac_executable_extensions; do
2856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2857 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 2858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2859 break 2
2860 fi
2861done
81ecdfbb
RW
2862 done
2863IFS=$as_save_IFS
42ecbf5e
DJ
2864
2865fi
2866fi
2867ac_ct_CC=$ac_cv_prog_ac_ct_CC
2868if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2870$as_echo "$ac_ct_CC" >&6; }
42ecbf5e 2871else
81ecdfbb
RW
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2873$as_echo "no" >&6; }
42ecbf5e
DJ
2874fi
2875
81ecdfbb 2876
42ecbf5e
DJ
2877 test -n "$ac_ct_CC" && break
2878done
2879
81ecdfbb
RW
2880 if test "x$ac_ct_CC" = x; then
2881 CC=""
2882 else
2883 case $cross_compiling:$ac_tool_warned in
2884yes:)
2885{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2886$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2887ac_tool_warned=yes ;;
2888esac
2889 CC=$ac_ct_CC
2890 fi
42ecbf5e
DJ
2891fi
2892
2893fi
2894
2895
81ecdfbb
RW
2896test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2897$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2898as_fn_error "no acceptable C compiler found in \$PATH
2899See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e
DJ
2900
2901# Provide some information about the compiler.
81ecdfbb
RW
2902$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2903set X $ac_compile
2904ac_compiler=$2
2905for ac_option in --version -v -V -qversion; do
2906 { { ac_try="$ac_compiler $ac_option >&5"
2907case "(($ac_try" in
2908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2909 *) ac_try_echo=$ac_try;;
2910esac
2911eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2912$as_echo "$ac_try_echo"; } >&5
2913 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
42ecbf5e 2914 ac_status=$?
81ecdfbb
RW
2915 if test -s conftest.err; then
2916 sed '10a\
2917... rest of stderr output deleted ...
2918 10q' conftest.err >conftest.er1
2919 cat conftest.er1 >&5
2920 rm -f conftest.er1 conftest.err
2921 fi
2922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2923 test $ac_status = 0; }
2924done
42ecbf5e 2925
81ecdfbb 2926cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
2927/* end confdefs.h. */
2928
2929int
2930main ()
2931{
2932
2933 ;
2934 return 0;
2935}
2936_ACEOF
2937ac_clean_files_save=$ac_clean_files
81ecdfbb 2938ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
42ecbf5e
DJ
2939# Try to create an executable without -o first, disregard a.out.
2940# It will help us diagnose broken compilers, and finding out an intuition
2941# of exeext.
81ecdfbb
RW
2942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2943$as_echo_n "checking for C compiler default output file name... " >&6; }
2944ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2945
2946# The possible output files:
2947ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2948
2949ac_rmfiles=
2950for ac_file in $ac_files
2951do
2952 case $ac_file in
2953 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2954 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2955 esac
2956done
2957rm -f $ac_rmfiles
2958
2959if { { ac_try="$ac_link_default"
2960case "(($ac_try" in
2961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962 *) ac_try_echo=$ac_try;;
2963esac
2964eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2965$as_echo "$ac_try_echo"; } >&5
2966 (eval "$ac_link_default") 2>&5
2967 ac_status=$?
2968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2969 test $ac_status = 0; }; then :
2970 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2971# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2972# in a Makefile. We should not override ac_cv_exeext if it was cached,
2973# so that the user can short-circuit this test for compilers unknown to
2974# Autoconf.
2975for ac_file in $ac_files ''
42ecbf5e
DJ
2976do
2977 test -f "$ac_file" || continue
2978 case $ac_file in
81ecdfbb 2979 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
42ecbf5e
DJ
2980 ;;
2981 [ab].out )
2982 # We found the default executable, but exeext='' is most
2983 # certainly right.
2984 break;;
2985 *.* )
81ecdfbb
RW
2986 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2987 then :; else
2988 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2989 fi
2990 # We set ac_cv_exeext here because the later test for it is not
2991 # safe: cross compilers may not add the suffix if given an `-o'
2992 # argument, so we may need to know it at that point already.
2993 # Even if this section looks crufty: it has the advantage of
2994 # actually working.
42ecbf5e
DJ
2995 break;;
2996 * )
2997 break;;
2998 esac
2999done
81ecdfbb
RW
3000test "$ac_cv_exeext" = no && ac_cv_exeext=
3001
42ecbf5e 3002else
81ecdfbb
RW
3003 ac_file=''
3004fi
3005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3006$as_echo "$ac_file" >&6; }
3007if test -z "$ac_file"; then :
3008 $as_echo "$as_me: failed program was:" >&5
42ecbf5e
DJ
3009sed 's/^/| /' conftest.$ac_ext >&5
3010
81ecdfbb
RW
3011{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3012$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3013{ as_fn_set_status 77
3014as_fn_error "C compiler cannot create executables
3015See \`config.log' for more details." "$LINENO" 5; }; }
42ecbf5e 3016fi
42ecbf5e 3017ac_exeext=$ac_cv_exeext
42ecbf5e 3018
81ecdfbb 3019# Check that the compiler produces executables we can run. If not, either
42ecbf5e 3020# the compiler is broken, or we cross compile.
81ecdfbb
RW
3021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3022$as_echo_n "checking whether the C compiler works... " >&6; }
42ecbf5e
DJ
3023# If not cross compiling, check that we can run a simple program.
3024if test "$cross_compiling" != yes; then
3025 if { ac_try='./$ac_file'
81ecdfbb
RW
3026 { { case "(($ac_try" in
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3029esac
3030eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3031$as_echo "$ac_try_echo"; } >&5
3032 (eval "$ac_try") 2>&5
42ecbf5e 3033 ac_status=$?
81ecdfbb
RW
3034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3035 test $ac_status = 0; }; }; then
42ecbf5e
DJ
3036 cross_compiling=no
3037 else
3038 if test "$cross_compiling" = maybe; then
3039 cross_compiling=yes
3040 else
81ecdfbb
RW
3041 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3042$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3043as_fn_error "cannot run C compiled programs.
42ecbf5e 3044If you meant to cross compile, use \`--host'.
81ecdfbb 3045See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e
DJ
3046 fi
3047 fi
3048fi
81ecdfbb
RW
3049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3050$as_echo "yes" >&6; }
42ecbf5e 3051
81ecdfbb 3052rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
42ecbf5e 3053ac_clean_files=$ac_clean_files_save
81ecdfbb 3054# Check that the compiler produces executables we can run. If not, either
42ecbf5e 3055# the compiler is broken, or we cross compile.
81ecdfbb
RW
3056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3057$as_echo_n "checking whether we are cross compiling... " >&6; }
3058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3059$as_echo "$cross_compiling" >&6; }
3060
3061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3062$as_echo_n "checking for suffix of executables... " >&6; }
3063if { { ac_try="$ac_link"
3064case "(($ac_try" in
3065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066 *) ac_try_echo=$ac_try;;
3067esac
3068eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3069$as_echo "$ac_try_echo"; } >&5
3070 (eval "$ac_link") 2>&5
42ecbf5e 3071 ac_status=$?
81ecdfbb
RW
3072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3073 test $ac_status = 0; }; then :
42ecbf5e
DJ
3074 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3075# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3076# work properly (i.e., refer to `conftest.exe'), while it won't with
3077# `rm'.
3078for ac_file in conftest.exe conftest conftest.*; do
3079 test -f "$ac_file" || continue
3080 case $ac_file in
81ecdfbb 3081 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
42ecbf5e 3082 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
42ecbf5e
DJ
3083 break;;
3084 * ) break;;
3085 esac
3086done
3087else
81ecdfbb
RW
3088 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3089$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3090as_fn_error "cannot compute suffix of executables: cannot compile and link
3091See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e 3092fi
42ecbf5e 3093rm -f conftest$ac_cv_exeext
81ecdfbb
RW
3094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3095$as_echo "$ac_cv_exeext" >&6; }
42ecbf5e
DJ
3096
3097rm -f conftest.$ac_ext
3098EXEEXT=$ac_cv_exeext
3099ac_exeext=$EXEEXT
81ecdfbb
RW
3100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3101$as_echo_n "checking for suffix of object files... " >&6; }
3102if test "${ac_cv_objext+set}" = set; then :
3103 $as_echo_n "(cached) " >&6
42ecbf5e 3104else
81ecdfbb 3105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3106/* end confdefs.h. */
3107
3108int
3109main ()
3110{
3111
3112 ;
3113 return 0;
3114}
3115_ACEOF
3116rm -f conftest.o conftest.obj
81ecdfbb
RW
3117if { { ac_try="$ac_compile"
3118case "(($ac_try" in
3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120 *) ac_try_echo=$ac_try;;
3121esac
3122eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3123$as_echo "$ac_try_echo"; } >&5
3124 (eval "$ac_compile") 2>&5
3125 ac_status=$?
3126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3127 test $ac_status = 0; }; then :
3128 for ac_file in conftest.o conftest.obj conftest.*; do
3129 test -f "$ac_file" || continue;
42ecbf5e 3130 case $ac_file in
81ecdfbb 3131 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
42ecbf5e
DJ
3132 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3133 break;;
3134 esac
3135done
3136else
81ecdfbb 3137 $as_echo "$as_me: failed program was:" >&5
42ecbf5e
DJ
3138sed 's/^/| /' conftest.$ac_ext >&5
3139
81ecdfbb
RW
3140{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3141$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3142as_fn_error "cannot compute suffix of object files: cannot compile
3143See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e 3144fi
42ecbf5e
DJ
3145rm -f conftest.$ac_cv_objext conftest.$ac_ext
3146fi
81ecdfbb
RW
3147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3148$as_echo "$ac_cv_objext" >&6; }
42ecbf5e
DJ
3149OBJEXT=$ac_cv_objext
3150ac_objext=$OBJEXT
81ecdfbb
RW
3151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3152$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3153if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3154 $as_echo_n "(cached) " >&6
42ecbf5e 3155else
81ecdfbb 3156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3157/* end confdefs.h. */
3158
3159int
3160main ()
3161{
3162#ifndef __GNUC__
3163 choke me
3164#endif
3165
3166 ;
3167 return 0;
3168}
3169_ACEOF
81ecdfbb 3170if ac_fn_c_try_compile "$LINENO"; then :
42ecbf5e
DJ
3171 ac_compiler_gnu=yes
3172else
81ecdfbb 3173 ac_compiler_gnu=no
42ecbf5e 3174fi
81ecdfbb 3175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e
DJ
3176ac_cv_c_compiler_gnu=$ac_compiler_gnu
3177
3178fi
81ecdfbb
RW
3179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3180$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3181if test $ac_compiler_gnu = yes; then
3182 GCC=yes
3183else
3184 GCC=
3185fi
42ecbf5e
DJ
3186ac_test_CFLAGS=${CFLAGS+set}
3187ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
3188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3189$as_echo_n "checking whether $CC accepts -g... " >&6; }
3190if test "${ac_cv_prog_cc_g+set}" = set; then :
3191 $as_echo_n "(cached) " >&6
3192else
3193 ac_save_c_werror_flag=$ac_c_werror_flag
3194 ac_c_werror_flag=yes
3195 ac_cv_prog_cc_g=no
3196 CFLAGS="-g"
3197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3198/* end confdefs.h. */
3199
3200int
3201main ()
3202{
3203
3204 ;
3205 return 0;
3206}
3207_ACEOF
81ecdfbb 3208if ac_fn_c_try_compile "$LINENO"; then :
42ecbf5e
DJ
3209 ac_cv_prog_cc_g=yes
3210else
81ecdfbb
RW
3211 CFLAGS=""
3212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3213/* end confdefs.h. */
3214
3215int
3216main ()
3217{
3218
3219 ;
3220 return 0;
3221}
3222_ACEOF
3223if ac_fn_c_try_compile "$LINENO"; then :
3224
3225else
3226 ac_c_werror_flag=$ac_save_c_werror_flag
3227 CFLAGS="-g"
3228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3229/* end confdefs.h. */
3230
3231int
3232main ()
3233{
42ecbf5e 3234
81ecdfbb
RW
3235 ;
3236 return 0;
3237}
3238_ACEOF
3239if ac_fn_c_try_compile "$LINENO"; then :
3240 ac_cv_prog_cc_g=yes
3241fi
3242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3243fi
3244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e 3245fi
81ecdfbb
RW
3246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3247 ac_c_werror_flag=$ac_save_c_werror_flag
42ecbf5e 3248fi
81ecdfbb
RW
3249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3250$as_echo "$ac_cv_prog_cc_g" >&6; }
42ecbf5e
DJ
3251if test "$ac_test_CFLAGS" = set; then
3252 CFLAGS=$ac_save_CFLAGS
3253elif test $ac_cv_prog_cc_g = yes; then
3254 if test "$GCC" = yes; then
3255 CFLAGS="-g -O2"
3256 else
3257 CFLAGS="-g"
3258 fi
3259else
3260 if test "$GCC" = yes; then
3261 CFLAGS="-O2"
3262 else
3263 CFLAGS=
3264 fi
3265fi
81ecdfbb
RW
3266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3267$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3268if test "${ac_cv_prog_cc_c89+set}" = set; then :
3269 $as_echo_n "(cached) " >&6
42ecbf5e 3270else
81ecdfbb 3271 ac_cv_prog_cc_c89=no
42ecbf5e 3272ac_save_CC=$CC
81ecdfbb 3273cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3274/* end confdefs.h. */
3275#include <stdarg.h>
3276#include <stdio.h>
3277#include <sys/types.h>
3278#include <sys/stat.h>
3279/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3280struct buf { int x; };
3281FILE * (*rcsopen) (struct buf *, struct stat *, int);
3282static char *e (p, i)
3283 char **p;
3284 int i;
3285{
3286 return p[i];
3287}
3288static char *f (char * (*g) (char **, int), char **p, ...)
3289{
3290 char *s;
3291 va_list v;
3292 va_start (v,p);
3293 s = g (p, va_arg (v,int));
3294 va_end (v);
3295 return s;
3296}
3297
3298/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3299 function prototypes and stuff, but not '\xHH' hex character constants.
3300 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3301 as 'x'. The following induces an error, until -std is added to get
42ecbf5e
DJ
3302 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3303 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3304 that's true only with -std. */
42ecbf5e
DJ
3305int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3306
81ecdfbb
RW
3307/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3308 inside strings and character constants. */
3309#define FOO(x) 'x'
3310int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3311
42ecbf5e
DJ
3312int test (int i, double x);
3313struct s1 {int (*f) (int a);};
3314struct s2 {int (*f) (double a);};
3315int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3316int argc;
3317char **argv;
3318int
3319main ()
3320{
3321return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3322 ;
3323 return 0;
3324}
3325_ACEOF
81ecdfbb
RW
3326for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3327 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
42ecbf5e
DJ
3328do
3329 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3330 if ac_fn_c_try_compile "$LINENO"; then :
3331 ac_cv_prog_cc_c89=$ac_arg
42ecbf5e 3332fi
81ecdfbb
RW
3333rm -f core conftest.err conftest.$ac_objext
3334 test "x$ac_cv_prog_cc_c89" != "xno" && break
42ecbf5e 3335done
81ecdfbb 3336rm -f conftest.$ac_ext
42ecbf5e
DJ
3337CC=$ac_save_CC
3338
3339fi
81ecdfbb
RW
3340# AC_CACHE_VAL
3341case "x$ac_cv_prog_cc_c89" in
3342 x)
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3344$as_echo "none needed" >&6; } ;;
3345 xno)
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3347$as_echo "unsupported" >&6; } ;;
42ecbf5e 3348 *)
81ecdfbb
RW
3349 CC="$CC $ac_cv_prog_cc_c89"
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3351$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
42ecbf5e 3352esac
81ecdfbb 3353if test "x$ac_cv_prog_cc_c89" != xno; then :
42ecbf5e 3354
42ecbf5e
DJ
3355fi
3356
42ecbf5e
DJ
3357ac_ext=c
3358ac_cpp='$CPP $CPPFLAGS'
3359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3361ac_compiler_gnu=$ac_cv_c_compiler_gnu
3362
3363
81ecdfbb
RW
3364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3365$as_echo_n "checking for library containing strerror... " >&6; }
3366if test "${ac_cv_search_strerror+set}" = set; then :
3367 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
3368else
3369 ac_func_search_save_LIBS=$LIBS
81ecdfbb 3370cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3371/* end confdefs.h. */
3372
81ecdfbb
RW
3373/* Override any GCC internal prototype to avoid an error.
3374 Use char because int might match the return type of a GCC
3375 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
3376#ifdef __cplusplus
3377extern "C"
3378#endif
42ecbf5e
DJ
3379char strerror ();
3380int
3381main ()
3382{
81ecdfbb 3383return strerror ();
42ecbf5e
DJ
3384 ;
3385 return 0;
3386}
3387_ACEOF
81ecdfbb
RW
3388for ac_lib in '' cposix; do
3389 if test -z "$ac_lib"; then
3390 ac_res="none required"
3391 else
3392 ac_res=-l$ac_lib
42ecbf5e 3393 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
3394 fi
3395 if ac_fn_c_try_link "$LINENO"; then :
3396 ac_cv_search_strerror=$ac_res
3397fi
3398rm -f core conftest.err conftest.$ac_objext \
3399 conftest$ac_exeext
3400 if test "${ac_cv_search_strerror+set}" = set; then :
3401 break
3402fi
3403done
3404if test "${ac_cv_search_strerror+set}" = set; then :
42ecbf5e 3405
42ecbf5e 3406else
81ecdfbb 3407 ac_cv_search_strerror=no
42ecbf5e 3408fi
81ecdfbb 3409rm conftest.$ac_ext
42ecbf5e
DJ
3410LIBS=$ac_func_search_save_LIBS
3411fi
81ecdfbb
RW
3412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3413$as_echo "$ac_cv_search_strerror" >&6; }
3414ac_res=$ac_cv_search_strerror
3415if test "$ac_res" != no; then :
3416 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e
DJ
3417
3418fi
e5a52504
MM
3419
3420
3421BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
81ecdfbb
RW
3422am__api_version='1.11'
3423
e5a52504
MM
3424# Find a good install program. We prefer a C program (faster),
3425# so one script is as good as another. But avoid the broken or
3426# incompatible versions:
3427# SysV /etc/install, /usr/sbin/install
3428# SunOS /usr/etc/install
3429# IRIX /sbin/install
3430# AIX /bin/install
42ecbf5e 3431# AmigaOS /C/install, which installs bootblocks on floppy discs
e5a52504
MM
3432# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3433# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3434# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
42ecbf5e 3435# OS/2's system install, which has a completely different semantic
e5a52504 3436# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 3437# Reject install programs that cannot install multiple files.
81ecdfbb
RW
3438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3439$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5a52504 3440if test -z "$INSTALL"; then
81ecdfbb
RW
3441if test "${ac_cv_path_install+set}" = set; then :
3442 $as_echo_n "(cached) " >&6
e5a52504 3443else
42ecbf5e
DJ
3444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3445for as_dir in $PATH
3446do
3447 IFS=$as_save_IFS
3448 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3449 # Account for people who put trailing slashes in PATH elements.
3450case $as_dir/ in #((
3451 ./ | .// | /[cC]/* | \
42ecbf5e 3452 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 3453 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
42ecbf5e
DJ
3454 /usr/ucb/* ) ;;
3455 *)
3456 # OSF1 and SCO ODT 3.0 have their own names for install.
3457 # Don't use installbsd from OSF since it installs stuff as root
3458 # by default.
3459 for ac_prog in ginstall scoinst install; do
3460 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 3461 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
252b5132 3462 if test $ac_prog = install &&
42ecbf5e 3463 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
3464 # AIX install. It has an incompatible calling convention.
3465 :
42ecbf5e
DJ
3466 elif test $ac_prog = install &&
3467 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3468 # program-specific install script used by HP pwplus--don't use.
3469 :
252b5132 3470 else
58c85be7
RW
3471 rm -rf conftest.one conftest.two conftest.dir
3472 echo one > conftest.one
3473 echo two > conftest.two
3474 mkdir conftest.dir
3475 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3476 test -s conftest.one && test -s conftest.two &&
3477 test -s conftest.dir/conftest.one &&
3478 test -s conftest.dir/conftest.two
3479 then
3480 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3481 break 3
3482 fi
252b5132
RH
3483 fi
3484 fi
3485 done
42ecbf5e
DJ
3486 done
3487 ;;
3488esac
81ecdfbb
RW
3489
3490 done
3491IFS=$as_save_IFS
42ecbf5e 3492
58c85be7 3493rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
3494
3495fi
3496 if test "${ac_cv_path_install+set}" = set; then
42ecbf5e 3497 INSTALL=$ac_cv_path_install
252b5132 3498 else
58c85be7
RW
3499 # As a last resort, use the slow shell script. Don't cache a
3500 # value for INSTALL within a source directory, because that will
252b5132 3501 # break other packages using the cache if that directory is
58c85be7 3502 # removed, or if the value is a relative name.
42ecbf5e 3503 INSTALL=$ac_install_sh
252b5132
RH
3504 fi
3505fi
81ecdfbb
RW
3506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3507$as_echo "$INSTALL" >&6; }
252b5132
RH
3508
3509# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3510# It thinks the first close brace ends the variable substitution.
3511test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3512
42ecbf5e 3513test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
3514
3515test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3516
81ecdfbb
RW
3517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3518$as_echo_n "checking whether build environment is sane... " >&6; }
252b5132
RH
3519# Just in case
3520sleep 1
42ecbf5e 3521echo timestamp > conftest.file
81ecdfbb
RW
3522# Reject unsafe characters in $srcdir or the absolute working directory
3523# name. Accept space and tab only in the latter.
3524am_lf='
3525'
3526case `pwd` in
3527 *[\\\"\#\$\&\'\`$am_lf]*)
3528 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3529esac
3530case $srcdir in
3531 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3532 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3533esac
3534
252b5132
RH
3535# Do `set' in a subshell so we don't clobber the current shell's
3536# arguments. Must try -L first in case configure is actually a
3537# symlink; some systems play weird games with the mod time of symlinks
3538# (eg FreeBSD returns the mod time of the symlink's containing
3539# directory).
3540if (
81ecdfbb 3541 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
252b5132
RH
3542 if test "$*" = "X"; then
3543 # -L didn't work.
81ecdfbb 3544 set X `ls -t "$srcdir/configure" conftest.file`
252b5132 3545 fi
42ecbf5e
DJ
3546 rm -f conftest.file
3547 if test "$*" != "X $srcdir/configure conftest.file" \
3548 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
3549
3550 # If neither matched, then we have a broken ls. This can happen
3551 # if, for instance, CONFIG_SHELL is bash and it inherits a
3552 # broken ls alias from the environment. This has actually
3553 # happened. Such a system could not be considered "sane".
81ecdfbb
RW
3554 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3555alias in your environment" "$LINENO" 5
252b5132
RH
3556 fi
3557
42ecbf5e 3558 test "$2" = conftest.file
252b5132
RH
3559 )
3560then
3561 # Ok.
3562 :
3563else
81ecdfbb
RW
3564 as_fn_error "newly created file is older than distributed files!
3565Check your system clock" "$LINENO" 5
252b5132 3566fi
81ecdfbb
RW
3567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3568$as_echo "yes" >&6; }
252b5132 3569test "$program_prefix" != NONE &&
81ecdfbb 3570 program_transform_name="s&^&$program_prefix&;$program_transform_name"
252b5132
RH
3571# Use a double $ so make ignores it.
3572test "$program_suffix" != NONE &&
81ecdfbb
RW
3573 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3574# Double any \ or $.
42ecbf5e 3575# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
3576ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3577program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
42ecbf5e
DJ
3578
3579# expand $ac_aux_dir to an absolute path
3580am_aux_dir=`cd $ac_aux_dir && pwd`
3581
81ecdfbb
RW
3582if test x"${MISSING+set}" != xset; then
3583 case $am_aux_dir in
3584 *\ * | *\ *)
3585 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3586 *)
3587 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3588 esac
3589fi
42ecbf5e
DJ
3590# Use eval to expand $SHELL
3591if eval "$MISSING --run true"; then
3592 am_missing_run="$MISSING --run "
3593else
3594 am_missing_run=
81ecdfbb
RW
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3596$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3597fi
3598
3599if test x"${install_sh}" != xset; then
3600 case $am_aux_dir in
3601 *\ * | *\ *)
3602 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3603 *)
3604 install_sh="\${SHELL} $am_aux_dir/install-sh"
3605 esac
3606fi
3607
3608# Installed binaries are usually stripped using `strip' when the user
3609# run `make install-strip'. However `strip' might not be the right
3610# tool to use in cross-compilation environments, therefore Automake
3611# will honor the `STRIP' environment variable to overrule this program.
3612if test "$cross_compiling" != no; then
3613 if test -n "$ac_tool_prefix"; then
3614 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3615set dummy ${ac_tool_prefix}strip; ac_word=$2
3616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3617$as_echo_n "checking for $ac_word... " >&6; }
3618if test "${ac_cv_prog_STRIP+set}" = set; then :
3619 $as_echo_n "(cached) " >&6
3620else
3621 if test -n "$STRIP"; then
3622 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3623else
3624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625for as_dir in $PATH
3626do
3627 IFS=$as_save_IFS
3628 test -z "$as_dir" && as_dir=.
3629 for ac_exec_ext in '' $ac_executable_extensions; do
3630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3631 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3633 break 2
3634 fi
3635done
3636 done
3637IFS=$as_save_IFS
3638
3639fi
3640fi
3641STRIP=$ac_cv_prog_STRIP
3642if test -n "$STRIP"; then
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3644$as_echo "$STRIP" >&6; }
3645else
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3647$as_echo "no" >&6; }
3648fi
3649
3650
3651fi
3652if test -z "$ac_cv_prog_STRIP"; then
3653 ac_ct_STRIP=$STRIP
3654 # Extract the first word of "strip", so it can be a program name with args.
3655set dummy strip; ac_word=$2
3656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3657$as_echo_n "checking for $ac_word... " >&6; }
3658if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3659 $as_echo_n "(cached) " >&6
3660else
3661 if test -n "$ac_ct_STRIP"; then
3662 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3663else
3664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3665for as_dir in $PATH
3666do
3667 IFS=$as_save_IFS
3668 test -z "$as_dir" && as_dir=.
3669 for ac_exec_ext in '' $ac_executable_extensions; do
3670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3671 ac_cv_prog_ac_ct_STRIP="strip"
3672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3673 break 2
3674 fi
3675done
3676 done
3677IFS=$as_save_IFS
3678
3679fi
3680fi
3681ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3682if test -n "$ac_ct_STRIP"; then
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3684$as_echo "$ac_ct_STRIP" >&6; }
3685else
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3687$as_echo "no" >&6; }
3688fi
3689
3690 if test "x$ac_ct_STRIP" = x; then
3691 STRIP=":"
3692 else
3693 case $cross_compiling:$ac_tool_warned in
3694yes:)
3695{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3696$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3697ac_tool_warned=yes ;;
3698esac
3699 STRIP=$ac_ct_STRIP
3700 fi
3701else
3702 STRIP="$ac_cv_prog_STRIP"
3703fi
3704
3705fi
3706INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3707
3708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3709$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3710if test -z "$MKDIR_P"; then
3711 if test "${ac_cv_path_mkdir+set}" = set; then :
3712 $as_echo_n "(cached) " >&6
3713else
3714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3715for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3716do
3717 IFS=$as_save_IFS
3718 test -z "$as_dir" && as_dir=.
3719 for ac_prog in mkdir gmkdir; do
3720 for ac_exec_ext in '' $ac_executable_extensions; do
3721 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3722 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3723 'mkdir (GNU coreutils) '* | \
3724 'mkdir (coreutils) '* | \
3725 'mkdir (fileutils) '4.1*)
3726 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3727 break 3;;
3728 esac
3729 done
3730 done
42ecbf5e 3731 done
81ecdfbb
RW
3732IFS=$as_save_IFS
3733
3734fi
3735
3736 if test "${ac_cv_path_mkdir+set}" = set; then
3737 MKDIR_P="$ac_cv_path_mkdir -p"
42ecbf5e 3738 else
81ecdfbb
RW
3739 # As a last resort, use the slow shell script. Don't cache a
3740 # value for MKDIR_P within a source directory, because that will
3741 # break other packages using the cache if that directory is
3742 # removed, or if the value is a relative name.
3743 test -d ./--version && rmdir ./--version
3744 MKDIR_P="$ac_install_sh -d"
42ecbf5e
DJ
3745 fi
3746fi
81ecdfbb
RW
3747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3748$as_echo "$MKDIR_P" >&6; }
3749
3750mkdir_p="$MKDIR_P"
3751case $mkdir_p in
3752 [\\/$]* | ?:[\\/]*) ;;
3753 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3754esac
42ecbf5e
DJ
3755
3756for ac_prog in gawk mawk nawk awk
3757do
3758 # Extract the first word of "$ac_prog", so it can be a program name with args.
3759set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
3760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3761$as_echo_n "checking for $ac_word... " >&6; }
3762if test "${ac_cv_prog_AWK+set}" = set; then :
3763 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
3764else
3765 if test -n "$AWK"; then
3766 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3767else
3768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3769for as_dir in $PATH
3770do
3771 IFS=$as_save_IFS
3772 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3773 for ac_exec_ext in '' $ac_executable_extensions; do
3774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 3775 ac_cv_prog_AWK="$ac_prog"
81ecdfbb 3776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
3777 break 2
3778 fi
3779done
81ecdfbb
RW
3780 done
3781IFS=$as_save_IFS
42ecbf5e
DJ
3782
3783fi
3784fi
3785AWK=$ac_cv_prog_AWK
3786if test -n "$AWK"; then
81ecdfbb
RW
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3788$as_echo "$AWK" >&6; }
42ecbf5e 3789else
81ecdfbb
RW
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3791$as_echo "no" >&6; }
42ecbf5e 3792fi
252b5132 3793
81ecdfbb 3794
42ecbf5e
DJ
3795 test -n "$AWK" && break
3796done
252b5132 3797
81ecdfbb
RW
3798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3799$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3800set x ${MAKE-make}
3801ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3802if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3803 $as_echo_n "(cached) " >&6
252b5132 3804else
42ecbf5e 3805 cat >conftest.make <<\_ACEOF
81ecdfbb 3806SHELL = /bin/sh
252b5132 3807all:
81ecdfbb 3808 @echo '@@@%%%=$(MAKE)=@@@%%%'
42ecbf5e 3809_ACEOF
252b5132 3810# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
81ecdfbb
RW
3811case `${MAKE-make} -f conftest.make 2>/dev/null` in
3812 *@@@%%%=?*=@@@%%%*)
3813 eval ac_cv_prog_make_${ac_make}_set=yes;;
3814 *)
3815 eval ac_cv_prog_make_${ac_make}_set=no;;
3816esac
42ecbf5e 3817rm -f conftest.make
252b5132 3818fi
81ecdfbb
RW
3819if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3821$as_echo "yes" >&6; }
252b5132
RH
3822 SET_MAKE=
3823else
81ecdfbb
RW
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3825$as_echo "no" >&6; }
252b5132
RH
3826 SET_MAKE="MAKE=${MAKE-make}"
3827fi
3828
42ecbf5e
DJ
3829rm -rf .tst 2>/dev/null
3830mkdir .tst 2>/dev/null
3831if test -d .tst; then
3832 am__leading_dot=.
3833else
3834 am__leading_dot=_
3835fi
3836rmdir .tst 2>/dev/null
3837
3838DEPDIR="${am__leading_dot}deps"
3839
81ecdfbb 3840ac_config_commands="$ac_config_commands depfiles"
42ecbf5e
DJ
3841
3842
3843am_make=${MAKE-make}
3844cat > confinc << 'END'
3845am__doit:
81ecdfbb 3846 @echo this is the am__doit target
42ecbf5e
DJ
3847.PHONY: am__doit
3848END
3849# If we don't find an include directive, just comment out the code.
81ecdfbb
RW
3850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3851$as_echo_n "checking for style of include used by $am_make... " >&6; }
42ecbf5e
DJ
3852am__include="#"
3853am__quote=
3854_am_result=none
3855# First try GNU make style include.
3856echo "include confinc" > confmf
81ecdfbb
RW
3857# Ignore all kinds of additional output from `make'.
3858case `$am_make -s -f confmf 2> /dev/null` in #(
3859*the\ am__doit\ target*)
3860 am__include=include
3861 am__quote=
3862 _am_result=GNU
3863 ;;
3864esac
42ecbf5e
DJ
3865# Now try BSD make style include.
3866if test "$am__include" = "#"; then
3867 echo '.include "confinc"' > confmf
81ecdfbb
RW
3868 case `$am_make -s -f confmf 2> /dev/null` in #(
3869 *the\ am__doit\ target*)
3870 am__include=.include
3871 am__quote="\""
3872 _am_result=BSD
3873 ;;
3874 esac
42ecbf5e
DJ
3875fi
3876
3877
81ecdfbb
RW
3878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3879$as_echo "$_am_result" >&6; }
42ecbf5e
DJ
3880rm -f confinc confmf
3881
81ecdfbb
RW
3882# Check whether --enable-dependency-tracking was given.
3883if test "${enable_dependency_tracking+set}" = set; then :
3884 enableval=$enable_dependency_tracking;
3885fi
42ecbf5e 3886
42ecbf5e
DJ
3887if test "x$enable_dependency_tracking" != xno; then
3888 am_depcomp="$ac_aux_dir/depcomp"
3889 AMDEPBACKSLASH='\'
3890fi
81ecdfbb 3891 if test "x$enable_dependency_tracking" != xno; then
42ecbf5e
DJ
3892 AMDEP_TRUE=
3893 AMDEP_FALSE='#'
3894else
3895 AMDEP_TRUE='#'
3896 AMDEP_FALSE=
3897fi
3898
e5a52504 3899
81ecdfbb
RW
3900if test "`cd $srcdir && pwd`" != "`pwd`"; then
3901 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3902 # is not polluted with repeated "-I."
3903 am__isrc=' -I$(srcdir)'
3904 # test to see if srcdir already configured
3905 if test -f $srcdir/config.status; then
3906 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3907 fi
42ecbf5e 3908fi
252b5132 3909
42ecbf5e
DJ
3910# test whether we have cygpath
3911if test -z "$CYGPATH_W"; then
3912 if (cygpath --version) >/dev/null 2>/dev/null; then
3913 CYGPATH_W='cygpath -w'
3914 else
3915 CYGPATH_W=echo
3916 fi
252b5132 3917fi
42ecbf5e
DJ
3918
3919
3920# Define the identity of the package.
3921 PACKAGE=ld
3922 VERSION=${BFD_VERSION}
3923
3924
3925cat >>confdefs.h <<_ACEOF
e5a52504 3926#define PACKAGE "$PACKAGE"
42ecbf5e
DJ
3927_ACEOF
3928
252b5132 3929
42ecbf5e 3930cat >>confdefs.h <<_ACEOF
e5a52504 3931#define VERSION "$VERSION"
42ecbf5e
DJ
3932_ACEOF
3933
3934# Some tools Automake needs.
3935
3936ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3937
3938
3939AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3940
3941
3942AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3943
3944
3945AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3946
e5a52504 3947
42ecbf5e 3948MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
e5a52504 3949
42ecbf5e
DJ
3950# We need awk for the "check" target. The system "awk" is bad on
3951# some platforms.
3952# Always define AMTAR for backward compatibility.
3953
3954AMTAR=${AMTAR-"${am_missing_run}tar"}
3955
3956am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3957
3958
3959
3960
3961depcc="$CC" am_compiler_list=
3962
81ecdfbb
RW
3963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3964$as_echo_n "checking dependency style of $depcc... " >&6; }
3965if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3966 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
3967else
3968 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3969 # We make a subdir and do the tests there. Otherwise we can end up
3970 # making bogus files that we don't know about and never remove. For
3971 # instance it was reported that on HP-UX the gcc test will end up
3972 # making a dummy file named `D' -- because `-MD' means `put the output
3973 # in D'.
3974 mkdir conftest.dir
3975 # Copy depcomp to subdir because otherwise we won't find it if we're
3976 # using a relative directory.
3977 cp "$am_depcomp" conftest.dir
3978 cd conftest.dir
3979 # We will build objects and dependencies in a subdirectory because
3980 # it helps to detect inapplicable dependency modes. For instance
3981 # both Tru64's cc and ICC support -MD to output dependencies as a
3982 # side effect of compilation, but ICC will put the dependencies in
3983 # the current directory while Tru64 will put them in the object
3984 # directory.
3985 mkdir sub
3986
3987 am_cv_CC_dependencies_compiler_type=none
3988 if test "$am_compiler_list" = ""; then
3989 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3990 fi
81ecdfbb
RW
3991 am__universal=false
3992 case " $depcc " in #(
3993 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3994 esac
3995
42ecbf5e
DJ
3996 for depmode in $am_compiler_list; do
3997 # Setup a source with many dependencies, because some compilers
3998 # like to wrap large dependency lists on column 80 (with \), and
3999 # we should not choose a depcomp mode which is confused by this.
4000 #
4001 # We need to recreate these files for each test, as the compiler may
4002 # overwrite some of them when testing with obscure command lines.
4003 # This happens at least with the AIX C compiler.
4004 : > sub/conftest.c
4005 for i in 1 2 3 4 5 6; do
4006 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4007 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4008 # Solaris 8's {/usr,}/bin/sh.
4009 touch sub/conftst$i.h
4010 done
4011 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4012
81ecdfbb
RW
4013 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4014 # mode. It turns out that the SunPro C++ compiler does not properly
4015 # handle `-M -o', and we need to detect this. Also, some Intel
4016 # versions had trouble with output in subdirs
4017 am__obj=sub/conftest.${OBJEXT-o}
4018 am__minus_obj="-o $am__obj"
42ecbf5e 4019 case $depmode in
81ecdfbb
RW
4020 gcc)
4021 # This depmode causes a compiler race in universal mode.
4022 test "$am__universal" = false || continue
4023 ;;
42ecbf5e
DJ
4024 nosideeffect)
4025 # after this tag, mechanisms are not by side-effect, so they'll
4026 # only be used when explicitly requested
4027 if test "x$enable_dependency_tracking" = xyes; then
4028 continue
4029 else
4030 break
4031 fi
4032 ;;
81ecdfbb
RW
4033 msvisualcpp | msvcmsys)
4034 # This compiler won't grok `-c -o', but also, the minuso test has
4035 # not run yet. These depmodes are late enough in the game, and
4036 # so weak that their functioning should not be impacted.
4037 am__obj=conftest.${OBJEXT-o}
4038 am__minus_obj=
4039 ;;
42ecbf5e
DJ
4040 none) break ;;
4041 esac
42ecbf5e 4042 if depmode=$depmode \
81ecdfbb 4043 source=sub/conftest.c object=$am__obj \
42ecbf5e 4044 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
81ecdfbb 4045 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
42ecbf5e 4046 >/dev/null 2>conftest.err &&
81ecdfbb 4047 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
42ecbf5e 4048 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
81ecdfbb 4049 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
42ecbf5e
DJ
4050 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4051 # icc doesn't choke on unknown options, it will just issue warnings
4052 # or remarks (even with -Werror). So we grep stderr for any message
4053 # that says an option was ignored or not supported.
4054 # When given -MP, icc 7.0 and 7.1 complain thusly:
4055 # icc: Command line warning: ignoring option '-M'; no argument required
4056 # The diagnosis changed in icc 8.0:
4057 # icc: Command line remark: option '-MP' not supported
4058 if (grep 'ignoring option' conftest.err ||
4059 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4060 am_cv_CC_dependencies_compiler_type=$depmode
4061 break
4062 fi
4063 fi
4064 done
2469cfa2 4065
42ecbf5e
DJ
4066 cd ..
4067 rm -rf conftest.dir
2469cfa2 4068else
42ecbf5e
DJ
4069 am_cv_CC_dependencies_compiler_type=none
4070fi
4071
2469cfa2 4072fi
81ecdfbb
RW
4073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4074$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
42ecbf5e
DJ
4075CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4076
81ecdfbb 4077 if
42ecbf5e
DJ
4078 test "x$enable_dependency_tracking" != xno \
4079 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4080 am__fastdepCC_TRUE=
4081 am__fastdepCC_FALSE='#'
2469cfa2 4082else
42ecbf5e
DJ
4083 am__fastdepCC_TRUE='#'
4084 am__fastdepCC_FALSE=
2469cfa2 4085fi
2469cfa2 4086
2469cfa2 4087
e5a52504 4088
42ecbf5e 4089
64ac50ac
RW
4090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4091$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4092 # Check whether --enable-maintainer-mode was given.
4093if test "${enable_maintainer_mode+set}" = set; then :
4094 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4095else
4096 USE_MAINTAINER_MODE=no
4097fi
4098
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4100$as_echo "$USE_MAINTAINER_MODE" >&6; }
4101 if test $USE_MAINTAINER_MODE = yes; then
4102 MAINTAINER_MODE_TRUE=
4103 MAINTAINER_MODE_FALSE='#'
4104else
4105 MAINTAINER_MODE_TRUE='#'
4106 MAINTAINER_MODE_FALSE=
4107fi
4108
4109 MAINT=$MAINTAINER_MODE_TRUE
4110
4111
4112
d7040cdb 4113
81ecdfbb
RW
4114# Check whether --with-lib-path was given.
4115if test "${with_lib_path+set}" = set; then :
4116 withval=$with_lib_path; LIB_PATH=$withval
4117fi
4118
4119# Check whether --enable-targets was given.
4120if test "${enable_targets+set}" = set; then :
4121 enableval=$enable_targets; case "${enableval}" in
4122 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
ce2cded5
L
4123 ;;
4124 no) enable_targets= ;;
4125 *) enable_targets=$enableval ;;
4126esac
81ecdfbb
RW
4127fi
4128# Check whether --enable-64-bit-bfd was given.
4129if test "${enable_64_bit_bfd+set}" = set; then :
4130 enableval=$enable_64_bit_bfd; case "${enableval}" in
ce2cded5
L
4131 yes) want64=true ;;
4132 no) want64=false ;;
81ecdfbb 4133 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
ce2cded5 4134esac
2469cfa2 4135else
ce2cded5 4136 want64=false
81ecdfbb 4137fi
d7040cdb
SE
4138
4139
81ecdfbb
RW
4140# Check whether --with-sysroot was given.
4141if test "${with_sysroot+set}" = set; then :
4142 withval=$with_sysroot;
ce2cded5
L
4143 case ${with_sysroot} in
4144 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
4145 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4146 esac
d7040cdb 4147
ce2cded5
L
4148 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4149 use_sysroot=yes
d7040cdb 4150
ce2cded5
L
4151 if test "x$prefix" = xNONE; then
4152 test_prefix=/usr/local
4153 else
4154 test_prefix=$prefix
4155 fi
4156 if test "x$exec_prefix" = xNONE; then
4157 test_exec_prefix=$test_prefix
4158 else
4159 test_exec_prefix=$exec_prefix
4160 fi
4161 case ${TARGET_SYSTEM_ROOT} in
4162 "${test_prefix}"|"${test_prefix}/"*|\
4163 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
4164 '${prefix}'|'${prefix}/'*|\
4165 '${exec_prefix}'|'${exec_prefix}/'*)
4166 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4167 TARGET_SYSTEM_ROOT_DEFINE="$t"
4168 ;;
4169 esac
d7040cdb 4170
e5a52504 4171else
d7040cdb 4172
ce2cded5
L
4173 use_sysroot=no
4174 TARGET_SYSTEM_ROOT=
4175 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
d7040cdb 4176
81ecdfbb
RW
4177fi
4178
d7040cdb
SE
4179
4180
4181
4182
4fda8867
NC
4183# Check whether --enable-gold was given.
4184if test "${enable_gold+set}" = set; then :
4185 enableval=$enable_gold; case "${enableval}" in
c7791212 4186 default)
4fda8867
NC
4187 install_as_default=no
4188 installed_linker=ld.bfd
4189 ;;
c7791212 4190 yes|no)
4fda8867
NC
4191 install_as_default=yes
4192 installed_linker=ld.bfd
4193 ;;
4194 *)
4195 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
4196 ;;
4197 esac
4198else
c7791212
NC
4199 install_as_default=yes
4200 installed_linker=ld.bfd
4fda8867
NC
4201fi
4202
4203
4204
4205
81ecdfbb
RW
4206# Check whether --enable-got was given.
4207if test "${enable_got+set}" = set; then :
4208 enableval=$enable_got; case "${enableval}" in
7fb9f789 4209 target | single | negative | multigot) got_handling=$enableval ;;
81ecdfbb 4210 *) as_fn_error "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;;
7fb9f789
NC
4211esac
4212else
4213 got_handling=target
81ecdfbb
RW
4214fi
4215
7fb9f789
NC
4216
4217case "${got_handling}" in
4218 target)
4219
81ecdfbb 4220$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h
7fb9f789
NC
4221 ;;
4222 single)
4223
81ecdfbb 4224$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h
7fb9f789
NC
4225 ;;
4226 negative)
4227
81ecdfbb 4228$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h
7fb9f789
NC
4229 ;;
4230 multigot)
4231
81ecdfbb 4232$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h
7fb9f789 4233 ;;
81ecdfbb 4234 *) as_fn_error "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;;
7fb9f789
NC
4235esac
4236
397841b5
AM
4237ac_ext=c
4238ac_cpp='$CPP $CPPFLAGS'
4239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4241ac_compiler_gnu=$ac_cv_c_compiler_gnu
4242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4243$as_echo_n "checking how to run the C preprocessor... " >&6; }
4244# On Suns, sometimes $CPP names a directory.
4245if test -n "$CPP" && test -d "$CPP"; then
4246 CPP=
ce2cded5 4247fi
397841b5
AM
4248if test -z "$CPP"; then
4249 if test "${ac_cv_prog_CPP+set}" = set; then :
4250 $as_echo_n "(cached) " >&6
4251else
4252 # Double quotes because CPP needs to be expanded
4253 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4254 do
4255 ac_preproc_ok=false
4256for ac_c_preproc_warn_flag in '' yes
4257do
4258 # Use a header file that comes with gcc, so configuring glibc
4259 # with a fresh cross-compiler works.
4260 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4261 # <limits.h> exists even on freestanding compilers.
4262 # On the NeXT, cc -E runs the code through the compiler's parser,
4263 # not just through cpp. "Syntax error" is here to catch this case.
4264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4265/* end confdefs.h. */
4266#ifdef __STDC__
4267# include <limits.h>
4268#else
4269# include <assert.h>
4270#endif
4271 Syntax error
4272_ACEOF
4273if ac_fn_c_try_cpp "$LINENO"; then :
d7040cdb 4274
397841b5
AM
4275else
4276 # Broken: fails on valid input.
4277continue
ce2cded5 4278fi
397841b5 4279rm -f conftest.err conftest.$ac_ext
d7040cdb 4280
397841b5
AM
4281 # OK, works on sane cases. Now check whether nonexistent headers
4282 # can be detected and how.
4283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4284/* end confdefs.h. */
4285#include <ac_nonexistent.h>
4286_ACEOF
4287if ac_fn_c_try_cpp "$LINENO"; then :
4288 # Broken: success on invalid input.
4289continue
4290else
4291 # Passes both tests.
4292ac_preproc_ok=:
4293break
ce2cded5 4294fi
397841b5 4295rm -f conftest.err conftest.$ac_ext
d7040cdb 4296
397841b5
AM
4297done
4298# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4299rm -f conftest.err conftest.$ac_ext
4300if $ac_preproc_ok; then :
4301 break
81ecdfbb
RW
4302fi
4303
397841b5
AM
4304 done
4305 ac_cv_prog_CPP=$CPP
d7040cdb 4306
ce2cded5 4307fi
397841b5
AM
4308 CPP=$ac_cv_prog_CPP
4309else
4310 ac_cv_prog_CPP=$CPP
4311fi
4312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4313$as_echo "$CPP" >&6; }
4314ac_preproc_ok=false
4315for ac_c_preproc_warn_flag in '' yes
4316do
4317 # Use a header file that comes with gcc, so configuring glibc
4318 # with a fresh cross-compiler works.
4319 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4320 # <limits.h> exists even on freestanding compilers.
4321 # On the NeXT, cc -E runs the code through the compiler's parser,
4322 # not just through cpp. "Syntax error" is here to catch this case.
4323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4324/* end confdefs.h. */
4325#ifdef __STDC__
4326# include <limits.h>
4327#else
4328# include <assert.h>
4329#endif
4330 Syntax error
4331_ACEOF
4332if ac_fn_c_try_cpp "$LINENO"; then :
d7040cdb 4333
397841b5
AM
4334else
4335 # Broken: fails on valid input.
4336continue
4337fi
4338rm -f conftest.err conftest.$ac_ext
2469cfa2 4339
397841b5
AM
4340 # OK, works on sane cases. Now check whether nonexistent headers
4341 # can be detected and how.
4342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4343/* end confdefs.h. */
4344#include <ac_nonexistent.h>
4345_ACEOF
4346if ac_fn_c_try_cpp "$LINENO"; then :
4347 # Broken: success on invalid input.
4348continue
4349else
4350 # Passes both tests.
4351ac_preproc_ok=:
4352break
4353fi
4354rm -f conftest.err conftest.$ac_ext
d7040cdb 4355
397841b5
AM
4356done
4357# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4358rm -f conftest.err conftest.$ac_ext
4359if $ac_preproc_ok; then :
d7040cdb 4360
397841b5
AM
4361else
4362 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4363$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4364as_fn_error "C preprocessor \"$CPP\" fails sanity check
4365See \`config.log' for more details." "$LINENO" 5; }
ce2cded5 4366fi
d7040cdb 4367
ce2cded5
L
4368ac_ext=c
4369ac_cpp='$CPP $CPPFLAGS'
4370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4372ac_compiler_gnu=$ac_cv_c_compiler_gnu
397841b5
AM
4373
4374
4375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4376$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4377if test "${ac_cv_path_GREP+set}" = set; then :
81ecdfbb 4378 $as_echo_n "(cached) " >&6
d7040cdb 4379else
397841b5
AM
4380 if test -z "$GREP"; then
4381 ac_path_GREP_found=false
4382 # Loop through the user's path and test for each of PROGNAME-LIST
4383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
d7040cdb
SE
4385do
4386 IFS=$as_save_IFS
4387 test -z "$as_dir" && as_dir=.
397841b5 4388 for ac_prog in grep ggrep; do
81ecdfbb 4389 for ac_exec_ext in '' $ac_executable_extensions; do
397841b5
AM
4390 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4391 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4392# Check for GNU ac_path_GREP and select it if it is found.
4393 # Check for GNU $ac_path_GREP
4394case `"$ac_path_GREP" --version 2>&1` in
4395*GNU*)
4396 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4397*)
4398 ac_count=0
4399 $as_echo_n 0123456789 >"conftest.in"
4400 while :
4401 do
4402 cat "conftest.in" "conftest.in" >"conftest.tmp"
4403 mv "conftest.tmp" "conftest.in"
4404 cp "conftest.in" "conftest.nl"
4405 $as_echo 'GREP' >> "conftest.nl"
4406 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4407 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4408 as_fn_arith $ac_count + 1 && ac_count=$as_val
4409 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4410 # Best one so far, save it but keep looking for a better one
4411 ac_cv_path_GREP="$ac_path_GREP"
4412 ac_path_GREP_max=$ac_count
4413 fi
4414 # 10*(2^10) chars as input seems more than enough
4415 test $ac_count -gt 10 && break
81ecdfbb 4416 done
397841b5
AM
4417 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4418esac
d7040cdb 4419
397841b5
AM
4420 $ac_path_GREP_found && break 3
4421 done
4422 done
4423 done
4424IFS=$as_save_IFS
4425 if test -z "$ac_cv_path_GREP"; then
4426 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4427 fi
d7040cdb 4428else
397841b5 4429 ac_cv_path_GREP=$GREP
d7040cdb 4430fi
d7040cdb 4431
252b5132 4432fi
397841b5
AM
4433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4434$as_echo "$ac_cv_path_GREP" >&6; }
4435 GREP="$ac_cv_path_GREP"
4436
4437
4438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4439$as_echo_n "checking for egrep... " >&6; }
4440if test "${ac_cv_path_EGREP+set}" = set; then :
4441 $as_echo_n "(cached) " >&6
4442else
4443 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4444 then ac_cv_path_EGREP="$GREP -E"
4445 else
4446 if test -z "$EGREP"; then
4447 ac_path_EGREP_found=false
4448 # Loop through the user's path and test for each of PROGNAME-LIST
4449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4451do
4452 IFS=$as_save_IFS
4453 test -z "$as_dir" && as_dir=.
4454 for ac_prog in egrep; do
4455 for ac_exec_ext in '' $ac_executable_extensions; do
4456 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4457 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4458# Check for GNU ac_path_EGREP and select it if it is found.
4459 # Check for GNU $ac_path_EGREP
4460case `"$ac_path_EGREP" --version 2>&1` in
4461*GNU*)
4462 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4463*)
4464 ac_count=0
4465 $as_echo_n 0123456789 >"conftest.in"
4466 while :
4467 do
4468 cat "conftest.in" "conftest.in" >"conftest.tmp"
4469 mv "conftest.tmp" "conftest.in"
4470 cp "conftest.in" "conftest.nl"
4471 $as_echo 'EGREP' >> "conftest.nl"
4472 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4473 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4474 as_fn_arith $ac_count + 1 && ac_count=$as_val
4475 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4476 # Best one so far, save it but keep looking for a better one
4477 ac_cv_path_EGREP="$ac_path_EGREP"
4478 ac_path_EGREP_max=$ac_count
4479 fi
4480 # 10*(2^10) chars as input seems more than enough
4481 test $ac_count -gt 10 && break
4482 done
4483 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4484esac
4485
4486 $ac_path_EGREP_found && break 3
4487 done
4488 done
4489 done
4490IFS=$as_save_IFS
4491 if test -z "$ac_cv_path_EGREP"; then
4492 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4493 fi
4494else
4495 ac_cv_path_EGREP=$EGREP
4496fi
4497
4498 fi
4499fi
4500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4501$as_echo "$ac_cv_path_EGREP" >&6; }
4502 EGREP="$ac_cv_path_EGREP"
4503
4504
4505
4506GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4507cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4508/* end confdefs.h. */
4509__GNUC__
4510_ACEOF
4511if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4512 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
4513
4514else
4515 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
4516fi
4517rm -f conftest*
4518
4519
4520# Check whether --enable-werror was given.
4521if test "${enable_werror+set}" = set; then :
4522 enableval=$enable_werror; case "${enableval}" in
4523 yes | y) ERROR_ON_WARNING="yes" ;;
4524 no | n) ERROR_ON_WARNING="no" ;;
4525 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
4526 esac
4527fi
4528
4529
4530# Disable -Wformat by default when using gcc on mingw
4531case "${host}" in
4532 *-*-mingw32*)
4533 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4534 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
4535 fi
4536 ;;
4537 *) ;;
4538esac
4539
4540# Enable -Werror by default when using gcc
4541if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4542 ERROR_ON_WARNING=yes
4543fi
4544
4545NO_WERROR=
4546if test "${ERROR_ON_WARNING}" = yes ; then
4547 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
4548 NO_WERROR="-Wno-error"
4549fi
4550
4551if test "${GCC}" = yes ; then
4552 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4553fi
4554
4555# Check whether --enable-build-warnings was given.
4556if test "${enable_build_warnings+set}" = set; then :
4557 enableval=$enable_build_warnings; case "${enableval}" in
4558 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4559 no) if test "${GCC}" = yes ; then
4560 WARN_CFLAGS="-w"
4561 fi;;
4562 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4563 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
4564 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4565 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
4566 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4567esac
4568fi
4569
4570
4571if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4572 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4573fi
4574
4575
4576
4577
4578
4579ac_config_headers="$ac_config_headers config.h:config.in"
4580
4581
4582if test -z "$target" ; then
4583 as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
4584fi
4585if test -z "$host" ; then
4586 as_fn_error "Unrecognized host system type; please check config.sub." "$LINENO" 5
4587fi
4588
4589# host-specific stuff:
4590
4591ac_ext=c
4592ac_cpp='$CPP $CPPFLAGS'
4593ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4594ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4595ac_compiler_gnu=$ac_cv_c_compiler_gnu
4596if test -n "$ac_tool_prefix"; then
4597 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4598set dummy ${ac_tool_prefix}gcc; ac_word=$2
4599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4600$as_echo_n "checking for $ac_word... " >&6; }
4601if test "${ac_cv_prog_CC+set}" = set; then :
4602 $as_echo_n "(cached) " >&6
4603else
4604 if test -n "$CC"; then
4605 ac_cv_prog_CC="$CC" # Let the user override the test.
4606else
4607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608for as_dir in $PATH
4609do
4610 IFS=$as_save_IFS
4611 test -z "$as_dir" && as_dir=.
4612 for ac_exec_ext in '' $ac_executable_extensions; do
4613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4614 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4616 break 2
4617 fi
4618done
4619 done
4620IFS=$as_save_IFS
4621
4622fi
4623fi
4624CC=$ac_cv_prog_CC
4625if test -n "$CC"; then
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4627$as_echo "$CC" >&6; }
4628else
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4630$as_echo "no" >&6; }
4631fi
4632
4633
4634fi
4635if test -z "$ac_cv_prog_CC"; then
4636 ac_ct_CC=$CC
4637 # Extract the first word of "gcc", so it can be a program name with args.
4638set dummy gcc; ac_word=$2
4639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4640$as_echo_n "checking for $ac_word... " >&6; }
81ecdfbb
RW
4641if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4642 $as_echo_n "(cached) " >&6
252b5132 4643else
ce2cded5
L
4644 if test -n "$ac_ct_CC"; then
4645 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 4646else
ce2cded5
L
4647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648for as_dir in $PATH
4649do
4650 IFS=$as_save_IFS
4651 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4654 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 4655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4656 break 2
4657 fi
4658done
81ecdfbb
RW
4659 done
4660IFS=$as_save_IFS
4661
252b5132
RH
4662fi
4663fi
ce2cded5
L
4664ac_ct_CC=$ac_cv_prog_ac_ct_CC
4665if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4667$as_echo "$ac_ct_CC" >&6; }
252b5132 4668else
81ecdfbb
RW
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4670$as_echo "no" >&6; }
252b5132 4671fi
ce2cded5 4672
81ecdfbb
RW
4673 if test "x$ac_ct_CC" = x; then
4674 CC=""
4675 else
4676 case $cross_compiling:$ac_tool_warned in
4677yes:)
4678{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4679$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4680ac_tool_warned=yes ;;
4681esac
4682 CC=$ac_ct_CC
4683 fi
252b5132 4684else
ce2cded5 4685 CC="$ac_cv_prog_CC"
252b5132 4686fi
d7040cdb 4687
ce2cded5 4688if test -z "$CC"; then
81ecdfbb
RW
4689 if test -n "$ac_tool_prefix"; then
4690 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ce2cded5 4691set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
4692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4693$as_echo_n "checking for $ac_word... " >&6; }
4694if test "${ac_cv_prog_CC+set}" = set; then :
4695 $as_echo_n "(cached) " >&6
252b5132 4696else
ce2cded5
L
4697 if test -n "$CC"; then
4698 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 4699else
ce2cded5
L
4700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701for as_dir in $PATH
4702do
4703 IFS=$as_save_IFS
4704 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4705 for ac_exec_ext in '' $ac_executable_extensions; do
4706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4707 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4709 break 2
4710 fi
4711done
81ecdfbb
RW
4712 done
4713IFS=$as_save_IFS
ce2cded5 4714
252b5132
RH
4715fi
4716fi
ce2cded5
L
4717CC=$ac_cv_prog_CC
4718if test -n "$CC"; then
81ecdfbb
RW
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4720$as_echo "$CC" >&6; }
ce2cded5 4721else
81ecdfbb
RW
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4723$as_echo "no" >&6; }
ce2cded5
L
4724fi
4725
ce2cded5 4726
81ecdfbb 4727 fi
ce2cded5
L
4728fi
4729if test -z "$CC"; then
4730 # Extract the first word of "cc", so it can be a program name with args.
4731set dummy cc; ac_word=$2
81ecdfbb
RW
4732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4733$as_echo_n "checking for $ac_word... " >&6; }
4734if test "${ac_cv_prog_CC+set}" = set; then :
4735 $as_echo_n "(cached) " >&6
ce2cded5
L
4736else
4737 if test -n "$CC"; then
4738 ac_cv_prog_CC="$CC" # Let the user override the test.
4739else
4740 ac_prog_rejected=no
4741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742for as_dir in $PATH
4743do
4744 IFS=$as_save_IFS
4745 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4746 for ac_exec_ext in '' $ac_executable_extensions; do
4747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5
L
4748 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4749 ac_prog_rejected=yes
4750 continue
4751 fi
4752 ac_cv_prog_CC="cc"
81ecdfbb 4753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4754 break 2
4755 fi
4756done
81ecdfbb
RW
4757 done
4758IFS=$as_save_IFS
ce2cded5
L
4759
4760if test $ac_prog_rejected = yes; then
4761 # We found a bogon in the path, so make sure we never use it.
4762 set dummy $ac_cv_prog_CC
4763 shift
4764 if test $# != 0; then
4765 # We chose a different compiler from the bogus one.
4766 # However, it has the same basename, so the bogon will be chosen
4767 # first if we set CC to just the basename; use the full file name.
4768 shift
4769 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4770 fi
4771fi
4772fi
4773fi
4774CC=$ac_cv_prog_CC
4775if test -n "$CC"; then
81ecdfbb
RW
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4777$as_echo "$CC" >&6; }
ce2cded5 4778else
81ecdfbb
RW
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4780$as_echo "no" >&6; }
ce2cded5
L
4781fi
4782
81ecdfbb 4783
ce2cded5
L
4784fi
4785if test -z "$CC"; then
d7040cdb 4786 if test -n "$ac_tool_prefix"; then
81ecdfbb 4787 for ac_prog in cl.exe
d7040cdb
SE
4788 do
4789 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4790set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4792$as_echo_n "checking for $ac_word... " >&6; }
4793if test "${ac_cv_prog_CC+set}" = set; then :
4794 $as_echo_n "(cached) " >&6
d7040cdb 4795else
ce2cded5
L
4796 if test -n "$CC"; then
4797 ac_cv_prog_CC="$CC" # Let the user override the test.
d7040cdb
SE
4798else
4799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4800for as_dir in $PATH
4801do
4802 IFS=$as_save_IFS
4803 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4804 for ac_exec_ext in '' $ac_executable_extensions; do
4805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4806 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
4808 break 2
4809 fi
4810done
81ecdfbb
RW
4811 done
4812IFS=$as_save_IFS
d7040cdb
SE
4813
4814fi
4815fi
ce2cded5
L
4816CC=$ac_cv_prog_CC
4817if test -n "$CC"; then
81ecdfbb
RW
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4819$as_echo "$CC" >&6; }
d7040cdb 4820else
81ecdfbb
RW
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4822$as_echo "no" >&6; }
d7040cdb
SE
4823fi
4824
81ecdfbb 4825
ce2cded5 4826 test -n "$CC" && break
d7040cdb
SE
4827 done
4828fi
ce2cded5
L
4829if test -z "$CC"; then
4830 ac_ct_CC=$CC
81ecdfbb 4831 for ac_prog in cl.exe
d7040cdb
SE
4832do
4833 # Extract the first word of "$ac_prog", so it can be a program name with args.
4834set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4836$as_echo_n "checking for $ac_word... " >&6; }
4837if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4838 $as_echo_n "(cached) " >&6
d7040cdb 4839else
ce2cded5
L
4840 if test -n "$ac_ct_CC"; then
4841 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d7040cdb
SE
4842else
4843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4844for as_dir in $PATH
4845do
4846 IFS=$as_save_IFS
4847 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4848 for ac_exec_ext in '' $ac_executable_extensions; do
4849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4850 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
4852 break 2
4853 fi
4854done
81ecdfbb
RW
4855 done
4856IFS=$as_save_IFS
d7040cdb
SE
4857
4858fi
4859fi
ce2cded5
L
4860ac_ct_CC=$ac_cv_prog_ac_ct_CC
4861if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4863$as_echo "$ac_ct_CC" >&6; }
d7040cdb 4864else
81ecdfbb
RW
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4866$as_echo "no" >&6; }
d7040cdb
SE
4867fi
4868
81ecdfbb 4869
ce2cded5 4870 test -n "$ac_ct_CC" && break
d7040cdb 4871done
d7040cdb 4872
81ecdfbb
RW
4873 if test "x$ac_ct_CC" = x; then
4874 CC=""
4875 else
4876 case $cross_compiling:$ac_tool_warned in
4877yes:)
4878{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4879$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4880ac_tool_warned=yes ;;
4881esac
4882 CC=$ac_ct_CC
4883 fi
d7040cdb
SE
4884fi
4885
d7040cdb 4886fi
d7040cdb
SE
4887
4888
81ecdfbb
RW
4889test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4890$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4891as_fn_error "no acceptable C compiler found in \$PATH
4892See \`config.log' for more details." "$LINENO" 5; }
d7040cdb 4893
ce2cded5 4894# Provide some information about the compiler.
81ecdfbb
RW
4895$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4896set X $ac_compile
4897ac_compiler=$2
4898for ac_option in --version -v -V -qversion; do
4899 { { ac_try="$ac_compiler $ac_option >&5"
4900case "(($ac_try" in
4901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4902 *) ac_try_echo=$ac_try;;
4903esac
4904eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4905$as_echo "$ac_try_echo"; } >&5
4906 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
ce2cded5 4907 ac_status=$?
81ecdfbb
RW
4908 if test -s conftest.err; then
4909 sed '10a\
4910... rest of stderr output deleted ...
4911 10q' conftest.err >conftest.er1
4912 cat conftest.er1 >&5
4913 rm -f conftest.er1 conftest.err
4914 fi
4915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4916 test $ac_status = 0; }
4917done
d7040cdb 4918
81ecdfbb
RW
4919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4920$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4921if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4922 $as_echo_n "(cached) " >&6
d7040cdb 4923else
81ecdfbb 4924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4925/* end confdefs.h. */
d7040cdb 4926
ce2cded5
L
4927int
4928main ()
4929{
4930#ifndef __GNUC__
4931 choke me
4932#endif
4933
4934 ;
4935 return 0;
4936}
4937_ACEOF
81ecdfbb 4938if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5 4939 ac_compiler_gnu=yes
d7040cdb 4940else
81ecdfbb 4941 ac_compiler_gnu=no
d7040cdb 4942fi
81ecdfbb 4943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce2cded5 4944ac_cv_c_compiler_gnu=$ac_compiler_gnu
d7040cdb 4945
ce2cded5 4946fi
81ecdfbb
RW
4947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4948$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4949if test $ac_compiler_gnu = yes; then
4950 GCC=yes
4951else
4952 GCC=
4953fi
ce2cded5
L
4954ac_test_CFLAGS=${CFLAGS+set}
4955ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4957$as_echo_n "checking whether $CC accepts -g... " >&6; }
4958if test "${ac_cv_prog_cc_g+set}" = set; then :
4959 $as_echo_n "(cached) " >&6
4960else
4961 ac_save_c_werror_flag=$ac_c_werror_flag
4962 ac_c_werror_flag=yes
4963 ac_cv_prog_cc_g=no
4964 CFLAGS="-g"
4965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4966/* end confdefs.h. */
d7040cdb 4967
ce2cded5
L
4968int
4969main ()
4970{
d7040cdb 4971
ce2cded5
L
4972 ;
4973 return 0;
4974}
4975_ACEOF
81ecdfbb 4976if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5
L
4977 ac_cv_prog_cc_g=yes
4978else
81ecdfbb
RW
4979 CFLAGS=""
4980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4981/* end confdefs.h. */
4982
4983int
4984main ()
4985{
4986
4987 ;
4988 return 0;
4989}
4990_ACEOF
4991if ac_fn_c_try_compile "$LINENO"; then :
4992
4993else
4994 ac_c_werror_flag=$ac_save_c_werror_flag
4995 CFLAGS="-g"
4996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4997/* end confdefs.h. */
4998
4999int
5000main ()
5001{
d7040cdb 5002
81ecdfbb
RW
5003 ;
5004 return 0;
5005}
5006_ACEOF
5007if ac_fn_c_try_compile "$LINENO"; then :
5008 ac_cv_prog_cc_g=yes
5009fi
5010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5011fi
5012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 5013fi
81ecdfbb
RW
5014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5015 ac_c_werror_flag=$ac_save_c_werror_flag
ce2cded5 5016fi
81ecdfbb
RW
5017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5018$as_echo "$ac_cv_prog_cc_g" >&6; }
ce2cded5
L
5019if test "$ac_test_CFLAGS" = set; then
5020 CFLAGS=$ac_save_CFLAGS
5021elif test $ac_cv_prog_cc_g = yes; then
5022 if test "$GCC" = yes; then
5023 CFLAGS="-g -O2"
5024 else
5025 CFLAGS="-g"
5026 fi
d7040cdb 5027else
ce2cded5
L
5028 if test "$GCC" = yes; then
5029 CFLAGS="-O2"
5030 else
5031 CFLAGS=
5032 fi
d7040cdb 5033fi
81ecdfbb
RW
5034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5035$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5036if test "${ac_cv_prog_cc_c89+set}" = set; then :
5037 $as_echo_n "(cached) " >&6
d7040cdb 5038else
81ecdfbb 5039 ac_cv_prog_cc_c89=no
ce2cded5 5040ac_save_CC=$CC
81ecdfbb 5041cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
5042/* end confdefs.h. */
5043#include <stdarg.h>
5044#include <stdio.h>
5045#include <sys/types.h>
5046#include <sys/stat.h>
5047/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5048struct buf { int x; };
5049FILE * (*rcsopen) (struct buf *, struct stat *, int);
5050static char *e (p, i)
5051 char **p;
5052 int i;
5053{
5054 return p[i];
5055}
5056static char *f (char * (*g) (char **, int), char **p, ...)
5057{
5058 char *s;
5059 va_list v;
5060 va_start (v,p);
5061 s = g (p, va_arg (v,int));
5062 va_end (v);
5063 return s;
5064}
d7040cdb 5065
ce2cded5
L
5066/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5067 function prototypes and stuff, but not '\xHH' hex character constants.
5068 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 5069 as 'x'. The following induces an error, until -std is added to get
ce2cded5
L
5070 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5071 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 5072 that's true only with -std. */
ce2cded5 5073int osf4_cc_array ['\x00' == 0 ? 1 : -1];
d7040cdb 5074
81ecdfbb
RW
5075/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5076 inside strings and character constants. */
5077#define FOO(x) 'x'
5078int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5079
ce2cded5
L
5080int test (int i, double x);
5081struct s1 {int (*f) (int a);};
5082struct s2 {int (*f) (double a);};
5083int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5084int argc;
5085char **argv;
5086int
5087main ()
5088{
5089return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5090 ;
5091 return 0;
5092}
5093_ACEOF
81ecdfbb
RW
5094for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5095 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ce2cded5
L
5096do
5097 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
5098 if ac_fn_c_try_compile "$LINENO"; then :
5099 ac_cv_prog_cc_c89=$ac_arg
ce2cded5 5100fi
81ecdfbb
RW
5101rm -f core conftest.err conftest.$ac_objext
5102 test "x$ac_cv_prog_cc_c89" != "xno" && break
ce2cded5 5103done
81ecdfbb 5104rm -f conftest.$ac_ext
ce2cded5 5105CC=$ac_save_CC
d7040cdb 5106
ce2cded5 5107fi
81ecdfbb
RW
5108# AC_CACHE_VAL
5109case "x$ac_cv_prog_cc_c89" in
5110 x)
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5112$as_echo "none needed" >&6; } ;;
5113 xno)
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5115$as_echo "unsupported" >&6; } ;;
ce2cded5 5116 *)
81ecdfbb
RW
5117 CC="$CC $ac_cv_prog_cc_c89"
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5119$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
d7040cdb 5120esac
81ecdfbb 5121if test "x$ac_cv_prog_cc_c89" != xno; then :
d7040cdb 5122
ce2cded5 5123fi
d7040cdb 5124
ce2cded5
L
5125ac_ext=c
5126ac_cpp='$CPP $CPPFLAGS'
5127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5129ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 5130
81ecdfbb
RW
5131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5132$as_echo_n "checking for ANSI C header files... " >&6; }
5133if test "${ac_cv_header_stdc+set}" = set; then :
5134 $as_echo_n "(cached) " >&6
5135else
5136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5137/* end confdefs.h. */
5138#include <stdlib.h>
5139#include <stdarg.h>
5140#include <string.h>
5141#include <float.h>
5142
5143int
5144main ()
5145{
5146
5147 ;
5148 return 0;
5149}
5150_ACEOF
5151if ac_fn_c_try_compile "$LINENO"; then :
5152 ac_cv_header_stdc=yes
5153else
5154 ac_cv_header_stdc=no
7357c5b6 5155fi
81ecdfbb 5156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e 5157
7357c5b6
AM
5158if test $ac_cv_header_stdc = yes; then
5159 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
81ecdfbb 5160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5161/* end confdefs.h. */
5162#include <string.h>
ac48eca1 5163
7357c5b6
AM
5164_ACEOF
5165if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
5166 $EGREP "memchr" >/dev/null 2>&1; then :
5167
7357c5b6
AM
5168else
5169 ac_cv_header_stdc=no
5170fi
5171rm -f conftest*
252b5132 5172
7357c5b6 5173fi
252b5132 5174
7357c5b6
AM
5175if test $ac_cv_header_stdc = yes; then
5176 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
81ecdfbb 5177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5178/* end confdefs.h. */
5179#include <stdlib.h>
42ecbf5e 5180
7357c5b6
AM
5181_ACEOF
5182if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
5183 $EGREP "free" >/dev/null 2>&1; then :
5184
7357c5b6
AM
5185else
5186 ac_cv_header_stdc=no
5187fi
5188rm -f conftest*
ac48eca1 5189
7357c5b6 5190fi
d7040cdb 5191
7357c5b6
AM
5192if test $ac_cv_header_stdc = yes; then
5193 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
81ecdfbb 5194 if test "$cross_compiling" = yes; then :
7357c5b6
AM
5195 :
5196else
81ecdfbb 5197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5198/* end confdefs.h. */
5199#include <ctype.h>
81ecdfbb 5200#include <stdlib.h>
7357c5b6
AM
5201#if ((' ' & 0x0FF) == 0x020)
5202# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5203# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5204#else
5205# define ISLOWER(c) \
5206 (('a' <= (c) && (c) <= 'i') \
5207 || ('j' <= (c) && (c) <= 'r') \
5208 || ('s' <= (c) && (c) <= 'z'))
5209# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5210#endif
d7040cdb 5211
7357c5b6
AM
5212#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5213int
5214main ()
5215{
5216 int i;
5217 for (i = 0; i < 256; i++)
5218 if (XOR (islower (i), ISLOWER (i))
5219 || toupper (i) != TOUPPER (i))
81ecdfbb
RW
5220 return 2;
5221 return 0;
7357c5b6
AM
5222}
5223_ACEOF
81ecdfbb 5224if ac_fn_c_try_run "$LINENO"; then :
7357c5b6 5225
81ecdfbb
RW
5226else
5227 ac_cv_header_stdc=no
252b5132 5228fi
81ecdfbb
RW
5229rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5230 conftest.$ac_objext conftest.beam conftest.$ac_ext
7357c5b6 5231fi
81ecdfbb 5232
7357c5b6
AM
5233fi
5234fi
81ecdfbb
RW
5235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5236$as_echo "$ac_cv_header_stdc" >&6; }
7357c5b6 5237if test $ac_cv_header_stdc = yes; then
252b5132 5238
81ecdfbb 5239$as_echo "#define STDC_HEADERS 1" >>confdefs.h
252b5132 5240
ce2cded5 5241fi
252b5132 5242
7357c5b6 5243# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7357c5b6
AM
5244for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5245 inttypes.h stdint.h unistd.h
81ecdfbb
RW
5246do :
5247 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5248ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5249"
5250eval as_val=\$$as_ac_Header
5251 if test "x$as_val" = x""yes; then :
7357c5b6 5252 cat >>confdefs.h <<_ACEOF
81ecdfbb 5253#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7357c5b6 5254_ACEOF
42ecbf5e 5255
7357c5b6 5256fi
42ecbf5e 5257
7357c5b6 5258done
42ecbf5e
DJ
5259
5260
5261
81ecdfbb
RW
5262 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5263if test "x$ac_cv_header_minix_config_h" = x""yes; then :
7357c5b6 5264 MINIX=yes
ce2cded5 5265else
7357c5b6 5266 MINIX=
ce2cded5 5267fi
42ecbf5e 5268
e5a52504 5269
7357c5b6
AM
5270 if test "$MINIX" = yes; then
5271
81ecdfbb 5272$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
d7040cdb 5273
d7040cdb 5274
81ecdfbb 5275$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
d7040cdb 5276
d7040cdb 5277
81ecdfbb 5278$as_echo "#define _MINIX 1" >>confdefs.h
d7040cdb 5279
7357c5b6 5280 fi
d7040cdb 5281
d7040cdb 5282
81ecdfbb
RW
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5284$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5285if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5286 $as_echo_n "(cached) " >&6
ce2cded5 5287else
81ecdfbb 5288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5289/* end confdefs.h. */
5290
5291# define __EXTENSIONS__ 1
5292 $ac_includes_default
5293int
5294main ()
5295{
5296
5297 ;
5298 return 0;
5299}
5300_ACEOF
81ecdfbb 5301if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6 5302 ac_cv_safe_to_define___extensions__=yes
ce2cded5 5303else
81ecdfbb 5304 ac_cv_safe_to_define___extensions__=no
ce2cded5 5305fi
81ecdfbb 5306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce2cded5 5307fi
81ecdfbb
RW
5308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5309$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
7357c5b6 5310 test $ac_cv_safe_to_define___extensions__ = yes &&
81ecdfbb 5311 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
7357c5b6 5312
81ecdfbb 5313 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
7357c5b6 5314
81ecdfbb 5315 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
7357c5b6 5316
81ecdfbb
RW
5317 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5318
5319 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
7357c5b6 5320
7357c5b6
AM
5321
5322
d053aef8 5323
da2f07f1 5324
3388710e
JM
5325# The tests for host and target for $enable_largefile require
5326# canonical names.
5327
5328
5329
da2f07f1
JK
5330# As the $enable_largefile decision depends on --enable-plugins we must set it
5331# even in directories otherwise not depending on the $plugins option.
5332
5333
5334# Check whether --enable-plugins was given.
5335if test "${enable_plugins+set}" = set; then :
5336 enableval=$enable_plugins; case "${enableval}" in
5337 yes | "") plugins=yes ;;
5338 no) plugins=no ;;
5339 *) plugins=yes ;;
5340 esac
5341else
5342 plugins=no
5343fi
5344
5345
5346
5347case "${host}" in
5348 sparc-*-solaris*|i[3-7]86-*-solaris*)
5349 # On native 32bit sparc and ia32 solaris, large-file and procfs support
5350 # are mutually exclusive; and without procfs support, the bfd/ elf module
5351 # cannot provide certain routines such as elfcore_write_prpsinfo
5352 # or elfcore_write_prstatus. So unless the user explicitly requested
5353 # large-file support through the --enable-largefile switch, disable
5354 # large-file support in favor of procfs support.
5355 test "${target}" = "${host}" -a "x$plugins" = xno \
5356 && : ${enable_largefile="no"}
5357 ;;
5358esac
5359
81ecdfbb
RW
5360# Check whether --enable-largefile was given.
5361if test "${enable_largefile+set}" = set; then :
5362 enableval=$enable_largefile;
5363fi
5364
d053aef8
JK
5365if test "$enable_largefile" != no; then
5366
81ecdfbb
RW
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5368$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5369if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5370 $as_echo_n "(cached) " >&6
d053aef8
JK
5371else
5372 ac_cv_sys_largefile_CC=no
5373 if test "$GCC" != yes; then
5374 ac_save_CC=$CC
5375 while :; do
81ecdfbb
RW
5376 # IRIX 6.2 and later do not support large files by default,
5377 # so use the C compiler's -n32 option if that helps.
5378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5379/* end confdefs.h. */
5380#include <sys/types.h>
5381 /* Check that off_t can represent 2**63 - 1 correctly.
5382 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5383 since some C++ compilers masquerading as C compilers
5384 incorrectly reject 9223372036854775807. */
5385#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5386 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5387 && LARGE_OFF_T % 2147483647 == 1)
5388 ? 1 : -1];
5389int
5390main ()
5391{
5392
5393 ;
5394 return 0;
5395}
5396_ACEOF
81ecdfbb 5397 if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 5398 break
d053aef8 5399fi
81ecdfbb
RW
5400rm -f core conftest.err conftest.$ac_objext
5401 CC="$CC -n32"
5402 if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 5403 ac_cv_sys_largefile_CC=' -n32'; break
d053aef8 5404fi
81ecdfbb 5405rm -f core conftest.err conftest.$ac_objext
d053aef8
JK
5406 break
5407 done
5408 CC=$ac_save_CC
5409 rm -f conftest.$ac_ext
5410 fi
5411fi
81ecdfbb
RW
5412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5413$as_echo "$ac_cv_sys_largefile_CC" >&6; }
d053aef8
JK
5414 if test "$ac_cv_sys_largefile_CC" != no; then
5415 CC=$CC$ac_cv_sys_largefile_CC
5416 fi
5417
81ecdfbb
RW
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5419$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5420if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5421 $as_echo_n "(cached) " >&6
d053aef8
JK
5422else
5423 while :; do
81ecdfbb 5424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5425/* end confdefs.h. */
5426#include <sys/types.h>
5427 /* Check that off_t can represent 2**63 - 1 correctly.
5428 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5429 since some C++ compilers masquerading as C compilers
5430 incorrectly reject 9223372036854775807. */
5431#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5432 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5433 && LARGE_OFF_T % 2147483647 == 1)
5434 ? 1 : -1];
5435int
5436main ()
5437{
5438
5439 ;
5440 return 0;
5441}
5442_ACEOF
81ecdfbb
RW
5443if ac_fn_c_try_compile "$LINENO"; then :
5444 ac_cv_sys_file_offset_bits=no; break
d053aef8 5445fi
81ecdfbb
RW
5446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5448/* end confdefs.h. */
5449#define _FILE_OFFSET_BITS 64
5450#include <sys/types.h>
5451 /* Check that off_t can represent 2**63 - 1 correctly.
5452 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5453 since some C++ compilers masquerading as C compilers
5454 incorrectly reject 9223372036854775807. */
5455#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5456 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5457 && LARGE_OFF_T % 2147483647 == 1)
5458 ? 1 : -1];
5459int
5460main ()
5461{
5462
5463 ;
5464 return 0;
5465}
5466_ACEOF
81ecdfbb 5467if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 5468 ac_cv_sys_file_offset_bits=64; break
d053aef8 5469fi
81ecdfbb
RW
5470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5471 ac_cv_sys_file_offset_bits=unknown
d053aef8
JK
5472 break
5473done
5474fi
81ecdfbb
RW
5475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5476$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5477case $ac_cv_sys_file_offset_bits in #(
5478 no | unknown) ;;
5479 *)
d053aef8
JK
5480cat >>confdefs.h <<_ACEOF
5481#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5482_ACEOF
81ecdfbb
RW
5483;;
5484esac
5485rm -rf conftest*
5486 if test $ac_cv_sys_file_offset_bits = unknown; then
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5488$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5489if test "${ac_cv_sys_large_files+set}" = set; then :
5490 $as_echo_n "(cached) " >&6
d053aef8
JK
5491else
5492 while :; do
81ecdfbb 5493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5494/* end confdefs.h. */
5495#include <sys/types.h>
5496 /* Check that off_t can represent 2**63 - 1 correctly.
5497 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5498 since some C++ compilers masquerading as C compilers
5499 incorrectly reject 9223372036854775807. */
5500#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5501 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5502 && LARGE_OFF_T % 2147483647 == 1)
5503 ? 1 : -1];
5504int
5505main ()
5506{
5507
5508 ;
5509 return 0;
5510}
5511_ACEOF
81ecdfbb
RW
5512if ac_fn_c_try_compile "$LINENO"; then :
5513 ac_cv_sys_large_files=no; break
d053aef8 5514fi
81ecdfbb
RW
5515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5517/* end confdefs.h. */
5518#define _LARGE_FILES 1
5519#include <sys/types.h>
5520 /* Check that off_t can represent 2**63 - 1 correctly.
5521 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5522 since some C++ compilers masquerading as C compilers
5523 incorrectly reject 9223372036854775807. */
5524#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5525 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5526 && LARGE_OFF_T % 2147483647 == 1)
5527 ? 1 : -1];
5528int
5529main ()
5530{
5531
5532 ;
5533 return 0;
5534}
5535_ACEOF
81ecdfbb 5536if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 5537 ac_cv_sys_large_files=1; break
d053aef8 5538fi
81ecdfbb
RW
5539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5540 ac_cv_sys_large_files=unknown
d053aef8
JK
5541 break
5542done
5543fi
81ecdfbb
RW
5544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5545$as_echo "$ac_cv_sys_large_files" >&6; }
5546case $ac_cv_sys_large_files in #(
5547 no | unknown) ;;
5548 *)
d053aef8
JK
5549cat >>confdefs.h <<_ACEOF
5550#define _LARGE_FILES $ac_cv_sys_large_files
5551_ACEOF
81ecdfbb
RW
5552;;
5553esac
5554rm -rf conftest*
5555 fi
d053aef8
JK
5556fi
5557
42ecbf5e 5558
42ecbf5e 5559
da2f07f1 5560
b214d478
SE
5561case `pwd` in
5562 *\ * | *\ *)
81ecdfbb
RW
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5564$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
b214d478 5565esac
252b5132 5566
42ecbf5e 5567
d7040cdb 5568
3725885a
RW
5569macro_version='2.2.7a'
5570macro_revision='1.3134'
d7040cdb 5571
d7040cdb
SE
5572
5573
d7040cdb 5574
d7040cdb 5575
42ecbf5e 5576
d7040cdb 5577
252b5132 5578
252b5132 5579
252b5132 5580
252b5132
RH
5581
5582
ce2cded5 5583
b214d478 5584ltmain="$ac_aux_dir/ltmain.sh"
ce2cded5 5585
3725885a
RW
5586# Backslashify metacharacters that are still active within
5587# double-quoted strings.
5588sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5589
5590# Same as above, but do not quote variable references.
5591double_quote_subst='s/\(["`\\]\)/\\\1/g'
5592
5593# Sed substitution to delay expansion of an escaped shell variable in a
5594# double_quote_subst'ed string.
5595delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5596
5597# Sed substitution to delay expansion of an escaped single quote.
5598delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5599
5600# Sed substitution to avoid accidental globbing in evaled expressions
5601no_glob_subst='s/\*/\\\*/g'
5602
5603ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5604ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5605ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5606
5607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5608$as_echo_n "checking how to print strings... " >&6; }
5609# Test print first, because it will be a builtin if present.
5610if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5611 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5612 ECHO='print -r --'
5613elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5614 ECHO='printf %s\n'
5615else
5616 # Use this function as a fallback that always works.
5617 func_fallback_echo ()
5618 {
5619 eval 'cat <<_LTECHO_EOF
5620$1
5621_LTECHO_EOF'
5622 }
5623 ECHO='func_fallback_echo'
5624fi
5625
5626# func_echo_all arg...
5627# Invoke $ECHO with all args, space-separated.
5628func_echo_all ()
5629{
5630 $ECHO ""
5631}
5632
5633case "$ECHO" in
5634 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5635$as_echo "printf" >&6; } ;;
5636 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5637$as_echo "print -r" >&6; } ;;
5638 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5639$as_echo "cat" >&6; } ;;
5640esac
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
81ecdfbb
RW
5655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5656$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5657if test "${ac_cv_path_SED+set}" = set; then :
5658 $as_echo_n "(cached) " >&6
5659else
5660 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5661 for ac_i in 1 2 3 4 5 6 7; do
5662 ac_script="$ac_script$as_nl$ac_script"
5663 done
5664 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5665 { ac_script=; unset ac_script;}
5666 if test -z "$SED"; then
5667 ac_path_SED_found=false
5668 # Loop through the user's path and test for each of PROGNAME-LIST
5669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357c5b6
AM
5670for as_dir in $PATH
5671do
5672 IFS=$as_save_IFS
5673 test -z "$as_dir" && as_dir=.
81ecdfbb 5674 for ac_prog in sed gsed; do
7357c5b6 5675 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb
RW
5676 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5677 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5678# Check for GNU ac_path_SED and select it if it is found.
5679 # Check for GNU $ac_path_SED
5680case `"$ac_path_SED" --version 2>&1` in
5681*GNU*)
5682 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5683*)
5684 ac_count=0
5685 $as_echo_n 0123456789 >"conftest.in"
5686 while :
5687 do
5688 cat "conftest.in" "conftest.in" >"conftest.tmp"
5689 mv "conftest.tmp" "conftest.in"
5690 cp "conftest.in" "conftest.nl"
5691 $as_echo '' >> "conftest.nl"
5692 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5693 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5694 as_fn_arith $ac_count + 1 && ac_count=$as_val
5695 if test $ac_count -gt ${ac_path_SED_max-0}; then
5696 # Best one so far, save it but keep looking for a better one
5697 ac_cv_path_SED="$ac_path_SED"
5698 ac_path_SED_max=$ac_count
5699 fi
5700 # 10*(2^10) chars as input seems more than enough
5701 test $ac_count -gt 10 && break
5702 done
5703 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5704esac
5705
5706 $ac_path_SED_found && break 3
7357c5b6
AM
5707 done
5708 done
81ecdfbb 5709 done
7357c5b6 5710IFS=$as_save_IFS
81ecdfbb
RW
5711 if test -z "$ac_cv_path_SED"; then
5712 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
ce2cded5 5713 fi
81ecdfbb
RW
5714else
5715 ac_cv_path_SED=$SED
7357c5b6 5716fi
20e95c23 5717
81ecdfbb
RW
5718fi
5719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5720$as_echo "$ac_cv_path_SED" >&6; }
5721 SED="$ac_cv_path_SED"
5722 rm -f conftest.sed
20e95c23 5723
7357c5b6
AM
5724test -z "$SED" && SED=sed
5725Xsed="$SED -e 1s/^X//"
20e95c23
DJ
5726
5727
5728
5729
5730
5731
20e95c23 5732
20e95c23 5733
d7040cdb 5734
d7040cdb 5735
7357c5b6 5736
81ecdfbb
RW
5737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5738$as_echo_n "checking for fgrep... " >&6; }
5739if test "${ac_cv_path_FGREP+set}" = set; then :
5740 $as_echo_n "(cached) " >&6
7357c5b6 5741else
81ecdfbb
RW
5742 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5743 then ac_cv_path_FGREP="$GREP -F"
5744 else
5745 if test -z "$FGREP"; then
5746 ac_path_FGREP_found=false
5747 # Loop through the user's path and test for each of PROGNAME-LIST
5748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5749for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5750do
5751 IFS=$as_save_IFS
5752 test -z "$as_dir" && as_dir=.
5753 for ac_prog in fgrep; do
5754 for ac_exec_ext in '' $ac_executable_extensions; do
5755 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5756 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5757# Check for GNU ac_path_FGREP and select it if it is found.
5758 # Check for GNU $ac_path_FGREP
5759case `"$ac_path_FGREP" --version 2>&1` in
5760*GNU*)
5761 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5762*)
5763 ac_count=0
5764 $as_echo_n 0123456789 >"conftest.in"
5765 while :
5766 do
5767 cat "conftest.in" "conftest.in" >"conftest.tmp"
5768 mv "conftest.tmp" "conftest.in"
5769 cp "conftest.in" "conftest.nl"
5770 $as_echo 'FGREP' >> "conftest.nl"
5771 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5772 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5773 as_fn_arith $ac_count + 1 && ac_count=$as_val
5774 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5775 # Best one so far, save it but keep looking for a better one
5776 ac_cv_path_FGREP="$ac_path_FGREP"
5777 ac_path_FGREP_max=$ac_count
7357c5b6 5778 fi
81ecdfbb
RW
5779 # 10*(2^10) chars as input seems more than enough
5780 test $ac_count -gt 10 && break
5781 done
5782 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5783esac
5784
5785 $ac_path_FGREP_found && break 3
5786 done
5787 done
5788 done
5789IFS=$as_save_IFS
5790 if test -z "$ac_cv_path_FGREP"; then
5791 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5792 fi
5793else
5794 ac_cv_path_FGREP=$FGREP
5795fi
5796
5797 fi
20e95c23 5798fi
81ecdfbb
RW
5799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5800$as_echo "$ac_cv_path_FGREP" >&6; }
5801 FGREP="$ac_cv_path_FGREP"
7357c5b6
AM
5802
5803
5804test -z "$GREP" && GREP=grep
5805
d7040cdb
SE
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
20e95c23 5817
ce2cded5 5818
d7040cdb 5819
7357c5b6
AM
5820
5821
5822
5823
81ecdfbb
RW
5824# Check whether --with-gnu-ld was given.
5825if test "${with_gnu_ld+set}" = set; then :
5826 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7357c5b6
AM
5827else
5828 with_gnu_ld=no
81ecdfbb
RW
5829fi
5830
7357c5b6
AM
5831ac_prog=ld
5832if test "$GCC" = yes; then
5833 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5835$as_echo_n "checking for ld used by $CC... " >&6; }
7357c5b6
AM
5836 case $host in
5837 *-*-mingw*)
5838 # gcc leaves a trailing carriage return which upsets mingw
5839 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5840 *)
5841 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5842 esac
5843 case $ac_prog in
5844 # Accept absolute paths.
5845 [\\/]* | ?:[\\/]*)
5846 re_direlt='/[^/][^/]*/\.\./'
5847 # Canonicalize the pathname of ld
5848 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5849 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5850 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5851 done
5852 test -z "$LD" && LD="$ac_prog"
5853 ;;
5854 "")
5855 # If it fails, then pretend we aren't using GCC.
5856 ac_prog=ld
5857 ;;
5858 *)
5859 # If it is relative, then search for the first ld in PATH.
5860 with_gnu_ld=unknown
5861 ;;
5862 esac
5863elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5865$as_echo_n "checking for GNU ld... " >&6; }
7357c5b6 5866else
81ecdfbb
RW
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5868$as_echo_n "checking for non-GNU ld... " >&6; }
ce2cded5 5869fi
81ecdfbb
RW
5870if test "${lt_cv_path_LD+set}" = set; then :
5871 $as_echo_n "(cached) " >&6
ce2cded5 5872else
7357c5b6
AM
5873 if test -z "$LD"; then
5874 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5875 for ac_dir in $PATH; do
5876 IFS="$lt_save_ifs"
5877 test -z "$ac_dir" && ac_dir=.
5878 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5879 lt_cv_path_LD="$ac_dir/$ac_prog"
5880 # Check to see if the program is GNU ld. I'd rather use --version,
5881 # but apparently some variants of GNU ld only accept -v.
5882 # Break only if it was the GNU/non-GNU ld that we prefer.
5883 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5884 *GNU* | *'with BFD'*)
5885 test "$with_gnu_ld" != no && break
5886 ;;
5887 *)
5888 test "$with_gnu_ld" != yes && break
5889 ;;
5890 esac
5891 fi
5892 done
5893 IFS="$lt_save_ifs"
ce2cded5 5894else
7357c5b6 5895 lt_cv_path_LD="$LD" # Let the user override the test with a path.
ce2cded5
L
5896fi
5897fi
7357c5b6
AM
5898
5899LD="$lt_cv_path_LD"
5900if test -n "$LD"; then
81ecdfbb
RW
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5902$as_echo "$LD" >&6; }
ce2cded5 5903else
81ecdfbb
RW
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5905$as_echo "no" >&6; }
ce2cded5 5906fi
81ecdfbb
RW
5907test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5909$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5910if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5911 $as_echo_n "(cached) " >&6
ce2cded5 5912else
7357c5b6
AM
5913 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5914case `$LD -v 2>&1 </dev/null` in
5915*GNU* | *'with BFD'*)
5916 lt_cv_prog_gnu_ld=yes
5917 ;;
5918*)
5919 lt_cv_prog_gnu_ld=no
5920 ;;
5921esac
ce2cded5 5922fi
81ecdfbb
RW
5923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5924$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7357c5b6 5925with_gnu_ld=$lt_cv_prog_gnu_ld
d7040cdb
SE
5926
5927
5928
5929
5930
5931
5932
5933
5934
81ecdfbb
RW
5935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5936$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5937if test "${lt_cv_path_NM+set}" = set; then :
5938 $as_echo_n "(cached) " >&6
ce2cded5 5939else
7357c5b6
AM
5940 if test -n "$NM"; then
5941 # Let the user override the test.
5942 lt_cv_path_NM="$NM"
ce2cded5 5943else
7357c5b6
AM
5944 lt_nm_to_check="${ac_tool_prefix}nm"
5945 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5946 lt_nm_to_check="$lt_nm_to_check nm"
20e95c23 5947 fi
7357c5b6
AM
5948 for lt_tmp_nm in $lt_nm_to_check; do
5949 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5950 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5951 IFS="$lt_save_ifs"
5952 test -z "$ac_dir" && ac_dir=.
5953 tmp_nm="$ac_dir/$lt_tmp_nm"
5954 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5955 # Check to see if the nm accepts a BSD-compat flag.
5956 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5957 # nm: unknown option "B" ignored
5958 # Tru64's nm complains that /dev/null is an invalid object file
5959 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5960 */dev/null* | *'Invalid file or object type'*)
5961 lt_cv_path_NM="$tmp_nm -B"
5962 break
5963 ;;
5964 *)
5965 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5966 */dev/null*)
5967 lt_cv_path_NM="$tmp_nm -p"
5968 break
5969 ;;
5970 *)
5971 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5972 continue # so that we can try to find one that supports BSD flags
5973 ;;
5974 esac
5975 ;;
5976 esac
5977 fi
5978 done
5979 IFS="$lt_save_ifs"
5980 done
5981 : ${lt_cv_path_NM=no}
ce2cded5
L
5982fi
5983fi
81ecdfbb
RW
5984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5985$as_echo "$lt_cv_path_NM" >&6; }
7357c5b6
AM
5986if test "$lt_cv_path_NM" != "no"; then
5987 NM="$lt_cv_path_NM"
ce2cded5 5988else
7357c5b6 5989 # Didn't find any BSD compatible name lister, look for dumpbin.
3725885a
RW
5990 if test -n "$DUMPBIN"; then :
5991 # Let the user override the test.
5992 else
5993 if test -n "$ac_tool_prefix"; then
5994 for ac_prog in dumpbin "link -dump"
7357c5b6
AM
5995 do
5996 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5997set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
5998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5999$as_echo_n "checking for $ac_word... " >&6; }
6000if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6001 $as_echo_n "(cached) " >&6
20e95c23 6002else
7357c5b6
AM
6003 if test -n "$DUMPBIN"; then
6004 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
ce2cded5
L
6005else
6006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6007for as_dir in $PATH
6008do
6009 IFS=$as_save_IFS
6010 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6011 for ac_exec_ext in '' $ac_executable_extensions; do
6012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6013 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
81ecdfbb 6014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6015 break 2
6016 fi
6017done
81ecdfbb
RW
6018 done
6019IFS=$as_save_IFS
d7040cdb 6020
20e95c23 6021fi
ce2cded5 6022fi
7357c5b6
AM
6023DUMPBIN=$ac_cv_prog_DUMPBIN
6024if test -n "$DUMPBIN"; then
81ecdfbb
RW
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6026$as_echo "$DUMPBIN" >&6; }
42ecbf5e 6027else
81ecdfbb
RW
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6029$as_echo "no" >&6; }
42ecbf5e
DJ
6030fi
6031
81ecdfbb 6032
7357c5b6
AM
6033 test -n "$DUMPBIN" && break
6034 done
ce2cded5 6035fi
7357c5b6
AM
6036if test -z "$DUMPBIN"; then
6037 ac_ct_DUMPBIN=$DUMPBIN
3725885a 6038 for ac_prog in dumpbin "link -dump"
7357c5b6
AM
6039do
6040 # Extract the first word of "$ac_prog", so it can be a program name with args.
6041set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
6042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6043$as_echo_n "checking for $ac_word... " >&6; }
6044if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6045 $as_echo_n "(cached) " >&6
42ecbf5e 6046else
7357c5b6
AM
6047 if test -n "$ac_ct_DUMPBIN"; then
6048 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
ce2cded5
L
6049else
6050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6051for as_dir in $PATH
6052do
6053 IFS=$as_save_IFS
6054 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6055 for ac_exec_ext in '' $ac_executable_extensions; do
6056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6057 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
81ecdfbb 6058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6059 break 2
6060 fi
6061done
81ecdfbb
RW
6062 done
6063IFS=$as_save_IFS
d7040cdb 6064
ce2cded5
L
6065fi
6066fi
7357c5b6
AM
6067ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6068if test -n "$ac_ct_DUMPBIN"; then
81ecdfbb
RW
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6070$as_echo "$ac_ct_DUMPBIN" >&6; }
ce2cded5 6071else
81ecdfbb
RW
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6073$as_echo "no" >&6; }
ce2cded5 6074fi
d7040cdb 6075
81ecdfbb 6076
7357c5b6 6077 test -n "$ac_ct_DUMPBIN" && break
ce2cded5 6078done
d7040cdb 6079
81ecdfbb
RW
6080 if test "x$ac_ct_DUMPBIN" = x; then
6081 DUMPBIN=":"
6082 else
6083 case $cross_compiling:$ac_tool_warned in
6084yes:)
6085{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6086$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6087ac_tool_warned=yes ;;
6088esac
6089 DUMPBIN=$ac_ct_DUMPBIN
6090 fi
ce2cded5 6091fi
7357c5b6 6092
3725885a
RW
6093 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6094 *COFF*)
6095 DUMPBIN="$DUMPBIN -symbols"
6096 ;;
6097 *)
6098 DUMPBIN=:
6099 ;;
6100 esac
6101 fi
7357c5b6
AM
6102
6103 if test "$DUMPBIN" != ":"; then
6104 NM="$DUMPBIN"
6105 fi
ce2cded5 6106fi
7357c5b6
AM
6107test -z "$NM" && NM=nm
6108
6109
6110
6111
6112
6113
81ecdfbb
RW
6114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6115$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6116if test "${lt_cv_nm_interface+set}" = set; then :
6117 $as_echo_n "(cached) " >&6
20e95c23 6118else
7357c5b6
AM
6119 lt_cv_nm_interface="BSD nm"
6120 echo "int some_variable = 0;" > conftest.$ac_ext
3725885a 6121 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7357c5b6
AM
6122 (eval "$ac_compile" 2>conftest.err)
6123 cat conftest.err >&5
3725885a 6124 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7357c5b6
AM
6125 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6126 cat conftest.err >&5
3725885a 6127 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7357c5b6
AM
6128 cat conftest.out >&5
6129 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6130 lt_cv_nm_interface="MS dumpbin"
6131 fi
6132 rm -f conftest*
20e95c23 6133fi
81ecdfbb
RW
6134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6135$as_echo "$lt_cv_nm_interface" >&6; }
20e95c23 6136
81ecdfbb
RW
6137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6138$as_echo_n "checking whether ln -s works... " >&6; }
7357c5b6
AM
6139LN_S=$as_ln_s
6140if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6142$as_echo "yes" >&6; }
ce2cded5 6143else
81ecdfbb
RW
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6145$as_echo "no, using $LN_S" >&6; }
d7040cdb 6146fi
20e95c23 6147
7357c5b6 6148# find the maximum length of command line arguments
81ecdfbb
RW
6149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6150$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6151if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6152 $as_echo_n "(cached) " >&6
7357c5b6
AM
6153else
6154 i=0
6155 teststring="ABCD"
20e95c23 6156
7357c5b6
AM
6157 case $build_os in
6158 msdosdjgpp*)
6159 # On DJGPP, this test can blow up pretty badly due to problems in libc
6160 # (any single argument exceeding 2000 bytes causes a buffer overrun
6161 # during glob expansion). Even if it were fixed, the result of this
6162 # check would be larger than it should be.
6163 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6164 ;;
20e95c23 6165
7357c5b6
AM
6166 gnu*)
6167 # Under GNU Hurd, this test is not required because there is
6168 # no limit to the length of command line arguments.
6169 # Libtool will interpret -1 as no limit whatsoever
6170 lt_cv_sys_max_cmd_len=-1;
6171 ;;
20e95c23 6172
b214d478 6173 cygwin* | mingw* | cegcc*)
7357c5b6
AM
6174 # On Win9x/ME, this test blows up -- it succeeds, but takes
6175 # about 5 minutes as the teststring grows exponentially.
6176 # Worse, since 9x/ME are not pre-emptively multitasking,
6177 # you end up with a "frozen" computer, even though with patience
6178 # the test eventually succeeds (with a max line length of 256k).
6179 # Instead, let's just punt: use the minimum linelength reported by
6180 # all of the supported platforms: 8192 (on NT/2K/XP).
6181 lt_cv_sys_max_cmd_len=8192;
6182 ;;
20e95c23 6183
3725885a
RW
6184 mint*)
6185 # On MiNT this can take a long time and run out of memory.
6186 lt_cv_sys_max_cmd_len=8192;
6187 ;;
6188
7357c5b6
AM
6189 amigaos*)
6190 # On AmigaOS with pdksh, this test takes hours, literally.
6191 # So we just punt and use a minimum line length of 8192.
6192 lt_cv_sys_max_cmd_len=8192;
6193 ;;
20e95c23 6194
7357c5b6
AM
6195 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6196 # This has been around since 386BSD, at least. Likely further.
6197 if test -x /sbin/sysctl; then
6198 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6199 elif test -x /usr/sbin/sysctl; then
6200 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6201 else
6202 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6203 fi
6204 # And add a safety zone
6205 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6206 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6207 ;;
d7040cdb 6208
7357c5b6
AM
6209 interix*)
6210 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6211 lt_cv_sys_max_cmd_len=196608
6212 ;;
d7040cdb 6213
7357c5b6
AM
6214 osf*)
6215 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6216 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6217 # nice to cause kernel panics so lets avoid the loop below.
6218 # First set a reasonable default.
6219 lt_cv_sys_max_cmd_len=16384
6220 #
6221 if test -x /sbin/sysconfig; then
6222 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6223 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6224 esac
6225 fi
6226 ;;
6227 sco3.2v5*)
6228 lt_cv_sys_max_cmd_len=102400
6229 ;;
6230 sysv5* | sco5v6* | sysv4.2uw2*)
6231 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6232 if test -n "$kargmax"; then
6233 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6234 else
6235 lt_cv_sys_max_cmd_len=32768
6236 fi
ce2cded5
L
6237 ;;
6238 *)
b214d478
SE
6239 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6240 if test -n "$lt_cv_sys_max_cmd_len"; then
7357c5b6
AM
6241 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6242 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6243 else
6244 # Make teststring a little bigger before we do anything with it.
6245 # a 1K string should be a reasonable start.
6246 for i in 1 2 3 4 5 6 7 8 ; do
6247 teststring=$teststring$teststring
6248 done
6249 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6250 # If test is not a shell built-in, we'll probably end up computing a
6251 # maximum length that is only half of the actual maximum length, but
6252 # we can't tell.
3725885a
RW
6253 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6254 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7357c5b6
AM
6255 test $i != 17 # 1/2 MB should be enough
6256 do
6257 i=`expr $i + 1`
6258 teststring=$teststring$teststring
6259 done
6260 # Only check the string length outside the loop.
6261 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6262 teststring=
6263 # Add a significant safety factor because C++ compilers can tack on
6264 # massive amounts of additional arguments before passing them to the
6265 # linker. It appears as though 1/2 is a usable value.
6266 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6267 fi
ce2cded5
L
6268 ;;
6269 esac
d7040cdb 6270
7357c5b6 6271fi
d7040cdb 6272
7357c5b6 6273if test -n $lt_cv_sys_max_cmd_len ; then
81ecdfbb
RW
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6275$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7357c5b6 6276else
81ecdfbb
RW
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6278$as_echo "none" >&6; }
7357c5b6
AM
6279fi
6280max_cmd_len=$lt_cv_sys_max_cmd_len
d7040cdb
SE
6281
6282
6283
6284
6285
d7040cdb 6286
7357c5b6
AM
6287: ${CP="cp -f"}
6288: ${MV="mv -f"}
6289: ${RM="rm -f"}
d7040cdb 6290
81ecdfbb
RW
6291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6292$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7357c5b6
AM
6293# Try some XSI features
6294xsi_shell=no
6295( _lt_dummy="a/b/c"
6296 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
b214d478
SE
6297 = c,a/b,, \
6298 && eval 'test $(( 1 + 1 )) -eq 2 \
6299 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7357c5b6 6300 && xsi_shell=yes
81ecdfbb
RW
6301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6302$as_echo "$xsi_shell" >&6; }
d7040cdb 6303
d7040cdb 6304
81ecdfbb
RW
6305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6306$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7357c5b6
AM
6307lt_shell_append=no
6308( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6309 >/dev/null 2>&1 \
6310 && lt_shell_append=yes
81ecdfbb
RW
6311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6312$as_echo "$lt_shell_append" >&6; }
d7040cdb
SE
6313
6314
7357c5b6
AM
6315if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6316 lt_unset=unset
6317else
6318 lt_unset=false
6319fi
d7040cdb 6320
d7040cdb 6321
d7040cdb 6322
d7040cdb 6323
d7040cdb 6324
7357c5b6
AM
6325# test EBCDIC or ASCII
6326case `echo X|tr X '\101'` in
6327 A) # ASCII based system
6328 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6329 lt_SP2NL='tr \040 \012'
6330 lt_NL2SP='tr \015\012 \040\040'
6331 ;;
6332 *) # EBCDIC based system
6333 lt_SP2NL='tr \100 \n'
6334 lt_NL2SP='tr \r\n \100\100'
6335 ;;
6336esac
42ecbf5e 6337
d7040cdb
SE
6338
6339
6340
6341
6342
6343
d7040cdb 6344
d7040cdb 6345
81ecdfbb
RW
6346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6347$as_echo_n "checking for $LD option to reload object files... " >&6; }
6348if test "${lt_cv_ld_reload_flag+set}" = set; then :
6349 $as_echo_n "(cached) " >&6
7357c5b6
AM
6350else
6351 lt_cv_ld_reload_flag='-r'
6352fi
81ecdfbb
RW
6353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6354$as_echo "$lt_cv_ld_reload_flag" >&6; }
7357c5b6
AM
6355reload_flag=$lt_cv_ld_reload_flag
6356case $reload_flag in
6357"" | " "*) ;;
6358*) reload_flag=" $reload_flag" ;;
6359esac
6360reload_cmds='$LD$reload_flag -o $output$reload_objs'
6361case $host_os in
6362 darwin*)
6363 if test "$GCC" = yes; then
6364 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6365 else
6366 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6367 fi
6368 ;;
6369esac
d7040cdb 6370
d7040cdb 6371
d7040cdb 6372
d7040cdb 6373
d7040cdb 6374
d7040cdb 6375
d7040cdb 6376
d7040cdb 6377
d7040cdb 6378
b214d478
SE
6379if test -n "$ac_tool_prefix"; then
6380 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6381set dummy ${ac_tool_prefix}objdump; ac_word=$2
81ecdfbb
RW
6382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6383$as_echo_n "checking for $ac_word... " >&6; }
6384if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6385 $as_echo_n "(cached) " >&6
b214d478
SE
6386else
6387 if test -n "$OBJDUMP"; then
6388 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6389else
6390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6391for as_dir in $PATH
6392do
6393 IFS=$as_save_IFS
6394 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6395 for ac_exec_ext in '' $ac_executable_extensions; do
6396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 6397 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
81ecdfbb 6398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
6399 break 2
6400 fi
6401done
81ecdfbb
RW
6402 done
6403IFS=$as_save_IFS
b214d478
SE
6404
6405fi
6406fi
6407OBJDUMP=$ac_cv_prog_OBJDUMP
6408if test -n "$OBJDUMP"; then
81ecdfbb
RW
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6410$as_echo "$OBJDUMP" >&6; }
b214d478 6411else
81ecdfbb
RW
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6413$as_echo "no" >&6; }
b214d478
SE
6414fi
6415
81ecdfbb 6416
b214d478
SE
6417fi
6418if test -z "$ac_cv_prog_OBJDUMP"; then
6419 ac_ct_OBJDUMP=$OBJDUMP
6420 # Extract the first word of "objdump", so it can be a program name with args.
6421set dummy objdump; ac_word=$2
81ecdfbb
RW
6422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6423$as_echo_n "checking for $ac_word... " >&6; }
6424if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6425 $as_echo_n "(cached) " >&6
b214d478
SE
6426else
6427 if test -n "$ac_ct_OBJDUMP"; then
6428 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6429else
6430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6431for as_dir in $PATH
6432do
6433 IFS=$as_save_IFS
6434 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6435 for ac_exec_ext in '' $ac_executable_extensions; do
6436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 6437 ac_cv_prog_ac_ct_OBJDUMP="objdump"
81ecdfbb 6438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
6439 break 2
6440 fi
6441done
81ecdfbb
RW
6442 done
6443IFS=$as_save_IFS
b214d478 6444
b214d478
SE
6445fi
6446fi
6447ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6448if test -n "$ac_ct_OBJDUMP"; then
81ecdfbb
RW
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6450$as_echo "$ac_ct_OBJDUMP" >&6; }
b214d478 6451else
81ecdfbb
RW
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6453$as_echo "no" >&6; }
b214d478
SE
6454fi
6455
81ecdfbb
RW
6456 if test "x$ac_ct_OBJDUMP" = x; then
6457 OBJDUMP="false"
6458 else
6459 case $cross_compiling:$ac_tool_warned in
6460yes:)
6461{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6462$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6463ac_tool_warned=yes ;;
6464esac
6465 OBJDUMP=$ac_ct_OBJDUMP
6466 fi
b214d478
SE
6467else
6468 OBJDUMP="$ac_cv_prog_OBJDUMP"
6469fi
6470
6471test -z "$OBJDUMP" && OBJDUMP=objdump
6472
6473
6474
6475
6476
6477
6478
6479
d7040cdb 6480
81ecdfbb
RW
6481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6482$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6483if test "${lt_cv_deplibs_check_method+set}" = set; then :
6484 $as_echo_n "(cached) " >&6
ce2cded5 6485else
7357c5b6
AM
6486 lt_cv_file_magic_cmd='$MAGIC_CMD'
6487lt_cv_file_magic_test_file=
6488lt_cv_deplibs_check_method='unknown'
6489# Need to set the preceding variable on all platforms that support
6490# interlibrary dependencies.
6491# 'none' -- dependencies not supported.
6492# `unknown' -- same as none, but documents that we really don't know.
6493# 'pass_all' -- all dependencies passed with no checks.
6494# 'test_compile' -- check by making test program.
6495# 'file_magic [[regex]]' -- check by looking for files in library path
6496# which responds to the $file_magic_cmd with a given extended regex.
6497# If you have `file' or equivalent on your system and you're not sure
6498# whether `pass_all' will *always* work, you probably want this one.
d7040cdb 6499
ce2cded5 6500case $host_os in
7357c5b6
AM
6501aix[4-9]*)
6502 lt_cv_deplibs_check_method=pass_all
ce2cded5 6503 ;;
7357c5b6
AM
6504
6505beos*)
6506 lt_cv_deplibs_check_method=pass_all
ce2cded5 6507 ;;
7357c5b6
AM
6508
6509bsdi[45]*)
6510 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6511 lt_cv_file_magic_cmd='/usr/bin/file -L'
6512 lt_cv_file_magic_test_file=/shlib/libc.so
ce2cded5 6513 ;;
7357c5b6
AM
6514
6515cygwin*)
6516 # func_win32_libid is a shell function defined in ltmain.sh
6517 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6518 lt_cv_file_magic_cmd='func_win32_libid'
ce2cded5 6519 ;;
7357c5b6
AM
6520
6521mingw* | pw32*)
6522 # Base MSYS/MinGW do not provide the 'file' command needed by
6523 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6524 # unless we find 'file', for example because we are cross-compiling.
3725885a
RW
6525 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6526 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7357c5b6
AM
6527 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6528 lt_cv_file_magic_cmd='func_win32_libid'
6529 else
6530 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6531 lt_cv_file_magic_cmd='$OBJDUMP -f'
6532 fi
ce2cded5 6533 ;;
7357c5b6 6534
3725885a 6535cegcc*)
b214d478
SE
6536 # use the weaker test based on 'objdump'. See mingw*.
6537 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6538 lt_cv_file_magic_cmd='$OBJDUMP -f'
6539 ;;
6540
7357c5b6
AM
6541darwin* | rhapsody*)
6542 lt_cv_deplibs_check_method=pass_all
ce2cded5 6543 ;;
7357c5b6
AM
6544
6545freebsd* | dragonfly*)
6546 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6547 case $host_cpu in
6548 i*86 )
6549 # Not sure whether the presence of OpenBSD here was a mistake.
6550 # Let's accept both of them until this is cleared up.
6551 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6552 lt_cv_file_magic_cmd=/usr/bin/file
6553 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6554 ;;
6555 esac
6556 else
6557 lt_cv_deplibs_check_method=pass_all
6558 fi
ce2cded5 6559 ;;
7357c5b6
AM
6560
6561gnu*)
6562 lt_cv_deplibs_check_method=pass_all
ce2cded5 6563 ;;
7357c5b6 6564
3725885a
RW
6565haiku*)
6566 lt_cv_deplibs_check_method=pass_all
6567 ;;
6568
7357c5b6
AM
6569hpux10.20* | hpux11*)
6570 lt_cv_file_magic_cmd=/usr/bin/file
6571 case $host_cpu in
6572 ia64*)
6573 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6574 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6575 ;;
6576 hppa*64*)
3725885a 6577 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
6578 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6579 ;;
6580 *)
3725885a 6581 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7357c5b6
AM
6582 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6583 ;;
6584 esac
ce2cded5 6585 ;;
d7040cdb 6586
7357c5b6
AM
6587interix[3-9]*)
6588 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6589 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6590 ;;
d7040cdb 6591
7357c5b6
AM
6592irix5* | irix6* | nonstopux*)
6593 case $LD in
6594 *-32|*"-32 ") libmagic=32-bit;;
6595 *-n32|*"-n32 ") libmagic=N32;;
6596 *-64|*"-64 ") libmagic=64-bit;;
6597 *) libmagic=never-match;;
6598 esac
6599 lt_cv_deplibs_check_method=pass_all
6600 ;;
d7040cdb 6601
7357c5b6 6602# This must be Linux ELF.
58e24671 6603linux* | k*bsd*-gnu | kopensolaris*-gnu)
7357c5b6
AM
6604 lt_cv_deplibs_check_method=pass_all
6605 ;;
d7040cdb 6606
7357c5b6
AM
6607netbsd*)
6608 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6609 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6610 else
6611 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6612 fi
ce2cded5 6613 ;;
d7040cdb 6614
7357c5b6
AM
6615newos6*)
6616 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6617 lt_cv_file_magic_cmd=/usr/bin/file
6618 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6619 ;;
d7040cdb 6620
7357c5b6
AM
6621*nto* | *qnx*)
6622 lt_cv_deplibs_check_method=pass_all
6623 ;;
d7040cdb 6624
7357c5b6
AM
6625openbsd*)
6626 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6627 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
ce2cded5 6628 else
7357c5b6 6629 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
ce2cded5 6630 fi
7357c5b6 6631 ;;
d7040cdb 6632
7357c5b6
AM
6633osf3* | osf4* | osf5*)
6634 lt_cv_deplibs_check_method=pass_all
6635 ;;
d7040cdb 6636
7357c5b6
AM
6637rdos*)
6638 lt_cv_deplibs_check_method=pass_all
6639 ;;
d7040cdb 6640
7357c5b6
AM
6641solaris*)
6642 lt_cv_deplibs_check_method=pass_all
6643 ;;
d7040cdb 6644
7357c5b6
AM
6645sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6646 lt_cv_deplibs_check_method=pass_all
6647 ;;
d7040cdb 6648
7357c5b6
AM
6649sysv4 | sysv4.3*)
6650 case $host_vendor in
6651 motorola)
6652 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]'
6653 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6654 ;;
6655 ncr)
6656 lt_cv_deplibs_check_method=pass_all
6657 ;;
6658 sequent)
6659 lt_cv_file_magic_cmd='/bin/file'
6660 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6661 ;;
6662 sni)
6663 lt_cv_file_magic_cmd='/bin/file'
6664 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6665 lt_cv_file_magic_test_file=/lib/libc.so
6666 ;;
6667 siemens)
6668 lt_cv_deplibs_check_method=pass_all
6669 ;;
6670 pc)
6671 lt_cv_deplibs_check_method=pass_all
6672 ;;
6673 esac
6674 ;;
d7040cdb 6675
7357c5b6
AM
6676tpf*)
6677 lt_cv_deplibs_check_method=pass_all
6678 ;;
6679esac
d7040cdb 6680
7357c5b6 6681fi
81ecdfbb
RW
6682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6683$as_echo "$lt_cv_deplibs_check_method" >&6; }
7357c5b6
AM
6684file_magic_cmd=$lt_cv_file_magic_cmd
6685deplibs_check_method=$lt_cv_deplibs_check_method
6686test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb
SE
6687
6688
6689
7357c5b6
AM
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699if test -n "$ac_tool_prefix"; then
6700 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6701set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
6702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6703$as_echo_n "checking for $ac_word... " >&6; }
6704if test "${ac_cv_prog_AR+set}" = set; then :
6705 $as_echo_n "(cached) " >&6
7357c5b6
AM
6706else
6707 if test -n "$AR"; then
6708 ac_cv_prog_AR="$AR" # Let the user override the test.
6709else
6710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6711for as_dir in $PATH
6712do
6713 IFS=$as_save_IFS
6714 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6715 for ac_exec_ext in '' $ac_executable_extensions; do
6716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6717 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 6718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6719 break 2
ce2cded5
L
6720 fi
6721done
81ecdfbb
RW
6722 done
6723IFS=$as_save_IFS
d7040cdb 6724
42ecbf5e 6725fi
ce2cded5 6726fi
7357c5b6
AM
6727AR=$ac_cv_prog_AR
6728if test -n "$AR"; then
81ecdfbb
RW
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6730$as_echo "$AR" >&6; }
42ecbf5e 6731else
81ecdfbb
RW
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6733$as_echo "no" >&6; }
42ecbf5e
DJ
6734fi
6735
81ecdfbb 6736
7357c5b6
AM
6737fi
6738if test -z "$ac_cv_prog_AR"; then
6739 ac_ct_AR=$AR
6740 # Extract the first word of "ar", so it can be a program name with args.
6741set dummy ar; ac_word=$2
81ecdfbb
RW
6742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6743$as_echo_n "checking for $ac_word... " >&6; }
6744if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6745 $as_echo_n "(cached) " >&6
7357c5b6
AM
6746else
6747 if test -n "$ac_ct_AR"; then
6748 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6749else
6750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6751for as_dir in $PATH
6752do
6753 IFS=$as_save_IFS
6754 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6755 for ac_exec_ext in '' $ac_executable_extensions; do
6756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6757 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 6758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
6759 break 2
6760 fi
6761done
81ecdfbb
RW
6762 done
6763IFS=$as_save_IFS
42ecbf5e 6764
7357c5b6
AM
6765fi
6766fi
6767ac_ct_AR=$ac_cv_prog_ac_ct_AR
6768if test -n "$ac_ct_AR"; then
81ecdfbb
RW
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6770$as_echo "$ac_ct_AR" >&6; }
7357c5b6 6771else
81ecdfbb
RW
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6773$as_echo "no" >&6; }
7357c5b6 6774fi
d7040cdb 6775
81ecdfbb
RW
6776 if test "x$ac_ct_AR" = x; then
6777 AR="false"
6778 else
6779 case $cross_compiling:$ac_tool_warned in
6780yes:)
6781{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6782$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6783ac_tool_warned=yes ;;
6784esac
6785 AR=$ac_ct_AR
6786 fi
7357c5b6
AM
6787else
6788 AR="$ac_cv_prog_AR"
6789fi
d7040cdb 6790
7357c5b6
AM
6791test -z "$AR" && AR=ar
6792test -z "$AR_FLAGS" && AR_FLAGS=cru
d7040cdb
SE
6793
6794
6795
20e95c23 6796
d7040cdb 6797
d7040cdb
SE
6798
6799
6800
6801
6802
6803
7357c5b6
AM
6804if test -n "$ac_tool_prefix"; then
6805 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6806set dummy ${ac_tool_prefix}strip; ac_word=$2
81ecdfbb
RW
6807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6808$as_echo_n "checking for $ac_word... " >&6; }
6809if test "${ac_cv_prog_STRIP+set}" = set; then :
6810 $as_echo_n "(cached) " >&6
7357c5b6
AM
6811else
6812 if test -n "$STRIP"; then
6813 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6814else
6815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6816for as_dir in $PATH
6817do
6818 IFS=$as_save_IFS
6819 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6820 for ac_exec_ext in '' $ac_executable_extensions; do
6821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6822 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
81ecdfbb 6823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6824 break 2
ce2cded5 6825 fi
7357c5b6 6826done
81ecdfbb
RW
6827 done
6828IFS=$as_save_IFS
d7040cdb 6829
7357c5b6
AM
6830fi
6831fi
6832STRIP=$ac_cv_prog_STRIP
6833if test -n "$STRIP"; then
81ecdfbb
RW
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6835$as_echo "$STRIP" >&6; }
7357c5b6 6836else
81ecdfbb
RW
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6838$as_echo "no" >&6; }
7357c5b6
AM
6839fi
6840
81ecdfbb 6841
7357c5b6
AM
6842fi
6843if test -z "$ac_cv_prog_STRIP"; then
6844 ac_ct_STRIP=$STRIP
6845 # Extract the first word of "strip", so it can be a program name with args.
6846set dummy strip; ac_word=$2
81ecdfbb
RW
6847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6848$as_echo_n "checking for $ac_word... " >&6; }
6849if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6850 $as_echo_n "(cached) " >&6
7357c5b6
AM
6851else
6852 if test -n "$ac_ct_STRIP"; then
6853 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6854else
6855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6856for as_dir in $PATH
6857do
6858 IFS=$as_save_IFS
6859 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6860 for ac_exec_ext in '' $ac_executable_extensions; do
6861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6862 ac_cv_prog_ac_ct_STRIP="strip"
81ecdfbb 6863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6864 break 2
ce2cded5 6865 fi
7357c5b6 6866done
81ecdfbb
RW
6867 done
6868IFS=$as_save_IFS
d7040cdb 6869
7357c5b6
AM
6870fi
6871fi
6872ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6873if test -n "$ac_ct_STRIP"; then
81ecdfbb
RW
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6875$as_echo "$ac_ct_STRIP" >&6; }
20e95c23 6876else
81ecdfbb
RW
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6878$as_echo "no" >&6; }
7357c5b6 6879fi
d7040cdb 6880
81ecdfbb
RW
6881 if test "x$ac_ct_STRIP" = x; then
6882 STRIP=":"
6883 else
6884 case $cross_compiling:$ac_tool_warned in
6885yes:)
6886{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6887$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6888ac_tool_warned=yes ;;
6889esac
6890 STRIP=$ac_ct_STRIP
6891 fi
7357c5b6
AM
6892else
6893 STRIP="$ac_cv_prog_STRIP"
6894fi
d7040cdb 6895
7357c5b6 6896test -z "$STRIP" && STRIP=:
d7040cdb 6897
d7040cdb
SE
6898
6899
6900
d7040cdb 6901
7357c5b6
AM
6902
6903if test -n "$ac_tool_prefix"; then
6904 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6905set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
6906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6907$as_echo_n "checking for $ac_word... " >&6; }
6908if test "${ac_cv_prog_RANLIB+set}" = set; then :
6909 $as_echo_n "(cached) " >&6
ce2cded5 6910else
7357c5b6
AM
6911 if test -n "$RANLIB"; then
6912 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6913else
6914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915for as_dir in $PATH
ce2cded5 6916do
7357c5b6
AM
6917 IFS=$as_save_IFS
6918 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6919 for ac_exec_ext in '' $ac_executable_extensions; do
6920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6921 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 6922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6923 break 2
ce2cded5 6924 fi
7357c5b6 6925done
81ecdfbb
RW
6926 done
6927IFS=$as_save_IFS
7357c5b6 6928
ce2cded5 6929fi
7357c5b6
AM
6930fi
6931RANLIB=$ac_cv_prog_RANLIB
6932if test -n "$RANLIB"; then
81ecdfbb
RW
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6934$as_echo "$RANLIB" >&6; }
ce2cded5 6935else
81ecdfbb
RW
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6937$as_echo "no" >&6; }
ce2cded5 6938fi
d7040cdb 6939
81ecdfbb 6940
7357c5b6
AM
6941fi
6942if test -z "$ac_cv_prog_RANLIB"; then
6943 ac_ct_RANLIB=$RANLIB
6944 # Extract the first word of "ranlib", so it can be a program name with args.
6945set dummy ranlib; ac_word=$2
81ecdfbb
RW
6946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6947$as_echo_n "checking for $ac_word... " >&6; }
6948if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6949 $as_echo_n "(cached) " >&6
ce2cded5 6950else
7357c5b6
AM
6951 if test -n "$ac_ct_RANLIB"; then
6952 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6953else
6954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6955for as_dir in $PATH
6956do
6957 IFS=$as_save_IFS
6958 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6959 for ac_exec_ext in '' $ac_executable_extensions; do
6960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6961 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 6962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
6963 break 2
6964 fi
6965done
81ecdfbb
RW
6966 done
6967IFS=$as_save_IFS
7357c5b6 6968
ce2cded5 6969fi
7357c5b6
AM
6970fi
6971ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6972if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6974$as_echo "$ac_ct_RANLIB" >&6; }
ce2cded5 6975else
81ecdfbb
RW
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6977$as_echo "no" >&6; }
ce2cded5 6978fi
d7040cdb 6979
81ecdfbb
RW
6980 if test "x$ac_ct_RANLIB" = x; then
6981 RANLIB=":"
6982 else
6983 case $cross_compiling:$ac_tool_warned in
6984yes:)
6985{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6986$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6987ac_tool_warned=yes ;;
6988esac
6989 RANLIB=$ac_ct_RANLIB
6990 fi
7357c5b6
AM
6991else
6992 RANLIB="$ac_cv_prog_RANLIB"
ce2cded5 6993fi
d7040cdb 6994
7357c5b6 6995test -z "$RANLIB" && RANLIB=:
d7040cdb 6996
7357c5b6
AM
6997
6998
6999
7000
7001
7002# Determine commands to create old-style static archives.
b214d478 7003old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7357c5b6
AM
7004old_postinstall_cmds='chmod 644 $oldlib'
7005old_postuninstall_cmds=
7006
7007if test -n "$RANLIB"; then
7008 case $host_os in
7009 openbsd*)
7010 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7011 ;;
7012 *)
7013 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7014 ;;
7015 esac
7016 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
ce2cded5 7017fi
7357c5b6 7018
3725885a
RW
7019case $host_os in
7020 darwin*)
7021 lock_old_archive_extraction=yes ;;
7022 *)
7023 lock_old_archive_extraction=no ;;
7024esac
7025
7026
7027
7028
7029
7030
7357c5b6
AM
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064# If no C compiler was specified, use CC.
7065LTCC=${LTCC-"$CC"}
7066
7067# If no C compiler flags were specified, use CFLAGS.
7068LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7069
7070# Allow CC to be a program name with arguments.
7071compiler=$CC
7072
7073
7074# Check for command to grab the raw symbol name followed by C symbol from nm.
81ecdfbb
RW
7075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7076$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7077if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7078 $as_echo_n "(cached) " >&6
ce2cded5 7079else
d7040cdb 7080
7357c5b6
AM
7081# These are sane defaults that work on at least a few old systems.
7082# [They come from Ultrix. What could be older than Ultrix?!! ;)]
d7040cdb 7083
7357c5b6
AM
7084# Character class describing NM global symbol codes.
7085symcode='[BCDEGRST]'
7086
7087# Regexp to match symbols that can be accessed directly from C.
7088sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7089
7090# Define system-specific variables.
7091case $host_os in
7092aix*)
7093 symcode='[BCDT]'
7094 ;;
b214d478 7095cygwin* | mingw* | pw32* | cegcc*)
7357c5b6
AM
7096 symcode='[ABCDGISTW]'
7097 ;;
7098hpux*)
7099 if test "$host_cpu" = ia64; then
7100 symcode='[ABCDEGRST]'
ce2cded5 7101 fi
7357c5b6
AM
7102 ;;
7103irix* | nonstopux*)
7104 symcode='[BCDEGRST]'
7105 ;;
7106osf*)
7107 symcode='[BCDEGQRST]'
7108 ;;
7109solaris*)
7110 symcode='[BDRT]'
7111 ;;
7112sco3.2v5*)
7113 symcode='[DT]'
7114 ;;
7115sysv4.2uw2*)
7116 symcode='[DT]'
7117 ;;
7118sysv5* | sco5v6* | unixware* | OpenUNIX*)
7119 symcode='[ABDT]'
7120 ;;
7121sysv4)
7122 symcode='[DFNSTU]'
7123 ;;
7124esac
d7040cdb 7125
7357c5b6
AM
7126# If we're using GNU nm, then use its standard symbol codes.
7127case `$NM -V 2>&1` in
7128*GNU* | *'with BFD'*)
7129 symcode='[ABCDGIRSTW]' ;;
7130esac
d7040cdb 7131
7357c5b6
AM
7132# Transform an extracted symbol line into a proper C declaration.
7133# Some systems (esp. on ia64) link data and code symbols differently,
7134# so use this general approach.
7135lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7136
7137# Transform an extracted symbol line into symbol name and symbol address
7138lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
b214d478 7139lt_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
7140
7141# Handle CRLF in mingw tool chain
7142opt_cr=
7143case $build_os in
7144mingw*)
7145 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7146 ;;
7147esac
d7040cdb 7148
7357c5b6
AM
7149# Try without a prefix underscore, then with it.
7150for ac_symprfx in "" "_"; do
d7040cdb 7151
7357c5b6
AM
7152 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7153 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 7154
7357c5b6
AM
7155 # Write the raw and C identifiers.
7156 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7157 # Fake it for dumpbin and say T for any non-static function
7158 # and D for any global variable.
7159 # Also find C++ and __fastcall symbols from MSVC++,
7160 # which start with @ or ?.
7161 lt_cv_sys_global_symbol_pipe="$AWK '"\
7162" {last_section=section; section=\$ 3};"\
7163" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7164" \$ 0!~/External *\|/{next};"\
7165" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7166" {if(hide[section]) next};"\
7167" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7168" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7169" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7170" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7171" ' prfx=^$ac_symprfx"
7172 else
7173 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7174 fi
d7040cdb 7175
7357c5b6
AM
7176 # Check to see that the pipe works correctly.
7177 pipe_works=no
d7040cdb 7178
7357c5b6
AM
7179 rm -f conftest*
7180 cat > conftest.$ac_ext <<_LT_EOF
7181#ifdef __cplusplus
7182extern "C" {
7183#endif
7184char nm_test_var;
7185void nm_test_func(void);
7186void nm_test_func(void){}
7187#ifdef __cplusplus
20e95c23 7188}
7357c5b6
AM
7189#endif
7190int main(){nm_test_var='a';nm_test_func();return(0);}
7191_LT_EOF
7192
81ecdfbb 7193 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6 7194 (eval $ac_compile) 2>&5
20e95c23 7195 ac_status=$?
81ecdfbb
RW
7196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7197 test $ac_status = 0; }; then
7357c5b6
AM
7198 # Now try to grab the symbols.
7199 nlist=conftest.nm
3725885a
RW
7200 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7201 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
20e95c23 7202 ac_status=$?
81ecdfbb
RW
7203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7204 test $ac_status = 0; } && test -s "$nlist"; then
7357c5b6
AM
7205 # Try sorting and uniquifying the output.
7206 if sort "$nlist" | uniq > "$nlist"T; then
7207 mv -f "$nlist"T "$nlist"
7208 else
7209 rm -f "$nlist"T
7210 fi
d7040cdb 7211
7357c5b6
AM
7212 # Make sure that we snagged all the symbols we need.
7213 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7214 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7215 cat <<_LT_EOF > conftest.$ac_ext
7216#ifdef __cplusplus
7217extern "C" {
7218#endif
ce2cded5 7219
7357c5b6
AM
7220_LT_EOF
7221 # Now generate the symbol file.
7222 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
ce2cded5 7223
7357c5b6 7224 cat <<_LT_EOF >> conftest.$ac_ext
42ecbf5e 7225
7357c5b6
AM
7226/* The mapping between symbol names and symbols. */
7227const struct {
7228 const char *name;
7229 void *address;
7230}
7231lt__PROGRAM__LTX_preloaded_symbols[] =
7232{
7233 { "@PROGRAM@", (void *) 0 },
7234_LT_EOF
7235 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7236 cat <<\_LT_EOF >> conftest.$ac_ext
7237 {0, (void *) 0}
7238};
d7040cdb 7239
7357c5b6
AM
7240/* This works around a problem in FreeBSD linker */
7241#ifdef FREEBSD_WORKAROUND
7242static const void *lt_preloaded_setup() {
7243 return lt__PROGRAM__LTX_preloaded_symbols;
7244}
ce2cded5 7245#endif
42ecbf5e 7246
7357c5b6 7247#ifdef __cplusplus
ce2cded5 7248}
7357c5b6
AM
7249#endif
7250_LT_EOF
7251 # Now try linking the two files.
7252 mv conftest.$ac_objext conftstm.$ac_objext
7253 lt_save_LIBS="$LIBS"
7254 lt_save_CFLAGS="$CFLAGS"
7255 LIBS="conftstm.$ac_objext"
7256 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
81ecdfbb 7257 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5
L
7258 (eval $ac_link) 2>&5
7259 ac_status=$?
81ecdfbb
RW
7260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7261 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7357c5b6
AM
7262 pipe_works=yes
7263 fi
7264 LIBS="$lt_save_LIBS"
7265 CFLAGS="$lt_save_CFLAGS"
7266 else
7267 echo "cannot find nm_test_func in $nlist" >&5
7268 fi
7269 else
7270 echo "cannot find nm_test_var in $nlist" >&5
7271 fi
7272 else
7273 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7274 fi
7275 else
7276 echo "$progname: failed program was:" >&5
7277 cat conftest.$ac_ext >&5
7278 fi
b214d478 7279 rm -rf conftest* conftst*
7357c5b6
AM
7280
7281 # Do not use the global_symbol_pipe unless it works.
7282 if test "$pipe_works" = yes; then
7283 break
7284 else
7285 lt_cv_sys_global_symbol_pipe=
7286 fi
7287done
42ecbf5e 7288
ce2cded5 7289fi
7357c5b6
AM
7290
7291if test -z "$lt_cv_sys_global_symbol_pipe"; then
7292 lt_cv_sys_global_symbol_to_cdecl=
ce2cded5 7293fi
7357c5b6 7294if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
81ecdfbb
RW
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7296$as_echo "failed" >&6; }
7357c5b6 7297else
81ecdfbb
RW
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7299$as_echo "ok" >&6; }
ce2cded5 7300fi
e5a52504 7301
d7040cdb 7302
e5a52504 7303
d7040cdb 7304
d7040cdb 7305
d7040cdb 7306
d7040cdb 7307
d7040cdb 7308
d7040cdb 7309
d7040cdb 7310
d7040cdb 7311
d7040cdb 7312
7357c5b6
AM
7313
7314
7315
b214d478
SE
7316
7317
7318
7319
7320
7357c5b6
AM
7321
7322
81ecdfbb
RW
7323# Check whether --enable-libtool-lock was given.
7324if test "${enable_libtool_lock+set}" = set; then :
7325 enableval=$enable_libtool_lock;
7326fi
7357c5b6 7327
7357c5b6
AM
7328test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7329
7330# Some flags need to be propagated to the compiler or linker for good
7331# libtool support.
7332case $host in
7333ia64-*-hpux*)
7334 # Find out which ABI we are using.
7335 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7336 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7337 (eval $ac_compile) 2>&5
7338 ac_status=$?
81ecdfbb
RW
7339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7340 test $ac_status = 0; }; then
7357c5b6
AM
7341 case `/usr/bin/file conftest.$ac_objext` in
7342 *ELF-32*)
7343 HPUX_IA64_MODE="32"
7344 ;;
7345 *ELF-64*)
7346 HPUX_IA64_MODE="64"
7347 ;;
7348 esac
7349 fi
7350 rm -rf conftest*
7351 ;;
7352*-*-irix6*)
7353 # Find out which ABI we are using.
3725885a 7354 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
81ecdfbb 7355 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7356 (eval $ac_compile) 2>&5
7357 ac_status=$?
81ecdfbb
RW
7358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7359 test $ac_status = 0; }; then
7357c5b6
AM
7360 if test "$lt_cv_prog_gnu_ld" = yes; then
7361 case `/usr/bin/file conftest.$ac_objext` in
7362 *32-bit*)
7363 LD="${LD-ld} -melf32bsmip"
7364 ;;
7365 *N32*)
7366 LD="${LD-ld} -melf32bmipn32"
7367 ;;
7368 *64-bit*)
7369 LD="${LD-ld} -melf64bmip"
7370 ;;
7371 esac
7372 else
7373 case `/usr/bin/file conftest.$ac_objext` in
7374 *32-bit*)
7375 LD="${LD-ld} -32"
7376 ;;
7377 *N32*)
7378 LD="${LD-ld} -n32"
7379 ;;
7380 *64-bit*)
7381 LD="${LD-ld} -64"
7382 ;;
7383 esac
7384 fi
7385 fi
7386 rm -rf conftest*
7387 ;;
7388
7389x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7390s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7391 # Find out which ABI we are using.
7392 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7393 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7394 (eval $ac_compile) 2>&5
7395 ac_status=$?
81ecdfbb
RW
7396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7397 test $ac_status = 0; }; then
7357c5b6
AM
7398 case `/usr/bin/file conftest.o` in
7399 *32-bit*)
7400 case $host in
7401 x86_64-*kfreebsd*-gnu)
7402 LD="${LD-ld} -m elf_i386_fbsd"
7403 ;;
7404 x86_64-*linux*)
7405 LD="${LD-ld} -m elf_i386"
7406 ;;
7407 ppc64-*linux*|powerpc64-*linux*)
7408 LD="${LD-ld} -m elf32ppclinux"
7409 ;;
7410 s390x-*linux*)
7411 LD="${LD-ld} -m elf_s390"
7412 ;;
7413 sparc64-*linux*)
7414 LD="${LD-ld} -m elf32_sparc"
7415 ;;
7416 esac
7417 ;;
7418 *64-bit*)
7419 case $host in
7420 x86_64-*kfreebsd*-gnu)
7421 LD="${LD-ld} -m elf_x86_64_fbsd"
7422 ;;
7423 x86_64-*linux*)
7424 LD="${LD-ld} -m elf_x86_64"
7425 ;;
7426 ppc*-*linux*|powerpc*-*linux*)
7427 LD="${LD-ld} -m elf64ppc"
7428 ;;
7429 s390*-*linux*|s390*-*tpf*)
7430 LD="${LD-ld} -m elf64_s390"
7431 ;;
7432 sparc*-*linux*)
7433 LD="${LD-ld} -m elf64_sparc"
7434 ;;
7435 esac
7436 ;;
7437 esac
7438 fi
7439 rm -rf conftest*
7440 ;;
7441
7442*-*-sco3.2v5*)
7443 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7444 SAVE_CFLAGS="$CFLAGS"
7445 CFLAGS="$CFLAGS -belf"
81ecdfbb
RW
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7447$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7448if test "${lt_cv_cc_needs_belf+set}" = set; then :
7449 $as_echo_n "(cached) " >&6
ce2cded5 7450else
7357c5b6
AM
7451 ac_ext=c
7452ac_cpp='$CPP $CPPFLAGS'
7453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7455ac_compiler_gnu=$ac_cv_c_compiler_gnu
7456
81ecdfbb 7457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 7458/* end confdefs.h. */
d7040cdb 7459
7357c5b6
AM
7460int
7461main ()
7462{
7463
7464 ;
7465 return 0;
7466}
ce2cded5 7467_ACEOF
81ecdfbb 7468if ac_fn_c_try_link "$LINENO"; then :
7357c5b6 7469 lt_cv_cc_needs_belf=yes
ce2cded5 7470else
81ecdfbb 7471 lt_cv_cc_needs_belf=no
ce2cded5 7472fi
81ecdfbb
RW
7473rm -f core conftest.err conftest.$ac_objext \
7474 conftest$ac_exeext conftest.$ac_ext
7357c5b6
AM
7475 ac_ext=c
7476ac_cpp='$CPP $CPPFLAGS'
7477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7479ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 7480
b214d478 7481fi
81ecdfbb
RW
7482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7483$as_echo "$lt_cv_cc_needs_belf" >&6; }
b214d478
SE
7484 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7485 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7486 CFLAGS="$SAVE_CFLAGS"
7487 fi
7488 ;;
7489sparc*-*solaris*)
7490 # Find out which ABI we are using.
7491 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7492 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
b214d478
SE
7493 (eval $ac_compile) 2>&5
7494 ac_status=$?
81ecdfbb
RW
7495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7496 test $ac_status = 0; }; then
b214d478
SE
7497 case `/usr/bin/file conftest.o` in
7498 *64-bit*)
7499 case $lt_cv_prog_gnu_ld in
7500 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7501 *)
7502 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7503 LD="${LD-ld} -64"
7504 fi
7505 ;;
7506 esac
7507 ;;
7508 esac
7509 fi
7510 rm -rf conftest*
7511 ;;
7512esac
7513
7514need_locks="$enable_libtool_lock"
7515
7516
7517 case $host_os in
7518 rhapsody* | darwin*)
7519 if test -n "$ac_tool_prefix"; then
7520 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7521set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
81ecdfbb
RW
7522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7523$as_echo_n "checking for $ac_word... " >&6; }
7524if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7525 $as_echo_n "(cached) " >&6
b214d478
SE
7526else
7527 if test -n "$DSYMUTIL"; then
7528 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7529else
7530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7531for as_dir in $PATH
7532do
7533 IFS=$as_save_IFS
7534 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7535 for ac_exec_ext in '' $ac_executable_extensions; do
7536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7537 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
81ecdfbb 7538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7539 break 2
7540 fi
7541done
81ecdfbb
RW
7542 done
7543IFS=$as_save_IFS
b214d478
SE
7544
7545fi
7546fi
7547DSYMUTIL=$ac_cv_prog_DSYMUTIL
7548if test -n "$DSYMUTIL"; then
81ecdfbb
RW
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7550$as_echo "$DSYMUTIL" >&6; }
b214d478 7551else
81ecdfbb
RW
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7553$as_echo "no" >&6; }
b214d478
SE
7554fi
7555
81ecdfbb 7556
b214d478
SE
7557fi
7558if test -z "$ac_cv_prog_DSYMUTIL"; then
7559 ac_ct_DSYMUTIL=$DSYMUTIL
7560 # Extract the first word of "dsymutil", so it can be a program name with args.
7561set dummy dsymutil; ac_word=$2
81ecdfbb
RW
7562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7563$as_echo_n "checking for $ac_word... " >&6; }
7564if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7565 $as_echo_n "(cached) " >&6
b214d478
SE
7566else
7567 if test -n "$ac_ct_DSYMUTIL"; then
7568 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7569else
7570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7571for as_dir in $PATH
7572do
7573 IFS=$as_save_IFS
7574 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7575 for ac_exec_ext in '' $ac_executable_extensions; do
7576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7577 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
81ecdfbb 7578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7579 break 2
7580 fi
7581done
81ecdfbb
RW
7582 done
7583IFS=$as_save_IFS
b214d478 7584
b214d478
SE
7585fi
7586fi
7587ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7588if test -n "$ac_ct_DSYMUTIL"; then
81ecdfbb
RW
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7590$as_echo "$ac_ct_DSYMUTIL" >&6; }
b214d478 7591else
81ecdfbb
RW
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7593$as_echo "no" >&6; }
b214d478
SE
7594fi
7595
81ecdfbb
RW
7596 if test "x$ac_ct_DSYMUTIL" = x; then
7597 DSYMUTIL=":"
7598 else
7599 case $cross_compiling:$ac_tool_warned in
7600yes:)
7601{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7602$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7603ac_tool_warned=yes ;;
7604esac
7605 DSYMUTIL=$ac_ct_DSYMUTIL
7606 fi
b214d478
SE
7607else
7608 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7609fi
7610
7611 if test -n "$ac_tool_prefix"; then
7612 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7613set dummy ${ac_tool_prefix}nmedit; ac_word=$2
81ecdfbb
RW
7614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7615$as_echo_n "checking for $ac_word... " >&6; }
7616if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7617 $as_echo_n "(cached) " >&6
b214d478
SE
7618else
7619 if test -n "$NMEDIT"; then
7620 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7621else
7622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7623for as_dir in $PATH
7624do
7625 IFS=$as_save_IFS
7626 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7627 for ac_exec_ext in '' $ac_executable_extensions; do
7628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7629 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
81ecdfbb 7630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7631 break 2
7632 fi
7633done
81ecdfbb
RW
7634 done
7635IFS=$as_save_IFS
b214d478
SE
7636
7637fi
7638fi
7639NMEDIT=$ac_cv_prog_NMEDIT
7640if test -n "$NMEDIT"; then
81ecdfbb
RW
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7642$as_echo "$NMEDIT" >&6; }
b214d478 7643else
81ecdfbb
RW
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7645$as_echo "no" >&6; }
b214d478
SE
7646fi
7647
81ecdfbb 7648
b214d478
SE
7649fi
7650if test -z "$ac_cv_prog_NMEDIT"; then
7651 ac_ct_NMEDIT=$NMEDIT
7652 # Extract the first word of "nmedit", so it can be a program name with args.
7653set dummy nmedit; ac_word=$2
81ecdfbb
RW
7654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7655$as_echo_n "checking for $ac_word... " >&6; }
7656if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7657 $as_echo_n "(cached) " >&6
b214d478
SE
7658else
7659 if test -n "$ac_ct_NMEDIT"; then
7660 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7661else
7662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7663for as_dir in $PATH
7664do
7665 IFS=$as_save_IFS
7666 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7667 for ac_exec_ext in '' $ac_executable_extensions; do
7668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7669 ac_cv_prog_ac_ct_NMEDIT="nmedit"
81ecdfbb 7670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7671 break 2
7672 fi
7673done
81ecdfbb
RW
7674 done
7675IFS=$as_save_IFS
b214d478 7676
b214d478
SE
7677fi
7678fi
7679ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7680if test -n "$ac_ct_NMEDIT"; then
81ecdfbb
RW
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7682$as_echo "$ac_ct_NMEDIT" >&6; }
b214d478 7683else
81ecdfbb
RW
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7685$as_echo "no" >&6; }
b214d478
SE
7686fi
7687
81ecdfbb
RW
7688 if test "x$ac_ct_NMEDIT" = x; then
7689 NMEDIT=":"
7690 else
7691 case $cross_compiling:$ac_tool_warned in
7692yes:)
7693{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7694$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7695ac_tool_warned=yes ;;
7696esac
7697 NMEDIT=$ac_ct_NMEDIT
7698 fi
b214d478
SE
7699else
7700 NMEDIT="$ac_cv_prog_NMEDIT"
7701fi
7702
7703 if test -n "$ac_tool_prefix"; then
7704 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7705set dummy ${ac_tool_prefix}lipo; ac_word=$2
81ecdfbb
RW
7706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7707$as_echo_n "checking for $ac_word... " >&6; }
7708if test "${ac_cv_prog_LIPO+set}" = set; then :
7709 $as_echo_n "(cached) " >&6
b214d478
SE
7710else
7711 if test -n "$LIPO"; then
7712 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7713else
7714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7715for as_dir in $PATH
7716do
7717 IFS=$as_save_IFS
7718 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7719 for ac_exec_ext in '' $ac_executable_extensions; do
7720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7721 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
81ecdfbb 7722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7723 break 2
7724 fi
7725done
81ecdfbb
RW
7726 done
7727IFS=$as_save_IFS
b214d478
SE
7728
7729fi
7730fi
7731LIPO=$ac_cv_prog_LIPO
7732if test -n "$LIPO"; then
81ecdfbb
RW
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7734$as_echo "$LIPO" >&6; }
b214d478 7735else
81ecdfbb
RW
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7737$as_echo "no" >&6; }
b214d478
SE
7738fi
7739
81ecdfbb 7740
b214d478
SE
7741fi
7742if test -z "$ac_cv_prog_LIPO"; then
7743 ac_ct_LIPO=$LIPO
7744 # Extract the first word of "lipo", so it can be a program name with args.
7745set dummy lipo; ac_word=$2
81ecdfbb
RW
7746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7747$as_echo_n "checking for $ac_word... " >&6; }
7748if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7749 $as_echo_n "(cached) " >&6
b214d478
SE
7750else
7751 if test -n "$ac_ct_LIPO"; then
7752 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7753else
7754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7755for as_dir in $PATH
7756do
7757 IFS=$as_save_IFS
7758 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7759 for ac_exec_ext in '' $ac_executable_extensions; do
7760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7761 ac_cv_prog_ac_ct_LIPO="lipo"
81ecdfbb 7762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7763 break 2
7764 fi
7765done
81ecdfbb
RW
7766 done
7767IFS=$as_save_IFS
b214d478 7768
b214d478
SE
7769fi
7770fi
7771ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7772if test -n "$ac_ct_LIPO"; then
81ecdfbb
RW
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7774$as_echo "$ac_ct_LIPO" >&6; }
b214d478 7775else
81ecdfbb
RW
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7777$as_echo "no" >&6; }
b214d478
SE
7778fi
7779
81ecdfbb
RW
7780 if test "x$ac_ct_LIPO" = x; then
7781 LIPO=":"
7782 else
7783 case $cross_compiling:$ac_tool_warned in
7784yes:)
7785{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7786$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7787ac_tool_warned=yes ;;
7788esac
7789 LIPO=$ac_ct_LIPO
7790 fi
b214d478
SE
7791else
7792 LIPO="$ac_cv_prog_LIPO"
7793fi
7794
7795 if test -n "$ac_tool_prefix"; then
7796 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7797set dummy ${ac_tool_prefix}otool; ac_word=$2
81ecdfbb
RW
7798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7799$as_echo_n "checking for $ac_word... " >&6; }
7800if test "${ac_cv_prog_OTOOL+set}" = set; then :
7801 $as_echo_n "(cached) " >&6
b214d478
SE
7802else
7803 if test -n "$OTOOL"; then
7804 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7805else
7806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7807for as_dir in $PATH
7808do
7809 IFS=$as_save_IFS
7810 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7811 for ac_exec_ext in '' $ac_executable_extensions; do
7812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7813 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
81ecdfbb 7814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7815 break 2
7816 fi
7817done
81ecdfbb
RW
7818 done
7819IFS=$as_save_IFS
b214d478
SE
7820
7821fi
7822fi
7823OTOOL=$ac_cv_prog_OTOOL
7824if test -n "$OTOOL"; then
81ecdfbb
RW
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7826$as_echo "$OTOOL" >&6; }
b214d478 7827else
81ecdfbb
RW
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7829$as_echo "no" >&6; }
b214d478
SE
7830fi
7831
81ecdfbb 7832
b214d478
SE
7833fi
7834if test -z "$ac_cv_prog_OTOOL"; then
7835 ac_ct_OTOOL=$OTOOL
7836 # Extract the first word of "otool", so it can be a program name with args.
7837set dummy otool; ac_word=$2
81ecdfbb
RW
7838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7839$as_echo_n "checking for $ac_word... " >&6; }
7840if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7841 $as_echo_n "(cached) " >&6
b214d478
SE
7842else
7843 if test -n "$ac_ct_OTOOL"; then
7844 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7845else
7846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7847for as_dir in $PATH
7848do
7849 IFS=$as_save_IFS
7850 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7851 for ac_exec_ext in '' $ac_executable_extensions; do
7852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7853 ac_cv_prog_ac_ct_OTOOL="otool"
81ecdfbb 7854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7855 break 2
7856 fi
7857done
81ecdfbb
RW
7858 done
7859IFS=$as_save_IFS
b214d478 7860
b214d478
SE
7861fi
7862fi
7863ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7864if test -n "$ac_ct_OTOOL"; then
81ecdfbb
RW
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7866$as_echo "$ac_ct_OTOOL" >&6; }
b214d478 7867else
81ecdfbb
RW
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7869$as_echo "no" >&6; }
b214d478
SE
7870fi
7871
81ecdfbb
RW
7872 if test "x$ac_ct_OTOOL" = x; then
7873 OTOOL=":"
7874 else
7875 case $cross_compiling:$ac_tool_warned in
7876yes:)
7877{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7878$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7879ac_tool_warned=yes ;;
7880esac
7881 OTOOL=$ac_ct_OTOOL
7882 fi
b214d478
SE
7883else
7884 OTOOL="$ac_cv_prog_OTOOL"
7885fi
7886
7887 if test -n "$ac_tool_prefix"; then
7888 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7889set dummy ${ac_tool_prefix}otool64; ac_word=$2
81ecdfbb
RW
7890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7891$as_echo_n "checking for $ac_word... " >&6; }
7892if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7893 $as_echo_n "(cached) " >&6
b214d478
SE
7894else
7895 if test -n "$OTOOL64"; then
7896 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7897else
7898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7899for as_dir in $PATH
7900do
7901 IFS=$as_save_IFS
7902 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7903 for ac_exec_ext in '' $ac_executable_extensions; do
7904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7905 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
81ecdfbb 7906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7907 break 2
7908 fi
7909done
81ecdfbb
RW
7910 done
7911IFS=$as_save_IFS
b214d478
SE
7912
7913fi
7914fi
7915OTOOL64=$ac_cv_prog_OTOOL64
7916if test -n "$OTOOL64"; then
81ecdfbb
RW
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7918$as_echo "$OTOOL64" >&6; }
b214d478 7919else
81ecdfbb
RW
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7921$as_echo "no" >&6; }
b214d478
SE
7922fi
7923
81ecdfbb 7924
b214d478
SE
7925fi
7926if test -z "$ac_cv_prog_OTOOL64"; then
7927 ac_ct_OTOOL64=$OTOOL64
7928 # Extract the first word of "otool64", so it can be a program name with args.
7929set dummy otool64; ac_word=$2
81ecdfbb
RW
7930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7931$as_echo_n "checking for $ac_word... " >&6; }
7932if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7933 $as_echo_n "(cached) " >&6
b214d478
SE
7934else
7935 if test -n "$ac_ct_OTOOL64"; then
7936 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7937else
7938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7939for as_dir in $PATH
7940do
7941 IFS=$as_save_IFS
7942 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7943 for ac_exec_ext in '' $ac_executable_extensions; do
7944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7945 ac_cv_prog_ac_ct_OTOOL64="otool64"
81ecdfbb 7946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7947 break 2
7948 fi
7949done
81ecdfbb
RW
7950 done
7951IFS=$as_save_IFS
b214d478 7952
b214d478
SE
7953fi
7954fi
7955ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7956if test -n "$ac_ct_OTOOL64"; then
81ecdfbb
RW
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7958$as_echo "$ac_ct_OTOOL64" >&6; }
b214d478 7959else
81ecdfbb
RW
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7961$as_echo "no" >&6; }
b214d478
SE
7962fi
7963
81ecdfbb
RW
7964 if test "x$ac_ct_OTOOL64" = x; then
7965 OTOOL64=":"
7966 else
7967 case $cross_compiling:$ac_tool_warned in
7968yes:)
7969{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7970$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7971ac_tool_warned=yes ;;
7972esac
7973 OTOOL64=$ac_ct_OTOOL64
7974 fi
b214d478
SE
7975else
7976 OTOOL64="$ac_cv_prog_OTOOL64"
7977fi
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
81ecdfbb
RW
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8006$as_echo_n "checking for -single_module linker flag... " >&6; }
8007if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8008 $as_echo_n "(cached) " >&6
b214d478
SE
8009else
8010 lt_cv_apple_cc_single_mod=no
8011 if test -z "${LT_MULTI_MODULE}"; then
8012 # By default we will add the -single_module flag. You can override
8013 # by either setting the environment variable LT_MULTI_MODULE
8014 # non-empty at configure time, or by adding -multi_module to the
8015 # link flags.
8016 rm -rf libconftest.dylib*
8017 echo "int foo(void){return 1;}" > conftest.c
8018 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8019-dynamiclib -Wl,-single_module conftest.c" >&5
8020 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8021 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8022 _lt_result=$?
8023 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8024 lt_cv_apple_cc_single_mod=yes
8025 else
8026 cat conftest.err >&5
8027 fi
8028 rm -rf libconftest.dylib*
8029 rm -f conftest.*
8030 fi
8031fi
81ecdfbb
RW
8032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8033$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8035$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8036if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8037 $as_echo_n "(cached) " >&6
b214d478
SE
8038else
8039 lt_cv_ld_exported_symbols_list=no
8040 save_LDFLAGS=$LDFLAGS
8041 echo "_main" > conftest.sym
8042 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
81ecdfbb 8043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b214d478
SE
8044/* end confdefs.h. */
8045
8046int
8047main ()
8048{
8049
8050 ;
8051 return 0;
8052}
8053_ACEOF
81ecdfbb 8054if ac_fn_c_try_link "$LINENO"; then :
b214d478
SE
8055 lt_cv_ld_exported_symbols_list=yes
8056else
81ecdfbb 8057 lt_cv_ld_exported_symbols_list=no
b214d478 8058fi
81ecdfbb
RW
8059rm -f core conftest.err conftest.$ac_objext \
8060 conftest$ac_exeext conftest.$ac_ext
b214d478
SE
8061 LDFLAGS="$save_LDFLAGS"
8062
8063fi
81ecdfbb
RW
8064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8065$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
3725885a
RW
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8067$as_echo_n "checking for -force_load linker flag... " >&6; }
8068if test "${lt_cv_ld_force_load+set}" = set; then :
8069 $as_echo_n "(cached) " >&6
8070else
8071 lt_cv_ld_force_load=no
8072 cat > conftest.c << _LT_EOF
8073int forced_loaded() { return 2;}
8074_LT_EOF
8075 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8076 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8077 echo "$AR cru libconftest.a conftest.o" >&5
8078 $AR cru libconftest.a conftest.o 2>&5
8079 cat > conftest.c << _LT_EOF
8080int main() { return 0;}
8081_LT_EOF
8082 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8083 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8084 _lt_result=$?
8085 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8086 lt_cv_ld_force_load=yes
8087 else
8088 cat conftest.err >&5
8089 fi
8090 rm -f conftest.err libconftest.a conftest conftest.c
8091 rm -rf conftest.dSYM
8092
8093fi
8094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8095$as_echo "$lt_cv_ld_force_load" >&6; }
b214d478
SE
8096 case $host_os in
8097 rhapsody* | darwin1.[012])
8098 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8099 darwin1.*)
8100 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8101 darwin*) # darwin 5.x on
8102 # if running on 10.5 or later, the deployment target defaults
8103 # to the OS version, if on x86, and 10.4, the deployment
8104 # target defaults to 10.4. Don't you love it?
8105 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8106 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8107 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8108 10.[012]*)
8109 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8110 10.*)
8111 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8112 esac
8113 ;;
8114 esac
8115 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8116 _lt_dar_single_mod='$single_module'
8117 fi
8118 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8119 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8120 else
8121 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8122 fi
3725885a 8123 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
b214d478
SE
8124 _lt_dsymutil='~$DSYMUTIL $lib || :'
8125 else
8126 _lt_dsymutil=
8127 fi
8128 ;;
8129 esac
8130
b214d478 8131for ac_header in dlfcn.h
81ecdfbb
RW
8132do :
8133 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8134"
8135if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
b214d478 8136 cat >>confdefs.h <<_ACEOF
81ecdfbb 8137#define HAVE_DLFCN_H 1
b214d478
SE
8138_ACEOF
8139
8140fi
8141
8142done
8143
8144
8145
3725885a
RW
8146
8147
b214d478
SE
8148# Set options
8149
8150
8151
8152 enable_dlopen=no
8153
8154
8155 enable_win32_dll=no
8156
8157
81ecdfbb
RW
8158 # Check whether --enable-shared was given.
8159if test "${enable_shared+set}" = set; then :
8160 enableval=$enable_shared; p=${PACKAGE-default}
b214d478
SE
8161 case $enableval in
8162 yes) enable_shared=yes ;;
8163 no) enable_shared=no ;;
8164 *)
8165 enable_shared=no
8166 # Look at the argument we got. We use all the common list separators.
8167 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8168 for pkg in $enableval; do
8169 IFS="$lt_save_ifs"
8170 if test "X$pkg" = "X$p"; then
8171 enable_shared=yes
8172 fi
8173 done
8174 IFS="$lt_save_ifs"
8175 ;;
8176 esac
8177else
8178 enable_shared=yes
81ecdfbb 8179fi
b214d478
SE
8180
8181
8182
8183
8184
8185
8186
8187
81ecdfbb
RW
8188
8189 # Check whether --enable-static was given.
8190if test "${enable_static+set}" = set; then :
8191 enableval=$enable_static; p=${PACKAGE-default}
b214d478
SE
8192 case $enableval in
8193 yes) enable_static=yes ;;
8194 no) enable_static=no ;;
8195 *)
8196 enable_static=no
8197 # Look at the argument we got. We use all the common list separators.
8198 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8199 for pkg in $enableval; do
8200 IFS="$lt_save_ifs"
8201 if test "X$pkg" = "X$p"; then
8202 enable_static=yes
8203 fi
8204 done
8205 IFS="$lt_save_ifs"
8206 ;;
8207 esac
8208else
8209 enable_static=yes
81ecdfbb 8210fi
b214d478
SE
8211
8212
8213
8214
8215
8216
8217
8218
8219
81ecdfbb
RW
8220
8221# Check whether --with-pic was given.
8222if test "${with_pic+set}" = set; then :
8223 withval=$with_pic; pic_mode="$withval"
b214d478
SE
8224else
8225 pic_mode=default
81ecdfbb
RW
8226fi
8227
b214d478
SE
8228
8229test -z "$pic_mode" && pic_mode=default
8230
8231
8232
8233
8234
8235
8236
81ecdfbb
RW
8237 # Check whether --enable-fast-install was given.
8238if test "${enable_fast_install+set}" = set; then :
8239 enableval=$enable_fast_install; p=${PACKAGE-default}
b214d478
SE
8240 case $enableval in
8241 yes) enable_fast_install=yes ;;
8242 no) enable_fast_install=no ;;
8243 *)
8244 enable_fast_install=no
8245 # Look at the argument we got. We use all the common list separators.
8246 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8247 for pkg in $enableval; do
8248 IFS="$lt_save_ifs"
8249 if test "X$pkg" = "X$p"; then
8250 enable_fast_install=yes
8251 fi
8252 done
8253 IFS="$lt_save_ifs"
7357c5b6
AM
8254 ;;
8255 esac
b214d478
SE
8256else
8257 enable_fast_install=yes
81ecdfbb
RW
8258fi
8259
ce2cded5 8260
ce2cded5
L
8261
8262
ce2cded5 8263
42ecbf5e 8264
d7040cdb 8265
d7040cdb 8266
d7040cdb 8267
d7040cdb 8268
d7040cdb 8269
ce2cded5
L
8270# This can be used to rebuild libtool when needed
8271LIBTOOL_DEPS="$ltmain"
d7040cdb 8272
ce2cded5
L
8273# Always use our own libtool.
8274LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d7040cdb 8275
d7040cdb 8276
d7040cdb 8277
d7040cdb 8278
d7040cdb 8279
d7040cdb 8280
d7040cdb 8281
d7040cdb 8282
d7040cdb 8283
d7040cdb 8284
d7040cdb 8285
d7040cdb 8286
d7040cdb 8287
d7040cdb 8288
d7040cdb 8289
d7040cdb 8290
d7040cdb
SE
8291
8292
8293
8294
8295
8296
8297
3725885a 8298
d7040cdb
SE
8299
8300
ce2cded5 8301test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
8302
8303
8304
8305
8306
8307
d7040cdb
SE
8308
8309
8310
8311
8312
8313
8314
8315
ce2cded5
L
8316if test -n "${ZSH_VERSION+set}" ; then
8317 setopt NO_GLOB_SUBST
8318fi
d7040cdb 8319
81ecdfbb
RW
8320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8321$as_echo_n "checking for objdir... " >&6; }
8322if test "${lt_cv_objdir+set}" = set; then :
8323 $as_echo_n "(cached) " >&6
ce2cded5
L
8324else
8325 rm -f .libs 2>/dev/null
8326mkdir .libs 2>/dev/null
8327if test -d .libs; then
8328 lt_cv_objdir=.libs
8329else
8330 # MS-DOS does not allow filenames that begin with a dot.
8331 lt_cv_objdir=_libs
8332fi
8333rmdir .libs 2>/dev/null
8334fi
81ecdfbb
RW
8335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8336$as_echo "$lt_cv_objdir" >&6; }
ce2cded5 8337objdir=$lt_cv_objdir
d7040cdb
SE
8338
8339
8340
8341
8342
ce2cded5
L
8343cat >>confdefs.h <<_ACEOF
8344#define LT_OBJDIR "$lt_cv_objdir/"
8345_ACEOF
d7040cdb
SE
8346
8347
8348
8349
ce2cded5
L
8350case $host_os in
8351aix3*)
8352 # AIX sometimes has problems with the GCC collect2 program. For some
8353 # reason, if we set the COLLECT_NAMES environment variable, the problems
8354 # vanish in a puff of smoke.
8355 if test "X${COLLECT_NAMES+set}" != Xset; then
8356 COLLECT_NAMES=
8357 export COLLECT_NAMES
8358 fi
8359 ;;
8360esac
d7040cdb 8361
ce2cded5
L
8362# Global variables:
8363ofile=libtool
8364can_build_shared=yes
d7040cdb 8365
ce2cded5
L
8366# All known linkers require a `.a' archive for static linking (except MSVC,
8367# which needs '.lib').
8368libext=a
d7040cdb 8369
ce2cded5 8370with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 8371
ce2cded5
L
8372old_CC="$CC"
8373old_CFLAGS="$CFLAGS"
d7040cdb 8374
ce2cded5
L
8375# Set sane defaults for various variables
8376test -z "$CC" && CC=cc
8377test -z "$LTCC" && LTCC=$CC
8378test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8379test -z "$LD" && LD=ld
8380test -z "$ac_objext" && ac_objext=o
d7040cdb 8381
ce2cded5
L
8382for cc_temp in $compiler""; do
8383 case $cc_temp in
8384 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8385 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8386 \-*) ;;
8387 *) break;;
8388 esac
8389done
3725885a 8390cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
d7040cdb
SE
8391
8392
ce2cded5
L
8393# Only perform the check for file, if the check method requires it
8394test -z "$MAGIC_CMD" && MAGIC_CMD=file
8395case $deplibs_check_method in
8396file_magic*)
8397 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
81ecdfbb
RW
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8399$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8400if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8401 $as_echo_n "(cached) " >&6
ce2cded5
L
8402else
8403 case $MAGIC_CMD in
8404[\\/*] | ?:[\\/]*)
8405 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8406 ;;
8407*)
8408 lt_save_MAGIC_CMD="$MAGIC_CMD"
8409 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8410 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8411 for ac_dir in $ac_dummy; do
8412 IFS="$lt_save_ifs"
8413 test -z "$ac_dir" && ac_dir=.
8414 if test -f $ac_dir/${ac_tool_prefix}file; then
8415 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8416 if test -n "$file_magic_test_file"; then
8417 case $deplibs_check_method in
8418 "file_magic "*)
8419 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8420 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8421 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8422 $EGREP "$file_magic_regex" > /dev/null; then
8423 :
8424 else
8425 cat <<_LT_EOF 1>&2
d7040cdb 8426
ce2cded5
L
8427*** Warning: the command libtool uses to detect shared libraries,
8428*** $file_magic_cmd, produces output that libtool cannot recognize.
8429*** The result is that libtool may fail to recognize shared libraries
8430*** as such. This will affect the creation of libtool libraries that
8431*** depend on shared libraries, but programs linked with such libtool
8432*** libraries will work regardless of this problem. Nevertheless, you
8433*** may want to report the problem to your system manager and/or to
8434*** bug-libtool@gnu.org
d7040cdb 8435
ce2cded5
L
8436_LT_EOF
8437 fi ;;
8438 esac
8439 fi
8440 break
8441 fi
8442 done
8443 IFS="$lt_save_ifs"
8444 MAGIC_CMD="$lt_save_MAGIC_CMD"
8445 ;;
8446esac
8447fi
d7040cdb 8448
ce2cded5
L
8449MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8450if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8452$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 8453else
81ecdfbb
RW
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8455$as_echo "no" >&6; }
ce2cded5 8456fi
d7040cdb
SE
8457
8458
8459
8460
8461
ce2cded5
L
8462if test -z "$lt_cv_path_MAGIC_CMD"; then
8463 if test -n "$ac_tool_prefix"; then
81ecdfbb
RW
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8465$as_echo_n "checking for file... " >&6; }
8466if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8467 $as_echo_n "(cached) " >&6
ce2cded5
L
8468else
8469 case $MAGIC_CMD in
8470[\\/*] | ?:[\\/]*)
8471 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8472 ;;
8473*)
8474 lt_save_MAGIC_CMD="$MAGIC_CMD"
8475 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8476 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8477 for ac_dir in $ac_dummy; do
8478 IFS="$lt_save_ifs"
8479 test -z "$ac_dir" && ac_dir=.
8480 if test -f $ac_dir/file; then
8481 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8482 if test -n "$file_magic_test_file"; then
8483 case $deplibs_check_method in
8484 "file_magic "*)
8485 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8486 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8487 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8488 $EGREP "$file_magic_regex" > /dev/null; then
8489 :
8490 else
8491 cat <<_LT_EOF 1>&2
d7040cdb 8492
ce2cded5
L
8493*** Warning: the command libtool uses to detect shared libraries,
8494*** $file_magic_cmd, produces output that libtool cannot recognize.
8495*** The result is that libtool may fail to recognize shared libraries
8496*** as such. This will affect the creation of libtool libraries that
8497*** depend on shared libraries, but programs linked with such libtool
8498*** libraries will work regardless of this problem. Nevertheless, you
8499*** may want to report the problem to your system manager and/or to
8500*** bug-libtool@gnu.org
d7040cdb 8501
ce2cded5
L
8502_LT_EOF
8503 fi ;;
8504 esac
8505 fi
8506 break
8507 fi
8508 done
8509 IFS="$lt_save_ifs"
8510 MAGIC_CMD="$lt_save_MAGIC_CMD"
8511 ;;
8512esac
8513fi
d7040cdb 8514
ce2cded5
L
8515MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8516if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8518$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 8519else
81ecdfbb
RW
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8521$as_echo "no" >&6; }
ce2cded5 8522fi
d7040cdb
SE
8523
8524
ce2cded5
L
8525 else
8526 MAGIC_CMD=:
8527 fi
8528fi
d7040cdb 8529
ce2cded5
L
8530 fi
8531 ;;
8532esac
d7040cdb 8533
ce2cded5 8534# Use C for the default configuration in the libtool script
d7040cdb 8535
ce2cded5
L
8536lt_save_CC="$CC"
8537ac_ext=c
8538ac_cpp='$CPP $CPPFLAGS'
8539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8541ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
8542
8543
ce2cded5
L
8544# Source file extension for C test sources.
8545ac_ext=c
d7040cdb 8546
ce2cded5
L
8547# Object file extension for compiled C test sources.
8548objext=o
8549objext=$objext
d7040cdb 8550
ce2cded5
L
8551# Code to be used in simple compile tests
8552lt_simple_compile_test_code="int some_variable = 0;"
d7040cdb 8553
ce2cded5
L
8554# Code to be used in simple link tests
8555lt_simple_link_test_code='int main(){return(0);}'
d7040cdb
SE
8556
8557
8558
8559
8560
8561
8562
ce2cded5
L
8563# If no C compiler was specified, use CC.
8564LTCC=${LTCC-"$CC"}
d7040cdb 8565
ce2cded5
L
8566# If no C compiler flags were specified, use CFLAGS.
8567LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d7040cdb 8568
ce2cded5
L
8569# Allow CC to be a program name with arguments.
8570compiler=$CC
d7040cdb 8571
ce2cded5
L
8572# Save the default compiler, since it gets overwritten when the other
8573# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8574compiler_DEFAULT=$CC
d7040cdb 8575
ce2cded5
L
8576# save warnings/boilerplate of simple test code
8577ac_outfile=conftest.$ac_objext
8578echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8579eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8580_lt_compiler_boilerplate=`cat conftest.err`
8581$RM conftest*
d7040cdb 8582
ce2cded5
L
8583ac_outfile=conftest.$ac_objext
8584echo "$lt_simple_link_test_code" >conftest.$ac_ext
8585eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8586_lt_linker_boilerplate=`cat conftest.err`
b214d478 8587$RM -r conftest*
d7040cdb
SE
8588
8589
ce2cded5
L
8590## CAVEAT EMPTOR:
8591## There is no encapsulation within the following macros, do not change
8592## the running order or otherwise move them around unless you know exactly
8593## what you are doing...
8594if test -n "$compiler"; then
d7040cdb 8595
ce2cded5 8596lt_prog_compiler_no_builtin_flag=
d7040cdb 8597
ce2cded5 8598if test "$GCC" = yes; then
3725885a
RW
8599 case $cc_basename in
8600 nvcc*)
8601 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8602 *)
8603 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8604 esac
d7040cdb 8605
81ecdfbb
RW
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8607$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8608if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8609 $as_echo_n "(cached) " >&6
ce2cded5
L
8610else
8611 lt_cv_prog_compiler_rtti_exceptions=no
8612 ac_outfile=conftest.$ac_objext
8613 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8614 lt_compiler_flag="-fno-rtti -fno-exceptions"
8615 # Insert the option either (1) after the last *FLAGS variable, or
8616 # (2) before a word containing "conftest.", or (3) at the end.
8617 # Note that $ac_compile itself does not contain backslashes and begins
8618 # with a dollar sign (not a hyphen), so the echo should work correctly.
8619 # The option is referenced via a variable to avoid confusing sed.
8620 lt_compile=`echo "$ac_compile" | $SED \
8621 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8622 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8623 -e 's:$: $lt_compiler_flag:'`
3725885a 8624 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8625 (eval "$lt_compile" 2>conftest.err)
8626 ac_status=$?
8627 cat conftest.err >&5
3725885a 8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8629 if (exit $ac_status) && test -s "$ac_outfile"; then
8630 # The compiler can only warn and ignore the option if not recognized
8631 # So say no if there are warnings other than the usual output.
3725885a 8632 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
8633 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8634 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8635 lt_cv_prog_compiler_rtti_exceptions=yes
8636 fi
8637 fi
8638 $RM conftest*
d7040cdb 8639
ce2cded5 8640fi
81ecdfbb
RW
8641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8642$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d7040cdb 8643
ce2cded5
L
8644if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8645 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8646else
8647 :
8648fi
d7040cdb 8649
ce2cded5 8650fi
d7040cdb
SE
8651
8652
8653
8654
8655
8656
ce2cded5
L
8657 lt_prog_compiler_wl=
8658lt_prog_compiler_pic=
8659lt_prog_compiler_static=
d7040cdb 8660
81ecdfbb
RW
8661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8662$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
d7040cdb 8663
ce2cded5
L
8664 if test "$GCC" = yes; then
8665 lt_prog_compiler_wl='-Wl,'
8666 lt_prog_compiler_static='-static'
d7040cdb 8667
ce2cded5
L
8668 case $host_os in
8669 aix*)
8670 # All AIX code is PIC.
8671 if test "$host_cpu" = ia64; then
8672 # AIX 5 now supports IA64 processor
8673 lt_prog_compiler_static='-Bstatic'
8674 fi
8675 ;;
d7040cdb 8676
ce2cded5 8677 amigaos*)
b214d478
SE
8678 case $host_cpu in
8679 powerpc)
8680 # see comment about AmigaOS4 .so support
8681 lt_prog_compiler_pic='-fPIC'
8682 ;;
8683 m68k)
8684 # FIXME: we need at least 68020 code to build shared libraries, but
8685 # adding the `-m68020' flag to GCC prevents building anything better,
8686 # like `-m68040'.
8687 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8688 ;;
8689 esac
ce2cded5 8690 ;;
d7040cdb 8691
ce2cded5
L
8692 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8693 # PIC is the default for these OSes.
8694 ;;
d7040cdb 8695
b214d478 8696 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8697 # This hack is so that the source file can tell whether it is being
8698 # built for inclusion in a dll (and should export symbols for example).
8699 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8700 # (--disable-auto-import) libraries
8701 lt_prog_compiler_pic='-DDLL_EXPORT'
8702 ;;
d7040cdb 8703
ce2cded5
L
8704 darwin* | rhapsody*)
8705 # PIC is the default on this platform
8706 # Common symbols not allowed in MH_DYLIB files
8707 lt_prog_compiler_pic='-fno-common'
8708 ;;
d7040cdb 8709
3725885a
RW
8710 haiku*)
8711 # PIC is the default for Haiku.
8712 # The "-static" flag exists, but is broken.
8713 lt_prog_compiler_static=
8714 ;;
8715
ce2cded5 8716 hpux*)
b214d478
SE
8717 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8718 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8719 # sets the default TLS model and affects inlining.
ce2cded5 8720 case $host_cpu in
b214d478 8721 hppa*64*)
ce2cded5
L
8722 # +Z the default
8723 ;;
8724 *)
8725 lt_prog_compiler_pic='-fPIC'
8726 ;;
8727 esac
8728 ;;
d7040cdb 8729
ce2cded5
L
8730 interix[3-9]*)
8731 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8732 # Instead, we relocate shared libraries at runtime.
8733 ;;
d7040cdb 8734
ce2cded5
L
8735 msdosdjgpp*)
8736 # Just because we use GCC doesn't mean we suddenly get shared libraries
8737 # on systems that don't support them.
8738 lt_prog_compiler_can_build_shared=no
8739 enable_shared=no
8740 ;;
d7040cdb 8741
ce2cded5
L
8742 *nto* | *qnx*)
8743 # QNX uses GNU C++, but need to define -shared option too, otherwise
8744 # it will coredump.
8745 lt_prog_compiler_pic='-fPIC -shared'
8746 ;;
d7040cdb 8747
ce2cded5
L
8748 sysv4*MP*)
8749 if test -d /usr/nec; then
8750 lt_prog_compiler_pic=-Kconform_pic
8751 fi
8752 ;;
d7040cdb 8753
ce2cded5
L
8754 *)
8755 lt_prog_compiler_pic='-fPIC'
8756 ;;
8757 esac
3725885a
RW
8758
8759 case $cc_basename in
8760 nvcc*) # Cuda Compiler Driver 2.2
8761 lt_prog_compiler_wl='-Xlinker '
8762 lt_prog_compiler_pic='-Xcompiler -fPIC'
8763 ;;
8764 esac
ce2cded5
L
8765 else
8766 # PORTME Check for flag to pass linker flags through the system compiler.
8767 case $host_os in
8768 aix*)
8769 lt_prog_compiler_wl='-Wl,'
8770 if test "$host_cpu" = ia64; then
8771 # AIX 5 now supports IA64 processor
8772 lt_prog_compiler_static='-Bstatic'
8773 else
8774 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8775 fi
8776 ;;
d7040cdb 8777
b214d478 8778 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8779 # This hack is so that the source file can tell whether it is being
8780 # built for inclusion in a dll (and should export symbols for example).
8781 lt_prog_compiler_pic='-DDLL_EXPORT'
8782 ;;
d7040cdb 8783
ce2cded5
L
8784 hpux9* | hpux10* | hpux11*)
8785 lt_prog_compiler_wl='-Wl,'
8786 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8787 # not for PA HP-UX.
8788 case $host_cpu in
8789 hppa*64*|ia64*)
8790 # +Z the default
8791 ;;
8792 *)
8793 lt_prog_compiler_pic='+Z'
8794 ;;
8795 esac
8796 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8797 lt_prog_compiler_static='${wl}-a ${wl}archive'
8798 ;;
d7040cdb 8799
ce2cded5
L
8800 irix5* | irix6* | nonstopux*)
8801 lt_prog_compiler_wl='-Wl,'
8802 # PIC (with -KPIC) is the default.
8803 lt_prog_compiler_static='-non_shared'
8804 ;;
d7040cdb 8805
58e24671 8806 linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5 8807 case $cc_basename in
b214d478
SE
8808 # old Intel for x86_64 which still supported -KPIC.
8809 ecc*)
ce2cded5
L
8810 lt_prog_compiler_wl='-Wl,'
8811 lt_prog_compiler_pic='-KPIC'
8812 lt_prog_compiler_static='-static'
8813 ;;
b214d478
SE
8814 # icc used to be incompatible with GCC.
8815 # ICC 10 doesn't accept -KPIC any more.
8816 icc* | ifort*)
8817 lt_prog_compiler_wl='-Wl,'
8818 lt_prog_compiler_pic='-fPIC'
8819 lt_prog_compiler_static='-static'
8820 ;;
8821 # Lahey Fortran 8.1.
8822 lf95*)
8823 lt_prog_compiler_wl='-Wl,'
8824 lt_prog_compiler_pic='--shared'
8825 lt_prog_compiler_static='--static'
8826 ;;
3725885a 8827 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
ce2cded5
L
8828 # Portland Group compilers (*not* the Pentium gcc compiler,
8829 # which looks to be a dead project)
8830 lt_prog_compiler_wl='-Wl,'
8831 lt_prog_compiler_pic='-fpic'
8832 lt_prog_compiler_static='-Bstatic'
8833 ;;
8834 ccc*)
8835 lt_prog_compiler_wl='-Wl,'
8836 # All Alpha code is PIC.
8837 lt_prog_compiler_static='-non_shared'
8838 ;;
3725885a
RW
8839 xl* | bgxl* | bgf* | mpixl*)
8840 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
b214d478
SE
8841 lt_prog_compiler_wl='-Wl,'
8842 lt_prog_compiler_pic='-qpic'
8843 lt_prog_compiler_static='-qstaticlink'
8844 ;;
ce2cded5
L
8845 *)
8846 case `$CC -V 2>&1 | sed 5q` in
3725885a
RW
8847 *Sun\ F* | *Sun*Fortran*)
8848 # Sun Fortran 8.3 passes all unrecognized flags to the linker
ce2cded5
L
8849 lt_prog_compiler_pic='-KPIC'
8850 lt_prog_compiler_static='-Bstatic'
3725885a 8851 lt_prog_compiler_wl=''
ce2cded5 8852 ;;
3725885a
RW
8853 *Sun\ C*)
8854 # Sun C 5.9
ce2cded5
L
8855 lt_prog_compiler_pic='-KPIC'
8856 lt_prog_compiler_static='-Bstatic'
3725885a 8857 lt_prog_compiler_wl='-Wl,'
ce2cded5
L
8858 ;;
8859 esac
8860 ;;
8861 esac
8862 ;;
d7040cdb 8863
ce2cded5
L
8864 newsos6)
8865 lt_prog_compiler_pic='-KPIC'
8866 lt_prog_compiler_static='-Bstatic'
8867 ;;
d7040cdb 8868
ce2cded5
L
8869 *nto* | *qnx*)
8870 # QNX uses GNU C++, but need to define -shared option too, otherwise
8871 # it will coredump.
8872 lt_prog_compiler_pic='-fPIC -shared'
8873 ;;
d7040cdb 8874
ce2cded5
L
8875 osf3* | osf4* | osf5*)
8876 lt_prog_compiler_wl='-Wl,'
8877 # All OSF/1 code is PIC.
8878 lt_prog_compiler_static='-non_shared'
8879 ;;
d7040cdb 8880
ce2cded5
L
8881 rdos*)
8882 lt_prog_compiler_static='-non_shared'
8883 ;;
d7040cdb 8884
ce2cded5
L
8885 solaris*)
8886 lt_prog_compiler_pic='-KPIC'
8887 lt_prog_compiler_static='-Bstatic'
8888 case $cc_basename in
8889 f77* | f90* | f95*)
8890 lt_prog_compiler_wl='-Qoption ld ';;
8891 *)
8892 lt_prog_compiler_wl='-Wl,';;
8893 esac
8894 ;;
d7040cdb 8895
ce2cded5
L
8896 sunos4*)
8897 lt_prog_compiler_wl='-Qoption ld '
8898 lt_prog_compiler_pic='-PIC'
8899 lt_prog_compiler_static='-Bstatic'
8900 ;;
d7040cdb 8901
ce2cded5
L
8902 sysv4 | sysv4.2uw2* | sysv4.3*)
8903 lt_prog_compiler_wl='-Wl,'
8904 lt_prog_compiler_pic='-KPIC'
8905 lt_prog_compiler_static='-Bstatic'
8906 ;;
d7040cdb 8907
ce2cded5
L
8908 sysv4*MP*)
8909 if test -d /usr/nec ;then
8910 lt_prog_compiler_pic='-Kconform_pic'
8911 lt_prog_compiler_static='-Bstatic'
8912 fi
8913 ;;
d7040cdb 8914
ce2cded5
L
8915 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8916 lt_prog_compiler_wl='-Wl,'
8917 lt_prog_compiler_pic='-KPIC'
8918 lt_prog_compiler_static='-Bstatic'
8919 ;;
d7040cdb 8920
ce2cded5
L
8921 unicos*)
8922 lt_prog_compiler_wl='-Wl,'
8923 lt_prog_compiler_can_build_shared=no
8924 ;;
d7040cdb 8925
ce2cded5
L
8926 uts4*)
8927 lt_prog_compiler_pic='-pic'
8928 lt_prog_compiler_static='-Bstatic'
8929 ;;
d7040cdb 8930
ce2cded5
L
8931 *)
8932 lt_prog_compiler_can_build_shared=no
8933 ;;
8934 esac
8935 fi
d7040cdb 8936
ce2cded5
L
8937case $host_os in
8938 # For platforms which do not support PIC, -DPIC is meaningless:
8939 *djgpp*)
8940 lt_prog_compiler_pic=
8941 ;;
8942 *)
8943 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8944 ;;
8945esac
81ecdfbb
RW
8946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8947$as_echo "$lt_prog_compiler_pic" >&6; }
d7040cdb
SE
8948
8949
8950
8951
8952
8953
ce2cded5
L
8954#
8955# Check to make sure the PIC flag actually works.
8956#
8957if test -n "$lt_prog_compiler_pic"; then
81ecdfbb
RW
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8959$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8960if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8961 $as_echo_n "(cached) " >&6
ce2cded5 8962else
b214d478 8963 lt_cv_prog_compiler_pic_works=no
ce2cded5
L
8964 ac_outfile=conftest.$ac_objext
8965 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8966 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8967 # Insert the option either (1) after the last *FLAGS variable, or
8968 # (2) before a word containing "conftest.", or (3) at the end.
8969 # Note that $ac_compile itself does not contain backslashes and begins
8970 # with a dollar sign (not a hyphen), so the echo should work correctly.
8971 # The option is referenced via a variable to avoid confusing sed.
8972 lt_compile=`echo "$ac_compile" | $SED \
8973 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8974 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8975 -e 's:$: $lt_compiler_flag:'`
3725885a 8976 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8977 (eval "$lt_compile" 2>conftest.err)
8978 ac_status=$?
8979 cat conftest.err >&5
3725885a 8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8981 if (exit $ac_status) && test -s "$ac_outfile"; then
8982 # The compiler can only warn and ignore the option if not recognized
8983 # So say no if there are warnings other than the usual output.
3725885a 8984 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
8985 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8986 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
b214d478 8987 lt_cv_prog_compiler_pic_works=yes
ce2cded5
L
8988 fi
8989 fi
8990 $RM conftest*
d7040cdb 8991
ce2cded5 8992fi
81ecdfbb
RW
8993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8994$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
ce2cded5 8995
b214d478 8996if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
ce2cded5
L
8997 case $lt_prog_compiler_pic in
8998 "" | " "*) ;;
8999 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9000 esac
9001else
9002 lt_prog_compiler_pic=
9003 lt_prog_compiler_can_build_shared=no
9004fi
9005
9006fi
d7040cdb
SE
9007
9008
9009
9010
9011
9012
ce2cded5
L
9013#
9014# Check to make sure the static flag actually works.
9015#
9016wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
81ecdfbb
RW
9017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9018$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9019if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9020 $as_echo_n "(cached) " >&6
ce2cded5 9021else
b214d478 9022 lt_cv_prog_compiler_static_works=no
ce2cded5
L
9023 save_LDFLAGS="$LDFLAGS"
9024 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9025 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9026 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9027 # The linker can only warn and ignore the option if not recognized
9028 # So say no if there are warnings
9029 if test -s conftest.err; then
9030 # Append any errors to the config.log.
9031 cat conftest.err 1>&5
3725885a 9032 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
ce2cded5
L
9033 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9034 if diff conftest.exp conftest.er2 >/dev/null; then
b214d478 9035 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
9036 fi
9037 else
b214d478 9038 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
9039 fi
9040 fi
b214d478 9041 $RM -r conftest*
ce2cded5 9042 LDFLAGS="$save_LDFLAGS"
d7040cdb 9043
ce2cded5 9044fi
81ecdfbb
RW
9045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9046$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d7040cdb 9047
b214d478 9048if test x"$lt_cv_prog_compiler_static_works" = xyes; then
ce2cded5
L
9049 :
9050else
9051 lt_prog_compiler_static=
9052fi
d7040cdb
SE
9053
9054
9055
9056
9057
9058
9059
81ecdfbb
RW
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9061$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9062if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9063 $as_echo_n "(cached) " >&6
ce2cded5
L
9064else
9065 lt_cv_prog_compiler_c_o=no
9066 $RM -r conftest 2>/dev/null
9067 mkdir conftest
9068 cd conftest
9069 mkdir out
9070 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9071
ce2cded5
L
9072 lt_compiler_flag="-o out/conftest2.$ac_objext"
9073 # Insert the option either (1) after the last *FLAGS variable, or
9074 # (2) before a word containing "conftest.", or (3) at the end.
9075 # Note that $ac_compile itself does not contain backslashes and begins
9076 # with a dollar sign (not a hyphen), so the echo should work correctly.
9077 lt_compile=`echo "$ac_compile" | $SED \
9078 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9079 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9080 -e 's:$: $lt_compiler_flag:'`
3725885a 9081 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9082 (eval "$lt_compile" 2>out/conftest.err)
9083 ac_status=$?
9084 cat out/conftest.err >&5
3725885a 9085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9086 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9087 then
9088 # The compiler can only warn and ignore the option if not recognized
9089 # So say no if there are warnings
3725885a 9090 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
9091 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9092 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9093 lt_cv_prog_compiler_c_o=yes
9094 fi
9095 fi
9096 chmod u+w . 2>&5
9097 $RM conftest*
9098 # SGI C++ compiler will create directory out/ii_files/ for
9099 # template instantiation
9100 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9101 $RM out/* && rmdir out
9102 cd ..
9103 $RM -r conftest
9104 $RM conftest*
d7040cdb 9105
ce2cded5 9106fi
81ecdfbb
RW
9107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9108$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
9109
9110
9111
9112
9113
9114
81ecdfbb
RW
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9116$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9117if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9118 $as_echo_n "(cached) " >&6
ce2cded5
L
9119else
9120 lt_cv_prog_compiler_c_o=no
9121 $RM -r conftest 2>/dev/null
9122 mkdir conftest
9123 cd conftest
9124 mkdir out
9125 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9126
ce2cded5
L
9127 lt_compiler_flag="-o out/conftest2.$ac_objext"
9128 # Insert the option either (1) after the last *FLAGS variable, or
9129 # (2) before a word containing "conftest.", or (3) at the end.
9130 # Note that $ac_compile itself does not contain backslashes and begins
9131 # with a dollar sign (not a hyphen), so the echo should work correctly.
9132 lt_compile=`echo "$ac_compile" | $SED \
9133 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9134 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9135 -e 's:$: $lt_compiler_flag:'`
3725885a 9136 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9137 (eval "$lt_compile" 2>out/conftest.err)
9138 ac_status=$?
9139 cat out/conftest.err >&5
3725885a 9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9141 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9142 then
9143 # The compiler can only warn and ignore the option if not recognized
9144 # So say no if there are warnings
3725885a 9145 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
9146 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9147 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9148 lt_cv_prog_compiler_c_o=yes
9149 fi
9150 fi
9151 chmod u+w . 2>&5
9152 $RM conftest*
9153 # SGI C++ compiler will create directory out/ii_files/ for
9154 # template instantiation
9155 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9156 $RM out/* && rmdir out
9157 cd ..
9158 $RM -r conftest
9159 $RM conftest*
9160
9161fi
81ecdfbb
RW
9162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9163$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
ce2cded5
L
9164
9165
9166
9167
9168hard_links="nottested"
9169if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9170 # do not overwrite the value of need_locks provided by the user
81ecdfbb
RW
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9172$as_echo_n "checking if we can lock with hard links... " >&6; }
ce2cded5
L
9173 hard_links=yes
9174 $RM conftest*
9175 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9176 touch conftest.a
9177 ln conftest.a conftest.b 2>&5 || hard_links=no
9178 ln conftest.a conftest.b 2>/dev/null && hard_links=no
81ecdfbb
RW
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9180$as_echo "$hard_links" >&6; }
ce2cded5 9181 if test "$hard_links" = no; then
81ecdfbb
RW
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9183$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
ce2cded5 9184 need_locks=warn
d7040cdb 9185 fi
d7040cdb 9186else
ce2cded5 9187 need_locks=no
d7040cdb 9188fi
d7040cdb 9189
d7040cdb 9190
d7040cdb 9191
d7040cdb 9192
d7040cdb 9193
d7040cdb 9194
81ecdfbb
RW
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9196$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d7040cdb 9197
ce2cded5
L
9198 runpath_var=
9199 allow_undefined_flag=
9200 always_export_symbols=no
9201 archive_cmds=
9202 archive_expsym_cmds=
9203 compiler_needs_object=no
9204 enable_shared_with_static_runtimes=no
9205 export_dynamic_flag_spec=
9206 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9207 hardcode_automatic=no
9208 hardcode_direct=no
9209 hardcode_direct_absolute=no
9210 hardcode_libdir_flag_spec=
9211 hardcode_libdir_flag_spec_ld=
9212 hardcode_libdir_separator=
9213 hardcode_minus_L=no
9214 hardcode_shlibpath_var=unsupported
9215 inherit_rpath=no
9216 link_all_deplibs=unknown
9217 module_cmds=
9218 module_expsym_cmds=
9219 old_archive_from_new_cmds=
9220 old_archive_from_expsyms_cmds=
9221 thread_safe_flag_spec=
9222 whole_archive_flag_spec=
9223 # include_expsyms should be a list of space-separated symbols to be *always*
9224 # included in the symbol list
9225 include_expsyms=
9226 # exclude_expsyms can be an extended regexp of symbols to exclude
9227 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9228 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9229 # as well as any symbol that contains `d'.
b214d478 9230 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
ce2cded5
L
9231 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9232 # platforms (ab)use it in PIC code, but their linkers get confused if
9233 # the symbol is explicitly referenced. Since portable code cannot
9234 # rely on this symbol name, it's probably fine to never include it in
9235 # preloaded symbol tables.
b214d478 9236 # Exclude shared library initialization/finalization symbols.
ce2cded5 9237 extract_expsyms_cmds=
d7040cdb 9238
ce2cded5 9239 case $host_os in
b214d478 9240 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9241 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9242 # When not using gcc, we currently assume that we are using
9243 # Microsoft Visual C++.
9244 if test "$GCC" != yes; then
9245 with_gnu_ld=no
9246 fi
d7040cdb 9247 ;;
ce2cded5
L
9248 interix*)
9249 # we just hope/assume this is gcc and not c89 (= MSVC++)
9250 with_gnu_ld=yes
9251 ;;
9252 openbsd*)
9253 with_gnu_ld=no
d7040cdb
SE
9254 ;;
9255 esac
d7040cdb 9256
ce2cded5 9257 ld_shlibs=yes
3725885a
RW
9258
9259 # On some targets, GNU ld is compatible enough with the native linker
9260 # that we're better off using the native interface for both.
9261 lt_use_gnu_ld_interface=no
ce2cded5 9262 if test "$with_gnu_ld" = yes; then
3725885a
RW
9263 case $host_os in
9264 aix*)
9265 # The AIX port of GNU ld has always aspired to compatibility
9266 # with the native linker. However, as the warning in the GNU ld
9267 # block says, versions before 2.19.5* couldn't really create working
9268 # shared libraries, regardless of the interface used.
9269 case `$LD -v 2>&1` in
9270 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9271 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9272 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9273 *)
9274 lt_use_gnu_ld_interface=yes
9275 ;;
9276 esac
9277 ;;
9278 *)
9279 lt_use_gnu_ld_interface=yes
9280 ;;
9281 esac
9282 fi
9283
9284 if test "$lt_use_gnu_ld_interface" = yes; then
ce2cded5
L
9285 # If archive_cmds runs LD, not CC, wlarc should be empty
9286 wlarc='${wl}'
d7040cdb 9287
ce2cded5
L
9288 # Set some defaults for GNU ld with shared library support. These
9289 # are reset later if shared libraries are not supported. Putting them
9290 # here allows them to be overridden if necessary.
9291 runpath_var=LD_RUN_PATH
9292 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9293 export_dynamic_flag_spec='${wl}--export-dynamic'
9294 # ancient GNU ld didn't support --whole-archive et. al.
9295 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9296 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9297 else
9298 whole_archive_flag_spec=
9299 fi
9300 supports_anon_versioning=no
9301 case `$LD -v 2>&1` in
3725885a 9302 *GNU\ gold*) supports_anon_versioning=yes ;;
ce2cded5
L
9303 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9304 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9305 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9306 *\ 2.11.*) ;; # other 2.11 versions
9307 *) supports_anon_versioning=yes ;;
9308 esac
d7040cdb 9309
ce2cded5
L
9310 # See if GNU ld supports shared libraries.
9311 case $host_os in
50e7d84b 9312 aix[3-9]*)
ce2cded5
L
9313 # On AIX/PPC, the GNU linker is very broken
9314 if test "$host_cpu" != ia64; then
9315 ld_shlibs=no
9316 cat <<_LT_EOF 1>&2
d7040cdb 9317
3725885a 9318*** Warning: the GNU linker, at least up to release 2.19, is reported
ce2cded5
L
9319*** to be unable to reliably create shared libraries on AIX.
9320*** Therefore, libtool is disabling shared libraries support. If you
3725885a
RW
9321*** really care for shared libraries, you may want to install binutils
9322*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9323*** You will then need to restart the configuration process.
d7040cdb 9324
ce2cded5
L
9325_LT_EOF
9326 fi
d7040cdb 9327 ;;
d7040cdb 9328
ce2cded5 9329 amigaos*)
b214d478
SE
9330 case $host_cpu in
9331 powerpc)
9332 # see comment about AmigaOS4 .so support
9333 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9334 archive_expsym_cmds=''
9335 ;;
9336 m68k)
9337 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)'
9338 hardcode_libdir_flag_spec='-L$libdir'
9339 hardcode_minus_L=yes
9340 ;;
9341 esac
ce2cded5 9342 ;;
d7040cdb 9343
ce2cded5
L
9344 beos*)
9345 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9346 allow_undefined_flag=unsupported
9347 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9348 # support --undefined. This deserves some investigation. FIXME
9349 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9350 else
9351 ld_shlibs=no
9352 fi
9353 ;;
d7040cdb 9354
b214d478 9355 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9356 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9357 # as there is no search path for DLLs.
9358 hardcode_libdir_flag_spec='-L$libdir'
3725885a 9359 export_dynamic_flag_spec='${wl}--export-all-symbols'
ce2cded5
L
9360 allow_undefined_flag=unsupported
9361 always_export_symbols=no
9362 enable_shared_with_static_runtimes=yes
9363 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9364
9365 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9366 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9367 # If the export-symbols file already is a .def file (1st line
9368 # is EXPORTS), use it as is; otherwise, prepend...
9369 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9370 cp $export_symbols $output_objdir/$soname.def;
d7040cdb 9371 else
ce2cded5
L
9372 echo EXPORTS > $output_objdir/$soname.def;
9373 cat $export_symbols >> $output_objdir/$soname.def;
9374 fi~
9375 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9376 else
9377 ld_shlibs=no
9378 fi
9379 ;;
d7040cdb 9380
3725885a
RW
9381 haiku*)
9382 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9383 link_all_deplibs=yes
9384 ;;
9385
ce2cded5
L
9386 interix[3-9]*)
9387 hardcode_direct=no
9388 hardcode_shlibpath_var=no
9389 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9390 export_dynamic_flag_spec='${wl}-E'
9391 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9392 # Instead, shared libraries are loaded at an image base (0x10000000 by
9393 # default) and relocated if they conflict, which is a slow very memory
9394 # consuming and fragmenting process. To avoid this, we pick a random,
9395 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9396 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9397 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9398 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'
9399 ;;
d7040cdb 9400
58e24671 9401 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
9402 tmp_diet=no
9403 if test "$host_os" = linux-dietlibc; then
9404 case $cc_basename in
9405 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9406 esac
9407 fi
9408 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9409 && test "$tmp_diet" = no
9410 then
9411 tmp_addflag=
b214d478 9412 tmp_sharedflag='-shared'
ce2cded5
L
9413 case $cc_basename,$host_cpu in
9414 pgcc*) # Portland Group C compiler
3725885a 9415 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
9416 tmp_addflag=' $pic_flag'
9417 ;;
3725885a
RW
9418 pgf77* | pgf90* | pgf95* | pgfortran*)
9419 # Portland Group f77 and f90 compilers
9420 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
9421 tmp_addflag=' $pic_flag -Mnomain' ;;
9422 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9423 tmp_addflag=' -i_dynamic' ;;
9424 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9425 tmp_addflag=' -i_dynamic -nofor_main' ;;
9426 ifc* | ifort*) # Intel Fortran compiler
9427 tmp_addflag=' -nofor_main' ;;
b214d478
SE
9428 lf95*) # Lahey Fortran 8.1
9429 whole_archive_flag_spec=
9430 tmp_sharedflag='--shared' ;;
3725885a 9431 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
b214d478
SE
9432 tmp_sharedflag='-qmkshrobj'
9433 tmp_addflag= ;;
3725885a
RW
9434 nvcc*) # Cuda Compiler Driver 2.2
9435 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'
9436 compiler_needs_object=yes
9437 ;;
ce2cded5
L
9438 esac
9439 case `$CC -V 2>&1 | sed 5q` in
9440 *Sun\ C*) # Sun C 5.9
3725885a 9441 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
9442 compiler_needs_object=yes
9443 tmp_sharedflag='-G' ;;
9444 *Sun\ F*) # Sun Fortran 8.3
9445 tmp_sharedflag='-G' ;;
ce2cded5
L
9446 esac
9447 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 9448
ce2cded5
L
9449 if test "x$supports_anon_versioning" = xyes; then
9450 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9451 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9452 echo "local: *; };" >> $output_objdir/$libname.ver~
9453 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9454 fi
b214d478
SE
9455
9456 case $cc_basename in
3725885a 9457 xlf* | bgf* | bgxlf* | mpixlf*)
b214d478
SE
9458 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9459 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9460 hardcode_libdir_flag_spec=
9461 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9462 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9463 if test "x$supports_anon_versioning" = xyes; then
9464 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9465 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9466 echo "local: *; };" >> $output_objdir/$libname.ver~
9467 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9468 fi
9469 ;;
9470 esac
ce2cded5
L
9471 else
9472 ld_shlibs=no
9473 fi
9474 ;;
d7040cdb 9475
ce2cded5
L
9476 netbsd*)
9477 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9478 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9479 wlarc=
9480 else
9481 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9482 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9483 fi
9484 ;;
9485
9486 solaris*)
9487 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9488 ld_shlibs=no
9489 cat <<_LT_EOF 1>&2
9490
9491*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9492*** create shared libraries on Solaris systems. Therefore, libtool
9493*** is disabling shared libraries support. We urge you to upgrade GNU
9494*** binutils to release 2.9.1 or newer. Another option is to modify
9495*** your PATH or compiler configuration so that the native linker is
9496*** used, and then restart.
9497
9498_LT_EOF
9499 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9500 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9501 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9502 else
9503 ld_shlibs=no
9504 fi
9505 ;;
9506
9507 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9508 case `$LD -v 2>&1` in
9509 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9510 ld_shlibs=no
9511 cat <<_LT_EOF 1>&2
9512
9513*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9514*** reliably create shared libraries on SCO systems. Therefore, libtool
9515*** is disabling shared libraries support. We urge you to upgrade GNU
9516*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9517*** your PATH or compiler configuration so that the native linker is
9518*** used, and then restart.
9519
9520_LT_EOF
9521 ;;
9522 *)
9523 # For security reasons, it is highly recommended that you always
9524 # use absolute paths for naming shared libraries, and exclude the
9525 # DT_RUNPATH tag from executables and libraries. But doing so
9526 # requires that you compile everything twice, which is a pain.
9527 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9528 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9529 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9530 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9531 else
9532 ld_shlibs=no
9533 fi
9534 ;;
9535 esac
9536 ;;
9537
9538 sunos4*)
9539 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9540 wlarc=
9541 hardcode_direct=yes
9542 hardcode_shlibpath_var=no
9543 ;;
9544
9545 *)
9546 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9547 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9548 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9549 else
9550 ld_shlibs=no
9551 fi
9552 ;;
9553 esac
9554
9555 if test "$ld_shlibs" = no; then
9556 runpath_var=
9557 hardcode_libdir_flag_spec=
9558 export_dynamic_flag_spec=
9559 whole_archive_flag_spec=
9560 fi
9561 else
9562 # PORTME fill in a description of your system's linker (not GNU ld)
9563 case $host_os in
9564 aix3*)
9565 allow_undefined_flag=unsupported
9566 always_export_symbols=yes
9567 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'
9568 # Note: this linker hardcodes the directories in LIBPATH if there
9569 # are no directories specified by -L.
9570 hardcode_minus_L=yes
9571 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9572 # Neither direct hardcoding nor static linking is supported with a
9573 # broken collect2.
9574 hardcode_direct=unsupported
9575 fi
9576 ;;
9577
50e7d84b 9578 aix[4-9]*)
ce2cded5
L
9579 if test "$host_cpu" = ia64; then
9580 # On IA64, the linker does run time linking by default, so we don't
9581 # have to do anything special.
9582 aix_use_runtimelinking=no
9583 exp_sym_flag='-Bexport'
9584 no_entry_flag=""
9585 else
9586 # If we're using GNU nm, then we don't want the "-C" option.
9587 # -C means demangle to AIX nm, but means don't demangle with GNU nm
3725885a
RW
9588 # Also, AIX nm treats weak defined symbols like other global
9589 # defined symbols, whereas GNU nm marks them as "W".
ce2cded5 9590 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
3725885a 9591 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
9592 else
9593 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'
9594 fi
9595 aix_use_runtimelinking=no
9596
9597 # Test if we are trying to use run time linking or normal
9598 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9599 # need to do runtime linking.
50e7d84b 9600 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
ce2cded5
L
9601 for ld_flag in $LDFLAGS; do
9602 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9603 aix_use_runtimelinking=yes
9604 break
9605 fi
9606 done
9607 ;;
9608 esac
9609
9610 exp_sym_flag='-bexport'
9611 no_entry_flag='-bnoentry'
9612 fi
9613
9614 # When large executables or shared objects are built, AIX ld can
9615 # have problems creating the table of contents. If linking a library
9616 # or program results in "error TOC overflow" add -mminimal-toc to
9617 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9618 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9619
9620 archive_cmds=''
9621 hardcode_direct=yes
9622 hardcode_direct_absolute=yes
9623 hardcode_libdir_separator=':'
9624 link_all_deplibs=yes
9625 file_list_spec='${wl}-f,'
9626
9627 if test "$GCC" = yes; then
9628 case $host_os in aix4.[012]|aix4.[012].*)
9629 # We only want to do this on AIX 4.2 and lower, the check
9630 # below for broken collect2 doesn't work under 4.3+
9631 collect2name=`${CC} -print-prog-name=collect2`
9632 if test -f "$collect2name" &&
9633 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9634 then
9635 # We have reworked collect2
9636 :
9637 else
9638 # We have old collect2
9639 hardcode_direct=unsupported
9640 # It fails to find uninstalled libraries when the uninstalled
9641 # path is not listed in the libpath. Setting hardcode_minus_L
9642 # to unsupported forces relinking
9643 hardcode_minus_L=yes
9644 hardcode_libdir_flag_spec='-L$libdir'
9645 hardcode_libdir_separator=
9646 fi
9647 ;;
9648 esac
9649 shared_flag='-shared'
9650 if test "$aix_use_runtimelinking" = yes; then
9651 shared_flag="$shared_flag "'${wl}-G'
9652 fi
9653 else
9654 # not using gcc
9655 if test "$host_cpu" = ia64; then
9656 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9657 # chokes on -Wl,-G. The following line is correct:
9658 shared_flag='-G'
9659 else
9660 if test "$aix_use_runtimelinking" = yes; then
9661 shared_flag='${wl}-G'
9662 else
9663 shared_flag='${wl}-bM:SRE'
9664 fi
9665 fi
9666 fi
9667
b214d478 9668 export_dynamic_flag_spec='${wl}-bexpall'
ce2cded5
L
9669 # It seems that -bexpall does not export symbols beginning with
9670 # underscore (_), so it is better to generate a list of symbols to export.
9671 always_export_symbols=yes
9672 if test "$aix_use_runtimelinking" = yes; then
9673 # Warning - without using the other runtime loading flags (-brtl),
9674 # -berok will link without error, but may produce a broken library.
9675 allow_undefined_flag='-berok'
9676 # Determine the default libpath from the value encoded in an
9677 # empty executable.
81ecdfbb 9678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
9679/* end confdefs.h. */
9680
9681int
9682main ()
9683{
9684
9685 ;
9686 return 0;
9687}
9688_ACEOF
81ecdfbb 9689if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9690
ce2cded5
L
9691lt_aix_libpath_sed='
9692 /Import File Strings/,/^$/ {
9693 /^0/ {
9694 s/^0 *\(.*\)$/\1/
9695 p
9696 }
9697 }'
9698aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9699# Check for a 64-bit object if we didn't find anything.
9700if test -z "$aix_libpath"; then
9701 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9702fi
d7040cdb 9703fi
81ecdfbb
RW
9704rm -f core conftest.err conftest.$ac_objext \
9705 conftest$ac_exeext conftest.$ac_ext
ce2cded5 9706if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9707
ce2cded5 9708 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
3725885a 9709 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
9710 else
9711 if test "$host_cpu" = ia64; then
9712 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9713 allow_undefined_flag="-z nodefs"
9714 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"
9715 else
9716 # Determine the default libpath from the value encoded in an
9717 # empty executable.
81ecdfbb 9718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 9719/* end confdefs.h. */
d7040cdb 9720
ce2cded5
L
9721int
9722main ()
9723{
d7040cdb 9724
ce2cded5
L
9725 ;
9726 return 0;
9727}
9728_ACEOF
81ecdfbb 9729if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9730
ce2cded5
L
9731lt_aix_libpath_sed='
9732 /Import File Strings/,/^$/ {
9733 /^0/ {
9734 s/^0 *\(.*\)$/\1/
9735 p
9736 }
9737 }'
9738aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9739# Check for a 64-bit object if we didn't find anything.
9740if test -z "$aix_libpath"; then
9741 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9742fi
ce2cded5 9743fi
81ecdfbb
RW
9744rm -f core conftest.err conftest.$ac_objext \
9745 conftest$ac_exeext conftest.$ac_ext
ce2cded5 9746if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9747
ce2cded5
L
9748 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9749 # Warning - without using the other run time loading flags,
9750 # -berok will link without error, but may produce a broken library.
9751 no_undefined_flag=' ${wl}-bernotok'
9752 allow_undefined_flag=' ${wl}-berok'
3725885a
RW
9753 if test "$with_gnu_ld" = yes; then
9754 # We only use this code for GNU lds that support --whole-archive.
9755 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9756 else
9757 # Exported symbols can be pulled into shared objects from archives
9758 whole_archive_flag_spec='$convenience'
9759 fi
ce2cded5
L
9760 archive_cmds_need_lc=yes
9761 # This is similar to how AIX traditionally builds its shared libraries.
9762 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'
9763 fi
9764 fi
9765 ;;
d7040cdb 9766
ce2cded5 9767 amigaos*)
b214d478
SE
9768 case $host_cpu in
9769 powerpc)
9770 # see comment about AmigaOS4 .so support
9771 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9772 archive_expsym_cmds=''
9773 ;;
9774 m68k)
9775 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)'
9776 hardcode_libdir_flag_spec='-L$libdir'
9777 hardcode_minus_L=yes
9778 ;;
9779 esac
ce2cded5
L
9780 ;;
9781
9782 bsdi[45]*)
9783 export_dynamic_flag_spec=-rdynamic
9784 ;;
9785
b214d478 9786 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9787 # When not using gcc, we currently assume that we are using
9788 # Microsoft Visual C++.
9789 # hardcode_libdir_flag_spec is actually meaningless, as there is
9790 # no search path for DLLs.
9791 hardcode_libdir_flag_spec=' '
9792 allow_undefined_flag=unsupported
9793 # Tell ltmain to make .lib files, not .a files.
9794 libext=lib
9795 # Tell ltmain to make .dll files, not .so files.
9796 shrext_cmds=".dll"
9797 # FIXME: Setting linknames here is a bad hack.
3725885a 9798 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
ce2cded5
L
9799 # The linker will automatically build a .lib file if we build a DLL.
9800 old_archive_from_new_cmds='true'
9801 # FIXME: Should let the user specify the lib program.
9802 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9803 fix_srcfile_path='`cygpath -w "$srcfile"`'
9804 enable_shared_with_static_runtimes=yes
9805 ;;
9806
9807 darwin* | rhapsody*)
d7040cdb 9808
b214d478
SE
9809
9810 archive_cmds_need_lc=no
9811 hardcode_direct=no
9812 hardcode_automatic=yes
9813 hardcode_shlibpath_var=unsupported
3725885a
RW
9814 if test "$lt_cv_ld_force_load" = "yes"; then
9815 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\"`'
9816 else
9817 whole_archive_flag_spec=''
9818 fi
b214d478
SE
9819 link_all_deplibs=yes
9820 allow_undefined_flag="$_lt_dar_allow_undefined"
9821 case $cc_basename in
9822 ifort*) _lt_dar_can_shared=yes ;;
9823 *) _lt_dar_can_shared=$GCC ;;
9824 esac
9825 if test "$_lt_dar_can_shared" = "yes"; then
3725885a 9826 output_verbose_link_cmd=func_echo_all
b214d478
SE
9827 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9828 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9829 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}"
9830 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}"
9831
9832 else
9833 ld_shlibs=no
9834 fi
9835
ce2cded5 9836 ;;
d7040cdb 9837
ce2cded5
L
9838 dgux*)
9839 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9840 hardcode_libdir_flag_spec='-L$libdir'
9841 hardcode_shlibpath_var=no
9842 ;;
d7040cdb 9843
ce2cded5
L
9844 freebsd1*)
9845 ld_shlibs=no
9846 ;;
d7040cdb 9847
ce2cded5
L
9848 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9849 # support. Future versions do this automatically, but an explicit c++rt0.o
9850 # does not break anything, and helps significantly (at the cost of a little
9851 # extra space).
9852 freebsd2.2*)
9853 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9854 hardcode_libdir_flag_spec='-R$libdir'
9855 hardcode_direct=yes
9856 hardcode_shlibpath_var=no
d7040cdb 9857 ;;
d7040cdb 9858
ce2cded5
L
9859 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9860 freebsd2*)
9861 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9862 hardcode_direct=yes
9863 hardcode_minus_L=yes
9864 hardcode_shlibpath_var=no
9865 ;;
d7040cdb 9866
ce2cded5
L
9867 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9868 freebsd* | dragonfly*)
9869 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9870 hardcode_libdir_flag_spec='-R$libdir'
9871 hardcode_direct=yes
9872 hardcode_shlibpath_var=no
9873 ;;
d7040cdb 9874
ce2cded5
L
9875 hpux9*)
9876 if test "$GCC" = yes; then
9877 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'
9878 else
9879 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'
9880 fi
9881 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9882 hardcode_libdir_separator=:
9883 hardcode_direct=yes
d7040cdb 9884
ce2cded5
L
9885 # hardcode_minus_L: Not really in the search PATH,
9886 # but as the default location of the library.
9887 hardcode_minus_L=yes
9888 export_dynamic_flag_spec='${wl}-E'
9889 ;;
d7040cdb 9890
ce2cded5 9891 hpux10*)
3725885a 9892 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
ce2cded5
L
9893 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9894 else
9895 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9896 fi
9897 if test "$with_gnu_ld" = no; then
9898 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9899 hardcode_libdir_flag_spec_ld='+b $libdir'
9900 hardcode_libdir_separator=:
9901 hardcode_direct=yes
9902 hardcode_direct_absolute=yes
9903 export_dynamic_flag_spec='${wl}-E'
9904 # hardcode_minus_L: Not really in the search PATH,
9905 # but as the default location of the library.
9906 hardcode_minus_L=yes
9907 fi
9908 ;;
d7040cdb 9909
ce2cded5 9910 hpux11*)
3725885a 9911 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
ce2cded5
L
9912 case $host_cpu in
9913 hppa*64*)
9914 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9915 ;;
9916 ia64*)
b214d478 9917 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
9918 ;;
9919 *)
9920 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9921 ;;
9922 esac
9923 else
9924 case $host_cpu in
9925 hppa*64*)
9926 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9927 ;;
9928 ia64*)
9929 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9930 ;;
9931 *)
3725885a
RW
9932
9933 # Older versions of the 11.00 compiler do not understand -b yet
9934 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9936$as_echo_n "checking if $CC understands -b... " >&6; }
9937if test "${lt_cv_prog_compiler__b+set}" = set; then :
9938 $as_echo_n "(cached) " >&6
9939else
9940 lt_cv_prog_compiler__b=no
9941 save_LDFLAGS="$LDFLAGS"
9942 LDFLAGS="$LDFLAGS -b"
9943 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9944 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9945 # The linker can only warn and ignore the option if not recognized
9946 # So say no if there are warnings
9947 if test -s conftest.err; then
9948 # Append any errors to the config.log.
9949 cat conftest.err 1>&5
9950 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9951 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9952 if diff conftest.exp conftest.er2 >/dev/null; then
9953 lt_cv_prog_compiler__b=yes
9954 fi
9955 else
9956 lt_cv_prog_compiler__b=yes
9957 fi
9958 fi
9959 $RM -r conftest*
9960 LDFLAGS="$save_LDFLAGS"
9961
9962fi
9963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9964$as_echo "$lt_cv_prog_compiler__b" >&6; }
9965
9966if test x"$lt_cv_prog_compiler__b" = xyes; then
9967 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9968else
9969 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9970fi
9971
ce2cded5
L
9972 ;;
9973 esac
9974 fi
9975 if test "$with_gnu_ld" = no; then
9976 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9977 hardcode_libdir_separator=:
d7040cdb 9978
ce2cded5
L
9979 case $host_cpu in
9980 hppa*64*|ia64*)
9981 hardcode_direct=no
9982 hardcode_shlibpath_var=no
9983 ;;
9984 *)
9985 hardcode_direct=yes
9986 hardcode_direct_absolute=yes
9987 export_dynamic_flag_spec='${wl}-E'
d7040cdb 9988
ce2cded5
L
9989 # hardcode_minus_L: Not really in the search PATH,
9990 # but as the default location of the library.
9991 hardcode_minus_L=yes
9992 ;;
9993 esac
9994 fi
9995 ;;
d7040cdb 9996
ce2cded5
L
9997 irix5* | irix6* | nonstopux*)
9998 if test "$GCC" = yes; then
3725885a 9999 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
10000 # Try to use the -exported_symbol ld option, if it does not
10001 # work, assume that -exports_file does not work either and
10002 # implicitly export all symbols.
10003 save_LDFLAGS="$LDFLAGS"
10004 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
81ecdfbb
RW
10005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10006/* end confdefs.h. */
ce2cded5
L
10007int foo(void) {}
10008_ACEOF
81ecdfbb 10009if ac_fn_c_try_link "$LINENO"; then :
3725885a 10010 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 10011
ce2cded5 10012fi
81ecdfbb
RW
10013rm -f core conftest.err conftest.$ac_objext \
10014 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
10015 LDFLAGS="$save_LDFLAGS"
10016 else
3725885a
RW
10017 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'
10018 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
10019 fi
10020 archive_cmds_need_lc='no'
10021 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10022 hardcode_libdir_separator=:
10023 inherit_rpath=yes
10024 link_all_deplibs=yes
10025 ;;
d7040cdb 10026
ce2cded5
L
10027 netbsd*)
10028 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10029 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10030 else
10031 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10032 fi
10033 hardcode_libdir_flag_spec='-R$libdir'
10034 hardcode_direct=yes
10035 hardcode_shlibpath_var=no
10036 ;;
d7040cdb 10037
ce2cded5
L
10038 newsos6)
10039 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10040 hardcode_direct=yes
10041 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10042 hardcode_libdir_separator=:
10043 hardcode_shlibpath_var=no
10044 ;;
d7040cdb 10045
ce2cded5
L
10046 *nto* | *qnx*)
10047 ;;
d7040cdb 10048
ce2cded5 10049 openbsd*)
b214d478
SE
10050 if test -f /usr/libexec/ld.so; then
10051 hardcode_direct=yes
10052 hardcode_shlibpath_var=no
10053 hardcode_direct_absolute=yes
10054 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
ce2cded5 10055 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
b214d478 10056 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
ce2cded5 10057 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
b214d478
SE
10058 export_dynamic_flag_spec='${wl}-E'
10059 else
10060 case $host_os in
10061 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10062 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10063 hardcode_libdir_flag_spec='-R$libdir'
10064 ;;
10065 *)
10066 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10067 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10068 ;;
10069 esac
10070 fi
10071 else
10072 ld_shlibs=no
ce2cded5
L
10073 fi
10074 ;;
d7040cdb 10075
ce2cded5
L
10076 os2*)
10077 hardcode_libdir_flag_spec='-L$libdir'
10078 hardcode_minus_L=yes
10079 allow_undefined_flag=unsupported
3725885a 10080 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
10081 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10082 ;;
d7040cdb 10083
ce2cded5
L
10084 osf3*)
10085 if test "$GCC" = yes; then
10086 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 10087 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
10088 else
10089 allow_undefined_flag=' -expect_unresolved \*'
3725885a 10090 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
10091 fi
10092 archive_cmds_need_lc='no'
10093 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10094 hardcode_libdir_separator=:
10095 ;;
d7040cdb 10096
ce2cded5
L
10097 osf4* | osf5*) # as osf3* with the addition of -msym flag
10098 if test "$GCC" = yes; then
10099 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 10100 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
10101 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10102 else
10103 allow_undefined_flag=' -expect_unresolved \*'
3725885a 10104 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 10105 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 10106 $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 10107
ce2cded5
L
10108 # Both c and cxx compiler support -rpath directly
10109 hardcode_libdir_flag_spec='-rpath $libdir'
10110 fi
10111 archive_cmds_need_lc='no'
10112 hardcode_libdir_separator=:
10113 ;;
d7040cdb 10114
ce2cded5
L
10115 solaris*)
10116 no_undefined_flag=' -z defs'
10117 if test "$GCC" = yes; then
10118 wlarc='${wl}'
10119 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10120 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10121 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10122 else
10123 case `$CC -V 2>&1` in
10124 *"Compilers 5.0"*)
10125 wlarc=''
10126 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10127 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10128 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10129 ;;
10130 *)
10131 wlarc='${wl}'
10132 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10133 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10134 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10135 ;;
10136 esac
10137 fi
10138 hardcode_libdir_flag_spec='-R$libdir'
10139 hardcode_shlibpath_var=no
10140 case $host_os in
10141 solaris2.[0-5] | solaris2.[0-5].*) ;;
10142 *)
10143 # The compiler driver will combine and reorder linker options,
10144 # but understands `-z linker_flag'. GCC discards it without `$wl',
10145 # but is careful enough not to reorder.
10146 # Supported since Solaris 2.6 (maybe 2.5.1?)
10147 if test "$GCC" = yes; then
10148 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10149 else
10150 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10151 fi
10152 ;;
10153 esac
10154 link_all_deplibs=yes
10155 ;;
d7040cdb 10156
ce2cded5
L
10157 sunos4*)
10158 if test "x$host_vendor" = xsequent; then
10159 # Use $CC to link under sequent, because it throws in some extra .o
10160 # files that make .init and .fini sections work.
10161 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10162 else
10163 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10164 fi
10165 hardcode_libdir_flag_spec='-L$libdir'
10166 hardcode_direct=yes
10167 hardcode_minus_L=yes
10168 hardcode_shlibpath_var=no
10169 ;;
d7040cdb 10170
ce2cded5
L
10171 sysv4)
10172 case $host_vendor in
10173 sni)
10174 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10175 hardcode_direct=yes # is this really true???
10176 ;;
10177 siemens)
10178 ## LD is ld it makes a PLAMLIB
10179 ## CC just makes a GrossModule.
10180 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10181 reload_cmds='$CC -r -o $output$reload_objs'
10182 hardcode_direct=no
10183 ;;
10184 motorola)
10185 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10186 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10187 ;;
10188 esac
10189 runpath_var='LD_RUN_PATH'
10190 hardcode_shlibpath_var=no
10191 ;;
d7040cdb 10192
ce2cded5
L
10193 sysv4.3*)
10194 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10195 hardcode_shlibpath_var=no
10196 export_dynamic_flag_spec='-Bexport'
10197 ;;
d7040cdb 10198
ce2cded5
L
10199 sysv4*MP*)
10200 if test -d /usr/nec; then
10201 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10202 hardcode_shlibpath_var=no
10203 runpath_var=LD_RUN_PATH
10204 hardcode_runpath_var=yes
10205 ld_shlibs=yes
10206 fi
10207 ;;
d7040cdb 10208
ce2cded5
L
10209 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10210 no_undefined_flag='${wl}-z,text'
10211 archive_cmds_need_lc=no
10212 hardcode_shlibpath_var=no
10213 runpath_var='LD_RUN_PATH'
d7040cdb 10214
ce2cded5
L
10215 if test "$GCC" = yes; then
10216 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10217 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10218 else
10219 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10220 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10221 fi
10222 ;;
d7040cdb 10223
ce2cded5
L
10224 sysv5* | sco3.2v5* | sco5v6*)
10225 # Note: We can NOT use -z defs as we might desire, because we do not
10226 # link with -lc, and that would cause any symbols used from libc to
10227 # always be unresolved, which means just about no library would
10228 # ever link correctly. If we're not using GNU ld we use -z text
10229 # though, which does catch some bad symbols but isn't as heavy-handed
10230 # as -z defs.
10231 no_undefined_flag='${wl}-z,text'
10232 allow_undefined_flag='${wl}-z,nodefs'
10233 archive_cmds_need_lc=no
10234 hardcode_shlibpath_var=no
10235 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10236 hardcode_libdir_separator=':'
10237 link_all_deplibs=yes
10238 export_dynamic_flag_spec='${wl}-Bexport'
10239 runpath_var='LD_RUN_PATH'
d7040cdb 10240
ce2cded5
L
10241 if test "$GCC" = yes; then
10242 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10243 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10244 else
10245 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10246 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10247 fi
10248 ;;
d7040cdb 10249
ce2cded5
L
10250 uts4*)
10251 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10252 hardcode_libdir_flag_spec='-L$libdir'
10253 hardcode_shlibpath_var=no
10254 ;;
d7040cdb 10255
ce2cded5
L
10256 *)
10257 ld_shlibs=no
10258 ;;
10259 esac
d7040cdb 10260
ce2cded5
L
10261 if test x$host_vendor = xsni; then
10262 case $host in
10263 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10264 export_dynamic_flag_spec='${wl}-Blargedynsym'
10265 ;;
10266 esac
10267 fi
10268 fi
d7040cdb 10269
81ecdfbb
RW
10270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10271$as_echo "$ld_shlibs" >&6; }
ce2cded5 10272test "$ld_shlibs" = no && can_build_shared=no
d7040cdb 10273
ce2cded5 10274with_gnu_ld=$with_gnu_ld
d7040cdb
SE
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
ce2cded5
L
10290#
10291# Do we need to explicitly link libc?
10292#
10293case "x$archive_cmds_need_lc" in
10294x|xyes)
10295 # Assume -lc should be added
10296 archive_cmds_need_lc=yes
d7040cdb 10297
ce2cded5
L
10298 if test "$enable_shared" = yes && test "$GCC" = yes; then
10299 case $archive_cmds in
10300 *'~'*)
10301 # FIXME: we may have to deal with multi-command sequences.
10302 ;;
10303 '$CC '*)
10304 # Test whether the compiler implicitly links with -lc since on some
10305 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10306 # to ld, don't add -lc before -lgcc.
81ecdfbb
RW
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10308$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10309if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10310 $as_echo_n "(cached) " >&6
39144654
RW
10311else
10312 $RM conftest*
10313 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 10314
81ecdfbb 10315 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
ce2cded5
L
10316 (eval $ac_compile) 2>&5
10317 ac_status=$?
81ecdfbb
RW
10318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10319 test $ac_status = 0; } 2>conftest.err; then
39144654
RW
10320 soname=conftest
10321 lib=conftest
10322 libobjs=conftest.$ac_objext
10323 deplibs=
10324 wl=$lt_prog_compiler_wl
10325 pic_flag=$lt_prog_compiler_pic
10326 compiler_flags=-v
10327 linker_flags=-v
10328 verstring=
10329 output_objdir=.
10330 libname=conftest
10331 lt_save_allow_undefined_flag=$allow_undefined_flag
10332 allow_undefined_flag=
81ecdfbb 10333 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
ce2cded5
L
10334 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10335 ac_status=$?
81ecdfbb
RW
10336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10337 test $ac_status = 0; }
39144654
RW
10338 then
10339 lt_cv_archive_cmds_need_lc=no
10340 else
10341 lt_cv_archive_cmds_need_lc=yes
10342 fi
10343 allow_undefined_flag=$lt_save_allow_undefined_flag
10344 else
10345 cat conftest.err 1>&5
10346 fi
10347 $RM conftest*
10348
10349fi
81ecdfbb
RW
10350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10351$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
39144654 10352 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
ce2cded5
L
10353 ;;
10354 esac
10355 fi
10356 ;;
10357esac
d7040cdb
SE
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
d7040cdb 10385
d7040cdb 10386
d7040cdb
SE
10387
10388
10389
10390
10391
10392
d7040cdb 10393
d7040cdb 10394
d7040cdb 10395
d7040cdb 10396
d7040cdb 10397
d7040cdb 10398
d7040cdb 10399
d7040cdb 10400
d7040cdb 10401
d7040cdb 10402
d7040cdb 10403
d7040cdb 10404
d7040cdb 10405
d7040cdb 10406
d7040cdb 10407
d7040cdb 10408
d7040cdb 10409
d7040cdb 10410
d7040cdb 10411
d7040cdb 10412
d7040cdb 10413
d7040cdb 10414
d7040cdb 10415
d7040cdb 10416
d7040cdb 10417
d7040cdb 10418
d7040cdb 10419
d7040cdb 10420
ce2cded5
L
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
81ecdfbb
RW
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10516$as_echo_n "checking dynamic linker characteristics... " >&6; }
b214d478
SE
10517
10518if test "$GCC" = yes; then
ce2cded5
L
10519 case $host_os in
10520 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10521 *) lt_awk_arg="/^libraries:/" ;;
10522 esac
3725885a
RW
10523 case $host_os in
10524 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10525 *) lt_sed_strip_eq="s,=/,/,g" ;;
10526 esac
10527 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10528 case $lt_search_path_spec in
10529 *\;*)
ce2cded5
L
10530 # if the path contains ";" then we assume it to be the separator
10531 # otherwise default to the standard path separator (i.e. ":") - it is
10532 # assumed that no part of a normal pathname contains ";" but that should
10533 # okay in the real world where ";" in dirpaths is itself problematic.
3725885a
RW
10534 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10535 ;;
10536 *)
10537 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10538 ;;
10539 esac
ce2cded5
L
10540 # Ok, now we have the path, separated by spaces, we can step through it
10541 # and add multilib dir if necessary.
10542 lt_tmp_lt_search_path_spec=
10543 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10544 for lt_sys_path in $lt_search_path_spec; do
10545 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10546 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10547 else
10548 test -d "$lt_sys_path" && \
10549 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10550 fi
10551 done
3725885a 10552 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
ce2cded5
L
10553BEGIN {RS=" "; FS="/|\n";} {
10554 lt_foo="";
10555 lt_count=0;
10556 for (lt_i = NF; lt_i > 0; lt_i--) {
10557 if ($lt_i != "" && $lt_i != ".") {
10558 if ($lt_i == "..") {
10559 lt_count++;
10560 } else {
10561 if (lt_count == 0) {
10562 lt_foo="/" $lt_i lt_foo;
10563 } else {
10564 lt_count--;
10565 }
10566 }
10567 }
10568 }
10569 if (lt_foo != "") { lt_freq[lt_foo]++; }
10570 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10571}'`
3725885a
RW
10572 # AWK program above erroneously prepends '/' to C:/dos/paths
10573 # for these hosts.
10574 case $host_os in
10575 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10576 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10577 esac
10578 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
d7040cdb 10579else
ce2cded5
L
10580 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10581fi
10582library_names_spec=
10583libname_spec='lib$name'
10584soname_spec=
10585shrext_cmds=".so"
10586postinstall_cmds=
10587postuninstall_cmds=
10588finish_cmds=
10589finish_eval=
10590shlibpath_var=
10591shlibpath_overrides_runpath=unknown
10592version_type=none
10593dynamic_linker="$host_os ld.so"
10594sys_lib_dlsearch_path_spec="/lib /usr/lib"
10595need_lib_prefix=unknown
10596hardcode_into_libs=no
10597
10598# when you set need_version to no, make sure it does not cause -set_version
10599# flags to be left without arguments
10600need_version=unknown
10601
10602case $host_os in
10603aix3*)
10604 version_type=linux
10605 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10606 shlibpath_var=LIBPATH
10607
10608 # AIX 3 has no versioning support, so we append a major version to the name.
10609 soname_spec='${libname}${release}${shared_ext}$major'
10610 ;;
10611
50e7d84b 10612aix[4-9]*)
ce2cded5
L
10613 version_type=linux
10614 need_lib_prefix=no
10615 need_version=no
10616 hardcode_into_libs=yes
10617 if test "$host_cpu" = ia64; then
10618 # AIX 5 supports IA64
10619 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10620 shlibpath_var=LD_LIBRARY_PATH
10621 else
10622 # With GCC up to 2.95.x, collect2 would create an import file
10623 # for dependence libraries. The import file would start with
10624 # the line `#! .'. This would cause the generated library to
10625 # depend on `.', always an invalid library. This was fixed in
10626 # development snapshots of GCC prior to 3.0.
10627 case $host_os in
10628 aix4 | aix4.[01] | aix4.[01].*)
10629 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10630 echo ' yes '
10631 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10632 :
10633 else
10634 can_build_shared=no
10635 fi
10636 ;;
10637 esac
10638 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10639 # soname into executable. Probably we can add versioning support to
10640 # collect2, so additional links can be useful in future.
10641 if test "$aix_use_runtimelinking" = yes; then
10642 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10643 # instead of lib<name>.a to let people know that these are not
10644 # typical AIX shared libraries.
10645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10646 else
10647 # We preserve .a as extension for shared libraries through AIX4.2
10648 # and later when we are not doing run time linking.
10649 library_names_spec='${libname}${release}.a $libname.a'
10650 soname_spec='${libname}${release}${shared_ext}$major'
10651 fi
10652 shlibpath_var=LIBPATH
10653 fi
10654 ;;
10655
10656amigaos*)
b214d478
SE
10657 case $host_cpu in
10658 powerpc)
10659 # Since July 2007 AmigaOS4 officially supports .so libraries.
10660 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10662 ;;
10663 m68k)
ce2cded5
L
10664 library_names_spec='$libname.ixlibrary $libname.a'
10665 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3725885a 10666 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
10667 ;;
10668 esac
ce2cded5
L
10669 ;;
10670
10671beos*)
10672 library_names_spec='${libname}${shared_ext}'
10673 dynamic_linker="$host_os ld.so"
10674 shlibpath_var=LIBRARY_PATH
10675 ;;
10676
10677bsdi[45]*)
10678 version_type=linux
10679 need_version=no
10680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10681 soname_spec='${libname}${release}${shared_ext}$major'
10682 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10683 shlibpath_var=LD_LIBRARY_PATH
10684 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10685 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10686 # the default ld.so.conf also contains /usr/contrib/lib and
10687 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10688 # libtool to hard-code these into programs
10689 ;;
10690
b214d478 10691cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
10692 version_type=windows
10693 shrext_cmds=".dll"
10694 need_version=no
10695 need_lib_prefix=no
10696
b214d478
SE
10697 case $GCC,$host_os in
10698 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
ce2cded5
L
10699 library_names_spec='$libname.dll.a'
10700 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10701 postinstall_cmds='base_file=`basename \${file}`~
10702 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10703 dldir=$destdir/`dirname \$dlpath`~
10704 test -d \$dldir || mkdir -p \$dldir~
10705 $install_prog $dir/$dlname \$dldir/$dlname~
10706 chmod a+x \$dldir/$dlname~
10707 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10708 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10709 fi'
10710 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10711 dlpath=$dir/\$dldll~
10712 $RM \$dlpath'
10713 shlibpath_overrides_runpath=yes
10714
10715 case $host_os in
10716 cygwin*)
10717 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10718 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
3725885a
RW
10719
10720 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
ce2cded5 10721 ;;
b214d478 10722 mingw* | cegcc*)
ce2cded5
L
10723 # MinGW DLLs use traditional 'lib' prefix
10724 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
ce2cded5
L
10725 ;;
10726 pw32*)
10727 # pw32 DLLs use 'pw' prefix rather than 'lib'
10728 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10729 ;;
10730 esac
10731 ;;
10732
10733 *)
10734 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10735 ;;
10736 esac
10737 dynamic_linker='Win32 ld.exe'
10738 # FIXME: first we should search . and the directory the executable is in
10739 shlibpath_var=PATH
10740 ;;
10741
10742darwin* | rhapsody*)
10743 dynamic_linker="$host_os dyld"
10744 version_type=darwin
10745 need_lib_prefix=no
10746 need_version=no
10747 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10748 soname_spec='${libname}${release}${major}$shared_ext'
10749 shlibpath_overrides_runpath=yes
10750 shlibpath_var=DYLD_LIBRARY_PATH
10751 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10752
10753 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10754 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10755 ;;
10756
10757dgux*)
10758 version_type=linux
10759 need_lib_prefix=no
10760 need_version=no
10761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10762 soname_spec='${libname}${release}${shared_ext}$major'
10763 shlibpath_var=LD_LIBRARY_PATH
10764 ;;
10765
10766freebsd1*)
10767 dynamic_linker=no
10768 ;;
10769
10770freebsd* | dragonfly*)
10771 # DragonFly does not have aout. When/if they implement a new
10772 # versioning mechanism, adjust this.
10773 if test -x /usr/bin/objformat; then
10774 objformat=`/usr/bin/objformat`
10775 else
10776 case $host_os in
10777 freebsd[123]*) objformat=aout ;;
10778 *) objformat=elf ;;
10779 esac
10780 fi
10781 version_type=freebsd-$objformat
10782 case $version_type in
10783 freebsd-elf*)
10784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10785 need_version=no
10786 need_lib_prefix=no
10787 ;;
10788 freebsd-*)
10789 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10790 need_version=yes
10791 ;;
10792 esac
10793 shlibpath_var=LD_LIBRARY_PATH
10794 case $host_os in
10795 freebsd2*)
10796 shlibpath_overrides_runpath=yes
10797 ;;
10798 freebsd3.[01]* | freebsdelf3.[01]*)
10799 shlibpath_overrides_runpath=yes
10800 hardcode_into_libs=yes
10801 ;;
10802 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10803 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10804 shlibpath_overrides_runpath=no
10805 hardcode_into_libs=yes
10806 ;;
10807 *) # from 4.6 on, and DragonFly
10808 shlibpath_overrides_runpath=yes
10809 hardcode_into_libs=yes
10810 ;;
10811 esac
10812 ;;
10813
10814gnu*)
10815 version_type=linux
10816 need_lib_prefix=no
10817 need_version=no
10818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10819 soname_spec='${libname}${release}${shared_ext}$major'
10820 shlibpath_var=LD_LIBRARY_PATH
10821 hardcode_into_libs=yes
10822 ;;
10823
3725885a
RW
10824haiku*)
10825 version_type=linux
10826 need_lib_prefix=no
10827 need_version=no
10828 dynamic_linker="$host_os runtime_loader"
10829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10830 soname_spec='${libname}${release}${shared_ext}$major'
10831 shlibpath_var=LIBRARY_PATH
10832 shlibpath_overrides_runpath=yes
10833 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10834 hardcode_into_libs=yes
10835 ;;
10836
ce2cded5
L
10837hpux9* | hpux10* | hpux11*)
10838 # Give a soname corresponding to the major version so that dld.sl refuses to
10839 # link against other versions.
10840 version_type=sunos
10841 need_lib_prefix=no
10842 need_version=no
10843 case $host_cpu in
10844 ia64*)
10845 shrext_cmds='.so'
10846 hardcode_into_libs=yes
10847 dynamic_linker="$host_os dld.so"
10848 shlibpath_var=LD_LIBRARY_PATH
10849 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10851 soname_spec='${libname}${release}${shared_ext}$major'
10852 if test "X$HPUX_IA64_MODE" = X32; then
10853 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10854 else
10855 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10856 fi
10857 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10858 ;;
10859 hppa*64*)
10860 shrext_cmds='.sl'
10861 hardcode_into_libs=yes
10862 dynamic_linker="$host_os dld.sl"
10863 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10864 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10866 soname_spec='${libname}${release}${shared_ext}$major'
10867 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10868 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10869 ;;
10870 *)
10871 shrext_cmds='.sl'
10872 dynamic_linker="$host_os dld.sl"
10873 shlibpath_var=SHLIB_PATH
10874 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10876 soname_spec='${libname}${release}${shared_ext}$major'
10877 ;;
10878 esac
3725885a 10879 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
ce2cded5 10880 postinstall_cmds='chmod 555 $lib'
3725885a
RW
10881 # or fails outright, so override atomically:
10882 install_override_mode=555
ce2cded5
L
10883 ;;
10884
10885interix[3-9]*)
10886 version_type=linux
10887 need_lib_prefix=no
10888 need_version=no
10889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10890 soname_spec='${libname}${release}${shared_ext}$major'
10891 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10892 shlibpath_var=LD_LIBRARY_PATH
10893 shlibpath_overrides_runpath=no
10894 hardcode_into_libs=yes
10895 ;;
10896
10897irix5* | irix6* | nonstopux*)
10898 case $host_os in
10899 nonstopux*) version_type=nonstopux ;;
10900 *)
10901 if test "$lt_cv_prog_gnu_ld" = yes; then
10902 version_type=linux
10903 else
10904 version_type=irix
10905 fi ;;
10906 esac
10907 need_lib_prefix=no
10908 need_version=no
10909 soname_spec='${libname}${release}${shared_ext}$major'
10910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10911 case $host_os in
10912 irix5* | nonstopux*)
10913 libsuff= shlibsuff=
10914 ;;
10915 *)
10916 case $LD in # libtool.m4 will add one of these switches to LD
10917 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10918 libsuff= shlibsuff= libmagic=32-bit;;
10919 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10920 libsuff=32 shlibsuff=N32 libmagic=N32;;
10921 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10922 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10923 *) libsuff= shlibsuff= libmagic=never-match;;
10924 esac
10925 ;;
10926 esac
10927 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10928 shlibpath_overrides_runpath=no
10929 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10930 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10931 hardcode_into_libs=yes
10932 ;;
10933
10934# No shared lib support for Linux oldld, aout, or coff.
10935linux*oldld* | linux*aout* | linux*coff*)
10936 dynamic_linker=no
10937 ;;
10938
10939# This must be Linux ELF.
58e24671 10940linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
10941 version_type=linux
10942 need_lib_prefix=no
10943 need_version=no
10944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10945 soname_spec='${libname}${release}${shared_ext}$major'
10946 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10947 shlibpath_var=LD_LIBRARY_PATH
10948 shlibpath_overrides_runpath=no
39144654 10949
ce2cded5 10950 # Some binutils ld are patched to set DT_RUNPATH
81ecdfbb
RW
10951 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10952 $as_echo_n "(cached) " >&6
39144654
RW
10953else
10954 lt_cv_shlibpath_overrides_runpath=no
10955 save_LDFLAGS=$LDFLAGS
10956 save_libdir=$libdir
10957 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10958 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
81ecdfbb 10959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10960/* end confdefs.h. */
10961
d7040cdb
SE
10962int
10963main ()
10964{
ce2cded5 10965
d7040cdb
SE
10966 ;
10967 return 0;
10968}
10969_ACEOF
81ecdfbb
RW
10970if ac_fn_c_try_link "$LINENO"; then :
10971 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
39144654 10972 lt_cv_shlibpath_overrides_runpath=yes
d7040cdb 10973fi
d7040cdb 10974fi
81ecdfbb
RW
10975rm -f core conftest.err conftest.$ac_objext \
10976 conftest$ac_exeext conftest.$ac_ext
39144654
RW
10977 LDFLAGS=$save_LDFLAGS
10978 libdir=$save_libdir
10979
10980fi
10981
10982 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
d7040cdb 10983
ce2cded5
L
10984 # This implies no fast_install, which is unacceptable.
10985 # Some rework will be needed to allow for fast_install
10986 # before this can be enabled.
10987 hardcode_into_libs=yes
d7040cdb 10988
ce2cded5
L
10989 # Append ld.so.conf contents to the search path
10990 if test -f /etc/ld.so.conf; then
3725885a 10991 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
10992 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10993 fi
d7040cdb 10994
ce2cded5
L
10995 # We used to test for /lib/ld.so.1 and disable shared libraries on
10996 # powerpc, because MkLinux only supported shared libraries with the
10997 # GNU dynamic linker. Since this was broken with cross compilers,
10998 # most powerpc-linux boxes support dynamic linking these days and
10999 # people can always --disable-shared, the test was removed, and we
11000 # assume the GNU/Linux dynamic linker is in use.
11001 dynamic_linker='GNU/Linux ld.so'
11002 ;;
d7040cdb 11003
ce2cded5
L
11004netbsd*)
11005 version_type=sunos
11006 need_lib_prefix=no
11007 need_version=no
11008 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11010 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11011 dynamic_linker='NetBSD (a.out) ld.so'
11012 else
11013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11014 soname_spec='${libname}${release}${shared_ext}$major'
11015 dynamic_linker='NetBSD ld.elf_so'
11016 fi
11017 shlibpath_var=LD_LIBRARY_PATH
11018 shlibpath_overrides_runpath=yes
11019 hardcode_into_libs=yes
11020 ;;
d7040cdb 11021
ce2cded5
L
11022newsos6)
11023 version_type=linux
11024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11025 shlibpath_var=LD_LIBRARY_PATH
11026 shlibpath_overrides_runpath=yes
11027 ;;
d7040cdb 11028
ce2cded5
L
11029*nto* | *qnx*)
11030 version_type=qnx
11031 need_lib_prefix=no
11032 need_version=no
11033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11034 soname_spec='${libname}${release}${shared_ext}$major'
11035 shlibpath_var=LD_LIBRARY_PATH
11036 shlibpath_overrides_runpath=no
11037 hardcode_into_libs=yes
11038 dynamic_linker='ldqnx.so'
11039 ;;
d7040cdb 11040
ce2cded5
L
11041openbsd*)
11042 version_type=sunos
11043 sys_lib_dlsearch_path_spec="/usr/lib"
11044 need_lib_prefix=no
11045 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11046 case $host_os in
11047 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11048 *) need_version=no ;;
11049 esac
11050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11051 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11052 shlibpath_var=LD_LIBRARY_PATH
11053 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11054 case $host_os in
11055 openbsd2.[89] | openbsd2.[89].*)
11056 shlibpath_overrides_runpath=no
11057 ;;
11058 *)
11059 shlibpath_overrides_runpath=yes
11060 ;;
11061 esac
11062 else
11063 shlibpath_overrides_runpath=yes
11064 fi
11065 ;;
d7040cdb 11066
ce2cded5
L
11067os2*)
11068 libname_spec='$name'
11069 shrext_cmds=".dll"
11070 need_lib_prefix=no
11071 library_names_spec='$libname${shared_ext} $libname.a'
11072 dynamic_linker='OS/2 ld.exe'
11073 shlibpath_var=LIBPATH
11074 ;;
d7040cdb 11075
ce2cded5
L
11076osf3* | osf4* | osf5*)
11077 version_type=osf
11078 need_lib_prefix=no
11079 need_version=no
11080 soname_spec='${libname}${release}${shared_ext}$major'
11081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11082 shlibpath_var=LD_LIBRARY_PATH
11083 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11084 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11085 ;;
d7040cdb 11086
ce2cded5
L
11087rdos*)
11088 dynamic_linker=no
11089 ;;
d7040cdb 11090
ce2cded5
L
11091solaris*)
11092 version_type=linux
11093 need_lib_prefix=no
11094 need_version=no
11095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11096 soname_spec='${libname}${release}${shared_ext}$major'
11097 shlibpath_var=LD_LIBRARY_PATH
11098 shlibpath_overrides_runpath=yes
11099 hardcode_into_libs=yes
11100 # ldd complains unless libraries are executable
11101 postinstall_cmds='chmod +x $lib'
11102 ;;
d7040cdb 11103
ce2cded5
L
11104sunos4*)
11105 version_type=sunos
11106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11107 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11108 shlibpath_var=LD_LIBRARY_PATH
11109 shlibpath_overrides_runpath=yes
11110 if test "$with_gnu_ld" = yes; then
11111 need_lib_prefix=no
11112 fi
11113 need_version=yes
11114 ;;
d7040cdb 11115
ce2cded5
L
11116sysv4 | sysv4.3*)
11117 version_type=linux
11118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11119 soname_spec='${libname}${release}${shared_ext}$major'
11120 shlibpath_var=LD_LIBRARY_PATH
11121 case $host_vendor in
11122 sni)
11123 shlibpath_overrides_runpath=no
11124 need_lib_prefix=no
11125 runpath_var=LD_RUN_PATH
11126 ;;
11127 siemens)
11128 need_lib_prefix=no
11129 ;;
11130 motorola)
11131 need_lib_prefix=no
11132 need_version=no
11133 shlibpath_overrides_runpath=no
11134 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11135 ;;
11136 esac
11137 ;;
d7040cdb 11138
ce2cded5
L
11139sysv4*MP*)
11140 if test -d /usr/nec ;then
11141 version_type=linux
11142 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11143 soname_spec='$libname${shared_ext}.$major'
11144 shlibpath_var=LD_LIBRARY_PATH
11145 fi
11146 ;;
d7040cdb 11147
ce2cded5
L
11148sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11149 version_type=freebsd-elf
11150 need_lib_prefix=no
11151 need_version=no
11152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11153 soname_spec='${libname}${release}${shared_ext}$major'
11154 shlibpath_var=LD_LIBRARY_PATH
11155 shlibpath_overrides_runpath=yes
11156 hardcode_into_libs=yes
11157 if test "$with_gnu_ld" = yes; then
11158 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11159 else
11160 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11161 case $host_os in
11162 sco3.2v5*)
11163 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11164 ;;
11165 esac
11166 fi
11167 sys_lib_dlsearch_path_spec='/usr/lib'
11168 ;;
d7040cdb 11169
ce2cded5
L
11170tpf*)
11171 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11172 version_type=linux
11173 need_lib_prefix=no
11174 need_version=no
b214d478 11175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
ce2cded5
L
11176 shlibpath_var=LD_LIBRARY_PATH
11177 shlibpath_overrides_runpath=no
11178 hardcode_into_libs=yes
11179 ;;
d7040cdb 11180
ce2cded5
L
11181uts4*)
11182 version_type=linux
11183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11184 soname_spec='${libname}${release}${shared_ext}$major'
11185 shlibpath_var=LD_LIBRARY_PATH
11186 ;;
d7040cdb 11187
ce2cded5
L
11188*)
11189 dynamic_linker=no
11190 ;;
11191esac
81ecdfbb
RW
11192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11193$as_echo "$dynamic_linker" >&6; }
ce2cded5
L
11194test "$dynamic_linker" = no && can_build_shared=no
11195
11196variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11197if test "$GCC" = yes; then
11198 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb
SE
11199fi
11200
b214d478
SE
11201if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11202 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11203fi
11204if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11205 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11206fi
11207
d7040cdb
SE
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
d7040cdb 11219
d7040cdb 11220
d7040cdb 11221
d7040cdb 11222
d7040cdb
SE
11223
11224
11225
11226
d7040cdb 11227
d7040cdb
SE
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
d7040cdb
SE
11241
11242
11243
11244
d7040cdb
SE
11245
11246
11247
11248
d7040cdb 11249
d7040cdb 11250
d7040cdb 11251
d7040cdb 11252
d7040cdb 11253
d7040cdb 11254
d7040cdb 11255
d7040cdb
SE
11256
11257
11258
11259
11260
d7040cdb 11261
d7040cdb 11262
d7040cdb 11263
d7040cdb 11264
d7040cdb 11265
d7040cdb 11266
d7040cdb
SE
11267
11268
11269
11270
11271
d7040cdb
SE
11272
11273
d7040cdb 11274
d7040cdb 11275
d7040cdb 11276
d7040cdb 11277
ce2cded5
L
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
3725885a
RW
11288
11289
11290
11291
11292
ce2cded5
L
11293
11294
11295
11296
11297
11298
81ecdfbb
RW
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11300$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
ce2cded5
L
11301hardcode_action=
11302if test -n "$hardcode_libdir_flag_spec" ||
11303 test -n "$runpath_var" ||
11304 test "X$hardcode_automatic" = "Xyes" ; then
11305
11306 # We can hardcode non-existent directories.
11307 if test "$hardcode_direct" != no &&
11308 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11309 # have to relink, otherwise we might link with an installed library
11310 # when we should be linking with a yet-to-be-installed one
11311 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11312 test "$hardcode_minus_L" != no; then
11313 # Linking always hardcodes the temporary library directory.
11314 hardcode_action=relink
11315 else
11316 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11317 hardcode_action=immediate
d7040cdb 11318 fi
d7040cdb 11319else
ce2cded5
L
11320 # We cannot hardcode anything, or else we can only hardcode existing
11321 # directories.
11322 hardcode_action=unsupported
d7040cdb 11323fi
81ecdfbb
RW
11324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11325$as_echo "$hardcode_action" >&6; }
d7040cdb 11326
ce2cded5
L
11327if test "$hardcode_action" = relink ||
11328 test "$inherit_rpath" = yes; then
11329 # Fast installation is not supported
11330 enable_fast_install=no
11331elif test "$shlibpath_overrides_runpath" = yes ||
11332 test "$enable_shared" = no; then
11333 # Fast installation is not necessary
11334 enable_fast_install=needless
d7040cdb
SE
11335fi
11336
d7040cdb 11337
d7040cdb 11338
d7040cdb 11339
d7040cdb 11340
d7040cdb 11341
ce2cded5
L
11342 if test "x$enable_dlopen" != xyes; then
11343 enable_dlopen=unknown
11344 enable_dlopen_self=unknown
11345 enable_dlopen_self_static=unknown
d7040cdb 11346else
ce2cded5
L
11347 lt_cv_dlopen=no
11348 lt_cv_dlopen_libs=
d7040cdb 11349
ce2cded5
L
11350 case $host_os in
11351 beos*)
11352 lt_cv_dlopen="load_add_on"
11353 lt_cv_dlopen_libs=
11354 lt_cv_dlopen_self=yes
11355 ;;
d7040cdb 11356
b214d478 11357 mingw* | pw32* | cegcc*)
ce2cded5
L
11358 lt_cv_dlopen="LoadLibrary"
11359 lt_cv_dlopen_libs=
11360 ;;
11361
11362 cygwin*)
11363 lt_cv_dlopen="dlopen"
11364 lt_cv_dlopen_libs=
11365 ;;
11366
11367 darwin*)
11368 # if libdl is installed we need to link against it
81ecdfbb
RW
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11370$as_echo_n "checking for dlopen in -ldl... " >&6; }
11371if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11372 $as_echo_n "(cached) " >&6
d7040cdb 11373else
ce2cded5
L
11374 ac_check_lib_save_LIBS=$LIBS
11375LIBS="-ldl $LIBS"
81ecdfbb 11376cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
11377/* end confdefs.h. */
11378
81ecdfbb
RW
11379/* Override any GCC internal prototype to avoid an error.
11380 Use char because int might match the return type of a GCC
11381 builtin and then its argument prototype would still apply. */
ce2cded5
L
11382#ifdef __cplusplus
11383extern "C"
11384#endif
ce2cded5
L
11385char dlopen ();
11386int
11387main ()
11388{
81ecdfbb 11389return dlopen ();
ce2cded5
L
11390 ;
11391 return 0;
11392}
11393_ACEOF
81ecdfbb 11394if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
11395 ac_cv_lib_dl_dlopen=yes
11396else
81ecdfbb 11397 ac_cv_lib_dl_dlopen=no
d7040cdb 11398fi
81ecdfbb
RW
11399rm -f core conftest.err conftest.$ac_objext \
11400 conftest$ac_exeext conftest.$ac_ext
ce2cded5 11401LIBS=$ac_check_lib_save_LIBS
d7040cdb 11402fi
81ecdfbb
RW
11403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11404$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11405if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5 11406 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 11407else
d7040cdb 11408
ce2cded5
L
11409 lt_cv_dlopen="dyld"
11410 lt_cv_dlopen_libs=
11411 lt_cv_dlopen_self=yes
11412
d7040cdb 11413fi
ce2cded5
L
11414
11415 ;;
11416
11417 *)
81ecdfbb
RW
11418 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11419if test "x$ac_cv_func_shl_load" = x""yes; then :
ce2cded5
L
11420 lt_cv_dlopen="shl_load"
11421else
81ecdfbb
RW
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11423$as_echo_n "checking for shl_load in -ldld... " >&6; }
11424if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11425 $as_echo_n "(cached) " >&6
ce2cded5
L
11426else
11427 ac_check_lib_save_LIBS=$LIBS
11428LIBS="-ldld $LIBS"
81ecdfbb 11429cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 11430/* end confdefs.h. */
d7040cdb 11431
81ecdfbb
RW
11432/* Override any GCC internal prototype to avoid an error.
11433 Use char because int might match the return type of a GCC
11434 builtin and then its argument prototype would still apply. */
ce2cded5
L
11435#ifdef __cplusplus
11436extern "C"
11437#endif
ce2cded5
L
11438char shl_load ();
11439int
11440main ()
11441{
81ecdfbb 11442return shl_load ();
ce2cded5
L
11443 ;
11444 return 0;
11445}
11446_ACEOF
81ecdfbb 11447if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
11448 ac_cv_lib_dld_shl_load=yes
11449else
81ecdfbb 11450 ac_cv_lib_dld_shl_load=no
ce2cded5 11451fi
81ecdfbb
RW
11452rm -f core conftest.err conftest.$ac_objext \
11453 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
11454LIBS=$ac_check_lib_save_LIBS
11455fi
81ecdfbb
RW
11456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11457$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11458if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
b214d478 11459 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
ce2cded5 11460else
81ecdfbb
RW
11461 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11462if test "x$ac_cv_func_dlopen" = x""yes; then :
ce2cded5
L
11463 lt_cv_dlopen="dlopen"
11464else
81ecdfbb
RW
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11466$as_echo_n "checking for dlopen in -ldl... " >&6; }
11467if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11468 $as_echo_n "(cached) " >&6
d7040cdb 11469else
ce2cded5
L
11470 ac_check_lib_save_LIBS=$LIBS
11471LIBS="-ldl $LIBS"
81ecdfbb 11472cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11473/* end confdefs.h. */
11474
81ecdfbb
RW
11475/* Override any GCC internal prototype to avoid an error.
11476 Use char because int might match the return type of a GCC
11477 builtin and then its argument prototype would still apply. */
ce2cded5
L
11478#ifdef __cplusplus
11479extern "C"
11480#endif
ce2cded5 11481char dlopen ();
d7040cdb
SE
11482int
11483main ()
11484{
81ecdfbb 11485return dlopen ();
d7040cdb
SE
11486 ;
11487 return 0;
11488}
11489_ACEOF
81ecdfbb 11490if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 11491 ac_cv_lib_dl_dlopen=yes
d7040cdb 11492else
81ecdfbb 11493 ac_cv_lib_dl_dlopen=no
d7040cdb 11494fi
81ecdfbb
RW
11495rm -f core conftest.err conftest.$ac_objext \
11496 conftest$ac_exeext conftest.$ac_ext
ce2cded5 11497LIBS=$ac_check_lib_save_LIBS
d7040cdb 11498fi
81ecdfbb
RW
11499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11500$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11501if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5 11502 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 11503else
81ecdfbb
RW
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11505$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11506if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11507 $as_echo_n "(cached) " >&6
d7040cdb 11508else
ce2cded5
L
11509 ac_check_lib_save_LIBS=$LIBS
11510LIBS="-lsvld $LIBS"
81ecdfbb 11511cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 11512/* end confdefs.h. */
d7040cdb 11513
81ecdfbb
RW
11514/* Override any GCC internal prototype to avoid an error.
11515 Use char because int might match the return type of a GCC
11516 builtin and then its argument prototype would still apply. */
ce2cded5
L
11517#ifdef __cplusplus
11518extern "C"
11519#endif
ce2cded5 11520char dlopen ();
d7040cdb
SE
11521int
11522main ()
11523{
81ecdfbb 11524return dlopen ();
d7040cdb
SE
11525 ;
11526 return 0;
11527}
11528_ACEOF
81ecdfbb 11529if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 11530 ac_cv_lib_svld_dlopen=yes
d7040cdb 11531else
81ecdfbb 11532 ac_cv_lib_svld_dlopen=no
d7040cdb 11533fi
81ecdfbb
RW
11534rm -f core conftest.err conftest.$ac_objext \
11535 conftest$ac_exeext conftest.$ac_ext
ce2cded5 11536LIBS=$ac_check_lib_save_LIBS
d7040cdb 11537fi
81ecdfbb
RW
11538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11539$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11540if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
ce2cded5
L
11541 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11542else
81ecdfbb
RW
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11544$as_echo_n "checking for dld_link in -ldld... " >&6; }
11545if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11546 $as_echo_n "(cached) " >&6
ce2cded5
L
11547else
11548 ac_check_lib_save_LIBS=$LIBS
11549LIBS="-ldld $LIBS"
81ecdfbb 11550cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
11551/* end confdefs.h. */
11552
81ecdfbb
RW
11553/* Override any GCC internal prototype to avoid an error.
11554 Use char because int might match the return type of a GCC
11555 builtin and then its argument prototype would still apply. */
ce2cded5
L
11556#ifdef __cplusplus
11557extern "C"
11558#endif
ce2cded5 11559char dld_link ();
d7040cdb
SE
11560int
11561main ()
11562{
81ecdfbb 11563return dld_link ();
d7040cdb
SE
11564 ;
11565 return 0;
11566}
11567_ACEOF
81ecdfbb 11568if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 11569 ac_cv_lib_dld_dld_link=yes
d7040cdb 11570else
81ecdfbb 11571 ac_cv_lib_dld_dld_link=no
d7040cdb 11572fi
81ecdfbb
RW
11573rm -f core conftest.err conftest.$ac_objext \
11574 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
11575LIBS=$ac_check_lib_save_LIBS
11576fi
81ecdfbb
RW
11577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11578$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11579if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
b214d478 11580 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
ce2cded5
L
11581fi
11582
11583
11584fi
11585
11586
11587fi
11588
11589
11590fi
11591
11592
11593fi
11594
11595
11596fi
11597
11598 ;;
11599 esac
11600
11601 if test "x$lt_cv_dlopen" != xno; then
11602 enable_dlopen=yes
11603 else
11604 enable_dlopen=no
11605 fi
11606
11607 case $lt_cv_dlopen in
11608 dlopen)
11609 save_CPPFLAGS="$CPPFLAGS"
11610 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11611
11612 save_LDFLAGS="$LDFLAGS"
11613 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11614
11615 save_LIBS="$LIBS"
11616 LIBS="$lt_cv_dlopen_libs $LIBS"
11617
81ecdfbb
RW
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11619$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11620if test "${lt_cv_dlopen_self+set}" = set; then :
11621 $as_echo_n "(cached) " >&6
ce2cded5
L
11622else
11623 if test "$cross_compiling" = yes; then :
11624 lt_cv_dlopen_self=cross
11625else
11626 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11627 lt_status=$lt_dlunknown
11628 cat > conftest.$ac_ext <<_LT_EOF
02ecc8e9 11629#line 11629 "configure"
ce2cded5
L
11630#include "confdefs.h"
11631
11632#if HAVE_DLFCN_H
11633#include <dlfcn.h>
11634#endif
11635
11636#include <stdio.h>
11637
11638#ifdef RTLD_GLOBAL
11639# define LT_DLGLOBAL RTLD_GLOBAL
11640#else
11641# ifdef DL_GLOBAL
11642# define LT_DLGLOBAL DL_GLOBAL
11643# else
11644# define LT_DLGLOBAL 0
11645# endif
11646#endif
11647
11648/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11649 find out it does not work in some platform. */
11650#ifndef LT_DLLAZY_OR_NOW
11651# ifdef RTLD_LAZY
11652# define LT_DLLAZY_OR_NOW RTLD_LAZY
11653# else
11654# ifdef DL_LAZY
11655# define LT_DLLAZY_OR_NOW DL_LAZY
11656# else
11657# ifdef RTLD_NOW
11658# define LT_DLLAZY_OR_NOW RTLD_NOW
11659# else
11660# ifdef DL_NOW
11661# define LT_DLLAZY_OR_NOW DL_NOW
11662# else
11663# define LT_DLLAZY_OR_NOW 0
11664# endif
11665# endif
11666# endif
11667# endif
11668#endif
11669
3725885a
RW
11670/* When -fvisbility=hidden is used, assume the code has been annotated
11671 correspondingly for the symbols needed. */
11672#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11673void fnord () __attribute__((visibility("default")));
11674#endif
11675
11676void fnord () { int i=42; }
ce2cded5 11677int main ()
d7040cdb 11678{
ce2cded5
L
11679 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11680 int status = $lt_dlunknown;
11681
11682 if (self)
11683 {
11684 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11685 else
11686 {
11687 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11688 else puts (dlerror ());
11689 }
ce2cded5
L
11690 /* dlclose (self); */
11691 }
11692 else
11693 puts (dlerror ());
11694
b214d478 11695 return status;
d7040cdb 11696}
ce2cded5 11697_LT_EOF
81ecdfbb 11698 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5 11699 (eval $ac_link) 2>&5
d7040cdb 11700 ac_status=$?
81ecdfbb
RW
11701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11702 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
ce2cded5
L
11703 (./conftest; exit; ) >&5 2>/dev/null
11704 lt_status=$?
11705 case x$lt_status in
11706 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11707 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11708 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11709 esac
11710 else :
11711 # compilation failed
11712 lt_cv_dlopen_self=no
11713 fi
11714fi
11715rm -fr conftest*
11716
11717
11718fi
81ecdfbb
RW
11719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11720$as_echo "$lt_cv_dlopen_self" >&6; }
ce2cded5
L
11721
11722 if test "x$lt_cv_dlopen_self" = xyes; then
11723 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
81ecdfbb
RW
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11725$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11726if test "${lt_cv_dlopen_self_static+set}" = set; then :
11727 $as_echo_n "(cached) " >&6
ce2cded5
L
11728else
11729 if test "$cross_compiling" = yes; then :
11730 lt_cv_dlopen_self_static=cross
11731else
11732 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11733 lt_status=$lt_dlunknown
11734 cat > conftest.$ac_ext <<_LT_EOF
02ecc8e9 11735#line 11735 "configure"
ce2cded5
L
11736#include "confdefs.h"
11737
11738#if HAVE_DLFCN_H
11739#include <dlfcn.h>
11740#endif
11741
11742#include <stdio.h>
11743
11744#ifdef RTLD_GLOBAL
11745# define LT_DLGLOBAL RTLD_GLOBAL
11746#else
11747# ifdef DL_GLOBAL
11748# define LT_DLGLOBAL DL_GLOBAL
11749# else
11750# define LT_DLGLOBAL 0
11751# endif
11752#endif
11753
11754/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11755 find out it does not work in some platform. */
11756#ifndef LT_DLLAZY_OR_NOW
11757# ifdef RTLD_LAZY
11758# define LT_DLLAZY_OR_NOW RTLD_LAZY
11759# else
11760# ifdef DL_LAZY
11761# define LT_DLLAZY_OR_NOW DL_LAZY
11762# else
11763# ifdef RTLD_NOW
11764# define LT_DLLAZY_OR_NOW RTLD_NOW
11765# else
11766# ifdef DL_NOW
11767# define LT_DLLAZY_OR_NOW DL_NOW
11768# else
11769# define LT_DLLAZY_OR_NOW 0
11770# endif
11771# endif
11772# endif
11773# endif
11774#endif
11775
3725885a
RW
11776/* When -fvisbility=hidden is used, assume the code has been annotated
11777 correspondingly for the symbols needed. */
11778#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11779void fnord () __attribute__((visibility("default")));
11780#endif
11781
11782void fnord () { int i=42; }
ce2cded5
L
11783int main ()
11784{
11785 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11786 int status = $lt_dlunknown;
11787
11788 if (self)
11789 {
11790 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11791 else
11792 {
11793 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11794 else puts (dlerror ());
11795 }
ce2cded5
L
11796 /* dlclose (self); */
11797 }
11798 else
11799 puts (dlerror ());
11800
b214d478 11801 return status;
ce2cded5
L
11802}
11803_LT_EOF
81ecdfbb 11804 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5 11805 (eval $ac_link) 2>&5
d7040cdb 11806 ac_status=$?
81ecdfbb
RW
11807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11808 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
ce2cded5
L
11809 (./conftest; exit; ) >&5 2>/dev/null
11810 lt_status=$?
11811 case x$lt_status in
11812 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11813 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11814 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11815 esac
11816 else :
11817 # compilation failed
11818 lt_cv_dlopen_self_static=no
11819 fi
11820fi
11821rm -fr conftest*
11822
d7040cdb
SE
11823
11824fi
81ecdfbb
RW
11825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11826$as_echo "$lt_cv_dlopen_self_static" >&6; }
ce2cded5
L
11827 fi
11828
11829 CPPFLAGS="$save_CPPFLAGS"
11830 LDFLAGS="$save_LDFLAGS"
11831 LIBS="$save_LIBS"
11832 ;;
11833 esac
11834
11835 case $lt_cv_dlopen_self in
11836 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11837 *) enable_dlopen_self=unknown ;;
11838 esac
11839
11840 case $lt_cv_dlopen_self_static in
11841 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11842 *) enable_dlopen_self_static=unknown ;;
11843 esac
d7040cdb
SE
11844fi
11845
ce2cded5
L
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862striplib=
11863old_striplib=
81ecdfbb
RW
11864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11865$as_echo_n "checking whether stripping libraries is possible... " >&6; }
ce2cded5
L
11866if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11867 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11868 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
81ecdfbb
RW
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11870$as_echo "yes" >&6; }
d7040cdb 11871else
ce2cded5
L
11872# FIXME - insert some real tests, host_os isn't really good enough
11873 case $host_os in
11874 darwin*)
11875 if test -n "$STRIP" ; then
11876 striplib="$STRIP -x"
11877 old_striplib="$STRIP -S"
81ecdfbb
RW
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11879$as_echo "yes" >&6; }
ce2cded5 11880 else
81ecdfbb
RW
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11882$as_echo "no" >&6; }
ce2cded5
L
11883 fi
11884 ;;
11885 *)
81ecdfbb
RW
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11887$as_echo "no" >&6; }
ce2cded5
L
11888 ;;
11889 esac
11890fi
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903 # Report which library types will actually be built
81ecdfbb
RW
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11905$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11907$as_echo "$can_build_shared" >&6; }
ce2cded5 11908
81ecdfbb
RW
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11910$as_echo_n "checking whether to build shared libraries... " >&6; }
ce2cded5
L
11911 test "$can_build_shared" = "no" && enable_shared=no
11912
11913 # On AIX, shared libraries and static libraries use the same namespace, and
11914 # are all built from PIC.
11915 case $host_os in
11916 aix3*)
11917 test "$enable_shared" = yes && enable_static=no
11918 if test -n "$RANLIB"; then
11919 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11920 postinstall_cmds='$RANLIB $lib'
11921 fi
11922 ;;
11923
50e7d84b 11924 aix[4-9]*)
ce2cded5
L
11925 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11926 test "$enable_shared" = yes && enable_static=no
11927 fi
11928 ;;
11929 esac
81ecdfbb
RW
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11931$as_echo "$enable_shared" >&6; }
ce2cded5 11932
81ecdfbb
RW
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11934$as_echo_n "checking whether to build static libraries... " >&6; }
ce2cded5
L
11935 # Make sure either enable_shared or enable_static is yes.
11936 test "$enable_shared" = yes || enable_static=yes
81ecdfbb
RW
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11938$as_echo "$enable_static" >&6; }
ce2cded5
L
11939
11940
11941
d7040cdb
SE
11942
11943fi
d7040cdb
SE
11944ac_ext=c
11945ac_cpp='$CPP $CPPFLAGS'
11946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11948ac_compiler_gnu=$ac_cv_c_compiler_gnu
11949
ce2cded5 11950CC="$lt_save_CC"
67310ccd 11951
67310ccd
AM
11952
11953
d7040cdb
SE
11954
11955
d7040cdb 11956
d7040cdb 11957
d7040cdb 11958
ce2cded5
L
11959
11960
11961
11962
11963
81ecdfbb 11964 ac_config_commands="$ac_config_commands libtool"
ce2cded5
L
11965
11966
11967
11968
11969# Only expand once:
11970
d7040cdb
SE
11971
11972
ef3f88be 11973ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga fi id bg"
d7040cdb
SE
11974# If we haven't got the data from the intl directory,
11975# assume NLS is disabled.
11976USE_NLS=no
11977LIBINTL=
11978LIBINTL_DEP=
11979INCINTL=
11980XGETTEXT=
11981GMSGFMT=
11982POSUB=
11983
11984if test -f ../intl/config.intl; then
11985 . ../intl/config.intl
11986fi
81ecdfbb
RW
11987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11988$as_echo_n "checking whether NLS is requested... " >&6; }
d7040cdb 11989if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11991$as_echo "no" >&6; }
d7040cdb 11992else
81ecdfbb
RW
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11994$as_echo "yes" >&6; }
d7040cdb 11995
81ecdfbb 11996$as_echo "#define ENABLE_NLS 1" >>confdefs.h
d7040cdb
SE
11997
11998
81ecdfbb
RW
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12000$as_echo_n "checking for catalogs to be installed... " >&6; }
d7040cdb
SE
12001 # Look for .po and .gmo files in the source directory.
12002 CATALOGS=
12003 XLINGUAS=
12004 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12005 # If there aren't any .gmo files the shell will give us the
12006 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12007 # weeded out.
12008 case "$cat" in *\**)
12009 continue;;
12010 esac
12011 # The quadruple backslash is collapsed to a double backslash
12012 # by the backticks, then collapsed again by the double quotes,
12013 # leaving us with one backslash in the sed expression (right
12014 # before the dot that mustn't act as a wildcard).
12015 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12016 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12017 # The user is allowed to set LINGUAS to a list of languages to
12018 # install catalogs for. If it's empty that means "all of them."
12019 if test "x$LINGUAS" = x; then
12020 CATALOGS="$CATALOGS $cat"
12021 XLINGUAS="$XLINGUAS $lang"
12022 else
12023 case "$LINGUAS" in *$lang*)
12024 CATALOGS="$CATALOGS $cat"
12025 XLINGUAS="$XLINGUAS $lang"
12026 ;;
12027 esac
12028 fi
12029 done
12030 LINGUAS="$XLINGUAS"
81ecdfbb
RW
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12032$as_echo "$LINGUAS" >&6; }
d7040cdb
SE
12033
12034
12035 DATADIRNAME=share
12036
12037 INSTOBJEXT=.mo
12038
12039 GENCAT=gencat
12040
12041 CATOBJEXT=.gmo
12042
12043fi
12044
12045 MKINSTALLDIRS=
12046 if test -n "$ac_aux_dir"; then
12047 case "$ac_aux_dir" in
12048 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12049 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12050 esac
12051 fi
12052 if test -z "$MKINSTALLDIRS"; then
12053 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12054 fi
12055
12056
12057
81ecdfbb
RW
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12059$as_echo_n "checking whether NLS is requested... " >&6; }
12060 # Check whether --enable-nls was given.
12061if test "${enable_nls+set}" = set; then :
12062 enableval=$enable_nls; USE_NLS=$enableval
d7040cdb
SE
12063else
12064 USE_NLS=yes
81ecdfbb
RW
12065fi
12066
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12068$as_echo "$USE_NLS" >&6; }
d7040cdb
SE
12069
12070
12071
12072
12073
12074
12075# Prepare PATH_SEPARATOR.
12076# The user is always right.
12077if test "${PATH_SEPARATOR+set}" != set; then
12078 echo "#! /bin/sh" >conf$$.sh
12079 echo "exit 0" >>conf$$.sh
12080 chmod +x conf$$.sh
12081 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12082 PATH_SEPARATOR=';'
12083 else
12084 PATH_SEPARATOR=:
12085 fi
12086 rm -f conf$$.sh
12087fi
12088
12089# Find out how to test for executable files. Don't use a zero-byte file,
12090# as systems may use methods other than mode bits to determine executability.
12091cat >conf$$.file <<_ASEOF
12092#! /bin/sh
12093exit 0
12094_ASEOF
12095chmod +x conf$$.file
12096if test -x conf$$.file >/dev/null 2>&1; then
12097 ac_executable_p="test -x"
12098else
12099 ac_executable_p="test -f"
12100fi
12101rm -f conf$$.file
12102
12103# Extract the first word of "msgfmt", so it can be a program name with args.
12104set dummy msgfmt; ac_word=$2
81ecdfbb
RW
12105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12106$as_echo_n "checking for $ac_word... " >&6; }
12107if test "${ac_cv_path_MSGFMT+set}" = set; then :
12108 $as_echo_n "(cached) " >&6
d7040cdb
SE
12109else
12110 case "$MSGFMT" in
12111 [\\/]* | ?:[\\/]*)
12112 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12113 ;;
12114 *)
12115 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12116 for ac_dir in $PATH; do
12117 IFS="$ac_save_IFS"
12118 test -z "$ac_dir" && ac_dir=.
12119 for ac_exec_ext in '' $ac_executable_extensions; do
12120 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12121 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12122 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12123 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12124 break 2
12125 fi
12126 fi
12127 done
12128 done
12129 IFS="$ac_save_IFS"
12130 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12131 ;;
12132esac
12133fi
12134MSGFMT="$ac_cv_path_MSGFMT"
12135if test "$MSGFMT" != ":"; then
81ecdfbb
RW
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12137$as_echo "$MSGFMT" >&6; }
d7040cdb 12138else
81ecdfbb
RW
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12140$as_echo "no" >&6; }
d7040cdb
SE
12141fi
12142
12143 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12144set dummy gmsgfmt; ac_word=$2
81ecdfbb
RW
12145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12146$as_echo_n "checking for $ac_word... " >&6; }
12147if test "${ac_cv_path_GMSGFMT+set}" = set; then :
12148 $as_echo_n "(cached) " >&6
d7040cdb
SE
12149else
12150 case $GMSGFMT in
12151 [\\/]* | ?:[\\/]*)
12152 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12153 ;;
12154 *)
12155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12156for as_dir in $PATH
12157do
12158 IFS=$as_save_IFS
12159 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12160 for ac_exec_ext in '' $ac_executable_extensions; do
12161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 12162 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
12164 break 2
12165 fi
12166done
81ecdfbb
RW
12167 done
12168IFS=$as_save_IFS
d7040cdb
SE
12169
12170 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12171 ;;
12172esac
12173fi
12174GMSGFMT=$ac_cv_path_GMSGFMT
d7040cdb 12175if test -n "$GMSGFMT"; then
81ecdfbb
RW
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12177$as_echo "$GMSGFMT" >&6; }
d7040cdb 12178else
81ecdfbb
RW
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12180$as_echo "no" >&6; }
20e95c23 12181fi
42ecbf5e 12182
20e95c23 12183
252b5132 12184
81ecdfbb 12185
d7040cdb
SE
12186# Prepare PATH_SEPARATOR.
12187# The user is always right.
12188if test "${PATH_SEPARATOR+set}" != set; then
12189 echo "#! /bin/sh" >conf$$.sh
12190 echo "exit 0" >>conf$$.sh
12191 chmod +x conf$$.sh
12192 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12193 PATH_SEPARATOR=';'
12194 else
12195 PATH_SEPARATOR=:
12196 fi
12197 rm -f conf$$.sh
20e95c23 12198fi
252b5132 12199
d7040cdb
SE
12200# Find out how to test for executable files. Don't use a zero-byte file,
12201# as systems may use methods other than mode bits to determine executability.
12202cat >conf$$.file <<_ASEOF
12203#! /bin/sh
12204exit 0
12205_ASEOF
12206chmod +x conf$$.file
12207if test -x conf$$.file >/dev/null 2>&1; then
12208 ac_executable_p="test -x"
20e95c23 12209else
d7040cdb
SE
12210 ac_executable_p="test -f"
12211fi
12212rm -f conf$$.file
20e95c23 12213
d7040cdb
SE
12214# Extract the first word of "xgettext", so it can be a program name with args.
12215set dummy xgettext; ac_word=$2
81ecdfbb
RW
12216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12217$as_echo_n "checking for $ac_word... " >&6; }
12218if test "${ac_cv_path_XGETTEXT+set}" = set; then :
12219 $as_echo_n "(cached) " >&6
252b5132 12220else
d7040cdb
SE
12221 case "$XGETTEXT" in
12222 [\\/]* | ?:[\\/]*)
12223 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12224 ;;
12225 *)
12226 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12227 for ac_dir in $PATH; do
12228 IFS="$ac_save_IFS"
12229 test -z "$ac_dir" && ac_dir=.
12230 for ac_exec_ext in '' $ac_executable_extensions; do
12231 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12232 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12233 (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
12234 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12235 break 2
12236 fi
12237 fi
12238 done
12239 done
12240 IFS="$ac_save_IFS"
12241 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12242 ;;
12243esac
252b5132 12244fi
d7040cdb
SE
12245XGETTEXT="$ac_cv_path_XGETTEXT"
12246if test "$XGETTEXT" != ":"; then
81ecdfbb
RW
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12248$as_echo "$XGETTEXT" >&6; }
d5fbea21 12249else
81ecdfbb
RW
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12251$as_echo "no" >&6; }
d5fbea21
DJ
12252fi
12253
d7040cdb 12254 rm -f messages.po
d5fbea21 12255
20e95c23 12256
d7040cdb
SE
12257# Prepare PATH_SEPARATOR.
12258# The user is always right.
12259if test "${PATH_SEPARATOR+set}" != set; then
12260 echo "#! /bin/sh" >conf$$.sh
12261 echo "exit 0" >>conf$$.sh
12262 chmod +x conf$$.sh
12263 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12264 PATH_SEPARATOR=';'
12265 else
12266 PATH_SEPARATOR=:
12267 fi
12268 rm -f conf$$.sh
12269fi
20e95c23 12270
d7040cdb
SE
12271# Find out how to test for executable files. Don't use a zero-byte file,
12272# as systems may use methods other than mode bits to determine executability.
12273cat >conf$$.file <<_ASEOF
12274#! /bin/sh
12275exit 0
12276_ASEOF
12277chmod +x conf$$.file
12278if test -x conf$$.file >/dev/null 2>&1; then
12279 ac_executable_p="test -x"
12280else
12281 ac_executable_p="test -f"
12282fi
12283rm -f conf$$.file
20e95c23 12284
d7040cdb
SE
12285# Extract the first word of "msgmerge", so it can be a program name with args.
12286set dummy msgmerge; ac_word=$2
81ecdfbb
RW
12287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12288$as_echo_n "checking for $ac_word... " >&6; }
12289if test "${ac_cv_path_MSGMERGE+set}" = set; then :
12290 $as_echo_n "(cached) " >&6
d7040cdb
SE
12291else
12292 case "$MSGMERGE" in
12293 [\\/]* | ?:[\\/]*)
12294 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12295 ;;
12296 *)
12297 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12298 for ac_dir in $PATH; do
12299 IFS="$ac_save_IFS"
12300 test -z "$ac_dir" && ac_dir=.
12301 for ac_exec_ext in '' $ac_executable_extensions; do
12302 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12303 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12304 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12305 break 2
12306 fi
12307 fi
12308 done
12309 done
12310 IFS="$ac_save_IFS"
12311 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12312 ;;
12313esac
12314fi
12315MSGMERGE="$ac_cv_path_MSGMERGE"
12316if test "$MSGMERGE" != ":"; then
81ecdfbb
RW
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12318$as_echo "$MSGMERGE" >&6; }
d7040cdb 12319else
81ecdfbb
RW
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12321$as_echo "no" >&6; }
d7040cdb 12322fi
20e95c23
DJ
12323
12324
d7040cdb
SE
12325 if test "$GMSGFMT" != ":"; then
12326 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12327 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12328 : ;
12329 else
12330 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
81ecdfbb
RW
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12332$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
d7040cdb
SE
12333 GMSGFMT=":"
12334 fi
12335 fi
20e95c23 12336
d7040cdb
SE
12337 if test "$XGETTEXT" != ":"; then
12338 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12339 (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
12340 : ;
12341 else
81ecdfbb
RW
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12343$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
d7040cdb
SE
12344 XGETTEXT=":"
12345 fi
12346 rm -f messages.po
20e95c23 12347 fi
42ecbf5e 12348
81ecdfbb 12349 ac_config_commands="$ac_config_commands default-1"
252b5132 12350
42ecbf5e 12351
252b5132 12352
42ecbf5e
DJ
12353
12354
d7040cdb 12355for ac_prog in 'bison -y' byacc
20e95c23 12356do
d7040cdb
SE
12357 # Extract the first word of "$ac_prog", so it can be a program name with args.
12358set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
12359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12360$as_echo_n "checking for $ac_word... " >&6; }
12361if test "${ac_cv_prog_YACC+set}" = set; then :
12362 $as_echo_n "(cached) " >&6
20e95c23 12363else
d7040cdb
SE
12364 if test -n "$YACC"; then
12365 ac_cv_prog_YACC="$YACC" # Let the user override the test.
42ecbf5e 12366else
d7040cdb
SE
12367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12368for as_dir in $PATH
12369do
12370 IFS=$as_save_IFS
12371 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12372 for ac_exec_ext in '' $ac_executable_extensions; do
12373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 12374 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 12375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
12376 break 2
12377 fi
12378done
81ecdfbb
RW
12379 done
12380IFS=$as_save_IFS
42ecbf5e 12381
42ecbf5e 12382fi
e5a52504 12383fi
d7040cdb
SE
12384YACC=$ac_cv_prog_YACC
12385if test -n "$YACC"; then
81ecdfbb
RW
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12387$as_echo "$YACC" >&6; }
42ecbf5e 12388else
81ecdfbb
RW
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12390$as_echo "no" >&6; }
42ecbf5e 12391fi
252b5132 12392
81ecdfbb 12393
d7040cdb 12394 test -n "$YACC" && break
42ecbf5e 12395done
d7040cdb 12396test -n "$YACC" || YACC="yacc"
d15b04bd 12397
d7040cdb
SE
12398for ac_prog in flex lex
12399do
12400 # Extract the first word of "$ac_prog", so it can be a program name with args.
12401set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
12402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12403$as_echo_n "checking for $ac_word... " >&6; }
12404if test "${ac_cv_prog_LEX+set}" = set; then :
12405 $as_echo_n "(cached) " >&6
d15b04bd 12406else
d7040cdb
SE
12407 if test -n "$LEX"; then
12408 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12409else
12410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12411for as_dir in $PATH
12412do
12413 IFS=$as_save_IFS
12414 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12415 for ac_exec_ext in '' $ac_executable_extensions; do
12416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 12417 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 12418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
12419 break 2
12420 fi
12421done
81ecdfbb
RW
12422 done
12423IFS=$as_save_IFS
d7040cdb
SE
12424
12425fi
12426fi
12427LEX=$ac_cv_prog_LEX
12428if test -n "$LEX"; then
81ecdfbb
RW
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12430$as_echo "$LEX" >&6; }
d7040cdb 12431else
81ecdfbb
RW
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12433$as_echo "no" >&6; }
d15b04bd 12434fi
e5a52504 12435
81ecdfbb 12436
d7040cdb
SE
12437 test -n "$LEX" && break
12438done
12439test -n "$LEX" || LEX=":"
42ecbf5e 12440
81ecdfbb
RW
12441if test "x$LEX" != "x:"; then
12442 cat >conftest.l <<_ACEOF
12443%%
12444a { ECHO; }
12445b { REJECT; }
12446c { yymore (); }
12447d { yyless (1); }
12448e { yyless (input () != 0); }
12449f { unput (yytext[0]); }
12450. { BEGIN INITIAL; }
12451%%
12452#ifdef YYTEXT_POINTER
12453extern char *yytext;
d7040cdb 12454#endif
42ecbf5e 12455int
81ecdfbb 12456main (void)
42ecbf5e 12457{
81ecdfbb 12458 return ! yylex () + ! yywrap ();
42ecbf5e
DJ
12459}
12460_ACEOF
81ecdfbb
RW
12461{ { ac_try="$LEX conftest.l"
12462case "(($ac_try" in
12463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12464 *) ac_try_echo=$ac_try;;
12465esac
12466eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12467$as_echo "$ac_try_echo"; } >&5
12468 (eval "$LEX conftest.l") 2>&5
42ecbf5e 12469 ac_status=$?
81ecdfbb
RW
12470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12471 test $ac_status = 0; }
12472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12473$as_echo_n "checking lex output file root... " >&6; }
12474if test "${ac_cv_prog_lex_root+set}" = set; then :
12475 $as_echo_n "(cached) " >&6
42ecbf5e 12476else
42ecbf5e 12477
81ecdfbb
RW
12478if test -f lex.yy.c; then
12479 ac_cv_prog_lex_root=lex.yy
12480elif test -f lexyy.c; then
12481 ac_cv_prog_lex_root=lexyy
12482else
12483 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
42ecbf5e 12484fi
42ecbf5e 12485fi
81ecdfbb
RW
12486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12487$as_echo "$ac_cv_prog_lex_root" >&6; }
12488LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
20e95c23 12489
81ecdfbb
RW
12490if test -z "${LEXLIB+set}"; then
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12492$as_echo_n "checking lex library... " >&6; }
12493if test "${ac_cv_lib_lex+set}" = set; then :
12494 $as_echo_n "(cached) " >&6
252b5132 12495else
20e95c23 12496
81ecdfbb
RW
12497 ac_save_LIBS=$LIBS
12498 ac_cv_lib_lex='none needed'
12499 for ac_lib in '' -lfl -ll; do
12500 LIBS="$ac_lib $ac_save_LIBS"
12501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12502/* end confdefs.h. */
12503`cat $LEX_OUTPUT_ROOT.c`
12504_ACEOF
12505if ac_fn_c_try_link "$LINENO"; then :
12506 ac_cv_lib_lex=$ac_lib
20e95c23 12507fi
81ecdfbb
RW
12508rm -f core conftest.err conftest.$ac_objext \
12509 conftest$ac_exeext conftest.$ac_ext
12510 test "$ac_cv_lib_lex" != 'none needed' && break
12511 done
12512 LIBS=$ac_save_LIBS
20e95c23
DJ
12513
12514fi
81ecdfbb
RW
12515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12516$as_echo "$ac_cv_lib_lex" >&6; }
12517 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
d7040cdb 12518fi
20e95c23 12519
20e95c23 12520
81ecdfbb
RW
12521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12522$as_echo_n "checking whether yytext is a pointer... " >&6; }
12523if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
12524 $as_echo_n "(cached) " >&6
d7040cdb
SE
12525else
12526 # POSIX says lex can declare yytext either as a pointer or an array; the
81ecdfbb 12527# default is implementation-dependent. Figure out which it is, since
d7040cdb
SE
12528# not all implementations provide the %pointer and %array declarations.
12529ac_cv_prog_lex_yytext_pointer=no
d7040cdb 12530ac_save_LIBS=$LIBS
81ecdfbb
RW
12531LIBS="$LEXLIB $ac_save_LIBS"
12532cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12533/* end confdefs.h. */
12534#define YYTEXT_POINTER 1
d7040cdb 12535`cat $LEX_OUTPUT_ROOT.c`
20e95c23 12536_ACEOF
81ecdfbb 12537if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 12538 ac_cv_prog_lex_yytext_pointer=yes
d7040cdb 12539fi
81ecdfbb
RW
12540rm -f core conftest.err conftest.$ac_objext \
12541 conftest$ac_exeext conftest.$ac_ext
d7040cdb 12542LIBS=$ac_save_LIBS
d7040cdb
SE
12543
12544fi
81ecdfbb
RW
12545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12546$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
d7040cdb
SE
12547if test $ac_cv_prog_lex_yytext_pointer = yes; then
12548
81ecdfbb 12549$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
d7040cdb
SE
12550
12551fi
81ecdfbb 12552rm -f conftest.l $LEX_OUTPUT_ROOT.c
d7040cdb
SE
12553
12554fi
12555if test "$LEX" = :; then
12556 LEX=${am_missing_run}flex
12557fi
12558
81ecdfbb
RW
12559
12560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12561$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12562 # Check whether --enable-maintainer-mode was given.
12563if test "${enable_maintainer_mode+set}" = set; then :
12564 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
252b5132 12565else
d7040cdb 12566 USE_MAINTAINER_MODE=no
81ecdfbb 12567fi
d7040cdb 12568
81ecdfbb
RW
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12570$as_echo "$USE_MAINTAINER_MODE" >&6; }
12571 if test $USE_MAINTAINER_MODE = yes; then
d7040cdb
SE
12572 MAINTAINER_MODE_TRUE=
12573 MAINTAINER_MODE_FALSE='#'
12574else
12575 MAINTAINER_MODE_TRUE='#'
12576 MAINTAINER_MODE_FALSE=
252b5132 12577fi
252b5132 12578
d7040cdb
SE
12579 MAINT=$MAINTAINER_MODE_TRUE
12580
12581
81ecdfbb 12582 if false; then
d7040cdb
SE
12583 GENINSRC_NEVER_TRUE=
12584 GENINSRC_NEVER_FALSE='#'
12585else
12586 GENINSRC_NEVER_TRUE='#'
12587 GENINSRC_NEVER_FALSE=
252b5132
RH
12588fi
12589
81ecdfbb
RW
12590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
12591$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
12592if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
12593 $as_echo_n "(cached) " >&6
eccbf555
AM
12594else
12595 echo abfoo >t1
12596 echo cdfoo >t2
12597 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
12598 if cmp t1 t2 2 2 > /dev/null 2>&1; then
12599 if cmp t1 t2 1 1 > /dev/null 2>&1; then
12600 :
12601 else
12602 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
12603 fi
12604 fi
12605 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
12606 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
12607 :
12608 else
12609 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
12610 fi
12611 fi
12612 rm t1 t2
12613
12614fi
81ecdfbb
RW
12615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
12616$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
eccbf555
AM
12617do_compare="$gcc_cv_prog_cmp_skip"
12618
12619
d7040cdb
SE
12620
12621. ${srcdir}/configure.host
12622
12623
12624
12625
252b5132
RH
12626
12627
a3ffa599 12628for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h sys/param.h
81ecdfbb
RW
12629do :
12630 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12631ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12632eval as_val=\$$as_ac_Header
12633 if test "x$as_val" = x""yes; then :
42ecbf5e 12634 cat >>confdefs.h <<_ACEOF
81ecdfbb 12635#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
42ecbf5e
DJ
12636_ACEOF
12637
12638fi
12639
252b5132
RH
12640done
12641
5d3236ee
DK
12642for ac_header in fcntl.h sys/file.h sys/time.h sys/stat.h
12643do :
12644 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12645ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12646eval as_val=\$$as_ac_Header
12647 if test "x$as_val" = x""yes; then :
12648 cat >>confdefs.h <<_ACEOF
12649#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12650_ACEOF
12651
12652fi
12653
12654done
12655
dc27aea4 12656for ac_func in glob mkstemp realpath sbrk waitpid
81ecdfbb
RW
12657do :
12658 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12659ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12660eval as_val=\$$as_ac_var
12661 if test "x$as_val" = x""yes; then :
42ecbf5e 12662 cat >>confdefs.h <<_ACEOF
81ecdfbb 12663#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42ecbf5e 12664_ACEOF
252b5132 12665
252b5132
RH
12666fi
12667done
12668
5d3236ee
DK
12669for ac_func in open lseek close
12670do :
12671 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12672ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12673eval as_val=\$$as_ac_var
12674 if test "x$as_val" = x""yes; then :
12675 cat >>confdefs.h <<_ACEOF
12676#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12677_ACEOF
12678
12679fi
12680done
12681
252b5132 12682ac_header_dirent=no
42ecbf5e 12683for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
81ecdfbb
RW
12684 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
12686$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
12687if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
12688 $as_echo_n "(cached) " >&6
12689else
12690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 12691/* end confdefs.h. */
252b5132
RH
12692#include <sys/types.h>
12693#include <$ac_hdr>
42ecbf5e
DJ
12694
12695int
12696main ()
12697{
12698if ((DIR *) 0)
12699return 0;
12700 ;
12701 return 0;
12702}
12703_ACEOF
81ecdfbb 12704if ac_fn_c_try_compile "$LINENO"; then :
42ecbf5e
DJ
12705 eval "$as_ac_Header=yes"
12706else
81ecdfbb 12707 eval "$as_ac_Header=no"
42ecbf5e 12708fi
81ecdfbb 12709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e 12710fi
81ecdfbb
RW
12711eval ac_res=\$$as_ac_Header
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12713$as_echo "$ac_res" >&6; }
12714eval as_val=\$$as_ac_Header
12715 if test "x$as_val" = x""yes; then :
42ecbf5e 12716 cat >>confdefs.h <<_ACEOF
81ecdfbb 12717#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
42ecbf5e
DJ
12718_ACEOF
12719
12720ac_header_dirent=$ac_hdr; break
d15b04bd 12721fi
42ecbf5e 12722
d15b04bd
L
12723done
12724# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12725if test $ac_header_dirent = dirent.h; then
81ecdfbb
RW
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12727$as_echo_n "checking for library containing opendir... " >&6; }
12728if test "${ac_cv_search_opendir+set}" = set; then :
12729 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
12730else
12731 ac_func_search_save_LIBS=$LIBS
81ecdfbb 12732cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
12733/* end confdefs.h. */
12734
81ecdfbb
RW
12735/* Override any GCC internal prototype to avoid an error.
12736 Use char because int might match the return type of a GCC
12737 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
12738#ifdef __cplusplus
12739extern "C"
12740#endif
42ecbf5e
DJ
12741char opendir ();
12742int
12743main ()
12744{
81ecdfbb 12745return opendir ();
42ecbf5e
DJ
12746 ;
12747 return 0;
12748}
12749_ACEOF
81ecdfbb
RW
12750for ac_lib in '' dir; do
12751 if test -z "$ac_lib"; then
12752 ac_res="none required"
12753 else
12754 ac_res=-l$ac_lib
42ecbf5e 12755 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
12756 fi
12757 if ac_fn_c_try_link "$LINENO"; then :
12758 ac_cv_search_opendir=$ac_res
12759fi
12760rm -f core conftest.err conftest.$ac_objext \
12761 conftest$ac_exeext
12762 if test "${ac_cv_search_opendir+set}" = set; then :
12763 break
12764fi
12765done
12766if test "${ac_cv_search_opendir+set}" = set; then :
e5a52504 12767
42ecbf5e 12768else
81ecdfbb 12769 ac_cv_search_opendir=no
252b5132 12770fi
81ecdfbb 12771rm conftest.$ac_ext
42ecbf5e
DJ
12772LIBS=$ac_func_search_save_LIBS
12773fi
81ecdfbb
RW
12774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12775$as_echo "$ac_cv_search_opendir" >&6; }
12776ac_res=$ac_cv_search_opendir
12777if test "$ac_res" != no; then :
12778 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e 12779
d15b04bd 12780fi
252b5132
RH
12781
12782else
81ecdfbb
RW
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12784$as_echo_n "checking for library containing opendir... " >&6; }
12785if test "${ac_cv_search_opendir+set}" = set; then :
12786 $as_echo_n "(cached) " >&6
252b5132 12787else
42ecbf5e 12788 ac_func_search_save_LIBS=$LIBS
81ecdfbb 12789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
12790/* end confdefs.h. */
12791
81ecdfbb
RW
12792/* Override any GCC internal prototype to avoid an error.
12793 Use char because int might match the return type of a GCC
12794 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
12795#ifdef __cplusplus
12796extern "C"
12797#endif
42ecbf5e
DJ
12798char opendir ();
12799int
12800main ()
12801{
81ecdfbb 12802return opendir ();
42ecbf5e
DJ
12803 ;
12804 return 0;
12805}
12806_ACEOF
81ecdfbb
RW
12807for ac_lib in '' x; do
12808 if test -z "$ac_lib"; then
12809 ac_res="none required"
12810 else
12811 ac_res=-l$ac_lib
42ecbf5e 12812 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
12813 fi
12814 if ac_fn_c_try_link "$LINENO"; then :
12815 ac_cv_search_opendir=$ac_res
12816fi
12817rm -f core conftest.err conftest.$ac_objext \
12818 conftest$ac_exeext
12819 if test "${ac_cv_search_opendir+set}" = set; then :
12820 break
12821fi
12822done
12823if test "${ac_cv_search_opendir+set}" = set; then :
252b5132 12824
42ecbf5e 12825else
81ecdfbb 12826 ac_cv_search_opendir=no
252b5132 12827fi
81ecdfbb 12828rm conftest.$ac_ext
42ecbf5e 12829LIBS=$ac_func_search_save_LIBS
252b5132 12830fi
81ecdfbb
RW
12831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12832$as_echo "$ac_cv_search_opendir" >&6; }
12833ac_res=$ac_cv_search_opendir
12834if test "$ac_res" != no; then :
12835 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e 12836
d15b04bd 12837fi
252b5132
RH
12838
12839fi
12840
12841
5d3236ee
DK
12842# Check for dlopen support and enable plugins if possible.
12843enable_plugins=yes
12844ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12845"
12846if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
12847
12848else
12849 enable_plugins=no
12850fi
12851
12852
12853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12854$as_echo_n "checking for library containing dlopen... " >&6; }
12855if test "${ac_cv_search_dlopen+set}" = set; then :
12856 $as_echo_n "(cached) " >&6
12857else
12858 ac_func_search_save_LIBS=$LIBS
12859cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12860/* end confdefs.h. */
12861
12862/* Override any GCC internal prototype to avoid an error.
12863 Use char because int might match the return type of a GCC
12864 builtin and then its argument prototype would still apply. */
12865#ifdef __cplusplus
12866extern "C"
12867#endif
12868char dlopen ();
12869int
12870main ()
12871{
12872return dlopen ();
12873 ;
12874 return 0;
12875}
12876_ACEOF
12877for ac_lib in '' dl; do
12878 if test -z "$ac_lib"; then
12879 ac_res="none required"
12880 else
12881 ac_res=-l$ac_lib
12882 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12883 fi
12884 if ac_fn_c_try_link "$LINENO"; then :
12885 ac_cv_search_dlopen=$ac_res
12886fi
12887rm -f core conftest.err conftest.$ac_objext \
12888 conftest$ac_exeext
12889 if test "${ac_cv_search_dlopen+set}" = set; then :
12890 break
12891fi
12892done
12893if test "${ac_cv_search_dlopen+set}" = set; then :
12894
12895else
12896 ac_cv_search_dlopen=no
12897fi
12898rm conftest.$ac_ext
12899LIBS=$ac_func_search_save_LIBS
12900fi
12901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12902$as_echo "$ac_cv_search_dlopen" >&6; }
12903ac_res=$ac_cv_search_dlopen
12904if test "$ac_res" != no; then :
12905 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12906
12907else
12908 enable_plugins=no
12909fi
12910
12911for ac_func in dlopen dlsym dlclose
12912do :
12913 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12914ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12915eval as_val=\$$as_ac_var
12916 if test "x$as_val" = x""yes; then :
12917 cat >>confdefs.h <<_ACEOF
12918#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12919_ACEOF
12920
12921else
12922 enable_plugins=no
12923fi
12924done
12925
3917d5d5
DK
12926# We also support plugins on Windows (MinGW).
12927if test x$enable_plugins = xno ; then
12928 for ac_header in Windows.h
12929do :
12930 ac_fn_c_check_header_compile "$LINENO" "Windows.h" "ac_cv_header_Windows_h" "$ac_includes_default
12931"
12932if test "x$ac_cv_header_Windows_h" = x""yes; then :
12933 cat >>confdefs.h <<_ACEOF
12934#define HAVE_WINDOWS_H 1
12935_ACEOF
12936 enable_plugins=yes
12937fi
12938
12939done
12940
12941fi
5d3236ee
DK
12942 if test x$enable_plugins = xyes; then
12943 ENABLE_PLUGINS_TRUE=
12944 ENABLE_PLUGINS_FALSE='#'
12945else
12946 ENABLE_PLUGINS_TRUE='#'
12947 ENABLE_PLUGINS_FALSE=
12948fi
12949
12950
02ecc8e9
L
12951# Check whether --enable-initfini-array was given.
12952if test "${enable_initfini_array+set}" = set; then :
12953 enableval=$enable_initfini_array;
12954else
12955
12956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
12957$as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
12958if test "${gcc_cv_initfini_array+set}" = set; then :
12959 $as_echo_n "(cached) " >&6
12960else
12961 if test "x${build}" = "x${target}" ; then
12962 if test "$cross_compiling" = yes; then :
12963 gcc_cv_initfini_array=no
12964else
12965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12966/* end confdefs.h. */
12967
12968static int x = -1;
12969int main (void) { return x; }
12970int foo (void) { x = 0; }
12971int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12972_ACEOF
12973if ac_fn_c_try_run "$LINENO"; then :
12974 gcc_cv_initfini_array=yes
12975else
12976 gcc_cv_initfini_array=no
12977fi
12978rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12979 conftest.$ac_objext conftest.beam conftest.$ac_ext
12980fi
12981
12982 else
12983 gcc_cv_initfini_array=no
12984 fi
12985fi
12986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
12987$as_echo "$gcc_cv_initfini_array" >&6; }
12988 enable_initfini_array=$gcc_cv_initfini_array
12989
12990fi
12991
12992
12993if test $enable_initfini_array = yes; then
12994
12995$as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
12996
12997fi
12998
81ecdfbb
RW
12999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
13000$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
13001if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then :
13002 $as_echo_n "(cached) " >&6
34875e64 13003else
81ecdfbb 13004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 13005/* end confdefs.h. */
34875e64 13006#include <unistd.h>
42ecbf5e
DJ
13007int
13008main ()
13009{
34875e64 13010extern int getopt (int, char *const*, const char *);
42ecbf5e
DJ
13011 ;
13012 return 0;
13013}
13014_ACEOF
81ecdfbb 13015if ac_fn_c_try_compile "$LINENO"; then :
34875e64
NC
13016 ld_cv_decl_getopt_unistd_h=yes
13017else
81ecdfbb 13018 ld_cv_decl_getopt_unistd_h=no
34875e64 13019fi
81ecdfbb 13020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34875e64
NC
13021fi
13022
81ecdfbb
RW
13023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5
13024$as_echo "$ld_cv_decl_getopt_unistd_h" >&6; }
34875e64 13025if test $ld_cv_decl_getopt_unistd_h = yes; then
42ecbf5e 13026
81ecdfbb 13027$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
34875e64
NC
13028
13029fi
42ecbf5e 13030
252b5132
RH
13031
13032case "${host}" in
a8100d5b 13033*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
42ecbf5e 13034
81ecdfbb 13035$as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
252b5132
RH
13036 ;;
13037esac
13038
81ecdfbb
RW
13039ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13040if test "x$ac_cv_have_decl_strstr" = x""yes; then :
13041 ac_have_decl=1
252b5132 13042else
81ecdfbb
RW
13043 ac_have_decl=0
13044fi
502bdb00 13045
81ecdfbb
RW
13046cat >>confdefs.h <<_ACEOF
13047#define HAVE_DECL_STRSTR $ac_have_decl
42ecbf5e 13048_ACEOF
81ecdfbb
RW
13049ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
13050if test "x$ac_cv_have_decl_free" = x""yes; then :
13051 ac_have_decl=1
252b5132 13052else
81ecdfbb 13053 ac_have_decl=0
252b5132
RH
13054fi
13055
502bdb00 13056cat >>confdefs.h <<_ACEOF
81ecdfbb 13057#define HAVE_DECL_FREE $ac_have_decl
502bdb00 13058_ACEOF
81ecdfbb
RW
13059ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
13060if test "x$ac_cv_have_decl_sbrk" = x""yes; then :
13061 ac_have_decl=1
13062else
13063 ac_have_decl=0
13064fi
42ecbf5e 13065
81ecdfbb
RW
13066cat >>confdefs.h <<_ACEOF
13067#define HAVE_DECL_SBRK $ac_have_decl
13068_ACEOF
13069ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
13070if test "x$ac_cv_have_decl_getenv" = x""yes; then :
13071 ac_have_decl=1
13072else
13073 ac_have_decl=0
13074fi
502bdb00 13075
81ecdfbb
RW
13076cat >>confdefs.h <<_ACEOF
13077#define HAVE_DECL_GETENV $ac_have_decl
13078_ACEOF
13079ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
13080if test "x$ac_cv_have_decl_environ" = x""yes; then :
13081 ac_have_decl=1
502bdb00 13082else
81ecdfbb
RW
13083 ac_have_decl=0
13084fi
13085
13086cat >>confdefs.h <<_ACEOF
13087#define HAVE_DECL_ENVIRON $ac_have_decl
42ecbf5e 13088_ACEOF
252b5132 13089
252b5132 13090
81ecdfbb
RW
13091# Link in zlib if we can. This is needed only for the bootstrap tests
13092# right now, since those tests use libbfd, which depends on zlib.
13093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
13094$as_echo_n "checking for library containing zlibVersion... " >&6; }
13095if test "${ac_cv_search_zlibVersion+set}" = set; then :
13096 $as_echo_n "(cached) " >&6
252b5132 13097else
81ecdfbb
RW
13098 ac_func_search_save_LIBS=$LIBS
13099cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 13100/* end confdefs.h. */
502bdb00 13101
81ecdfbb
RW
13102/* Override any GCC internal prototype to avoid an error.
13103 Use char because int might match the return type of a GCC
4474d12b 13104 builtin and then its argument prototype would still apply. */
4474d12b
CS
13105#ifdef __cplusplus
13106extern "C"
13107#endif
4474d12b
CS
13108char zlibVersion ();
13109int
13110main ()
13111{
81ecdfbb 13112return zlibVersion ();
4474d12b
CS
13113 ;
13114 return 0;
13115}
13116_ACEOF
81ecdfbb
RW
13117for ac_lib in '' z; do
13118 if test -z "$ac_lib"; then
13119 ac_res="none required"
4474d12b 13120 else
81ecdfbb
RW
13121 ac_res=-l$ac_lib
13122 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4474d12b 13123 fi
81ecdfbb
RW
13124 if ac_fn_c_try_link "$LINENO"; then :
13125 ac_cv_search_zlibVersion=$ac_res
4474d12b 13126fi
81ecdfbb
RW
13127rm -f core conftest.err conftest.$ac_objext \
13128 conftest$ac_exeext
13129 if test "${ac_cv_search_zlibVersion+set}" = set; then :
13130 break
4474d12b 13131fi
81ecdfbb
RW
13132done
13133if test "${ac_cv_search_zlibVersion+set}" = set; then :
4474d12b 13134
4474d12b 13135else
81ecdfbb 13136 ac_cv_search_zlibVersion=no
4474d12b 13137fi
81ecdfbb
RW
13138rm conftest.$ac_ext
13139LIBS=$ac_func_search_save_LIBS
4474d12b 13140fi
81ecdfbb
RW
13141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
13142$as_echo "$ac_cv_search_zlibVersion" >&6; }
13143ac_res=$ac_cv_search_zlibVersion
13144if test "$ac_res" != no; then :
13145 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13146 for ac_header in zlib.h
13147do :
13148 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13149if test "x$ac_cv_header_zlib_h" = x""yes; then :
4474d12b 13150 cat >>confdefs.h <<_ACEOF
81ecdfbb 13151#define HAVE_ZLIB_H 1
4474d12b
CS
13152_ACEOF
13153
13154fi
13155
13156done
13157
13158fi
13159
13160
597e2591
ILT
13161# When converting linker scripts into strings for use in emulation
13162# files, use astring.sed if the compiler supports ANSI string
13163# concatenation, or ostring.sed otherwise. This is to support the
13164# broken Microsoft MSVC compiler, which limits the length of string
13165# constants, while still supporting pre-ANSI compilers which do not
13166# support string concatenation.
81ecdfbb
RW
13167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ANSI C string concatenation works" >&5
13168$as_echo_n "checking whether ANSI C string concatenation works... " >&6; }
13169if test "${ld_cv_string_concatenation+set}" = set; then :
13170 $as_echo_n "(cached) " >&6
42ecbf5e 13171else
81ecdfbb 13172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 13173/* end confdefs.h. */
81ecdfbb 13174
314e9a4e
L
13175int
13176main ()
13177{
81ecdfbb 13178char *a = "a" "a";
314e9a4e
L
13179 ;
13180 return 0;
13181}
13182_ACEOF
81ecdfbb
RW
13183if ac_fn_c_try_compile "$LINENO"; then :
13184 ld_cv_string_concatenation=yes
314e9a4e 13185else
81ecdfbb 13186 ld_cv_string_concatenation=no
314e9a4e 13187fi
81ecdfbb 13188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
314e9a4e 13189fi
81ecdfbb
RW
13190
13191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_string_concatenation" >&5
13192$as_echo "$ld_cv_string_concatenation" >&6; }
13193if test "$ld_cv_string_concatenation" = "yes"; then
13194 STRINGIFY=astring.sed
13195else
13196 STRINGIFY=ostring.sed
314e9a4e 13197fi
81ecdfbb
RW
13198
13199
13200# target-specific stuff:
13201
13202all_targets=
13203EMUL=
13204all_emuls=
13205all_emul_extras=
13206all_libpath=
13207
13208rm -f tdirs
13209
13210for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
13211do
13212 if test "$targ_alias" = "all"; then
13213 all_targets=true
13214 else
13215 # Canonicalize the secondary target names.
13216 result=`$ac_config_sub $targ_alias 2>/dev/null`
13217 if test -n "$result"; then
13218 targ=$result
13219 else
13220 targ=$targ_alias
13221 fi
13222
13223 . ${srcdir}/configure.tgt
13224
13225 if test "$targ" = "$target"; then
13226 EMUL=$targ_emul
13227 fi
13228
13229 if test x${want64} = xfalse; then
13230 . ${srcdir}/../bfd/config.bfd
13231 fi
13232
13233 if test x${want64} = xtrue; then
13234 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
13235 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
13236 fi
13237
13238 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
13239 case " $all_emuls " in
13240 *" e${i}.o "*) ;;
13241 *)
13242 all_emuls="$all_emuls e${i}.o"
13243 eval result=\$tdir_$i
13244 test -z "$result" && result=$targ_alias
13245 echo tdir_$i=$result >> tdirs
13246 ;;
13247 esac
13248 done
13249
13250 for i in $targ_emul $targ_extra_libpath; do
13251 case " $all_libpath " in
13252 *" ${i} "*) ;;
13253 *)
13254 if test -z "$all_libpath"; then
13255 all_libpath=${i}
13256 else
13257 all_libpath="$all_libpath ${i}"
13258 fi
13259 ;;
13260 esac
13261 done
13262
13263 for i in $targ_extra_ofiles; do
13264 case " $all_emul_extras " in
13265 *" ${i} "*) ;;
13266 *)
13267 all_emul_extras="$all_emul_extras ${i}"
13268 ;;
13269 esac
13270 done
13271 fi
13272done
13273
13274
13275
13276TDIRS=tdirs
13277
13278
13279if test x${all_targets} = xtrue; then
13280 if test x${want64} = xfalse; then
13281 # The cast to long int works around a bug in the HP C Compiler
13282# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13283# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13284# This bug is HP SR number 8606223364.
13285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13286$as_echo_n "checking size of long... " >&6; }
13287if test "${ac_cv_sizeof_long+set}" = set; then :
13288 $as_echo_n "(cached) " >&6
13289else
13290 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13291
314e9a4e 13292else
81ecdfbb
RW
13293 if test "$ac_cv_type_long" = yes; then
13294 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13295$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13296{ as_fn_set_status 77
13297as_fn_error "cannot compute sizeof (long)
13298See \`config.log' for more details." "$LINENO" 5; }; }
13299 else
13300 ac_cv_sizeof_long=0
13301 fi
314e9a4e 13302fi
81ecdfbb 13303
314e9a4e 13304fi
81ecdfbb
RW
13305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13306$as_echo "$ac_cv_sizeof_long" >&6; }
13307
13308
13309
314e9a4e
L
13310cat >>confdefs.h <<_ACEOF
13311#define SIZEOF_LONG $ac_cv_sizeof_long
13312_ACEOF
13313
13314
13315 if test "x${ac_cv_sizeof_long}" = "x8"; then
13316 want64=true
13317 fi
13318 fi
42ecbf5e
DJ
13319 if test x${want64} = xtrue; then
13320 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
13321 else
13322 EMULATION_OFILES='$(ALL_EMULATIONS)'
13323 fi
13324 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
13325else
13326 EMULATION_OFILES=$all_emuls
13327 EMUL_EXTRA_OFILES=$all_emul_extras
13328fi
13329
13330
13331
13332
13333EMULATION_LIBPATH=$all_libpath
13334
13335
13336if test x${enable_static} = xno; then
13337 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
13338else
13339 TESTBFDLIB="../bfd/.libs/libbfd.a"
13340fi
13341
13342
13343target_vendor=${target_vendor=$host_vendor}
13344case "$target_vendor" in
13345 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
13346 *) EXTRA_SHLIB_EXTENSION= ;;
13347esac
13348
13349case "$target_os" in
13350 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
13351esac
13352
13353if test x${EXTRA_SHLIB_EXTENSION} != x ; then
13354
13355cat >>confdefs.h <<_ACEOF
13356#define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
13357_ACEOF
13358
13359fi
13360
108a6f8e
CD
13361
13362
13363
13364
31dd3154 13365
81ecdfbb 13366ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
da594c4a 13367
42ecbf5e
DJ
13368cat >confcache <<\_ACEOF
13369# This file is a shell script that caches the results of configure
13370# tests run on this system so they can be shared between configure
13371# scripts and configure runs, see configure's option --config-cache.
13372# It is not useful on other systems. If it contains results you don't
13373# want to keep, you may remove or edit it.
13374#
13375# config.status only pays attention to the cache file if you give it
13376# the --recheck option to rerun configure.
13377#
13378# `ac_cv_env_foo' variables (set or unset) will be overridden when
13379# loading this file, other *unset* `ac_cv_foo' will be assigned the
13380# following values.
13381
13382_ACEOF
13383
13384# The following way of writing the cache mishandles newlines in values,
13385# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 13386# So, we kill variables containing newlines.
42ecbf5e
DJ
13387# Ultrix sh set writes to stderr and can't be redirected directly,
13388# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
13389(
13390 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13391 eval ac_val=\$$ac_var
13392 case $ac_val in #(
13393 *${as_nl}*)
13394 case $ac_var in #(
13395 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13396$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13397 esac
13398 case $ac_var in #(
13399 _ | IFS | as_nl) ;; #(
13400 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13401 *) { eval $ac_var=; unset $ac_var;} ;;
13402 esac ;;
13403 esac
13404 done
13405
42ecbf5e 13406 (set) 2>&1 |
81ecdfbb
RW
13407 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13408 *${as_nl}ac_space=\ *)
13409 # `set' does not quote correctly, so add quotes: double-quote
13410 # substitution turns \\\\ into \\, and sed turns \\ into \.
42ecbf5e
DJ
13411 sed -n \
13412 "s/'/'\\\\''/g;
13413 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 13414 ;; #(
42ecbf5e
DJ
13415 *)
13416 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 13417 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42ecbf5e 13418 ;;
81ecdfbb
RW
13419 esac |
13420 sort
13421) |
42ecbf5e 13422 sed '
81ecdfbb 13423 /^ac_cv_env_/b end
42ecbf5e 13424 t clear
81ecdfbb 13425 :clear
42ecbf5e
DJ
13426 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13427 t end
81ecdfbb
RW
13428 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13429 :end' >>confcache
13430if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13431 if test -w "$cache_file"; then
13432 test "x$cache_file" != "x/dev/null" &&
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13434$as_echo "$as_me: updating cache $cache_file" >&6;}
42ecbf5e
DJ
13435 cat confcache >$cache_file
13436 else
81ecdfbb
RW
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13438$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
42ecbf5e
DJ
13439 fi
13440fi
13441rm -f confcache
13442
13443test "x$prefix" = xNONE && prefix=$ac_default_prefix
13444# Let make expand exec_prefix.
13445test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13446
42ecbf5e
DJ
13447DEFS=-DHAVE_CONFIG_H
13448
13449ac_libobjs=
13450ac_ltlibobjs=
13451for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13452 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
13453 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13454 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13455 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13456 # will be set to the directory where LIBOBJS objects are built.
13457 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13458 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
42ecbf5e
DJ
13459done
13460LIBOBJS=$ac_libobjs
13461
13462LTLIBOBJS=$ac_ltlibobjs
13463
13464
13465if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
81ecdfbb
RW
13466 as_fn_error "conditional \"AMDEP\" was never defined.
13467Usually this means the macro was only invoked conditionally." "$LINENO" 5
42ecbf5e
DJ
13468fi
13469if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
81ecdfbb
RW
13470 as_fn_error "conditional \"am__fastdepCC\" was never defined.
13471Usually this means the macro was only invoked conditionally." "$LINENO" 5
13472fi
13473 if test -n "$EXEEXT"; then
13474 am__EXEEXT_TRUE=
13475 am__EXEEXT_FALSE='#'
13476else
13477 am__EXEEXT_TRUE='#'
13478 am__EXEEXT_FALSE=
42ecbf5e 13479fi
81ecdfbb 13480
64ac50ac
RW
13481if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13482 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13483Usually this means the macro was only invoked conditionally." "$LINENO" 5
13484fi
42ecbf5e 13485if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
81ecdfbb
RW
13486 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13487Usually this means the macro was only invoked conditionally." "$LINENO" 5
42ecbf5e 13488fi
d5fbea21 13489if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
81ecdfbb
RW
13490 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
13491Usually this means the macro was only invoked conditionally." "$LINENO" 5
d5fbea21 13492fi
5d3236ee
DK
13493if test -z "${ENABLE_PLUGINS_TRUE}" && test -z "${ENABLE_PLUGINS_FALSE}"; then
13494 as_fn_error "conditional \"ENABLE_PLUGINS\" was never defined.
13495Usually this means the macro was only invoked conditionally." "$LINENO" 5
13496fi
42ecbf5e
DJ
13497
13498: ${CONFIG_STATUS=./config.status}
81ecdfbb 13499ac_write_fail=0
42ecbf5e
DJ
13500ac_clean_files_save=$ac_clean_files
13501ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
13502{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13503$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13504as_write_fail=0
13505cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
42ecbf5e
DJ
13506#! $SHELL
13507# Generated by $as_me.
13508# Run this file to recreate the current configuration.
13509# Compiler output produced by configure, useful for debugging
13510# configure, is in config.log if it exists.
13511
13512debug=false
13513ac_cs_recheck=false
13514ac_cs_silent=false
42ecbf5e 13515
81ecdfbb
RW
13516SHELL=\${CONFIG_SHELL-$SHELL}
13517export SHELL
13518_ASEOF
13519cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13520## -------------------- ##
13521## M4sh Initialization. ##
13522## -------------------- ##
42ecbf5e 13523
81ecdfbb
RW
13524# Be more Bourne compatible
13525DUALCASE=1; export DUALCASE # for MKS sh
13526if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
42ecbf5e
DJ
13527 emulate sh
13528 NULLCMD=:
81ecdfbb 13529 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
42ecbf5e
DJ
13530 # is contrary to our usage. Disable this feature.
13531 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
13532 setopt NO_GLOB_SUBST
13533else
13534 case `(set -o) 2>/dev/null` in #(
13535 *posix*) :
13536 set -o posix ;; #(
13537 *) :
13538 ;;
13539esac
42ecbf5e 13540fi
42ecbf5e 13541
81ecdfbb
RW
13542
13543as_nl='
13544'
13545export as_nl
13546# Printing a long string crashes Solaris 7 /usr/bin/printf.
13547as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13548as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13549as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13550# Prefer a ksh shell builtin over an external printf program on Solaris,
13551# but without wasting forks for bash or zsh.
13552if test -z "$BASH_VERSION$ZSH_VERSION" \
13553 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13554 as_echo='print -r --'
13555 as_echo_n='print -rn --'
13556elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13557 as_echo='printf %s\n'
13558 as_echo_n='printf %s'
13559else
13560 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13561 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13562 as_echo_n='/usr/ucb/echo -n'
13563 else
13564 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13565 as_echo_n_body='eval
13566 arg=$1;
13567 case $arg in #(
13568 *"$as_nl"*)
13569 expr "X$arg" : "X\\(.*\\)$as_nl";
13570 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13571 esac;
13572 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13573 '
13574 export as_echo_n_body
13575 as_echo_n='sh -c $as_echo_n_body as_echo'
13576 fi
13577 export as_echo_body
13578 as_echo='sh -c $as_echo_body as_echo'
13579fi
13580
13581# The user is always right.
13582if test "${PATH_SEPARATOR+set}" != set; then
13583 PATH_SEPARATOR=:
13584 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13585 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13586 PATH_SEPARATOR=';'
13587 }
42ecbf5e
DJ
13588fi
13589
13590
81ecdfbb
RW
13591# IFS
13592# We need space, tab and new line, in precisely that order. Quoting is
13593# there to prevent editors from complaining about space-tab.
13594# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13595# splitting by setting IFS to empty value.)
13596IFS=" "" $as_nl"
13597
13598# Find who we are. Look in the path if we contain no directory separator.
13599case $0 in #((
13600 *[\\/]* ) as_myself=$0 ;;
13601 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13602for as_dir in $PATH
13603do
13604 IFS=$as_save_IFS
13605 test -z "$as_dir" && as_dir=.
13606 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13607 done
13608IFS=$as_save_IFS
13609
13610 ;;
13611esac
13612# We did not find ourselves, most probably we were run as `sh COMMAND'
13613# in which case we are not to be found in the path.
13614if test "x$as_myself" = x; then
13615 as_myself=$0
13616fi
13617if test ! -f "$as_myself"; then
13618 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13619 exit 1
13620fi
13621
13622# Unset variables that we do not need and which cause bugs (e.g. in
13623# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13624# suppresses any "Segmentation fault" message there. '((' could
13625# trigger a bug in pdksh 5.2.14.
13626for as_var in BASH_ENV ENV MAIL MAILPATH
13627do eval test x\${$as_var+set} = xset \
13628 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13629done
42ecbf5e
DJ
13630PS1='$ '
13631PS2='> '
13632PS4='+ '
13633
13634# NLS nuisances.
81ecdfbb
RW
13635LC_ALL=C
13636export LC_ALL
13637LANGUAGE=C
13638export LANGUAGE
13639
13640# CDPATH.
13641(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13642
13643
13644# as_fn_error ERROR [LINENO LOG_FD]
13645# ---------------------------------
13646# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13647# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13648# script with status $?, using 1 if that was 0.
13649as_fn_error ()
13650{
13651 as_status=$?; test $as_status -eq 0 && as_status=1
13652 if test "$3"; then
13653 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13654 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
42ecbf5e 13655 fi
81ecdfbb
RW
13656 $as_echo "$as_me: error: $1" >&2
13657 as_fn_exit $as_status
13658} # as_fn_error
13659
13660
13661# as_fn_set_status STATUS
13662# -----------------------
13663# Set $? to STATUS, without forking.
13664as_fn_set_status ()
13665{
13666 return $1
13667} # as_fn_set_status
13668
13669# as_fn_exit STATUS
13670# -----------------
13671# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13672as_fn_exit ()
13673{
13674 set +e
13675 as_fn_set_status $1
13676 exit $1
13677} # as_fn_exit
13678
13679# as_fn_unset VAR
13680# ---------------
13681# Portably unset VAR.
13682as_fn_unset ()
13683{
13684 { eval $1=; unset $1;}
13685}
13686as_unset=as_fn_unset
13687# as_fn_append VAR VALUE
13688# ----------------------
13689# Append the text in VALUE to the end of the definition contained in VAR. Take
13690# advantage of any shell optimizations that allow amortized linear growth over
13691# repeated appends, instead of the typical quadratic growth present in naive
13692# implementations.
13693if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13694 eval 'as_fn_append ()
13695 {
13696 eval $1+=\$2
13697 }'
13698else
13699 as_fn_append ()
13700 {
13701 eval $1=\$$1\$2
13702 }
13703fi # as_fn_append
13704
13705# as_fn_arith ARG...
13706# ------------------
13707# Perform arithmetic evaluation on the ARGs, and store the result in the
13708# global $as_val. Take advantage of shells that can avoid forks. The arguments
13709# must be portable across $(()) and expr.
13710if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13711 eval 'as_fn_arith ()
13712 {
13713 as_val=$(( $* ))
13714 }'
13715else
13716 as_fn_arith ()
13717 {
13718 as_val=`expr "$@" || test $? -eq 1`
13719 }
13720fi # as_fn_arith
13721
42ecbf5e 13722
81ecdfbb
RW
13723if expr a : '\(a\)' >/dev/null 2>&1 &&
13724 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42ecbf5e
DJ
13725 as_expr=expr
13726else
13727 as_expr=false
13728fi
13729
81ecdfbb 13730if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42ecbf5e
DJ
13731 as_basename=basename
13732else
13733 as_basename=false
13734fi
13735
81ecdfbb
RW
13736if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13737 as_dirname=dirname
13738else
13739 as_dirname=false
13740fi
42ecbf5e 13741
81ecdfbb 13742as_me=`$as_basename -- "$0" ||
42ecbf5e
DJ
13743$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13744 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
13745 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13746$as_echo X/"$0" |
13747 sed '/^.*\/\([^/][^/]*\)\/*$/{
13748 s//\1/
13749 q
13750 }
13751 /^X\/\(\/\/\)$/{
13752 s//\1/
13753 q
13754 }
13755 /^X\/\(\/\).*/{
13756 s//\1/
13757 q
13758 }
13759 s/.*/./; q'`
42ecbf5e 13760
42ecbf5e
DJ
13761# Avoid depending upon Character Ranges.
13762as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13763as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13764as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13765as_cr_digits='0123456789'
13766as_cr_alnum=$as_cr_Letters$as_cr_digits
13767
81ecdfbb
RW
13768ECHO_C= ECHO_N= ECHO_T=
13769case `echo -n x` in #(((((
13770-n*)
13771 case `echo 'xy\c'` in
13772 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13773 xy) ECHO_C='\c';;
13774 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13775 ECHO_T=' ';;
13776 esac;;
13777*)
13778 ECHO_N='-n';;
42ecbf5e 13779esac
252b5132 13780
81ecdfbb
RW
13781rm -f conf$$ conf$$.exe conf$$.file
13782if test -d conf$$.dir; then
13783 rm -f conf$$.dir/conf$$.file
42ecbf5e 13784else
81ecdfbb
RW
13785 rm -f conf$$.dir
13786 mkdir conf$$.dir 2>/dev/null
42ecbf5e 13787fi
81ecdfbb
RW
13788if (echo >conf$$.file) 2>/dev/null; then
13789 if ln -s conf$$.file conf$$ 2>/dev/null; then
42ecbf5e 13790 as_ln_s='ln -s'
81ecdfbb
RW
13791 # ... but there are two gotchas:
13792 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13793 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13794 # In both cases, we have to default to `cp -p'.
13795 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13796 as_ln_s='cp -p'
13797 elif ln conf$$.file conf$$ 2>/dev/null; then
13798 as_ln_s=ln
13799 else
13800 as_ln_s='cp -p'
252b5132 13801 fi
e5a52504 13802else
42ecbf5e 13803 as_ln_s='cp -p'
e5a52504 13804fi
81ecdfbb
RW
13805rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13806rmdir conf$$.dir 2>/dev/null
13807
13808
13809# as_fn_mkdir_p
13810# -------------
13811# Create "$as_dir" as a directory, including parents if necessary.
13812as_fn_mkdir_p ()
13813{
13814
13815 case $as_dir in #(
13816 -*) as_dir=./$as_dir;;
13817 esac
13818 test -d "$as_dir" || eval $as_mkdir_p || {
13819 as_dirs=
13820 while :; do
13821 case $as_dir in #(
13822 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13823 *) as_qdir=$as_dir;;
13824 esac
13825 as_dirs="'$as_qdir' $as_dirs"
13826 as_dir=`$as_dirname -- "$as_dir" ||
13827$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13828 X"$as_dir" : 'X\(//\)[^/]' \| \
13829 X"$as_dir" : 'X\(//\)$' \| \
13830 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13831$as_echo X"$as_dir" |
13832 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13833 s//\1/
13834 q
13835 }
13836 /^X\(\/\/\)[^/].*/{
13837 s//\1/
13838 q
13839 }
13840 /^X\(\/\/\)$/{
13841 s//\1/
13842 q
13843 }
13844 /^X\(\/\).*/{
13845 s//\1/
13846 q
13847 }
13848 s/.*/./; q'`
13849 test -d "$as_dir" && break
13850 done
13851 test -z "$as_dirs" || eval "mkdir $as_dirs"
13852 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13853
252b5132 13854
81ecdfbb 13855} # as_fn_mkdir_p
42ecbf5e 13856if mkdir -p . 2>/dev/null; then
81ecdfbb 13857 as_mkdir_p='mkdir -p "$as_dir"'
42ecbf5e
DJ
13858else
13859 test -d ./-p && rmdir ./-p
13860 as_mkdir_p=false
13861fi
252b5132 13862
81ecdfbb
RW
13863if test -x / >/dev/null 2>&1; then
13864 as_test_x='test -x'
13865else
13866 if ls -dL / >/dev/null 2>&1; then
13867 as_ls_L_option=L
13868 else
13869 as_ls_L_option=
13870 fi
13871 as_test_x='
13872 eval sh -c '\''
13873 if test -d "$1"; then
13874 test -d "$1/.";
13875 else
13876 case $1 in #(
13877 -*)set "./$1";;
13878 esac;
13879 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13880 ???[sx]*):;;*)false;;esac;fi
13881 '\'' sh
13882 '
13883fi
13884as_executable_p=$as_test_x
252b5132 13885
42ecbf5e
DJ
13886# Sed expression to map a string onto a valid CPP name.
13887as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
f234d5fe 13888
42ecbf5e
DJ
13889# Sed expression to map a string onto a valid variable name.
13890as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
e5a52504 13891
e5a52504 13892
42ecbf5e 13893exec 6>&1
81ecdfbb
RW
13894## ----------------------------------- ##
13895## Main body of $CONFIG_STATUS script. ##
13896## ----------------------------------- ##
13897_ASEOF
13898test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
e5a52504 13899
81ecdfbb
RW
13900cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13901# Save the log message, to keep $0 and so on meaningful, and to
42ecbf5e 13902# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
13903# values after options handling.
13904ac_log="
42ecbf5e 13905This file was extended by $as_me, which was
81ecdfbb 13906generated by GNU Autoconf 2.64. Invocation command line was
42ecbf5e
DJ
13907
13908 CONFIG_FILES = $CONFIG_FILES
13909 CONFIG_HEADERS = $CONFIG_HEADERS
13910 CONFIG_LINKS = $CONFIG_LINKS
13911 CONFIG_COMMANDS = $CONFIG_COMMANDS
13912 $ $0 $@
e5a52504 13913
81ecdfbb
RW
13914on `(hostname || uname -n) 2>/dev/null | sed 1q`
13915"
13916
42ecbf5e
DJ
13917_ACEOF
13918
81ecdfbb
RW
13919case $ac_config_files in *"
13920"*) set x $ac_config_files; shift; ac_config_files=$*;;
13921esac
e5a52504 13922
81ecdfbb
RW
13923case $ac_config_headers in *"
13924"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13925esac
42ecbf5e 13926
42ecbf5e 13927
81ecdfbb
RW
13928cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13929# Files that config.status was made for.
13930config_files="$ac_config_files"
13931config_headers="$ac_config_headers"
13932config_commands="$ac_config_commands"
42ecbf5e 13933
81ecdfbb 13934_ACEOF
42ecbf5e 13935
81ecdfbb 13936cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e 13937ac_cs_usage="\
81ecdfbb
RW
13938\`$as_me' instantiates files and other configuration actions
13939from templates according to the current configuration. Unless the files
13940and actions are specified as TAGs, all are instantiated by default.
42ecbf5e 13941
81ecdfbb 13942Usage: $0 [OPTION]... [TAG]...
42ecbf5e
DJ
13943
13944 -h, --help print this help, then exit
81ecdfbb
RW
13945 -V, --version print version number and configuration settings, then exit
13946 -q, --quiet, --silent
13947 do not print progress messages
42ecbf5e
DJ
13948 -d, --debug don't remove temporary files
13949 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
13950 --file=FILE[:TEMPLATE]
13951 instantiate the configuration file FILE
13952 --header=FILE[:TEMPLATE]
13953 instantiate the configuration header FILE
42ecbf5e
DJ
13954
13955Configuration files:
13956$config_files
13957
13958Configuration headers:
13959$config_headers
13960
13961Configuration commands:
13962$config_commands
13963
81ecdfbb 13964Report bugs to the package provider."
42ecbf5e 13965
81ecdfbb
RW
13966_ACEOF
13967cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42ecbf5e
DJ
13968ac_cs_version="\\
13969config.status
81ecdfbb
RW
13970configured by $0, generated by GNU Autoconf 2.64,
13971 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
42ecbf5e 13972
81ecdfbb 13973Copyright (C) 2009 Free Software Foundation, Inc.
42ecbf5e
DJ
13974This config.status script is free software; the Free Software Foundation
13975gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
13976
13977ac_pwd='$ac_pwd'
13978srcdir='$srcdir'
13979INSTALL='$INSTALL'
13980MKDIR_P='$MKDIR_P'
13981AWK='$AWK'
13982test -n "\$AWK" || AWK=awk
42ecbf5e
DJ
13983_ACEOF
13984
81ecdfbb
RW
13985cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13986# The default lists apply if the user does not specify any file.
42ecbf5e
DJ
13987ac_need_defaults=:
13988while test $# != 0
13989do
13990 case $1 in
13991 --*=*)
81ecdfbb
RW
13992 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13993 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
42ecbf5e 13994 ac_shift=:
252b5132 13995 ;;
81ecdfbb 13996 *)
42ecbf5e
DJ
13997 ac_option=$1
13998 ac_optarg=$2
13999 ac_shift=shift
252b5132 14000 ;;
42ecbf5e 14001 esac
252b5132 14002
42ecbf5e
DJ
14003 case $ac_option in
14004 # Handling of the options.
42ecbf5e
DJ
14005 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14006 ac_cs_recheck=: ;;
81ecdfbb
RW
14007 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14008 $as_echo "$ac_cs_version"; exit ;;
14009 --debug | --debu | --deb | --de | --d | -d )
42ecbf5e
DJ
14010 debug=: ;;
14011 --file | --fil | --fi | --f )
14012 $ac_shift
81ecdfbb
RW
14013 case $ac_optarg in
14014 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14015 esac
14016 as_fn_append CONFIG_FILES " '$ac_optarg'"
42ecbf5e
DJ
14017 ac_need_defaults=false;;
14018 --header | --heade | --head | --hea )
14019 $ac_shift
81ecdfbb
RW
14020 case $ac_optarg in
14021 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14022 esac
14023 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
42ecbf5e 14024 ac_need_defaults=false;;
81ecdfbb
RW
14025 --he | --h)
14026 # Conflict between --help and --header
14027 as_fn_error "ambiguous option: \`$1'
14028Try \`$0 --help' for more information.";;
14029 --help | --hel | -h )
14030 $as_echo "$ac_cs_usage"; exit ;;
42ecbf5e
DJ
14031 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14032 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14033 ac_cs_silent=: ;;
252b5132 14034
42ecbf5e 14035 # This is an error.
81ecdfbb
RW
14036 -*) as_fn_error "unrecognized option: \`$1'
14037Try \`$0 --help' for more information." ;;
252b5132 14038
81ecdfbb
RW
14039 *) as_fn_append ac_config_targets " $1"
14040 ac_need_defaults=false ;;
252b5132 14041
42ecbf5e
DJ
14042 esac
14043 shift
14044done
d15b04bd 14045
42ecbf5e 14046ac_configure_extra_args=
e5a52504 14047
42ecbf5e
DJ
14048if $ac_cs_silent; then
14049 exec 6>/dev/null
14050 ac_configure_extra_args="$ac_configure_extra_args --silent"
14051fi
e5a52504 14052
42ecbf5e 14053_ACEOF
81ecdfbb 14054cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42ecbf5e 14055if \$ac_cs_recheck; then
81ecdfbb
RW
14056 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14057 shift
14058 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14059 CONFIG_SHELL='$SHELL'
14060 export CONFIG_SHELL
14061 exec "\$@"
42ecbf5e
DJ
14062fi
14063
14064_ACEOF
81ecdfbb
RW
14065cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14066exec 5>>config.log
14067{
14068 echo
14069 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14070## Running $as_me. ##
14071_ASBOX
14072 $as_echo "$ac_log"
14073} >&5
42ecbf5e 14074
81ecdfbb
RW
14075_ACEOF
14076cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
252b5132 14077#
81ecdfbb 14078# INIT-COMMANDS
252b5132 14079#
42ecbf5e 14080AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
14081
14082
14083# The HP-UX ksh and POSIX shell print the target directory to stdout
14084# if CDPATH is set.
14085(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14086
14087sed_quote_subst='$sed_quote_subst'
14088double_quote_subst='$double_quote_subst'
14089delay_variable_subst='$delay_variable_subst'
3725885a
RW
14090macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14091macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14092enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14093enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14094pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14095enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14096SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14097ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14098host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14099host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14100host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14101build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14102build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14103build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14104SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14105Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14106GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14107EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14108FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14109LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14110NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14111LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14112max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14113ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14114exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14115lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14116lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14117lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14118reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14119reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14120OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14121deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14122file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14123AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14124AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14125STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14126RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14127old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14128old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14129old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14130lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14131CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14132CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14133compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14134GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14135lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14136lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14137lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14138lt_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"`'
14139objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14140MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14141lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14142lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14143lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14144lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14145lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14146need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14147DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14148NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14149LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14150OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14151OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14152libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14153shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14154extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14155archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14156enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14157export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14158whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14159compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14160old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14161old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14162archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14163archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14164module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14165module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14166with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14167allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14168no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14169hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14170hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14171hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14172hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14173hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14174hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14175hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14176hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14177inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14178link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14179fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
14180always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14181export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14182exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14183include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14184prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14185file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14186variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14187need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14188need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14189version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14190runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14191shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14192shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14193libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14194library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14195soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14196install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14197postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14198postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14199finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14200finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14201hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14202sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14203sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14204hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14205enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14206enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14207enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14208old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14209striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
d7040cdb
SE
14210
14211LTCC='$LTCC'
14212LTCFLAGS='$LTCFLAGS'
14213compiler='$compiler_DEFAULT'
14214
3725885a
RW
14215# A function that is used when there is no print builtin or printf.
14216func_fallback_echo ()
14217{
14218 eval 'cat <<_LTECHO_EOF
14219\$1
14220_LTECHO_EOF'
14221}
14222
d7040cdb 14223# Quote evaled strings.
3725885a
RW
14224for var in SHELL \
14225ECHO \
14226SED \
d7040cdb
SE
14227GREP \
14228EGREP \
14229FGREP \
14230LD \
14231NM \
14232LN_S \
14233lt_SP2NL \
14234lt_NL2SP \
14235reload_flag \
b214d478 14236OBJDUMP \
d7040cdb
SE
14237deplibs_check_method \
14238file_magic_cmd \
14239AR \
14240AR_FLAGS \
14241STRIP \
14242RANLIB \
14243CC \
14244CFLAGS \
14245compiler \
14246lt_cv_sys_global_symbol_pipe \
14247lt_cv_sys_global_symbol_to_cdecl \
14248lt_cv_sys_global_symbol_to_c_name_address \
b214d478 14249lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb
SE
14250lt_prog_compiler_no_builtin_flag \
14251lt_prog_compiler_wl \
14252lt_prog_compiler_pic \
14253lt_prog_compiler_static \
14254lt_cv_prog_compiler_c_o \
14255need_locks \
b214d478
SE
14256DSYMUTIL \
14257NMEDIT \
14258LIPO \
14259OTOOL \
14260OTOOL64 \
d7040cdb
SE
14261shrext_cmds \
14262export_dynamic_flag_spec \
14263whole_archive_flag_spec \
14264compiler_needs_object \
14265with_gnu_ld \
14266allow_undefined_flag \
14267no_undefined_flag \
14268hardcode_libdir_flag_spec \
14269hardcode_libdir_flag_spec_ld \
14270hardcode_libdir_separator \
14271fix_srcfile_path \
14272exclude_expsyms \
14273include_expsyms \
14274file_list_spec \
14275variables_saved_for_relink \
14276libname_spec \
14277library_names_spec \
14278soname_spec \
3725885a 14279install_override_mode \
d7040cdb
SE
14280finish_eval \
14281old_striplib \
14282striplib; do
3725885a 14283 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 14284 *[\\\\\\\`\\"\\\$]*)
3725885a 14285 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
d7040cdb
SE
14286 ;;
14287 *)
14288 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14289 ;;
14290 esac
14291done
14292
14293# Double-quote double-evaled strings.
14294for var in reload_cmds \
14295old_postinstall_cmds \
14296old_postuninstall_cmds \
14297old_archive_cmds \
14298extract_expsyms_cmds \
14299old_archive_from_new_cmds \
14300old_archive_from_expsyms_cmds \
14301archive_cmds \
14302archive_expsym_cmds \
14303module_cmds \
14304module_expsym_cmds \
14305export_symbols_cmds \
14306prelink_cmds \
14307postinstall_cmds \
14308postuninstall_cmds \
14309finish_cmds \
14310sys_lib_search_path_spec \
14311sys_lib_dlsearch_path_spec; do
3725885a 14312 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 14313 *[\\\\\\\`\\"\\\$]*)
3725885a 14314 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
d7040cdb
SE
14315 ;;
14316 *)
14317 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14318 ;;
14319 esac
14320done
14321
d7040cdb
SE
14322ac_aux_dir='$ac_aux_dir'
14323xsi_shell='$xsi_shell'
14324lt_shell_append='$lt_shell_append'
14325
14326# See if we are running on zsh, and set the options which allow our
14327# commands through without removal of \ escapes INIT.
14328if test -n "\${ZSH_VERSION+set}" ; then
14329 setopt NO_GLOB_SUBST
14330fi
14331
14332
14333 PACKAGE='$PACKAGE'
14334 VERSION='$VERSION'
14335 TIMESTAMP='$TIMESTAMP'
14336 RM='$RM'
14337 ofile='$ofile'
14338
14339
14340
20e95c23
DJ
14341# Capture the value of obsolete ALL_LINGUAS because we need it to compute
14342 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
14343 # from automake.
14344 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14345 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14346 LINGUAS="${LINGUAS-%UNSET%}"
14347
42ecbf5e
DJ
14348
14349_ACEOF
14350
81ecdfbb 14351cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e 14352
81ecdfbb 14353# Handling of arguments.
42ecbf5e 14354for ac_config_target in $ac_config_targets
252b5132 14355do
81ecdfbb
RW
14356 case $ac_config_target in
14357 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14358 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
14359 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14360 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14361 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14362 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
14363
14364 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
252b5132
RH
14365 esac
14366done
14367
81ecdfbb 14368
42ecbf5e
DJ
14369# If the user did not use the arguments to specify the items to instantiate,
14370# then the envvar interface is used. Set only those that are not.
14371# We use the long form for the default assignment because of an extremely
14372# bizarre bug on SunOS 4.1.3.
14373if $ac_need_defaults; then
14374 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14375 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14376 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14377fi
14378
14379# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 14380# simply because there is no reason against having it here, and in addition,
42ecbf5e 14381# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
14382# Hook for its removal unless debugging.
14383# Note that there is a small window in which the directory will not be cleaned:
14384# after its creation but before its name has been assigned to `$tmp'.
42ecbf5e
DJ
14385$debug ||
14386{
81ecdfbb
RW
14387 tmp=
14388 trap 'exit_status=$?
14389 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14390' 0
14391 trap 'as_fn_exit 1' 1 2 13 15
42ecbf5e 14392}
42ecbf5e 14393# Create a (secure) tmp directory for tmp files.
e5a52504 14394
42ecbf5e 14395{
81ecdfbb 14396 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42ecbf5e
DJ
14397 test -n "$tmp" && test -d "$tmp"
14398} ||
14399{
81ecdfbb
RW
14400 tmp=./conf$$-$RANDOM
14401 (umask 077 && mkdir "$tmp")
14402} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14403
14404# Set up the scripts for CONFIG_FILES section.
14405# No need to generate them if there are no CONFIG_FILES.
14406# This happens for instance with `./config.status config.h'.
14407if test -n "$CONFIG_FILES"; then
14408
14409if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14410 ac_cs_awk_getline=:
14411 ac_cs_awk_pipe_init=
14412 ac_cs_awk_read_file='
14413 while ((getline aline < (F[key])) > 0)
14414 print(aline)
14415 close(F[key])'
14416 ac_cs_awk_pipe_fini=
14417else
14418 ac_cs_awk_getline=false
14419 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14420 ac_cs_awk_read_file='
14421 print "|#_!!_#|"
14422 print "cat " F[key] " &&"
14423 '$ac_cs_awk_pipe_init
14424 # The final `:' finishes the AND list.
14425 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14426fi
14427ac_cr=`echo X | tr X '\015'`
14428# On cygwin, bash can eat \r inside `` if the user requested igncr.
14429# But we know of no other shell where ac_cr would be empty at this
14430# point, so we can use a bashism as a fallback.
14431if test "x$ac_cr" = x; then
14432 eval ac_cr=\$\'\\r\'
14433fi
14434ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14435if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14436 ac_cs_awk_cr='\r'
14437else
14438 ac_cs_awk_cr=$ac_cr
14439fi
14440
14441echo 'BEGIN {' >"$tmp/subs1.awk" &&
14442_ACEOF
14443
14444# Create commands to substitute file output variables.
42ecbf5e 14445{
81ecdfbb
RW
14446 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14447 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14448 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14449 echo "_ACAWK" &&
14450 echo "_ACEOF"
14451} >conf$$files.sh &&
14452. ./conf$$files.sh ||
14453 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14454rm -f conf$$files.sh
e5a52504 14455
81ecdfbb
RW
14456{
14457 echo "cat >conf$$subs.awk <<_ACEOF" &&
14458 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14459 echo "_ACEOF"
14460} >conf$$subs.sh ||
14461 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14462ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14463ac_delim='%!_!# '
14464for ac_last_try in false false false false false :; do
14465 . ./conf$$subs.sh ||
14466 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14467
14468 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14469 if test $ac_delim_n = $ac_delim_num; then
14470 break
14471 elif $ac_last_try; then
14472 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14473 else
14474 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14475 fi
14476done
14477rm -f conf$$subs.sh
14478
14479cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14480cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14481_ACEOF
14482sed -n '
14483h
14484s/^/S["/; s/!.*/"]=/
14485p
14486g
14487s/^[^!]*!//
14488:repl
14489t repl
14490s/'"$ac_delim"'$//
14491t delim
14492:nl
14493h
14494s/\(.\{148\}\).*/\1/
14495t more1
14496s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14497p
14498n
14499b repl
14500:more1
14501s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14502p
14503g
14504s/.\{148\}//
14505t nl
14506:delim
14507h
14508s/\(.\{148\}\).*/\1/
14509t more2
14510s/["\\]/\\&/g; s/^/"/; s/$/"/
14511p
14512b
14513:more2
14514s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14515p
14516g
14517s/.\{148\}//
14518t delim
14519' <conf$$subs.awk | sed '
14520/^[^""]/{
14521 N
14522 s/\n//
14523}
14524' >>$CONFIG_STATUS || ac_write_fail=1
14525rm -f conf$$subs.awk
14526cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14527_ACAWK
14528cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14529 for (key in S) S_is_set[key] = 1
14530 FS = "\a"
14531 \$ac_cs_awk_pipe_init
14532}
14533{
14534 line = $ 0
14535 nfields = split(line, field, "@")
14536 substed = 0
14537 len = length(field[1])
14538 for (i = 2; i < nfields; i++) {
14539 key = field[i]
14540 keylen = length(key)
14541 if (S_is_set[key]) {
14542 value = S[key]
14543 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14544 len += length(value) + length(field[++i])
14545 substed = 1
14546 } else
14547 len += 1 + keylen
14548 }
14549 if (nfields == 3 && !substed) {
14550 key = field[2]
14551 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14552 \$ac_cs_awk_read_file
14553 next
14554 }
14555 }
14556 print line
14557}
14558\$ac_cs_awk_pipe_fini
14559_ACAWK
14560_ACEOF
14561cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14562if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14563 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14564else
14565 cat
14566fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14567 || as_fn_error "could not setup config files machinery" "$LINENO" 5
42ecbf5e 14568_ACEOF
d15b04bd 14569
81ecdfbb
RW
14570# VPATH may cause trouble with some makes, so we remove $(srcdir),
14571# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14572# trailing colons and then remove the whole line if VPATH becomes empty
14573# (actually we leave an empty line to preserve line numbers).
14574if test "x$srcdir" = x.; then
14575 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14576s/:*\$(srcdir):*/:/
14577s/:*\${srcdir}:*/:/
14578s/:*@srcdir@:*/:/
14579s/^\([^=]*=[ ]*\):*/\1/
14580s/:*$//
14581s/^[^=]*=[ ]*$//
14582}'
14583fi
14584
14585cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14586fi # test -n "$CONFIG_FILES"
42ecbf5e 14587
81ecdfbb
RW
14588# Set up the scripts for CONFIG_HEADERS section.
14589# No need to generate them if there are no CONFIG_HEADERS.
14590# This happens for instance with `./config.status Makefile'.
14591if test -n "$CONFIG_HEADERS"; then
14592cat >"$tmp/defines.awk" <<\_ACAWK ||
14593BEGIN {
14594_ACEOF
42ecbf5e 14595
81ecdfbb
RW
14596# Transform confdefs.h into an awk script `defines.awk', embedded as
14597# here-document in config.status, that substitutes the proper values into
14598# config.h.in to produce config.h.
252b5132 14599
81ecdfbb
RW
14600# Create a delimiter string that does not exist in confdefs.h, to ease
14601# handling of long lines.
14602ac_delim='%!_!# '
14603for ac_last_try in false false :; do
14604 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14605 if test -z "$ac_t"; then
14606 break
14607 elif $ac_last_try; then
14608 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14609 else
14610 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14611 fi
14612done
14613
14614# For the awk script, D is an array of macro values keyed by name,
14615# likewise P contains macro parameters if any. Preserve backslash
14616# newline sequences.
14617
14618ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14619sed -n '
14620s/.\{148\}/&'"$ac_delim"'/g
14621t rset
14622:rset
14623s/^[ ]*#[ ]*define[ ][ ]*/ /
14624t def
14625d
14626:def
14627s/\\$//
14628t bsnl
14629s/["\\]/\\&/g
14630s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14631D["\1"]=" \3"/p
14632s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14633d
14634:bsnl
14635s/["\\]/\\&/g
14636s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14637D["\1"]=" \3\\\\\\n"\\/p
14638t cont
14639s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14640t cont
14641d
14642:cont
14643n
14644s/.\{148\}/&'"$ac_delim"'/g
14645t clear
14646:clear
14647s/\\$//
14648t bsnlc
14649s/["\\]/\\&/g; s/^/"/; s/$/"/p
14650d
14651:bsnlc
14652s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14653b cont
14654' <confdefs.h | sed '
14655s/'"$ac_delim"'/"\\\
14656"/g' >>$CONFIG_STATUS || ac_write_fail=1
14657
14658cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14659 for (key in D) D_is_set[key] = 1
14660 FS = "\a"
14661}
14662/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14663 line = \$ 0
14664 split(line, arg, " ")
14665 if (arg[1] == "#") {
14666 defundef = arg[2]
14667 mac1 = arg[3]
14668 } else {
14669 defundef = substr(arg[1], 2)
14670 mac1 = arg[2]
14671 }
14672 split(mac1, mac2, "(") #)
14673 macro = mac2[1]
14674 prefix = substr(line, 1, index(line, defundef) - 1)
14675 if (D_is_set[macro]) {
14676 # Preserve the white space surrounding the "#".
14677 print prefix "define", macro P[macro] D[macro]
14678 next
14679 } else {
14680 # Replace #undef with comments. This is necessary, for example,
14681 # in the case of _POSIX_SOURCE, which is predefined and required
14682 # on some systems where configure will not decide to define it.
14683 if (defundef == "undef") {
14684 print "/*", prefix defundef, macro, "*/"
14685 next
14686 }
14687 }
14688}
14689{ print }
14690_ACAWK
42ecbf5e 14691_ACEOF
81ecdfbb
RW
14692cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14693 as_fn_error "could not setup config headers machinery" "$LINENO" 5
14694fi # test -n "$CONFIG_HEADERS"
42ecbf5e 14695
81ecdfbb
RW
14696
14697eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14698shift
14699for ac_tag
14700do
14701 case $ac_tag in
14702 :[FHLC]) ac_mode=$ac_tag; continue;;
14703 esac
14704 case $ac_mode$ac_tag in
14705 :[FHL]*:*);;
14706 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14707 :[FH]-) ac_tag=-:-;;
14708 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14709 esac
14710 ac_save_IFS=$IFS
14711 IFS=:
14712 set x $ac_tag
14713 IFS=$ac_save_IFS
14714 shift
14715 ac_file=$1
14716 shift
14717
14718 case $ac_mode in
14719 :L) ac_source=$1;;
14720 :[FH])
14721 ac_file_inputs=
14722 for ac_f
14723 do
14724 case $ac_f in
14725 -) ac_f="$tmp/stdin";;
14726 *) # Look for the file first in the build tree, then in the source tree
14727 # (if the path is not absolute). The absolute path cannot be DOS-style,
14728 # because $ac_f cannot contain `:'.
14729 test -f "$ac_f" ||
14730 case $ac_f in
14731 [\\/$]*) false;;
14732 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14733 esac ||
14734 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14735 esac
14736 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14737 as_fn_append ac_file_inputs " '$ac_f'"
14738 done
14739
14740 # Let's still pretend it is `configure' which instantiates (i.e., don't
14741 # use $as_me), people would be surprised to read:
14742 # /* config.h. Generated by config.status. */
14743 configure_input='Generated from '`
14744 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14745 `' by configure.'
14746 if test x"$ac_file" != x-; then
14747 configure_input="$ac_file. $configure_input"
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14749$as_echo "$as_me: creating $ac_file" >&6;}
252b5132 14750 fi
81ecdfbb
RW
14751 # Neutralize special characters interpreted by sed in replacement strings.
14752 case $configure_input in #(
14753 *\&* | *\|* | *\\* )
14754 ac_sed_conf_input=`$as_echo "$configure_input" |
14755 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14756 *) ac_sed_conf_input=$configure_input;;
14757 esac
252b5132 14758
81ecdfbb
RW
14759 case $ac_tag in
14760 *:-:* | *:-) cat >"$tmp/stdin" \
14761 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14762 esac
14763 ;;
252b5132
RH
14764 esac
14765
81ecdfbb 14766 ac_dir=`$as_dirname -- "$ac_file" ||
42ecbf5e
DJ
14767$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14768 X"$ac_file" : 'X\(//\)[^/]' \| \
14769 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
14770 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14771$as_echo X"$ac_file" |
14772 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14773 s//\1/
14774 q
14775 }
14776 /^X\(\/\/\)[^/].*/{
14777 s//\1/
14778 q
14779 }
14780 /^X\(\/\/\)$/{
14781 s//\1/
14782 q
14783 }
14784 /^X\(\/\).*/{
14785 s//\1/
14786 q
14787 }
14788 s/.*/./; q'`
14789 as_dir="$ac_dir"; as_fn_mkdir_p
42ecbf5e
DJ
14790 ac_builddir=.
14791
81ecdfbb
RW
14792case "$ac_dir" in
14793.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14794*)
14795 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14796 # A ".." for each directory in $ac_dir_suffix.
14797 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14798 case $ac_top_builddir_sub in
14799 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14800 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14801 esac ;;
14802esac
14803ac_abs_top_builddir=$ac_pwd
14804ac_abs_builddir=$ac_pwd$ac_dir_suffix
14805# for backward compatibility:
14806ac_top_builddir=$ac_top_build_prefix
252b5132 14807
42ecbf5e 14808case $srcdir in
81ecdfbb 14809 .) # We are building in place.
42ecbf5e 14810 ac_srcdir=.
81ecdfbb
RW
14811 ac_top_srcdir=$ac_top_builddir_sub
14812 ac_abs_top_srcdir=$ac_pwd ;;
14813 [\\/]* | ?:[\\/]* ) # Absolute name.
42ecbf5e 14814 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
14815 ac_top_srcdir=$srcdir
14816 ac_abs_top_srcdir=$srcdir ;;
14817 *) # Relative name.
14818 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14819 ac_top_srcdir=$ac_top_build_prefix$srcdir
14820 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42ecbf5e 14821esac
81ecdfbb 14822ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
42ecbf5e 14823
252b5132 14824
81ecdfbb
RW
14825 case $ac_mode in
14826 :F)
14827 #
14828 # CONFIG_FILE
14829 #
e5a52504 14830
42ecbf5e
DJ
14831 case $INSTALL in
14832 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb
RW
14833 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14834 esac
14835 ac_MKDIR_P=$MKDIR_P
14836 case $MKDIR_P in
14837 [\\/$]* | ?:[\\/]* ) ;;
14838 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
d15b04bd 14839 esac
81ecdfbb 14840_ACEOF
e5a52504 14841
81ecdfbb
RW
14842cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14843# If the template does not know about datarootdir, expand it.
14844# FIXME: This hack should be removed a few years after 2.60.
14845ac_datarootdir_hack=; ac_datarootdir_seen=
14846ac_sed_dataroot='
14847/datarootdir/ {
14848 p
14849 q
14850}
14851/@datadir@/p
14852/@docdir@/p
14853/@infodir@/p
14854/@localedir@/p
14855/@mandir@/p'
14856case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14857*datarootdir*) ac_datarootdir_seen=yes;;
14858*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14860$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14861_ACEOF
14862cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14863 ac_datarootdir_hack='
14864 s&@datadir@&$datadir&g
14865 s&@docdir@&$docdir&g
14866 s&@infodir@&$infodir&g
14867 s&@localedir@&$localedir&g
14868 s&@mandir@&$mandir&g
14869 s&\\\${datarootdir}&$datarootdir&g' ;;
14870esac
42ecbf5e 14871_ACEOF
81ecdfbb
RW
14872
14873# Neutralize VPATH when `$srcdir' = `.'.
14874# Shell code in configure.ac might set extrasub.
14875# FIXME: do we really want to maintain this feature?
14876cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14877ac_sed_extra="$ac_vpsub
42ecbf5e
DJ
14878$extrasub
14879_ACEOF
81ecdfbb 14880cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e
DJ
14881:t
14882/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
14883s|@configure_input@|$ac_sed_conf_input|;t t
14884s&@top_builddir@&$ac_top_builddir_sub&;t t
14885s&@top_build_prefix@&$ac_top_build_prefix&;t t
14886s&@srcdir@&$ac_srcdir&;t t
14887s&@abs_srcdir@&$ac_abs_srcdir&;t t
14888s&@top_srcdir@&$ac_top_srcdir&;t t
14889s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14890s&@builddir@&$ac_builddir&;t t
14891s&@abs_builddir@&$ac_abs_builddir&;t t
14892s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14893s&@INSTALL@&$ac_INSTALL&;t t
14894s&@MKDIR_P@&$ac_MKDIR_P&;t t
14895$ac_datarootdir_hack
14896"
14897eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
14898if $ac_cs_awk_getline; then
14899 $AWK -f "$tmp/subs.awk"
14900else
14901 $AWK -f "$tmp/subs.awk" | $SHELL
14902fi >$tmp/out \
14903 || as_fn_error "could not create $ac_file" "$LINENO" 5
14904
14905test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14906 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14907 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14909which seems to be undefined. Please make sure it is defined." >&5
14910$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14911which seems to be undefined. Please make sure it is defined." >&2;}
14912
14913 rm -f "$tmp/stdin"
42ecbf5e 14914 case $ac_file in
81ecdfbb
RW
14915 -) cat "$tmp/out" && rm -f "$tmp/out";;
14916 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14917 esac \
14918 || as_fn_error "could not create $ac_file" "$LINENO" 5
14919 ;;
14920 :H)
14921 #
14922 # CONFIG_HEADER
14923 #
42ecbf5e 14924 if test x"$ac_file" != x-; then
81ecdfbb
RW
14925 {
14926 $as_echo "/* $configure_input */" \
14927 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14928 } >"$tmp/config.h" \
14929 || as_fn_error "could not create $ac_file" "$LINENO" 5
14930 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14932$as_echo "$as_me: $ac_file is unchanged" >&6;}
42ecbf5e 14933 else
81ecdfbb
RW
14934 rm -f "$ac_file"
14935 mv "$tmp/config.h" "$ac_file" \
14936 || as_fn_error "could not create $ac_file" "$LINENO" 5
252b5132 14937 fi
42ecbf5e 14938 else
81ecdfbb
RW
14939 $as_echo "/* $configure_input */" \
14940 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14941 || as_fn_error "could not create -" "$LINENO" 5
e5a52504 14942 fi
81ecdfbb
RW
14943# Compute "$ac_file"'s index in $config_headers.
14944_am_arg="$ac_file"
42ecbf5e
DJ
14945_am_stamp_count=1
14946for _am_header in $config_headers :; do
14947 case $_am_header in
81ecdfbb 14948 $_am_arg | $_am_arg:* )
42ecbf5e
DJ
14949 break ;;
14950 * )
14951 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14952 esac
14953done
81ecdfbb
RW
14954echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14955$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14956 X"$_am_arg" : 'X\(//\)[^/]' \| \
14957 X"$_am_arg" : 'X\(//\)$' \| \
14958 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14959$as_echo X"$_am_arg" |
14960 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14961 s//\1/
14962 q
14963 }
14964 /^X\(\/\/\)[^/].*/{
14965 s//\1/
14966 q
14967 }
14968 /^X\(\/\/\)$/{
14969 s//\1/
14970 q
14971 }
14972 /^X\(\/\).*/{
14973 s//\1/
14974 q
14975 }
14976 s/.*/./; q'`/stamp-h$_am_stamp_count
14977 ;;
42ecbf5e 14978
81ecdfbb
RW
14979 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14980$as_echo "$as_me: executing $ac_file commands" >&6;}
14981 ;;
14982 esac
42ecbf5e
DJ
14983
14984
81ecdfbb
RW
14985 case $ac_file$ac_mode in
14986 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14987 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14988 # are listed without --file. Let's play safe and only enable the eval
14989 # if we detect the quoting.
14990 case $CONFIG_FILES in
14991 *\'*) eval set x "$CONFIG_FILES" ;;
14992 *) set x $CONFIG_FILES ;;
14993 esac
14994 shift
14995 for mf
14996 do
14997 # Strip MF so we end up with the name of the file.
14998 mf=`echo "$mf" | sed -e 's/:.*$//'`
14999 # Check whether this is an Automake generated Makefile or not.
15000 # We used to match only the files named `Makefile.in', but
15001 # some people rename them; so instead we look at the file content.
15002 # Grep'ing the first line is not enough: some people post-process
15003 # each Makefile.in and add a new line on top of each file to say so.
15004 # Grep'ing the whole file is not good either: AIX grep has a line
15005 # limit of 2048, but all sed's we know have understand at least 4000.
15006 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15007 dirpart=`$as_dirname -- "$mf" ||
42ecbf5e
DJ
15008$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15009 X"$mf" : 'X\(//\)[^/]' \| \
15010 X"$mf" : 'X\(//\)$' \| \
81ecdfbb
RW
15011 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15012$as_echo X"$mf" |
15013 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15014 s//\1/
15015 q
15016 }
15017 /^X\(\/\/\)[^/].*/{
15018 s//\1/
15019 q
15020 }
15021 /^X\(\/\/\)$/{
15022 s//\1/
15023 q
15024 }
15025 /^X\(\/\).*/{
15026 s//\1/
15027 q
15028 }
15029 s/.*/./; q'`
15030 else
15031 continue
15032 fi
15033 # Extract the definition of DEPDIR, am__include, and am__quote
15034 # from the Makefile without running `make'.
15035 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15036 test -z "$DEPDIR" && continue
15037 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15038 test -z "am__include" && continue
15039 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15040 # When using ansi2knr, U may be empty or an underscore; expand it
15041 U=`sed -n 's/^U = //p' < "$mf"`
15042 # Find all dependency output files, they are included files with
15043 # $(DEPDIR) in their names. We invoke sed twice because it is the
15044 # simplest approach to changing $(DEPDIR) to its actual value in the
15045 # expansion.
15046 for file in `sed -n "
15047 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15048 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15049 # Make sure the directory exists.
15050 test -f "$dirpart/$file" && continue
15051 fdir=`$as_dirname -- "$file" ||
42ecbf5e
DJ
15052$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15053 X"$file" : 'X\(//\)[^/]' \| \
15054 X"$file" : 'X\(//\)$' \| \
81ecdfbb
RW
15055 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15056$as_echo X"$file" |
15057 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15058 s//\1/
15059 q
15060 }
15061 /^X\(\/\/\)[^/].*/{
15062 s//\1/
15063 q
15064 }
15065 /^X\(\/\/\)$/{
15066 s//\1/
15067 q
15068 }
15069 /^X\(\/\).*/{
15070 s//\1/
15071 q
15072 }
15073 s/.*/./; q'`
15074 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15075 # echo "creating $dirpart/$file"
15076 echo '# dummy' > "$dirpart/$file"
42ecbf5e 15077 done
42ecbf5e 15078 done
81ecdfbb 15079}
d7040cdb 15080 ;;
81ecdfbb 15081 "libtool":C)
d7040cdb
SE
15082
15083 # See if we are running on zsh, and set the options which allow our
15084 # commands through without removal of \ escapes.
15085 if test -n "${ZSH_VERSION+set}" ; then
15086 setopt NO_GLOB_SUBST
15087 fi
15088
15089 cfgfile="${ofile}T"
15090 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15091 $RM "$cfgfile"
15092
15093 cat <<_LT_EOF >> "$cfgfile"
15094#! $SHELL
15095
15096# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
b214d478 15097# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
15098# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15099# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15100#
b214d478 15101# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
3725885a 15102# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
b214d478 15103# Written by Gordon Matzigkeit, 1996
d7040cdb 15104#
b214d478 15105# This file is part of GNU Libtool.
d7040cdb 15106#
b214d478
SE
15107# GNU Libtool is free software; you can redistribute it and/or
15108# modify it under the terms of the GNU General Public License as
15109# published by the Free Software Foundation; either version 2 of
15110# the License, or (at your option) any later version.
d7040cdb 15111#
b214d478
SE
15112# As a special exception to the GNU General Public License,
15113# if you distribute this file as part of a program or library that
15114# is built using GNU Libtool, you may include this file under the
15115# same distribution terms that you use for the rest of that program.
d7040cdb 15116#
b214d478
SE
15117# GNU Libtool is distributed in the hope that it will be useful,
15118# but WITHOUT ANY WARRANTY; without even the implied warranty of
15119# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15120# GNU General Public License for more details.
d7040cdb 15121#
b214d478
SE
15122# You should have received a copy of the GNU General Public License
15123# along with GNU Libtool; see the file COPYING. If not, a copy
15124# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15125# obtained by writing to the Free Software Foundation, Inc.,
15126# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
15127
15128
15129# The names of the tagged configurations supported by this script.
15130available_tags=""
15131
15132# ### BEGIN LIBTOOL CONFIG
15133
15134# Which release of libtool.m4 was used?
15135macro_version=$macro_version
15136macro_revision=$macro_revision
15137
15138# Whether or not to build shared libraries.
15139build_libtool_libs=$enable_shared
15140
15141# Whether or not to build static libraries.
15142build_old_libs=$enable_static
15143
15144# What type of objects to build.
15145pic_mode=$pic_mode
15146
15147# Whether or not to optimize for fast installation.
15148fast_install=$enable_fast_install
15149
3725885a
RW
15150# Shell to use when invoking shell scripts.
15151SHELL=$lt_SHELL
15152
15153# An echo program that protects backslashes.
15154ECHO=$lt_ECHO
15155
d7040cdb
SE
15156# The host system.
15157host_alias=$host_alias
15158host=$host
15159host_os=$host_os
15160
15161# The build system.
15162build_alias=$build_alias
15163build=$build
15164build_os=$build_os
15165
15166# A sed program that does not truncate output.
15167SED=$lt_SED
15168
15169# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15170Xsed="\$SED -e 1s/^X//"
15171
15172# A grep program that handles long lines.
15173GREP=$lt_GREP
15174
15175# An ERE matcher.
15176EGREP=$lt_EGREP
15177
15178# A literal string matcher.
15179FGREP=$lt_FGREP
15180
15181# A BSD- or MS-compatible name lister.
15182NM=$lt_NM
15183
15184# Whether we need soft or hard links.
15185LN_S=$lt_LN_S
15186
15187# What is the maximum length of a command?
15188max_cmd_len=$max_cmd_len
15189
15190# Object file suffix (normally "o").
15191objext=$ac_objext
15192
15193# Executable file suffix (normally "").
15194exeext=$exeext
15195
15196# whether the shell understands "unset".
15197lt_unset=$lt_unset
15198
15199# turn spaces into newlines.
15200SP2NL=$lt_lt_SP2NL
15201
15202# turn newlines into spaces.
15203NL2SP=$lt_lt_NL2SP
15204
b214d478
SE
15205# An object symbol dumper.
15206OBJDUMP=$lt_OBJDUMP
15207
d7040cdb
SE
15208# Method to check whether dependent libraries are shared objects.
15209deplibs_check_method=$lt_deplibs_check_method
15210
15211# Command to use when deplibs_check_method == "file_magic".
15212file_magic_cmd=$lt_file_magic_cmd
15213
15214# The archiver.
15215AR=$lt_AR
15216AR_FLAGS=$lt_AR_FLAGS
15217
15218# A symbol stripping program.
15219STRIP=$lt_STRIP
15220
15221# Commands used to install an old-style archive.
15222RANLIB=$lt_RANLIB
15223old_postinstall_cmds=$lt_old_postinstall_cmds
15224old_postuninstall_cmds=$lt_old_postuninstall_cmds
15225
3725885a
RW
15226# Whether to use a lock for old archive extraction.
15227lock_old_archive_extraction=$lock_old_archive_extraction
15228
d7040cdb
SE
15229# A C compiler.
15230LTCC=$lt_CC
15231
15232# LTCC compiler flags.
15233LTCFLAGS=$lt_CFLAGS
15234
15235# Take the output of nm and produce a listing of raw symbols and C names.
15236global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15237
15238# Transform the output of nm in a proper C declaration.
15239global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15240
15241# Transform the output of nm in a C name address pair.
15242global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15243
b214d478
SE
15244# Transform the output of nm in a C name address pair when lib prefix is needed.
15245global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15246
d7040cdb
SE
15247# The name of the directory that contains temporary libtool files.
15248objdir=$objdir
15249
d7040cdb
SE
15250# Used to examine libraries when file_magic_cmd begins with "file".
15251MAGIC_CMD=$MAGIC_CMD
15252
15253# Must we lock files when doing compilation?
15254need_locks=$lt_need_locks
15255
b214d478
SE
15256# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15257DSYMUTIL=$lt_DSYMUTIL
15258
15259# Tool to change global to local symbols on Mac OS X.
15260NMEDIT=$lt_NMEDIT
15261
15262# Tool to manipulate fat objects and archives on Mac OS X.
15263LIPO=$lt_LIPO
15264
15265# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15266OTOOL=$lt_OTOOL
15267
15268# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15269OTOOL64=$lt_OTOOL64
15270
d7040cdb
SE
15271# Old archive suffix (normally "a").
15272libext=$libext
15273
15274# Shared library suffix (normally ".so").
15275shrext_cmds=$lt_shrext_cmds
15276
15277# The commands to extract the exported symbol list from a shared archive.
15278extract_expsyms_cmds=$lt_extract_expsyms_cmds
15279
15280# Variables whose values should be saved in libtool wrapper scripts and
15281# restored at link time.
15282variables_saved_for_relink=$lt_variables_saved_for_relink
15283
15284# Do we need the "lib" prefix for modules?
15285need_lib_prefix=$need_lib_prefix
15286
15287# Do we need a version for libraries?
15288need_version=$need_version
15289
15290# Library versioning type.
15291version_type=$version_type
15292
15293# Shared library runtime path variable.
15294runpath_var=$runpath_var
15295
15296# Shared library path variable.
15297shlibpath_var=$shlibpath_var
15298
15299# Is shlibpath searched before the hard-coded library search path?
15300shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15301
15302# Format of library name prefix.
15303libname_spec=$lt_libname_spec
15304
15305# List of archive names. First name is the real one, the rest are links.
15306# The last name is the one that the linker finds with -lNAME
15307library_names_spec=$lt_library_names_spec
15308
15309# The coded name of the library, if different from the real name.
15310soname_spec=$lt_soname_spec
15311
3725885a
RW
15312# Permission mode override for installation of shared libraries.
15313install_override_mode=$lt_install_override_mode
15314
d7040cdb
SE
15315# Command to use after installation of a shared archive.
15316postinstall_cmds=$lt_postinstall_cmds
15317
15318# Command to use after uninstallation of a shared archive.
15319postuninstall_cmds=$lt_postuninstall_cmds
15320
15321# Commands used to finish a libtool library installation in a directory.
15322finish_cmds=$lt_finish_cmds
15323
15324# As "finish_cmds", except a single script fragment to be evaled but
15325# not shown.
15326finish_eval=$lt_finish_eval
15327
15328# Whether we should hardcode library paths into libraries.
15329hardcode_into_libs=$hardcode_into_libs
15330
15331# Compile-time system search path for libraries.
15332sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15333
15334# Run-time system search path for libraries.
15335sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15336
15337# Whether dlopen is supported.
15338dlopen_support=$enable_dlopen
15339
15340# Whether dlopen of programs is supported.
15341dlopen_self=$enable_dlopen_self
15342
15343# Whether dlopen of statically linked programs is supported.
15344dlopen_self_static=$enable_dlopen_self_static
15345
15346# Commands to strip libraries.
15347old_striplib=$lt_old_striplib
15348striplib=$lt_striplib
15349
15350
15351# The linker used to build libraries.
15352LD=$lt_LD
15353
3725885a
RW
15354# How to create reloadable object files.
15355reload_flag=$lt_reload_flag
15356reload_cmds=$lt_reload_cmds
15357
d7040cdb
SE
15358# Commands used to build an old-style archive.
15359old_archive_cmds=$lt_old_archive_cmds
15360
15361# A language specific compiler.
15362CC=$lt_compiler
15363
15364# Is the compiler the GNU compiler?
15365with_gcc=$GCC
15366
15367# Compiler flag to turn off builtin functions.
15368no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15369
15370# How to pass a linker flag through the compiler.
15371wl=$lt_lt_prog_compiler_wl
15372
15373# Additional compiler flags for building library objects.
15374pic_flag=$lt_lt_prog_compiler_pic
15375
15376# Compiler flag to prevent dynamic linking.
15377link_static_flag=$lt_lt_prog_compiler_static
15378
15379# Does compiler simultaneously support -c and -o options?
15380compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15381
15382# Whether or not to add -lc for building shared libraries.
15383build_libtool_need_lc=$archive_cmds_need_lc
15384
15385# Whether or not to disallow shared libs when runtime libs are static.
15386allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15387
15388# Compiler flag to allow reflexive dlopens.
15389export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15390
15391# Compiler flag to generate shared objects directly from archives.
15392whole_archive_flag_spec=$lt_whole_archive_flag_spec
15393
15394# Whether the compiler copes with passing no objects directly.
15395compiler_needs_object=$lt_compiler_needs_object
15396
15397# Create an old-style archive from a shared archive.
15398old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15399
15400# Create a temporary old-style archive to link instead of a shared archive.
15401old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15402
15403# Commands used to build a shared archive.
15404archive_cmds=$lt_archive_cmds
15405archive_expsym_cmds=$lt_archive_expsym_cmds
15406
15407# Commands used to build a loadable module if different from building
15408# a shared archive.
15409module_cmds=$lt_module_cmds
15410module_expsym_cmds=$lt_module_expsym_cmds
15411
15412# Whether we are building with GNU ld or not.
15413with_gnu_ld=$lt_with_gnu_ld
15414
15415# Flag that allows shared libraries with undefined symbols to be built.
15416allow_undefined_flag=$lt_allow_undefined_flag
15417
15418# Flag that enforces no undefined symbols.
15419no_undefined_flag=$lt_no_undefined_flag
15420
15421# Flag to hardcode \$libdir into a binary during linking.
15422# This must work even if \$libdir does not exist
15423hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15424
15425# If ld is used when linking, flag to hardcode \$libdir into a binary
15426# during linking. This must work even if \$libdir does not exist.
15427hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15428
15429# Whether we need a single "-rpath" flag with a separated argument.
15430hardcode_libdir_separator=$lt_hardcode_libdir_separator
15431
15432# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15433# DIR into the resulting binary.
15434hardcode_direct=$hardcode_direct
15435
15436# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15437# DIR into the resulting binary and the resulting library dependency is
15438# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15439# library is relocated.
15440hardcode_direct_absolute=$hardcode_direct_absolute
15441
15442# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15443# into the resulting binary.
15444hardcode_minus_L=$hardcode_minus_L
15445
15446# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15447# into the resulting binary.
15448hardcode_shlibpath_var=$hardcode_shlibpath_var
15449
15450# Set to "yes" if building a shared library automatically hardcodes DIR
15451# into the library and all subsequent libraries and executables linked
15452# against it.
15453hardcode_automatic=$hardcode_automatic
15454
15455# Set to yes if linker adds runtime paths of dependent libraries
15456# to runtime path list.
15457inherit_rpath=$inherit_rpath
15458
15459# Whether libtool must link a program against all its dependency libraries.
15460link_all_deplibs=$link_all_deplibs
15461
15462# Fix the shell variable \$srcfile for the compiler.
15463fix_srcfile_path=$lt_fix_srcfile_path
15464
15465# Set to "yes" if exported symbols are required.
15466always_export_symbols=$always_export_symbols
15467
15468# The commands to list exported symbols.
15469export_symbols_cmds=$lt_export_symbols_cmds
15470
15471# Symbols that should not be listed in the preloaded symbols.
15472exclude_expsyms=$lt_exclude_expsyms
15473
15474# Symbols that must always be exported.
15475include_expsyms=$lt_include_expsyms
15476
15477# Commands necessary for linking programs (against libraries) with templates.
15478prelink_cmds=$lt_prelink_cmds
15479
15480# Specify filename containing input files.
15481file_list_spec=$lt_file_list_spec
15482
15483# How to hardcode a shared library path into an executable.
15484hardcode_action=$hardcode_action
15485
15486# ### END LIBTOOL CONFIG
15487
15488_LT_EOF
15489
15490 case $host_os in
15491 aix3*)
15492 cat <<\_LT_EOF >> "$cfgfile"
15493# AIX sometimes has problems with the GCC collect2 program. For some
15494# reason, if we set the COLLECT_NAMES environment variable, the problems
15495# vanish in a puff of smoke.
15496if test "X${COLLECT_NAMES+set}" != Xset; then
15497 COLLECT_NAMES=
15498 export COLLECT_NAMES
15499fi
15500_LT_EOF
15501 ;;
15502 esac
15503
15504
15505ltmain="$ac_aux_dir/ltmain.sh"
15506
15507
15508 # We use sed instead of cat because bash on DJGPP gets confused if
15509 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15510 # text mode, it properly converts lines to CR/LF. This bash problem
15511 # is reportedly fixed, but why not run on old versions too?
15512 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15513 || (rm -f "$cfgfile"; exit 1)
15514
15515 case $xsi_shell in
15516 yes)
15517 cat << \_LT_EOF >> "$cfgfile"
b214d478 15518
d7040cdb
SE
15519# func_dirname file append nondir_replacement
15520# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15521# otherwise set result to NONDIR_REPLACEMENT.
15522func_dirname ()
15523{
15524 case ${1} in
15525 */*) func_dirname_result="${1%/*}${2}" ;;
15526 * ) func_dirname_result="${3}" ;;
15527 esac
15528}
15529
15530# func_basename file
15531func_basename ()
15532{
15533 func_basename_result="${1##*/}"
15534}
15535
b214d478
SE
15536# func_dirname_and_basename file append nondir_replacement
15537# perform func_basename and func_dirname in a single function
15538# call:
15539# dirname: Compute the dirname of FILE. If nonempty,
15540# add APPEND to the result, otherwise set result
15541# to NONDIR_REPLACEMENT.
15542# value returned in "$func_dirname_result"
15543# basename: Compute filename of FILE.
15544# value retuned in "$func_basename_result"
15545# Implementation must be kept synchronized with func_dirname
15546# and func_basename. For efficiency, we do not delegate to
15547# those functions but instead duplicate the functionality here.
15548func_dirname_and_basename ()
15549{
15550 case ${1} in
15551 */*) func_dirname_result="${1%/*}${2}" ;;
15552 * ) func_dirname_result="${3}" ;;
15553 esac
15554 func_basename_result="${1##*/}"
15555}
15556
d7040cdb
SE
15557# func_stripname prefix suffix name
15558# strip PREFIX and SUFFIX off of NAME.
15559# PREFIX and SUFFIX must not contain globbing or regex special
15560# characters, hashes, percent signs, but SUFFIX may contain a leading
15561# dot (in which case that matches only a dot).
15562func_stripname ()
15563{
15564 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15565 # positional parameters, so assign one to ordinary parameter first.
15566 func_stripname_result=${3}
15567 func_stripname_result=${func_stripname_result#"${1}"}
15568 func_stripname_result=${func_stripname_result%"${2}"}
15569}
15570
15571# func_opt_split
15572func_opt_split ()
15573{
15574 func_opt_split_opt=${1%%=*}
15575 func_opt_split_arg=${1#*=}
15576}
15577
15578# func_lo2o object
15579func_lo2o ()
15580{
15581 case ${1} in
15582 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15583 *) func_lo2o_result=${1} ;;
15584 esac
15585}
b214d478
SE
15586
15587# func_xform libobj-or-source
15588func_xform ()
15589{
15590 func_xform_result=${1%.*}.lo
15591}
15592
15593# func_arith arithmetic-term...
15594func_arith ()
15595{
15596 func_arith_result=$(( $* ))
15597}
15598
15599# func_len string
15600# STRING may not start with a hyphen.
15601func_len ()
15602{
15603 func_len_result=${#1}
15604}
15605
d7040cdb
SE
15606_LT_EOF
15607 ;;
15608 *) # Bourne compatible functions.
15609 cat << \_LT_EOF >> "$cfgfile"
b214d478 15610
d7040cdb
SE
15611# func_dirname file append nondir_replacement
15612# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15613# otherwise set result to NONDIR_REPLACEMENT.
15614func_dirname ()
15615{
15616 # Extract subdirectory from the argument.
3725885a 15617 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
d7040cdb
SE
15618 if test "X$func_dirname_result" = "X${1}"; then
15619 func_dirname_result="${3}"
15620 else
15621 func_dirname_result="$func_dirname_result${2}"
15622 fi
15623}
15624
15625# func_basename file
15626func_basename ()
15627{
3725885a 15628 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
d7040cdb
SE
15629}
15630
b214d478 15631
d7040cdb
SE
15632# func_stripname prefix suffix name
15633# strip PREFIX and SUFFIX off of NAME.
15634# PREFIX and SUFFIX must not contain globbing or regex special
15635# characters, hashes, percent signs, but SUFFIX may contain a leading
15636# dot (in which case that matches only a dot).
15637# func_strip_suffix prefix name
15638func_stripname ()
15639{
15640 case ${2} in
3725885a
RW
15641 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15642 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
d7040cdb
SE
15643 esac
15644}
15645
15646# sed scripts:
15647my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15648my_sed_long_arg='1s/^-[^=]*=//'
15649
15650# func_opt_split
15651func_opt_split ()
15652{
3725885a
RW
15653 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
15654 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
d7040cdb
SE
15655}
15656
15657# func_lo2o object
15658func_lo2o ()
15659{
3725885a 15660 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
d7040cdb 15661}
b214d478
SE
15662
15663# func_xform libobj-or-source
15664func_xform ()
15665{
3725885a 15666 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
b214d478
SE
15667}
15668
15669# func_arith arithmetic-term...
15670func_arith ()
15671{
15672 func_arith_result=`expr "$@"`
15673}
15674
15675# func_len string
15676# STRING may not start with a hyphen.
15677func_len ()
15678{
15679 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15680}
15681
d7040cdb
SE
15682_LT_EOF
15683esac
15684
15685case $lt_shell_append in
15686 yes)
15687 cat << \_LT_EOF >> "$cfgfile"
15688
15689# func_append var value
15690# Append VALUE to the end of shell variable VAR.
15691func_append ()
15692{
15693 eval "$1+=\$2"
15694}
15695_LT_EOF
15696 ;;
15697 *)
15698 cat << \_LT_EOF >> "$cfgfile"
15699
15700# func_append var value
15701# Append VALUE to the end of shell variable VAR.
15702func_append ()
15703{
15704 eval "$1=\$$1\$2"
15705}
b214d478 15706
d7040cdb
SE
15707_LT_EOF
15708 ;;
15709 esac
15710
15711
15712 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15713 || (rm -f "$cfgfile"; exit 1)
15714
15715 mv -f "$cfgfile" "$ofile" ||
15716 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15717 chmod +x "$ofile"
15718
42ecbf5e 15719 ;;
81ecdfbb 15720 "default-1":C)
20e95c23
DJ
15721 for ac_file in $CONFIG_FILES; do
15722 # Support "outfile[:infile[:infile...]]"
15723 case "$ac_file" in
15724 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15725 esac
15726 # PO directories have a Makefile.in generated from Makefile.in.in.
15727 case "$ac_file" in */Makefile.in)
15728 # Adjust a relative srcdir.
15729 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
3cac54d2 15730 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
20e95c23
DJ
15731 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15732 # In autoconf-2.13 it is called $ac_given_srcdir.
15733 # In autoconf-2.50 it is called $srcdir.
15734 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15735 case "$ac_given_srcdir" in
15736 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15737 /*) top_srcdir="$ac_given_srcdir" ;;
15738 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15739 esac
15740 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15741 rm -f "$ac_dir/POTFILES"
15742 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15743 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15744 POMAKEFILEDEPS="POTFILES.in"
15745 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
15746 # on $ac_dir but don't depend on user-specified configuration
15747 # parameters.
15748 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15749 # The LINGUAS file contains the set of available languages.
15750 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15751 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15752 fi
15753 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15754 # Hide the ALL_LINGUAS assigment from automake.
15755 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15756 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15757 else
15758 # The set of available languages was given in configure.in.
15759 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15760 fi
15761 case "$ac_given_srcdir" in
15762 .) srcdirpre= ;;
15763 *) srcdirpre='$(srcdir)/' ;;
15764 esac
15765 POFILES=
15766 GMOFILES=
15767 UPDATEPOFILES=
15768 DUMMYPOFILES=
15769 for lang in $ALL_LINGUAS; do
15770 POFILES="$POFILES $srcdirpre$lang.po"
15771 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15772 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15773 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15774 done
15775 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15776 # environment variable.
15777 INST_LINGUAS=
15778 if test -n "$ALL_LINGUAS"; then
15779 for presentlang in $ALL_LINGUAS; do
15780 useit=no
15781 if test "%UNSET%" != "$LINGUAS"; then
15782 desiredlanguages="$LINGUAS"
15783 else
15784 desiredlanguages="$ALL_LINGUAS"
15785 fi
15786 for desiredlang in $desiredlanguages; do
15787 # Use the presentlang catalog if desiredlang is
15788 # a. equal to presentlang, or
15789 # b. a variant of presentlang (because in this case,
15790 # presentlang can be used as a fallback for messages
15791 # which are not translated in the desiredlang catalog).
15792 case "$desiredlang" in
15793 "$presentlang"*) useit=yes;;
15794 esac
15795 done
15796 if test $useit = yes; then
15797 INST_LINGUAS="$INST_LINGUAS $presentlang"
15798 fi
15799 done
15800 fi
15801 CATALOGS=
15802 if test -n "$INST_LINGUAS"; then
15803 for lang in $INST_LINGUAS; do
15804 CATALOGS="$CATALOGS $lang.gmo"
15805 done
15806 fi
15807 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15808 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"
15809 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15810 if test -f "$f"; then
15811 case "$f" in
15812 *.orig | *.bak | *~) ;;
15813 *) cat "$f" >> "$ac_dir/Makefile" ;;
15814 esac
15815 fi
15816 done
15817 fi
15818 ;;
15819 esac
15820 done ;;
81ecdfbb 15821
42ecbf5e 15822 esac
81ecdfbb 15823done # for ac_tag
42ecbf5e 15824
42ecbf5e 15825
81ecdfbb 15826as_fn_exit 0
42ecbf5e 15827_ACEOF
42ecbf5e
DJ
15828ac_clean_files=$ac_clean_files_save
15829
81ecdfbb
RW
15830test $ac_write_fail = 0 ||
15831 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15832
42ecbf5e
DJ
15833
15834# configure is writing to config.log, and then calls config.status.
15835# config.status does its own redirection, appending to config.log.
15836# Unfortunately, on DOS this fails, as config.log is still kept open
15837# by configure, so config.status won't be able to write to it; its
15838# output is simply discarded. So we exec the FD to /dev/null,
15839# effectively closing config.log, so it can be properly (re)opened and
15840# appended to by config.status. When coming back to configure, we
15841# need to make the FD available again.
15842if test "$no_create" != yes; then
15843 ac_cs_success=:
15844 ac_config_status_args=
15845 test "$silent" = yes &&
15846 ac_config_status_args="$ac_config_status_args --quiet"
15847 exec 5>/dev/null
15848 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15849 exec 5>>config.log
15850 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15851 # would make configure fail if this is the last instruction.
81ecdfbb
RW
15852 $ac_cs_success || as_fn_exit $?
15853fi
15854if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15856$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
42ecbf5e 15857fi
252b5132 15858
This page took 1.344492 seconds and 4 git commands to generate.