]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/configure
Sync Libtool from GCC.
[thirdparty/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
612NATIVE_LIB_DIRS
613HOSTING_LIBS
614HOSTING_CRT0
615HDEFINES
616do_compare
617GENINSRC_NEVER_FALSE
618GENINSRC_NEVER_TRUE
81ecdfbb
RW
619LEXLIB
620LEX_OUTPUT_ROOT
621LEX
622YFLAGS
623YACC
624MSGMERGE
625MSGFMT
626MKINSTALLDIRS
627CATOBJEXT
628GENCAT
629INSTOBJEXT
630DATADIRNAME
631CATALOGS
632POSUB
633GMSGFMT
634XGETTEXT
635INCINTL
636LIBINTL_DEP
637LIBINTL
638USE_NLS
639OTOOL64
640OTOOL
641LIPO
642NMEDIT
643DSYMUTIL
81ecdfbb
RW
644RANLIB
645AR
646OBJDUMP
647LN_S
648NM
649ac_ct_DUMPBIN
650DUMPBIN
651LD
652FGREP
653SED
654LIBTOOL
655EGREP
656GREP
657CPP
658NO_WERROR
659WARN_CFLAGS
660TARGET_SYSTEM_ROOT_DEFINE
661TARGET_SYSTEM_ROOT
662use_sysroot
64ac50ac
RW
663MAINT
664MAINTAINER_MODE_FALSE
665MAINTAINER_MODE_TRUE
81ecdfbb
RW
666am__fastdepCC_FALSE
667am__fastdepCC_TRUE
668CCDEPMODE
669AMDEPBACKSLASH
670AMDEP_FALSE
671AMDEP_TRUE
672am__quote
673am__include
674DEPDIR
675am__untar
676am__tar
677AMTAR
678am__leading_dot
679SET_MAKE
680AWK
681mkdir_p
682MKDIR_P
683INSTALL_STRIP_PROGRAM
684STRIP
685install_sh
686MAKEINFO
687AUTOHEADER
688AUTOMAKE
689AUTOCONF
690ACLOCAL
691VERSION
692PACKAGE
693CYGPATH_W
694am__isrc
695INSTALL_DATA
696INSTALL_SCRIPT
697INSTALL_PROGRAM
698OBJEXT
699EXEEXT
700ac_ct_CC
701CPPFLAGS
702LDFLAGS
703CFLAGS
704CC
705target_os
706target_vendor
707target_cpu
708target
709host_os
710host_vendor
711host_cpu
712host
713build_os
714build_vendor
715build_cpu
716build
717target_alias
718host_alias
719build_alias
720LIBS
721ECHO_T
722ECHO_N
723ECHO_C
724DEFS
725mandir
726localedir
727libdir
728psdir
729pdfdir
730dvidir
731htmldir
732infodir
733docdir
734oldincludedir
735includedir
736localstatedir
737sharedstatedir
738sysconfdir
739datadir
740datarootdir
741libexecdir
742sbindir
743bindir
744program_transform_name
745prefix
746exec_prefix
747PACKAGE_URL
748PACKAGE_BUGREPORT
749PACKAGE_STRING
750PACKAGE_VERSION
751PACKAGE_TARNAME
752PACKAGE_NAME
753PATH_SEPARATOR
754SHELL'
42ecbf5e 755ac_subst_files='TDIRS'
81ecdfbb
RW
756ac_user_opts='
757enable_option_checking
758enable_dependency_tracking
64ac50ac 759enable_maintainer_mode
81ecdfbb
RW
760with_lib_path
761enable_targets
762enable_64_bit_bfd
763with_sysroot
764enable_got
765enable_werror
766enable_build_warnings
da2f07f1 767enable_plugins
81ecdfbb
RW
768enable_largefile
769enable_shared
770enable_static
771with_pic
772enable_fast_install
773with_gnu_ld
774enable_libtool_lock
775enable_nls
81ecdfbb
RW
776'
777 ac_precious_vars='build_alias
778host_alias
779target_alias
780CC
781CFLAGS
782LDFLAGS
783LIBS
784CPPFLAGS
785CPP
786YACC
787YFLAGS'
788
252b5132
RH
789
790# Initialize some variables set by options.
42ecbf5e
DJ
791ac_init_help=
792ac_init_version=false
81ecdfbb
RW
793ac_unrecognized_opts=
794ac_unrecognized_sep=
252b5132
RH
795# The variables have the same names as the options, with
796# dashes changed to underlines.
42ecbf5e 797cache_file=/dev/null
252b5132 798exec_prefix=NONE
252b5132 799no_create=
252b5132
RH
800no_recursion=
801prefix=NONE
802program_prefix=NONE
803program_suffix=NONE
804program_transform_name=s,x,x,
805silent=
806site=
807srcdir=
252b5132
RH
808verbose=
809x_includes=NONE
810x_libraries=NONE
42ecbf5e
DJ
811
812# Installation directory options.
813# These are left unexpanded so users can "make install exec_prefix=/foo"
814# and all the variables that are supposed to be based on exec_prefix
815# by default will actually change.
816# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 817# (The list follows the same order as the GNU Coding Standards.)
252b5132
RH
818bindir='${exec_prefix}/bin'
819sbindir='${exec_prefix}/sbin'
820libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
821datarootdir='${prefix}/share'
822datadir='${datarootdir}'
252b5132
RH
823sysconfdir='${prefix}/etc'
824sharedstatedir='${prefix}/com'
825localstatedir='${prefix}/var'
252b5132
RH
826includedir='${prefix}/include'
827oldincludedir='/usr/include'
81ecdfbb
RW
828docdir='${datarootdir}/doc/${PACKAGE}'
829infodir='${datarootdir}/info'
830htmldir='${docdir}'
831dvidir='${docdir}'
832pdfdir='${docdir}'
833psdir='${docdir}'
834libdir='${exec_prefix}/lib'
835localedir='${datarootdir}/locale'
836mandir='${datarootdir}/man'
252b5132 837
252b5132 838ac_prev=
81ecdfbb 839ac_dashdash=
252b5132
RH
840for ac_option
841do
252b5132
RH
842 # If the previous option needs an argument, assign it.
843 if test -n "$ac_prev"; then
81ecdfbb 844 eval $ac_prev=\$ac_option
252b5132
RH
845 ac_prev=
846 continue
847 fi
848
81ecdfbb
RW
849 case $ac_option in
850 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
851 *) ac_optarg=yes ;;
852 esac
252b5132
RH
853
854 # Accept the important Cygnus configure options, so we can diagnose typos.
855
81ecdfbb
RW
856 case $ac_dashdash$ac_option in
857 --)
858 ac_dashdash=yes ;;
252b5132
RH
859
860 -bindir | --bindir | --bindi | --bind | --bin | --bi)
861 ac_prev=bindir ;;
862 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
42ecbf5e 863 bindir=$ac_optarg ;;
252b5132
RH
864
865 -build | --build | --buil | --bui | --bu)
42ecbf5e 866 ac_prev=build_alias ;;
252b5132 867 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
42ecbf5e 868 build_alias=$ac_optarg ;;
252b5132
RH
869
870 -cache-file | --cache-file | --cache-fil | --cache-fi \
871 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
872 ac_prev=cache_file ;;
873 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
874 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
42ecbf5e
DJ
875 cache_file=$ac_optarg ;;
876
877 --config-cache | -C)
878 cache_file=config.cache ;;
252b5132 879
81ecdfbb 880 -datadir | --datadir | --datadi | --datad)
252b5132 881 ac_prev=datadir ;;
81ecdfbb 882 -datadir=* | --datadir=* | --datadi=* | --datad=*)
42ecbf5e 883 datadir=$ac_optarg ;;
252b5132 884
81ecdfbb
RW
885 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
886 | --dataroo | --dataro | --datar)
887 ac_prev=datarootdir ;;
888 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
889 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
890 datarootdir=$ac_optarg ;;
891
252b5132 892 -disable-* | --disable-*)
81ecdfbb 893 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 894 # Reject names that are not valid shell variable names.
81ecdfbb
RW
895 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
896 as_fn_error "invalid feature name: $ac_useropt"
897 ac_useropt_orig=$ac_useropt
898 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
899 case $ac_user_opts in
900 *"
901"enable_$ac_useropt"
902"*) ;;
903 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
904 ac_unrecognized_sep=', ';;
905 esac
906 eval enable_$ac_useropt=no ;;
907
908 -docdir | --docdir | --docdi | --doc | --do)
909 ac_prev=docdir ;;
910 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
911 docdir=$ac_optarg ;;
912
913 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
914 ac_prev=dvidir ;;
915 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
916 dvidir=$ac_optarg ;;
252b5132
RH
917
918 -enable-* | --enable-*)
81ecdfbb 919 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 920 # Reject names that are not valid shell variable names.
81ecdfbb
RW
921 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
922 as_fn_error "invalid feature name: $ac_useropt"
923 ac_useropt_orig=$ac_useropt
924 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925 case $ac_user_opts in
926 *"
927"enable_$ac_useropt"
928"*) ;;
929 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
930 ac_unrecognized_sep=', ';;
252b5132 931 esac
81ecdfbb 932 eval enable_$ac_useropt=\$ac_optarg ;;
252b5132
RH
933
934 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
935 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
936 | --exec | --exe | --ex)
937 ac_prev=exec_prefix ;;
938 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
939 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
940 | --exec=* | --exe=* | --ex=*)
42ecbf5e 941 exec_prefix=$ac_optarg ;;
252b5132
RH
942
943 -gas | --gas | --ga | --g)
944 # Obsolete; use --with-gas.
945 with_gas=yes ;;
946
42ecbf5e
DJ
947 -help | --help | --hel | --he | -h)
948 ac_init_help=long ;;
949 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
950 ac_init_help=recursive ;;
951 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
952 ac_init_help=short ;;
252b5132
RH
953
954 -host | --host | --hos | --ho)
42ecbf5e 955 ac_prev=host_alias ;;
252b5132 956 -host=* | --host=* | --hos=* | --ho=*)
42ecbf5e 957 host_alias=$ac_optarg ;;
252b5132 958
81ecdfbb
RW
959 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
960 ac_prev=htmldir ;;
961 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
962 | --ht=*)
963 htmldir=$ac_optarg ;;
964
252b5132
RH
965 -includedir | --includedir | --includedi | --included | --include \
966 | --includ | --inclu | --incl | --inc)
967 ac_prev=includedir ;;
968 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
969 | --includ=* | --inclu=* | --incl=* | --inc=*)
42ecbf5e 970 includedir=$ac_optarg ;;
252b5132
RH
971
972 -infodir | --infodir | --infodi | --infod | --info | --inf)
973 ac_prev=infodir ;;
974 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
42ecbf5e 975 infodir=$ac_optarg ;;
252b5132
RH
976
977 -libdir | --libdir | --libdi | --libd)
978 ac_prev=libdir ;;
979 -libdir=* | --libdir=* | --libdi=* | --libd=*)
42ecbf5e 980 libdir=$ac_optarg ;;
252b5132
RH
981
982 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
983 | --libexe | --libex | --libe)
984 ac_prev=libexecdir ;;
985 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
986 | --libexe=* | --libex=* | --libe=*)
42ecbf5e 987 libexecdir=$ac_optarg ;;
252b5132 988
81ecdfbb
RW
989 -localedir | --localedir | --localedi | --localed | --locale)
990 ac_prev=localedir ;;
991 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
992 localedir=$ac_optarg ;;
993
252b5132 994 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 995 | --localstate | --localstat | --localsta | --localst | --locals)
252b5132
RH
996 ac_prev=localstatedir ;;
997 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 998 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
42ecbf5e 999 localstatedir=$ac_optarg ;;
252b5132
RH
1000
1001 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1002 ac_prev=mandir ;;
1003 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
42ecbf5e 1004 mandir=$ac_optarg ;;
252b5132
RH
1005
1006 -nfp | --nfp | --nf)
1007 # Obsolete; use --without-fp.
1008 with_fp=no ;;
1009
1010 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
42ecbf5e 1011 | --no-cr | --no-c | -n)
252b5132
RH
1012 no_create=yes ;;
1013
1014 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1015 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1016 no_recursion=yes ;;
1017
1018 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1019 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1020 | --oldin | --oldi | --old | --ol | --o)
1021 ac_prev=oldincludedir ;;
1022 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1023 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1024 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
42ecbf5e 1025 oldincludedir=$ac_optarg ;;
252b5132
RH
1026
1027 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1028 ac_prev=prefix ;;
1029 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
42ecbf5e 1030 prefix=$ac_optarg ;;
252b5132
RH
1031
1032 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1033 | --program-pre | --program-pr | --program-p)
1034 ac_prev=program_prefix ;;
1035 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1036 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
42ecbf5e 1037 program_prefix=$ac_optarg ;;
252b5132
RH
1038
1039 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1040 | --program-suf | --program-su | --program-s)
1041 ac_prev=program_suffix ;;
1042 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1043 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
42ecbf5e 1044 program_suffix=$ac_optarg ;;
252b5132
RH
1045
1046 -program-transform-name | --program-transform-name \
1047 | --program-transform-nam | --program-transform-na \
1048 | --program-transform-n | --program-transform- \
1049 | --program-transform | --program-transfor \
1050 | --program-transfo | --program-transf \
1051 | --program-trans | --program-tran \
1052 | --progr-tra | --program-tr | --program-t)
1053 ac_prev=program_transform_name ;;
1054 -program-transform-name=* | --program-transform-name=* \
1055 | --program-transform-nam=* | --program-transform-na=* \
1056 | --program-transform-n=* | --program-transform-=* \
1057 | --program-transform=* | --program-transfor=* \
1058 | --program-transfo=* | --program-transf=* \
1059 | --program-trans=* | --program-tran=* \
1060 | --progr-tra=* | --program-tr=* | --program-t=*)
42ecbf5e 1061 program_transform_name=$ac_optarg ;;
252b5132 1062
81ecdfbb
RW
1063 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1064 ac_prev=pdfdir ;;
1065 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1066 pdfdir=$ac_optarg ;;
1067
1068 -psdir | --psdir | --psdi | --psd | --ps)
1069 ac_prev=psdir ;;
1070 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1071 psdir=$ac_optarg ;;
1072
252b5132
RH
1073 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074 | -silent | --silent | --silen | --sile | --sil)
1075 silent=yes ;;
1076
1077 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1078 ac_prev=sbindir ;;
1079 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1080 | --sbi=* | --sb=*)
42ecbf5e 1081 sbindir=$ac_optarg ;;
252b5132
RH
1082
1083 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1084 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1085 | --sharedst | --shareds | --shared | --share | --shar \
1086 | --sha | --sh)
1087 ac_prev=sharedstatedir ;;
1088 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1089 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1090 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1091 | --sha=* | --sh=*)
42ecbf5e 1092 sharedstatedir=$ac_optarg ;;
252b5132
RH
1093
1094 -site | --site | --sit)
1095 ac_prev=site ;;
1096 -site=* | --site=* | --sit=*)
42ecbf5e 1097 site=$ac_optarg ;;
85fbca6a 1098
252b5132
RH
1099 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1100 ac_prev=srcdir ;;
1101 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42ecbf5e 1102 srcdir=$ac_optarg ;;
252b5132
RH
1103
1104 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1105 | --syscon | --sysco | --sysc | --sys | --sy)
1106 ac_prev=sysconfdir ;;
1107 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1108 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
42ecbf5e 1109 sysconfdir=$ac_optarg ;;
252b5132
RH
1110
1111 -target | --target | --targe | --targ | --tar | --ta | --t)
42ecbf5e 1112 ac_prev=target_alias ;;
252b5132 1113 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
42ecbf5e 1114 target_alias=$ac_optarg ;;
252b5132
RH
1115
1116 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1117 verbose=yes ;;
1118
42ecbf5e
DJ
1119 -version | --version | --versio | --versi | --vers | -V)
1120 ac_init_version=: ;;
252b5132
RH
1121
1122 -with-* | --with-*)
81ecdfbb 1123 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 1124 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126 as_fn_error "invalid package name: $ac_useropt"
1127 ac_useropt_orig=$ac_useropt
1128 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129 case $ac_user_opts in
1130 *"
1131"with_$ac_useropt"
1132"*) ;;
1133 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1134 ac_unrecognized_sep=', ';;
252b5132 1135 esac
81ecdfbb 1136 eval with_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1137
1138 -without-* | --without-*)
81ecdfbb 1139 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 1140 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1141 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142 as_fn_error "invalid package name: $ac_useropt"
1143 ac_useropt_orig=$ac_useropt
1144 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145 case $ac_user_opts in
1146 *"
1147"with_$ac_useropt"
1148"*) ;;
1149 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1150 ac_unrecognized_sep=', ';;
1151 esac
1152 eval with_$ac_useropt=no ;;
252b5132
RH
1153
1154 --x)
1155 # Obsolete; use --with-x.
1156 with_x=yes ;;
1157
1158 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159 | --x-incl | --x-inc | --x-in | --x-i)
1160 ac_prev=x_includes ;;
1161 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
42ecbf5e 1163 x_includes=$ac_optarg ;;
252b5132
RH
1164
1165 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167 ac_prev=x_libraries ;;
1168 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
42ecbf5e 1170 x_libraries=$ac_optarg ;;
252b5132 1171
81ecdfbb
RW
1172 -*) as_fn_error "unrecognized option: \`$ac_option'
1173Try \`$0 --help' for more information."
252b5132
RH
1174 ;;
1175
42ecbf5e
DJ
1176 *=*)
1177 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1179 case $ac_envvar in #(
1180 '' | [0-9]* | *[!_$as_cr_alnum]* )
1181 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1182 esac
1183 eval $ac_envvar=\$ac_optarg
42ecbf5e
DJ
1184 export $ac_envvar ;;
1185
252b5132 1186 *)
42ecbf5e 1187 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1188 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
42ecbf5e 1189 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1190 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
42ecbf5e 1191 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
1192 ;;
1193
1194 esac
1195done
1196
1197if test -n "$ac_prev"; then
42ecbf5e 1198 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1199 as_fn_error "missing argument to $ac_option"
252b5132 1200fi
252b5132 1201
81ecdfbb
RW
1202if test -n "$ac_unrecognized_opts"; then
1203 case $enable_option_checking in
1204 no) ;;
1205 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1206 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
42ecbf5e 1207 esac
81ecdfbb 1208fi
252b5132 1209
81ecdfbb
RW
1210# Check all directory arguments for consistency.
1211for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1212 datadir sysconfdir sharedstatedir localstatedir includedir \
1213 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1214 libdir localedir mandir
252b5132 1215do
81ecdfbb
RW
1216 eval ac_val=\$$ac_var
1217 # Remove trailing slashes.
1218 case $ac_val in
1219 */ )
1220 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1221 eval $ac_var=\$ac_val;;
1222 esac
1223 # Be sure to have absolute directory names.
42ecbf5e 1224 case $ac_val in
81ecdfbb
RW
1225 [\\/$]* | ?:[\\/]* ) continue;;
1226 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
252b5132 1227 esac
81ecdfbb 1228 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
252b5132
RH
1229done
1230
42ecbf5e
DJ
1231# There might be people who depend on the old broken behavior: `$host'
1232# used to hold the argument of --host etc.
1233# FIXME: To remove some day.
1234build=$build_alias
1235host=$host_alias
1236target=$target_alias
1237
1238# FIXME: To remove some day.
1239if test "x$host_alias" != x; then
1240 if test "x$build_alias" = x; then
1241 cross_compiling=maybe
81ecdfbb 1242 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
42ecbf5e
DJ
1243 If a cross compiler is detected then cross compile mode will be used." >&2
1244 elif test "x$build_alias" != "x$host_alias"; then
1245 cross_compiling=yes
1246 fi
1247fi
e5a52504 1248
42ecbf5e
DJ
1249ac_tool_prefix=
1250test -n "$host_alias" && ac_tool_prefix=$host_alias-
1251
1252test "$silent" = yes && exec 6>/dev/null
252b5132 1253
252b5132 1254
81ecdfbb
RW
1255ac_pwd=`pwd` && test -n "$ac_pwd" &&
1256ac_ls_di=`ls -di .` &&
1257ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1258 as_fn_error "working directory cannot be determined"
1259test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1260 as_fn_error "pwd does not report name of working directory"
1261
1262
252b5132
RH
1263# Find the source files, if location was not specified.
1264if test -z "$srcdir"; then
1265 ac_srcdir_defaulted=yes
81ecdfbb
RW
1266 # Try the directory containing this script, then the parent directory.
1267 ac_confdir=`$as_dirname -- "$as_myself" ||
1268$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1269 X"$as_myself" : 'X\(//\)[^/]' \| \
1270 X"$as_myself" : 'X\(//\)$' \| \
1271 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1272$as_echo X"$as_myself" |
1273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1274 s//\1/
1275 q
1276 }
1277 /^X\(\/\/\)[^/].*/{
1278 s//\1/
1279 q
1280 }
1281 /^X\(\/\/\)$/{
1282 s//\1/
1283 q
1284 }
1285 /^X\(\/\).*/{
1286 s//\1/
1287 q
1288 }
1289 s/.*/./; q'`
252b5132 1290 srcdir=$ac_confdir
81ecdfbb 1291 if test ! -r "$srcdir/$ac_unique_file"; then
252b5132
RH
1292 srcdir=..
1293 fi
1294else
1295 ac_srcdir_defaulted=no
1296fi
81ecdfbb
RW
1297if test ! -r "$srcdir/$ac_unique_file"; then
1298 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1299 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1300fi
1301ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1302ac_abs_confdir=`(
1303 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1304 pwd)`
1305# When building in place, set srcdir=.
1306if test "$ac_abs_confdir" = "$ac_pwd"; then
1307 srcdir=.
1308fi
1309# Remove unnecessary trailing slashes from srcdir.
1310# Double slashes in file names in object file debugging info
1311# mess up M-x gdb in Emacs.
1312case $srcdir in
1313*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1314esac
1315for ac_var in $ac_precious_vars; do
1316 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1317 eval ac_env_${ac_var}_value=\$${ac_var}
1318 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1319 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1320done
252b5132 1321
42ecbf5e
DJ
1322#
1323# Report the --help message.
1324#
1325if test "$ac_init_help" = "long"; then
1326 # Omit some internal or obsolete options to make the list less imposing.
1327 # This message is too long to be a string in the A/UX 3.1 sh.
1328 cat <<_ACEOF
1329\`configure' configures this package to adapt to many kinds of systems.
252b5132 1330
42ecbf5e 1331Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 1332
42ecbf5e
DJ
1333To assign environment variables (e.g., CC, CFLAGS...), specify them as
1334VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 1335
42ecbf5e 1336Defaults for the options are specified in brackets.
ac48eca1 1337
42ecbf5e
DJ
1338Configuration:
1339 -h, --help display this help and exit
1340 --help=short display options specific to this package
1341 --help=recursive display the short help of all the included packages
1342 -V, --version display version information and exit
1343 -q, --quiet, --silent do not print \`checking...' messages
1344 --cache-file=FILE cache test results in FILE [disabled]
1345 -C, --config-cache alias for \`--cache-file=config.cache'
1346 -n, --no-create do not create output files
1347 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1348
42ecbf5e
DJ
1349Installation directories:
1350 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1351 [$ac_default_prefix]
42ecbf5e 1352 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1353 [PREFIX]
ac48eca1 1354
42ecbf5e
DJ
1355By default, \`make install' will install all the files in
1356\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1357an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1358for instance \`--prefix=\$HOME'.
ac48eca1 1359
42ecbf5e 1360For better control, use the options below.
ac48eca1 1361
42ecbf5e 1362Fine tuning of the installation directories:
81ecdfbb
RW
1363 --bindir=DIR user executables [EPREFIX/bin]
1364 --sbindir=DIR system admin executables [EPREFIX/sbin]
1365 --libexecdir=DIR program executables [EPREFIX/libexec]
1366 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1367 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1368 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1369 --libdir=DIR object code libraries [EPREFIX/lib]
1370 --includedir=DIR C header files [PREFIX/include]
1371 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1372 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1373 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1374 --infodir=DIR info documentation [DATAROOTDIR/info]
1375 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1376 --mandir=DIR man documentation [DATAROOTDIR/man]
1377 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1378 --htmldir=DIR html documentation [DOCDIR]
1379 --dvidir=DIR dvi documentation [DOCDIR]
1380 --pdfdir=DIR pdf documentation [DOCDIR]
1381 --psdir=DIR ps documentation [DOCDIR]
42ecbf5e 1382_ACEOF
ac48eca1 1383
42ecbf5e 1384 cat <<\_ACEOF
252b5132 1385
42ecbf5e
DJ
1386Program names:
1387 --program-prefix=PREFIX prepend PREFIX to installed program names
1388 --program-suffix=SUFFIX append SUFFIX to installed program names
1389 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 1390
42ecbf5e
DJ
1391System types:
1392 --build=BUILD configure for building on BUILD [guessed]
1393 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1394 --target=TARGET configure for building compilers for TARGET [HOST]
1395_ACEOF
252b5132 1396fi
252b5132 1397
42ecbf5e 1398if test -n "$ac_init_help"; then
252b5132 1399
42ecbf5e 1400 cat <<\_ACEOF
e5a52504 1401
42ecbf5e 1402Optional Features:
81ecdfbb 1403 --disable-option-checking ignore unrecognized --enable/--with options
42ecbf5e
DJ
1404 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1405 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1406 --disable-dependency-tracking speeds up one-time build
1407 --enable-dependency-tracking do not reject slow dependency extractors
64ac50ac
RW
1408 --enable-maintainer-mode enable make rules and dependencies not useful
1409 (and sometimes confusing) to the casual installer
ce2cded5
L
1410 --enable-targets alternative target configurations
1411 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
7fb9f789
NC
1412 --enable-got=<type> GOT handling scheme (target, single, negative,
1413 multigot)
ce2cded5
L
1414 --enable-werror treat compile warnings as errors
1415 --enable-build-warnings enable build-time compiler warnings
da2f07f1 1416 --enable-plugins Enable support for plugins (defaults no)
d053aef8 1417 --disable-largefile omit support for large files
81ecdfbb
RW
1418 --enable-shared[=PKGS] build shared libraries [default=yes]
1419 --enable-static[=PKGS] build static libraries [default=yes]
d7040cdb
SE
1420 --enable-fast-install[=PKGS]
1421 optimize for fast installation [default=yes]
42ecbf5e 1422 --disable-libtool-lock avoid locking (might break parallel builds)
42ecbf5e 1423 --disable-nls do not use Native Language Support
42ecbf5e
DJ
1424
1425Optional Packages:
1426 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1427 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
ce2cded5
L
1428 --with-lib-path=dir1:dir2... set default LIB_PATH
1429 --with-sysroot=DIR Search for usr/lib et al within DIR.
d7040cdb
SE
1430 --with-pic try to use only PIC/non-PIC objects [default=use
1431 both]
1432 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
42ecbf5e
DJ
1433
1434Some influential environment variables:
1435 CC C compiler command
1436 CFLAGS C compiler flags
1437 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1438 nonstandard directory <lib dir>
81ecdfbb
RW
1439 LIBS libraries to pass to the linker, e.g. -l<library>
1440 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1441 you have headers in a nonstandard directory <include dir>
42ecbf5e 1442 CPP C preprocessor
81ecdfbb
RW
1443 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1444 the first program found out of: `bison -y', `byacc', `yacc'.
1445 YFLAGS The list of arguments that will be passed by default to $YACC.
1446 This script will default YFLAGS to the empty string to avoid a
1447 default value of `-d' given by some make applications.
42ecbf5e
DJ
1448
1449Use these variables to override the choices made by `configure' or to help
1450it to find libraries and programs with nonstandard names/locations.
1451
81ecdfbb 1452Report bugs to the package provider.
42ecbf5e 1453_ACEOF
81ecdfbb 1454ac_status=$?
42ecbf5e
DJ
1455fi
1456
1457if test "$ac_init_help" = "recursive"; then
1458 # If there are subdirs, report their specific --help.
42ecbf5e 1459 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1460 test -d "$ac_dir" ||
1461 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1462 continue
42ecbf5e
DJ
1463 ac_builddir=.
1464
81ecdfbb
RW
1465case "$ac_dir" in
1466.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1467*)
1468 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1469 # A ".." for each directory in $ac_dir_suffix.
1470 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1471 case $ac_top_builddir_sub in
1472 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1473 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1474 esac ;;
1475esac
1476ac_abs_top_builddir=$ac_pwd
1477ac_abs_builddir=$ac_pwd$ac_dir_suffix
1478# for backward compatibility:
1479ac_top_builddir=$ac_top_build_prefix
42ecbf5e
DJ
1480
1481case $srcdir in
81ecdfbb 1482 .) # We are building in place.
42ecbf5e 1483 ac_srcdir=.
81ecdfbb
RW
1484 ac_top_srcdir=$ac_top_builddir_sub
1485 ac_abs_top_srcdir=$ac_pwd ;;
1486 [\\/]* | ?:[\\/]* ) # Absolute name.
42ecbf5e 1487 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1488 ac_top_srcdir=$srcdir
1489 ac_abs_top_srcdir=$srcdir ;;
1490 *) # Relative name.
1491 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1492 ac_top_srcdir=$ac_top_build_prefix$srcdir
1493 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42ecbf5e 1494esac
81ecdfbb
RW
1495ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1496
1497 cd "$ac_dir" || { ac_status=$?; continue; }
1498 # Check for guested configure.
1499 if test -f "$ac_srcdir/configure.gnu"; then
1500 echo &&
1501 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1502 elif test -f "$ac_srcdir/configure"; then
1503 echo &&
1504 $SHELL "$ac_srcdir/configure" --help=recursive
42ecbf5e 1505 else
81ecdfbb
RW
1506 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1507 fi || ac_status=$?
1508 cd "$ac_pwd" || { ac_status=$?; break; }
42ecbf5e 1509 done
a2d91340
AC
1510fi
1511
81ecdfbb 1512test -n "$ac_init_help" && exit $ac_status
42ecbf5e
DJ
1513if $ac_init_version; then
1514 cat <<\_ACEOF
81ecdfbb
RW
1515configure
1516generated by GNU Autoconf 2.64
a2d91340 1517
81ecdfbb 1518Copyright (C) 2009 Free Software Foundation, Inc.
42ecbf5e
DJ
1519This configure script is free software; the Free Software Foundation
1520gives unlimited permission to copy, distribute and modify it.
1521_ACEOF
81ecdfbb 1522 exit
42ecbf5e 1523fi
a2d91340 1524
81ecdfbb
RW
1525## ------------------------ ##
1526## Autoconf initialization. ##
1527## ------------------------ ##
a2d91340 1528
81ecdfbb
RW
1529# ac_fn_c_try_compile LINENO
1530# --------------------------
1531# Try to compile conftest.$ac_ext, and return whether this succeeded.
1532ac_fn_c_try_compile ()
1533{
1534 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1535 rm -f conftest.$ac_objext
1536 if { { ac_try="$ac_compile"
1537case "(($ac_try" in
1538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1539 *) ac_try_echo=$ac_try;;
1540esac
1541eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1542$as_echo "$ac_try_echo"; } >&5
1543 (eval "$ac_compile") 2>conftest.err
1544 ac_status=$?
1545 if test -s conftest.err; then
1546 grep -v '^ *+' conftest.err >conftest.er1
1547 cat conftest.er1 >&5
1548 mv -f conftest.er1 conftest.err
1549 fi
1550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1551 test $ac_status = 0; } && {
1552 test -z "$ac_c_werror_flag" ||
1553 test ! -s conftest.err
1554 } && test -s conftest.$ac_objext; then :
1555 ac_retval=0
1556else
1557 $as_echo "$as_me: failed program was:" >&5
1558sed 's/^/| /' conftest.$ac_ext >&5
a2d91340 1559
81ecdfbb
RW
1560 ac_retval=1
1561fi
1562 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1563 return $ac_retval
1564
1565} # ac_fn_c_try_compile
1566
1567# ac_fn_c_try_link LINENO
1568# -----------------------
1569# Try to link conftest.$ac_ext, and return whether this succeeded.
1570ac_fn_c_try_link ()
42ecbf5e 1571{
81ecdfbb
RW
1572 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1573 rm -f conftest.$ac_objext conftest$ac_exeext
1574 if { { ac_try="$ac_link"
1575case "(($ac_try" in
1576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1577 *) ac_try_echo=$ac_try;;
1578esac
1579eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1580$as_echo "$ac_try_echo"; } >&5
1581 (eval "$ac_link") 2>conftest.err
1582 ac_status=$?
1583 if test -s conftest.err; then
1584 grep -v '^ *+' conftest.err >conftest.er1
1585 cat conftest.er1 >&5
1586 mv -f conftest.er1 conftest.err
1587 fi
1588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1589 test $ac_status = 0; } && {
1590 test -z "$ac_c_werror_flag" ||
1591 test ! -s conftest.err
1592 } && test -s conftest$ac_exeext && {
1593 test "$cross_compiling" = yes ||
1594 $as_test_x conftest$ac_exeext
1595 }; then :
1596 ac_retval=0
1597else
1598 $as_echo "$as_me: failed program was:" >&5
1599sed 's/^/| /' conftest.$ac_ext >&5
42ecbf5e 1600
81ecdfbb
RW
1601 ac_retval=1
1602fi
1603 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1604 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1605 # interfere with the next link command; also delete a directory that is
1606 # left behind by Apple's compiler. We do this before executing the actions.
1607 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1608 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1609 return $ac_retval
42ecbf5e 1610
81ecdfbb 1611} # ac_fn_c_try_link
42ecbf5e 1612
81ecdfbb
RW
1613# ac_fn_c_try_cpp LINENO
1614# ----------------------
1615# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1616ac_fn_c_try_cpp ()
1617{
1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619 if { { ac_try="$ac_cpp conftest.$ac_ext"
1620case "(($ac_try" in
1621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1622 *) ac_try_echo=$ac_try;;
1623esac
1624eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625$as_echo "$ac_try_echo"; } >&5
1626 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1627 ac_status=$?
1628 if test -s conftest.err; then
1629 grep -v '^ *+' conftest.err >conftest.er1
1630 cat conftest.er1 >&5
1631 mv -f conftest.er1 conftest.err
1632 fi
1633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634 test $ac_status = 0; } >/dev/null && {
1635 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1636 test ! -s conftest.err
1637 }; then :
1638 ac_retval=0
1639else
1640 $as_echo "$as_me: failed program was:" >&5
1641sed 's/^/| /' conftest.$ac_ext >&5
1642
1643 ac_retval=1
1644fi
1645 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1646 return $ac_retval
1647
1648} # ac_fn_c_try_cpp
1649
1650# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1651# -------------------------------------------------------
1652# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1653# the include files in INCLUDES and setting the cache variable VAR
1654# accordingly.
1655ac_fn_c_check_header_mongrel ()
1656{
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1660$as_echo_n "checking for $2... " >&6; }
1661if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1662 $as_echo_n "(cached) " >&6
1663fi
1664eval ac_res=\$$3
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1666$as_echo "$ac_res" >&6; }
1667else
1668 # Is the header compilable?
1669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1670$as_echo_n "checking $2 usability... " >&6; }
1671cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1672/* end confdefs.h. */
1673$4
1674#include <$2>
1675_ACEOF
1676if ac_fn_c_try_compile "$LINENO"; then :
1677 ac_header_compiler=yes
1678else
1679 ac_header_compiler=no
1680fi
1681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1683$as_echo "$ac_header_compiler" >&6; }
1684
1685# Is the header present?
1686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1687$as_echo_n "checking $2 presence... " >&6; }
1688cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1689/* end confdefs.h. */
1690#include <$2>
1691_ACEOF
1692if ac_fn_c_try_cpp "$LINENO"; then :
1693 ac_header_preproc=yes
1694else
1695 ac_header_preproc=no
1696fi
1697rm -f conftest.err conftest.$ac_ext
1698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1699$as_echo "$ac_header_preproc" >&6; }
1700
1701# So? What about this header?
1702case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1703 yes:no: )
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1705$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1707$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1708 ;;
1709 no:yes:* )
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1711$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1713$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1715$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1717$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1719$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1720 ;;
1721esac
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1723$as_echo_n "checking for $2... " >&6; }
1724if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1725 $as_echo_n "(cached) " >&6
1726else
1727 eval "$3=\$ac_header_compiler"
1728fi
1729eval ac_res=\$$3
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1731$as_echo "$ac_res" >&6; }
1732fi
1733 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1734
1735} # ac_fn_c_check_header_mongrel
1736
1737# ac_fn_c_try_run LINENO
1738# ----------------------
1739# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1740# that executables *can* be run.
1741ac_fn_c_try_run ()
1742{
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 if { { ac_try="$ac_link"
1745case "(($ac_try" in
1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747 *) ac_try_echo=$ac_try;;
1748esac
1749eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750$as_echo "$ac_try_echo"; } >&5
1751 (eval "$ac_link") 2>&5
1752 ac_status=$?
1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1755 { { case "(($ac_try" in
1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757 *) ac_try_echo=$ac_try;;
1758esac
1759eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760$as_echo "$ac_try_echo"; } >&5
1761 (eval "$ac_try") 2>&5
1762 ac_status=$?
1763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1764 test $ac_status = 0; }; }; then :
1765 ac_retval=0
1766else
1767 $as_echo "$as_me: program exited with status $ac_status" >&5
1768 $as_echo "$as_me: failed program was:" >&5
1769sed 's/^/| /' conftest.$ac_ext >&5
1770
1771 ac_retval=$ac_status
1772fi
1773 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1774 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1775 return $ac_retval
1776
1777} # ac_fn_c_try_run
1778
1779# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1780# -------------------------------------------------------
1781# Tests whether HEADER exists and can be compiled using the include files in
1782# INCLUDES, setting the cache variable VAR accordingly.
1783ac_fn_c_check_header_compile ()
1784{
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1787$as_echo_n "checking for $2... " >&6; }
1788if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1789 $as_echo_n "(cached) " >&6
1790else
1791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792/* end confdefs.h. */
1793$4
1794#include <$2>
1795_ACEOF
1796if ac_fn_c_try_compile "$LINENO"; then :
1797 eval "$3=yes"
1798else
1799 eval "$3=no"
1800fi
1801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1802fi
1803eval ac_res=\$$3
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1805$as_echo "$ac_res" >&6; }
1806 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1807
1808} # ac_fn_c_check_header_compile
1809
1810# ac_fn_c_check_func LINENO FUNC VAR
1811# ----------------------------------
1812# Tests whether FUNC exists, setting the cache variable VAR accordingly
1813ac_fn_c_check_func ()
1814{
1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1817$as_echo_n "checking for $2... " >&6; }
1818if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1819 $as_echo_n "(cached) " >&6
1820else
1821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822/* end confdefs.h. */
1823/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1825#define $2 innocuous_$2
1826
1827/* System header to define __stub macros and hopefully few prototypes,
1828 which can conflict with char $2 (); below.
1829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1830 <limits.h> exists even on freestanding compilers. */
1831
1832#ifdef __STDC__
1833# include <limits.h>
1834#else
1835# include <assert.h>
1836#endif
1837
1838#undef $2
1839
1840/* Override any GCC internal prototype to avoid an error.
1841 Use char because int might match the return type of a GCC
1842 builtin and then its argument prototype would still apply. */
1843#ifdef __cplusplus
1844extern "C"
1845#endif
1846char $2 ();
1847/* The GNU C library defines this for functions which it implements
1848 to always fail with ENOSYS. Some functions are actually named
1849 something starting with __ and the normal name is an alias. */
1850#if defined __stub_$2 || defined __stub___$2
1851choke me
1852#endif
1853
1854int
1855main ()
1856{
1857return $2 ();
1858 ;
1859 return 0;
1860}
1861_ACEOF
1862if ac_fn_c_try_link "$LINENO"; then :
1863 eval "$3=yes"
1864else
1865 eval "$3=no"
1866fi
1867rm -f core conftest.err conftest.$ac_objext \
1868 conftest$ac_exeext conftest.$ac_ext
1869fi
1870eval ac_res=\$$3
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1872$as_echo "$ac_res" >&6; }
1873 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1874
1875} # ac_fn_c_check_func
1876
1877# ac_fn_c_check_decl LINENO SYMBOL VAR
1878# ------------------------------------
1879# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1880ac_fn_c_check_decl ()
1881{
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1884$as_echo_n "checking whether $2 is declared... " >&6; }
1885if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1886 $as_echo_n "(cached) " >&6
1887else
1888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889/* end confdefs.h. */
1890$4
1891int
1892main ()
1893{
1894#ifndef $2
1895 (void) $2;
1896#endif
1897
1898 ;
1899 return 0;
1900}
1901_ACEOF
1902if ac_fn_c_try_compile "$LINENO"; then :
1903 eval "$3=yes"
1904else
1905 eval "$3=no"
1906fi
1907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1908fi
1909eval ac_res=\$$3
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1911$as_echo "$ac_res" >&6; }
1912 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1913
1914} # ac_fn_c_check_decl
1915
1916# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1917# --------------------------------------------
1918# Tries to find the compile-time value of EXPR in a program that includes
1919# INCLUDES, setting VAR accordingly. Returns whether the value could be
1920# computed
1921ac_fn_c_compute_int ()
1922{
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 if test "$cross_compiling" = yes; then
1925 # Depending upon the size, compute the lo and hi bounds.
1926cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927/* end confdefs.h. */
1928$4
1929int
1930main ()
1931{
1932static int test_array [1 - 2 * !(($2) >= 0)];
1933test_array [0] = 0
1934
1935 ;
1936 return 0;
1937}
1938_ACEOF
1939if ac_fn_c_try_compile "$LINENO"; then :
1940 ac_lo=0 ac_mid=0
1941 while :; do
1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943/* end confdefs.h. */
1944$4
1945int
1946main ()
1947{
1948static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1949test_array [0] = 0
1950
1951 ;
1952 return 0;
1953}
1954_ACEOF
1955if ac_fn_c_try_compile "$LINENO"; then :
1956 ac_hi=$ac_mid; break
1957else
1958 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1959 if test $ac_lo -le $ac_mid; then
1960 ac_lo= ac_hi=
1961 break
1962 fi
1963 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1964fi
1965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1966 done
1967else
1968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969/* end confdefs.h. */
1970$4
1971int
1972main ()
1973{
1974static int test_array [1 - 2 * !(($2) < 0)];
1975test_array [0] = 0
1976
1977 ;
1978 return 0;
1979}
1980_ACEOF
1981if ac_fn_c_try_compile "$LINENO"; then :
1982 ac_hi=-1 ac_mid=-1
1983 while :; do
1984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985/* end confdefs.h. */
1986$4
1987int
1988main ()
1989{
1990static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1991test_array [0] = 0
1992
1993 ;
1994 return 0;
1995}
1996_ACEOF
1997if ac_fn_c_try_compile "$LINENO"; then :
1998 ac_lo=$ac_mid; break
1999else
2000 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2001 if test $ac_mid -le $ac_hi; then
2002 ac_lo= ac_hi=
2003 break
2004 fi
2005 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2006fi
2007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008 done
2009else
2010 ac_lo= ac_hi=
2011fi
2012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2013fi
2014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2015# Binary search between lo and hi bounds.
2016while test "x$ac_lo" != "x$ac_hi"; do
2017 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019/* end confdefs.h. */
2020$4
2021int
2022main ()
2023{
2024static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2025test_array [0] = 0
2026
2027 ;
2028 return 0;
2029}
2030_ACEOF
2031if ac_fn_c_try_compile "$LINENO"; then :
2032 ac_hi=$ac_mid
2033else
2034 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2035fi
2036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2037done
2038case $ac_lo in #((
2039?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2040'') ac_retval=1 ;;
2041esac
2042 else
2043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2044/* end confdefs.h. */
2045$4
2046static long int longval () { return $2; }
2047static unsigned long int ulongval () { return $2; }
2048#include <stdio.h>
2049#include <stdlib.h>
2050int
2051main ()
2052{
2053
2054 FILE *f = fopen ("conftest.val", "w");
2055 if (! f)
2056 return 1;
2057 if (($2) < 0)
2058 {
2059 long int i = longval ();
2060 if (i != ($2))
2061 return 1;
2062 fprintf (f, "%ld", i);
2063 }
2064 else
2065 {
2066 unsigned long int i = ulongval ();
2067 if (i != ($2))
2068 return 1;
2069 fprintf (f, "%lu", i);
2070 }
2071 /* Do not output a trailing newline, as this causes \r\n confusion
2072 on some platforms. */
2073 return ferror (f) || fclose (f) != 0;
2074
2075 ;
2076 return 0;
2077}
2078_ACEOF
2079if ac_fn_c_try_run "$LINENO"; then :
2080 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2081else
2082 ac_retval=1
2083fi
2084rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2085 conftest.$ac_objext conftest.beam conftest.$ac_ext
2086rm -f conftest.val
2087
2088 fi
2089 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2090 return $ac_retval
2091
2092} # ac_fn_c_compute_int
2093cat >config.log <<_ACEOF
2094This file contains any messages produced by compilers while
2095running configure, to aid debugging if configure makes a mistake.
2096
2097It was created by $as_me, which was
2098generated by GNU Autoconf 2.64. Invocation command line was
2099
2100 $ $0 $@
2101
2102_ACEOF
2103exec 5>>config.log
2104{
2105cat <<_ASUNAME
2106## --------- ##
2107## Platform. ##
2108## --------- ##
2109
2110hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2111uname -m = `(uname -m) 2>/dev/null || echo unknown`
2112uname -r = `(uname -r) 2>/dev/null || echo unknown`
2113uname -s = `(uname -s) 2>/dev/null || echo unknown`
2114uname -v = `(uname -v) 2>/dev/null || echo unknown`
2115
2116/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2117/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2118
2119/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2120/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2121/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2122/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
42ecbf5e
DJ
2123/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2124/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2125/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2126
2127_ASUNAME
2128
2129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2130for as_dir in $PATH
2131do
2132 IFS=$as_save_IFS
2133 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2134 $as_echo "PATH: $as_dir"
2135 done
2136IFS=$as_save_IFS
252b5132 2137
42ecbf5e 2138} >&5
5d64ca4e 2139
42ecbf5e 2140cat >&5 <<_ACEOF
5d64ca4e 2141
5d64ca4e 2142
42ecbf5e
DJ
2143## ----------- ##
2144## Core tests. ##
2145## ----------- ##
5d64ca4e 2146
42ecbf5e 2147_ACEOF
2469cfa2 2148
42ecbf5e
DJ
2149
2150# Keep a trace of the command line.
2151# Strip out --no-create and --no-recursion so they do not pile up.
2152# Strip out --silent because we don't want to record it for future runs.
2153# Also quote any args containing shell meta-characters.
2154# Make two passes to allow for proper duplicate-argument suppression.
2155ac_configure_args=
2156ac_configure_args0=
2157ac_configure_args1=
42ecbf5e
DJ
2158ac_must_keep_next=false
2159for ac_pass in 1 2
2160do
2161 for ac_arg
2162 do
2163 case $ac_arg in
2164 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2165 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2166 | -silent | --silent | --silen | --sile | --sil)
2167 continue ;;
81ecdfbb
RW
2168 *\'*)
2169 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
42ecbf5e
DJ
2170 esac
2171 case $ac_pass in
81ecdfbb 2172 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
42ecbf5e 2173 2)
81ecdfbb 2174 as_fn_append ac_configure_args1 " '$ac_arg'"
42ecbf5e
DJ
2175 if test $ac_must_keep_next = true; then
2176 ac_must_keep_next=false # Got value, back to normal.
2177 else
2178 case $ac_arg in
2179 *=* | --config-cache | -C | -disable-* | --disable-* \
2180 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2181 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2182 | -with-* | --with-* | -without-* | --without-* | --x)
2183 case "$ac_configure_args0 " in
2184 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2185 esac
2186 ;;
2187 -* ) ac_must_keep_next=true ;;
2188 esac
2189 fi
81ecdfbb 2190 as_fn_append ac_configure_args " '$ac_arg'"
42ecbf5e
DJ
2191 ;;
2192 esac
2193 done
2194done
81ecdfbb
RW
2195{ ac_configure_args0=; unset ac_configure_args0;}
2196{ ac_configure_args1=; unset ac_configure_args1;}
42ecbf5e
DJ
2197
2198# When interrupted or exit'd, cleanup temporary files, and complete
2199# config.log. We remove comments because anyway the quotes in there
2200# would cause problems or look ugly.
81ecdfbb
RW
2201# WARNING: Use '\'' to represent an apostrophe within the trap.
2202# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
42ecbf5e
DJ
2203trap 'exit_status=$?
2204 # Save into config.log some information that might help in debugging.
2205 {
2206 echo
2207
2208 cat <<\_ASBOX
2209## ---------------- ##
2210## Cache variables. ##
2211## ---------------- ##
2212_ASBOX
2213 echo
2214 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2215(
2216 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2217 eval ac_val=\$$ac_var
2218 case $ac_val in #(
2219 *${as_nl}*)
2220 case $ac_var in #(
2221 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2222$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2223 esac
2224 case $ac_var in #(
2225 _ | IFS | as_nl) ;; #(
2226 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2227 *) { eval $ac_var=; unset $ac_var;} ;;
2228 esac ;;
2229 esac
2230 done
42ecbf5e 2231 (set) 2>&1 |
81ecdfbb
RW
2232 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2233 *${as_nl}ac_space=\ *)
42ecbf5e 2234 sed -n \
81ecdfbb
RW
2235 "s/'\''/'\''\\\\'\'''\''/g;
2236 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2237 ;; #(
42ecbf5e 2238 *)
81ecdfbb 2239 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42ecbf5e 2240 ;;
81ecdfbb
RW
2241 esac |
2242 sort
2243)
42ecbf5e
DJ
2244 echo
2245
2246 cat <<\_ASBOX
2247## ----------------- ##
2248## Output variables. ##
2249## ----------------- ##
2250_ASBOX
2251 echo
2252 for ac_var in $ac_subst_vars
2253 do
81ecdfbb
RW
2254 eval ac_val=\$$ac_var
2255 case $ac_val in
2256 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2257 esac
2258 $as_echo "$ac_var='\''$ac_val'\''"
42ecbf5e
DJ
2259 done | sort
2260 echo
2261
2262 if test -n "$ac_subst_files"; then
2263 cat <<\_ASBOX
81ecdfbb
RW
2264## ------------------- ##
2265## File substitutions. ##
2266## ------------------- ##
42ecbf5e
DJ
2267_ASBOX
2268 echo
2269 for ac_var in $ac_subst_files
2270 do
81ecdfbb
RW
2271 eval ac_val=\$$ac_var
2272 case $ac_val in
2273 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2274 esac
2275 $as_echo "$ac_var='\''$ac_val'\''"
42ecbf5e
DJ
2276 done | sort
2277 echo
2278 fi
2279
2280 if test -s confdefs.h; then
2281 cat <<\_ASBOX
2282## ----------- ##
2283## confdefs.h. ##
2284## ----------- ##
2285_ASBOX
2286 echo
81ecdfbb 2287 cat confdefs.h
42ecbf5e
DJ
2288 echo
2289 fi
2290 test "$ac_signal" != 0 &&
81ecdfbb
RW
2291 $as_echo "$as_me: caught signal $ac_signal"
2292 $as_echo "$as_me: exit $exit_status"
42ecbf5e 2293 } >&5
81ecdfbb
RW
2294 rm -f core *.core core.conftest.* &&
2295 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
42ecbf5e 2296 exit $exit_status
81ecdfbb 2297' 0
42ecbf5e 2298for ac_signal in 1 2 13 15; do
81ecdfbb 2299 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
42ecbf5e
DJ
2300done
2301ac_signal=0
2302
2303# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2304rm -f -r conftest* confdefs.h
2305
2306$as_echo "/* confdefs.h */" > confdefs.h
42ecbf5e
DJ
2307
2308# Predefined preprocessor variables.
2309
2310cat >>confdefs.h <<_ACEOF
2311#define PACKAGE_NAME "$PACKAGE_NAME"
2312_ACEOF
2313
42ecbf5e
DJ
2314cat >>confdefs.h <<_ACEOF
2315#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2316_ACEOF
2317
42ecbf5e
DJ
2318cat >>confdefs.h <<_ACEOF
2319#define PACKAGE_VERSION "$PACKAGE_VERSION"
2320_ACEOF
2321
42ecbf5e
DJ
2322cat >>confdefs.h <<_ACEOF
2323#define PACKAGE_STRING "$PACKAGE_STRING"
2324_ACEOF
2325
42ecbf5e
DJ
2326cat >>confdefs.h <<_ACEOF
2327#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2328_ACEOF
2329
81ecdfbb
RW
2330cat >>confdefs.h <<_ACEOF
2331#define PACKAGE_URL "$PACKAGE_URL"
2332_ACEOF
2333
42ecbf5e
DJ
2334
2335# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2336# Prefer an explicitly selected file to automatically selected ones.
2337ac_site_file1=NONE
2338ac_site_file2=NONE
2339if test -n "$CONFIG_SITE"; then
2340 ac_site_file1=$CONFIG_SITE
2341elif test "x$prefix" != xNONE; then
2342 ac_site_file1=$prefix/share/config.site
2343 ac_site_file2=$prefix/etc/config.site
2344else
2345 ac_site_file1=$ac_default_prefix/share/config.site
2346 ac_site_file2=$ac_default_prefix/etc/config.site
2347fi
2348for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2349do
2350 test "x$ac_site_file" = xNONE && continue
42ecbf5e 2351 if test -r "$ac_site_file"; then
81ecdfbb
RW
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2353$as_echo "$as_me: loading site script $ac_site_file" >&6;}
42ecbf5e
DJ
2354 sed 's/^/| /' "$ac_site_file" >&5
2355 . "$ac_site_file"
2356 fi
2357done
2358
2359if test -r "$cache_file"; then
2360 # Some versions of bash will fail to source /dev/null (special
2361 # files actually), so we avoid doing that.
2362 if test -f "$cache_file"; then
81ecdfbb
RW
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2364$as_echo "$as_me: loading cache $cache_file" >&6;}
42ecbf5e 2365 case $cache_file in
81ecdfbb
RW
2366 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2367 *) . "./$cache_file";;
42ecbf5e
DJ
2368 esac
2369 fi
2370else
81ecdfbb
RW
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2372$as_echo "$as_me: creating cache $cache_file" >&6;}
42ecbf5e
DJ
2373 >$cache_file
2374fi
2375
2376# Check that the precious variables saved in the cache have kept the same
2377# value.
2378ac_cache_corrupted=false
81ecdfbb 2379for ac_var in $ac_precious_vars; do
42ecbf5e
DJ
2380 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2381 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2382 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2383 eval ac_new_val=\$ac_env_${ac_var}_value
42ecbf5e
DJ
2384 case $ac_old_set,$ac_new_set in
2385 set,)
81ecdfbb
RW
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2387$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
42ecbf5e
DJ
2388 ac_cache_corrupted=: ;;
2389 ,set)
81ecdfbb
RW
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2391$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
42ecbf5e
DJ
2392 ac_cache_corrupted=: ;;
2393 ,);;
2394 *)
2395 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2396 # differences in whitespace do not lead to failure.
2397 ac_old_val_w=`echo x $ac_old_val`
2398 ac_new_val_w=`echo x $ac_new_val`
2399 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2401$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2402 ac_cache_corrupted=:
2403 else
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2405$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2406 eval $ac_var=\$ac_old_val
2407 fi
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2409$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2411$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
42ecbf5e
DJ
2412 fi;;
2413 esac
2414 # Pass precious variables to config.status.
2415 if test "$ac_new_set" = set; then
2416 case $ac_new_val in
81ecdfbb 2417 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
42ecbf5e
DJ
2418 *) ac_arg=$ac_var=$ac_new_val ;;
2419 esac
2420 case " $ac_configure_args " in
2421 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2422 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
42ecbf5e
DJ
2423 esac
2424 fi
2425done
2426if $ac_cache_corrupted; then
81ecdfbb
RW
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2428$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2430$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2431 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
42ecbf5e 2432fi
81ecdfbb
RW
2433## -------------------- ##
2434## Main body of script. ##
2435## -------------------- ##
42ecbf5e
DJ
2436
2437ac_ext=c
2438ac_cpp='$CPP $CPPFLAGS'
2439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2441ac_compiler_gnu=$ac_cv_c_compiler_gnu
2442
2443
2444
42ecbf5e 2445
da594c4a 2446
42ecbf5e
DJ
2447
2448
2449ac_aux_dir=
81ecdfbb
RW
2450for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2451 for ac_t in install-sh install.sh shtool; do
2452 if test -f "$ac_dir/$ac_t"; then
2453 ac_aux_dir=$ac_dir
2454 ac_install_sh="$ac_aux_dir/$ac_t -c"
2455 break 2
2456 fi
2457 done
42ecbf5e
DJ
2458done
2459if test -z "$ac_aux_dir"; then
81ecdfbb 2460 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
42ecbf5e 2461fi
81ecdfbb
RW
2462
2463# These three variables are undocumented and unsupported,
2464# and are intended to be withdrawn in a future Autoconf release.
2465# They can cause serious problems if a builder's source tree is in a directory
2466# whose full name contains unusual characters.
2467ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2468ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2469ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2470
42ecbf5e
DJ
2471
2472# Make sure we can run config.sub.
81ecdfbb
RW
2473$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2474 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2475
2476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2477$as_echo_n "checking build system type... " >&6; }
2478if test "${ac_cv_build+set}" = set; then :
2479 $as_echo_n "(cached) " >&6
2480else
2481 ac_build_alias=$build_alias
2482test "x$ac_build_alias" = x &&
2483 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2484test "x$ac_build_alias" = x &&
2485 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2486ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2487 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2488
2489fi
2490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2491$as_echo "$ac_cv_build" >&6; }
2492case $ac_cv_build in
2493*-*-*) ;;
2494*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2495esac
42ecbf5e 2496build=$ac_cv_build
81ecdfbb
RW
2497ac_save_IFS=$IFS; IFS='-'
2498set x $ac_cv_build
2499shift
2500build_cpu=$1
2501build_vendor=$2
2502shift; shift
2503# Remember, the first character of IFS is used to create $*,
2504# except with old shells:
2505build_os=$*
2506IFS=$ac_save_IFS
2507case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2508
2509
81ecdfbb
RW
2510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2511$as_echo_n "checking host system type... " >&6; }
2512if test "${ac_cv_host+set}" = set; then :
2513 $as_echo_n "(cached) " >&6
2514else
2515 if test "x$host_alias" = x; then
2516 ac_cv_host=$ac_cv_build
42ecbf5e 2517else
81ecdfbb
RW
2518 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2519 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2520fi
42ecbf5e
DJ
2521
2522fi
81ecdfbb
RW
2523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2524$as_echo "$ac_cv_host" >&6; }
2525case $ac_cv_host in
2526*-*-*) ;;
2527*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2528esac
42ecbf5e 2529host=$ac_cv_host
81ecdfbb
RW
2530ac_save_IFS=$IFS; IFS='-'
2531set x $ac_cv_host
2532shift
2533host_cpu=$1
2534host_vendor=$2
2535shift; shift
2536# Remember, the first character of IFS is used to create $*,
2537# except with old shells:
2538host_os=$*
2539IFS=$ac_save_IFS
2540case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2541
2542
81ecdfbb
RW
2543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2544$as_echo_n "checking target system type... " >&6; }
2545if test "${ac_cv_target+set}" = set; then :
2546 $as_echo_n "(cached) " >&6
42ecbf5e 2547else
81ecdfbb
RW
2548 if test "x$target_alias" = x; then
2549 ac_cv_target=$ac_cv_host
2550else
2551 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2552 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2553fi
42ecbf5e
DJ
2554
2555fi
81ecdfbb
RW
2556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2557$as_echo "$ac_cv_target" >&6; }
2558case $ac_cv_target in
2559*-*-*) ;;
2560*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2561esac
42ecbf5e 2562target=$ac_cv_target
81ecdfbb
RW
2563ac_save_IFS=$IFS; IFS='-'
2564set x $ac_cv_target
2565shift
2566target_cpu=$1
2567target_vendor=$2
2568shift; shift
2569# Remember, the first character of IFS is used to create $*,
2570# except with old shells:
2571target_os=$*
2572IFS=$ac_save_IFS
2573case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2574
2575
2576# The aliases save the names the user supplied, while $host etc.
2577# will get canonicalized.
2578test -n "$target_alias" &&
2579 test "$program_prefix$program_suffix$program_transform_name" = \
2580 NONENONEs,x,x, &&
2581 program_prefix=${target_alias}-
2582ac_ext=c
2583ac_cpp='$CPP $CPPFLAGS'
2584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2586ac_compiler_gnu=$ac_cv_c_compiler_gnu
2587if test -n "$ac_tool_prefix"; then
2588 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2589set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
2590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2591$as_echo_n "checking for $ac_word... " >&6; }
2592if test "${ac_cv_prog_CC+set}" = set; then :
2593 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2594else
2595 if test -n "$CC"; then
2596 ac_cv_prog_CC="$CC" # Let the user override the test.
2597else
2598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599for as_dir in $PATH
2600do
2601 IFS=$as_save_IFS
2602 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2603 for ac_exec_ext in '' $ac_executable_extensions; do
2604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2605 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 2606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2607 break 2
2608 fi
2609done
81ecdfbb
RW
2610 done
2611IFS=$as_save_IFS
42ecbf5e
DJ
2612
2613fi
2614fi
2615CC=$ac_cv_prog_CC
2616if test -n "$CC"; then
81ecdfbb
RW
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2618$as_echo "$CC" >&6; }
42ecbf5e 2619else
81ecdfbb
RW
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2621$as_echo "no" >&6; }
42ecbf5e
DJ
2622fi
2623
81ecdfbb 2624
42ecbf5e
DJ
2625fi
2626if test -z "$ac_cv_prog_CC"; then
2627 ac_ct_CC=$CC
2628 # Extract the first word of "gcc", so it can be a program name with args.
2629set dummy gcc; ac_word=$2
81ecdfbb
RW
2630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2631$as_echo_n "checking for $ac_word... " >&6; }
2632if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2633 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2634else
2635 if test -n "$ac_ct_CC"; then
2636 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2637else
2638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639for as_dir in $PATH
2640do
2641 IFS=$as_save_IFS
2642 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2643 for ac_exec_ext in '' $ac_executable_extensions; do
2644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2645 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 2646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2647 break 2
2648 fi
2649done
81ecdfbb
RW
2650 done
2651IFS=$as_save_IFS
42ecbf5e
DJ
2652
2653fi
2654fi
2655ac_ct_CC=$ac_cv_prog_ac_ct_CC
2656if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2658$as_echo "$ac_ct_CC" >&6; }
42ecbf5e 2659else
81ecdfbb
RW
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2661$as_echo "no" >&6; }
42ecbf5e
DJ
2662fi
2663
81ecdfbb
RW
2664 if test "x$ac_ct_CC" = x; then
2665 CC=""
2666 else
2667 case $cross_compiling:$ac_tool_warned in
2668yes:)
2669{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2670$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2671ac_tool_warned=yes ;;
2672esac
2673 CC=$ac_ct_CC
2674 fi
42ecbf5e
DJ
2675else
2676 CC="$ac_cv_prog_CC"
2677fi
2678
2679if test -z "$CC"; then
81ecdfbb
RW
2680 if test -n "$ac_tool_prefix"; then
2681 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
42ecbf5e 2682set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
2683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2684$as_echo_n "checking for $ac_word... " >&6; }
2685if test "${ac_cv_prog_CC+set}" = set; then :
2686 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2687else
2688 if test -n "$CC"; then
2689 ac_cv_prog_CC="$CC" # Let the user override the test.
2690else
2691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692for as_dir in $PATH
2693do
2694 IFS=$as_save_IFS
2695 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2696 for ac_exec_ext in '' $ac_executable_extensions; do
2697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2698 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 2699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2700 break 2
2701 fi
2702done
81ecdfbb
RW
2703 done
2704IFS=$as_save_IFS
42ecbf5e
DJ
2705
2706fi
2707fi
2708CC=$ac_cv_prog_CC
2709if test -n "$CC"; then
81ecdfbb
RW
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2711$as_echo "$CC" >&6; }
42ecbf5e 2712else
81ecdfbb
RW
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2714$as_echo "no" >&6; }
42ecbf5e
DJ
2715fi
2716
42ecbf5e 2717
81ecdfbb 2718 fi
42ecbf5e
DJ
2719fi
2720if test -z "$CC"; then
2721 # Extract the first word of "cc", so it can be a program name with args.
2722set dummy cc; ac_word=$2
81ecdfbb
RW
2723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2724$as_echo_n "checking for $ac_word... " >&6; }
2725if test "${ac_cv_prog_CC+set}" = set; then :
2726 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2727else
2728 if test -n "$CC"; then
2729 ac_cv_prog_CC="$CC" # Let the user override the test.
2730else
2731 ac_prog_rejected=no
2732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733for as_dir in $PATH
2734do
2735 IFS=$as_save_IFS
2736 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2737 for ac_exec_ext in '' $ac_executable_extensions; do
2738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e
DJ
2739 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2740 ac_prog_rejected=yes
2741 continue
2742 fi
2743 ac_cv_prog_CC="cc"
81ecdfbb 2744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2745 break 2
2746 fi
2747done
81ecdfbb
RW
2748 done
2749IFS=$as_save_IFS
42ecbf5e
DJ
2750
2751if test $ac_prog_rejected = yes; then
2752 # We found a bogon in the path, so make sure we never use it.
2753 set dummy $ac_cv_prog_CC
2754 shift
2755 if test $# != 0; then
2756 # We chose a different compiler from the bogus one.
2757 # However, it has the same basename, so the bogon will be chosen
2758 # first if we set CC to just the basename; use the full file name.
2759 shift
2760 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2761 fi
2762fi
2763fi
2764fi
2765CC=$ac_cv_prog_CC
2766if test -n "$CC"; then
81ecdfbb
RW
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2768$as_echo "$CC" >&6; }
42ecbf5e 2769else
81ecdfbb
RW
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2771$as_echo "no" >&6; }
42ecbf5e
DJ
2772fi
2773
81ecdfbb 2774
42ecbf5e
DJ
2775fi
2776if test -z "$CC"; then
2777 if test -n "$ac_tool_prefix"; then
81ecdfbb 2778 for ac_prog in cl.exe
42ecbf5e
DJ
2779 do
2780 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2781set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
2782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2783$as_echo_n "checking for $ac_word... " >&6; }
2784if test "${ac_cv_prog_CC+set}" = set; then :
2785 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2786else
2787 if test -n "$CC"; then
2788 ac_cv_prog_CC="$CC" # Let the user override the test.
2789else
2790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791for as_dir in $PATH
2792do
2793 IFS=$as_save_IFS
2794 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2795 for ac_exec_ext in '' $ac_executable_extensions; do
2796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2797 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 2798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2799 break 2
2800 fi
2801done
81ecdfbb
RW
2802 done
2803IFS=$as_save_IFS
42ecbf5e
DJ
2804
2805fi
2806fi
2807CC=$ac_cv_prog_CC
2808if test -n "$CC"; then
81ecdfbb
RW
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2810$as_echo "$CC" >&6; }
42ecbf5e 2811else
81ecdfbb
RW
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2813$as_echo "no" >&6; }
42ecbf5e
DJ
2814fi
2815
81ecdfbb 2816
42ecbf5e
DJ
2817 test -n "$CC" && break
2818 done
2819fi
2820if test -z "$CC"; then
2821 ac_ct_CC=$CC
81ecdfbb 2822 for ac_prog in cl.exe
42ecbf5e
DJ
2823do
2824 # Extract the first word of "$ac_prog", so it can be a program name with args.
2825set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
2826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2827$as_echo_n "checking for $ac_word... " >&6; }
2828if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2829 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2830else
2831 if test -n "$ac_ct_CC"; then
2832 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2833else
2834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835for as_dir in $PATH
2836do
2837 IFS=$as_save_IFS
2838 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2839 for ac_exec_ext in '' $ac_executable_extensions; do
2840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2841 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 2842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2843 break 2
2844 fi
2845done
81ecdfbb
RW
2846 done
2847IFS=$as_save_IFS
42ecbf5e
DJ
2848
2849fi
2850fi
2851ac_ct_CC=$ac_cv_prog_ac_ct_CC
2852if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2854$as_echo "$ac_ct_CC" >&6; }
42ecbf5e 2855else
81ecdfbb
RW
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2857$as_echo "no" >&6; }
42ecbf5e
DJ
2858fi
2859
81ecdfbb 2860
42ecbf5e
DJ
2861 test -n "$ac_ct_CC" && break
2862done
2863
81ecdfbb
RW
2864 if test "x$ac_ct_CC" = x; then
2865 CC=""
2866 else
2867 case $cross_compiling:$ac_tool_warned in
2868yes:)
2869{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2870$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2871ac_tool_warned=yes ;;
2872esac
2873 CC=$ac_ct_CC
2874 fi
42ecbf5e
DJ
2875fi
2876
2877fi
2878
2879
81ecdfbb
RW
2880test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2881$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2882as_fn_error "no acceptable C compiler found in \$PATH
2883See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e
DJ
2884
2885# Provide some information about the compiler.
81ecdfbb
RW
2886$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2887set X $ac_compile
2888ac_compiler=$2
2889for ac_option in --version -v -V -qversion; do
2890 { { ac_try="$ac_compiler $ac_option >&5"
2891case "(($ac_try" in
2892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2893 *) ac_try_echo=$ac_try;;
2894esac
2895eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2896$as_echo "$ac_try_echo"; } >&5
2897 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
42ecbf5e 2898 ac_status=$?
81ecdfbb
RW
2899 if test -s conftest.err; then
2900 sed '10a\
2901... rest of stderr output deleted ...
2902 10q' conftest.err >conftest.er1
2903 cat conftest.er1 >&5
2904 rm -f conftest.er1 conftest.err
2905 fi
2906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2907 test $ac_status = 0; }
2908done
42ecbf5e 2909
81ecdfbb 2910cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
2911/* end confdefs.h. */
2912
2913int
2914main ()
2915{
2916
2917 ;
2918 return 0;
2919}
2920_ACEOF
2921ac_clean_files_save=$ac_clean_files
81ecdfbb 2922ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
42ecbf5e
DJ
2923# Try to create an executable without -o first, disregard a.out.
2924# It will help us diagnose broken compilers, and finding out an intuition
2925# of exeext.
81ecdfbb
RW
2926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2927$as_echo_n "checking for C compiler default output file name... " >&6; }
2928ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2929
2930# The possible output files:
2931ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2932
2933ac_rmfiles=
2934for ac_file in $ac_files
2935do
2936 case $ac_file in
2937 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2938 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2939 esac
2940done
2941rm -f $ac_rmfiles
2942
2943if { { ac_try="$ac_link_default"
2944case "(($ac_try" in
2945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2946 *) ac_try_echo=$ac_try;;
2947esac
2948eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2949$as_echo "$ac_try_echo"; } >&5
2950 (eval "$ac_link_default") 2>&5
2951 ac_status=$?
2952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2953 test $ac_status = 0; }; then :
2954 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2955# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2956# in a Makefile. We should not override ac_cv_exeext if it was cached,
2957# so that the user can short-circuit this test for compilers unknown to
2958# Autoconf.
2959for ac_file in $ac_files ''
42ecbf5e
DJ
2960do
2961 test -f "$ac_file" || continue
2962 case $ac_file in
81ecdfbb 2963 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
42ecbf5e
DJ
2964 ;;
2965 [ab].out )
2966 # We found the default executable, but exeext='' is most
2967 # certainly right.
2968 break;;
2969 *.* )
81ecdfbb
RW
2970 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2971 then :; else
2972 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2973 fi
2974 # We set ac_cv_exeext here because the later test for it is not
2975 # safe: cross compilers may not add the suffix if given an `-o'
2976 # argument, so we may need to know it at that point already.
2977 # Even if this section looks crufty: it has the advantage of
2978 # actually working.
42ecbf5e
DJ
2979 break;;
2980 * )
2981 break;;
2982 esac
2983done
81ecdfbb
RW
2984test "$ac_cv_exeext" = no && ac_cv_exeext=
2985
42ecbf5e 2986else
81ecdfbb
RW
2987 ac_file=''
2988fi
2989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2990$as_echo "$ac_file" >&6; }
2991if test -z "$ac_file"; then :
2992 $as_echo "$as_me: failed program was:" >&5
42ecbf5e
DJ
2993sed 's/^/| /' conftest.$ac_ext >&5
2994
81ecdfbb
RW
2995{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2996$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2997{ as_fn_set_status 77
2998as_fn_error "C compiler cannot create executables
2999See \`config.log' for more details." "$LINENO" 5; }; }
42ecbf5e 3000fi
42ecbf5e 3001ac_exeext=$ac_cv_exeext
42ecbf5e 3002
81ecdfbb 3003# Check that the compiler produces executables we can run. If not, either
42ecbf5e 3004# the compiler is broken, or we cross compile.
81ecdfbb
RW
3005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3006$as_echo_n "checking whether the C compiler works... " >&6; }
42ecbf5e
DJ
3007# If not cross compiling, check that we can run a simple program.
3008if test "$cross_compiling" != yes; then
3009 if { ac_try='./$ac_file'
81ecdfbb
RW
3010 { { case "(($ac_try" in
3011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012 *) ac_try_echo=$ac_try;;
3013esac
3014eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3015$as_echo "$ac_try_echo"; } >&5
3016 (eval "$ac_try") 2>&5
42ecbf5e 3017 ac_status=$?
81ecdfbb
RW
3018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3019 test $ac_status = 0; }; }; then
42ecbf5e
DJ
3020 cross_compiling=no
3021 else
3022 if test "$cross_compiling" = maybe; then
3023 cross_compiling=yes
3024 else
81ecdfbb
RW
3025 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3026$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3027as_fn_error "cannot run C compiled programs.
42ecbf5e 3028If you meant to cross compile, use \`--host'.
81ecdfbb 3029See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e
DJ
3030 fi
3031 fi
3032fi
81ecdfbb
RW
3033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3034$as_echo "yes" >&6; }
42ecbf5e 3035
81ecdfbb 3036rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
42ecbf5e 3037ac_clean_files=$ac_clean_files_save
81ecdfbb 3038# Check that the compiler produces executables we can run. If not, either
42ecbf5e 3039# the compiler is broken, or we cross compile.
81ecdfbb
RW
3040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3041$as_echo_n "checking whether we are cross compiling... " >&6; }
3042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3043$as_echo "$cross_compiling" >&6; }
3044
3045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3046$as_echo_n "checking for suffix of executables... " >&6; }
3047if { { ac_try="$ac_link"
3048case "(($ac_try" in
3049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050 *) ac_try_echo=$ac_try;;
3051esac
3052eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3053$as_echo "$ac_try_echo"; } >&5
3054 (eval "$ac_link") 2>&5
42ecbf5e 3055 ac_status=$?
81ecdfbb
RW
3056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3057 test $ac_status = 0; }; then :
42ecbf5e
DJ
3058 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3059# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3060# work properly (i.e., refer to `conftest.exe'), while it won't with
3061# `rm'.
3062for ac_file in conftest.exe conftest conftest.*; do
3063 test -f "$ac_file" || continue
3064 case $ac_file in
81ecdfbb 3065 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
42ecbf5e 3066 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
42ecbf5e
DJ
3067 break;;
3068 * ) break;;
3069 esac
3070done
3071else
81ecdfbb
RW
3072 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3073$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3074as_fn_error "cannot compute suffix of executables: cannot compile and link
3075See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e 3076fi
42ecbf5e 3077rm -f conftest$ac_cv_exeext
81ecdfbb
RW
3078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3079$as_echo "$ac_cv_exeext" >&6; }
42ecbf5e
DJ
3080
3081rm -f conftest.$ac_ext
3082EXEEXT=$ac_cv_exeext
3083ac_exeext=$EXEEXT
81ecdfbb
RW
3084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3085$as_echo_n "checking for suffix of object files... " >&6; }
3086if test "${ac_cv_objext+set}" = set; then :
3087 $as_echo_n "(cached) " >&6
42ecbf5e 3088else
81ecdfbb 3089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3090/* end confdefs.h. */
3091
3092int
3093main ()
3094{
3095
3096 ;
3097 return 0;
3098}
3099_ACEOF
3100rm -f conftest.o conftest.obj
81ecdfbb
RW
3101if { { ac_try="$ac_compile"
3102case "(($ac_try" in
3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104 *) ac_try_echo=$ac_try;;
3105esac
3106eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3107$as_echo "$ac_try_echo"; } >&5
3108 (eval "$ac_compile") 2>&5
3109 ac_status=$?
3110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3111 test $ac_status = 0; }; then :
3112 for ac_file in conftest.o conftest.obj conftest.*; do
3113 test -f "$ac_file" || continue;
42ecbf5e 3114 case $ac_file in
81ecdfbb 3115 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
42ecbf5e
DJ
3116 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3117 break;;
3118 esac
3119done
3120else
81ecdfbb 3121 $as_echo "$as_me: failed program was:" >&5
42ecbf5e
DJ
3122sed 's/^/| /' conftest.$ac_ext >&5
3123
81ecdfbb
RW
3124{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3125$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3126as_fn_error "cannot compute suffix of object files: cannot compile
3127See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e 3128fi
42ecbf5e
DJ
3129rm -f conftest.$ac_cv_objext conftest.$ac_ext
3130fi
81ecdfbb
RW
3131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3132$as_echo "$ac_cv_objext" >&6; }
42ecbf5e
DJ
3133OBJEXT=$ac_cv_objext
3134ac_objext=$OBJEXT
81ecdfbb
RW
3135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3136$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3137if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3138 $as_echo_n "(cached) " >&6
42ecbf5e 3139else
81ecdfbb 3140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3141/* end confdefs.h. */
3142
3143int
3144main ()
3145{
3146#ifndef __GNUC__
3147 choke me
3148#endif
3149
3150 ;
3151 return 0;
3152}
3153_ACEOF
81ecdfbb 3154if ac_fn_c_try_compile "$LINENO"; then :
42ecbf5e
DJ
3155 ac_compiler_gnu=yes
3156else
81ecdfbb 3157 ac_compiler_gnu=no
42ecbf5e 3158fi
81ecdfbb 3159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e
DJ
3160ac_cv_c_compiler_gnu=$ac_compiler_gnu
3161
3162fi
81ecdfbb
RW
3163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3164$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3165if test $ac_compiler_gnu = yes; then
3166 GCC=yes
3167else
3168 GCC=
3169fi
42ecbf5e
DJ
3170ac_test_CFLAGS=${CFLAGS+set}
3171ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
3172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3173$as_echo_n "checking whether $CC accepts -g... " >&6; }
3174if test "${ac_cv_prog_cc_g+set}" = set; then :
3175 $as_echo_n "(cached) " >&6
3176else
3177 ac_save_c_werror_flag=$ac_c_werror_flag
3178 ac_c_werror_flag=yes
3179 ac_cv_prog_cc_g=no
3180 CFLAGS="-g"
3181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3182/* end confdefs.h. */
3183
3184int
3185main ()
3186{
3187
3188 ;
3189 return 0;
3190}
3191_ACEOF
81ecdfbb 3192if ac_fn_c_try_compile "$LINENO"; then :
42ecbf5e
DJ
3193 ac_cv_prog_cc_g=yes
3194else
81ecdfbb
RW
3195 CFLAGS=""
3196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3197/* end confdefs.h. */
3198
3199int
3200main ()
3201{
3202
3203 ;
3204 return 0;
3205}
3206_ACEOF
3207if ac_fn_c_try_compile "$LINENO"; then :
3208
3209else
3210 ac_c_werror_flag=$ac_save_c_werror_flag
3211 CFLAGS="-g"
3212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3213/* end confdefs.h. */
3214
3215int
3216main ()
3217{
42ecbf5e 3218
81ecdfbb
RW
3219 ;
3220 return 0;
3221}
3222_ACEOF
3223if ac_fn_c_try_compile "$LINENO"; then :
3224 ac_cv_prog_cc_g=yes
3225fi
3226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3227fi
3228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e 3229fi
81ecdfbb
RW
3230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3231 ac_c_werror_flag=$ac_save_c_werror_flag
42ecbf5e 3232fi
81ecdfbb
RW
3233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3234$as_echo "$ac_cv_prog_cc_g" >&6; }
42ecbf5e
DJ
3235if test "$ac_test_CFLAGS" = set; then
3236 CFLAGS=$ac_save_CFLAGS
3237elif test $ac_cv_prog_cc_g = yes; then
3238 if test "$GCC" = yes; then
3239 CFLAGS="-g -O2"
3240 else
3241 CFLAGS="-g"
3242 fi
3243else
3244 if test "$GCC" = yes; then
3245 CFLAGS="-O2"
3246 else
3247 CFLAGS=
3248 fi
3249fi
81ecdfbb
RW
3250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3251$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3252if test "${ac_cv_prog_cc_c89+set}" = set; then :
3253 $as_echo_n "(cached) " >&6
42ecbf5e 3254else
81ecdfbb 3255 ac_cv_prog_cc_c89=no
42ecbf5e 3256ac_save_CC=$CC
81ecdfbb 3257cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3258/* end confdefs.h. */
3259#include <stdarg.h>
3260#include <stdio.h>
3261#include <sys/types.h>
3262#include <sys/stat.h>
3263/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3264struct buf { int x; };
3265FILE * (*rcsopen) (struct buf *, struct stat *, int);
3266static char *e (p, i)
3267 char **p;
3268 int i;
3269{
3270 return p[i];
3271}
3272static char *f (char * (*g) (char **, int), char **p, ...)
3273{
3274 char *s;
3275 va_list v;
3276 va_start (v,p);
3277 s = g (p, va_arg (v,int));
3278 va_end (v);
3279 return s;
3280}
3281
3282/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3283 function prototypes and stuff, but not '\xHH' hex character constants.
3284 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3285 as 'x'. The following induces an error, until -std is added to get
42ecbf5e
DJ
3286 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3287 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3288 that's true only with -std. */
42ecbf5e
DJ
3289int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3290
81ecdfbb
RW
3291/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3292 inside strings and character constants. */
3293#define FOO(x) 'x'
3294int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3295
42ecbf5e
DJ
3296int test (int i, double x);
3297struct s1 {int (*f) (int a);};
3298struct s2 {int (*f) (double a);};
3299int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3300int argc;
3301char **argv;
3302int
3303main ()
3304{
3305return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3306 ;
3307 return 0;
3308}
3309_ACEOF
81ecdfbb
RW
3310for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3311 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
42ecbf5e
DJ
3312do
3313 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3314 if ac_fn_c_try_compile "$LINENO"; then :
3315 ac_cv_prog_cc_c89=$ac_arg
42ecbf5e 3316fi
81ecdfbb
RW
3317rm -f core conftest.err conftest.$ac_objext
3318 test "x$ac_cv_prog_cc_c89" != "xno" && break
42ecbf5e 3319done
81ecdfbb 3320rm -f conftest.$ac_ext
42ecbf5e
DJ
3321CC=$ac_save_CC
3322
3323fi
81ecdfbb
RW
3324# AC_CACHE_VAL
3325case "x$ac_cv_prog_cc_c89" in
3326 x)
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3328$as_echo "none needed" >&6; } ;;
3329 xno)
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3331$as_echo "unsupported" >&6; } ;;
42ecbf5e 3332 *)
81ecdfbb
RW
3333 CC="$CC $ac_cv_prog_cc_c89"
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3335$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
42ecbf5e 3336esac
81ecdfbb 3337if test "x$ac_cv_prog_cc_c89" != xno; then :
42ecbf5e 3338
42ecbf5e
DJ
3339fi
3340
42ecbf5e
DJ
3341ac_ext=c
3342ac_cpp='$CPP $CPPFLAGS'
3343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3345ac_compiler_gnu=$ac_cv_c_compiler_gnu
3346
3347
81ecdfbb
RW
3348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3349$as_echo_n "checking for library containing strerror... " >&6; }
3350if test "${ac_cv_search_strerror+set}" = set; then :
3351 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
3352else
3353 ac_func_search_save_LIBS=$LIBS
81ecdfbb 3354cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3355/* end confdefs.h. */
3356
81ecdfbb
RW
3357/* Override any GCC internal prototype to avoid an error.
3358 Use char because int might match the return type of a GCC
3359 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
3360#ifdef __cplusplus
3361extern "C"
3362#endif
42ecbf5e
DJ
3363char strerror ();
3364int
3365main ()
3366{
81ecdfbb 3367return strerror ();
42ecbf5e
DJ
3368 ;
3369 return 0;
3370}
3371_ACEOF
81ecdfbb
RW
3372for ac_lib in '' cposix; do
3373 if test -z "$ac_lib"; then
3374 ac_res="none required"
3375 else
3376 ac_res=-l$ac_lib
42ecbf5e 3377 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
3378 fi
3379 if ac_fn_c_try_link "$LINENO"; then :
3380 ac_cv_search_strerror=$ac_res
3381fi
3382rm -f core conftest.err conftest.$ac_objext \
3383 conftest$ac_exeext
3384 if test "${ac_cv_search_strerror+set}" = set; then :
3385 break
3386fi
3387done
3388if test "${ac_cv_search_strerror+set}" = set; then :
42ecbf5e 3389
42ecbf5e 3390else
81ecdfbb 3391 ac_cv_search_strerror=no
42ecbf5e 3392fi
81ecdfbb 3393rm conftest.$ac_ext
42ecbf5e
DJ
3394LIBS=$ac_func_search_save_LIBS
3395fi
81ecdfbb
RW
3396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3397$as_echo "$ac_cv_search_strerror" >&6; }
3398ac_res=$ac_cv_search_strerror
3399if test "$ac_res" != no; then :
3400 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e
DJ
3401
3402fi
e5a52504
MM
3403
3404
3405BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
81ecdfbb
RW
3406am__api_version='1.11'
3407
e5a52504
MM
3408# Find a good install program. We prefer a C program (faster),
3409# so one script is as good as another. But avoid the broken or
3410# incompatible versions:
3411# SysV /etc/install, /usr/sbin/install
3412# SunOS /usr/etc/install
3413# IRIX /sbin/install
3414# AIX /bin/install
42ecbf5e 3415# AmigaOS /C/install, which installs bootblocks on floppy discs
e5a52504
MM
3416# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3417# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3418# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
42ecbf5e 3419# OS/2's system install, which has a completely different semantic
e5a52504 3420# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 3421# Reject install programs that cannot install multiple files.
81ecdfbb
RW
3422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3423$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5a52504 3424if test -z "$INSTALL"; then
81ecdfbb
RW
3425if test "${ac_cv_path_install+set}" = set; then :
3426 $as_echo_n "(cached) " >&6
e5a52504 3427else
42ecbf5e
DJ
3428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3429for as_dir in $PATH
3430do
3431 IFS=$as_save_IFS
3432 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3433 # Account for people who put trailing slashes in PATH elements.
3434case $as_dir/ in #((
3435 ./ | .// | /[cC]/* | \
42ecbf5e 3436 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 3437 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
42ecbf5e
DJ
3438 /usr/ucb/* ) ;;
3439 *)
3440 # OSF1 and SCO ODT 3.0 have their own names for install.
3441 # Don't use installbsd from OSF since it installs stuff as root
3442 # by default.
3443 for ac_prog in ginstall scoinst install; do
3444 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 3445 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
252b5132 3446 if test $ac_prog = install &&
42ecbf5e 3447 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
3448 # AIX install. It has an incompatible calling convention.
3449 :
42ecbf5e
DJ
3450 elif test $ac_prog = install &&
3451 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3452 # program-specific install script used by HP pwplus--don't use.
3453 :
252b5132 3454 else
58c85be7
RW
3455 rm -rf conftest.one conftest.two conftest.dir
3456 echo one > conftest.one
3457 echo two > conftest.two
3458 mkdir conftest.dir
3459 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3460 test -s conftest.one && test -s conftest.two &&
3461 test -s conftest.dir/conftest.one &&
3462 test -s conftest.dir/conftest.two
3463 then
3464 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3465 break 3
3466 fi
252b5132
RH
3467 fi
3468 fi
3469 done
42ecbf5e
DJ
3470 done
3471 ;;
3472esac
81ecdfbb
RW
3473
3474 done
3475IFS=$as_save_IFS
42ecbf5e 3476
58c85be7 3477rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
3478
3479fi
3480 if test "${ac_cv_path_install+set}" = set; then
42ecbf5e 3481 INSTALL=$ac_cv_path_install
252b5132 3482 else
58c85be7
RW
3483 # As a last resort, use the slow shell script. Don't cache a
3484 # value for INSTALL within a source directory, because that will
252b5132 3485 # break other packages using the cache if that directory is
58c85be7 3486 # removed, or if the value is a relative name.
42ecbf5e 3487 INSTALL=$ac_install_sh
252b5132
RH
3488 fi
3489fi
81ecdfbb
RW
3490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3491$as_echo "$INSTALL" >&6; }
252b5132
RH
3492
3493# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3494# It thinks the first close brace ends the variable substitution.
3495test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3496
42ecbf5e 3497test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
3498
3499test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3500
81ecdfbb
RW
3501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3502$as_echo_n "checking whether build environment is sane... " >&6; }
252b5132
RH
3503# Just in case
3504sleep 1
42ecbf5e 3505echo timestamp > conftest.file
81ecdfbb
RW
3506# Reject unsafe characters in $srcdir or the absolute working directory
3507# name. Accept space and tab only in the latter.
3508am_lf='
3509'
3510case `pwd` in
3511 *[\\\"\#\$\&\'\`$am_lf]*)
3512 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3513esac
3514case $srcdir in
3515 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3516 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3517esac
3518
252b5132
RH
3519# Do `set' in a subshell so we don't clobber the current shell's
3520# arguments. Must try -L first in case configure is actually a
3521# symlink; some systems play weird games with the mod time of symlinks
3522# (eg FreeBSD returns the mod time of the symlink's containing
3523# directory).
3524if (
81ecdfbb 3525 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
252b5132
RH
3526 if test "$*" = "X"; then
3527 # -L didn't work.
81ecdfbb 3528 set X `ls -t "$srcdir/configure" conftest.file`
252b5132 3529 fi
42ecbf5e
DJ
3530 rm -f conftest.file
3531 if test "$*" != "X $srcdir/configure conftest.file" \
3532 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
3533
3534 # If neither matched, then we have a broken ls. This can happen
3535 # if, for instance, CONFIG_SHELL is bash and it inherits a
3536 # broken ls alias from the environment. This has actually
3537 # happened. Such a system could not be considered "sane".
81ecdfbb
RW
3538 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3539alias in your environment" "$LINENO" 5
252b5132
RH
3540 fi
3541
42ecbf5e 3542 test "$2" = conftest.file
252b5132
RH
3543 )
3544then
3545 # Ok.
3546 :
3547else
81ecdfbb
RW
3548 as_fn_error "newly created file is older than distributed files!
3549Check your system clock" "$LINENO" 5
252b5132 3550fi
81ecdfbb
RW
3551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3552$as_echo "yes" >&6; }
252b5132 3553test "$program_prefix" != NONE &&
81ecdfbb 3554 program_transform_name="s&^&$program_prefix&;$program_transform_name"
252b5132
RH
3555# Use a double $ so make ignores it.
3556test "$program_suffix" != NONE &&
81ecdfbb
RW
3557 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3558# Double any \ or $.
42ecbf5e 3559# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
3560ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3561program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
42ecbf5e
DJ
3562
3563# expand $ac_aux_dir to an absolute path
3564am_aux_dir=`cd $ac_aux_dir && pwd`
3565
81ecdfbb
RW
3566if test x"${MISSING+set}" != xset; then
3567 case $am_aux_dir in
3568 *\ * | *\ *)
3569 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3570 *)
3571 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3572 esac
3573fi
42ecbf5e
DJ
3574# Use eval to expand $SHELL
3575if eval "$MISSING --run true"; then
3576 am_missing_run="$MISSING --run "
3577else
3578 am_missing_run=
81ecdfbb
RW
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3580$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3581fi
3582
3583if test x"${install_sh}" != xset; then
3584 case $am_aux_dir in
3585 *\ * | *\ *)
3586 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3587 *)
3588 install_sh="\${SHELL} $am_aux_dir/install-sh"
3589 esac
3590fi
3591
3592# Installed binaries are usually stripped using `strip' when the user
3593# run `make install-strip'. However `strip' might not be the right
3594# tool to use in cross-compilation environments, therefore Automake
3595# will honor the `STRIP' environment variable to overrule this program.
3596if test "$cross_compiling" != no; then
3597 if test -n "$ac_tool_prefix"; then
3598 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3599set dummy ${ac_tool_prefix}strip; ac_word=$2
3600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3601$as_echo_n "checking for $ac_word... " >&6; }
3602if test "${ac_cv_prog_STRIP+set}" = set; then :
3603 $as_echo_n "(cached) " >&6
3604else
3605 if test -n "$STRIP"; then
3606 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3607else
3608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3609for as_dir in $PATH
3610do
3611 IFS=$as_save_IFS
3612 test -z "$as_dir" && as_dir=.
3613 for ac_exec_ext in '' $ac_executable_extensions; do
3614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3615 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3617 break 2
3618 fi
3619done
3620 done
3621IFS=$as_save_IFS
3622
3623fi
3624fi
3625STRIP=$ac_cv_prog_STRIP
3626if test -n "$STRIP"; then
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3628$as_echo "$STRIP" >&6; }
3629else
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3631$as_echo "no" >&6; }
3632fi
3633
3634
3635fi
3636if test -z "$ac_cv_prog_STRIP"; then
3637 ac_ct_STRIP=$STRIP
3638 # Extract the first word of "strip", so it can be a program name with args.
3639set dummy strip; ac_word=$2
3640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3641$as_echo_n "checking for $ac_word... " >&6; }
3642if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3643 $as_echo_n "(cached) " >&6
3644else
3645 if test -n "$ac_ct_STRIP"; then
3646 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3647else
3648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3649for as_dir in $PATH
3650do
3651 IFS=$as_save_IFS
3652 test -z "$as_dir" && as_dir=.
3653 for ac_exec_ext in '' $ac_executable_extensions; do
3654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3655 ac_cv_prog_ac_ct_STRIP="strip"
3656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3657 break 2
3658 fi
3659done
3660 done
3661IFS=$as_save_IFS
3662
3663fi
3664fi
3665ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3666if test -n "$ac_ct_STRIP"; then
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3668$as_echo "$ac_ct_STRIP" >&6; }
3669else
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3671$as_echo "no" >&6; }
3672fi
3673
3674 if test "x$ac_ct_STRIP" = x; then
3675 STRIP=":"
3676 else
3677 case $cross_compiling:$ac_tool_warned in
3678yes:)
3679{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3680$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3681ac_tool_warned=yes ;;
3682esac
3683 STRIP=$ac_ct_STRIP
3684 fi
3685else
3686 STRIP="$ac_cv_prog_STRIP"
3687fi
3688
3689fi
3690INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3691
3692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3693$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3694if test -z "$MKDIR_P"; then
3695 if test "${ac_cv_path_mkdir+set}" = set; then :
3696 $as_echo_n "(cached) " >&6
3697else
3698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3699for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3700do
3701 IFS=$as_save_IFS
3702 test -z "$as_dir" && as_dir=.
3703 for ac_prog in mkdir gmkdir; do
3704 for ac_exec_ext in '' $ac_executable_extensions; do
3705 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3706 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3707 'mkdir (GNU coreutils) '* | \
3708 'mkdir (coreutils) '* | \
3709 'mkdir (fileutils) '4.1*)
3710 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3711 break 3;;
3712 esac
3713 done
3714 done
42ecbf5e 3715 done
81ecdfbb
RW
3716IFS=$as_save_IFS
3717
3718fi
3719
3720 if test "${ac_cv_path_mkdir+set}" = set; then
3721 MKDIR_P="$ac_cv_path_mkdir -p"
42ecbf5e 3722 else
81ecdfbb
RW
3723 # As a last resort, use the slow shell script. Don't cache a
3724 # value for MKDIR_P within a source directory, because that will
3725 # break other packages using the cache if that directory is
3726 # removed, or if the value is a relative name.
3727 test -d ./--version && rmdir ./--version
3728 MKDIR_P="$ac_install_sh -d"
42ecbf5e
DJ
3729 fi
3730fi
81ecdfbb
RW
3731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3732$as_echo "$MKDIR_P" >&6; }
3733
3734mkdir_p="$MKDIR_P"
3735case $mkdir_p in
3736 [\\/$]* | ?:[\\/]*) ;;
3737 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3738esac
42ecbf5e
DJ
3739
3740for ac_prog in gawk mawk nawk awk
3741do
3742 # Extract the first word of "$ac_prog", so it can be a program name with args.
3743set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
3744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3745$as_echo_n "checking for $ac_word... " >&6; }
3746if test "${ac_cv_prog_AWK+set}" = set; then :
3747 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
3748else
3749 if test -n "$AWK"; then
3750 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3751else
3752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753for as_dir in $PATH
3754do
3755 IFS=$as_save_IFS
3756 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3757 for ac_exec_ext in '' $ac_executable_extensions; do
3758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 3759 ac_cv_prog_AWK="$ac_prog"
81ecdfbb 3760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
3761 break 2
3762 fi
3763done
81ecdfbb
RW
3764 done
3765IFS=$as_save_IFS
42ecbf5e
DJ
3766
3767fi
3768fi
3769AWK=$ac_cv_prog_AWK
3770if test -n "$AWK"; then
81ecdfbb
RW
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3772$as_echo "$AWK" >&6; }
42ecbf5e 3773else
81ecdfbb
RW
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3775$as_echo "no" >&6; }
42ecbf5e 3776fi
252b5132 3777
81ecdfbb 3778
42ecbf5e
DJ
3779 test -n "$AWK" && break
3780done
252b5132 3781
81ecdfbb
RW
3782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3783$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3784set x ${MAKE-make}
3785ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3786if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3787 $as_echo_n "(cached) " >&6
252b5132 3788else
42ecbf5e 3789 cat >conftest.make <<\_ACEOF
81ecdfbb 3790SHELL = /bin/sh
252b5132 3791all:
81ecdfbb 3792 @echo '@@@%%%=$(MAKE)=@@@%%%'
42ecbf5e 3793_ACEOF
252b5132 3794# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
81ecdfbb
RW
3795case `${MAKE-make} -f conftest.make 2>/dev/null` in
3796 *@@@%%%=?*=@@@%%%*)
3797 eval ac_cv_prog_make_${ac_make}_set=yes;;
3798 *)
3799 eval ac_cv_prog_make_${ac_make}_set=no;;
3800esac
42ecbf5e 3801rm -f conftest.make
252b5132 3802fi
81ecdfbb
RW
3803if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3805$as_echo "yes" >&6; }
252b5132
RH
3806 SET_MAKE=
3807else
81ecdfbb
RW
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3809$as_echo "no" >&6; }
252b5132
RH
3810 SET_MAKE="MAKE=${MAKE-make}"
3811fi
3812
42ecbf5e
DJ
3813rm -rf .tst 2>/dev/null
3814mkdir .tst 2>/dev/null
3815if test -d .tst; then
3816 am__leading_dot=.
3817else
3818 am__leading_dot=_
3819fi
3820rmdir .tst 2>/dev/null
3821
3822DEPDIR="${am__leading_dot}deps"
3823
81ecdfbb 3824ac_config_commands="$ac_config_commands depfiles"
42ecbf5e
DJ
3825
3826
3827am_make=${MAKE-make}
3828cat > confinc << 'END'
3829am__doit:
81ecdfbb 3830 @echo this is the am__doit target
42ecbf5e
DJ
3831.PHONY: am__doit
3832END
3833# If we don't find an include directive, just comment out the code.
81ecdfbb
RW
3834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3835$as_echo_n "checking for style of include used by $am_make... " >&6; }
42ecbf5e
DJ
3836am__include="#"
3837am__quote=
3838_am_result=none
3839# First try GNU make style include.
3840echo "include confinc" > confmf
81ecdfbb
RW
3841# Ignore all kinds of additional output from `make'.
3842case `$am_make -s -f confmf 2> /dev/null` in #(
3843*the\ am__doit\ target*)
3844 am__include=include
3845 am__quote=
3846 _am_result=GNU
3847 ;;
3848esac
42ecbf5e
DJ
3849# Now try BSD make style include.
3850if test "$am__include" = "#"; then
3851 echo '.include "confinc"' > confmf
81ecdfbb
RW
3852 case `$am_make -s -f confmf 2> /dev/null` in #(
3853 *the\ am__doit\ target*)
3854 am__include=.include
3855 am__quote="\""
3856 _am_result=BSD
3857 ;;
3858 esac
42ecbf5e
DJ
3859fi
3860
3861
81ecdfbb
RW
3862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3863$as_echo "$_am_result" >&6; }
42ecbf5e
DJ
3864rm -f confinc confmf
3865
81ecdfbb
RW
3866# Check whether --enable-dependency-tracking was given.
3867if test "${enable_dependency_tracking+set}" = set; then :
3868 enableval=$enable_dependency_tracking;
3869fi
42ecbf5e 3870
42ecbf5e
DJ
3871if test "x$enable_dependency_tracking" != xno; then
3872 am_depcomp="$ac_aux_dir/depcomp"
3873 AMDEPBACKSLASH='\'
3874fi
81ecdfbb 3875 if test "x$enable_dependency_tracking" != xno; then
42ecbf5e
DJ
3876 AMDEP_TRUE=
3877 AMDEP_FALSE='#'
3878else
3879 AMDEP_TRUE='#'
3880 AMDEP_FALSE=
3881fi
3882
e5a52504 3883
81ecdfbb
RW
3884if test "`cd $srcdir && pwd`" != "`pwd`"; then
3885 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3886 # is not polluted with repeated "-I."
3887 am__isrc=' -I$(srcdir)'
3888 # test to see if srcdir already configured
3889 if test -f $srcdir/config.status; then
3890 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3891 fi
42ecbf5e 3892fi
252b5132 3893
42ecbf5e
DJ
3894# test whether we have cygpath
3895if test -z "$CYGPATH_W"; then
3896 if (cygpath --version) >/dev/null 2>/dev/null; then
3897 CYGPATH_W='cygpath -w'
3898 else
3899 CYGPATH_W=echo
3900 fi
252b5132 3901fi
42ecbf5e
DJ
3902
3903
3904# Define the identity of the package.
3905 PACKAGE=ld
3906 VERSION=${BFD_VERSION}
3907
3908
3909cat >>confdefs.h <<_ACEOF
e5a52504 3910#define PACKAGE "$PACKAGE"
42ecbf5e
DJ
3911_ACEOF
3912
252b5132 3913
42ecbf5e 3914cat >>confdefs.h <<_ACEOF
e5a52504 3915#define VERSION "$VERSION"
42ecbf5e
DJ
3916_ACEOF
3917
3918# Some tools Automake needs.
3919
3920ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3921
3922
3923AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3924
3925
3926AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3927
3928
3929AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3930
e5a52504 3931
42ecbf5e 3932MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
e5a52504 3933
42ecbf5e
DJ
3934# We need awk for the "check" target. The system "awk" is bad on
3935# some platforms.
3936# Always define AMTAR for backward compatibility.
3937
3938AMTAR=${AMTAR-"${am_missing_run}tar"}
3939
3940am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3941
3942
3943
3944
3945depcc="$CC" am_compiler_list=
3946
81ecdfbb
RW
3947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3948$as_echo_n "checking dependency style of $depcc... " >&6; }
3949if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3950 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
3951else
3952 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3953 # We make a subdir and do the tests there. Otherwise we can end up
3954 # making bogus files that we don't know about and never remove. For
3955 # instance it was reported that on HP-UX the gcc test will end up
3956 # making a dummy file named `D' -- because `-MD' means `put the output
3957 # in D'.
3958 mkdir conftest.dir
3959 # Copy depcomp to subdir because otherwise we won't find it if we're
3960 # using a relative directory.
3961 cp "$am_depcomp" conftest.dir
3962 cd conftest.dir
3963 # We will build objects and dependencies in a subdirectory because
3964 # it helps to detect inapplicable dependency modes. For instance
3965 # both Tru64's cc and ICC support -MD to output dependencies as a
3966 # side effect of compilation, but ICC will put the dependencies in
3967 # the current directory while Tru64 will put them in the object
3968 # directory.
3969 mkdir sub
3970
3971 am_cv_CC_dependencies_compiler_type=none
3972 if test "$am_compiler_list" = ""; then
3973 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3974 fi
81ecdfbb
RW
3975 am__universal=false
3976 case " $depcc " in #(
3977 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3978 esac
3979
42ecbf5e
DJ
3980 for depmode in $am_compiler_list; do
3981 # Setup a source with many dependencies, because some compilers
3982 # like to wrap large dependency lists on column 80 (with \), and
3983 # we should not choose a depcomp mode which is confused by this.
3984 #
3985 # We need to recreate these files for each test, as the compiler may
3986 # overwrite some of them when testing with obscure command lines.
3987 # This happens at least with the AIX C compiler.
3988 : > sub/conftest.c
3989 for i in 1 2 3 4 5 6; do
3990 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3991 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3992 # Solaris 8's {/usr,}/bin/sh.
3993 touch sub/conftst$i.h
3994 done
3995 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3996
81ecdfbb
RW
3997 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3998 # mode. It turns out that the SunPro C++ compiler does not properly
3999 # handle `-M -o', and we need to detect this. Also, some Intel
4000 # versions had trouble with output in subdirs
4001 am__obj=sub/conftest.${OBJEXT-o}
4002 am__minus_obj="-o $am__obj"
42ecbf5e 4003 case $depmode in
81ecdfbb
RW
4004 gcc)
4005 # This depmode causes a compiler race in universal mode.
4006 test "$am__universal" = false || continue
4007 ;;
42ecbf5e
DJ
4008 nosideeffect)
4009 # after this tag, mechanisms are not by side-effect, so they'll
4010 # only be used when explicitly requested
4011 if test "x$enable_dependency_tracking" = xyes; then
4012 continue
4013 else
4014 break
4015 fi
4016 ;;
81ecdfbb
RW
4017 msvisualcpp | msvcmsys)
4018 # This compiler won't grok `-c -o', but also, the minuso test has
4019 # not run yet. These depmodes are late enough in the game, and
4020 # so weak that their functioning should not be impacted.
4021 am__obj=conftest.${OBJEXT-o}
4022 am__minus_obj=
4023 ;;
42ecbf5e
DJ
4024 none) break ;;
4025 esac
42ecbf5e 4026 if depmode=$depmode \
81ecdfbb 4027 source=sub/conftest.c object=$am__obj \
42ecbf5e 4028 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
81ecdfbb 4029 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
42ecbf5e 4030 >/dev/null 2>conftest.err &&
81ecdfbb 4031 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
42ecbf5e 4032 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
81ecdfbb 4033 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
42ecbf5e
DJ
4034 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4035 # icc doesn't choke on unknown options, it will just issue warnings
4036 # or remarks (even with -Werror). So we grep stderr for any message
4037 # that says an option was ignored or not supported.
4038 # When given -MP, icc 7.0 and 7.1 complain thusly:
4039 # icc: Command line warning: ignoring option '-M'; no argument required
4040 # The diagnosis changed in icc 8.0:
4041 # icc: Command line remark: option '-MP' not supported
4042 if (grep 'ignoring option' conftest.err ||
4043 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4044 am_cv_CC_dependencies_compiler_type=$depmode
4045 break
4046 fi
4047 fi
4048 done
2469cfa2 4049
42ecbf5e
DJ
4050 cd ..
4051 rm -rf conftest.dir
2469cfa2 4052else
42ecbf5e
DJ
4053 am_cv_CC_dependencies_compiler_type=none
4054fi
4055
2469cfa2 4056fi
81ecdfbb
RW
4057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4058$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
42ecbf5e
DJ
4059CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4060
81ecdfbb 4061 if
42ecbf5e
DJ
4062 test "x$enable_dependency_tracking" != xno \
4063 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4064 am__fastdepCC_TRUE=
4065 am__fastdepCC_FALSE='#'
2469cfa2 4066else
42ecbf5e
DJ
4067 am__fastdepCC_TRUE='#'
4068 am__fastdepCC_FALSE=
2469cfa2 4069fi
2469cfa2 4070
2469cfa2 4071
e5a52504 4072
42ecbf5e 4073
64ac50ac
RW
4074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4075$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4076 # Check whether --enable-maintainer-mode was given.
4077if test "${enable_maintainer_mode+set}" = set; then :
4078 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4079else
4080 USE_MAINTAINER_MODE=no
4081fi
4082
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4084$as_echo "$USE_MAINTAINER_MODE" >&6; }
4085 if test $USE_MAINTAINER_MODE = yes; then
4086 MAINTAINER_MODE_TRUE=
4087 MAINTAINER_MODE_FALSE='#'
4088else
4089 MAINTAINER_MODE_TRUE='#'
4090 MAINTAINER_MODE_FALSE=
4091fi
4092
4093 MAINT=$MAINTAINER_MODE_TRUE
4094
4095
4096
d7040cdb 4097
81ecdfbb
RW
4098# Check whether --with-lib-path was given.
4099if test "${with_lib_path+set}" = set; then :
4100 withval=$with_lib_path; LIB_PATH=$withval
4101fi
4102
4103# Check whether --enable-targets was given.
4104if test "${enable_targets+set}" = set; then :
4105 enableval=$enable_targets; case "${enableval}" in
4106 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
ce2cded5
L
4107 ;;
4108 no) enable_targets= ;;
4109 *) enable_targets=$enableval ;;
4110esac
81ecdfbb
RW
4111fi
4112# Check whether --enable-64-bit-bfd was given.
4113if test "${enable_64_bit_bfd+set}" = set; then :
4114 enableval=$enable_64_bit_bfd; case "${enableval}" in
ce2cded5
L
4115 yes) want64=true ;;
4116 no) want64=false ;;
81ecdfbb 4117 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
ce2cded5 4118esac
2469cfa2 4119else
ce2cded5 4120 want64=false
81ecdfbb 4121fi
d7040cdb
SE
4122
4123
81ecdfbb
RW
4124# Check whether --with-sysroot was given.
4125if test "${with_sysroot+set}" = set; then :
4126 withval=$with_sysroot;
ce2cded5
L
4127 case ${with_sysroot} in
4128 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
4129 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4130 esac
d7040cdb 4131
ce2cded5
L
4132 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4133 use_sysroot=yes
d7040cdb 4134
ce2cded5
L
4135 if test "x$prefix" = xNONE; then
4136 test_prefix=/usr/local
4137 else
4138 test_prefix=$prefix
4139 fi
4140 if test "x$exec_prefix" = xNONE; then
4141 test_exec_prefix=$test_prefix
4142 else
4143 test_exec_prefix=$exec_prefix
4144 fi
4145 case ${TARGET_SYSTEM_ROOT} in
4146 "${test_prefix}"|"${test_prefix}/"*|\
4147 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
4148 '${prefix}'|'${prefix}/'*|\
4149 '${exec_prefix}'|'${exec_prefix}/'*)
4150 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4151 TARGET_SYSTEM_ROOT_DEFINE="$t"
4152 ;;
4153 esac
d7040cdb 4154
e5a52504 4155else
d7040cdb 4156
ce2cded5
L
4157 use_sysroot=no
4158 TARGET_SYSTEM_ROOT=
4159 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
d7040cdb 4160
81ecdfbb
RW
4161fi
4162
d7040cdb
SE
4163
4164
4165
4166
81ecdfbb
RW
4167# Check whether --enable-got was given.
4168if test "${enable_got+set}" = set; then :
4169 enableval=$enable_got; case "${enableval}" in
7fb9f789 4170 target | single | negative | multigot) got_handling=$enableval ;;
81ecdfbb 4171 *) as_fn_error "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;;
7fb9f789
NC
4172esac
4173else
4174 got_handling=target
81ecdfbb
RW
4175fi
4176
7fb9f789
NC
4177
4178case "${got_handling}" in
4179 target)
4180
81ecdfbb 4181$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h
7fb9f789
NC
4182 ;;
4183 single)
4184
81ecdfbb 4185$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h
7fb9f789
NC
4186 ;;
4187 negative)
4188
81ecdfbb 4189$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h
7fb9f789
NC
4190 ;;
4191 multigot)
4192
81ecdfbb 4193$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h
7fb9f789 4194 ;;
81ecdfbb 4195 *) as_fn_error "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;;
7fb9f789
NC
4196esac
4197
d7040cdb 4198
91d6fa6a 4199GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow"
d7040cdb 4200
81ecdfbb
RW
4201# Check whether --enable-werror was given.
4202if test "${enable_werror+set}" = set; then :
4203 enableval=$enable_werror; case "${enableval}" in
ce2cded5
L
4204 yes | y) ERROR_ON_WARNING="yes" ;;
4205 no | n) ERROR_ON_WARNING="no" ;;
81ecdfbb 4206 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
ce2cded5 4207 esac
81ecdfbb
RW
4208fi
4209
d7040cdb 4210
bb8541b9
L
4211# Enable -Wno-format by default when using gcc on mingw
4212case "${host}" in
4213 *-*-mingw32*)
4214 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4215 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
4216 fi
4217 ;;
4218 *) ;;
4219esac
4220
ce2cded5
L
4221# Enable -Werror by default when using gcc
4222if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4223 ERROR_ON_WARNING=yes
4224fi
d7040cdb 4225
ce2cded5
L
4226NO_WERROR=
4227if test "${ERROR_ON_WARNING}" = yes ; then
4228 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
4229 NO_WERROR="-Wno-error"
4230fi
d7040cdb 4231
ce2cded5
L
4232if test "${GCC}" = yes ; then
4233 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4234fi
d7040cdb 4235
81ecdfbb
RW
4236# Check whether --enable-build-warnings was given.
4237if test "${enable_build_warnings+set}" = set; then :
4238 enableval=$enable_build_warnings; case "${enableval}" in
ce2cded5
L
4239 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4240 no) if test "${GCC}" = yes ; then
4241 WARN_CFLAGS="-w"
4242 fi;;
4243 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4244 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
4245 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4246 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
4247 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4248esac
81ecdfbb
RW
4249fi
4250
d7040cdb 4251
ce2cded5
L
4252if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4253 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4254fi
d7040cdb 4255
2469cfa2 4256
d7040cdb
SE
4257
4258
4259
81ecdfbb 4260ac_config_headers="$ac_config_headers config.h:config.in"
d7040cdb
SE
4261
4262
ce2cded5 4263if test -z "$target" ; then
81ecdfbb 4264 as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
ce2cded5
L
4265fi
4266if test -z "$host" ; then
81ecdfbb 4267 as_fn_error "Unrecognized host system type; please check config.sub." "$LINENO" 5
ce2cded5 4268fi
d7040cdb 4269
ce2cded5 4270# host-specific stuff:
d7040cdb 4271
ce2cded5
L
4272ac_ext=c
4273ac_cpp='$CPP $CPPFLAGS'
4274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4276ac_compiler_gnu=$ac_cv_c_compiler_gnu
4277if test -n "$ac_tool_prefix"; then
4278 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4279set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
4280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4281$as_echo_n "checking for $ac_word... " >&6; }
4282if test "${ac_cv_prog_CC+set}" = set; then :
4283 $as_echo_n "(cached) " >&6
d7040cdb 4284else
ce2cded5
L
4285 if test -n "$CC"; then
4286 ac_cv_prog_CC="$CC" # Let the user override the test.
4287else
d7040cdb
SE
4288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289for as_dir in $PATH
4290do
4291 IFS=$as_save_IFS
4292 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4293 for ac_exec_ext in '' $ac_executable_extensions; do
4294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4295 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 4296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5 4297 break 2
d7040cdb 4298 fi
ce2cded5 4299done
81ecdfbb
RW
4300 done
4301IFS=$as_save_IFS
d7040cdb
SE
4302
4303fi
d7040cdb 4304fi
ce2cded5
L
4305CC=$ac_cv_prog_CC
4306if test -n "$CC"; then
81ecdfbb
RW
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4308$as_echo "$CC" >&6; }
d7040cdb 4309else
81ecdfbb
RW
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4311$as_echo "no" >&6; }
d7040cdb 4312fi
d7040cdb 4313
81ecdfbb 4314
252b5132 4315fi
ce2cded5
L
4316if test -z "$ac_cv_prog_CC"; then
4317 ac_ct_CC=$CC
4318 # Extract the first word of "gcc", so it can be a program name with args.
4319set dummy gcc; ac_word=$2
81ecdfbb
RW
4320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4321$as_echo_n "checking for $ac_word... " >&6; }
4322if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4323 $as_echo_n "(cached) " >&6
252b5132 4324else
ce2cded5
L
4325 if test -n "$ac_ct_CC"; then
4326 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 4327else
ce2cded5
L
4328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4329for as_dir in $PATH
4330do
4331 IFS=$as_save_IFS
4332 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4333 for ac_exec_ext in '' $ac_executable_extensions; do
4334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4335 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 4336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4337 break 2
4338 fi
4339done
81ecdfbb
RW
4340 done
4341IFS=$as_save_IFS
4342
252b5132
RH
4343fi
4344fi
ce2cded5
L
4345ac_ct_CC=$ac_cv_prog_ac_ct_CC
4346if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4348$as_echo "$ac_ct_CC" >&6; }
252b5132 4349else
81ecdfbb
RW
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4351$as_echo "no" >&6; }
252b5132 4352fi
ce2cded5 4353
81ecdfbb
RW
4354 if test "x$ac_ct_CC" = x; then
4355 CC=""
4356 else
4357 case $cross_compiling:$ac_tool_warned in
4358yes:)
4359{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4360$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4361ac_tool_warned=yes ;;
4362esac
4363 CC=$ac_ct_CC
4364 fi
252b5132 4365else
ce2cded5 4366 CC="$ac_cv_prog_CC"
252b5132 4367fi
d7040cdb 4368
ce2cded5 4369if test -z "$CC"; then
81ecdfbb
RW
4370 if test -n "$ac_tool_prefix"; then
4371 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ce2cded5 4372set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
4373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4374$as_echo_n "checking for $ac_word... " >&6; }
4375if test "${ac_cv_prog_CC+set}" = set; then :
4376 $as_echo_n "(cached) " >&6
252b5132 4377else
ce2cded5
L
4378 if test -n "$CC"; then
4379 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 4380else
ce2cded5
L
4381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4382for as_dir in $PATH
4383do
4384 IFS=$as_save_IFS
4385 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4386 for ac_exec_ext in '' $ac_executable_extensions; do
4387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4388 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4390 break 2
4391 fi
4392done
81ecdfbb
RW
4393 done
4394IFS=$as_save_IFS
ce2cded5 4395
252b5132
RH
4396fi
4397fi
ce2cded5
L
4398CC=$ac_cv_prog_CC
4399if test -n "$CC"; then
81ecdfbb
RW
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4401$as_echo "$CC" >&6; }
ce2cded5 4402else
81ecdfbb
RW
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4404$as_echo "no" >&6; }
ce2cded5
L
4405fi
4406
ce2cded5 4407
81ecdfbb 4408 fi
ce2cded5
L
4409fi
4410if test -z "$CC"; then
4411 # Extract the first word of "cc", so it can be a program name with args.
4412set dummy cc; ac_word=$2
81ecdfbb
RW
4413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4414$as_echo_n "checking for $ac_word... " >&6; }
4415if test "${ac_cv_prog_CC+set}" = set; then :
4416 $as_echo_n "(cached) " >&6
ce2cded5
L
4417else
4418 if test -n "$CC"; then
4419 ac_cv_prog_CC="$CC" # Let the user override the test.
4420else
4421 ac_prog_rejected=no
4422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4423for as_dir in $PATH
4424do
4425 IFS=$as_save_IFS
4426 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4427 for ac_exec_ext in '' $ac_executable_extensions; do
4428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5
L
4429 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4430 ac_prog_rejected=yes
4431 continue
4432 fi
4433 ac_cv_prog_CC="cc"
81ecdfbb 4434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4435 break 2
4436 fi
4437done
81ecdfbb
RW
4438 done
4439IFS=$as_save_IFS
ce2cded5
L
4440
4441if test $ac_prog_rejected = yes; then
4442 # We found a bogon in the path, so make sure we never use it.
4443 set dummy $ac_cv_prog_CC
4444 shift
4445 if test $# != 0; then
4446 # We chose a different compiler from the bogus one.
4447 # However, it has the same basename, so the bogon will be chosen
4448 # first if we set CC to just the basename; use the full file name.
4449 shift
4450 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4451 fi
4452fi
4453fi
4454fi
4455CC=$ac_cv_prog_CC
4456if test -n "$CC"; then
81ecdfbb
RW
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4458$as_echo "$CC" >&6; }
ce2cded5 4459else
81ecdfbb
RW
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4461$as_echo "no" >&6; }
ce2cded5
L
4462fi
4463
81ecdfbb 4464
ce2cded5
L
4465fi
4466if test -z "$CC"; then
d7040cdb 4467 if test -n "$ac_tool_prefix"; then
81ecdfbb 4468 for ac_prog in cl.exe
d7040cdb
SE
4469 do
4470 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4471set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4473$as_echo_n "checking for $ac_word... " >&6; }
4474if test "${ac_cv_prog_CC+set}" = set; then :
4475 $as_echo_n "(cached) " >&6
d7040cdb 4476else
ce2cded5
L
4477 if test -n "$CC"; then
4478 ac_cv_prog_CC="$CC" # Let the user override the test.
d7040cdb
SE
4479else
4480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481for as_dir in $PATH
4482do
4483 IFS=$as_save_IFS
4484 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4485 for ac_exec_ext in '' $ac_executable_extensions; do
4486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4487 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
4489 break 2
4490 fi
4491done
81ecdfbb
RW
4492 done
4493IFS=$as_save_IFS
d7040cdb
SE
4494
4495fi
4496fi
ce2cded5
L
4497CC=$ac_cv_prog_CC
4498if test -n "$CC"; then
81ecdfbb
RW
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4500$as_echo "$CC" >&6; }
d7040cdb 4501else
81ecdfbb
RW
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4503$as_echo "no" >&6; }
d7040cdb
SE
4504fi
4505
81ecdfbb 4506
ce2cded5 4507 test -n "$CC" && break
d7040cdb
SE
4508 done
4509fi
ce2cded5
L
4510if test -z "$CC"; then
4511 ac_ct_CC=$CC
81ecdfbb 4512 for ac_prog in cl.exe
d7040cdb
SE
4513do
4514 # Extract the first word of "$ac_prog", so it can be a program name with args.
4515set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4517$as_echo_n "checking for $ac_word... " >&6; }
4518if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4519 $as_echo_n "(cached) " >&6
d7040cdb 4520else
ce2cded5
L
4521 if test -n "$ac_ct_CC"; then
4522 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d7040cdb
SE
4523else
4524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525for as_dir in $PATH
4526do
4527 IFS=$as_save_IFS
4528 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4529 for ac_exec_ext in '' $ac_executable_extensions; do
4530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4531 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
4533 break 2
4534 fi
4535done
81ecdfbb
RW
4536 done
4537IFS=$as_save_IFS
d7040cdb
SE
4538
4539fi
4540fi
ce2cded5
L
4541ac_ct_CC=$ac_cv_prog_ac_ct_CC
4542if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4544$as_echo "$ac_ct_CC" >&6; }
d7040cdb 4545else
81ecdfbb
RW
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4547$as_echo "no" >&6; }
d7040cdb
SE
4548fi
4549
81ecdfbb 4550
ce2cded5 4551 test -n "$ac_ct_CC" && break
d7040cdb 4552done
d7040cdb 4553
81ecdfbb
RW
4554 if test "x$ac_ct_CC" = x; then
4555 CC=""
4556 else
4557 case $cross_compiling:$ac_tool_warned in
4558yes:)
4559{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4560$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4561ac_tool_warned=yes ;;
4562esac
4563 CC=$ac_ct_CC
4564 fi
d7040cdb
SE
4565fi
4566
d7040cdb 4567fi
d7040cdb
SE
4568
4569
81ecdfbb
RW
4570test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4571$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4572as_fn_error "no acceptable C compiler found in \$PATH
4573See \`config.log' for more details." "$LINENO" 5; }
d7040cdb 4574
ce2cded5 4575# Provide some information about the compiler.
81ecdfbb
RW
4576$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4577set X $ac_compile
4578ac_compiler=$2
4579for ac_option in --version -v -V -qversion; do
4580 { { ac_try="$ac_compiler $ac_option >&5"
4581case "(($ac_try" in
4582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4583 *) ac_try_echo=$ac_try;;
4584esac
4585eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4586$as_echo "$ac_try_echo"; } >&5
4587 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
ce2cded5 4588 ac_status=$?
81ecdfbb
RW
4589 if test -s conftest.err; then
4590 sed '10a\
4591... rest of stderr output deleted ...
4592 10q' conftest.err >conftest.er1
4593 cat conftest.er1 >&5
4594 rm -f conftest.er1 conftest.err
4595 fi
4596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4597 test $ac_status = 0; }
4598done
d7040cdb 4599
81ecdfbb
RW
4600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4601$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4602if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4603 $as_echo_n "(cached) " >&6
d7040cdb 4604else
81ecdfbb 4605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4606/* end confdefs.h. */
d7040cdb 4607
ce2cded5
L
4608int
4609main ()
4610{
4611#ifndef __GNUC__
4612 choke me
4613#endif
4614
4615 ;
4616 return 0;
4617}
4618_ACEOF
81ecdfbb 4619if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5 4620 ac_compiler_gnu=yes
d7040cdb 4621else
81ecdfbb 4622 ac_compiler_gnu=no
d7040cdb 4623fi
81ecdfbb 4624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce2cded5 4625ac_cv_c_compiler_gnu=$ac_compiler_gnu
d7040cdb 4626
ce2cded5 4627fi
81ecdfbb
RW
4628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4629$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4630if test $ac_compiler_gnu = yes; then
4631 GCC=yes
4632else
4633 GCC=
4634fi
ce2cded5
L
4635ac_test_CFLAGS=${CFLAGS+set}
4636ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4638$as_echo_n "checking whether $CC accepts -g... " >&6; }
4639if test "${ac_cv_prog_cc_g+set}" = set; then :
4640 $as_echo_n "(cached) " >&6
4641else
4642 ac_save_c_werror_flag=$ac_c_werror_flag
4643 ac_c_werror_flag=yes
4644 ac_cv_prog_cc_g=no
4645 CFLAGS="-g"
4646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4647/* end confdefs.h. */
d7040cdb 4648
ce2cded5
L
4649int
4650main ()
4651{
d7040cdb 4652
ce2cded5
L
4653 ;
4654 return 0;
4655}
4656_ACEOF
81ecdfbb 4657if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5
L
4658 ac_cv_prog_cc_g=yes
4659else
81ecdfbb
RW
4660 CFLAGS=""
4661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4662/* end confdefs.h. */
4663
4664int
4665main ()
4666{
4667
4668 ;
4669 return 0;
4670}
4671_ACEOF
4672if ac_fn_c_try_compile "$LINENO"; then :
4673
4674else
4675 ac_c_werror_flag=$ac_save_c_werror_flag
4676 CFLAGS="-g"
4677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4678/* end confdefs.h. */
4679
4680int
4681main ()
4682{
d7040cdb 4683
81ecdfbb
RW
4684 ;
4685 return 0;
4686}
4687_ACEOF
4688if ac_fn_c_try_compile "$LINENO"; then :
4689 ac_cv_prog_cc_g=yes
4690fi
4691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4692fi
4693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 4694fi
81ecdfbb
RW
4695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4696 ac_c_werror_flag=$ac_save_c_werror_flag
ce2cded5 4697fi
81ecdfbb
RW
4698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4699$as_echo "$ac_cv_prog_cc_g" >&6; }
ce2cded5
L
4700if test "$ac_test_CFLAGS" = set; then
4701 CFLAGS=$ac_save_CFLAGS
4702elif test $ac_cv_prog_cc_g = yes; then
4703 if test "$GCC" = yes; then
4704 CFLAGS="-g -O2"
4705 else
4706 CFLAGS="-g"
4707 fi
d7040cdb 4708else
ce2cded5
L
4709 if test "$GCC" = yes; then
4710 CFLAGS="-O2"
4711 else
4712 CFLAGS=
4713 fi
d7040cdb 4714fi
81ecdfbb
RW
4715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4716$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4717if test "${ac_cv_prog_cc_c89+set}" = set; then :
4718 $as_echo_n "(cached) " >&6
d7040cdb 4719else
81ecdfbb 4720 ac_cv_prog_cc_c89=no
ce2cded5 4721ac_save_CC=$CC
81ecdfbb 4722cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
4723/* end confdefs.h. */
4724#include <stdarg.h>
4725#include <stdio.h>
4726#include <sys/types.h>
4727#include <sys/stat.h>
4728/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4729struct buf { int x; };
4730FILE * (*rcsopen) (struct buf *, struct stat *, int);
4731static char *e (p, i)
4732 char **p;
4733 int i;
4734{
4735 return p[i];
4736}
4737static char *f (char * (*g) (char **, int), char **p, ...)
4738{
4739 char *s;
4740 va_list v;
4741 va_start (v,p);
4742 s = g (p, va_arg (v,int));
4743 va_end (v);
4744 return s;
4745}
d7040cdb 4746
ce2cded5
L
4747/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4748 function prototypes and stuff, but not '\xHH' hex character constants.
4749 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4750 as 'x'. The following induces an error, until -std is added to get
ce2cded5
L
4751 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4752 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4753 that's true only with -std. */
ce2cded5 4754int osf4_cc_array ['\x00' == 0 ? 1 : -1];
d7040cdb 4755
81ecdfbb
RW
4756/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4757 inside strings and character constants. */
4758#define FOO(x) 'x'
4759int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4760
ce2cded5
L
4761int test (int i, double x);
4762struct s1 {int (*f) (int a);};
4763struct s2 {int (*f) (double a);};
4764int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4765int argc;
4766char **argv;
4767int
4768main ()
4769{
4770return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4771 ;
4772 return 0;
4773}
4774_ACEOF
81ecdfbb
RW
4775for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4776 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ce2cded5
L
4777do
4778 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4779 if ac_fn_c_try_compile "$LINENO"; then :
4780 ac_cv_prog_cc_c89=$ac_arg
ce2cded5 4781fi
81ecdfbb
RW
4782rm -f core conftest.err conftest.$ac_objext
4783 test "x$ac_cv_prog_cc_c89" != "xno" && break
ce2cded5 4784done
81ecdfbb 4785rm -f conftest.$ac_ext
ce2cded5 4786CC=$ac_save_CC
d7040cdb 4787
ce2cded5 4788fi
81ecdfbb
RW
4789# AC_CACHE_VAL
4790case "x$ac_cv_prog_cc_c89" in
4791 x)
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4793$as_echo "none needed" >&6; } ;;
4794 xno)
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4796$as_echo "unsupported" >&6; } ;;
ce2cded5 4797 *)
81ecdfbb
RW
4798 CC="$CC $ac_cv_prog_cc_c89"
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4800$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
d7040cdb 4801esac
81ecdfbb 4802if test "x$ac_cv_prog_cc_c89" != xno; then :
d7040cdb 4803
ce2cded5 4804fi
d7040cdb 4805
ce2cded5
L
4806ac_ext=c
4807ac_cpp='$CPP $CPPFLAGS'
4808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4810ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 4811
7357c5b6
AM
4812ac_ext=c
4813ac_cpp='$CPP $CPPFLAGS'
4814ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4815ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4816ac_compiler_gnu=$ac_cv_c_compiler_gnu
81ecdfbb
RW
4817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4818$as_echo_n "checking how to run the C preprocessor... " >&6; }
7357c5b6
AM
4819# On Suns, sometimes $CPP names a directory.
4820if test -n "$CPP" && test -d "$CPP"; then
4821 CPP=
4822fi
4823if test -z "$CPP"; then
81ecdfbb
RW
4824 if test "${ac_cv_prog_CPP+set}" = set; then :
4825 $as_echo_n "(cached) " >&6
ac48eca1 4826else
7357c5b6
AM
4827 # Double quotes because CPP needs to be expanded
4828 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4829 do
4830 ac_preproc_ok=false
4831for ac_c_preproc_warn_flag in '' yes
ce2cded5 4832do
7357c5b6
AM
4833 # Use a header file that comes with gcc, so configuring glibc
4834 # with a fresh cross-compiler works.
4835 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4836 # <limits.h> exists even on freestanding compilers.
4837 # On the NeXT, cc -E runs the code through the compiler's parser,
4838 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4840/* end confdefs.h. */
4841#ifdef __STDC__
4842# include <limits.h>
4843#else
4844# include <assert.h>
4845#endif
4846 Syntax error
4847_ACEOF
81ecdfbb 4848if ac_fn_c_try_cpp "$LINENO"; then :
ac48eca1 4849
81ecdfbb 4850else
7357c5b6
AM
4851 # Broken: fails on valid input.
4852continue
4853fi
4854rm -f conftest.err conftest.$ac_ext
ac48eca1 4855
81ecdfbb 4856 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4857 # can be detected and how.
81ecdfbb 4858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4859/* end confdefs.h. */
4860#include <ac_nonexistent.h>
4861_ACEOF
81ecdfbb 4862if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4863 # Broken: success on invalid input.
4864continue
4865else
7357c5b6
AM
4866 # Passes both tests.
4867ac_preproc_ok=:
4868break
4869fi
4870rm -f conftest.err conftest.$ac_ext
ac48eca1 4871
7357c5b6
AM
4872done
4873# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4874rm -f conftest.err conftest.$ac_ext
81ecdfbb 4875if $ac_preproc_ok; then :
7357c5b6
AM
4876 break
4877fi
252b5132 4878
7357c5b6
AM
4879 done
4880 ac_cv_prog_CPP=$CPP
252b5132 4881
7357c5b6
AM
4882fi
4883 CPP=$ac_cv_prog_CPP
4884else
4885 ac_cv_prog_CPP=$CPP
4886fi
81ecdfbb
RW
4887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4888$as_echo "$CPP" >&6; }
7357c5b6
AM
4889ac_preproc_ok=false
4890for ac_c_preproc_warn_flag in '' yes
4891do
4892 # Use a header file that comes with gcc, so configuring glibc
4893 # with a fresh cross-compiler works.
4894 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4895 # <limits.h> exists even on freestanding compilers.
4896 # On the NeXT, cc -E runs the code through the compiler's parser,
4897 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4899/* end confdefs.h. */
4900#ifdef __STDC__
4901# include <limits.h>
4902#else
4903# include <assert.h>
4904#endif
4905 Syntax error
4906_ACEOF
81ecdfbb 4907if ac_fn_c_try_cpp "$LINENO"; then :
ce2cded5 4908
81ecdfbb 4909else
7357c5b6
AM
4910 # Broken: fails on valid input.
4911continue
4912fi
4913rm -f conftest.err conftest.$ac_ext
ce2cded5 4914
81ecdfbb 4915 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4916 # can be detected and how.
81ecdfbb 4917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4918/* end confdefs.h. */
4919#include <ac_nonexistent.h>
4920_ACEOF
81ecdfbb 4921if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4922 # Broken: success on invalid input.
4923continue
ce2cded5 4924else
7357c5b6
AM
4925 # Passes both tests.
4926ac_preproc_ok=:
4927break
4928fi
4929rm -f conftest.err conftest.$ac_ext
d7040cdb 4930
7357c5b6
AM
4931done
4932# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4933rm -f conftest.err conftest.$ac_ext
81ecdfbb
RW
4934if $ac_preproc_ok; then :
4935
7357c5b6 4936else
81ecdfbb
RW
4937 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4938$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4939as_fn_error "C preprocessor \"$CPP\" fails sanity check
4940See \`config.log' for more details." "$LINENO" 5; }
7357c5b6 4941fi
ce2cded5 4942
7357c5b6
AM
4943ac_ext=c
4944ac_cpp='$CPP $CPPFLAGS'
4945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4947ac_compiler_gnu=$ac_cv_c_compiler_gnu
ce2cded5
L
4948
4949
81ecdfbb
RW
4950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4951$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4952if test "${ac_cv_path_GREP+set}" = set; then :
4953 $as_echo_n "(cached) " >&6
ac48eca1 4954else
81ecdfbb
RW
4955 if test -z "$GREP"; then
4956 ac_path_GREP_found=false
4957 # Loop through the user's path and test for each of PROGNAME-LIST
4958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4960do
4961 IFS=$as_save_IFS
4962 test -z "$as_dir" && as_dir=.
4963 for ac_prog in grep ggrep; do
4964 for ac_exec_ext in '' $ac_executable_extensions; do
4965 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4966 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4967# Check for GNU ac_path_GREP and select it if it is found.
4968 # Check for GNU $ac_path_GREP
4969case `"$ac_path_GREP" --version 2>&1` in
4970*GNU*)
4971 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4972*)
4973 ac_count=0
4974 $as_echo_n 0123456789 >"conftest.in"
4975 while :
4976 do
4977 cat "conftest.in" "conftest.in" >"conftest.tmp"
4978 mv "conftest.tmp" "conftest.in"
4979 cp "conftest.in" "conftest.nl"
4980 $as_echo 'GREP' >> "conftest.nl"
4981 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4982 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4983 as_fn_arith $ac_count + 1 && ac_count=$as_val
4984 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4985 # Best one so far, save it but keep looking for a better one
4986 ac_cv_path_GREP="$ac_path_GREP"
4987 ac_path_GREP_max=$ac_count
ce2cded5 4988 fi
81ecdfbb
RW
4989 # 10*(2^10) chars as input seems more than enough
4990 test $ac_count -gt 10 && break
4991 done
4992 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4993esac
252b5132 4994
81ecdfbb
RW
4995 $ac_path_GREP_found && break 3
4996 done
4997 done
4998 done
4999IFS=$as_save_IFS
5000 if test -z "$ac_cv_path_GREP"; then
5001 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5002 fi
7357c5b6 5003else
81ecdfbb
RW
5004 ac_cv_path_GREP=$GREP
5005fi
4867be41 5006
81ecdfbb
RW
5007fi
5008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5009$as_echo "$ac_cv_path_GREP" >&6; }
5010 GREP="$ac_cv_path_GREP"
32fba81d 5011
42ecbf5e 5012
81ecdfbb
RW
5013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5014$as_echo_n "checking for egrep... " >&6; }
5015if test "${ac_cv_path_EGREP+set}" = set; then :
5016 $as_echo_n "(cached) " >&6
5017else
5018 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5019 then ac_cv_path_EGREP="$GREP -E"
5020 else
5021 if test -z "$EGREP"; then
5022 ac_path_EGREP_found=false
5023 # Loop through the user's path and test for each of PROGNAME-LIST
5024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5025for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5026do
5027 IFS=$as_save_IFS
5028 test -z "$as_dir" && as_dir=.
5029 for ac_prog in egrep; do
5030 for ac_exec_ext in '' $ac_executable_extensions; do
5031 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5032 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5033# Check for GNU ac_path_EGREP and select it if it is found.
5034 # Check for GNU $ac_path_EGREP
5035case `"$ac_path_EGREP" --version 2>&1` in
5036*GNU*)
5037 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5038*)
5039 ac_count=0
5040 $as_echo_n 0123456789 >"conftest.in"
5041 while :
5042 do
5043 cat "conftest.in" "conftest.in" >"conftest.tmp"
5044 mv "conftest.tmp" "conftest.in"
5045 cp "conftest.in" "conftest.nl"
5046 $as_echo 'EGREP' >> "conftest.nl"
5047 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5048 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5049 as_fn_arith $ac_count + 1 && ac_count=$as_val
5050 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5051 # Best one so far, save it but keep looking for a better one
5052 ac_cv_path_EGREP="$ac_path_EGREP"
5053 ac_path_EGREP_max=$ac_count
5054 fi
5055 # 10*(2^10) chars as input seems more than enough
5056 test $ac_count -gt 10 && break
5057 done
5058 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5059esac
5060
5061 $ac_path_EGREP_found && break 3
5062 done
5063 done
5064 done
5065IFS=$as_save_IFS
5066 if test -z "$ac_cv_path_EGREP"; then
5067 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5068 fi
5069else
5070 ac_cv_path_EGREP=$EGREP
5071fi
5072
5073 fi
5074fi
5075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5076$as_echo "$ac_cv_path_EGREP" >&6; }
5077 EGREP="$ac_cv_path_EGREP"
5078
5079
5080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5081$as_echo_n "checking for ANSI C header files... " >&6; }
5082if test "${ac_cv_header_stdc+set}" = set; then :
5083 $as_echo_n "(cached) " >&6
5084else
5085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5086/* end confdefs.h. */
5087#include <stdlib.h>
5088#include <stdarg.h>
5089#include <string.h>
5090#include <float.h>
5091
5092int
5093main ()
5094{
5095
5096 ;
5097 return 0;
5098}
5099_ACEOF
5100if ac_fn_c_try_compile "$LINENO"; then :
5101 ac_cv_header_stdc=yes
5102else
5103 ac_cv_header_stdc=no
7357c5b6 5104fi
81ecdfbb 5105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e 5106
7357c5b6
AM
5107if test $ac_cv_header_stdc = yes; then
5108 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
81ecdfbb 5109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5110/* end confdefs.h. */
5111#include <string.h>
ac48eca1 5112
7357c5b6
AM
5113_ACEOF
5114if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
5115 $EGREP "memchr" >/dev/null 2>&1; then :
5116
7357c5b6
AM
5117else
5118 ac_cv_header_stdc=no
5119fi
5120rm -f conftest*
252b5132 5121
7357c5b6 5122fi
252b5132 5123
7357c5b6
AM
5124if test $ac_cv_header_stdc = yes; then
5125 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
81ecdfbb 5126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5127/* end confdefs.h. */
5128#include <stdlib.h>
42ecbf5e 5129
7357c5b6
AM
5130_ACEOF
5131if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
5132 $EGREP "free" >/dev/null 2>&1; then :
5133
7357c5b6
AM
5134else
5135 ac_cv_header_stdc=no
5136fi
5137rm -f conftest*
ac48eca1 5138
7357c5b6 5139fi
d7040cdb 5140
7357c5b6
AM
5141if test $ac_cv_header_stdc = yes; then
5142 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
81ecdfbb 5143 if test "$cross_compiling" = yes; then :
7357c5b6
AM
5144 :
5145else
81ecdfbb 5146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5147/* end confdefs.h. */
5148#include <ctype.h>
81ecdfbb 5149#include <stdlib.h>
7357c5b6
AM
5150#if ((' ' & 0x0FF) == 0x020)
5151# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5152# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5153#else
5154# define ISLOWER(c) \
5155 (('a' <= (c) && (c) <= 'i') \
5156 || ('j' <= (c) && (c) <= 'r') \
5157 || ('s' <= (c) && (c) <= 'z'))
5158# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5159#endif
d7040cdb 5160
7357c5b6
AM
5161#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5162int
5163main ()
5164{
5165 int i;
5166 for (i = 0; i < 256; i++)
5167 if (XOR (islower (i), ISLOWER (i))
5168 || toupper (i) != TOUPPER (i))
81ecdfbb
RW
5169 return 2;
5170 return 0;
7357c5b6
AM
5171}
5172_ACEOF
81ecdfbb 5173if ac_fn_c_try_run "$LINENO"; then :
7357c5b6 5174
81ecdfbb
RW
5175else
5176 ac_cv_header_stdc=no
252b5132 5177fi
81ecdfbb
RW
5178rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5179 conftest.$ac_objext conftest.beam conftest.$ac_ext
7357c5b6 5180fi
81ecdfbb 5181
7357c5b6
AM
5182fi
5183fi
81ecdfbb
RW
5184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5185$as_echo "$ac_cv_header_stdc" >&6; }
7357c5b6 5186if test $ac_cv_header_stdc = yes; then
252b5132 5187
81ecdfbb 5188$as_echo "#define STDC_HEADERS 1" >>confdefs.h
252b5132 5189
ce2cded5 5190fi
252b5132 5191
7357c5b6 5192# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7357c5b6
AM
5193for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5194 inttypes.h stdint.h unistd.h
81ecdfbb
RW
5195do :
5196 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5197ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5198"
5199eval as_val=\$$as_ac_Header
5200 if test "x$as_val" = x""yes; then :
7357c5b6 5201 cat >>confdefs.h <<_ACEOF
81ecdfbb 5202#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7357c5b6 5203_ACEOF
42ecbf5e 5204
7357c5b6 5205fi
42ecbf5e 5206
7357c5b6 5207done
42ecbf5e
DJ
5208
5209
5210
81ecdfbb
RW
5211 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5212if test "x$ac_cv_header_minix_config_h" = x""yes; then :
7357c5b6 5213 MINIX=yes
ce2cded5 5214else
7357c5b6 5215 MINIX=
ce2cded5 5216fi
42ecbf5e 5217
e5a52504 5218
7357c5b6
AM
5219 if test "$MINIX" = yes; then
5220
81ecdfbb 5221$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
d7040cdb 5222
d7040cdb 5223
81ecdfbb 5224$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
d7040cdb 5225
d7040cdb 5226
81ecdfbb 5227$as_echo "#define _MINIX 1" >>confdefs.h
d7040cdb 5228
7357c5b6 5229 fi
d7040cdb 5230
d7040cdb 5231
81ecdfbb
RW
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5233$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5234if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5235 $as_echo_n "(cached) " >&6
ce2cded5 5236else
81ecdfbb 5237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5238/* end confdefs.h. */
5239
5240# define __EXTENSIONS__ 1
5241 $ac_includes_default
5242int
5243main ()
5244{
5245
5246 ;
5247 return 0;
5248}
5249_ACEOF
81ecdfbb 5250if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6 5251 ac_cv_safe_to_define___extensions__=yes
ce2cded5 5252else
81ecdfbb 5253 ac_cv_safe_to_define___extensions__=no
ce2cded5 5254fi
81ecdfbb 5255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce2cded5 5256fi
81ecdfbb
RW
5257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5258$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
7357c5b6 5259 test $ac_cv_safe_to_define___extensions__ = yes &&
81ecdfbb 5260 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
7357c5b6 5261
81ecdfbb 5262 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
7357c5b6 5263
81ecdfbb 5264 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
7357c5b6 5265
81ecdfbb
RW
5266 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5267
5268 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
7357c5b6 5269
7357c5b6
AM
5270
5271
d053aef8 5272
da2f07f1 5273
3388710e
JM
5274# The tests for host and target for $enable_largefile require
5275# canonical names.
5276
5277
5278
da2f07f1
JK
5279# As the $enable_largefile decision depends on --enable-plugins we must set it
5280# even in directories otherwise not depending on the $plugins option.
5281
5282
5283# Check whether --enable-plugins was given.
5284if test "${enable_plugins+set}" = set; then :
5285 enableval=$enable_plugins; case "${enableval}" in
5286 yes | "") plugins=yes ;;
5287 no) plugins=no ;;
5288 *) plugins=yes ;;
5289 esac
5290else
5291 plugins=no
5292fi
5293
5294
5295
5296case "${host}" in
5297 sparc-*-solaris*|i[3-7]86-*-solaris*)
5298 # On native 32bit sparc and ia32 solaris, large-file and procfs support
5299 # are mutually exclusive; and without procfs support, the bfd/ elf module
5300 # cannot provide certain routines such as elfcore_write_prpsinfo
5301 # or elfcore_write_prstatus. So unless the user explicitly requested
5302 # large-file support through the --enable-largefile switch, disable
5303 # large-file support in favor of procfs support.
5304 test "${target}" = "${host}" -a "x$plugins" = xno \
5305 && : ${enable_largefile="no"}
5306 ;;
5307esac
5308
81ecdfbb
RW
5309# Check whether --enable-largefile was given.
5310if test "${enable_largefile+set}" = set; then :
5311 enableval=$enable_largefile;
5312fi
5313
d053aef8
JK
5314if test "$enable_largefile" != no; then
5315
81ecdfbb
RW
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5317$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5318if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5319 $as_echo_n "(cached) " >&6
d053aef8
JK
5320else
5321 ac_cv_sys_largefile_CC=no
5322 if test "$GCC" != yes; then
5323 ac_save_CC=$CC
5324 while :; do
81ecdfbb
RW
5325 # IRIX 6.2 and later do not support large files by default,
5326 # so use the C compiler's -n32 option if that helps.
5327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5328/* end confdefs.h. */
5329#include <sys/types.h>
5330 /* Check that off_t can represent 2**63 - 1 correctly.
5331 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5332 since some C++ compilers masquerading as C compilers
5333 incorrectly reject 9223372036854775807. */
5334#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5335 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5336 && LARGE_OFF_T % 2147483647 == 1)
5337 ? 1 : -1];
5338int
5339main ()
5340{
5341
5342 ;
5343 return 0;
5344}
5345_ACEOF
81ecdfbb 5346 if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 5347 break
d053aef8 5348fi
81ecdfbb
RW
5349rm -f core conftest.err conftest.$ac_objext
5350 CC="$CC -n32"
5351 if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 5352 ac_cv_sys_largefile_CC=' -n32'; break
d053aef8 5353fi
81ecdfbb 5354rm -f core conftest.err conftest.$ac_objext
d053aef8
JK
5355 break
5356 done
5357 CC=$ac_save_CC
5358 rm -f conftest.$ac_ext
5359 fi
5360fi
81ecdfbb
RW
5361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5362$as_echo "$ac_cv_sys_largefile_CC" >&6; }
d053aef8
JK
5363 if test "$ac_cv_sys_largefile_CC" != no; then
5364 CC=$CC$ac_cv_sys_largefile_CC
5365 fi
5366
81ecdfbb
RW
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5368$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5369if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5370 $as_echo_n "(cached) " >&6
d053aef8
JK
5371else
5372 while :; do
81ecdfbb 5373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5374/* end confdefs.h. */
5375#include <sys/types.h>
5376 /* Check that off_t can represent 2**63 - 1 correctly.
5377 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5378 since some C++ compilers masquerading as C compilers
5379 incorrectly reject 9223372036854775807. */
5380#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5381 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5382 && LARGE_OFF_T % 2147483647 == 1)
5383 ? 1 : -1];
5384int
5385main ()
5386{
5387
5388 ;
5389 return 0;
5390}
5391_ACEOF
81ecdfbb
RW
5392if ac_fn_c_try_compile "$LINENO"; then :
5393 ac_cv_sys_file_offset_bits=no; break
d053aef8 5394fi
81ecdfbb
RW
5395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5397/* end confdefs.h. */
5398#define _FILE_OFFSET_BITS 64
5399#include <sys/types.h>
5400 /* Check that off_t can represent 2**63 - 1 correctly.
5401 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5402 since some C++ compilers masquerading as C compilers
5403 incorrectly reject 9223372036854775807. */
5404#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5405 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5406 && LARGE_OFF_T % 2147483647 == 1)
5407 ? 1 : -1];
5408int
5409main ()
5410{
5411
5412 ;
5413 return 0;
5414}
5415_ACEOF
81ecdfbb 5416if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 5417 ac_cv_sys_file_offset_bits=64; break
d053aef8 5418fi
81ecdfbb
RW
5419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5420 ac_cv_sys_file_offset_bits=unknown
d053aef8
JK
5421 break
5422done
5423fi
81ecdfbb
RW
5424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5425$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5426case $ac_cv_sys_file_offset_bits in #(
5427 no | unknown) ;;
5428 *)
d053aef8
JK
5429cat >>confdefs.h <<_ACEOF
5430#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5431_ACEOF
81ecdfbb
RW
5432;;
5433esac
5434rm -rf conftest*
5435 if test $ac_cv_sys_file_offset_bits = unknown; then
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5437$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5438if test "${ac_cv_sys_large_files+set}" = set; then :
5439 $as_echo_n "(cached) " >&6
d053aef8
JK
5440else
5441 while :; do
81ecdfbb 5442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5443/* end confdefs.h. */
5444#include <sys/types.h>
5445 /* Check that off_t can represent 2**63 - 1 correctly.
5446 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5447 since some C++ compilers masquerading as C compilers
5448 incorrectly reject 9223372036854775807. */
5449#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5450 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5451 && LARGE_OFF_T % 2147483647 == 1)
5452 ? 1 : -1];
5453int
5454main ()
5455{
5456
5457 ;
5458 return 0;
5459}
5460_ACEOF
81ecdfbb
RW
5461if ac_fn_c_try_compile "$LINENO"; then :
5462 ac_cv_sys_large_files=no; break
d053aef8 5463fi
81ecdfbb
RW
5464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5466/* end confdefs.h. */
5467#define _LARGE_FILES 1
5468#include <sys/types.h>
5469 /* Check that off_t can represent 2**63 - 1 correctly.
5470 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5471 since some C++ compilers masquerading as C compilers
5472 incorrectly reject 9223372036854775807. */
5473#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5474 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5475 && LARGE_OFF_T % 2147483647 == 1)
5476 ? 1 : -1];
5477int
5478main ()
5479{
5480
5481 ;
5482 return 0;
5483}
5484_ACEOF
81ecdfbb 5485if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 5486 ac_cv_sys_large_files=1; break
d053aef8 5487fi
81ecdfbb
RW
5488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5489 ac_cv_sys_large_files=unknown
d053aef8
JK
5490 break
5491done
5492fi
81ecdfbb
RW
5493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5494$as_echo "$ac_cv_sys_large_files" >&6; }
5495case $ac_cv_sys_large_files in #(
5496 no | unknown) ;;
5497 *)
d053aef8
JK
5498cat >>confdefs.h <<_ACEOF
5499#define _LARGE_FILES $ac_cv_sys_large_files
5500_ACEOF
81ecdfbb
RW
5501;;
5502esac
5503rm -rf conftest*
5504 fi
d053aef8
JK
5505fi
5506
42ecbf5e 5507
42ecbf5e 5508
da2f07f1 5509
b214d478
SE
5510case `pwd` in
5511 *\ * | *\ *)
81ecdfbb
RW
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5513$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
b214d478 5514esac
252b5132 5515
42ecbf5e 5516
d7040cdb 5517
3725885a
RW
5518macro_version='2.2.7a'
5519macro_revision='1.3134'
d7040cdb 5520
d7040cdb
SE
5521
5522
d7040cdb 5523
d7040cdb 5524
42ecbf5e 5525
d7040cdb 5526
252b5132 5527
252b5132 5528
252b5132 5529
252b5132
RH
5530
5531
ce2cded5 5532
b214d478 5533ltmain="$ac_aux_dir/ltmain.sh"
ce2cded5 5534
3725885a
RW
5535# Backslashify metacharacters that are still active within
5536# double-quoted strings.
5537sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5538
5539# Same as above, but do not quote variable references.
5540double_quote_subst='s/\(["`\\]\)/\\\1/g'
5541
5542# Sed substitution to delay expansion of an escaped shell variable in a
5543# double_quote_subst'ed string.
5544delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5545
5546# Sed substitution to delay expansion of an escaped single quote.
5547delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5548
5549# Sed substitution to avoid accidental globbing in evaled expressions
5550no_glob_subst='s/\*/\\\*/g'
5551
5552ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5553ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5554ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5555
5556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5557$as_echo_n "checking how to print strings... " >&6; }
5558# Test print first, because it will be a builtin if present.
5559if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5560 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5561 ECHO='print -r --'
5562elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5563 ECHO='printf %s\n'
5564else
5565 # Use this function as a fallback that always works.
5566 func_fallback_echo ()
5567 {
5568 eval 'cat <<_LTECHO_EOF
5569$1
5570_LTECHO_EOF'
5571 }
5572 ECHO='func_fallback_echo'
5573fi
5574
5575# func_echo_all arg...
5576# Invoke $ECHO with all args, space-separated.
5577func_echo_all ()
5578{
5579 $ECHO ""
5580}
5581
5582case "$ECHO" in
5583 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5584$as_echo "printf" >&6; } ;;
5585 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5586$as_echo "print -r" >&6; } ;;
5587 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5588$as_echo "cat" >&6; } ;;
5589esac
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
81ecdfbb
RW
5604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5605$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5606if test "${ac_cv_path_SED+set}" = set; then :
5607 $as_echo_n "(cached) " >&6
5608else
5609 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5610 for ac_i in 1 2 3 4 5 6 7; do
5611 ac_script="$ac_script$as_nl$ac_script"
5612 done
5613 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5614 { ac_script=; unset ac_script;}
5615 if test -z "$SED"; then
5616 ac_path_SED_found=false
5617 # Loop through the user's path and test for each of PROGNAME-LIST
5618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357c5b6
AM
5619for as_dir in $PATH
5620do
5621 IFS=$as_save_IFS
5622 test -z "$as_dir" && as_dir=.
81ecdfbb 5623 for ac_prog in sed gsed; do
7357c5b6 5624 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb
RW
5625 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5626 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5627# Check for GNU ac_path_SED and select it if it is found.
5628 # Check for GNU $ac_path_SED
5629case `"$ac_path_SED" --version 2>&1` in
5630*GNU*)
5631 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5632*)
5633 ac_count=0
5634 $as_echo_n 0123456789 >"conftest.in"
5635 while :
5636 do
5637 cat "conftest.in" "conftest.in" >"conftest.tmp"
5638 mv "conftest.tmp" "conftest.in"
5639 cp "conftest.in" "conftest.nl"
5640 $as_echo '' >> "conftest.nl"
5641 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5642 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5643 as_fn_arith $ac_count + 1 && ac_count=$as_val
5644 if test $ac_count -gt ${ac_path_SED_max-0}; then
5645 # Best one so far, save it but keep looking for a better one
5646 ac_cv_path_SED="$ac_path_SED"
5647 ac_path_SED_max=$ac_count
5648 fi
5649 # 10*(2^10) chars as input seems more than enough
5650 test $ac_count -gt 10 && break
5651 done
5652 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5653esac
5654
5655 $ac_path_SED_found && break 3
7357c5b6
AM
5656 done
5657 done
81ecdfbb 5658 done
7357c5b6 5659IFS=$as_save_IFS
81ecdfbb
RW
5660 if test -z "$ac_cv_path_SED"; then
5661 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
ce2cded5 5662 fi
81ecdfbb
RW
5663else
5664 ac_cv_path_SED=$SED
7357c5b6 5665fi
20e95c23 5666
81ecdfbb
RW
5667fi
5668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5669$as_echo "$ac_cv_path_SED" >&6; }
5670 SED="$ac_cv_path_SED"
5671 rm -f conftest.sed
20e95c23 5672
7357c5b6
AM
5673test -z "$SED" && SED=sed
5674Xsed="$SED -e 1s/^X//"
20e95c23
DJ
5675
5676
5677
5678
5679
5680
20e95c23 5681
20e95c23 5682
d7040cdb 5683
d7040cdb 5684
7357c5b6 5685
81ecdfbb
RW
5686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5687$as_echo_n "checking for fgrep... " >&6; }
5688if test "${ac_cv_path_FGREP+set}" = set; then :
5689 $as_echo_n "(cached) " >&6
7357c5b6 5690else
81ecdfbb
RW
5691 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5692 then ac_cv_path_FGREP="$GREP -F"
5693 else
5694 if test -z "$FGREP"; then
5695 ac_path_FGREP_found=false
5696 # Loop through the user's path and test for each of PROGNAME-LIST
5697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5698for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5699do
5700 IFS=$as_save_IFS
5701 test -z "$as_dir" && as_dir=.
5702 for ac_prog in fgrep; do
5703 for ac_exec_ext in '' $ac_executable_extensions; do
5704 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5705 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5706# Check for GNU ac_path_FGREP and select it if it is found.
5707 # Check for GNU $ac_path_FGREP
5708case `"$ac_path_FGREP" --version 2>&1` in
5709*GNU*)
5710 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5711*)
5712 ac_count=0
5713 $as_echo_n 0123456789 >"conftest.in"
5714 while :
5715 do
5716 cat "conftest.in" "conftest.in" >"conftest.tmp"
5717 mv "conftest.tmp" "conftest.in"
5718 cp "conftest.in" "conftest.nl"
5719 $as_echo 'FGREP' >> "conftest.nl"
5720 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5721 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5722 as_fn_arith $ac_count + 1 && ac_count=$as_val
5723 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5724 # Best one so far, save it but keep looking for a better one
5725 ac_cv_path_FGREP="$ac_path_FGREP"
5726 ac_path_FGREP_max=$ac_count
7357c5b6 5727 fi
81ecdfbb
RW
5728 # 10*(2^10) chars as input seems more than enough
5729 test $ac_count -gt 10 && break
5730 done
5731 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5732esac
5733
5734 $ac_path_FGREP_found && break 3
5735 done
5736 done
5737 done
5738IFS=$as_save_IFS
5739 if test -z "$ac_cv_path_FGREP"; then
5740 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5741 fi
5742else
5743 ac_cv_path_FGREP=$FGREP
5744fi
5745
5746 fi
20e95c23 5747fi
81ecdfbb
RW
5748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5749$as_echo "$ac_cv_path_FGREP" >&6; }
5750 FGREP="$ac_cv_path_FGREP"
7357c5b6
AM
5751
5752
5753test -z "$GREP" && GREP=grep
5754
d7040cdb
SE
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
20e95c23 5766
ce2cded5 5767
d7040cdb 5768
7357c5b6
AM
5769
5770
5771
5772
81ecdfbb
RW
5773# Check whether --with-gnu-ld was given.
5774if test "${with_gnu_ld+set}" = set; then :
5775 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7357c5b6
AM
5776else
5777 with_gnu_ld=no
81ecdfbb
RW
5778fi
5779
7357c5b6
AM
5780ac_prog=ld
5781if test "$GCC" = yes; then
5782 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5784$as_echo_n "checking for ld used by $CC... " >&6; }
7357c5b6
AM
5785 case $host in
5786 *-*-mingw*)
5787 # gcc leaves a trailing carriage return which upsets mingw
5788 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5789 *)
5790 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5791 esac
5792 case $ac_prog in
5793 # Accept absolute paths.
5794 [\\/]* | ?:[\\/]*)
5795 re_direlt='/[^/][^/]*/\.\./'
5796 # Canonicalize the pathname of ld
5797 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5798 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5799 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5800 done
5801 test -z "$LD" && LD="$ac_prog"
5802 ;;
5803 "")
5804 # If it fails, then pretend we aren't using GCC.
5805 ac_prog=ld
5806 ;;
5807 *)
5808 # If it is relative, then search for the first ld in PATH.
5809 with_gnu_ld=unknown
5810 ;;
5811 esac
5812elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5814$as_echo_n "checking for GNU ld... " >&6; }
7357c5b6 5815else
81ecdfbb
RW
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5817$as_echo_n "checking for non-GNU ld... " >&6; }
ce2cded5 5818fi
81ecdfbb
RW
5819if test "${lt_cv_path_LD+set}" = set; then :
5820 $as_echo_n "(cached) " >&6
ce2cded5 5821else
7357c5b6
AM
5822 if test -z "$LD"; then
5823 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5824 for ac_dir in $PATH; do
5825 IFS="$lt_save_ifs"
5826 test -z "$ac_dir" && ac_dir=.
5827 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5828 lt_cv_path_LD="$ac_dir/$ac_prog"
5829 # Check to see if the program is GNU ld. I'd rather use --version,
5830 # but apparently some variants of GNU ld only accept -v.
5831 # Break only if it was the GNU/non-GNU ld that we prefer.
5832 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5833 *GNU* | *'with BFD'*)
5834 test "$with_gnu_ld" != no && break
5835 ;;
5836 *)
5837 test "$with_gnu_ld" != yes && break
5838 ;;
5839 esac
5840 fi
5841 done
5842 IFS="$lt_save_ifs"
ce2cded5 5843else
7357c5b6 5844 lt_cv_path_LD="$LD" # Let the user override the test with a path.
ce2cded5
L
5845fi
5846fi
7357c5b6
AM
5847
5848LD="$lt_cv_path_LD"
5849if test -n "$LD"; then
81ecdfbb
RW
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5851$as_echo "$LD" >&6; }
ce2cded5 5852else
81ecdfbb
RW
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5854$as_echo "no" >&6; }
ce2cded5 5855fi
81ecdfbb
RW
5856test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5858$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5859if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5860 $as_echo_n "(cached) " >&6
ce2cded5 5861else
7357c5b6
AM
5862 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5863case `$LD -v 2>&1 </dev/null` in
5864*GNU* | *'with BFD'*)
5865 lt_cv_prog_gnu_ld=yes
5866 ;;
5867*)
5868 lt_cv_prog_gnu_ld=no
5869 ;;
5870esac
ce2cded5 5871fi
81ecdfbb
RW
5872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5873$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7357c5b6 5874with_gnu_ld=$lt_cv_prog_gnu_ld
d7040cdb
SE
5875
5876
5877
5878
5879
5880
5881
5882
5883
81ecdfbb
RW
5884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5885$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5886if test "${lt_cv_path_NM+set}" = set; then :
5887 $as_echo_n "(cached) " >&6
ce2cded5 5888else
7357c5b6
AM
5889 if test -n "$NM"; then
5890 # Let the user override the test.
5891 lt_cv_path_NM="$NM"
ce2cded5 5892else
7357c5b6
AM
5893 lt_nm_to_check="${ac_tool_prefix}nm"
5894 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5895 lt_nm_to_check="$lt_nm_to_check nm"
20e95c23 5896 fi
7357c5b6
AM
5897 for lt_tmp_nm in $lt_nm_to_check; do
5898 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5899 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5900 IFS="$lt_save_ifs"
5901 test -z "$ac_dir" && ac_dir=.
5902 tmp_nm="$ac_dir/$lt_tmp_nm"
5903 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5904 # Check to see if the nm accepts a BSD-compat flag.
5905 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5906 # nm: unknown option "B" ignored
5907 # Tru64's nm complains that /dev/null is an invalid object file
5908 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5909 */dev/null* | *'Invalid file or object type'*)
5910 lt_cv_path_NM="$tmp_nm -B"
5911 break
5912 ;;
5913 *)
5914 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5915 */dev/null*)
5916 lt_cv_path_NM="$tmp_nm -p"
5917 break
5918 ;;
5919 *)
5920 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5921 continue # so that we can try to find one that supports BSD flags
5922 ;;
5923 esac
5924 ;;
5925 esac
5926 fi
5927 done
5928 IFS="$lt_save_ifs"
5929 done
5930 : ${lt_cv_path_NM=no}
ce2cded5
L
5931fi
5932fi
81ecdfbb
RW
5933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5934$as_echo "$lt_cv_path_NM" >&6; }
7357c5b6
AM
5935if test "$lt_cv_path_NM" != "no"; then
5936 NM="$lt_cv_path_NM"
ce2cded5 5937else
7357c5b6 5938 # Didn't find any BSD compatible name lister, look for dumpbin.
3725885a
RW
5939 if test -n "$DUMPBIN"; then :
5940 # Let the user override the test.
5941 else
5942 if test -n "$ac_tool_prefix"; then
5943 for ac_prog in dumpbin "link -dump"
7357c5b6
AM
5944 do
5945 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5946set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
5947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5948$as_echo_n "checking for $ac_word... " >&6; }
5949if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5950 $as_echo_n "(cached) " >&6
20e95c23 5951else
7357c5b6
AM
5952 if test -n "$DUMPBIN"; then
5953 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
ce2cded5
L
5954else
5955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5956for as_dir in $PATH
5957do
5958 IFS=$as_save_IFS
5959 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5960 for ac_exec_ext in '' $ac_executable_extensions; do
5961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 5962 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
81ecdfbb 5963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
5964 break 2
5965 fi
5966done
81ecdfbb
RW
5967 done
5968IFS=$as_save_IFS
d7040cdb 5969
20e95c23 5970fi
ce2cded5 5971fi
7357c5b6
AM
5972DUMPBIN=$ac_cv_prog_DUMPBIN
5973if test -n "$DUMPBIN"; then
81ecdfbb
RW
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5975$as_echo "$DUMPBIN" >&6; }
42ecbf5e 5976else
81ecdfbb
RW
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5978$as_echo "no" >&6; }
42ecbf5e
DJ
5979fi
5980
81ecdfbb 5981
7357c5b6
AM
5982 test -n "$DUMPBIN" && break
5983 done
ce2cded5 5984fi
7357c5b6
AM
5985if test -z "$DUMPBIN"; then
5986 ac_ct_DUMPBIN=$DUMPBIN
3725885a 5987 for ac_prog in dumpbin "link -dump"
7357c5b6
AM
5988do
5989 # Extract the first word of "$ac_prog", so it can be a program name with args.
5990set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
5991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5992$as_echo_n "checking for $ac_word... " >&6; }
5993if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5994 $as_echo_n "(cached) " >&6
42ecbf5e 5995else
7357c5b6
AM
5996 if test -n "$ac_ct_DUMPBIN"; then
5997 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
ce2cded5
L
5998else
5999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6000for as_dir in $PATH
6001do
6002 IFS=$as_save_IFS
6003 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6004 for ac_exec_ext in '' $ac_executable_extensions; do
6005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6006 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
81ecdfbb 6007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6008 break 2
6009 fi
6010done
81ecdfbb
RW
6011 done
6012IFS=$as_save_IFS
d7040cdb 6013
ce2cded5
L
6014fi
6015fi
7357c5b6
AM
6016ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6017if test -n "$ac_ct_DUMPBIN"; then
81ecdfbb
RW
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6019$as_echo "$ac_ct_DUMPBIN" >&6; }
ce2cded5 6020else
81ecdfbb
RW
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6022$as_echo "no" >&6; }
ce2cded5 6023fi
d7040cdb 6024
81ecdfbb 6025
7357c5b6 6026 test -n "$ac_ct_DUMPBIN" && break
ce2cded5 6027done
d7040cdb 6028
81ecdfbb
RW
6029 if test "x$ac_ct_DUMPBIN" = x; then
6030 DUMPBIN=":"
6031 else
6032 case $cross_compiling:$ac_tool_warned in
6033yes:)
6034{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6035$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6036ac_tool_warned=yes ;;
6037esac
6038 DUMPBIN=$ac_ct_DUMPBIN
6039 fi
ce2cded5 6040fi
7357c5b6 6041
3725885a
RW
6042 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6043 *COFF*)
6044 DUMPBIN="$DUMPBIN -symbols"
6045 ;;
6046 *)
6047 DUMPBIN=:
6048 ;;
6049 esac
6050 fi
7357c5b6
AM
6051
6052 if test "$DUMPBIN" != ":"; then
6053 NM="$DUMPBIN"
6054 fi
ce2cded5 6055fi
7357c5b6
AM
6056test -z "$NM" && NM=nm
6057
6058
6059
6060
6061
6062
81ecdfbb
RW
6063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6064$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6065if test "${lt_cv_nm_interface+set}" = set; then :
6066 $as_echo_n "(cached) " >&6
20e95c23 6067else
7357c5b6
AM
6068 lt_cv_nm_interface="BSD nm"
6069 echo "int some_variable = 0;" > conftest.$ac_ext
3725885a 6070 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7357c5b6
AM
6071 (eval "$ac_compile" 2>conftest.err)
6072 cat conftest.err >&5
3725885a 6073 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7357c5b6
AM
6074 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6075 cat conftest.err >&5
3725885a 6076 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7357c5b6
AM
6077 cat conftest.out >&5
6078 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6079 lt_cv_nm_interface="MS dumpbin"
6080 fi
6081 rm -f conftest*
20e95c23 6082fi
81ecdfbb
RW
6083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6084$as_echo "$lt_cv_nm_interface" >&6; }
20e95c23 6085
81ecdfbb
RW
6086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6087$as_echo_n "checking whether ln -s works... " >&6; }
7357c5b6
AM
6088LN_S=$as_ln_s
6089if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6091$as_echo "yes" >&6; }
ce2cded5 6092else
81ecdfbb
RW
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6094$as_echo "no, using $LN_S" >&6; }
d7040cdb 6095fi
20e95c23 6096
7357c5b6 6097# find the maximum length of command line arguments
81ecdfbb
RW
6098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6099$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6100if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6101 $as_echo_n "(cached) " >&6
7357c5b6
AM
6102else
6103 i=0
6104 teststring="ABCD"
20e95c23 6105
7357c5b6
AM
6106 case $build_os in
6107 msdosdjgpp*)
6108 # On DJGPP, this test can blow up pretty badly due to problems in libc
6109 # (any single argument exceeding 2000 bytes causes a buffer overrun
6110 # during glob expansion). Even if it were fixed, the result of this
6111 # check would be larger than it should be.
6112 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6113 ;;
20e95c23 6114
7357c5b6
AM
6115 gnu*)
6116 # Under GNU Hurd, this test is not required because there is
6117 # no limit to the length of command line arguments.
6118 # Libtool will interpret -1 as no limit whatsoever
6119 lt_cv_sys_max_cmd_len=-1;
6120 ;;
20e95c23 6121
b214d478 6122 cygwin* | mingw* | cegcc*)
7357c5b6
AM
6123 # On Win9x/ME, this test blows up -- it succeeds, but takes
6124 # about 5 minutes as the teststring grows exponentially.
6125 # Worse, since 9x/ME are not pre-emptively multitasking,
6126 # you end up with a "frozen" computer, even though with patience
6127 # the test eventually succeeds (with a max line length of 256k).
6128 # Instead, let's just punt: use the minimum linelength reported by
6129 # all of the supported platforms: 8192 (on NT/2K/XP).
6130 lt_cv_sys_max_cmd_len=8192;
6131 ;;
20e95c23 6132
3725885a
RW
6133 mint*)
6134 # On MiNT this can take a long time and run out of memory.
6135 lt_cv_sys_max_cmd_len=8192;
6136 ;;
6137
7357c5b6
AM
6138 amigaos*)
6139 # On AmigaOS with pdksh, this test takes hours, literally.
6140 # So we just punt and use a minimum line length of 8192.
6141 lt_cv_sys_max_cmd_len=8192;
6142 ;;
20e95c23 6143
7357c5b6
AM
6144 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6145 # This has been around since 386BSD, at least. Likely further.
6146 if test -x /sbin/sysctl; then
6147 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6148 elif test -x /usr/sbin/sysctl; then
6149 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6150 else
6151 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6152 fi
6153 # And add a safety zone
6154 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6155 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6156 ;;
d7040cdb 6157
7357c5b6
AM
6158 interix*)
6159 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6160 lt_cv_sys_max_cmd_len=196608
6161 ;;
d7040cdb 6162
7357c5b6
AM
6163 osf*)
6164 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6165 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6166 # nice to cause kernel panics so lets avoid the loop below.
6167 # First set a reasonable default.
6168 lt_cv_sys_max_cmd_len=16384
6169 #
6170 if test -x /sbin/sysconfig; then
6171 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6172 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6173 esac
6174 fi
6175 ;;
6176 sco3.2v5*)
6177 lt_cv_sys_max_cmd_len=102400
6178 ;;
6179 sysv5* | sco5v6* | sysv4.2uw2*)
6180 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6181 if test -n "$kargmax"; then
6182 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6183 else
6184 lt_cv_sys_max_cmd_len=32768
6185 fi
ce2cded5
L
6186 ;;
6187 *)
b214d478
SE
6188 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6189 if test -n "$lt_cv_sys_max_cmd_len"; then
7357c5b6
AM
6190 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6191 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6192 else
6193 # Make teststring a little bigger before we do anything with it.
6194 # a 1K string should be a reasonable start.
6195 for i in 1 2 3 4 5 6 7 8 ; do
6196 teststring=$teststring$teststring
6197 done
6198 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6199 # If test is not a shell built-in, we'll probably end up computing a
6200 # maximum length that is only half of the actual maximum length, but
6201 # we can't tell.
3725885a
RW
6202 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6203 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7357c5b6
AM
6204 test $i != 17 # 1/2 MB should be enough
6205 do
6206 i=`expr $i + 1`
6207 teststring=$teststring$teststring
6208 done
6209 # Only check the string length outside the loop.
6210 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6211 teststring=
6212 # Add a significant safety factor because C++ compilers can tack on
6213 # massive amounts of additional arguments before passing them to the
6214 # linker. It appears as though 1/2 is a usable value.
6215 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6216 fi
ce2cded5
L
6217 ;;
6218 esac
d7040cdb 6219
7357c5b6 6220fi
d7040cdb 6221
7357c5b6 6222if test -n $lt_cv_sys_max_cmd_len ; then
81ecdfbb
RW
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6224$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7357c5b6 6225else
81ecdfbb
RW
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6227$as_echo "none" >&6; }
7357c5b6
AM
6228fi
6229max_cmd_len=$lt_cv_sys_max_cmd_len
d7040cdb
SE
6230
6231
6232
6233
6234
d7040cdb 6235
7357c5b6
AM
6236: ${CP="cp -f"}
6237: ${MV="mv -f"}
6238: ${RM="rm -f"}
d7040cdb 6239
81ecdfbb
RW
6240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6241$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7357c5b6
AM
6242# Try some XSI features
6243xsi_shell=no
6244( _lt_dummy="a/b/c"
6245 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
b214d478
SE
6246 = c,a/b,, \
6247 && eval 'test $(( 1 + 1 )) -eq 2 \
6248 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7357c5b6 6249 && xsi_shell=yes
81ecdfbb
RW
6250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6251$as_echo "$xsi_shell" >&6; }
d7040cdb 6252
d7040cdb 6253
81ecdfbb
RW
6254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6255$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7357c5b6
AM
6256lt_shell_append=no
6257( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6258 >/dev/null 2>&1 \
6259 && lt_shell_append=yes
81ecdfbb
RW
6260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6261$as_echo "$lt_shell_append" >&6; }
d7040cdb
SE
6262
6263
7357c5b6
AM
6264if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6265 lt_unset=unset
6266else
6267 lt_unset=false
6268fi
d7040cdb 6269
d7040cdb 6270
d7040cdb 6271
d7040cdb 6272
d7040cdb 6273
7357c5b6
AM
6274# test EBCDIC or ASCII
6275case `echo X|tr X '\101'` in
6276 A) # ASCII based system
6277 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6278 lt_SP2NL='tr \040 \012'
6279 lt_NL2SP='tr \015\012 \040\040'
6280 ;;
6281 *) # EBCDIC based system
6282 lt_SP2NL='tr \100 \n'
6283 lt_NL2SP='tr \r\n \100\100'
6284 ;;
6285esac
42ecbf5e 6286
d7040cdb
SE
6287
6288
6289
6290
6291
6292
d7040cdb 6293
d7040cdb 6294
81ecdfbb
RW
6295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6296$as_echo_n "checking for $LD option to reload object files... " >&6; }
6297if test "${lt_cv_ld_reload_flag+set}" = set; then :
6298 $as_echo_n "(cached) " >&6
7357c5b6
AM
6299else
6300 lt_cv_ld_reload_flag='-r'
6301fi
81ecdfbb
RW
6302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6303$as_echo "$lt_cv_ld_reload_flag" >&6; }
7357c5b6
AM
6304reload_flag=$lt_cv_ld_reload_flag
6305case $reload_flag in
6306"" | " "*) ;;
6307*) reload_flag=" $reload_flag" ;;
6308esac
6309reload_cmds='$LD$reload_flag -o $output$reload_objs'
6310case $host_os in
6311 darwin*)
6312 if test "$GCC" = yes; then
6313 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6314 else
6315 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6316 fi
6317 ;;
6318esac
d7040cdb 6319
d7040cdb 6320
d7040cdb 6321
d7040cdb 6322
d7040cdb 6323
d7040cdb 6324
d7040cdb 6325
d7040cdb 6326
d7040cdb 6327
b214d478
SE
6328if test -n "$ac_tool_prefix"; then
6329 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6330set dummy ${ac_tool_prefix}objdump; ac_word=$2
81ecdfbb
RW
6331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6332$as_echo_n "checking for $ac_word... " >&6; }
6333if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6334 $as_echo_n "(cached) " >&6
b214d478
SE
6335else
6336 if test -n "$OBJDUMP"; then
6337 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6338else
6339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6340for as_dir in $PATH
6341do
6342 IFS=$as_save_IFS
6343 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6344 for ac_exec_ext in '' $ac_executable_extensions; do
6345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 6346 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
81ecdfbb 6347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
6348 break 2
6349 fi
6350done
81ecdfbb
RW
6351 done
6352IFS=$as_save_IFS
b214d478
SE
6353
6354fi
6355fi
6356OBJDUMP=$ac_cv_prog_OBJDUMP
6357if test -n "$OBJDUMP"; then
81ecdfbb
RW
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6359$as_echo "$OBJDUMP" >&6; }
b214d478 6360else
81ecdfbb
RW
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6362$as_echo "no" >&6; }
b214d478
SE
6363fi
6364
81ecdfbb 6365
b214d478
SE
6366fi
6367if test -z "$ac_cv_prog_OBJDUMP"; then
6368 ac_ct_OBJDUMP=$OBJDUMP
6369 # Extract the first word of "objdump", so it can be a program name with args.
6370set dummy objdump; ac_word=$2
81ecdfbb
RW
6371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6372$as_echo_n "checking for $ac_word... " >&6; }
6373if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6374 $as_echo_n "(cached) " >&6
b214d478
SE
6375else
6376 if test -n "$ac_ct_OBJDUMP"; then
6377 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6378else
6379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6380for as_dir in $PATH
6381do
6382 IFS=$as_save_IFS
6383 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6384 for ac_exec_ext in '' $ac_executable_extensions; do
6385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 6386 ac_cv_prog_ac_ct_OBJDUMP="objdump"
81ecdfbb 6387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
6388 break 2
6389 fi
6390done
81ecdfbb
RW
6391 done
6392IFS=$as_save_IFS
b214d478 6393
b214d478
SE
6394fi
6395fi
6396ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6397if test -n "$ac_ct_OBJDUMP"; then
81ecdfbb
RW
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6399$as_echo "$ac_ct_OBJDUMP" >&6; }
b214d478 6400else
81ecdfbb
RW
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6402$as_echo "no" >&6; }
b214d478
SE
6403fi
6404
81ecdfbb
RW
6405 if test "x$ac_ct_OBJDUMP" = x; then
6406 OBJDUMP="false"
6407 else
6408 case $cross_compiling:$ac_tool_warned in
6409yes:)
6410{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6411$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6412ac_tool_warned=yes ;;
6413esac
6414 OBJDUMP=$ac_ct_OBJDUMP
6415 fi
b214d478
SE
6416else
6417 OBJDUMP="$ac_cv_prog_OBJDUMP"
6418fi
6419
6420test -z "$OBJDUMP" && OBJDUMP=objdump
6421
6422
6423
6424
6425
6426
6427
6428
d7040cdb 6429
81ecdfbb
RW
6430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6431$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6432if test "${lt_cv_deplibs_check_method+set}" = set; then :
6433 $as_echo_n "(cached) " >&6
ce2cded5 6434else
7357c5b6
AM
6435 lt_cv_file_magic_cmd='$MAGIC_CMD'
6436lt_cv_file_magic_test_file=
6437lt_cv_deplibs_check_method='unknown'
6438# Need to set the preceding variable on all platforms that support
6439# interlibrary dependencies.
6440# 'none' -- dependencies not supported.
6441# `unknown' -- same as none, but documents that we really don't know.
6442# 'pass_all' -- all dependencies passed with no checks.
6443# 'test_compile' -- check by making test program.
6444# 'file_magic [[regex]]' -- check by looking for files in library path
6445# which responds to the $file_magic_cmd with a given extended regex.
6446# If you have `file' or equivalent on your system and you're not sure
6447# whether `pass_all' will *always* work, you probably want this one.
d7040cdb 6448
ce2cded5 6449case $host_os in
7357c5b6
AM
6450aix[4-9]*)
6451 lt_cv_deplibs_check_method=pass_all
ce2cded5 6452 ;;
7357c5b6
AM
6453
6454beos*)
6455 lt_cv_deplibs_check_method=pass_all
ce2cded5 6456 ;;
7357c5b6
AM
6457
6458bsdi[45]*)
6459 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6460 lt_cv_file_magic_cmd='/usr/bin/file -L'
6461 lt_cv_file_magic_test_file=/shlib/libc.so
ce2cded5 6462 ;;
7357c5b6
AM
6463
6464cygwin*)
6465 # func_win32_libid is a shell function defined in ltmain.sh
6466 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6467 lt_cv_file_magic_cmd='func_win32_libid'
ce2cded5 6468 ;;
7357c5b6
AM
6469
6470mingw* | pw32*)
6471 # Base MSYS/MinGW do not provide the 'file' command needed by
6472 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6473 # unless we find 'file', for example because we are cross-compiling.
3725885a
RW
6474 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6475 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7357c5b6
AM
6476 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6477 lt_cv_file_magic_cmd='func_win32_libid'
6478 else
6479 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6480 lt_cv_file_magic_cmd='$OBJDUMP -f'
6481 fi
ce2cded5 6482 ;;
7357c5b6 6483
3725885a 6484cegcc*)
b214d478
SE
6485 # use the weaker test based on 'objdump'. See mingw*.
6486 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6487 lt_cv_file_magic_cmd='$OBJDUMP -f'
6488 ;;
6489
7357c5b6
AM
6490darwin* | rhapsody*)
6491 lt_cv_deplibs_check_method=pass_all
ce2cded5 6492 ;;
7357c5b6
AM
6493
6494freebsd* | dragonfly*)
6495 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6496 case $host_cpu in
6497 i*86 )
6498 # Not sure whether the presence of OpenBSD here was a mistake.
6499 # Let's accept both of them until this is cleared up.
6500 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6501 lt_cv_file_magic_cmd=/usr/bin/file
6502 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6503 ;;
6504 esac
6505 else
6506 lt_cv_deplibs_check_method=pass_all
6507 fi
ce2cded5 6508 ;;
7357c5b6
AM
6509
6510gnu*)
6511 lt_cv_deplibs_check_method=pass_all
ce2cded5 6512 ;;
7357c5b6 6513
3725885a
RW
6514haiku*)
6515 lt_cv_deplibs_check_method=pass_all
6516 ;;
6517
7357c5b6
AM
6518hpux10.20* | hpux11*)
6519 lt_cv_file_magic_cmd=/usr/bin/file
6520 case $host_cpu in
6521 ia64*)
6522 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6523 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6524 ;;
6525 hppa*64*)
3725885a 6526 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
6527 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6528 ;;
6529 *)
3725885a 6530 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7357c5b6
AM
6531 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6532 ;;
6533 esac
ce2cded5 6534 ;;
d7040cdb 6535
7357c5b6
AM
6536interix[3-9]*)
6537 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6538 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6539 ;;
d7040cdb 6540
7357c5b6
AM
6541irix5* | irix6* | nonstopux*)
6542 case $LD in
6543 *-32|*"-32 ") libmagic=32-bit;;
6544 *-n32|*"-n32 ") libmagic=N32;;
6545 *-64|*"-64 ") libmagic=64-bit;;
6546 *) libmagic=never-match;;
6547 esac
6548 lt_cv_deplibs_check_method=pass_all
6549 ;;
d7040cdb 6550
7357c5b6 6551# This must be Linux ELF.
58e24671 6552linux* | k*bsd*-gnu | kopensolaris*-gnu)
7357c5b6
AM
6553 lt_cv_deplibs_check_method=pass_all
6554 ;;
d7040cdb 6555
7357c5b6
AM
6556netbsd*)
6557 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6558 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6559 else
6560 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6561 fi
ce2cded5 6562 ;;
d7040cdb 6563
7357c5b6
AM
6564newos6*)
6565 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6566 lt_cv_file_magic_cmd=/usr/bin/file
6567 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6568 ;;
d7040cdb 6569
7357c5b6
AM
6570*nto* | *qnx*)
6571 lt_cv_deplibs_check_method=pass_all
6572 ;;
d7040cdb 6573
7357c5b6
AM
6574openbsd*)
6575 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6576 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
ce2cded5 6577 else
7357c5b6 6578 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
ce2cded5 6579 fi
7357c5b6 6580 ;;
d7040cdb 6581
7357c5b6
AM
6582osf3* | osf4* | osf5*)
6583 lt_cv_deplibs_check_method=pass_all
6584 ;;
d7040cdb 6585
7357c5b6
AM
6586rdos*)
6587 lt_cv_deplibs_check_method=pass_all
6588 ;;
d7040cdb 6589
7357c5b6
AM
6590solaris*)
6591 lt_cv_deplibs_check_method=pass_all
6592 ;;
d7040cdb 6593
7357c5b6
AM
6594sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6595 lt_cv_deplibs_check_method=pass_all
6596 ;;
d7040cdb 6597
7357c5b6
AM
6598sysv4 | sysv4.3*)
6599 case $host_vendor in
6600 motorola)
6601 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]'
6602 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6603 ;;
6604 ncr)
6605 lt_cv_deplibs_check_method=pass_all
6606 ;;
6607 sequent)
6608 lt_cv_file_magic_cmd='/bin/file'
6609 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6610 ;;
6611 sni)
6612 lt_cv_file_magic_cmd='/bin/file'
6613 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6614 lt_cv_file_magic_test_file=/lib/libc.so
6615 ;;
6616 siemens)
6617 lt_cv_deplibs_check_method=pass_all
6618 ;;
6619 pc)
6620 lt_cv_deplibs_check_method=pass_all
6621 ;;
6622 esac
6623 ;;
d7040cdb 6624
7357c5b6
AM
6625tpf*)
6626 lt_cv_deplibs_check_method=pass_all
6627 ;;
6628esac
d7040cdb 6629
7357c5b6 6630fi
81ecdfbb
RW
6631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6632$as_echo "$lt_cv_deplibs_check_method" >&6; }
7357c5b6
AM
6633file_magic_cmd=$lt_cv_file_magic_cmd
6634deplibs_check_method=$lt_cv_deplibs_check_method
6635test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb
SE
6636
6637
6638
7357c5b6
AM
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648if test -n "$ac_tool_prefix"; then
6649 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6650set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
6651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6652$as_echo_n "checking for $ac_word... " >&6; }
6653if test "${ac_cv_prog_AR+set}" = set; then :
6654 $as_echo_n "(cached) " >&6
7357c5b6
AM
6655else
6656 if test -n "$AR"; then
6657 ac_cv_prog_AR="$AR" # Let the user override the test.
6658else
6659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6660for as_dir in $PATH
6661do
6662 IFS=$as_save_IFS
6663 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6664 for ac_exec_ext in '' $ac_executable_extensions; do
6665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6666 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 6667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6668 break 2
ce2cded5
L
6669 fi
6670done
81ecdfbb
RW
6671 done
6672IFS=$as_save_IFS
d7040cdb 6673
42ecbf5e 6674fi
ce2cded5 6675fi
7357c5b6
AM
6676AR=$ac_cv_prog_AR
6677if test -n "$AR"; then
81ecdfbb
RW
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6679$as_echo "$AR" >&6; }
42ecbf5e 6680else
81ecdfbb
RW
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6682$as_echo "no" >&6; }
42ecbf5e
DJ
6683fi
6684
81ecdfbb 6685
7357c5b6
AM
6686fi
6687if test -z "$ac_cv_prog_AR"; then
6688 ac_ct_AR=$AR
6689 # Extract the first word of "ar", so it can be a program name with args.
6690set dummy ar; ac_word=$2
81ecdfbb
RW
6691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6692$as_echo_n "checking for $ac_word... " >&6; }
6693if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6694 $as_echo_n "(cached) " >&6
7357c5b6
AM
6695else
6696 if test -n "$ac_ct_AR"; then
6697 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6698else
6699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6700for as_dir in $PATH
6701do
6702 IFS=$as_save_IFS
6703 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6704 for ac_exec_ext in '' $ac_executable_extensions; do
6705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6706 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 6707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
6708 break 2
6709 fi
6710done
81ecdfbb
RW
6711 done
6712IFS=$as_save_IFS
42ecbf5e 6713
7357c5b6
AM
6714fi
6715fi
6716ac_ct_AR=$ac_cv_prog_ac_ct_AR
6717if test -n "$ac_ct_AR"; then
81ecdfbb
RW
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6719$as_echo "$ac_ct_AR" >&6; }
7357c5b6 6720else
81ecdfbb
RW
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6722$as_echo "no" >&6; }
7357c5b6 6723fi
d7040cdb 6724
81ecdfbb
RW
6725 if test "x$ac_ct_AR" = x; then
6726 AR="false"
6727 else
6728 case $cross_compiling:$ac_tool_warned in
6729yes:)
6730{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6731$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6732ac_tool_warned=yes ;;
6733esac
6734 AR=$ac_ct_AR
6735 fi
7357c5b6
AM
6736else
6737 AR="$ac_cv_prog_AR"
6738fi
d7040cdb 6739
7357c5b6
AM
6740test -z "$AR" && AR=ar
6741test -z "$AR_FLAGS" && AR_FLAGS=cru
d7040cdb
SE
6742
6743
6744
20e95c23 6745
d7040cdb 6746
d7040cdb
SE
6747
6748
6749
6750
6751
6752
7357c5b6
AM
6753if test -n "$ac_tool_prefix"; then
6754 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6755set dummy ${ac_tool_prefix}strip; ac_word=$2
81ecdfbb
RW
6756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6757$as_echo_n "checking for $ac_word... " >&6; }
6758if test "${ac_cv_prog_STRIP+set}" = set; then :
6759 $as_echo_n "(cached) " >&6
7357c5b6
AM
6760else
6761 if test -n "$STRIP"; then
6762 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6763else
6764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765for as_dir in $PATH
6766do
6767 IFS=$as_save_IFS
6768 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6769 for ac_exec_ext in '' $ac_executable_extensions; do
6770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6771 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
81ecdfbb 6772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6773 break 2
ce2cded5 6774 fi
7357c5b6 6775done
81ecdfbb
RW
6776 done
6777IFS=$as_save_IFS
d7040cdb 6778
7357c5b6
AM
6779fi
6780fi
6781STRIP=$ac_cv_prog_STRIP
6782if test -n "$STRIP"; then
81ecdfbb
RW
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6784$as_echo "$STRIP" >&6; }
7357c5b6 6785else
81ecdfbb
RW
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6787$as_echo "no" >&6; }
7357c5b6
AM
6788fi
6789
81ecdfbb 6790
7357c5b6
AM
6791fi
6792if test -z "$ac_cv_prog_STRIP"; then
6793 ac_ct_STRIP=$STRIP
6794 # Extract the first word of "strip", so it can be a program name with args.
6795set dummy strip; ac_word=$2
81ecdfbb
RW
6796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6797$as_echo_n "checking for $ac_word... " >&6; }
6798if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6799 $as_echo_n "(cached) " >&6
7357c5b6
AM
6800else
6801 if test -n "$ac_ct_STRIP"; then
6802 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6803else
6804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6805for as_dir in $PATH
6806do
6807 IFS=$as_save_IFS
6808 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6809 for ac_exec_ext in '' $ac_executable_extensions; do
6810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6811 ac_cv_prog_ac_ct_STRIP="strip"
81ecdfbb 6812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6813 break 2
ce2cded5 6814 fi
7357c5b6 6815done
81ecdfbb
RW
6816 done
6817IFS=$as_save_IFS
d7040cdb 6818
7357c5b6
AM
6819fi
6820fi
6821ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6822if test -n "$ac_ct_STRIP"; then
81ecdfbb
RW
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6824$as_echo "$ac_ct_STRIP" >&6; }
20e95c23 6825else
81ecdfbb
RW
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6827$as_echo "no" >&6; }
7357c5b6 6828fi
d7040cdb 6829
81ecdfbb
RW
6830 if test "x$ac_ct_STRIP" = x; then
6831 STRIP=":"
6832 else
6833 case $cross_compiling:$ac_tool_warned in
6834yes:)
6835{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6836$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6837ac_tool_warned=yes ;;
6838esac
6839 STRIP=$ac_ct_STRIP
6840 fi
7357c5b6
AM
6841else
6842 STRIP="$ac_cv_prog_STRIP"
6843fi
d7040cdb 6844
7357c5b6 6845test -z "$STRIP" && STRIP=:
d7040cdb 6846
d7040cdb
SE
6847
6848
6849
d7040cdb 6850
7357c5b6
AM
6851
6852if test -n "$ac_tool_prefix"; then
6853 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6854set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
6855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6856$as_echo_n "checking for $ac_word... " >&6; }
6857if test "${ac_cv_prog_RANLIB+set}" = set; then :
6858 $as_echo_n "(cached) " >&6
ce2cded5 6859else
7357c5b6
AM
6860 if test -n "$RANLIB"; then
6861 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6862else
6863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6864for as_dir in $PATH
ce2cded5 6865do
7357c5b6
AM
6866 IFS=$as_save_IFS
6867 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6868 for ac_exec_ext in '' $ac_executable_extensions; do
6869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6870 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 6871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6872 break 2
ce2cded5 6873 fi
7357c5b6 6874done
81ecdfbb
RW
6875 done
6876IFS=$as_save_IFS
7357c5b6 6877
ce2cded5 6878fi
7357c5b6
AM
6879fi
6880RANLIB=$ac_cv_prog_RANLIB
6881if test -n "$RANLIB"; then
81ecdfbb
RW
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6883$as_echo "$RANLIB" >&6; }
ce2cded5 6884else
81ecdfbb
RW
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6886$as_echo "no" >&6; }
ce2cded5 6887fi
d7040cdb 6888
81ecdfbb 6889
7357c5b6
AM
6890fi
6891if test -z "$ac_cv_prog_RANLIB"; then
6892 ac_ct_RANLIB=$RANLIB
6893 # Extract the first word of "ranlib", so it can be a program name with args.
6894set dummy ranlib; ac_word=$2
81ecdfbb
RW
6895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6896$as_echo_n "checking for $ac_word... " >&6; }
6897if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6898 $as_echo_n "(cached) " >&6
ce2cded5 6899else
7357c5b6
AM
6900 if test -n "$ac_ct_RANLIB"; then
6901 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6902else
6903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6904for as_dir in $PATH
6905do
6906 IFS=$as_save_IFS
6907 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6908 for ac_exec_ext in '' $ac_executable_extensions; do
6909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6910 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 6911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
6912 break 2
6913 fi
6914done
81ecdfbb
RW
6915 done
6916IFS=$as_save_IFS
7357c5b6 6917
ce2cded5 6918fi
7357c5b6
AM
6919fi
6920ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6921if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6923$as_echo "$ac_ct_RANLIB" >&6; }
ce2cded5 6924else
81ecdfbb
RW
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6926$as_echo "no" >&6; }
ce2cded5 6927fi
d7040cdb 6928
81ecdfbb
RW
6929 if test "x$ac_ct_RANLIB" = x; then
6930 RANLIB=":"
6931 else
6932 case $cross_compiling:$ac_tool_warned in
6933yes:)
6934{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6935$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6936ac_tool_warned=yes ;;
6937esac
6938 RANLIB=$ac_ct_RANLIB
6939 fi
7357c5b6
AM
6940else
6941 RANLIB="$ac_cv_prog_RANLIB"
ce2cded5 6942fi
d7040cdb 6943
7357c5b6 6944test -z "$RANLIB" && RANLIB=:
d7040cdb 6945
7357c5b6
AM
6946
6947
6948
6949
6950
6951# Determine commands to create old-style static archives.
b214d478 6952old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7357c5b6
AM
6953old_postinstall_cmds='chmod 644 $oldlib'
6954old_postuninstall_cmds=
6955
6956if test -n "$RANLIB"; then
6957 case $host_os in
6958 openbsd*)
6959 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6960 ;;
6961 *)
6962 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6963 ;;
6964 esac
6965 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
ce2cded5 6966fi
7357c5b6 6967
3725885a
RW
6968case $host_os in
6969 darwin*)
6970 lock_old_archive_extraction=yes ;;
6971 *)
6972 lock_old_archive_extraction=no ;;
6973esac
6974
6975
6976
6977
6978
6979
7357c5b6
AM
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013# If no C compiler was specified, use CC.
7014LTCC=${LTCC-"$CC"}
7015
7016# If no C compiler flags were specified, use CFLAGS.
7017LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7018
7019# Allow CC to be a program name with arguments.
7020compiler=$CC
7021
7022
7023# Check for command to grab the raw symbol name followed by C symbol from nm.
81ecdfbb
RW
7024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7025$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7026if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7027 $as_echo_n "(cached) " >&6
ce2cded5 7028else
d7040cdb 7029
7357c5b6
AM
7030# These are sane defaults that work on at least a few old systems.
7031# [They come from Ultrix. What could be older than Ultrix?!! ;)]
d7040cdb 7032
7357c5b6
AM
7033# Character class describing NM global symbol codes.
7034symcode='[BCDEGRST]'
7035
7036# Regexp to match symbols that can be accessed directly from C.
7037sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7038
7039# Define system-specific variables.
7040case $host_os in
7041aix*)
7042 symcode='[BCDT]'
7043 ;;
b214d478 7044cygwin* | mingw* | pw32* | cegcc*)
7357c5b6
AM
7045 symcode='[ABCDGISTW]'
7046 ;;
7047hpux*)
7048 if test "$host_cpu" = ia64; then
7049 symcode='[ABCDEGRST]'
ce2cded5 7050 fi
7357c5b6
AM
7051 ;;
7052irix* | nonstopux*)
7053 symcode='[BCDEGRST]'
7054 ;;
7055osf*)
7056 symcode='[BCDEGQRST]'
7057 ;;
7058solaris*)
7059 symcode='[BDRT]'
7060 ;;
7061sco3.2v5*)
7062 symcode='[DT]'
7063 ;;
7064sysv4.2uw2*)
7065 symcode='[DT]'
7066 ;;
7067sysv5* | sco5v6* | unixware* | OpenUNIX*)
7068 symcode='[ABDT]'
7069 ;;
7070sysv4)
7071 symcode='[DFNSTU]'
7072 ;;
7073esac
d7040cdb 7074
7357c5b6
AM
7075# If we're using GNU nm, then use its standard symbol codes.
7076case `$NM -V 2>&1` in
7077*GNU* | *'with BFD'*)
7078 symcode='[ABCDGIRSTW]' ;;
7079esac
d7040cdb 7080
7357c5b6
AM
7081# Transform an extracted symbol line into a proper C declaration.
7082# Some systems (esp. on ia64) link data and code symbols differently,
7083# so use this general approach.
7084lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7085
7086# Transform an extracted symbol line into symbol name and symbol address
7087lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
b214d478 7088lt_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
7089
7090# Handle CRLF in mingw tool chain
7091opt_cr=
7092case $build_os in
7093mingw*)
7094 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7095 ;;
7096esac
d7040cdb 7097
7357c5b6
AM
7098# Try without a prefix underscore, then with it.
7099for ac_symprfx in "" "_"; do
d7040cdb 7100
7357c5b6
AM
7101 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7102 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 7103
7357c5b6
AM
7104 # Write the raw and C identifiers.
7105 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7106 # Fake it for dumpbin and say T for any non-static function
7107 # and D for any global variable.
7108 # Also find C++ and __fastcall symbols from MSVC++,
7109 # which start with @ or ?.
7110 lt_cv_sys_global_symbol_pipe="$AWK '"\
7111" {last_section=section; section=\$ 3};"\
7112" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7113" \$ 0!~/External *\|/{next};"\
7114" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7115" {if(hide[section]) next};"\
7116" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7117" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7118" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7119" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7120" ' prfx=^$ac_symprfx"
7121 else
7122 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7123 fi
d7040cdb 7124
7357c5b6
AM
7125 # Check to see that the pipe works correctly.
7126 pipe_works=no
d7040cdb 7127
7357c5b6
AM
7128 rm -f conftest*
7129 cat > conftest.$ac_ext <<_LT_EOF
7130#ifdef __cplusplus
7131extern "C" {
7132#endif
7133char nm_test_var;
7134void nm_test_func(void);
7135void nm_test_func(void){}
7136#ifdef __cplusplus
20e95c23 7137}
7357c5b6
AM
7138#endif
7139int main(){nm_test_var='a';nm_test_func();return(0);}
7140_LT_EOF
7141
81ecdfbb 7142 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6 7143 (eval $ac_compile) 2>&5
20e95c23 7144 ac_status=$?
81ecdfbb
RW
7145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7146 test $ac_status = 0; }; then
7357c5b6
AM
7147 # Now try to grab the symbols.
7148 nlist=conftest.nm
3725885a
RW
7149 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7150 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
20e95c23 7151 ac_status=$?
81ecdfbb
RW
7152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7153 test $ac_status = 0; } && test -s "$nlist"; then
7357c5b6
AM
7154 # Try sorting and uniquifying the output.
7155 if sort "$nlist" | uniq > "$nlist"T; then
7156 mv -f "$nlist"T "$nlist"
7157 else
7158 rm -f "$nlist"T
7159 fi
d7040cdb 7160
7357c5b6
AM
7161 # Make sure that we snagged all the symbols we need.
7162 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7163 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7164 cat <<_LT_EOF > conftest.$ac_ext
7165#ifdef __cplusplus
7166extern "C" {
7167#endif
ce2cded5 7168
7357c5b6
AM
7169_LT_EOF
7170 # Now generate the symbol file.
7171 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
ce2cded5 7172
7357c5b6 7173 cat <<_LT_EOF >> conftest.$ac_ext
42ecbf5e 7174
7357c5b6
AM
7175/* The mapping between symbol names and symbols. */
7176const struct {
7177 const char *name;
7178 void *address;
7179}
7180lt__PROGRAM__LTX_preloaded_symbols[] =
7181{
7182 { "@PROGRAM@", (void *) 0 },
7183_LT_EOF
7184 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7185 cat <<\_LT_EOF >> conftest.$ac_ext
7186 {0, (void *) 0}
7187};
d7040cdb 7188
7357c5b6
AM
7189/* This works around a problem in FreeBSD linker */
7190#ifdef FREEBSD_WORKAROUND
7191static const void *lt_preloaded_setup() {
7192 return lt__PROGRAM__LTX_preloaded_symbols;
7193}
ce2cded5 7194#endif
42ecbf5e 7195
7357c5b6 7196#ifdef __cplusplus
ce2cded5 7197}
7357c5b6
AM
7198#endif
7199_LT_EOF
7200 # Now try linking the two files.
7201 mv conftest.$ac_objext conftstm.$ac_objext
7202 lt_save_LIBS="$LIBS"
7203 lt_save_CFLAGS="$CFLAGS"
7204 LIBS="conftstm.$ac_objext"
7205 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
81ecdfbb 7206 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5
L
7207 (eval $ac_link) 2>&5
7208 ac_status=$?
81ecdfbb
RW
7209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7210 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7357c5b6
AM
7211 pipe_works=yes
7212 fi
7213 LIBS="$lt_save_LIBS"
7214 CFLAGS="$lt_save_CFLAGS"
7215 else
7216 echo "cannot find nm_test_func in $nlist" >&5
7217 fi
7218 else
7219 echo "cannot find nm_test_var in $nlist" >&5
7220 fi
7221 else
7222 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7223 fi
7224 else
7225 echo "$progname: failed program was:" >&5
7226 cat conftest.$ac_ext >&5
7227 fi
b214d478 7228 rm -rf conftest* conftst*
7357c5b6
AM
7229
7230 # Do not use the global_symbol_pipe unless it works.
7231 if test "$pipe_works" = yes; then
7232 break
7233 else
7234 lt_cv_sys_global_symbol_pipe=
7235 fi
7236done
42ecbf5e 7237
ce2cded5 7238fi
7357c5b6
AM
7239
7240if test -z "$lt_cv_sys_global_symbol_pipe"; then
7241 lt_cv_sys_global_symbol_to_cdecl=
ce2cded5 7242fi
7357c5b6 7243if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
81ecdfbb
RW
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7245$as_echo "failed" >&6; }
7357c5b6 7246else
81ecdfbb
RW
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7248$as_echo "ok" >&6; }
ce2cded5 7249fi
e5a52504 7250
d7040cdb 7251
e5a52504 7252
d7040cdb 7253
d7040cdb 7254
d7040cdb 7255
d7040cdb 7256
d7040cdb 7257
d7040cdb 7258
d7040cdb 7259
d7040cdb 7260
d7040cdb 7261
7357c5b6
AM
7262
7263
7264
b214d478
SE
7265
7266
7267
7268
7269
7357c5b6
AM
7270
7271
81ecdfbb
RW
7272# Check whether --enable-libtool-lock was given.
7273if test "${enable_libtool_lock+set}" = set; then :
7274 enableval=$enable_libtool_lock;
7275fi
7357c5b6 7276
7357c5b6
AM
7277test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7278
7279# Some flags need to be propagated to the compiler or linker for good
7280# libtool support.
7281case $host in
7282ia64-*-hpux*)
7283 # Find out which ABI we are using.
7284 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7285 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7286 (eval $ac_compile) 2>&5
7287 ac_status=$?
81ecdfbb
RW
7288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7289 test $ac_status = 0; }; then
7357c5b6
AM
7290 case `/usr/bin/file conftest.$ac_objext` in
7291 *ELF-32*)
7292 HPUX_IA64_MODE="32"
7293 ;;
7294 *ELF-64*)
7295 HPUX_IA64_MODE="64"
7296 ;;
7297 esac
7298 fi
7299 rm -rf conftest*
7300 ;;
7301*-*-irix6*)
7302 # Find out which ABI we are using.
3725885a 7303 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
81ecdfbb 7304 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7305 (eval $ac_compile) 2>&5
7306 ac_status=$?
81ecdfbb
RW
7307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7308 test $ac_status = 0; }; then
7357c5b6
AM
7309 if test "$lt_cv_prog_gnu_ld" = yes; then
7310 case `/usr/bin/file conftest.$ac_objext` in
7311 *32-bit*)
7312 LD="${LD-ld} -melf32bsmip"
7313 ;;
7314 *N32*)
7315 LD="${LD-ld} -melf32bmipn32"
7316 ;;
7317 *64-bit*)
7318 LD="${LD-ld} -melf64bmip"
7319 ;;
7320 esac
7321 else
7322 case `/usr/bin/file conftest.$ac_objext` in
7323 *32-bit*)
7324 LD="${LD-ld} -32"
7325 ;;
7326 *N32*)
7327 LD="${LD-ld} -n32"
7328 ;;
7329 *64-bit*)
7330 LD="${LD-ld} -64"
7331 ;;
7332 esac
7333 fi
7334 fi
7335 rm -rf conftest*
7336 ;;
7337
7338x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7339s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7340 # Find out which ABI we are using.
7341 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7342 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7343 (eval $ac_compile) 2>&5
7344 ac_status=$?
81ecdfbb
RW
7345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7346 test $ac_status = 0; }; then
7357c5b6
AM
7347 case `/usr/bin/file conftest.o` in
7348 *32-bit*)
7349 case $host in
7350 x86_64-*kfreebsd*-gnu)
7351 LD="${LD-ld} -m elf_i386_fbsd"
7352 ;;
7353 x86_64-*linux*)
7354 LD="${LD-ld} -m elf_i386"
7355 ;;
7356 ppc64-*linux*|powerpc64-*linux*)
7357 LD="${LD-ld} -m elf32ppclinux"
7358 ;;
7359 s390x-*linux*)
7360 LD="${LD-ld} -m elf_s390"
7361 ;;
7362 sparc64-*linux*)
7363 LD="${LD-ld} -m elf32_sparc"
7364 ;;
7365 esac
7366 ;;
7367 *64-bit*)
7368 case $host in
7369 x86_64-*kfreebsd*-gnu)
7370 LD="${LD-ld} -m elf_x86_64_fbsd"
7371 ;;
7372 x86_64-*linux*)
7373 LD="${LD-ld} -m elf_x86_64"
7374 ;;
7375 ppc*-*linux*|powerpc*-*linux*)
7376 LD="${LD-ld} -m elf64ppc"
7377 ;;
7378 s390*-*linux*|s390*-*tpf*)
7379 LD="${LD-ld} -m elf64_s390"
7380 ;;
7381 sparc*-*linux*)
7382 LD="${LD-ld} -m elf64_sparc"
7383 ;;
7384 esac
7385 ;;
7386 esac
7387 fi
7388 rm -rf conftest*
7389 ;;
7390
7391*-*-sco3.2v5*)
7392 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7393 SAVE_CFLAGS="$CFLAGS"
7394 CFLAGS="$CFLAGS -belf"
81ecdfbb
RW
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7396$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7397if test "${lt_cv_cc_needs_belf+set}" = set; then :
7398 $as_echo_n "(cached) " >&6
ce2cded5 7399else
7357c5b6
AM
7400 ac_ext=c
7401ac_cpp='$CPP $CPPFLAGS'
7402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7404ac_compiler_gnu=$ac_cv_c_compiler_gnu
7405
81ecdfbb 7406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 7407/* end confdefs.h. */
d7040cdb 7408
7357c5b6
AM
7409int
7410main ()
7411{
7412
7413 ;
7414 return 0;
7415}
ce2cded5 7416_ACEOF
81ecdfbb 7417if ac_fn_c_try_link "$LINENO"; then :
7357c5b6 7418 lt_cv_cc_needs_belf=yes
ce2cded5 7419else
81ecdfbb 7420 lt_cv_cc_needs_belf=no
ce2cded5 7421fi
81ecdfbb
RW
7422rm -f core conftest.err conftest.$ac_objext \
7423 conftest$ac_exeext conftest.$ac_ext
7357c5b6
AM
7424 ac_ext=c
7425ac_cpp='$CPP $CPPFLAGS'
7426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7428ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 7429
b214d478 7430fi
81ecdfbb
RW
7431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7432$as_echo "$lt_cv_cc_needs_belf" >&6; }
b214d478
SE
7433 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7434 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7435 CFLAGS="$SAVE_CFLAGS"
7436 fi
7437 ;;
7438sparc*-*solaris*)
7439 # Find out which ABI we are using.
7440 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7441 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
b214d478
SE
7442 (eval $ac_compile) 2>&5
7443 ac_status=$?
81ecdfbb
RW
7444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7445 test $ac_status = 0; }; then
b214d478
SE
7446 case `/usr/bin/file conftest.o` in
7447 *64-bit*)
7448 case $lt_cv_prog_gnu_ld in
7449 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7450 *)
7451 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7452 LD="${LD-ld} -64"
7453 fi
7454 ;;
7455 esac
7456 ;;
7457 esac
7458 fi
7459 rm -rf conftest*
7460 ;;
7461esac
7462
7463need_locks="$enable_libtool_lock"
7464
7465
7466 case $host_os in
7467 rhapsody* | darwin*)
7468 if test -n "$ac_tool_prefix"; then
7469 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7470set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
81ecdfbb
RW
7471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7472$as_echo_n "checking for $ac_word... " >&6; }
7473if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7474 $as_echo_n "(cached) " >&6
b214d478
SE
7475else
7476 if test -n "$DSYMUTIL"; then
7477 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7478else
7479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7480for as_dir in $PATH
7481do
7482 IFS=$as_save_IFS
7483 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7484 for ac_exec_ext in '' $ac_executable_extensions; do
7485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7486 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
81ecdfbb 7487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7488 break 2
7489 fi
7490done
81ecdfbb
RW
7491 done
7492IFS=$as_save_IFS
b214d478
SE
7493
7494fi
7495fi
7496DSYMUTIL=$ac_cv_prog_DSYMUTIL
7497if test -n "$DSYMUTIL"; then
81ecdfbb
RW
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7499$as_echo "$DSYMUTIL" >&6; }
b214d478 7500else
81ecdfbb
RW
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7502$as_echo "no" >&6; }
b214d478
SE
7503fi
7504
81ecdfbb 7505
b214d478
SE
7506fi
7507if test -z "$ac_cv_prog_DSYMUTIL"; then
7508 ac_ct_DSYMUTIL=$DSYMUTIL
7509 # Extract the first word of "dsymutil", so it can be a program name with args.
7510set dummy dsymutil; ac_word=$2
81ecdfbb
RW
7511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7512$as_echo_n "checking for $ac_word... " >&6; }
7513if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7514 $as_echo_n "(cached) " >&6
b214d478
SE
7515else
7516 if test -n "$ac_ct_DSYMUTIL"; then
7517 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7518else
7519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7520for as_dir in $PATH
7521do
7522 IFS=$as_save_IFS
7523 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7524 for ac_exec_ext in '' $ac_executable_extensions; do
7525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7526 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
81ecdfbb 7527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7528 break 2
7529 fi
7530done
81ecdfbb
RW
7531 done
7532IFS=$as_save_IFS
b214d478 7533
b214d478
SE
7534fi
7535fi
7536ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7537if test -n "$ac_ct_DSYMUTIL"; then
81ecdfbb
RW
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7539$as_echo "$ac_ct_DSYMUTIL" >&6; }
b214d478 7540else
81ecdfbb
RW
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7542$as_echo "no" >&6; }
b214d478
SE
7543fi
7544
81ecdfbb
RW
7545 if test "x$ac_ct_DSYMUTIL" = x; then
7546 DSYMUTIL=":"
7547 else
7548 case $cross_compiling:$ac_tool_warned in
7549yes:)
7550{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7551$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7552ac_tool_warned=yes ;;
7553esac
7554 DSYMUTIL=$ac_ct_DSYMUTIL
7555 fi
b214d478
SE
7556else
7557 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7558fi
7559
7560 if test -n "$ac_tool_prefix"; then
7561 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7562set dummy ${ac_tool_prefix}nmedit; ac_word=$2
81ecdfbb
RW
7563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7564$as_echo_n "checking for $ac_word... " >&6; }
7565if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7566 $as_echo_n "(cached) " >&6
b214d478
SE
7567else
7568 if test -n "$NMEDIT"; then
7569 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7570else
7571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7572for as_dir in $PATH
7573do
7574 IFS=$as_save_IFS
7575 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7576 for ac_exec_ext in '' $ac_executable_extensions; do
7577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7578 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
81ecdfbb 7579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7580 break 2
7581 fi
7582done
81ecdfbb
RW
7583 done
7584IFS=$as_save_IFS
b214d478
SE
7585
7586fi
7587fi
7588NMEDIT=$ac_cv_prog_NMEDIT
7589if test -n "$NMEDIT"; then
81ecdfbb
RW
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7591$as_echo "$NMEDIT" >&6; }
b214d478 7592else
81ecdfbb
RW
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7594$as_echo "no" >&6; }
b214d478
SE
7595fi
7596
81ecdfbb 7597
b214d478
SE
7598fi
7599if test -z "$ac_cv_prog_NMEDIT"; then
7600 ac_ct_NMEDIT=$NMEDIT
7601 # Extract the first word of "nmedit", so it can be a program name with args.
7602set dummy nmedit; ac_word=$2
81ecdfbb
RW
7603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7604$as_echo_n "checking for $ac_word... " >&6; }
7605if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7606 $as_echo_n "(cached) " >&6
b214d478
SE
7607else
7608 if test -n "$ac_ct_NMEDIT"; then
7609 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7610else
7611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7612for as_dir in $PATH
7613do
7614 IFS=$as_save_IFS
7615 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7616 for ac_exec_ext in '' $ac_executable_extensions; do
7617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7618 ac_cv_prog_ac_ct_NMEDIT="nmedit"
81ecdfbb 7619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7620 break 2
7621 fi
7622done
81ecdfbb
RW
7623 done
7624IFS=$as_save_IFS
b214d478 7625
b214d478
SE
7626fi
7627fi
7628ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7629if test -n "$ac_ct_NMEDIT"; then
81ecdfbb
RW
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7631$as_echo "$ac_ct_NMEDIT" >&6; }
b214d478 7632else
81ecdfbb
RW
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7634$as_echo "no" >&6; }
b214d478
SE
7635fi
7636
81ecdfbb
RW
7637 if test "x$ac_ct_NMEDIT" = x; then
7638 NMEDIT=":"
7639 else
7640 case $cross_compiling:$ac_tool_warned in
7641yes:)
7642{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7643$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7644ac_tool_warned=yes ;;
7645esac
7646 NMEDIT=$ac_ct_NMEDIT
7647 fi
b214d478
SE
7648else
7649 NMEDIT="$ac_cv_prog_NMEDIT"
7650fi
7651
7652 if test -n "$ac_tool_prefix"; then
7653 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7654set dummy ${ac_tool_prefix}lipo; ac_word=$2
81ecdfbb
RW
7655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7656$as_echo_n "checking for $ac_word... " >&6; }
7657if test "${ac_cv_prog_LIPO+set}" = set; then :
7658 $as_echo_n "(cached) " >&6
b214d478
SE
7659else
7660 if test -n "$LIPO"; then
7661 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7662else
7663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7664for as_dir in $PATH
7665do
7666 IFS=$as_save_IFS
7667 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7668 for ac_exec_ext in '' $ac_executable_extensions; do
7669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7670 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
81ecdfbb 7671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7672 break 2
7673 fi
7674done
81ecdfbb
RW
7675 done
7676IFS=$as_save_IFS
b214d478
SE
7677
7678fi
7679fi
7680LIPO=$ac_cv_prog_LIPO
7681if test -n "$LIPO"; then
81ecdfbb
RW
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7683$as_echo "$LIPO" >&6; }
b214d478 7684else
81ecdfbb
RW
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7686$as_echo "no" >&6; }
b214d478
SE
7687fi
7688
81ecdfbb 7689
b214d478
SE
7690fi
7691if test -z "$ac_cv_prog_LIPO"; then
7692 ac_ct_LIPO=$LIPO
7693 # Extract the first word of "lipo", so it can be a program name with args.
7694set dummy lipo; ac_word=$2
81ecdfbb
RW
7695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7696$as_echo_n "checking for $ac_word... " >&6; }
7697if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7698 $as_echo_n "(cached) " >&6
b214d478
SE
7699else
7700 if test -n "$ac_ct_LIPO"; then
7701 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7702else
7703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7704for as_dir in $PATH
7705do
7706 IFS=$as_save_IFS
7707 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7708 for ac_exec_ext in '' $ac_executable_extensions; do
7709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7710 ac_cv_prog_ac_ct_LIPO="lipo"
81ecdfbb 7711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7712 break 2
7713 fi
7714done
81ecdfbb
RW
7715 done
7716IFS=$as_save_IFS
b214d478 7717
b214d478
SE
7718fi
7719fi
7720ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7721if test -n "$ac_ct_LIPO"; then
81ecdfbb
RW
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7723$as_echo "$ac_ct_LIPO" >&6; }
b214d478 7724else
81ecdfbb
RW
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7726$as_echo "no" >&6; }
b214d478
SE
7727fi
7728
81ecdfbb
RW
7729 if test "x$ac_ct_LIPO" = x; then
7730 LIPO=":"
7731 else
7732 case $cross_compiling:$ac_tool_warned in
7733yes:)
7734{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7735$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7736ac_tool_warned=yes ;;
7737esac
7738 LIPO=$ac_ct_LIPO
7739 fi
b214d478
SE
7740else
7741 LIPO="$ac_cv_prog_LIPO"
7742fi
7743
7744 if test -n "$ac_tool_prefix"; then
7745 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7746set dummy ${ac_tool_prefix}otool; ac_word=$2
81ecdfbb
RW
7747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7748$as_echo_n "checking for $ac_word... " >&6; }
7749if test "${ac_cv_prog_OTOOL+set}" = set; then :
7750 $as_echo_n "(cached) " >&6
b214d478
SE
7751else
7752 if test -n "$OTOOL"; then
7753 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7754else
7755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7756for as_dir in $PATH
7757do
7758 IFS=$as_save_IFS
7759 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7760 for ac_exec_ext in '' $ac_executable_extensions; do
7761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7762 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
81ecdfbb 7763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7764 break 2
7765 fi
7766done
81ecdfbb
RW
7767 done
7768IFS=$as_save_IFS
b214d478
SE
7769
7770fi
7771fi
7772OTOOL=$ac_cv_prog_OTOOL
7773if test -n "$OTOOL"; then
81ecdfbb
RW
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7775$as_echo "$OTOOL" >&6; }
b214d478 7776else
81ecdfbb
RW
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7778$as_echo "no" >&6; }
b214d478
SE
7779fi
7780
81ecdfbb 7781
b214d478
SE
7782fi
7783if test -z "$ac_cv_prog_OTOOL"; then
7784 ac_ct_OTOOL=$OTOOL
7785 # Extract the first word of "otool", so it can be a program name with args.
7786set dummy otool; ac_word=$2
81ecdfbb
RW
7787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7788$as_echo_n "checking for $ac_word... " >&6; }
7789if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7790 $as_echo_n "(cached) " >&6
b214d478
SE
7791else
7792 if test -n "$ac_ct_OTOOL"; then
7793 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7794else
7795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7796for as_dir in $PATH
7797do
7798 IFS=$as_save_IFS
7799 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7800 for ac_exec_ext in '' $ac_executable_extensions; do
7801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7802 ac_cv_prog_ac_ct_OTOOL="otool"
81ecdfbb 7803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7804 break 2
7805 fi
7806done
81ecdfbb
RW
7807 done
7808IFS=$as_save_IFS
b214d478 7809
b214d478
SE
7810fi
7811fi
7812ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7813if test -n "$ac_ct_OTOOL"; then
81ecdfbb
RW
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7815$as_echo "$ac_ct_OTOOL" >&6; }
b214d478 7816else
81ecdfbb
RW
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7818$as_echo "no" >&6; }
b214d478
SE
7819fi
7820
81ecdfbb
RW
7821 if test "x$ac_ct_OTOOL" = x; then
7822 OTOOL=":"
7823 else
7824 case $cross_compiling:$ac_tool_warned in
7825yes:)
7826{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7827$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7828ac_tool_warned=yes ;;
7829esac
7830 OTOOL=$ac_ct_OTOOL
7831 fi
b214d478
SE
7832else
7833 OTOOL="$ac_cv_prog_OTOOL"
7834fi
7835
7836 if test -n "$ac_tool_prefix"; then
7837 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7838set dummy ${ac_tool_prefix}otool64; ac_word=$2
81ecdfbb
RW
7839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7840$as_echo_n "checking for $ac_word... " >&6; }
7841if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7842 $as_echo_n "(cached) " >&6
b214d478
SE
7843else
7844 if test -n "$OTOOL64"; then
7845 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7846else
7847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7848for as_dir in $PATH
7849do
7850 IFS=$as_save_IFS
7851 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7852 for ac_exec_ext in '' $ac_executable_extensions; do
7853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7854 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
81ecdfbb 7855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7856 break 2
7857 fi
7858done
81ecdfbb
RW
7859 done
7860IFS=$as_save_IFS
b214d478
SE
7861
7862fi
7863fi
7864OTOOL64=$ac_cv_prog_OTOOL64
7865if test -n "$OTOOL64"; then
81ecdfbb
RW
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7867$as_echo "$OTOOL64" >&6; }
b214d478 7868else
81ecdfbb
RW
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7870$as_echo "no" >&6; }
b214d478
SE
7871fi
7872
81ecdfbb 7873
b214d478
SE
7874fi
7875if test -z "$ac_cv_prog_OTOOL64"; then
7876 ac_ct_OTOOL64=$OTOOL64
7877 # Extract the first word of "otool64", so it can be a program name with args.
7878set dummy otool64; ac_word=$2
81ecdfbb
RW
7879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7880$as_echo_n "checking for $ac_word... " >&6; }
7881if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7882 $as_echo_n "(cached) " >&6
b214d478
SE
7883else
7884 if test -n "$ac_ct_OTOOL64"; then
7885 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7886else
7887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7888for as_dir in $PATH
7889do
7890 IFS=$as_save_IFS
7891 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7892 for ac_exec_ext in '' $ac_executable_extensions; do
7893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7894 ac_cv_prog_ac_ct_OTOOL64="otool64"
81ecdfbb 7895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7896 break 2
7897 fi
7898done
81ecdfbb
RW
7899 done
7900IFS=$as_save_IFS
b214d478 7901
b214d478
SE
7902fi
7903fi
7904ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7905if test -n "$ac_ct_OTOOL64"; then
81ecdfbb
RW
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7907$as_echo "$ac_ct_OTOOL64" >&6; }
b214d478 7908else
81ecdfbb
RW
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7910$as_echo "no" >&6; }
b214d478
SE
7911fi
7912
81ecdfbb
RW
7913 if test "x$ac_ct_OTOOL64" = x; then
7914 OTOOL64=":"
7915 else
7916 case $cross_compiling:$ac_tool_warned in
7917yes:)
7918{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7919$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7920ac_tool_warned=yes ;;
7921esac
7922 OTOOL64=$ac_ct_OTOOL64
7923 fi
b214d478
SE
7924else
7925 OTOOL64="$ac_cv_prog_OTOOL64"
7926fi
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
81ecdfbb
RW
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7955$as_echo_n "checking for -single_module linker flag... " >&6; }
7956if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7957 $as_echo_n "(cached) " >&6
b214d478
SE
7958else
7959 lt_cv_apple_cc_single_mod=no
7960 if test -z "${LT_MULTI_MODULE}"; then
7961 # By default we will add the -single_module flag. You can override
7962 # by either setting the environment variable LT_MULTI_MODULE
7963 # non-empty at configure time, or by adding -multi_module to the
7964 # link flags.
7965 rm -rf libconftest.dylib*
7966 echo "int foo(void){return 1;}" > conftest.c
7967 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7968-dynamiclib -Wl,-single_module conftest.c" >&5
7969 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7970 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7971 _lt_result=$?
7972 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7973 lt_cv_apple_cc_single_mod=yes
7974 else
7975 cat conftest.err >&5
7976 fi
7977 rm -rf libconftest.dylib*
7978 rm -f conftest.*
7979 fi
7980fi
81ecdfbb
RW
7981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7982$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7984$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7985if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7986 $as_echo_n "(cached) " >&6
b214d478
SE
7987else
7988 lt_cv_ld_exported_symbols_list=no
7989 save_LDFLAGS=$LDFLAGS
7990 echo "_main" > conftest.sym
7991 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
81ecdfbb 7992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b214d478
SE
7993/* end confdefs.h. */
7994
7995int
7996main ()
7997{
7998
7999 ;
8000 return 0;
8001}
8002_ACEOF
81ecdfbb 8003if ac_fn_c_try_link "$LINENO"; then :
b214d478
SE
8004 lt_cv_ld_exported_symbols_list=yes
8005else
81ecdfbb 8006 lt_cv_ld_exported_symbols_list=no
b214d478 8007fi
81ecdfbb
RW
8008rm -f core conftest.err conftest.$ac_objext \
8009 conftest$ac_exeext conftest.$ac_ext
b214d478
SE
8010 LDFLAGS="$save_LDFLAGS"
8011
8012fi
81ecdfbb
RW
8013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8014$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
3725885a
RW
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8016$as_echo_n "checking for -force_load linker flag... " >&6; }
8017if test "${lt_cv_ld_force_load+set}" = set; then :
8018 $as_echo_n "(cached) " >&6
8019else
8020 lt_cv_ld_force_load=no
8021 cat > conftest.c << _LT_EOF
8022int forced_loaded() { return 2;}
8023_LT_EOF
8024 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8025 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8026 echo "$AR cru libconftest.a conftest.o" >&5
8027 $AR cru libconftest.a conftest.o 2>&5
8028 cat > conftest.c << _LT_EOF
8029int main() { return 0;}
8030_LT_EOF
8031 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8032 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8033 _lt_result=$?
8034 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8035 lt_cv_ld_force_load=yes
8036 else
8037 cat conftest.err >&5
8038 fi
8039 rm -f conftest.err libconftest.a conftest conftest.c
8040 rm -rf conftest.dSYM
8041
8042fi
8043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8044$as_echo "$lt_cv_ld_force_load" >&6; }
b214d478
SE
8045 case $host_os in
8046 rhapsody* | darwin1.[012])
8047 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8048 darwin1.*)
8049 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8050 darwin*) # darwin 5.x on
8051 # if running on 10.5 or later, the deployment target defaults
8052 # to the OS version, if on x86, and 10.4, the deployment
8053 # target defaults to 10.4. Don't you love it?
8054 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8055 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8056 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8057 10.[012]*)
8058 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8059 10.*)
8060 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8061 esac
8062 ;;
8063 esac
8064 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8065 _lt_dar_single_mod='$single_module'
8066 fi
8067 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8068 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8069 else
8070 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8071 fi
3725885a 8072 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
b214d478
SE
8073 _lt_dsymutil='~$DSYMUTIL $lib || :'
8074 else
8075 _lt_dsymutil=
8076 fi
8077 ;;
8078 esac
8079
b214d478 8080for ac_header in dlfcn.h
81ecdfbb
RW
8081do :
8082 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8083"
8084if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
b214d478 8085 cat >>confdefs.h <<_ACEOF
81ecdfbb 8086#define HAVE_DLFCN_H 1
b214d478
SE
8087_ACEOF
8088
8089fi
8090
8091done
8092
8093
8094
3725885a
RW
8095
8096
b214d478
SE
8097# Set options
8098
8099
8100
8101 enable_dlopen=no
8102
8103
8104 enable_win32_dll=no
8105
8106
81ecdfbb
RW
8107 # Check whether --enable-shared was given.
8108if test "${enable_shared+set}" = set; then :
8109 enableval=$enable_shared; p=${PACKAGE-default}
b214d478
SE
8110 case $enableval in
8111 yes) enable_shared=yes ;;
8112 no) enable_shared=no ;;
8113 *)
8114 enable_shared=no
8115 # Look at the argument we got. We use all the common list separators.
8116 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8117 for pkg in $enableval; do
8118 IFS="$lt_save_ifs"
8119 if test "X$pkg" = "X$p"; then
8120 enable_shared=yes
8121 fi
8122 done
8123 IFS="$lt_save_ifs"
8124 ;;
8125 esac
8126else
8127 enable_shared=yes
81ecdfbb 8128fi
b214d478
SE
8129
8130
8131
8132
8133
8134
8135
8136
81ecdfbb
RW
8137
8138 # Check whether --enable-static was given.
8139if test "${enable_static+set}" = set; then :
8140 enableval=$enable_static; p=${PACKAGE-default}
b214d478
SE
8141 case $enableval in
8142 yes) enable_static=yes ;;
8143 no) enable_static=no ;;
8144 *)
8145 enable_static=no
8146 # Look at the argument we got. We use all the common list separators.
8147 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8148 for pkg in $enableval; do
8149 IFS="$lt_save_ifs"
8150 if test "X$pkg" = "X$p"; then
8151 enable_static=yes
8152 fi
8153 done
8154 IFS="$lt_save_ifs"
8155 ;;
8156 esac
8157else
8158 enable_static=yes
81ecdfbb 8159fi
b214d478
SE
8160
8161
8162
8163
8164
8165
8166
8167
8168
81ecdfbb
RW
8169
8170# Check whether --with-pic was given.
8171if test "${with_pic+set}" = set; then :
8172 withval=$with_pic; pic_mode="$withval"
b214d478
SE
8173else
8174 pic_mode=default
81ecdfbb
RW
8175fi
8176
b214d478
SE
8177
8178test -z "$pic_mode" && pic_mode=default
8179
8180
8181
8182
8183
8184
8185
81ecdfbb
RW
8186 # Check whether --enable-fast-install was given.
8187if test "${enable_fast_install+set}" = set; then :
8188 enableval=$enable_fast_install; p=${PACKAGE-default}
b214d478
SE
8189 case $enableval in
8190 yes) enable_fast_install=yes ;;
8191 no) enable_fast_install=no ;;
8192 *)
8193 enable_fast_install=no
8194 # Look at the argument we got. We use all the common list separators.
8195 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8196 for pkg in $enableval; do
8197 IFS="$lt_save_ifs"
8198 if test "X$pkg" = "X$p"; then
8199 enable_fast_install=yes
8200 fi
8201 done
8202 IFS="$lt_save_ifs"
7357c5b6
AM
8203 ;;
8204 esac
b214d478
SE
8205else
8206 enable_fast_install=yes
81ecdfbb
RW
8207fi
8208
ce2cded5 8209
ce2cded5
L
8210
8211
ce2cded5 8212
42ecbf5e 8213
d7040cdb 8214
d7040cdb 8215
d7040cdb 8216
d7040cdb 8217
d7040cdb 8218
ce2cded5
L
8219# This can be used to rebuild libtool when needed
8220LIBTOOL_DEPS="$ltmain"
d7040cdb 8221
ce2cded5
L
8222# Always use our own libtool.
8223LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d7040cdb 8224
d7040cdb 8225
d7040cdb 8226
d7040cdb 8227
d7040cdb 8228
d7040cdb 8229
d7040cdb 8230
d7040cdb 8231
d7040cdb 8232
d7040cdb 8233
d7040cdb 8234
d7040cdb 8235
d7040cdb 8236
d7040cdb 8237
d7040cdb 8238
d7040cdb 8239
d7040cdb
SE
8240
8241
8242
8243
8244
8245
8246
3725885a 8247
d7040cdb
SE
8248
8249
ce2cded5 8250test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
8251
8252
8253
8254
8255
8256
d7040cdb
SE
8257
8258
8259
8260
8261
8262
8263
8264
ce2cded5
L
8265if test -n "${ZSH_VERSION+set}" ; then
8266 setopt NO_GLOB_SUBST
8267fi
d7040cdb 8268
81ecdfbb
RW
8269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8270$as_echo_n "checking for objdir... " >&6; }
8271if test "${lt_cv_objdir+set}" = set; then :
8272 $as_echo_n "(cached) " >&6
ce2cded5
L
8273else
8274 rm -f .libs 2>/dev/null
8275mkdir .libs 2>/dev/null
8276if test -d .libs; then
8277 lt_cv_objdir=.libs
8278else
8279 # MS-DOS does not allow filenames that begin with a dot.
8280 lt_cv_objdir=_libs
8281fi
8282rmdir .libs 2>/dev/null
8283fi
81ecdfbb
RW
8284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8285$as_echo "$lt_cv_objdir" >&6; }
ce2cded5 8286objdir=$lt_cv_objdir
d7040cdb
SE
8287
8288
8289
8290
8291
ce2cded5
L
8292cat >>confdefs.h <<_ACEOF
8293#define LT_OBJDIR "$lt_cv_objdir/"
8294_ACEOF
d7040cdb
SE
8295
8296
8297
8298
ce2cded5
L
8299case $host_os in
8300aix3*)
8301 # AIX sometimes has problems with the GCC collect2 program. For some
8302 # reason, if we set the COLLECT_NAMES environment variable, the problems
8303 # vanish in a puff of smoke.
8304 if test "X${COLLECT_NAMES+set}" != Xset; then
8305 COLLECT_NAMES=
8306 export COLLECT_NAMES
8307 fi
8308 ;;
8309esac
d7040cdb 8310
ce2cded5
L
8311# Global variables:
8312ofile=libtool
8313can_build_shared=yes
d7040cdb 8314
ce2cded5
L
8315# All known linkers require a `.a' archive for static linking (except MSVC,
8316# which needs '.lib').
8317libext=a
d7040cdb 8318
ce2cded5 8319with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 8320
ce2cded5
L
8321old_CC="$CC"
8322old_CFLAGS="$CFLAGS"
d7040cdb 8323
ce2cded5
L
8324# Set sane defaults for various variables
8325test -z "$CC" && CC=cc
8326test -z "$LTCC" && LTCC=$CC
8327test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8328test -z "$LD" && LD=ld
8329test -z "$ac_objext" && ac_objext=o
d7040cdb 8330
ce2cded5
L
8331for cc_temp in $compiler""; do
8332 case $cc_temp in
8333 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8334 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8335 \-*) ;;
8336 *) break;;
8337 esac
8338done
3725885a 8339cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
d7040cdb
SE
8340
8341
ce2cded5
L
8342# Only perform the check for file, if the check method requires it
8343test -z "$MAGIC_CMD" && MAGIC_CMD=file
8344case $deplibs_check_method in
8345file_magic*)
8346 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
81ecdfbb
RW
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8348$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8349if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8350 $as_echo_n "(cached) " >&6
ce2cded5
L
8351else
8352 case $MAGIC_CMD in
8353[\\/*] | ?:[\\/]*)
8354 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8355 ;;
8356*)
8357 lt_save_MAGIC_CMD="$MAGIC_CMD"
8358 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8359 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8360 for ac_dir in $ac_dummy; do
8361 IFS="$lt_save_ifs"
8362 test -z "$ac_dir" && ac_dir=.
8363 if test -f $ac_dir/${ac_tool_prefix}file; then
8364 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8365 if test -n "$file_magic_test_file"; then
8366 case $deplibs_check_method in
8367 "file_magic "*)
8368 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8369 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8370 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8371 $EGREP "$file_magic_regex" > /dev/null; then
8372 :
8373 else
8374 cat <<_LT_EOF 1>&2
d7040cdb 8375
ce2cded5
L
8376*** Warning: the command libtool uses to detect shared libraries,
8377*** $file_magic_cmd, produces output that libtool cannot recognize.
8378*** The result is that libtool may fail to recognize shared libraries
8379*** as such. This will affect the creation of libtool libraries that
8380*** depend on shared libraries, but programs linked with such libtool
8381*** libraries will work regardless of this problem. Nevertheless, you
8382*** may want to report the problem to your system manager and/or to
8383*** bug-libtool@gnu.org
d7040cdb 8384
ce2cded5
L
8385_LT_EOF
8386 fi ;;
8387 esac
8388 fi
8389 break
8390 fi
8391 done
8392 IFS="$lt_save_ifs"
8393 MAGIC_CMD="$lt_save_MAGIC_CMD"
8394 ;;
8395esac
8396fi
d7040cdb 8397
ce2cded5
L
8398MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8399if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8401$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 8402else
81ecdfbb
RW
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8404$as_echo "no" >&6; }
ce2cded5 8405fi
d7040cdb
SE
8406
8407
8408
8409
8410
ce2cded5
L
8411if test -z "$lt_cv_path_MAGIC_CMD"; then
8412 if test -n "$ac_tool_prefix"; then
81ecdfbb
RW
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8414$as_echo_n "checking for file... " >&6; }
8415if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8416 $as_echo_n "(cached) " >&6
ce2cded5
L
8417else
8418 case $MAGIC_CMD in
8419[\\/*] | ?:[\\/]*)
8420 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8421 ;;
8422*)
8423 lt_save_MAGIC_CMD="$MAGIC_CMD"
8424 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8425 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8426 for ac_dir in $ac_dummy; do
8427 IFS="$lt_save_ifs"
8428 test -z "$ac_dir" && ac_dir=.
8429 if test -f $ac_dir/file; then
8430 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8431 if test -n "$file_magic_test_file"; then
8432 case $deplibs_check_method in
8433 "file_magic "*)
8434 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8435 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8436 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8437 $EGREP "$file_magic_regex" > /dev/null; then
8438 :
8439 else
8440 cat <<_LT_EOF 1>&2
d7040cdb 8441
ce2cded5
L
8442*** Warning: the command libtool uses to detect shared libraries,
8443*** $file_magic_cmd, produces output that libtool cannot recognize.
8444*** The result is that libtool may fail to recognize shared libraries
8445*** as such. This will affect the creation of libtool libraries that
8446*** depend on shared libraries, but programs linked with such libtool
8447*** libraries will work regardless of this problem. Nevertheless, you
8448*** may want to report the problem to your system manager and/or to
8449*** bug-libtool@gnu.org
d7040cdb 8450
ce2cded5
L
8451_LT_EOF
8452 fi ;;
8453 esac
8454 fi
8455 break
8456 fi
8457 done
8458 IFS="$lt_save_ifs"
8459 MAGIC_CMD="$lt_save_MAGIC_CMD"
8460 ;;
8461esac
8462fi
d7040cdb 8463
ce2cded5
L
8464MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8465if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8467$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 8468else
81ecdfbb
RW
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8470$as_echo "no" >&6; }
ce2cded5 8471fi
d7040cdb
SE
8472
8473
ce2cded5
L
8474 else
8475 MAGIC_CMD=:
8476 fi
8477fi
d7040cdb 8478
ce2cded5
L
8479 fi
8480 ;;
8481esac
d7040cdb 8482
ce2cded5 8483# Use C for the default configuration in the libtool script
d7040cdb 8484
ce2cded5
L
8485lt_save_CC="$CC"
8486ac_ext=c
8487ac_cpp='$CPP $CPPFLAGS'
8488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8490ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
8491
8492
ce2cded5
L
8493# Source file extension for C test sources.
8494ac_ext=c
d7040cdb 8495
ce2cded5
L
8496# Object file extension for compiled C test sources.
8497objext=o
8498objext=$objext
d7040cdb 8499
ce2cded5
L
8500# Code to be used in simple compile tests
8501lt_simple_compile_test_code="int some_variable = 0;"
d7040cdb 8502
ce2cded5
L
8503# Code to be used in simple link tests
8504lt_simple_link_test_code='int main(){return(0);}'
d7040cdb
SE
8505
8506
8507
8508
8509
8510
8511
ce2cded5
L
8512# If no C compiler was specified, use CC.
8513LTCC=${LTCC-"$CC"}
d7040cdb 8514
ce2cded5
L
8515# If no C compiler flags were specified, use CFLAGS.
8516LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d7040cdb 8517
ce2cded5
L
8518# Allow CC to be a program name with arguments.
8519compiler=$CC
d7040cdb 8520
ce2cded5
L
8521# Save the default compiler, since it gets overwritten when the other
8522# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8523compiler_DEFAULT=$CC
d7040cdb 8524
ce2cded5
L
8525# save warnings/boilerplate of simple test code
8526ac_outfile=conftest.$ac_objext
8527echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8528eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8529_lt_compiler_boilerplate=`cat conftest.err`
8530$RM conftest*
d7040cdb 8531
ce2cded5
L
8532ac_outfile=conftest.$ac_objext
8533echo "$lt_simple_link_test_code" >conftest.$ac_ext
8534eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8535_lt_linker_boilerplate=`cat conftest.err`
b214d478 8536$RM -r conftest*
d7040cdb
SE
8537
8538
ce2cded5
L
8539## CAVEAT EMPTOR:
8540## There is no encapsulation within the following macros, do not change
8541## the running order or otherwise move them around unless you know exactly
8542## what you are doing...
8543if test -n "$compiler"; then
d7040cdb 8544
ce2cded5 8545lt_prog_compiler_no_builtin_flag=
d7040cdb 8546
ce2cded5 8547if test "$GCC" = yes; then
3725885a
RW
8548 case $cc_basename in
8549 nvcc*)
8550 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8551 *)
8552 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8553 esac
d7040cdb 8554
81ecdfbb
RW
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8556$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8557if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8558 $as_echo_n "(cached) " >&6
ce2cded5
L
8559else
8560 lt_cv_prog_compiler_rtti_exceptions=no
8561 ac_outfile=conftest.$ac_objext
8562 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8563 lt_compiler_flag="-fno-rtti -fno-exceptions"
8564 # Insert the option either (1) after the last *FLAGS variable, or
8565 # (2) before a word containing "conftest.", or (3) at the end.
8566 # Note that $ac_compile itself does not contain backslashes and begins
8567 # with a dollar sign (not a hyphen), so the echo should work correctly.
8568 # The option is referenced via a variable to avoid confusing sed.
8569 lt_compile=`echo "$ac_compile" | $SED \
8570 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8571 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8572 -e 's:$: $lt_compiler_flag:'`
3725885a 8573 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8574 (eval "$lt_compile" 2>conftest.err)
8575 ac_status=$?
8576 cat conftest.err >&5
3725885a 8577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8578 if (exit $ac_status) && test -s "$ac_outfile"; then
8579 # The compiler can only warn and ignore the option if not recognized
8580 # So say no if there are warnings other than the usual output.
3725885a 8581 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
8582 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8583 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8584 lt_cv_prog_compiler_rtti_exceptions=yes
8585 fi
8586 fi
8587 $RM conftest*
d7040cdb 8588
ce2cded5 8589fi
81ecdfbb
RW
8590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8591$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d7040cdb 8592
ce2cded5
L
8593if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8594 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8595else
8596 :
8597fi
d7040cdb 8598
ce2cded5 8599fi
d7040cdb
SE
8600
8601
8602
8603
8604
8605
ce2cded5
L
8606 lt_prog_compiler_wl=
8607lt_prog_compiler_pic=
8608lt_prog_compiler_static=
d7040cdb 8609
81ecdfbb
RW
8610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8611$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
d7040cdb 8612
ce2cded5
L
8613 if test "$GCC" = yes; then
8614 lt_prog_compiler_wl='-Wl,'
8615 lt_prog_compiler_static='-static'
d7040cdb 8616
ce2cded5
L
8617 case $host_os in
8618 aix*)
8619 # All AIX code is PIC.
8620 if test "$host_cpu" = ia64; then
8621 # AIX 5 now supports IA64 processor
8622 lt_prog_compiler_static='-Bstatic'
8623 fi
8624 ;;
d7040cdb 8625
ce2cded5 8626 amigaos*)
b214d478
SE
8627 case $host_cpu in
8628 powerpc)
8629 # see comment about AmigaOS4 .so support
8630 lt_prog_compiler_pic='-fPIC'
8631 ;;
8632 m68k)
8633 # FIXME: we need at least 68020 code to build shared libraries, but
8634 # adding the `-m68020' flag to GCC prevents building anything better,
8635 # like `-m68040'.
8636 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8637 ;;
8638 esac
ce2cded5 8639 ;;
d7040cdb 8640
ce2cded5
L
8641 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8642 # PIC is the default for these OSes.
8643 ;;
d7040cdb 8644
b214d478 8645 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8646 # This hack is so that the source file can tell whether it is being
8647 # built for inclusion in a dll (and should export symbols for example).
8648 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8649 # (--disable-auto-import) libraries
8650 lt_prog_compiler_pic='-DDLL_EXPORT'
8651 ;;
d7040cdb 8652
ce2cded5
L
8653 darwin* | rhapsody*)
8654 # PIC is the default on this platform
8655 # Common symbols not allowed in MH_DYLIB files
8656 lt_prog_compiler_pic='-fno-common'
8657 ;;
d7040cdb 8658
3725885a
RW
8659 haiku*)
8660 # PIC is the default for Haiku.
8661 # The "-static" flag exists, but is broken.
8662 lt_prog_compiler_static=
8663 ;;
8664
ce2cded5 8665 hpux*)
b214d478
SE
8666 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8667 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8668 # sets the default TLS model and affects inlining.
ce2cded5 8669 case $host_cpu in
b214d478 8670 hppa*64*)
ce2cded5
L
8671 # +Z the default
8672 ;;
8673 *)
8674 lt_prog_compiler_pic='-fPIC'
8675 ;;
8676 esac
8677 ;;
d7040cdb 8678
ce2cded5
L
8679 interix[3-9]*)
8680 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8681 # Instead, we relocate shared libraries at runtime.
8682 ;;
d7040cdb 8683
ce2cded5
L
8684 msdosdjgpp*)
8685 # Just because we use GCC doesn't mean we suddenly get shared libraries
8686 # on systems that don't support them.
8687 lt_prog_compiler_can_build_shared=no
8688 enable_shared=no
8689 ;;
d7040cdb 8690
ce2cded5
L
8691 *nto* | *qnx*)
8692 # QNX uses GNU C++, but need to define -shared option too, otherwise
8693 # it will coredump.
8694 lt_prog_compiler_pic='-fPIC -shared'
8695 ;;
d7040cdb 8696
ce2cded5
L
8697 sysv4*MP*)
8698 if test -d /usr/nec; then
8699 lt_prog_compiler_pic=-Kconform_pic
8700 fi
8701 ;;
d7040cdb 8702
ce2cded5
L
8703 *)
8704 lt_prog_compiler_pic='-fPIC'
8705 ;;
8706 esac
3725885a
RW
8707
8708 case $cc_basename in
8709 nvcc*) # Cuda Compiler Driver 2.2
8710 lt_prog_compiler_wl='-Xlinker '
8711 lt_prog_compiler_pic='-Xcompiler -fPIC'
8712 ;;
8713 esac
ce2cded5
L
8714 else
8715 # PORTME Check for flag to pass linker flags through the system compiler.
8716 case $host_os in
8717 aix*)
8718 lt_prog_compiler_wl='-Wl,'
8719 if test "$host_cpu" = ia64; then
8720 # AIX 5 now supports IA64 processor
8721 lt_prog_compiler_static='-Bstatic'
8722 else
8723 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8724 fi
8725 ;;
d7040cdb 8726
b214d478 8727 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8728 # This hack is so that the source file can tell whether it is being
8729 # built for inclusion in a dll (and should export symbols for example).
8730 lt_prog_compiler_pic='-DDLL_EXPORT'
8731 ;;
d7040cdb 8732
ce2cded5
L
8733 hpux9* | hpux10* | hpux11*)
8734 lt_prog_compiler_wl='-Wl,'
8735 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8736 # not for PA HP-UX.
8737 case $host_cpu in
8738 hppa*64*|ia64*)
8739 # +Z the default
8740 ;;
8741 *)
8742 lt_prog_compiler_pic='+Z'
8743 ;;
8744 esac
8745 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8746 lt_prog_compiler_static='${wl}-a ${wl}archive'
8747 ;;
d7040cdb 8748
ce2cded5
L
8749 irix5* | irix6* | nonstopux*)
8750 lt_prog_compiler_wl='-Wl,'
8751 # PIC (with -KPIC) is the default.
8752 lt_prog_compiler_static='-non_shared'
8753 ;;
d7040cdb 8754
58e24671 8755 linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5 8756 case $cc_basename in
b214d478
SE
8757 # old Intel for x86_64 which still supported -KPIC.
8758 ecc*)
ce2cded5
L
8759 lt_prog_compiler_wl='-Wl,'
8760 lt_prog_compiler_pic='-KPIC'
8761 lt_prog_compiler_static='-static'
8762 ;;
b214d478
SE
8763 # icc used to be incompatible with GCC.
8764 # ICC 10 doesn't accept -KPIC any more.
8765 icc* | ifort*)
8766 lt_prog_compiler_wl='-Wl,'
8767 lt_prog_compiler_pic='-fPIC'
8768 lt_prog_compiler_static='-static'
8769 ;;
8770 # Lahey Fortran 8.1.
8771 lf95*)
8772 lt_prog_compiler_wl='-Wl,'
8773 lt_prog_compiler_pic='--shared'
8774 lt_prog_compiler_static='--static'
8775 ;;
3725885a 8776 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
ce2cded5
L
8777 # Portland Group compilers (*not* the Pentium gcc compiler,
8778 # which looks to be a dead project)
8779 lt_prog_compiler_wl='-Wl,'
8780 lt_prog_compiler_pic='-fpic'
8781 lt_prog_compiler_static='-Bstatic'
8782 ;;
8783 ccc*)
8784 lt_prog_compiler_wl='-Wl,'
8785 # All Alpha code is PIC.
8786 lt_prog_compiler_static='-non_shared'
8787 ;;
3725885a
RW
8788 xl* | bgxl* | bgf* | mpixl*)
8789 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
b214d478
SE
8790 lt_prog_compiler_wl='-Wl,'
8791 lt_prog_compiler_pic='-qpic'
8792 lt_prog_compiler_static='-qstaticlink'
8793 ;;
ce2cded5
L
8794 *)
8795 case `$CC -V 2>&1 | sed 5q` in
3725885a
RW
8796 *Sun\ F* | *Sun*Fortran*)
8797 # Sun Fortran 8.3 passes all unrecognized flags to the linker
ce2cded5
L
8798 lt_prog_compiler_pic='-KPIC'
8799 lt_prog_compiler_static='-Bstatic'
3725885a 8800 lt_prog_compiler_wl=''
ce2cded5 8801 ;;
3725885a
RW
8802 *Sun\ C*)
8803 # Sun C 5.9
ce2cded5
L
8804 lt_prog_compiler_pic='-KPIC'
8805 lt_prog_compiler_static='-Bstatic'
3725885a 8806 lt_prog_compiler_wl='-Wl,'
ce2cded5
L
8807 ;;
8808 esac
8809 ;;
8810 esac
8811 ;;
d7040cdb 8812
ce2cded5
L
8813 newsos6)
8814 lt_prog_compiler_pic='-KPIC'
8815 lt_prog_compiler_static='-Bstatic'
8816 ;;
d7040cdb 8817
ce2cded5
L
8818 *nto* | *qnx*)
8819 # QNX uses GNU C++, but need to define -shared option too, otherwise
8820 # it will coredump.
8821 lt_prog_compiler_pic='-fPIC -shared'
8822 ;;
d7040cdb 8823
ce2cded5
L
8824 osf3* | osf4* | osf5*)
8825 lt_prog_compiler_wl='-Wl,'
8826 # All OSF/1 code is PIC.
8827 lt_prog_compiler_static='-non_shared'
8828 ;;
d7040cdb 8829
ce2cded5
L
8830 rdos*)
8831 lt_prog_compiler_static='-non_shared'
8832 ;;
d7040cdb 8833
ce2cded5
L
8834 solaris*)
8835 lt_prog_compiler_pic='-KPIC'
8836 lt_prog_compiler_static='-Bstatic'
8837 case $cc_basename in
8838 f77* | f90* | f95*)
8839 lt_prog_compiler_wl='-Qoption ld ';;
8840 *)
8841 lt_prog_compiler_wl='-Wl,';;
8842 esac
8843 ;;
d7040cdb 8844
ce2cded5
L
8845 sunos4*)
8846 lt_prog_compiler_wl='-Qoption ld '
8847 lt_prog_compiler_pic='-PIC'
8848 lt_prog_compiler_static='-Bstatic'
8849 ;;
d7040cdb 8850
ce2cded5
L
8851 sysv4 | sysv4.2uw2* | sysv4.3*)
8852 lt_prog_compiler_wl='-Wl,'
8853 lt_prog_compiler_pic='-KPIC'
8854 lt_prog_compiler_static='-Bstatic'
8855 ;;
d7040cdb 8856
ce2cded5
L
8857 sysv4*MP*)
8858 if test -d /usr/nec ;then
8859 lt_prog_compiler_pic='-Kconform_pic'
8860 lt_prog_compiler_static='-Bstatic'
8861 fi
8862 ;;
d7040cdb 8863
ce2cded5
L
8864 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8865 lt_prog_compiler_wl='-Wl,'
8866 lt_prog_compiler_pic='-KPIC'
8867 lt_prog_compiler_static='-Bstatic'
8868 ;;
d7040cdb 8869
ce2cded5
L
8870 unicos*)
8871 lt_prog_compiler_wl='-Wl,'
8872 lt_prog_compiler_can_build_shared=no
8873 ;;
d7040cdb 8874
ce2cded5
L
8875 uts4*)
8876 lt_prog_compiler_pic='-pic'
8877 lt_prog_compiler_static='-Bstatic'
8878 ;;
d7040cdb 8879
ce2cded5
L
8880 *)
8881 lt_prog_compiler_can_build_shared=no
8882 ;;
8883 esac
8884 fi
d7040cdb 8885
ce2cded5
L
8886case $host_os in
8887 # For platforms which do not support PIC, -DPIC is meaningless:
8888 *djgpp*)
8889 lt_prog_compiler_pic=
8890 ;;
8891 *)
8892 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8893 ;;
8894esac
81ecdfbb
RW
8895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8896$as_echo "$lt_prog_compiler_pic" >&6; }
d7040cdb
SE
8897
8898
8899
8900
8901
8902
ce2cded5
L
8903#
8904# Check to make sure the PIC flag actually works.
8905#
8906if test -n "$lt_prog_compiler_pic"; then
81ecdfbb
RW
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8908$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8909if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8910 $as_echo_n "(cached) " >&6
ce2cded5 8911else
b214d478 8912 lt_cv_prog_compiler_pic_works=no
ce2cded5
L
8913 ac_outfile=conftest.$ac_objext
8914 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8915 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8916 # Insert the option either (1) after the last *FLAGS variable, or
8917 # (2) before a word containing "conftest.", or (3) at the end.
8918 # Note that $ac_compile itself does not contain backslashes and begins
8919 # with a dollar sign (not a hyphen), so the echo should work correctly.
8920 # The option is referenced via a variable to avoid confusing sed.
8921 lt_compile=`echo "$ac_compile" | $SED \
8922 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8923 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8924 -e 's:$: $lt_compiler_flag:'`
3725885a 8925 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8926 (eval "$lt_compile" 2>conftest.err)
8927 ac_status=$?
8928 cat conftest.err >&5
3725885a 8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8930 if (exit $ac_status) && test -s "$ac_outfile"; then
8931 # The compiler can only warn and ignore the option if not recognized
8932 # So say no if there are warnings other than the usual output.
3725885a 8933 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
8934 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8935 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
b214d478 8936 lt_cv_prog_compiler_pic_works=yes
ce2cded5
L
8937 fi
8938 fi
8939 $RM conftest*
d7040cdb 8940
ce2cded5 8941fi
81ecdfbb
RW
8942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8943$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
ce2cded5 8944
b214d478 8945if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
ce2cded5
L
8946 case $lt_prog_compiler_pic in
8947 "" | " "*) ;;
8948 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8949 esac
8950else
8951 lt_prog_compiler_pic=
8952 lt_prog_compiler_can_build_shared=no
8953fi
8954
8955fi
d7040cdb
SE
8956
8957
8958
8959
8960
8961
ce2cded5
L
8962#
8963# Check to make sure the static flag actually works.
8964#
8965wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
81ecdfbb
RW
8966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8967$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8968if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8969 $as_echo_n "(cached) " >&6
ce2cded5 8970else
b214d478 8971 lt_cv_prog_compiler_static_works=no
ce2cded5
L
8972 save_LDFLAGS="$LDFLAGS"
8973 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8974 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8975 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8976 # The linker can only warn and ignore the option if not recognized
8977 # So say no if there are warnings
8978 if test -s conftest.err; then
8979 # Append any errors to the config.log.
8980 cat conftest.err 1>&5
3725885a 8981 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
ce2cded5
L
8982 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8983 if diff conftest.exp conftest.er2 >/dev/null; then
b214d478 8984 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
8985 fi
8986 else
b214d478 8987 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
8988 fi
8989 fi
b214d478 8990 $RM -r conftest*
ce2cded5 8991 LDFLAGS="$save_LDFLAGS"
d7040cdb 8992
ce2cded5 8993fi
81ecdfbb
RW
8994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8995$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d7040cdb 8996
b214d478 8997if test x"$lt_cv_prog_compiler_static_works" = xyes; then
ce2cded5
L
8998 :
8999else
9000 lt_prog_compiler_static=
9001fi
d7040cdb
SE
9002
9003
9004
9005
9006
9007
9008
81ecdfbb
RW
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9010$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9011if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9012 $as_echo_n "(cached) " >&6
ce2cded5
L
9013else
9014 lt_cv_prog_compiler_c_o=no
9015 $RM -r conftest 2>/dev/null
9016 mkdir conftest
9017 cd conftest
9018 mkdir out
9019 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9020
ce2cded5
L
9021 lt_compiler_flag="-o out/conftest2.$ac_objext"
9022 # Insert the option either (1) after the last *FLAGS variable, or
9023 # (2) before a word containing "conftest.", or (3) at the end.
9024 # Note that $ac_compile itself does not contain backslashes and begins
9025 # with a dollar sign (not a hyphen), so the echo should work correctly.
9026 lt_compile=`echo "$ac_compile" | $SED \
9027 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9028 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9029 -e 's:$: $lt_compiler_flag:'`
3725885a 9030 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9031 (eval "$lt_compile" 2>out/conftest.err)
9032 ac_status=$?
9033 cat out/conftest.err >&5
3725885a 9034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9035 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9036 then
9037 # The compiler can only warn and ignore the option if not recognized
9038 # So say no if there are warnings
3725885a 9039 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
9040 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9041 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9042 lt_cv_prog_compiler_c_o=yes
9043 fi
9044 fi
9045 chmod u+w . 2>&5
9046 $RM conftest*
9047 # SGI C++ compiler will create directory out/ii_files/ for
9048 # template instantiation
9049 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9050 $RM out/* && rmdir out
9051 cd ..
9052 $RM -r conftest
9053 $RM conftest*
d7040cdb 9054
ce2cded5 9055fi
81ecdfbb
RW
9056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9057$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
9058
9059
9060
9061
9062
9063
81ecdfbb
RW
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9065$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9066if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9067 $as_echo_n "(cached) " >&6
ce2cded5
L
9068else
9069 lt_cv_prog_compiler_c_o=no
9070 $RM -r conftest 2>/dev/null
9071 mkdir conftest
9072 cd conftest
9073 mkdir out
9074 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9075
ce2cded5
L
9076 lt_compiler_flag="-o out/conftest2.$ac_objext"
9077 # Insert the option either (1) after the last *FLAGS variable, or
9078 # (2) before a word containing "conftest.", or (3) at the end.
9079 # Note that $ac_compile itself does not contain backslashes and begins
9080 # with a dollar sign (not a hyphen), so the echo should work correctly.
9081 lt_compile=`echo "$ac_compile" | $SED \
9082 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9083 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9084 -e 's:$: $lt_compiler_flag:'`
3725885a 9085 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9086 (eval "$lt_compile" 2>out/conftest.err)
9087 ac_status=$?
9088 cat out/conftest.err >&5
3725885a 9089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9090 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9091 then
9092 # The compiler can only warn and ignore the option if not recognized
9093 # So say no if there are warnings
3725885a 9094 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
9095 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9096 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9097 lt_cv_prog_compiler_c_o=yes
9098 fi
9099 fi
9100 chmod u+w . 2>&5
9101 $RM conftest*
9102 # SGI C++ compiler will create directory out/ii_files/ for
9103 # template instantiation
9104 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9105 $RM out/* && rmdir out
9106 cd ..
9107 $RM -r conftest
9108 $RM conftest*
9109
9110fi
81ecdfbb
RW
9111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9112$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
ce2cded5
L
9113
9114
9115
9116
9117hard_links="nottested"
9118if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9119 # do not overwrite the value of need_locks provided by the user
81ecdfbb
RW
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9121$as_echo_n "checking if we can lock with hard links... " >&6; }
ce2cded5
L
9122 hard_links=yes
9123 $RM conftest*
9124 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9125 touch conftest.a
9126 ln conftest.a conftest.b 2>&5 || hard_links=no
9127 ln conftest.a conftest.b 2>/dev/null && hard_links=no
81ecdfbb
RW
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9129$as_echo "$hard_links" >&6; }
ce2cded5 9130 if test "$hard_links" = no; then
81ecdfbb
RW
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9132$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
ce2cded5 9133 need_locks=warn
d7040cdb 9134 fi
d7040cdb 9135else
ce2cded5 9136 need_locks=no
d7040cdb 9137fi
d7040cdb 9138
d7040cdb 9139
d7040cdb 9140
d7040cdb 9141
d7040cdb 9142
d7040cdb 9143
81ecdfbb
RW
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9145$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d7040cdb 9146
ce2cded5
L
9147 runpath_var=
9148 allow_undefined_flag=
9149 always_export_symbols=no
9150 archive_cmds=
9151 archive_expsym_cmds=
9152 compiler_needs_object=no
9153 enable_shared_with_static_runtimes=no
9154 export_dynamic_flag_spec=
9155 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9156 hardcode_automatic=no
9157 hardcode_direct=no
9158 hardcode_direct_absolute=no
9159 hardcode_libdir_flag_spec=
9160 hardcode_libdir_flag_spec_ld=
9161 hardcode_libdir_separator=
9162 hardcode_minus_L=no
9163 hardcode_shlibpath_var=unsupported
9164 inherit_rpath=no
9165 link_all_deplibs=unknown
9166 module_cmds=
9167 module_expsym_cmds=
9168 old_archive_from_new_cmds=
9169 old_archive_from_expsyms_cmds=
9170 thread_safe_flag_spec=
9171 whole_archive_flag_spec=
9172 # include_expsyms should be a list of space-separated symbols to be *always*
9173 # included in the symbol list
9174 include_expsyms=
9175 # exclude_expsyms can be an extended regexp of symbols to exclude
9176 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9177 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9178 # as well as any symbol that contains `d'.
b214d478 9179 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
ce2cded5
L
9180 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9181 # platforms (ab)use it in PIC code, but their linkers get confused if
9182 # the symbol is explicitly referenced. Since portable code cannot
9183 # rely on this symbol name, it's probably fine to never include it in
9184 # preloaded symbol tables.
b214d478 9185 # Exclude shared library initialization/finalization symbols.
ce2cded5 9186 extract_expsyms_cmds=
d7040cdb 9187
ce2cded5 9188 case $host_os in
b214d478 9189 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9190 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9191 # When not using gcc, we currently assume that we are using
9192 # Microsoft Visual C++.
9193 if test "$GCC" != yes; then
9194 with_gnu_ld=no
9195 fi
d7040cdb 9196 ;;
ce2cded5
L
9197 interix*)
9198 # we just hope/assume this is gcc and not c89 (= MSVC++)
9199 with_gnu_ld=yes
9200 ;;
9201 openbsd*)
9202 with_gnu_ld=no
d7040cdb
SE
9203 ;;
9204 esac
d7040cdb 9205
ce2cded5 9206 ld_shlibs=yes
3725885a
RW
9207
9208 # On some targets, GNU ld is compatible enough with the native linker
9209 # that we're better off using the native interface for both.
9210 lt_use_gnu_ld_interface=no
ce2cded5 9211 if test "$with_gnu_ld" = yes; then
3725885a
RW
9212 case $host_os in
9213 aix*)
9214 # The AIX port of GNU ld has always aspired to compatibility
9215 # with the native linker. However, as the warning in the GNU ld
9216 # block says, versions before 2.19.5* couldn't really create working
9217 # shared libraries, regardless of the interface used.
9218 case `$LD -v 2>&1` in
9219 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9220 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9221 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9222 *)
9223 lt_use_gnu_ld_interface=yes
9224 ;;
9225 esac
9226 ;;
9227 *)
9228 lt_use_gnu_ld_interface=yes
9229 ;;
9230 esac
9231 fi
9232
9233 if test "$lt_use_gnu_ld_interface" = yes; then
ce2cded5
L
9234 # If archive_cmds runs LD, not CC, wlarc should be empty
9235 wlarc='${wl}'
d7040cdb 9236
ce2cded5
L
9237 # Set some defaults for GNU ld with shared library support. These
9238 # are reset later if shared libraries are not supported. Putting them
9239 # here allows them to be overridden if necessary.
9240 runpath_var=LD_RUN_PATH
9241 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9242 export_dynamic_flag_spec='${wl}--export-dynamic'
9243 # ancient GNU ld didn't support --whole-archive et. al.
9244 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9245 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9246 else
9247 whole_archive_flag_spec=
9248 fi
9249 supports_anon_versioning=no
9250 case `$LD -v 2>&1` in
3725885a 9251 *GNU\ gold*) supports_anon_versioning=yes ;;
ce2cded5
L
9252 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9253 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9254 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9255 *\ 2.11.*) ;; # other 2.11 versions
9256 *) supports_anon_versioning=yes ;;
9257 esac
d7040cdb 9258
ce2cded5
L
9259 # See if GNU ld supports shared libraries.
9260 case $host_os in
50e7d84b 9261 aix[3-9]*)
ce2cded5
L
9262 # On AIX/PPC, the GNU linker is very broken
9263 if test "$host_cpu" != ia64; then
9264 ld_shlibs=no
9265 cat <<_LT_EOF 1>&2
d7040cdb 9266
3725885a 9267*** Warning: the GNU linker, at least up to release 2.19, is reported
ce2cded5
L
9268*** to be unable to reliably create shared libraries on AIX.
9269*** Therefore, libtool is disabling shared libraries support. If you
3725885a
RW
9270*** really care for shared libraries, you may want to install binutils
9271*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9272*** You will then need to restart the configuration process.
d7040cdb 9273
ce2cded5
L
9274_LT_EOF
9275 fi
d7040cdb 9276 ;;
d7040cdb 9277
ce2cded5 9278 amigaos*)
b214d478
SE
9279 case $host_cpu in
9280 powerpc)
9281 # see comment about AmigaOS4 .so support
9282 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9283 archive_expsym_cmds=''
9284 ;;
9285 m68k)
9286 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)'
9287 hardcode_libdir_flag_spec='-L$libdir'
9288 hardcode_minus_L=yes
9289 ;;
9290 esac
ce2cded5 9291 ;;
d7040cdb 9292
ce2cded5
L
9293 beos*)
9294 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9295 allow_undefined_flag=unsupported
9296 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9297 # support --undefined. This deserves some investigation. FIXME
9298 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9299 else
9300 ld_shlibs=no
9301 fi
9302 ;;
d7040cdb 9303
b214d478 9304 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9305 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9306 # as there is no search path for DLLs.
9307 hardcode_libdir_flag_spec='-L$libdir'
3725885a 9308 export_dynamic_flag_spec='${wl}--export-all-symbols'
ce2cded5
L
9309 allow_undefined_flag=unsupported
9310 always_export_symbols=no
9311 enable_shared_with_static_runtimes=yes
9312 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9313
9314 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9315 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9316 # If the export-symbols file already is a .def file (1st line
9317 # is EXPORTS), use it as is; otherwise, prepend...
9318 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9319 cp $export_symbols $output_objdir/$soname.def;
d7040cdb 9320 else
ce2cded5
L
9321 echo EXPORTS > $output_objdir/$soname.def;
9322 cat $export_symbols >> $output_objdir/$soname.def;
9323 fi~
9324 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9325 else
9326 ld_shlibs=no
9327 fi
9328 ;;
d7040cdb 9329
3725885a
RW
9330 haiku*)
9331 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9332 link_all_deplibs=yes
9333 ;;
9334
ce2cded5
L
9335 interix[3-9]*)
9336 hardcode_direct=no
9337 hardcode_shlibpath_var=no
9338 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9339 export_dynamic_flag_spec='${wl}-E'
9340 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9341 # Instead, shared libraries are loaded at an image base (0x10000000 by
9342 # default) and relocated if they conflict, which is a slow very memory
9343 # consuming and fragmenting process. To avoid this, we pick a random,
9344 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9345 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9346 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9347 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'
9348 ;;
d7040cdb 9349
58e24671 9350 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
9351 tmp_diet=no
9352 if test "$host_os" = linux-dietlibc; then
9353 case $cc_basename in
9354 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9355 esac
9356 fi
9357 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9358 && test "$tmp_diet" = no
9359 then
9360 tmp_addflag=
b214d478 9361 tmp_sharedflag='-shared'
ce2cded5
L
9362 case $cc_basename,$host_cpu in
9363 pgcc*) # Portland Group C compiler
3725885a 9364 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
9365 tmp_addflag=' $pic_flag'
9366 ;;
3725885a
RW
9367 pgf77* | pgf90* | pgf95* | pgfortran*)
9368 # Portland Group f77 and f90 compilers
9369 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
9370 tmp_addflag=' $pic_flag -Mnomain' ;;
9371 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9372 tmp_addflag=' -i_dynamic' ;;
9373 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9374 tmp_addflag=' -i_dynamic -nofor_main' ;;
9375 ifc* | ifort*) # Intel Fortran compiler
9376 tmp_addflag=' -nofor_main' ;;
b214d478
SE
9377 lf95*) # Lahey Fortran 8.1
9378 whole_archive_flag_spec=
9379 tmp_sharedflag='--shared' ;;
3725885a 9380 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
b214d478
SE
9381 tmp_sharedflag='-qmkshrobj'
9382 tmp_addflag= ;;
3725885a
RW
9383 nvcc*) # Cuda Compiler Driver 2.2
9384 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'
9385 compiler_needs_object=yes
9386 ;;
ce2cded5
L
9387 esac
9388 case `$CC -V 2>&1 | sed 5q` in
9389 *Sun\ C*) # Sun C 5.9
3725885a 9390 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
9391 compiler_needs_object=yes
9392 tmp_sharedflag='-G' ;;
9393 *Sun\ F*) # Sun Fortran 8.3
9394 tmp_sharedflag='-G' ;;
ce2cded5
L
9395 esac
9396 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 9397
ce2cded5
L
9398 if test "x$supports_anon_versioning" = xyes; then
9399 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9400 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9401 echo "local: *; };" >> $output_objdir/$libname.ver~
9402 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9403 fi
b214d478
SE
9404
9405 case $cc_basename in
3725885a 9406 xlf* | bgf* | bgxlf* | mpixlf*)
b214d478
SE
9407 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9408 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9409 hardcode_libdir_flag_spec=
9410 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9411 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9412 if test "x$supports_anon_versioning" = xyes; then
9413 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9414 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9415 echo "local: *; };" >> $output_objdir/$libname.ver~
9416 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9417 fi
9418 ;;
9419 esac
ce2cded5
L
9420 else
9421 ld_shlibs=no
9422 fi
9423 ;;
d7040cdb 9424
ce2cded5
L
9425 netbsd*)
9426 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9427 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9428 wlarc=
9429 else
9430 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9431 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9432 fi
9433 ;;
9434
9435 solaris*)
9436 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9437 ld_shlibs=no
9438 cat <<_LT_EOF 1>&2
9439
9440*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9441*** create shared libraries on Solaris systems. Therefore, libtool
9442*** is disabling shared libraries support. We urge you to upgrade GNU
9443*** binutils to release 2.9.1 or newer. Another option is to modify
9444*** your PATH or compiler configuration so that the native linker is
9445*** used, and then restart.
9446
9447_LT_EOF
9448 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9449 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9450 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9451 else
9452 ld_shlibs=no
9453 fi
9454 ;;
9455
9456 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9457 case `$LD -v 2>&1` in
9458 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9459 ld_shlibs=no
9460 cat <<_LT_EOF 1>&2
9461
9462*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9463*** reliably create shared libraries on SCO systems. Therefore, libtool
9464*** is disabling shared libraries support. We urge you to upgrade GNU
9465*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9466*** your PATH or compiler configuration so that the native linker is
9467*** used, and then restart.
9468
9469_LT_EOF
9470 ;;
9471 *)
9472 # For security reasons, it is highly recommended that you always
9473 # use absolute paths for naming shared libraries, and exclude the
9474 # DT_RUNPATH tag from executables and libraries. But doing so
9475 # requires that you compile everything twice, which is a pain.
9476 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9477 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9478 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9479 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9480 else
9481 ld_shlibs=no
9482 fi
9483 ;;
9484 esac
9485 ;;
9486
9487 sunos4*)
9488 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9489 wlarc=
9490 hardcode_direct=yes
9491 hardcode_shlibpath_var=no
9492 ;;
9493
9494 *)
9495 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9496 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9497 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9498 else
9499 ld_shlibs=no
9500 fi
9501 ;;
9502 esac
9503
9504 if test "$ld_shlibs" = no; then
9505 runpath_var=
9506 hardcode_libdir_flag_spec=
9507 export_dynamic_flag_spec=
9508 whole_archive_flag_spec=
9509 fi
9510 else
9511 # PORTME fill in a description of your system's linker (not GNU ld)
9512 case $host_os in
9513 aix3*)
9514 allow_undefined_flag=unsupported
9515 always_export_symbols=yes
9516 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'
9517 # Note: this linker hardcodes the directories in LIBPATH if there
9518 # are no directories specified by -L.
9519 hardcode_minus_L=yes
9520 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9521 # Neither direct hardcoding nor static linking is supported with a
9522 # broken collect2.
9523 hardcode_direct=unsupported
9524 fi
9525 ;;
9526
50e7d84b 9527 aix[4-9]*)
ce2cded5
L
9528 if test "$host_cpu" = ia64; then
9529 # On IA64, the linker does run time linking by default, so we don't
9530 # have to do anything special.
9531 aix_use_runtimelinking=no
9532 exp_sym_flag='-Bexport'
9533 no_entry_flag=""
9534 else
9535 # If we're using GNU nm, then we don't want the "-C" option.
9536 # -C means demangle to AIX nm, but means don't demangle with GNU nm
3725885a
RW
9537 # Also, AIX nm treats weak defined symbols like other global
9538 # defined symbols, whereas GNU nm marks them as "W".
ce2cded5 9539 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
3725885a 9540 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
9541 else
9542 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'
9543 fi
9544 aix_use_runtimelinking=no
9545
9546 # Test if we are trying to use run time linking or normal
9547 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9548 # need to do runtime linking.
50e7d84b 9549 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
ce2cded5
L
9550 for ld_flag in $LDFLAGS; do
9551 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9552 aix_use_runtimelinking=yes
9553 break
9554 fi
9555 done
9556 ;;
9557 esac
9558
9559 exp_sym_flag='-bexport'
9560 no_entry_flag='-bnoentry'
9561 fi
9562
9563 # When large executables or shared objects are built, AIX ld can
9564 # have problems creating the table of contents. If linking a library
9565 # or program results in "error TOC overflow" add -mminimal-toc to
9566 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9567 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9568
9569 archive_cmds=''
9570 hardcode_direct=yes
9571 hardcode_direct_absolute=yes
9572 hardcode_libdir_separator=':'
9573 link_all_deplibs=yes
9574 file_list_spec='${wl}-f,'
9575
9576 if test "$GCC" = yes; then
9577 case $host_os in aix4.[012]|aix4.[012].*)
9578 # We only want to do this on AIX 4.2 and lower, the check
9579 # below for broken collect2 doesn't work under 4.3+
9580 collect2name=`${CC} -print-prog-name=collect2`
9581 if test -f "$collect2name" &&
9582 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9583 then
9584 # We have reworked collect2
9585 :
9586 else
9587 # We have old collect2
9588 hardcode_direct=unsupported
9589 # It fails to find uninstalled libraries when the uninstalled
9590 # path is not listed in the libpath. Setting hardcode_minus_L
9591 # to unsupported forces relinking
9592 hardcode_minus_L=yes
9593 hardcode_libdir_flag_spec='-L$libdir'
9594 hardcode_libdir_separator=
9595 fi
9596 ;;
9597 esac
9598 shared_flag='-shared'
9599 if test "$aix_use_runtimelinking" = yes; then
9600 shared_flag="$shared_flag "'${wl}-G'
9601 fi
9602 else
9603 # not using gcc
9604 if test "$host_cpu" = ia64; then
9605 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9606 # chokes on -Wl,-G. The following line is correct:
9607 shared_flag='-G'
9608 else
9609 if test "$aix_use_runtimelinking" = yes; then
9610 shared_flag='${wl}-G'
9611 else
9612 shared_flag='${wl}-bM:SRE'
9613 fi
9614 fi
9615 fi
9616
b214d478 9617 export_dynamic_flag_spec='${wl}-bexpall'
ce2cded5
L
9618 # It seems that -bexpall does not export symbols beginning with
9619 # underscore (_), so it is better to generate a list of symbols to export.
9620 always_export_symbols=yes
9621 if test "$aix_use_runtimelinking" = yes; then
9622 # Warning - without using the other runtime loading flags (-brtl),
9623 # -berok will link without error, but may produce a broken library.
9624 allow_undefined_flag='-berok'
9625 # Determine the default libpath from the value encoded in an
9626 # empty executable.
81ecdfbb 9627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
9628/* end confdefs.h. */
9629
9630int
9631main ()
9632{
9633
9634 ;
9635 return 0;
9636}
9637_ACEOF
81ecdfbb 9638if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9639
ce2cded5
L
9640lt_aix_libpath_sed='
9641 /Import File Strings/,/^$/ {
9642 /^0/ {
9643 s/^0 *\(.*\)$/\1/
9644 p
9645 }
9646 }'
9647aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9648# Check for a 64-bit object if we didn't find anything.
9649if test -z "$aix_libpath"; then
9650 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9651fi
d7040cdb 9652fi
81ecdfbb
RW
9653rm -f core conftest.err conftest.$ac_objext \
9654 conftest$ac_exeext conftest.$ac_ext
ce2cded5 9655if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9656
ce2cded5 9657 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
3725885a 9658 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
9659 else
9660 if test "$host_cpu" = ia64; then
9661 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9662 allow_undefined_flag="-z nodefs"
9663 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"
9664 else
9665 # Determine the default libpath from the value encoded in an
9666 # empty executable.
81ecdfbb 9667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 9668/* end confdefs.h. */
d7040cdb 9669
ce2cded5
L
9670int
9671main ()
9672{
d7040cdb 9673
ce2cded5
L
9674 ;
9675 return 0;
9676}
9677_ACEOF
81ecdfbb 9678if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9679
ce2cded5
L
9680lt_aix_libpath_sed='
9681 /Import File Strings/,/^$/ {
9682 /^0/ {
9683 s/^0 *\(.*\)$/\1/
9684 p
9685 }
9686 }'
9687aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9688# Check for a 64-bit object if we didn't find anything.
9689if test -z "$aix_libpath"; then
9690 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9691fi
ce2cded5 9692fi
81ecdfbb
RW
9693rm -f core conftest.err conftest.$ac_objext \
9694 conftest$ac_exeext conftest.$ac_ext
ce2cded5 9695if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9696
ce2cded5
L
9697 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9698 # Warning - without using the other run time loading flags,
9699 # -berok will link without error, but may produce a broken library.
9700 no_undefined_flag=' ${wl}-bernotok'
9701 allow_undefined_flag=' ${wl}-berok'
3725885a
RW
9702 if test "$with_gnu_ld" = yes; then
9703 # We only use this code for GNU lds that support --whole-archive.
9704 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9705 else
9706 # Exported symbols can be pulled into shared objects from archives
9707 whole_archive_flag_spec='$convenience'
9708 fi
ce2cded5
L
9709 archive_cmds_need_lc=yes
9710 # This is similar to how AIX traditionally builds its shared libraries.
9711 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'
9712 fi
9713 fi
9714 ;;
d7040cdb 9715
ce2cded5 9716 amigaos*)
b214d478
SE
9717 case $host_cpu in
9718 powerpc)
9719 # see comment about AmigaOS4 .so support
9720 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9721 archive_expsym_cmds=''
9722 ;;
9723 m68k)
9724 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)'
9725 hardcode_libdir_flag_spec='-L$libdir'
9726 hardcode_minus_L=yes
9727 ;;
9728 esac
ce2cded5
L
9729 ;;
9730
9731 bsdi[45]*)
9732 export_dynamic_flag_spec=-rdynamic
9733 ;;
9734
b214d478 9735 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9736 # When not using gcc, we currently assume that we are using
9737 # Microsoft Visual C++.
9738 # hardcode_libdir_flag_spec is actually meaningless, as there is
9739 # no search path for DLLs.
9740 hardcode_libdir_flag_spec=' '
9741 allow_undefined_flag=unsupported
9742 # Tell ltmain to make .lib files, not .a files.
9743 libext=lib
9744 # Tell ltmain to make .dll files, not .so files.
9745 shrext_cmds=".dll"
9746 # FIXME: Setting linknames here is a bad hack.
3725885a 9747 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
ce2cded5
L
9748 # The linker will automatically build a .lib file if we build a DLL.
9749 old_archive_from_new_cmds='true'
9750 # FIXME: Should let the user specify the lib program.
9751 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9752 fix_srcfile_path='`cygpath -w "$srcfile"`'
9753 enable_shared_with_static_runtimes=yes
9754 ;;
9755
9756 darwin* | rhapsody*)
d7040cdb 9757
b214d478
SE
9758
9759 archive_cmds_need_lc=no
9760 hardcode_direct=no
9761 hardcode_automatic=yes
9762 hardcode_shlibpath_var=unsupported
3725885a
RW
9763 if test "$lt_cv_ld_force_load" = "yes"; then
9764 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\"`'
9765 else
9766 whole_archive_flag_spec=''
9767 fi
b214d478
SE
9768 link_all_deplibs=yes
9769 allow_undefined_flag="$_lt_dar_allow_undefined"
9770 case $cc_basename in
9771 ifort*) _lt_dar_can_shared=yes ;;
9772 *) _lt_dar_can_shared=$GCC ;;
9773 esac
9774 if test "$_lt_dar_can_shared" = "yes"; then
3725885a 9775 output_verbose_link_cmd=func_echo_all
b214d478
SE
9776 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9777 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9778 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}"
9779 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}"
9780
9781 else
9782 ld_shlibs=no
9783 fi
9784
ce2cded5 9785 ;;
d7040cdb 9786
ce2cded5
L
9787 dgux*)
9788 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9789 hardcode_libdir_flag_spec='-L$libdir'
9790 hardcode_shlibpath_var=no
9791 ;;
d7040cdb 9792
ce2cded5
L
9793 freebsd1*)
9794 ld_shlibs=no
9795 ;;
d7040cdb 9796
ce2cded5
L
9797 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9798 # support. Future versions do this automatically, but an explicit c++rt0.o
9799 # does not break anything, and helps significantly (at the cost of a little
9800 # extra space).
9801 freebsd2.2*)
9802 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9803 hardcode_libdir_flag_spec='-R$libdir'
9804 hardcode_direct=yes
9805 hardcode_shlibpath_var=no
d7040cdb 9806 ;;
d7040cdb 9807
ce2cded5
L
9808 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9809 freebsd2*)
9810 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9811 hardcode_direct=yes
9812 hardcode_minus_L=yes
9813 hardcode_shlibpath_var=no
9814 ;;
d7040cdb 9815
ce2cded5
L
9816 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9817 freebsd* | dragonfly*)
9818 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9819 hardcode_libdir_flag_spec='-R$libdir'
9820 hardcode_direct=yes
9821 hardcode_shlibpath_var=no
9822 ;;
d7040cdb 9823
ce2cded5
L
9824 hpux9*)
9825 if test "$GCC" = yes; then
9826 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'
9827 else
9828 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'
9829 fi
9830 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9831 hardcode_libdir_separator=:
9832 hardcode_direct=yes
d7040cdb 9833
ce2cded5
L
9834 # hardcode_minus_L: Not really in the search PATH,
9835 # but as the default location of the library.
9836 hardcode_minus_L=yes
9837 export_dynamic_flag_spec='${wl}-E'
9838 ;;
d7040cdb 9839
ce2cded5 9840 hpux10*)
3725885a 9841 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
ce2cded5
L
9842 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9843 else
9844 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9845 fi
9846 if test "$with_gnu_ld" = no; then
9847 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9848 hardcode_libdir_flag_spec_ld='+b $libdir'
9849 hardcode_libdir_separator=:
9850 hardcode_direct=yes
9851 hardcode_direct_absolute=yes
9852 export_dynamic_flag_spec='${wl}-E'
9853 # hardcode_minus_L: Not really in the search PATH,
9854 # but as the default location of the library.
9855 hardcode_minus_L=yes
9856 fi
9857 ;;
d7040cdb 9858
ce2cded5 9859 hpux11*)
3725885a 9860 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
ce2cded5
L
9861 case $host_cpu in
9862 hppa*64*)
9863 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9864 ;;
9865 ia64*)
b214d478 9866 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
9867 ;;
9868 *)
9869 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9870 ;;
9871 esac
9872 else
9873 case $host_cpu in
9874 hppa*64*)
9875 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9876 ;;
9877 ia64*)
9878 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9879 ;;
9880 *)
3725885a
RW
9881
9882 # Older versions of the 11.00 compiler do not understand -b yet
9883 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9885$as_echo_n "checking if $CC understands -b... " >&6; }
9886if test "${lt_cv_prog_compiler__b+set}" = set; then :
9887 $as_echo_n "(cached) " >&6
9888else
9889 lt_cv_prog_compiler__b=no
9890 save_LDFLAGS="$LDFLAGS"
9891 LDFLAGS="$LDFLAGS -b"
9892 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9893 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9894 # The linker can only warn and ignore the option if not recognized
9895 # So say no if there are warnings
9896 if test -s conftest.err; then
9897 # Append any errors to the config.log.
9898 cat conftest.err 1>&5
9899 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9900 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9901 if diff conftest.exp conftest.er2 >/dev/null; then
9902 lt_cv_prog_compiler__b=yes
9903 fi
9904 else
9905 lt_cv_prog_compiler__b=yes
9906 fi
9907 fi
9908 $RM -r conftest*
9909 LDFLAGS="$save_LDFLAGS"
9910
9911fi
9912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9913$as_echo "$lt_cv_prog_compiler__b" >&6; }
9914
9915if test x"$lt_cv_prog_compiler__b" = xyes; then
9916 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9917else
9918 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9919fi
9920
ce2cded5
L
9921 ;;
9922 esac
9923 fi
9924 if test "$with_gnu_ld" = no; then
9925 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9926 hardcode_libdir_separator=:
d7040cdb 9927
ce2cded5
L
9928 case $host_cpu in
9929 hppa*64*|ia64*)
9930 hardcode_direct=no
9931 hardcode_shlibpath_var=no
9932 ;;
9933 *)
9934 hardcode_direct=yes
9935 hardcode_direct_absolute=yes
9936 export_dynamic_flag_spec='${wl}-E'
d7040cdb 9937
ce2cded5
L
9938 # hardcode_minus_L: Not really in the search PATH,
9939 # but as the default location of the library.
9940 hardcode_minus_L=yes
9941 ;;
9942 esac
9943 fi
9944 ;;
d7040cdb 9945
ce2cded5
L
9946 irix5* | irix6* | nonstopux*)
9947 if test "$GCC" = yes; then
3725885a 9948 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
9949 # Try to use the -exported_symbol ld option, if it does not
9950 # work, assume that -exports_file does not work either and
9951 # implicitly export all symbols.
9952 save_LDFLAGS="$LDFLAGS"
9953 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
81ecdfbb
RW
9954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9955/* end confdefs.h. */
ce2cded5
L
9956int foo(void) {}
9957_ACEOF
81ecdfbb 9958if ac_fn_c_try_link "$LINENO"; then :
3725885a 9959 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 9960
ce2cded5 9961fi
81ecdfbb
RW
9962rm -f core conftest.err conftest.$ac_objext \
9963 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
9964 LDFLAGS="$save_LDFLAGS"
9965 else
3725885a
RW
9966 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'
9967 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
9968 fi
9969 archive_cmds_need_lc='no'
9970 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9971 hardcode_libdir_separator=:
9972 inherit_rpath=yes
9973 link_all_deplibs=yes
9974 ;;
d7040cdb 9975
ce2cded5
L
9976 netbsd*)
9977 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9978 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9979 else
9980 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9981 fi
9982 hardcode_libdir_flag_spec='-R$libdir'
9983 hardcode_direct=yes
9984 hardcode_shlibpath_var=no
9985 ;;
d7040cdb 9986
ce2cded5
L
9987 newsos6)
9988 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9989 hardcode_direct=yes
9990 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9991 hardcode_libdir_separator=:
9992 hardcode_shlibpath_var=no
9993 ;;
d7040cdb 9994
ce2cded5
L
9995 *nto* | *qnx*)
9996 ;;
d7040cdb 9997
ce2cded5 9998 openbsd*)
b214d478
SE
9999 if test -f /usr/libexec/ld.so; then
10000 hardcode_direct=yes
10001 hardcode_shlibpath_var=no
10002 hardcode_direct_absolute=yes
10003 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
ce2cded5 10004 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
b214d478 10005 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
ce2cded5 10006 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
b214d478
SE
10007 export_dynamic_flag_spec='${wl}-E'
10008 else
10009 case $host_os in
10010 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10011 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10012 hardcode_libdir_flag_spec='-R$libdir'
10013 ;;
10014 *)
10015 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10016 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10017 ;;
10018 esac
10019 fi
10020 else
10021 ld_shlibs=no
ce2cded5
L
10022 fi
10023 ;;
d7040cdb 10024
ce2cded5
L
10025 os2*)
10026 hardcode_libdir_flag_spec='-L$libdir'
10027 hardcode_minus_L=yes
10028 allow_undefined_flag=unsupported
3725885a 10029 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
10030 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10031 ;;
d7040cdb 10032
ce2cded5
L
10033 osf3*)
10034 if test "$GCC" = yes; then
10035 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 10036 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
10037 else
10038 allow_undefined_flag=' -expect_unresolved \*'
3725885a 10039 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
10040 fi
10041 archive_cmds_need_lc='no'
10042 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10043 hardcode_libdir_separator=:
10044 ;;
d7040cdb 10045
ce2cded5
L
10046 osf4* | osf5*) # as osf3* with the addition of -msym flag
10047 if test "$GCC" = yes; then
10048 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 10049 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
10050 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10051 else
10052 allow_undefined_flag=' -expect_unresolved \*'
3725885a 10053 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 10054 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 10055 $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 10056
ce2cded5
L
10057 # Both c and cxx compiler support -rpath directly
10058 hardcode_libdir_flag_spec='-rpath $libdir'
10059 fi
10060 archive_cmds_need_lc='no'
10061 hardcode_libdir_separator=:
10062 ;;
d7040cdb 10063
ce2cded5
L
10064 solaris*)
10065 no_undefined_flag=' -z defs'
10066 if test "$GCC" = yes; then
10067 wlarc='${wl}'
10068 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10069 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10070 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10071 else
10072 case `$CC -V 2>&1` in
10073 *"Compilers 5.0"*)
10074 wlarc=''
10075 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10076 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10077 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10078 ;;
10079 *)
10080 wlarc='${wl}'
10081 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10082 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10083 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10084 ;;
10085 esac
10086 fi
10087 hardcode_libdir_flag_spec='-R$libdir'
10088 hardcode_shlibpath_var=no
10089 case $host_os in
10090 solaris2.[0-5] | solaris2.[0-5].*) ;;
10091 *)
10092 # The compiler driver will combine and reorder linker options,
10093 # but understands `-z linker_flag'. GCC discards it without `$wl',
10094 # but is careful enough not to reorder.
10095 # Supported since Solaris 2.6 (maybe 2.5.1?)
10096 if test "$GCC" = yes; then
10097 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10098 else
10099 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10100 fi
10101 ;;
10102 esac
10103 link_all_deplibs=yes
10104 ;;
d7040cdb 10105
ce2cded5
L
10106 sunos4*)
10107 if test "x$host_vendor" = xsequent; then
10108 # Use $CC to link under sequent, because it throws in some extra .o
10109 # files that make .init and .fini sections work.
10110 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10111 else
10112 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10113 fi
10114 hardcode_libdir_flag_spec='-L$libdir'
10115 hardcode_direct=yes
10116 hardcode_minus_L=yes
10117 hardcode_shlibpath_var=no
10118 ;;
d7040cdb 10119
ce2cded5
L
10120 sysv4)
10121 case $host_vendor in
10122 sni)
10123 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10124 hardcode_direct=yes # is this really true???
10125 ;;
10126 siemens)
10127 ## LD is ld it makes a PLAMLIB
10128 ## CC just makes a GrossModule.
10129 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10130 reload_cmds='$CC -r -o $output$reload_objs'
10131 hardcode_direct=no
10132 ;;
10133 motorola)
10134 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10135 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10136 ;;
10137 esac
10138 runpath_var='LD_RUN_PATH'
10139 hardcode_shlibpath_var=no
10140 ;;
d7040cdb 10141
ce2cded5
L
10142 sysv4.3*)
10143 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10144 hardcode_shlibpath_var=no
10145 export_dynamic_flag_spec='-Bexport'
10146 ;;
d7040cdb 10147
ce2cded5
L
10148 sysv4*MP*)
10149 if test -d /usr/nec; then
10150 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10151 hardcode_shlibpath_var=no
10152 runpath_var=LD_RUN_PATH
10153 hardcode_runpath_var=yes
10154 ld_shlibs=yes
10155 fi
10156 ;;
d7040cdb 10157
ce2cded5
L
10158 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10159 no_undefined_flag='${wl}-z,text'
10160 archive_cmds_need_lc=no
10161 hardcode_shlibpath_var=no
10162 runpath_var='LD_RUN_PATH'
d7040cdb 10163
ce2cded5
L
10164 if test "$GCC" = yes; then
10165 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10166 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10167 else
10168 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10169 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10170 fi
10171 ;;
d7040cdb 10172
ce2cded5
L
10173 sysv5* | sco3.2v5* | sco5v6*)
10174 # Note: We can NOT use -z defs as we might desire, because we do not
10175 # link with -lc, and that would cause any symbols used from libc to
10176 # always be unresolved, which means just about no library would
10177 # ever link correctly. If we're not using GNU ld we use -z text
10178 # though, which does catch some bad symbols but isn't as heavy-handed
10179 # as -z defs.
10180 no_undefined_flag='${wl}-z,text'
10181 allow_undefined_flag='${wl}-z,nodefs'
10182 archive_cmds_need_lc=no
10183 hardcode_shlibpath_var=no
10184 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10185 hardcode_libdir_separator=':'
10186 link_all_deplibs=yes
10187 export_dynamic_flag_spec='${wl}-Bexport'
10188 runpath_var='LD_RUN_PATH'
d7040cdb 10189
ce2cded5
L
10190 if test "$GCC" = yes; then
10191 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10192 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10193 else
10194 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10195 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10196 fi
10197 ;;
d7040cdb 10198
ce2cded5
L
10199 uts4*)
10200 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10201 hardcode_libdir_flag_spec='-L$libdir'
10202 hardcode_shlibpath_var=no
10203 ;;
d7040cdb 10204
ce2cded5
L
10205 *)
10206 ld_shlibs=no
10207 ;;
10208 esac
d7040cdb 10209
ce2cded5
L
10210 if test x$host_vendor = xsni; then
10211 case $host in
10212 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10213 export_dynamic_flag_spec='${wl}-Blargedynsym'
10214 ;;
10215 esac
10216 fi
10217 fi
d7040cdb 10218
81ecdfbb
RW
10219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10220$as_echo "$ld_shlibs" >&6; }
ce2cded5 10221test "$ld_shlibs" = no && can_build_shared=no
d7040cdb 10222
ce2cded5 10223with_gnu_ld=$with_gnu_ld
d7040cdb
SE
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
ce2cded5
L
10239#
10240# Do we need to explicitly link libc?
10241#
10242case "x$archive_cmds_need_lc" in
10243x|xyes)
10244 # Assume -lc should be added
10245 archive_cmds_need_lc=yes
d7040cdb 10246
ce2cded5
L
10247 if test "$enable_shared" = yes && test "$GCC" = yes; then
10248 case $archive_cmds in
10249 *'~'*)
10250 # FIXME: we may have to deal with multi-command sequences.
10251 ;;
10252 '$CC '*)
10253 # Test whether the compiler implicitly links with -lc since on some
10254 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10255 # to ld, don't add -lc before -lgcc.
81ecdfbb
RW
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10257$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10258if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10259 $as_echo_n "(cached) " >&6
39144654
RW
10260else
10261 $RM conftest*
10262 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 10263
81ecdfbb 10264 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
ce2cded5
L
10265 (eval $ac_compile) 2>&5
10266 ac_status=$?
81ecdfbb
RW
10267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10268 test $ac_status = 0; } 2>conftest.err; then
39144654
RW
10269 soname=conftest
10270 lib=conftest
10271 libobjs=conftest.$ac_objext
10272 deplibs=
10273 wl=$lt_prog_compiler_wl
10274 pic_flag=$lt_prog_compiler_pic
10275 compiler_flags=-v
10276 linker_flags=-v
10277 verstring=
10278 output_objdir=.
10279 libname=conftest
10280 lt_save_allow_undefined_flag=$allow_undefined_flag
10281 allow_undefined_flag=
81ecdfbb 10282 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
ce2cded5
L
10283 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10284 ac_status=$?
81ecdfbb
RW
10285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10286 test $ac_status = 0; }
39144654
RW
10287 then
10288 lt_cv_archive_cmds_need_lc=no
10289 else
10290 lt_cv_archive_cmds_need_lc=yes
10291 fi
10292 allow_undefined_flag=$lt_save_allow_undefined_flag
10293 else
10294 cat conftest.err 1>&5
10295 fi
10296 $RM conftest*
10297
10298fi
81ecdfbb
RW
10299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10300$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
39144654 10301 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
ce2cded5
L
10302 ;;
10303 esac
10304 fi
10305 ;;
10306esac
d7040cdb
SE
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
d7040cdb 10334
d7040cdb 10335
d7040cdb
SE
10336
10337
10338
10339
10340
10341
d7040cdb 10342
d7040cdb 10343
d7040cdb 10344
d7040cdb 10345
d7040cdb 10346
d7040cdb 10347
d7040cdb 10348
d7040cdb 10349
d7040cdb 10350
d7040cdb 10351
d7040cdb 10352
d7040cdb 10353
d7040cdb 10354
d7040cdb 10355
d7040cdb 10356
d7040cdb 10357
d7040cdb 10358
d7040cdb 10359
d7040cdb 10360
d7040cdb 10361
d7040cdb 10362
d7040cdb 10363
d7040cdb 10364
d7040cdb 10365
d7040cdb 10366
d7040cdb 10367
d7040cdb 10368
d7040cdb 10369
ce2cded5
L
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
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
81ecdfbb
RW
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10465$as_echo_n "checking dynamic linker characteristics... " >&6; }
b214d478
SE
10466
10467if test "$GCC" = yes; then
ce2cded5
L
10468 case $host_os in
10469 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10470 *) lt_awk_arg="/^libraries:/" ;;
10471 esac
3725885a
RW
10472 case $host_os in
10473 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10474 *) lt_sed_strip_eq="s,=/,/,g" ;;
10475 esac
10476 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10477 case $lt_search_path_spec in
10478 *\;*)
ce2cded5
L
10479 # if the path contains ";" then we assume it to be the separator
10480 # otherwise default to the standard path separator (i.e. ":") - it is
10481 # assumed that no part of a normal pathname contains ";" but that should
10482 # okay in the real world where ";" in dirpaths is itself problematic.
3725885a
RW
10483 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10484 ;;
10485 *)
10486 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10487 ;;
10488 esac
ce2cded5
L
10489 # Ok, now we have the path, separated by spaces, we can step through it
10490 # and add multilib dir if necessary.
10491 lt_tmp_lt_search_path_spec=
10492 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10493 for lt_sys_path in $lt_search_path_spec; do
10494 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10495 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10496 else
10497 test -d "$lt_sys_path" && \
10498 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10499 fi
10500 done
3725885a 10501 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
ce2cded5
L
10502BEGIN {RS=" "; FS="/|\n";} {
10503 lt_foo="";
10504 lt_count=0;
10505 for (lt_i = NF; lt_i > 0; lt_i--) {
10506 if ($lt_i != "" && $lt_i != ".") {
10507 if ($lt_i == "..") {
10508 lt_count++;
10509 } else {
10510 if (lt_count == 0) {
10511 lt_foo="/" $lt_i lt_foo;
10512 } else {
10513 lt_count--;
10514 }
10515 }
10516 }
10517 }
10518 if (lt_foo != "") { lt_freq[lt_foo]++; }
10519 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10520}'`
3725885a
RW
10521 # AWK program above erroneously prepends '/' to C:/dos/paths
10522 # for these hosts.
10523 case $host_os in
10524 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10525 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10526 esac
10527 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
d7040cdb 10528else
ce2cded5
L
10529 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10530fi
10531library_names_spec=
10532libname_spec='lib$name'
10533soname_spec=
10534shrext_cmds=".so"
10535postinstall_cmds=
10536postuninstall_cmds=
10537finish_cmds=
10538finish_eval=
10539shlibpath_var=
10540shlibpath_overrides_runpath=unknown
10541version_type=none
10542dynamic_linker="$host_os ld.so"
10543sys_lib_dlsearch_path_spec="/lib /usr/lib"
10544need_lib_prefix=unknown
10545hardcode_into_libs=no
10546
10547# when you set need_version to no, make sure it does not cause -set_version
10548# flags to be left without arguments
10549need_version=unknown
10550
10551case $host_os in
10552aix3*)
10553 version_type=linux
10554 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10555 shlibpath_var=LIBPATH
10556
10557 # AIX 3 has no versioning support, so we append a major version to the name.
10558 soname_spec='${libname}${release}${shared_ext}$major'
10559 ;;
10560
50e7d84b 10561aix[4-9]*)
ce2cded5
L
10562 version_type=linux
10563 need_lib_prefix=no
10564 need_version=no
10565 hardcode_into_libs=yes
10566 if test "$host_cpu" = ia64; then
10567 # AIX 5 supports IA64
10568 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10569 shlibpath_var=LD_LIBRARY_PATH
10570 else
10571 # With GCC up to 2.95.x, collect2 would create an import file
10572 # for dependence libraries. The import file would start with
10573 # the line `#! .'. This would cause the generated library to
10574 # depend on `.', always an invalid library. This was fixed in
10575 # development snapshots of GCC prior to 3.0.
10576 case $host_os in
10577 aix4 | aix4.[01] | aix4.[01].*)
10578 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10579 echo ' yes '
10580 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10581 :
10582 else
10583 can_build_shared=no
10584 fi
10585 ;;
10586 esac
10587 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10588 # soname into executable. Probably we can add versioning support to
10589 # collect2, so additional links can be useful in future.
10590 if test "$aix_use_runtimelinking" = yes; then
10591 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10592 # instead of lib<name>.a to let people know that these are not
10593 # typical AIX shared libraries.
10594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10595 else
10596 # We preserve .a as extension for shared libraries through AIX4.2
10597 # and later when we are not doing run time linking.
10598 library_names_spec='${libname}${release}.a $libname.a'
10599 soname_spec='${libname}${release}${shared_ext}$major'
10600 fi
10601 shlibpath_var=LIBPATH
10602 fi
10603 ;;
10604
10605amigaos*)
b214d478
SE
10606 case $host_cpu in
10607 powerpc)
10608 # Since July 2007 AmigaOS4 officially supports .so libraries.
10609 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10611 ;;
10612 m68k)
ce2cded5
L
10613 library_names_spec='$libname.ixlibrary $libname.a'
10614 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3725885a 10615 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
10616 ;;
10617 esac
ce2cded5
L
10618 ;;
10619
10620beos*)
10621 library_names_spec='${libname}${shared_ext}'
10622 dynamic_linker="$host_os ld.so"
10623 shlibpath_var=LIBRARY_PATH
10624 ;;
10625
10626bsdi[45]*)
10627 version_type=linux
10628 need_version=no
10629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10630 soname_spec='${libname}${release}${shared_ext}$major'
10631 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10632 shlibpath_var=LD_LIBRARY_PATH
10633 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10634 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10635 # the default ld.so.conf also contains /usr/contrib/lib and
10636 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10637 # libtool to hard-code these into programs
10638 ;;
10639
b214d478 10640cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
10641 version_type=windows
10642 shrext_cmds=".dll"
10643 need_version=no
10644 need_lib_prefix=no
10645
b214d478
SE
10646 case $GCC,$host_os in
10647 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
ce2cded5
L
10648 library_names_spec='$libname.dll.a'
10649 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10650 postinstall_cmds='base_file=`basename \${file}`~
10651 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10652 dldir=$destdir/`dirname \$dlpath`~
10653 test -d \$dldir || mkdir -p \$dldir~
10654 $install_prog $dir/$dlname \$dldir/$dlname~
10655 chmod a+x \$dldir/$dlname~
10656 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10657 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10658 fi'
10659 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10660 dlpath=$dir/\$dldll~
10661 $RM \$dlpath'
10662 shlibpath_overrides_runpath=yes
10663
10664 case $host_os in
10665 cygwin*)
10666 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10667 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
3725885a
RW
10668
10669 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
ce2cded5 10670 ;;
b214d478 10671 mingw* | cegcc*)
ce2cded5
L
10672 # MinGW DLLs use traditional 'lib' prefix
10673 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
ce2cded5
L
10674 ;;
10675 pw32*)
10676 # pw32 DLLs use 'pw' prefix rather than 'lib'
10677 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10678 ;;
10679 esac
10680 ;;
10681
10682 *)
10683 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10684 ;;
10685 esac
10686 dynamic_linker='Win32 ld.exe'
10687 # FIXME: first we should search . and the directory the executable is in
10688 shlibpath_var=PATH
10689 ;;
10690
10691darwin* | rhapsody*)
10692 dynamic_linker="$host_os dyld"
10693 version_type=darwin
10694 need_lib_prefix=no
10695 need_version=no
10696 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10697 soname_spec='${libname}${release}${major}$shared_ext'
10698 shlibpath_overrides_runpath=yes
10699 shlibpath_var=DYLD_LIBRARY_PATH
10700 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10701
10702 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10703 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10704 ;;
10705
10706dgux*)
10707 version_type=linux
10708 need_lib_prefix=no
10709 need_version=no
10710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10711 soname_spec='${libname}${release}${shared_ext}$major'
10712 shlibpath_var=LD_LIBRARY_PATH
10713 ;;
10714
10715freebsd1*)
10716 dynamic_linker=no
10717 ;;
10718
10719freebsd* | dragonfly*)
10720 # DragonFly does not have aout. When/if they implement a new
10721 # versioning mechanism, adjust this.
10722 if test -x /usr/bin/objformat; then
10723 objformat=`/usr/bin/objformat`
10724 else
10725 case $host_os in
10726 freebsd[123]*) objformat=aout ;;
10727 *) objformat=elf ;;
10728 esac
10729 fi
10730 version_type=freebsd-$objformat
10731 case $version_type in
10732 freebsd-elf*)
10733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10734 need_version=no
10735 need_lib_prefix=no
10736 ;;
10737 freebsd-*)
10738 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10739 need_version=yes
10740 ;;
10741 esac
10742 shlibpath_var=LD_LIBRARY_PATH
10743 case $host_os in
10744 freebsd2*)
10745 shlibpath_overrides_runpath=yes
10746 ;;
10747 freebsd3.[01]* | freebsdelf3.[01]*)
10748 shlibpath_overrides_runpath=yes
10749 hardcode_into_libs=yes
10750 ;;
10751 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10752 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10753 shlibpath_overrides_runpath=no
10754 hardcode_into_libs=yes
10755 ;;
10756 *) # from 4.6 on, and DragonFly
10757 shlibpath_overrides_runpath=yes
10758 hardcode_into_libs=yes
10759 ;;
10760 esac
10761 ;;
10762
10763gnu*)
10764 version_type=linux
10765 need_lib_prefix=no
10766 need_version=no
10767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10768 soname_spec='${libname}${release}${shared_ext}$major'
10769 shlibpath_var=LD_LIBRARY_PATH
10770 hardcode_into_libs=yes
10771 ;;
10772
3725885a
RW
10773haiku*)
10774 version_type=linux
10775 need_lib_prefix=no
10776 need_version=no
10777 dynamic_linker="$host_os runtime_loader"
10778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10779 soname_spec='${libname}${release}${shared_ext}$major'
10780 shlibpath_var=LIBRARY_PATH
10781 shlibpath_overrides_runpath=yes
10782 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10783 hardcode_into_libs=yes
10784 ;;
10785
ce2cded5
L
10786hpux9* | hpux10* | hpux11*)
10787 # Give a soname corresponding to the major version so that dld.sl refuses to
10788 # link against other versions.
10789 version_type=sunos
10790 need_lib_prefix=no
10791 need_version=no
10792 case $host_cpu in
10793 ia64*)
10794 shrext_cmds='.so'
10795 hardcode_into_libs=yes
10796 dynamic_linker="$host_os dld.so"
10797 shlibpath_var=LD_LIBRARY_PATH
10798 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10800 soname_spec='${libname}${release}${shared_ext}$major'
10801 if test "X$HPUX_IA64_MODE" = X32; then
10802 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10803 else
10804 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10805 fi
10806 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10807 ;;
10808 hppa*64*)
10809 shrext_cmds='.sl'
10810 hardcode_into_libs=yes
10811 dynamic_linker="$host_os dld.sl"
10812 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10813 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10815 soname_spec='${libname}${release}${shared_ext}$major'
10816 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10817 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10818 ;;
10819 *)
10820 shrext_cmds='.sl'
10821 dynamic_linker="$host_os dld.sl"
10822 shlibpath_var=SHLIB_PATH
10823 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10825 soname_spec='${libname}${release}${shared_ext}$major'
10826 ;;
10827 esac
3725885a 10828 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
ce2cded5 10829 postinstall_cmds='chmod 555 $lib'
3725885a
RW
10830 # or fails outright, so override atomically:
10831 install_override_mode=555
ce2cded5
L
10832 ;;
10833
10834interix[3-9]*)
10835 version_type=linux
10836 need_lib_prefix=no
10837 need_version=no
10838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10839 soname_spec='${libname}${release}${shared_ext}$major'
10840 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10841 shlibpath_var=LD_LIBRARY_PATH
10842 shlibpath_overrides_runpath=no
10843 hardcode_into_libs=yes
10844 ;;
10845
10846irix5* | irix6* | nonstopux*)
10847 case $host_os in
10848 nonstopux*) version_type=nonstopux ;;
10849 *)
10850 if test "$lt_cv_prog_gnu_ld" = yes; then
10851 version_type=linux
10852 else
10853 version_type=irix
10854 fi ;;
10855 esac
10856 need_lib_prefix=no
10857 need_version=no
10858 soname_spec='${libname}${release}${shared_ext}$major'
10859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10860 case $host_os in
10861 irix5* | nonstopux*)
10862 libsuff= shlibsuff=
10863 ;;
10864 *)
10865 case $LD in # libtool.m4 will add one of these switches to LD
10866 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10867 libsuff= shlibsuff= libmagic=32-bit;;
10868 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10869 libsuff=32 shlibsuff=N32 libmagic=N32;;
10870 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10871 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10872 *) libsuff= shlibsuff= libmagic=never-match;;
10873 esac
10874 ;;
10875 esac
10876 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10877 shlibpath_overrides_runpath=no
10878 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10879 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10880 hardcode_into_libs=yes
10881 ;;
10882
10883# No shared lib support for Linux oldld, aout, or coff.
10884linux*oldld* | linux*aout* | linux*coff*)
10885 dynamic_linker=no
10886 ;;
10887
10888# This must be Linux ELF.
58e24671 10889linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
10890 version_type=linux
10891 need_lib_prefix=no
10892 need_version=no
10893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10894 soname_spec='${libname}${release}${shared_ext}$major'
10895 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10896 shlibpath_var=LD_LIBRARY_PATH
10897 shlibpath_overrides_runpath=no
39144654 10898
ce2cded5 10899 # Some binutils ld are patched to set DT_RUNPATH
81ecdfbb
RW
10900 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10901 $as_echo_n "(cached) " >&6
39144654
RW
10902else
10903 lt_cv_shlibpath_overrides_runpath=no
10904 save_LDFLAGS=$LDFLAGS
10905 save_libdir=$libdir
10906 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10907 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
81ecdfbb 10908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10909/* end confdefs.h. */
10910
d7040cdb
SE
10911int
10912main ()
10913{
ce2cded5 10914
d7040cdb
SE
10915 ;
10916 return 0;
10917}
10918_ACEOF
81ecdfbb
RW
10919if ac_fn_c_try_link "$LINENO"; then :
10920 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
39144654 10921 lt_cv_shlibpath_overrides_runpath=yes
d7040cdb 10922fi
d7040cdb 10923fi
81ecdfbb
RW
10924rm -f core conftest.err conftest.$ac_objext \
10925 conftest$ac_exeext conftest.$ac_ext
39144654
RW
10926 LDFLAGS=$save_LDFLAGS
10927 libdir=$save_libdir
10928
10929fi
10930
10931 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
d7040cdb 10932
ce2cded5
L
10933 # This implies no fast_install, which is unacceptable.
10934 # Some rework will be needed to allow for fast_install
10935 # before this can be enabled.
10936 hardcode_into_libs=yes
d7040cdb 10937
ce2cded5
L
10938 # Append ld.so.conf contents to the search path
10939 if test -f /etc/ld.so.conf; then
3725885a 10940 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
10941 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10942 fi
d7040cdb 10943
ce2cded5
L
10944 # We used to test for /lib/ld.so.1 and disable shared libraries on
10945 # powerpc, because MkLinux only supported shared libraries with the
10946 # GNU dynamic linker. Since this was broken with cross compilers,
10947 # most powerpc-linux boxes support dynamic linking these days and
10948 # people can always --disable-shared, the test was removed, and we
10949 # assume the GNU/Linux dynamic linker is in use.
10950 dynamic_linker='GNU/Linux ld.so'
10951 ;;
d7040cdb 10952
ce2cded5
L
10953netbsd*)
10954 version_type=sunos
10955 need_lib_prefix=no
10956 need_version=no
10957 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10959 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10960 dynamic_linker='NetBSD (a.out) ld.so'
10961 else
10962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10963 soname_spec='${libname}${release}${shared_ext}$major'
10964 dynamic_linker='NetBSD ld.elf_so'
10965 fi
10966 shlibpath_var=LD_LIBRARY_PATH
10967 shlibpath_overrides_runpath=yes
10968 hardcode_into_libs=yes
10969 ;;
d7040cdb 10970
ce2cded5
L
10971newsos6)
10972 version_type=linux
10973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10974 shlibpath_var=LD_LIBRARY_PATH
10975 shlibpath_overrides_runpath=yes
10976 ;;
d7040cdb 10977
ce2cded5
L
10978*nto* | *qnx*)
10979 version_type=qnx
10980 need_lib_prefix=no
10981 need_version=no
10982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10983 soname_spec='${libname}${release}${shared_ext}$major'
10984 shlibpath_var=LD_LIBRARY_PATH
10985 shlibpath_overrides_runpath=no
10986 hardcode_into_libs=yes
10987 dynamic_linker='ldqnx.so'
10988 ;;
d7040cdb 10989
ce2cded5
L
10990openbsd*)
10991 version_type=sunos
10992 sys_lib_dlsearch_path_spec="/usr/lib"
10993 need_lib_prefix=no
10994 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10995 case $host_os in
10996 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10997 *) need_version=no ;;
10998 esac
10999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11000 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11001 shlibpath_var=LD_LIBRARY_PATH
11002 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11003 case $host_os in
11004 openbsd2.[89] | openbsd2.[89].*)
11005 shlibpath_overrides_runpath=no
11006 ;;
11007 *)
11008 shlibpath_overrides_runpath=yes
11009 ;;
11010 esac
11011 else
11012 shlibpath_overrides_runpath=yes
11013 fi
11014 ;;
d7040cdb 11015
ce2cded5
L
11016os2*)
11017 libname_spec='$name'
11018 shrext_cmds=".dll"
11019 need_lib_prefix=no
11020 library_names_spec='$libname${shared_ext} $libname.a'
11021 dynamic_linker='OS/2 ld.exe'
11022 shlibpath_var=LIBPATH
11023 ;;
d7040cdb 11024
ce2cded5
L
11025osf3* | osf4* | osf5*)
11026 version_type=osf
11027 need_lib_prefix=no
11028 need_version=no
11029 soname_spec='${libname}${release}${shared_ext}$major'
11030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11031 shlibpath_var=LD_LIBRARY_PATH
11032 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11033 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11034 ;;
d7040cdb 11035
ce2cded5
L
11036rdos*)
11037 dynamic_linker=no
11038 ;;
d7040cdb 11039
ce2cded5
L
11040solaris*)
11041 version_type=linux
11042 need_lib_prefix=no
11043 need_version=no
11044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11045 soname_spec='${libname}${release}${shared_ext}$major'
11046 shlibpath_var=LD_LIBRARY_PATH
11047 shlibpath_overrides_runpath=yes
11048 hardcode_into_libs=yes
11049 # ldd complains unless libraries are executable
11050 postinstall_cmds='chmod +x $lib'
11051 ;;
d7040cdb 11052
ce2cded5
L
11053sunos4*)
11054 version_type=sunos
11055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11056 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11057 shlibpath_var=LD_LIBRARY_PATH
11058 shlibpath_overrides_runpath=yes
11059 if test "$with_gnu_ld" = yes; then
11060 need_lib_prefix=no
11061 fi
11062 need_version=yes
11063 ;;
d7040cdb 11064
ce2cded5
L
11065sysv4 | sysv4.3*)
11066 version_type=linux
11067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11068 soname_spec='${libname}${release}${shared_ext}$major'
11069 shlibpath_var=LD_LIBRARY_PATH
11070 case $host_vendor in
11071 sni)
11072 shlibpath_overrides_runpath=no
11073 need_lib_prefix=no
11074 runpath_var=LD_RUN_PATH
11075 ;;
11076 siemens)
11077 need_lib_prefix=no
11078 ;;
11079 motorola)
11080 need_lib_prefix=no
11081 need_version=no
11082 shlibpath_overrides_runpath=no
11083 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11084 ;;
11085 esac
11086 ;;
d7040cdb 11087
ce2cded5
L
11088sysv4*MP*)
11089 if test -d /usr/nec ;then
11090 version_type=linux
11091 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11092 soname_spec='$libname${shared_ext}.$major'
11093 shlibpath_var=LD_LIBRARY_PATH
11094 fi
11095 ;;
d7040cdb 11096
ce2cded5
L
11097sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11098 version_type=freebsd-elf
11099 need_lib_prefix=no
11100 need_version=no
11101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11102 soname_spec='${libname}${release}${shared_ext}$major'
11103 shlibpath_var=LD_LIBRARY_PATH
11104 shlibpath_overrides_runpath=yes
11105 hardcode_into_libs=yes
11106 if test "$with_gnu_ld" = yes; then
11107 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11108 else
11109 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11110 case $host_os in
11111 sco3.2v5*)
11112 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11113 ;;
11114 esac
11115 fi
11116 sys_lib_dlsearch_path_spec='/usr/lib'
11117 ;;
d7040cdb 11118
ce2cded5
L
11119tpf*)
11120 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11121 version_type=linux
11122 need_lib_prefix=no
11123 need_version=no
b214d478 11124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
ce2cded5
L
11125 shlibpath_var=LD_LIBRARY_PATH
11126 shlibpath_overrides_runpath=no
11127 hardcode_into_libs=yes
11128 ;;
d7040cdb 11129
ce2cded5
L
11130uts4*)
11131 version_type=linux
11132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11133 soname_spec='${libname}${release}${shared_ext}$major'
11134 shlibpath_var=LD_LIBRARY_PATH
11135 ;;
d7040cdb 11136
ce2cded5
L
11137*)
11138 dynamic_linker=no
11139 ;;
11140esac
81ecdfbb
RW
11141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11142$as_echo "$dynamic_linker" >&6; }
ce2cded5
L
11143test "$dynamic_linker" = no && can_build_shared=no
11144
11145variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11146if test "$GCC" = yes; then
11147 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb
SE
11148fi
11149
b214d478
SE
11150if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11151 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11152fi
11153if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11154 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11155fi
11156
d7040cdb
SE
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
d7040cdb 11168
d7040cdb 11169
d7040cdb 11170
d7040cdb 11171
d7040cdb
SE
11172
11173
11174
11175
d7040cdb 11176
d7040cdb
SE
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
d7040cdb
SE
11190
11191
11192
11193
d7040cdb
SE
11194
11195
11196
11197
d7040cdb 11198
d7040cdb 11199
d7040cdb 11200
d7040cdb 11201
d7040cdb 11202
d7040cdb 11203
d7040cdb 11204
d7040cdb
SE
11205
11206
11207
11208
11209
d7040cdb 11210
d7040cdb 11211
d7040cdb 11212
d7040cdb 11213
d7040cdb 11214
d7040cdb 11215
d7040cdb
SE
11216
11217
11218
11219
11220
d7040cdb
SE
11221
11222
d7040cdb 11223
d7040cdb 11224
d7040cdb 11225
d7040cdb 11226
ce2cded5
L
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
3725885a
RW
11237
11238
11239
11240
11241
ce2cded5
L
11242
11243
11244
11245
11246
11247
81ecdfbb
RW
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11249$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
ce2cded5
L
11250hardcode_action=
11251if test -n "$hardcode_libdir_flag_spec" ||
11252 test -n "$runpath_var" ||
11253 test "X$hardcode_automatic" = "Xyes" ; then
11254
11255 # We can hardcode non-existent directories.
11256 if test "$hardcode_direct" != no &&
11257 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11258 # have to relink, otherwise we might link with an installed library
11259 # when we should be linking with a yet-to-be-installed one
11260 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11261 test "$hardcode_minus_L" != no; then
11262 # Linking always hardcodes the temporary library directory.
11263 hardcode_action=relink
11264 else
11265 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11266 hardcode_action=immediate
d7040cdb 11267 fi
d7040cdb 11268else
ce2cded5
L
11269 # We cannot hardcode anything, or else we can only hardcode existing
11270 # directories.
11271 hardcode_action=unsupported
d7040cdb 11272fi
81ecdfbb
RW
11273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11274$as_echo "$hardcode_action" >&6; }
d7040cdb 11275
ce2cded5
L
11276if test "$hardcode_action" = relink ||
11277 test "$inherit_rpath" = yes; then
11278 # Fast installation is not supported
11279 enable_fast_install=no
11280elif test "$shlibpath_overrides_runpath" = yes ||
11281 test "$enable_shared" = no; then
11282 # Fast installation is not necessary
11283 enable_fast_install=needless
d7040cdb
SE
11284fi
11285
d7040cdb 11286
d7040cdb 11287
d7040cdb 11288
d7040cdb 11289
d7040cdb 11290
ce2cded5
L
11291 if test "x$enable_dlopen" != xyes; then
11292 enable_dlopen=unknown
11293 enable_dlopen_self=unknown
11294 enable_dlopen_self_static=unknown
d7040cdb 11295else
ce2cded5
L
11296 lt_cv_dlopen=no
11297 lt_cv_dlopen_libs=
d7040cdb 11298
ce2cded5
L
11299 case $host_os in
11300 beos*)
11301 lt_cv_dlopen="load_add_on"
11302 lt_cv_dlopen_libs=
11303 lt_cv_dlopen_self=yes
11304 ;;
d7040cdb 11305
b214d478 11306 mingw* | pw32* | cegcc*)
ce2cded5
L
11307 lt_cv_dlopen="LoadLibrary"
11308 lt_cv_dlopen_libs=
11309 ;;
11310
11311 cygwin*)
11312 lt_cv_dlopen="dlopen"
11313 lt_cv_dlopen_libs=
11314 ;;
11315
11316 darwin*)
11317 # if libdl is installed we need to link against it
81ecdfbb
RW
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11319$as_echo_n "checking for dlopen in -ldl... " >&6; }
11320if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11321 $as_echo_n "(cached) " >&6
d7040cdb 11322else
ce2cded5
L
11323 ac_check_lib_save_LIBS=$LIBS
11324LIBS="-ldl $LIBS"
81ecdfbb 11325cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
11326/* end confdefs.h. */
11327
81ecdfbb
RW
11328/* Override any GCC internal prototype to avoid an error.
11329 Use char because int might match the return type of a GCC
11330 builtin and then its argument prototype would still apply. */
ce2cded5
L
11331#ifdef __cplusplus
11332extern "C"
11333#endif
ce2cded5
L
11334char dlopen ();
11335int
11336main ()
11337{
81ecdfbb 11338return dlopen ();
ce2cded5
L
11339 ;
11340 return 0;
11341}
11342_ACEOF
81ecdfbb 11343if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
11344 ac_cv_lib_dl_dlopen=yes
11345else
81ecdfbb 11346 ac_cv_lib_dl_dlopen=no
d7040cdb 11347fi
81ecdfbb
RW
11348rm -f core conftest.err conftest.$ac_objext \
11349 conftest$ac_exeext conftest.$ac_ext
ce2cded5 11350LIBS=$ac_check_lib_save_LIBS
d7040cdb 11351fi
81ecdfbb
RW
11352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11353$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11354if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5 11355 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 11356else
d7040cdb 11357
ce2cded5
L
11358 lt_cv_dlopen="dyld"
11359 lt_cv_dlopen_libs=
11360 lt_cv_dlopen_self=yes
11361
d7040cdb 11362fi
ce2cded5
L
11363
11364 ;;
11365
11366 *)
81ecdfbb
RW
11367 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11368if test "x$ac_cv_func_shl_load" = x""yes; then :
ce2cded5
L
11369 lt_cv_dlopen="shl_load"
11370else
81ecdfbb
RW
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11372$as_echo_n "checking for shl_load in -ldld... " >&6; }
11373if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11374 $as_echo_n "(cached) " >&6
ce2cded5
L
11375else
11376 ac_check_lib_save_LIBS=$LIBS
11377LIBS="-ldld $LIBS"
81ecdfbb 11378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 11379/* end confdefs.h. */
d7040cdb 11380
81ecdfbb
RW
11381/* Override any GCC internal prototype to avoid an error.
11382 Use char because int might match the return type of a GCC
11383 builtin and then its argument prototype would still apply. */
ce2cded5
L
11384#ifdef __cplusplus
11385extern "C"
11386#endif
ce2cded5
L
11387char shl_load ();
11388int
11389main ()
11390{
81ecdfbb 11391return shl_load ();
ce2cded5
L
11392 ;
11393 return 0;
11394}
11395_ACEOF
81ecdfbb 11396if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
11397 ac_cv_lib_dld_shl_load=yes
11398else
81ecdfbb 11399 ac_cv_lib_dld_shl_load=no
ce2cded5 11400fi
81ecdfbb
RW
11401rm -f core conftest.err conftest.$ac_objext \
11402 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
11403LIBS=$ac_check_lib_save_LIBS
11404fi
81ecdfbb
RW
11405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11406$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11407if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
b214d478 11408 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
ce2cded5 11409else
81ecdfbb
RW
11410 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11411if test "x$ac_cv_func_dlopen" = x""yes; then :
ce2cded5
L
11412 lt_cv_dlopen="dlopen"
11413else
81ecdfbb
RW
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11415$as_echo_n "checking for dlopen in -ldl... " >&6; }
11416if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11417 $as_echo_n "(cached) " >&6
d7040cdb 11418else
ce2cded5
L
11419 ac_check_lib_save_LIBS=$LIBS
11420LIBS="-ldl $LIBS"
81ecdfbb 11421cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11422/* end confdefs.h. */
11423
81ecdfbb
RW
11424/* Override any GCC internal prototype to avoid an error.
11425 Use char because int might match the return type of a GCC
11426 builtin and then its argument prototype would still apply. */
ce2cded5
L
11427#ifdef __cplusplus
11428extern "C"
11429#endif
ce2cded5 11430char dlopen ();
d7040cdb
SE
11431int
11432main ()
11433{
81ecdfbb 11434return dlopen ();
d7040cdb
SE
11435 ;
11436 return 0;
11437}
11438_ACEOF
81ecdfbb 11439if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 11440 ac_cv_lib_dl_dlopen=yes
d7040cdb 11441else
81ecdfbb 11442 ac_cv_lib_dl_dlopen=no
d7040cdb 11443fi
81ecdfbb
RW
11444rm -f core conftest.err conftest.$ac_objext \
11445 conftest$ac_exeext conftest.$ac_ext
ce2cded5 11446LIBS=$ac_check_lib_save_LIBS
d7040cdb 11447fi
81ecdfbb
RW
11448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11449$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11450if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5 11451 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 11452else
81ecdfbb
RW
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11454$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11455if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11456 $as_echo_n "(cached) " >&6
d7040cdb 11457else
ce2cded5
L
11458 ac_check_lib_save_LIBS=$LIBS
11459LIBS="-lsvld $LIBS"
81ecdfbb 11460cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 11461/* end confdefs.h. */
d7040cdb 11462
81ecdfbb
RW
11463/* Override any GCC internal prototype to avoid an error.
11464 Use char because int might match the return type of a GCC
11465 builtin and then its argument prototype would still apply. */
ce2cded5
L
11466#ifdef __cplusplus
11467extern "C"
11468#endif
ce2cded5 11469char dlopen ();
d7040cdb
SE
11470int
11471main ()
11472{
81ecdfbb 11473return dlopen ();
d7040cdb
SE
11474 ;
11475 return 0;
11476}
11477_ACEOF
81ecdfbb 11478if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 11479 ac_cv_lib_svld_dlopen=yes
d7040cdb 11480else
81ecdfbb 11481 ac_cv_lib_svld_dlopen=no
d7040cdb 11482fi
81ecdfbb
RW
11483rm -f core conftest.err conftest.$ac_objext \
11484 conftest$ac_exeext conftest.$ac_ext
ce2cded5 11485LIBS=$ac_check_lib_save_LIBS
d7040cdb 11486fi
81ecdfbb
RW
11487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11488$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11489if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
ce2cded5
L
11490 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11491else
81ecdfbb
RW
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11493$as_echo_n "checking for dld_link in -ldld... " >&6; }
11494if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11495 $as_echo_n "(cached) " >&6
ce2cded5
L
11496else
11497 ac_check_lib_save_LIBS=$LIBS
11498LIBS="-ldld $LIBS"
81ecdfbb 11499cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
11500/* end confdefs.h. */
11501
81ecdfbb
RW
11502/* Override any GCC internal prototype to avoid an error.
11503 Use char because int might match the return type of a GCC
11504 builtin and then its argument prototype would still apply. */
ce2cded5
L
11505#ifdef __cplusplus
11506extern "C"
11507#endif
ce2cded5 11508char dld_link ();
d7040cdb
SE
11509int
11510main ()
11511{
81ecdfbb 11512return dld_link ();
d7040cdb
SE
11513 ;
11514 return 0;
11515}
11516_ACEOF
81ecdfbb 11517if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 11518 ac_cv_lib_dld_dld_link=yes
d7040cdb 11519else
81ecdfbb 11520 ac_cv_lib_dld_dld_link=no
d7040cdb 11521fi
81ecdfbb
RW
11522rm -f core conftest.err conftest.$ac_objext \
11523 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
11524LIBS=$ac_check_lib_save_LIBS
11525fi
81ecdfbb
RW
11526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11527$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11528if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
b214d478 11529 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
ce2cded5
L
11530fi
11531
11532
11533fi
11534
11535
11536fi
11537
11538
11539fi
11540
11541
11542fi
11543
11544
11545fi
11546
11547 ;;
11548 esac
11549
11550 if test "x$lt_cv_dlopen" != xno; then
11551 enable_dlopen=yes
11552 else
11553 enable_dlopen=no
11554 fi
11555
11556 case $lt_cv_dlopen in
11557 dlopen)
11558 save_CPPFLAGS="$CPPFLAGS"
11559 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11560
11561 save_LDFLAGS="$LDFLAGS"
11562 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11563
11564 save_LIBS="$LIBS"
11565 LIBS="$lt_cv_dlopen_libs $LIBS"
11566
81ecdfbb
RW
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11568$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11569if test "${lt_cv_dlopen_self+set}" = set; then :
11570 $as_echo_n "(cached) " >&6
ce2cded5
L
11571else
11572 if test "$cross_compiling" = yes; then :
11573 lt_cv_dlopen_self=cross
11574else
11575 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11576 lt_status=$lt_dlunknown
11577 cat > conftest.$ac_ext <<_LT_EOF
3725885a 11578#line 11578 "configure"
ce2cded5
L
11579#include "confdefs.h"
11580
11581#if HAVE_DLFCN_H
11582#include <dlfcn.h>
11583#endif
11584
11585#include <stdio.h>
11586
11587#ifdef RTLD_GLOBAL
11588# define LT_DLGLOBAL RTLD_GLOBAL
11589#else
11590# ifdef DL_GLOBAL
11591# define LT_DLGLOBAL DL_GLOBAL
11592# else
11593# define LT_DLGLOBAL 0
11594# endif
11595#endif
11596
11597/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11598 find out it does not work in some platform. */
11599#ifndef LT_DLLAZY_OR_NOW
11600# ifdef RTLD_LAZY
11601# define LT_DLLAZY_OR_NOW RTLD_LAZY
11602# else
11603# ifdef DL_LAZY
11604# define LT_DLLAZY_OR_NOW DL_LAZY
11605# else
11606# ifdef RTLD_NOW
11607# define LT_DLLAZY_OR_NOW RTLD_NOW
11608# else
11609# ifdef DL_NOW
11610# define LT_DLLAZY_OR_NOW DL_NOW
11611# else
11612# define LT_DLLAZY_OR_NOW 0
11613# endif
11614# endif
11615# endif
11616# endif
11617#endif
11618
3725885a
RW
11619/* When -fvisbility=hidden is used, assume the code has been annotated
11620 correspondingly for the symbols needed. */
11621#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11622void fnord () __attribute__((visibility("default")));
11623#endif
11624
11625void fnord () { int i=42; }
ce2cded5 11626int main ()
d7040cdb 11627{
ce2cded5
L
11628 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11629 int status = $lt_dlunknown;
11630
11631 if (self)
11632 {
11633 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11634 else
11635 {
11636 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11637 else puts (dlerror ());
11638 }
ce2cded5
L
11639 /* dlclose (self); */
11640 }
11641 else
11642 puts (dlerror ());
11643
b214d478 11644 return status;
d7040cdb 11645}
ce2cded5 11646_LT_EOF
81ecdfbb 11647 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5 11648 (eval $ac_link) 2>&5
d7040cdb 11649 ac_status=$?
81ecdfbb
RW
11650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11651 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
ce2cded5
L
11652 (./conftest; exit; ) >&5 2>/dev/null
11653 lt_status=$?
11654 case x$lt_status in
11655 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11656 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11657 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11658 esac
11659 else :
11660 # compilation failed
11661 lt_cv_dlopen_self=no
11662 fi
11663fi
11664rm -fr conftest*
11665
11666
11667fi
81ecdfbb
RW
11668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11669$as_echo "$lt_cv_dlopen_self" >&6; }
ce2cded5
L
11670
11671 if test "x$lt_cv_dlopen_self" = xyes; then
11672 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
81ecdfbb
RW
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11674$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11675if test "${lt_cv_dlopen_self_static+set}" = set; then :
11676 $as_echo_n "(cached) " >&6
ce2cded5
L
11677else
11678 if test "$cross_compiling" = yes; then :
11679 lt_cv_dlopen_self_static=cross
11680else
11681 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11682 lt_status=$lt_dlunknown
11683 cat > conftest.$ac_ext <<_LT_EOF
3725885a 11684#line 11684 "configure"
ce2cded5
L
11685#include "confdefs.h"
11686
11687#if HAVE_DLFCN_H
11688#include <dlfcn.h>
11689#endif
11690
11691#include <stdio.h>
11692
11693#ifdef RTLD_GLOBAL
11694# define LT_DLGLOBAL RTLD_GLOBAL
11695#else
11696# ifdef DL_GLOBAL
11697# define LT_DLGLOBAL DL_GLOBAL
11698# else
11699# define LT_DLGLOBAL 0
11700# endif
11701#endif
11702
11703/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11704 find out it does not work in some platform. */
11705#ifndef LT_DLLAZY_OR_NOW
11706# ifdef RTLD_LAZY
11707# define LT_DLLAZY_OR_NOW RTLD_LAZY
11708# else
11709# ifdef DL_LAZY
11710# define LT_DLLAZY_OR_NOW DL_LAZY
11711# else
11712# ifdef RTLD_NOW
11713# define LT_DLLAZY_OR_NOW RTLD_NOW
11714# else
11715# ifdef DL_NOW
11716# define LT_DLLAZY_OR_NOW DL_NOW
11717# else
11718# define LT_DLLAZY_OR_NOW 0
11719# endif
11720# endif
11721# endif
11722# endif
11723#endif
11724
3725885a
RW
11725/* When -fvisbility=hidden is used, assume the code has been annotated
11726 correspondingly for the symbols needed. */
11727#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11728void fnord () __attribute__((visibility("default")));
11729#endif
11730
11731void fnord () { int i=42; }
ce2cded5
L
11732int main ()
11733{
11734 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11735 int status = $lt_dlunknown;
11736
11737 if (self)
11738 {
11739 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11740 else
11741 {
11742 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11743 else puts (dlerror ());
11744 }
ce2cded5
L
11745 /* dlclose (self); */
11746 }
11747 else
11748 puts (dlerror ());
11749
b214d478 11750 return status;
ce2cded5
L
11751}
11752_LT_EOF
81ecdfbb 11753 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5 11754 (eval $ac_link) 2>&5
d7040cdb 11755 ac_status=$?
81ecdfbb
RW
11756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11757 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
ce2cded5
L
11758 (./conftest; exit; ) >&5 2>/dev/null
11759 lt_status=$?
11760 case x$lt_status in
11761 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11762 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11763 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11764 esac
11765 else :
11766 # compilation failed
11767 lt_cv_dlopen_self_static=no
11768 fi
11769fi
11770rm -fr conftest*
11771
d7040cdb
SE
11772
11773fi
81ecdfbb
RW
11774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11775$as_echo "$lt_cv_dlopen_self_static" >&6; }
ce2cded5
L
11776 fi
11777
11778 CPPFLAGS="$save_CPPFLAGS"
11779 LDFLAGS="$save_LDFLAGS"
11780 LIBS="$save_LIBS"
11781 ;;
11782 esac
11783
11784 case $lt_cv_dlopen_self in
11785 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11786 *) enable_dlopen_self=unknown ;;
11787 esac
11788
11789 case $lt_cv_dlopen_self_static in
11790 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11791 *) enable_dlopen_self_static=unknown ;;
11792 esac
d7040cdb
SE
11793fi
11794
ce2cded5
L
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811striplib=
11812old_striplib=
81ecdfbb
RW
11813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11814$as_echo_n "checking whether stripping libraries is possible... " >&6; }
ce2cded5
L
11815if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11816 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11817 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
81ecdfbb
RW
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11819$as_echo "yes" >&6; }
d7040cdb 11820else
ce2cded5
L
11821# FIXME - insert some real tests, host_os isn't really good enough
11822 case $host_os in
11823 darwin*)
11824 if test -n "$STRIP" ; then
11825 striplib="$STRIP -x"
11826 old_striplib="$STRIP -S"
81ecdfbb
RW
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11828$as_echo "yes" >&6; }
ce2cded5 11829 else
81ecdfbb
RW
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11831$as_echo "no" >&6; }
ce2cded5
L
11832 fi
11833 ;;
11834 *)
81ecdfbb
RW
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11836$as_echo "no" >&6; }
ce2cded5
L
11837 ;;
11838 esac
11839fi
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852 # Report which library types will actually be built
81ecdfbb
RW
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11854$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11856$as_echo "$can_build_shared" >&6; }
ce2cded5 11857
81ecdfbb
RW
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11859$as_echo_n "checking whether to build shared libraries... " >&6; }
ce2cded5
L
11860 test "$can_build_shared" = "no" && enable_shared=no
11861
11862 # On AIX, shared libraries and static libraries use the same namespace, and
11863 # are all built from PIC.
11864 case $host_os in
11865 aix3*)
11866 test "$enable_shared" = yes && enable_static=no
11867 if test -n "$RANLIB"; then
11868 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11869 postinstall_cmds='$RANLIB $lib'
11870 fi
11871 ;;
11872
50e7d84b 11873 aix[4-9]*)
ce2cded5
L
11874 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11875 test "$enable_shared" = yes && enable_static=no
11876 fi
11877 ;;
11878 esac
81ecdfbb
RW
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11880$as_echo "$enable_shared" >&6; }
ce2cded5 11881
81ecdfbb
RW
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11883$as_echo_n "checking whether to build static libraries... " >&6; }
ce2cded5
L
11884 # Make sure either enable_shared or enable_static is yes.
11885 test "$enable_shared" = yes || enable_static=yes
81ecdfbb
RW
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11887$as_echo "$enable_static" >&6; }
ce2cded5
L
11888
11889
11890
d7040cdb
SE
11891
11892fi
d7040cdb
SE
11893ac_ext=c
11894ac_cpp='$CPP $CPPFLAGS'
11895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11897ac_compiler_gnu=$ac_cv_c_compiler_gnu
11898
ce2cded5 11899CC="$lt_save_CC"
67310ccd 11900
67310ccd
AM
11901
11902
d7040cdb
SE
11903
11904
d7040cdb 11905
d7040cdb 11906
d7040cdb 11907
ce2cded5
L
11908
11909
11910
11911
11912
81ecdfbb 11913 ac_config_commands="$ac_config_commands libtool"
ce2cded5
L
11914
11915
11916
11917
11918# Only expand once:
11919
d7040cdb
SE
11920
11921
8cc9115f 11922ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga fi id"
d7040cdb
SE
11923# If we haven't got the data from the intl directory,
11924# assume NLS is disabled.
11925USE_NLS=no
11926LIBINTL=
11927LIBINTL_DEP=
11928INCINTL=
11929XGETTEXT=
11930GMSGFMT=
11931POSUB=
11932
11933if test -f ../intl/config.intl; then
11934 . ../intl/config.intl
11935fi
81ecdfbb
RW
11936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11937$as_echo_n "checking whether NLS is requested... " >&6; }
d7040cdb 11938if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11940$as_echo "no" >&6; }
d7040cdb 11941else
81ecdfbb
RW
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11943$as_echo "yes" >&6; }
d7040cdb 11944
81ecdfbb 11945$as_echo "#define ENABLE_NLS 1" >>confdefs.h
d7040cdb
SE
11946
11947
81ecdfbb
RW
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11949$as_echo_n "checking for catalogs to be installed... " >&6; }
d7040cdb
SE
11950 # Look for .po and .gmo files in the source directory.
11951 CATALOGS=
11952 XLINGUAS=
11953 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11954 # If there aren't any .gmo files the shell will give us the
11955 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11956 # weeded out.
11957 case "$cat" in *\**)
11958 continue;;
11959 esac
11960 # The quadruple backslash is collapsed to a double backslash
11961 # by the backticks, then collapsed again by the double quotes,
11962 # leaving us with one backslash in the sed expression (right
11963 # before the dot that mustn't act as a wildcard).
11964 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11965 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11966 # The user is allowed to set LINGUAS to a list of languages to
11967 # install catalogs for. If it's empty that means "all of them."
11968 if test "x$LINGUAS" = x; then
11969 CATALOGS="$CATALOGS $cat"
11970 XLINGUAS="$XLINGUAS $lang"
11971 else
11972 case "$LINGUAS" in *$lang*)
11973 CATALOGS="$CATALOGS $cat"
11974 XLINGUAS="$XLINGUAS $lang"
11975 ;;
11976 esac
11977 fi
11978 done
11979 LINGUAS="$XLINGUAS"
81ecdfbb
RW
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11981$as_echo "$LINGUAS" >&6; }
d7040cdb
SE
11982
11983
11984 DATADIRNAME=share
11985
11986 INSTOBJEXT=.mo
11987
11988 GENCAT=gencat
11989
11990 CATOBJEXT=.gmo
11991
11992fi
11993
11994 MKINSTALLDIRS=
11995 if test -n "$ac_aux_dir"; then
11996 case "$ac_aux_dir" in
11997 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11998 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11999 esac
12000 fi
12001 if test -z "$MKINSTALLDIRS"; then
12002 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12003 fi
12004
12005
12006
81ecdfbb
RW
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12008$as_echo_n "checking whether NLS is requested... " >&6; }
12009 # Check whether --enable-nls was given.
12010if test "${enable_nls+set}" = set; then :
12011 enableval=$enable_nls; USE_NLS=$enableval
d7040cdb
SE
12012else
12013 USE_NLS=yes
81ecdfbb
RW
12014fi
12015
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12017$as_echo "$USE_NLS" >&6; }
d7040cdb
SE
12018
12019
12020
12021
12022
12023
12024# Prepare PATH_SEPARATOR.
12025# The user is always right.
12026if test "${PATH_SEPARATOR+set}" != set; then
12027 echo "#! /bin/sh" >conf$$.sh
12028 echo "exit 0" >>conf$$.sh
12029 chmod +x conf$$.sh
12030 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12031 PATH_SEPARATOR=';'
12032 else
12033 PATH_SEPARATOR=:
12034 fi
12035 rm -f conf$$.sh
12036fi
12037
12038# Find out how to test for executable files. Don't use a zero-byte file,
12039# as systems may use methods other than mode bits to determine executability.
12040cat >conf$$.file <<_ASEOF
12041#! /bin/sh
12042exit 0
12043_ASEOF
12044chmod +x conf$$.file
12045if test -x conf$$.file >/dev/null 2>&1; then
12046 ac_executable_p="test -x"
12047else
12048 ac_executable_p="test -f"
12049fi
12050rm -f conf$$.file
12051
12052# Extract the first word of "msgfmt", so it can be a program name with args.
12053set dummy msgfmt; ac_word=$2
81ecdfbb
RW
12054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12055$as_echo_n "checking for $ac_word... " >&6; }
12056if test "${ac_cv_path_MSGFMT+set}" = set; then :
12057 $as_echo_n "(cached) " >&6
d7040cdb
SE
12058else
12059 case "$MSGFMT" in
12060 [\\/]* | ?:[\\/]*)
12061 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12062 ;;
12063 *)
12064 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12065 for ac_dir in $PATH; do
12066 IFS="$ac_save_IFS"
12067 test -z "$ac_dir" && ac_dir=.
12068 for ac_exec_ext in '' $ac_executable_extensions; do
12069 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12070 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12071 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12072 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12073 break 2
12074 fi
12075 fi
12076 done
12077 done
12078 IFS="$ac_save_IFS"
12079 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12080 ;;
12081esac
12082fi
12083MSGFMT="$ac_cv_path_MSGFMT"
12084if test "$MSGFMT" != ":"; then
81ecdfbb
RW
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12086$as_echo "$MSGFMT" >&6; }
d7040cdb 12087else
81ecdfbb
RW
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12089$as_echo "no" >&6; }
d7040cdb
SE
12090fi
12091
12092 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12093set dummy gmsgfmt; ac_word=$2
81ecdfbb
RW
12094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12095$as_echo_n "checking for $ac_word... " >&6; }
12096if test "${ac_cv_path_GMSGFMT+set}" = set; then :
12097 $as_echo_n "(cached) " >&6
d7040cdb
SE
12098else
12099 case $GMSGFMT in
12100 [\\/]* | ?:[\\/]*)
12101 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12102 ;;
12103 *)
12104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12105for as_dir in $PATH
12106do
12107 IFS=$as_save_IFS
12108 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12109 for ac_exec_ext in '' $ac_executable_extensions; do
12110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 12111 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
12113 break 2
12114 fi
12115done
81ecdfbb
RW
12116 done
12117IFS=$as_save_IFS
d7040cdb
SE
12118
12119 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12120 ;;
12121esac
12122fi
12123GMSGFMT=$ac_cv_path_GMSGFMT
d7040cdb 12124if test -n "$GMSGFMT"; then
81ecdfbb
RW
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12126$as_echo "$GMSGFMT" >&6; }
d7040cdb 12127else
81ecdfbb
RW
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12129$as_echo "no" >&6; }
20e95c23 12130fi
42ecbf5e 12131
20e95c23 12132
252b5132 12133
81ecdfbb 12134
d7040cdb
SE
12135# Prepare PATH_SEPARATOR.
12136# The user is always right.
12137if test "${PATH_SEPARATOR+set}" != set; then
12138 echo "#! /bin/sh" >conf$$.sh
12139 echo "exit 0" >>conf$$.sh
12140 chmod +x conf$$.sh
12141 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12142 PATH_SEPARATOR=';'
12143 else
12144 PATH_SEPARATOR=:
12145 fi
12146 rm -f conf$$.sh
20e95c23 12147fi
252b5132 12148
d7040cdb
SE
12149# Find out how to test for executable files. Don't use a zero-byte file,
12150# as systems may use methods other than mode bits to determine executability.
12151cat >conf$$.file <<_ASEOF
12152#! /bin/sh
12153exit 0
12154_ASEOF
12155chmod +x conf$$.file
12156if test -x conf$$.file >/dev/null 2>&1; then
12157 ac_executable_p="test -x"
20e95c23 12158else
d7040cdb
SE
12159 ac_executable_p="test -f"
12160fi
12161rm -f conf$$.file
20e95c23 12162
d7040cdb
SE
12163# Extract the first word of "xgettext", so it can be a program name with args.
12164set dummy xgettext; ac_word=$2
81ecdfbb
RW
12165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12166$as_echo_n "checking for $ac_word... " >&6; }
12167if test "${ac_cv_path_XGETTEXT+set}" = set; then :
12168 $as_echo_n "(cached) " >&6
252b5132 12169else
d7040cdb
SE
12170 case "$XGETTEXT" in
12171 [\\/]* | ?:[\\/]*)
12172 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12173 ;;
12174 *)
12175 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12176 for ac_dir in $PATH; do
12177 IFS="$ac_save_IFS"
12178 test -z "$ac_dir" && ac_dir=.
12179 for ac_exec_ext in '' $ac_executable_extensions; do
12180 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12181 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12182 (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
12183 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12184 break 2
12185 fi
12186 fi
12187 done
12188 done
12189 IFS="$ac_save_IFS"
12190 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12191 ;;
12192esac
252b5132 12193fi
d7040cdb
SE
12194XGETTEXT="$ac_cv_path_XGETTEXT"
12195if test "$XGETTEXT" != ":"; then
81ecdfbb
RW
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12197$as_echo "$XGETTEXT" >&6; }
d5fbea21 12198else
81ecdfbb
RW
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12200$as_echo "no" >&6; }
d5fbea21
DJ
12201fi
12202
d7040cdb 12203 rm -f messages.po
d5fbea21 12204
20e95c23 12205
d7040cdb
SE
12206# Prepare PATH_SEPARATOR.
12207# The user is always right.
12208if test "${PATH_SEPARATOR+set}" != set; then
12209 echo "#! /bin/sh" >conf$$.sh
12210 echo "exit 0" >>conf$$.sh
12211 chmod +x conf$$.sh
12212 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12213 PATH_SEPARATOR=';'
12214 else
12215 PATH_SEPARATOR=:
12216 fi
12217 rm -f conf$$.sh
12218fi
20e95c23 12219
d7040cdb
SE
12220# Find out how to test for executable files. Don't use a zero-byte file,
12221# as systems may use methods other than mode bits to determine executability.
12222cat >conf$$.file <<_ASEOF
12223#! /bin/sh
12224exit 0
12225_ASEOF
12226chmod +x conf$$.file
12227if test -x conf$$.file >/dev/null 2>&1; then
12228 ac_executable_p="test -x"
12229else
12230 ac_executable_p="test -f"
12231fi
12232rm -f conf$$.file
20e95c23 12233
d7040cdb
SE
12234# Extract the first word of "msgmerge", so it can be a program name with args.
12235set dummy msgmerge; ac_word=$2
81ecdfbb
RW
12236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12237$as_echo_n "checking for $ac_word... " >&6; }
12238if test "${ac_cv_path_MSGMERGE+set}" = set; then :
12239 $as_echo_n "(cached) " >&6
d7040cdb
SE
12240else
12241 case "$MSGMERGE" in
12242 [\\/]* | ?:[\\/]*)
12243 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12244 ;;
12245 *)
12246 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12247 for ac_dir in $PATH; do
12248 IFS="$ac_save_IFS"
12249 test -z "$ac_dir" && ac_dir=.
12250 for ac_exec_ext in '' $ac_executable_extensions; do
12251 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12252 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12253 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12254 break 2
12255 fi
12256 fi
12257 done
12258 done
12259 IFS="$ac_save_IFS"
12260 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12261 ;;
12262esac
12263fi
12264MSGMERGE="$ac_cv_path_MSGMERGE"
12265if test "$MSGMERGE" != ":"; then
81ecdfbb
RW
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12267$as_echo "$MSGMERGE" >&6; }
d7040cdb 12268else
81ecdfbb
RW
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12270$as_echo "no" >&6; }
d7040cdb 12271fi
20e95c23
DJ
12272
12273
d7040cdb
SE
12274 if test "$GMSGFMT" != ":"; then
12275 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12276 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12277 : ;
12278 else
12279 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
81ecdfbb
RW
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12281$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
d7040cdb
SE
12282 GMSGFMT=":"
12283 fi
12284 fi
20e95c23 12285
d7040cdb
SE
12286 if test "$XGETTEXT" != ":"; then
12287 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12288 (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
12289 : ;
12290 else
81ecdfbb
RW
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12292$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
d7040cdb
SE
12293 XGETTEXT=":"
12294 fi
12295 rm -f messages.po
20e95c23 12296 fi
42ecbf5e 12297
81ecdfbb 12298 ac_config_commands="$ac_config_commands default-1"
252b5132 12299
42ecbf5e 12300
252b5132 12301
42ecbf5e
DJ
12302
12303
d7040cdb 12304for ac_prog in 'bison -y' byacc
20e95c23 12305do
d7040cdb
SE
12306 # Extract the first word of "$ac_prog", so it can be a program name with args.
12307set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
12308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12309$as_echo_n "checking for $ac_word... " >&6; }
12310if test "${ac_cv_prog_YACC+set}" = set; then :
12311 $as_echo_n "(cached) " >&6
20e95c23 12312else
d7040cdb
SE
12313 if test -n "$YACC"; then
12314 ac_cv_prog_YACC="$YACC" # Let the user override the test.
42ecbf5e 12315else
d7040cdb
SE
12316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12317for as_dir in $PATH
12318do
12319 IFS=$as_save_IFS
12320 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12321 for ac_exec_ext in '' $ac_executable_extensions; do
12322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 12323 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 12324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
12325 break 2
12326 fi
12327done
81ecdfbb
RW
12328 done
12329IFS=$as_save_IFS
42ecbf5e 12330
42ecbf5e 12331fi
e5a52504 12332fi
d7040cdb
SE
12333YACC=$ac_cv_prog_YACC
12334if test -n "$YACC"; then
81ecdfbb
RW
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12336$as_echo "$YACC" >&6; }
42ecbf5e 12337else
81ecdfbb
RW
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12339$as_echo "no" >&6; }
42ecbf5e 12340fi
252b5132 12341
81ecdfbb 12342
d7040cdb 12343 test -n "$YACC" && break
42ecbf5e 12344done
d7040cdb 12345test -n "$YACC" || YACC="yacc"
d15b04bd 12346
d7040cdb
SE
12347for ac_prog in flex lex
12348do
12349 # Extract the first word of "$ac_prog", so it can be a program name with args.
12350set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
12351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12352$as_echo_n "checking for $ac_word... " >&6; }
12353if test "${ac_cv_prog_LEX+set}" = set; then :
12354 $as_echo_n "(cached) " >&6
d15b04bd 12355else
d7040cdb
SE
12356 if test -n "$LEX"; then
12357 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12358else
12359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12360for as_dir in $PATH
12361do
12362 IFS=$as_save_IFS
12363 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12364 for ac_exec_ext in '' $ac_executable_extensions; do
12365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 12366 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 12367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
12368 break 2
12369 fi
12370done
81ecdfbb
RW
12371 done
12372IFS=$as_save_IFS
d7040cdb
SE
12373
12374fi
12375fi
12376LEX=$ac_cv_prog_LEX
12377if test -n "$LEX"; then
81ecdfbb
RW
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12379$as_echo "$LEX" >&6; }
d7040cdb 12380else
81ecdfbb
RW
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12382$as_echo "no" >&6; }
d15b04bd 12383fi
e5a52504 12384
81ecdfbb 12385
d7040cdb
SE
12386 test -n "$LEX" && break
12387done
12388test -n "$LEX" || LEX=":"
42ecbf5e 12389
81ecdfbb
RW
12390if test "x$LEX" != "x:"; then
12391 cat >conftest.l <<_ACEOF
12392%%
12393a { ECHO; }
12394b { REJECT; }
12395c { yymore (); }
12396d { yyless (1); }
12397e { yyless (input () != 0); }
12398f { unput (yytext[0]); }
12399. { BEGIN INITIAL; }
12400%%
12401#ifdef YYTEXT_POINTER
12402extern char *yytext;
d7040cdb 12403#endif
42ecbf5e 12404int
81ecdfbb 12405main (void)
42ecbf5e 12406{
81ecdfbb 12407 return ! yylex () + ! yywrap ();
42ecbf5e
DJ
12408}
12409_ACEOF
81ecdfbb
RW
12410{ { ac_try="$LEX conftest.l"
12411case "(($ac_try" in
12412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12413 *) ac_try_echo=$ac_try;;
12414esac
12415eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12416$as_echo "$ac_try_echo"; } >&5
12417 (eval "$LEX conftest.l") 2>&5
42ecbf5e 12418 ac_status=$?
81ecdfbb
RW
12419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12420 test $ac_status = 0; }
12421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12422$as_echo_n "checking lex output file root... " >&6; }
12423if test "${ac_cv_prog_lex_root+set}" = set; then :
12424 $as_echo_n "(cached) " >&6
42ecbf5e 12425else
42ecbf5e 12426
81ecdfbb
RW
12427if test -f lex.yy.c; then
12428 ac_cv_prog_lex_root=lex.yy
12429elif test -f lexyy.c; then
12430 ac_cv_prog_lex_root=lexyy
12431else
12432 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
42ecbf5e 12433fi
42ecbf5e 12434fi
81ecdfbb
RW
12435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12436$as_echo "$ac_cv_prog_lex_root" >&6; }
12437LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
20e95c23 12438
81ecdfbb
RW
12439if test -z "${LEXLIB+set}"; then
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12441$as_echo_n "checking lex library... " >&6; }
12442if test "${ac_cv_lib_lex+set}" = set; then :
12443 $as_echo_n "(cached) " >&6
252b5132 12444else
20e95c23 12445
81ecdfbb
RW
12446 ac_save_LIBS=$LIBS
12447 ac_cv_lib_lex='none needed'
12448 for ac_lib in '' -lfl -ll; do
12449 LIBS="$ac_lib $ac_save_LIBS"
12450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12451/* end confdefs.h. */
12452`cat $LEX_OUTPUT_ROOT.c`
12453_ACEOF
12454if ac_fn_c_try_link "$LINENO"; then :
12455 ac_cv_lib_lex=$ac_lib
20e95c23 12456fi
81ecdfbb
RW
12457rm -f core conftest.err conftest.$ac_objext \
12458 conftest$ac_exeext conftest.$ac_ext
12459 test "$ac_cv_lib_lex" != 'none needed' && break
12460 done
12461 LIBS=$ac_save_LIBS
20e95c23
DJ
12462
12463fi
81ecdfbb
RW
12464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12465$as_echo "$ac_cv_lib_lex" >&6; }
12466 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
d7040cdb 12467fi
20e95c23 12468
20e95c23 12469
81ecdfbb
RW
12470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12471$as_echo_n "checking whether yytext is a pointer... " >&6; }
12472if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
12473 $as_echo_n "(cached) " >&6
d7040cdb
SE
12474else
12475 # POSIX says lex can declare yytext either as a pointer or an array; the
81ecdfbb 12476# default is implementation-dependent. Figure out which it is, since
d7040cdb
SE
12477# not all implementations provide the %pointer and %array declarations.
12478ac_cv_prog_lex_yytext_pointer=no
d7040cdb 12479ac_save_LIBS=$LIBS
81ecdfbb
RW
12480LIBS="$LEXLIB $ac_save_LIBS"
12481cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12482/* end confdefs.h. */
12483#define YYTEXT_POINTER 1
d7040cdb 12484`cat $LEX_OUTPUT_ROOT.c`
20e95c23 12485_ACEOF
81ecdfbb 12486if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 12487 ac_cv_prog_lex_yytext_pointer=yes
d7040cdb 12488fi
81ecdfbb
RW
12489rm -f core conftest.err conftest.$ac_objext \
12490 conftest$ac_exeext conftest.$ac_ext
d7040cdb 12491LIBS=$ac_save_LIBS
d7040cdb
SE
12492
12493fi
81ecdfbb
RW
12494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12495$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
d7040cdb
SE
12496if test $ac_cv_prog_lex_yytext_pointer = yes; then
12497
81ecdfbb 12498$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
d7040cdb
SE
12499
12500fi
81ecdfbb 12501rm -f conftest.l $LEX_OUTPUT_ROOT.c
d7040cdb
SE
12502
12503fi
12504if test "$LEX" = :; then
12505 LEX=${am_missing_run}flex
12506fi
12507
81ecdfbb
RW
12508
12509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12510$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12511 # Check whether --enable-maintainer-mode was given.
12512if test "${enable_maintainer_mode+set}" = set; then :
12513 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
252b5132 12514else
d7040cdb 12515 USE_MAINTAINER_MODE=no
81ecdfbb 12516fi
d7040cdb 12517
81ecdfbb
RW
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12519$as_echo "$USE_MAINTAINER_MODE" >&6; }
12520 if test $USE_MAINTAINER_MODE = yes; then
d7040cdb
SE
12521 MAINTAINER_MODE_TRUE=
12522 MAINTAINER_MODE_FALSE='#'
12523else
12524 MAINTAINER_MODE_TRUE='#'
12525 MAINTAINER_MODE_FALSE=
252b5132 12526fi
252b5132 12527
d7040cdb
SE
12528 MAINT=$MAINTAINER_MODE_TRUE
12529
12530
81ecdfbb 12531 if false; then
d7040cdb
SE
12532 GENINSRC_NEVER_TRUE=
12533 GENINSRC_NEVER_FALSE='#'
12534else
12535 GENINSRC_NEVER_TRUE='#'
12536 GENINSRC_NEVER_FALSE=
252b5132
RH
12537fi
12538
81ecdfbb
RW
12539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
12540$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
12541if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
12542 $as_echo_n "(cached) " >&6
eccbf555
AM
12543else
12544 echo abfoo >t1
12545 echo cdfoo >t2
12546 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
12547 if cmp t1 t2 2 2 > /dev/null 2>&1; then
12548 if cmp t1 t2 1 1 > /dev/null 2>&1; then
12549 :
12550 else
12551 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
12552 fi
12553 fi
12554 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
12555 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
12556 :
12557 else
12558 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
12559 fi
12560 fi
12561 rm t1 t2
12562
12563fi
81ecdfbb
RW
12564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
12565$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
eccbf555
AM
12566do_compare="$gcc_cv_prog_cmp_skip"
12567
12568
d7040cdb
SE
12569
12570. ${srcdir}/configure.host
12571
12572
12573
12574
252b5132
RH
12575
12576
a3ffa599 12577for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h sys/param.h
81ecdfbb
RW
12578do :
12579 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12580ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12581eval as_val=\$$as_ac_Header
12582 if test "x$as_val" = x""yes; then :
42ecbf5e 12583 cat >>confdefs.h <<_ACEOF
81ecdfbb 12584#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
42ecbf5e
DJ
12585_ACEOF
12586
12587fi
12588
252b5132
RH
12589done
12590
dc27aea4 12591for ac_func in glob mkstemp realpath sbrk waitpid
81ecdfbb
RW
12592do :
12593 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12594ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12595eval as_val=\$$as_ac_var
12596 if test "x$as_val" = x""yes; then :
42ecbf5e 12597 cat >>confdefs.h <<_ACEOF
81ecdfbb 12598#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42ecbf5e 12599_ACEOF
252b5132 12600
252b5132
RH
12601fi
12602done
12603
12604ac_header_dirent=no
42ecbf5e 12605for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
81ecdfbb
RW
12606 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
12608$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
12609if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
12610 $as_echo_n "(cached) " >&6
12611else
12612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 12613/* end confdefs.h. */
252b5132
RH
12614#include <sys/types.h>
12615#include <$ac_hdr>
42ecbf5e
DJ
12616
12617int
12618main ()
12619{
12620if ((DIR *) 0)
12621return 0;
12622 ;
12623 return 0;
12624}
12625_ACEOF
81ecdfbb 12626if ac_fn_c_try_compile "$LINENO"; then :
42ecbf5e
DJ
12627 eval "$as_ac_Header=yes"
12628else
81ecdfbb 12629 eval "$as_ac_Header=no"
42ecbf5e 12630fi
81ecdfbb 12631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e 12632fi
81ecdfbb
RW
12633eval ac_res=\$$as_ac_Header
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12635$as_echo "$ac_res" >&6; }
12636eval as_val=\$$as_ac_Header
12637 if test "x$as_val" = x""yes; then :
42ecbf5e 12638 cat >>confdefs.h <<_ACEOF
81ecdfbb 12639#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
42ecbf5e
DJ
12640_ACEOF
12641
12642ac_header_dirent=$ac_hdr; break
d15b04bd 12643fi
42ecbf5e 12644
d15b04bd
L
12645done
12646# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12647if test $ac_header_dirent = dirent.h; then
81ecdfbb
RW
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12649$as_echo_n "checking for library containing opendir... " >&6; }
12650if test "${ac_cv_search_opendir+set}" = set; then :
12651 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
12652else
12653 ac_func_search_save_LIBS=$LIBS
81ecdfbb 12654cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
12655/* end confdefs.h. */
12656
81ecdfbb
RW
12657/* Override any GCC internal prototype to avoid an error.
12658 Use char because int might match the return type of a GCC
12659 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
12660#ifdef __cplusplus
12661extern "C"
12662#endif
42ecbf5e
DJ
12663char opendir ();
12664int
12665main ()
12666{
81ecdfbb 12667return opendir ();
42ecbf5e
DJ
12668 ;
12669 return 0;
12670}
12671_ACEOF
81ecdfbb
RW
12672for ac_lib in '' dir; do
12673 if test -z "$ac_lib"; then
12674 ac_res="none required"
12675 else
12676 ac_res=-l$ac_lib
42ecbf5e 12677 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
12678 fi
12679 if ac_fn_c_try_link "$LINENO"; then :
12680 ac_cv_search_opendir=$ac_res
12681fi
12682rm -f core conftest.err conftest.$ac_objext \
12683 conftest$ac_exeext
12684 if test "${ac_cv_search_opendir+set}" = set; then :
12685 break
12686fi
12687done
12688if test "${ac_cv_search_opendir+set}" = set; then :
e5a52504 12689
42ecbf5e 12690else
81ecdfbb 12691 ac_cv_search_opendir=no
252b5132 12692fi
81ecdfbb 12693rm conftest.$ac_ext
42ecbf5e
DJ
12694LIBS=$ac_func_search_save_LIBS
12695fi
81ecdfbb
RW
12696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12697$as_echo "$ac_cv_search_opendir" >&6; }
12698ac_res=$ac_cv_search_opendir
12699if test "$ac_res" != no; then :
12700 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e 12701
d15b04bd 12702fi
252b5132
RH
12703
12704else
81ecdfbb
RW
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12706$as_echo_n "checking for library containing opendir... " >&6; }
12707if test "${ac_cv_search_opendir+set}" = set; then :
12708 $as_echo_n "(cached) " >&6
252b5132 12709else
42ecbf5e 12710 ac_func_search_save_LIBS=$LIBS
81ecdfbb 12711cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
12712/* end confdefs.h. */
12713
81ecdfbb
RW
12714/* Override any GCC internal prototype to avoid an error.
12715 Use char because int might match the return type of a GCC
12716 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
12717#ifdef __cplusplus
12718extern "C"
12719#endif
42ecbf5e
DJ
12720char opendir ();
12721int
12722main ()
12723{
81ecdfbb 12724return opendir ();
42ecbf5e
DJ
12725 ;
12726 return 0;
12727}
12728_ACEOF
81ecdfbb
RW
12729for ac_lib in '' x; do
12730 if test -z "$ac_lib"; then
12731 ac_res="none required"
12732 else
12733 ac_res=-l$ac_lib
42ecbf5e 12734 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
12735 fi
12736 if ac_fn_c_try_link "$LINENO"; then :
12737 ac_cv_search_opendir=$ac_res
12738fi
12739rm -f core conftest.err conftest.$ac_objext \
12740 conftest$ac_exeext
12741 if test "${ac_cv_search_opendir+set}" = set; then :
12742 break
12743fi
12744done
12745if test "${ac_cv_search_opendir+set}" = set; then :
252b5132 12746
42ecbf5e 12747else
81ecdfbb 12748 ac_cv_search_opendir=no
252b5132 12749fi
81ecdfbb 12750rm conftest.$ac_ext
42ecbf5e 12751LIBS=$ac_func_search_save_LIBS
252b5132 12752fi
81ecdfbb
RW
12753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12754$as_echo "$ac_cv_search_opendir" >&6; }
12755ac_res=$ac_cv_search_opendir
12756if test "$ac_res" != no; then :
12757 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e 12758
d15b04bd 12759fi
252b5132
RH
12760
12761fi
12762
12763
81ecdfbb
RW
12764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
12765$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
12766if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then :
12767 $as_echo_n "(cached) " >&6
34875e64 12768else
81ecdfbb 12769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 12770/* end confdefs.h. */
34875e64 12771#include <unistd.h>
42ecbf5e
DJ
12772int
12773main ()
12774{
34875e64 12775extern int getopt (int, char *const*, const char *);
42ecbf5e
DJ
12776 ;
12777 return 0;
12778}
12779_ACEOF
81ecdfbb 12780if ac_fn_c_try_compile "$LINENO"; then :
34875e64
NC
12781 ld_cv_decl_getopt_unistd_h=yes
12782else
81ecdfbb 12783 ld_cv_decl_getopt_unistd_h=no
34875e64 12784fi
81ecdfbb 12785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34875e64
NC
12786fi
12787
81ecdfbb
RW
12788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5
12789$as_echo "$ld_cv_decl_getopt_unistd_h" >&6; }
34875e64 12790if test $ld_cv_decl_getopt_unistd_h = yes; then
42ecbf5e 12791
81ecdfbb 12792$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
34875e64
NC
12793
12794fi
42ecbf5e 12795
252b5132
RH
12796
12797case "${host}" in
a8100d5b 12798*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
42ecbf5e 12799
81ecdfbb 12800$as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
252b5132
RH
12801 ;;
12802esac
12803
81ecdfbb
RW
12804ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
12805if test "x$ac_cv_have_decl_strstr" = x""yes; then :
12806 ac_have_decl=1
252b5132 12807else
81ecdfbb
RW
12808 ac_have_decl=0
12809fi
502bdb00 12810
81ecdfbb
RW
12811cat >>confdefs.h <<_ACEOF
12812#define HAVE_DECL_STRSTR $ac_have_decl
42ecbf5e 12813_ACEOF
81ecdfbb
RW
12814ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
12815if test "x$ac_cv_have_decl_free" = x""yes; then :
12816 ac_have_decl=1
252b5132 12817else
81ecdfbb 12818 ac_have_decl=0
252b5132
RH
12819fi
12820
502bdb00 12821cat >>confdefs.h <<_ACEOF
81ecdfbb 12822#define HAVE_DECL_FREE $ac_have_decl
502bdb00 12823_ACEOF
81ecdfbb
RW
12824ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
12825if test "x$ac_cv_have_decl_sbrk" = x""yes; then :
12826 ac_have_decl=1
12827else
12828 ac_have_decl=0
12829fi
42ecbf5e 12830
81ecdfbb
RW
12831cat >>confdefs.h <<_ACEOF
12832#define HAVE_DECL_SBRK $ac_have_decl
12833_ACEOF
12834ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
12835if test "x$ac_cv_have_decl_getenv" = x""yes; then :
12836 ac_have_decl=1
12837else
12838 ac_have_decl=0
12839fi
502bdb00 12840
81ecdfbb
RW
12841cat >>confdefs.h <<_ACEOF
12842#define HAVE_DECL_GETENV $ac_have_decl
12843_ACEOF
12844ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
12845if test "x$ac_cv_have_decl_environ" = x""yes; then :
12846 ac_have_decl=1
502bdb00 12847else
81ecdfbb
RW
12848 ac_have_decl=0
12849fi
12850
12851cat >>confdefs.h <<_ACEOF
12852#define HAVE_DECL_ENVIRON $ac_have_decl
42ecbf5e 12853_ACEOF
252b5132 12854
252b5132 12855
81ecdfbb
RW
12856# Link in zlib if we can. This is needed only for the bootstrap tests
12857# right now, since those tests use libbfd, which depends on zlib.
12858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
12859$as_echo_n "checking for library containing zlibVersion... " >&6; }
12860if test "${ac_cv_search_zlibVersion+set}" = set; then :
12861 $as_echo_n "(cached) " >&6
252b5132 12862else
81ecdfbb
RW
12863 ac_func_search_save_LIBS=$LIBS
12864cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 12865/* end confdefs.h. */
502bdb00 12866
81ecdfbb
RW
12867/* Override any GCC internal prototype to avoid an error.
12868 Use char because int might match the return type of a GCC
4474d12b 12869 builtin and then its argument prototype would still apply. */
4474d12b
CS
12870#ifdef __cplusplus
12871extern "C"
12872#endif
4474d12b
CS
12873char zlibVersion ();
12874int
12875main ()
12876{
81ecdfbb 12877return zlibVersion ();
4474d12b
CS
12878 ;
12879 return 0;
12880}
12881_ACEOF
81ecdfbb
RW
12882for ac_lib in '' z; do
12883 if test -z "$ac_lib"; then
12884 ac_res="none required"
4474d12b 12885 else
81ecdfbb
RW
12886 ac_res=-l$ac_lib
12887 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4474d12b 12888 fi
81ecdfbb
RW
12889 if ac_fn_c_try_link "$LINENO"; then :
12890 ac_cv_search_zlibVersion=$ac_res
4474d12b 12891fi
81ecdfbb
RW
12892rm -f core conftest.err conftest.$ac_objext \
12893 conftest$ac_exeext
12894 if test "${ac_cv_search_zlibVersion+set}" = set; then :
12895 break
4474d12b 12896fi
81ecdfbb
RW
12897done
12898if test "${ac_cv_search_zlibVersion+set}" = set; then :
4474d12b 12899
4474d12b 12900else
81ecdfbb 12901 ac_cv_search_zlibVersion=no
4474d12b 12902fi
81ecdfbb
RW
12903rm conftest.$ac_ext
12904LIBS=$ac_func_search_save_LIBS
4474d12b 12905fi
81ecdfbb
RW
12906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
12907$as_echo "$ac_cv_search_zlibVersion" >&6; }
12908ac_res=$ac_cv_search_zlibVersion
12909if test "$ac_res" != no; then :
12910 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12911 for ac_header in zlib.h
12912do :
12913 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12914if test "x$ac_cv_header_zlib_h" = x""yes; then :
4474d12b 12915 cat >>confdefs.h <<_ACEOF
81ecdfbb 12916#define HAVE_ZLIB_H 1
4474d12b
CS
12917_ACEOF
12918
12919fi
12920
12921done
12922
12923fi
12924
12925
597e2591
ILT
12926# When converting linker scripts into strings for use in emulation
12927# files, use astring.sed if the compiler supports ANSI string
12928# concatenation, or ostring.sed otherwise. This is to support the
12929# broken Microsoft MSVC compiler, which limits the length of string
12930# constants, while still supporting pre-ANSI compilers which do not
12931# support string concatenation.
81ecdfbb
RW
12932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ANSI C string concatenation works" >&5
12933$as_echo_n "checking whether ANSI C string concatenation works... " >&6; }
12934if test "${ld_cv_string_concatenation+set}" = set; then :
12935 $as_echo_n "(cached) " >&6
42ecbf5e 12936else
81ecdfbb 12937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 12938/* end confdefs.h. */
81ecdfbb 12939
314e9a4e
L
12940int
12941main ()
12942{
81ecdfbb 12943char *a = "a" "a";
314e9a4e
L
12944 ;
12945 return 0;
12946}
12947_ACEOF
81ecdfbb
RW
12948if ac_fn_c_try_compile "$LINENO"; then :
12949 ld_cv_string_concatenation=yes
314e9a4e 12950else
81ecdfbb 12951 ld_cv_string_concatenation=no
314e9a4e 12952fi
81ecdfbb 12953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
314e9a4e 12954fi
81ecdfbb
RW
12955
12956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_string_concatenation" >&5
12957$as_echo "$ld_cv_string_concatenation" >&6; }
12958if test "$ld_cv_string_concatenation" = "yes"; then
12959 STRINGIFY=astring.sed
12960else
12961 STRINGIFY=ostring.sed
314e9a4e 12962fi
81ecdfbb
RW
12963
12964
12965# target-specific stuff:
12966
12967all_targets=
12968EMUL=
12969all_emuls=
12970all_emul_extras=
12971all_libpath=
12972
12973rm -f tdirs
12974
12975for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
12976do
12977 if test "$targ_alias" = "all"; then
12978 all_targets=true
12979 else
12980 # Canonicalize the secondary target names.
12981 result=`$ac_config_sub $targ_alias 2>/dev/null`
12982 if test -n "$result"; then
12983 targ=$result
12984 else
12985 targ=$targ_alias
12986 fi
12987
12988 . ${srcdir}/configure.tgt
12989
12990 if test "$targ" = "$target"; then
12991 EMUL=$targ_emul
12992 fi
12993
12994 if test x${want64} = xfalse; then
12995 . ${srcdir}/../bfd/config.bfd
12996 fi
12997
12998 if test x${want64} = xtrue; then
12999 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
13000 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
13001 fi
13002
13003 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
13004 case " $all_emuls " in
13005 *" e${i}.o "*) ;;
13006 *)
13007 all_emuls="$all_emuls e${i}.o"
13008 eval result=\$tdir_$i
13009 test -z "$result" && result=$targ_alias
13010 echo tdir_$i=$result >> tdirs
13011 ;;
13012 esac
13013 done
13014
13015 for i in $targ_emul $targ_extra_libpath; do
13016 case " $all_libpath " in
13017 *" ${i} "*) ;;
13018 *)
13019 if test -z "$all_libpath"; then
13020 all_libpath=${i}
13021 else
13022 all_libpath="$all_libpath ${i}"
13023 fi
13024 ;;
13025 esac
13026 done
13027
13028 for i in $targ_extra_ofiles; do
13029 case " $all_emul_extras " in
13030 *" ${i} "*) ;;
13031 *)
13032 all_emul_extras="$all_emul_extras ${i}"
13033 ;;
13034 esac
13035 done
13036 fi
13037done
13038
13039
13040
13041TDIRS=tdirs
13042
13043
13044if test x${all_targets} = xtrue; then
13045 if test x${want64} = xfalse; then
13046 # The cast to long int works around a bug in the HP C Compiler
13047# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13048# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13049# This bug is HP SR number 8606223364.
13050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13051$as_echo_n "checking size of long... " >&6; }
13052if test "${ac_cv_sizeof_long+set}" = set; then :
13053 $as_echo_n "(cached) " >&6
13054else
13055 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13056
314e9a4e 13057else
81ecdfbb
RW
13058 if test "$ac_cv_type_long" = yes; then
13059 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13060$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13061{ as_fn_set_status 77
13062as_fn_error "cannot compute sizeof (long)
13063See \`config.log' for more details." "$LINENO" 5; }; }
13064 else
13065 ac_cv_sizeof_long=0
13066 fi
314e9a4e 13067fi
81ecdfbb 13068
314e9a4e 13069fi
81ecdfbb
RW
13070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13071$as_echo "$ac_cv_sizeof_long" >&6; }
13072
13073
13074
314e9a4e
L
13075cat >>confdefs.h <<_ACEOF
13076#define SIZEOF_LONG $ac_cv_sizeof_long
13077_ACEOF
13078
13079
13080 if test "x${ac_cv_sizeof_long}" = "x8"; then
13081 want64=true
13082 fi
13083 fi
42ecbf5e
DJ
13084 if test x${want64} = xtrue; then
13085 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
13086 else
13087 EMULATION_OFILES='$(ALL_EMULATIONS)'
13088 fi
13089 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
13090else
13091 EMULATION_OFILES=$all_emuls
13092 EMUL_EXTRA_OFILES=$all_emul_extras
13093fi
13094
13095
13096
13097
13098EMULATION_LIBPATH=$all_libpath
13099
13100
13101if test x${enable_static} = xno; then
13102 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
13103else
13104 TESTBFDLIB="../bfd/.libs/libbfd.a"
13105fi
13106
13107
13108target_vendor=${target_vendor=$host_vendor}
13109case "$target_vendor" in
13110 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
13111 *) EXTRA_SHLIB_EXTENSION= ;;
13112esac
13113
13114case "$target_os" in
13115 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
13116esac
13117
13118if test x${EXTRA_SHLIB_EXTENSION} != x ; then
13119
13120cat >>confdefs.h <<_ACEOF
13121#define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
13122_ACEOF
13123
13124fi
13125
108a6f8e
CD
13126
13127
13128
13129
31dd3154 13130
81ecdfbb 13131ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
da594c4a 13132
42ecbf5e
DJ
13133cat >confcache <<\_ACEOF
13134# This file is a shell script that caches the results of configure
13135# tests run on this system so they can be shared between configure
13136# scripts and configure runs, see configure's option --config-cache.
13137# It is not useful on other systems. If it contains results you don't
13138# want to keep, you may remove or edit it.
13139#
13140# config.status only pays attention to the cache file if you give it
13141# the --recheck option to rerun configure.
13142#
13143# `ac_cv_env_foo' variables (set or unset) will be overridden when
13144# loading this file, other *unset* `ac_cv_foo' will be assigned the
13145# following values.
13146
13147_ACEOF
13148
13149# The following way of writing the cache mishandles newlines in values,
13150# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 13151# So, we kill variables containing newlines.
42ecbf5e
DJ
13152# Ultrix sh set writes to stderr and can't be redirected directly,
13153# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
13154(
13155 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13156 eval ac_val=\$$ac_var
13157 case $ac_val in #(
13158 *${as_nl}*)
13159 case $ac_var in #(
13160 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13161$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13162 esac
13163 case $ac_var in #(
13164 _ | IFS | as_nl) ;; #(
13165 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13166 *) { eval $ac_var=; unset $ac_var;} ;;
13167 esac ;;
13168 esac
13169 done
13170
42ecbf5e 13171 (set) 2>&1 |
81ecdfbb
RW
13172 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13173 *${as_nl}ac_space=\ *)
13174 # `set' does not quote correctly, so add quotes: double-quote
13175 # substitution turns \\\\ into \\, and sed turns \\ into \.
42ecbf5e
DJ
13176 sed -n \
13177 "s/'/'\\\\''/g;
13178 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 13179 ;; #(
42ecbf5e
DJ
13180 *)
13181 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 13182 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42ecbf5e 13183 ;;
81ecdfbb
RW
13184 esac |
13185 sort
13186) |
42ecbf5e 13187 sed '
81ecdfbb 13188 /^ac_cv_env_/b end
42ecbf5e 13189 t clear
81ecdfbb 13190 :clear
42ecbf5e
DJ
13191 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13192 t end
81ecdfbb
RW
13193 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13194 :end' >>confcache
13195if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13196 if test -w "$cache_file"; then
13197 test "x$cache_file" != "x/dev/null" &&
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13199$as_echo "$as_me: updating cache $cache_file" >&6;}
42ecbf5e
DJ
13200 cat confcache >$cache_file
13201 else
81ecdfbb
RW
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13203$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
42ecbf5e
DJ
13204 fi
13205fi
13206rm -f confcache
13207
13208test "x$prefix" = xNONE && prefix=$ac_default_prefix
13209# Let make expand exec_prefix.
13210test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13211
42ecbf5e
DJ
13212DEFS=-DHAVE_CONFIG_H
13213
13214ac_libobjs=
13215ac_ltlibobjs=
13216for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13217 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
13218 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13219 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13220 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13221 # will be set to the directory where LIBOBJS objects are built.
13222 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13223 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
42ecbf5e
DJ
13224done
13225LIBOBJS=$ac_libobjs
13226
13227LTLIBOBJS=$ac_ltlibobjs
13228
13229
13230if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
81ecdfbb
RW
13231 as_fn_error "conditional \"AMDEP\" was never defined.
13232Usually this means the macro was only invoked conditionally." "$LINENO" 5
42ecbf5e
DJ
13233fi
13234if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
81ecdfbb
RW
13235 as_fn_error "conditional \"am__fastdepCC\" was never defined.
13236Usually this means the macro was only invoked conditionally." "$LINENO" 5
13237fi
13238 if test -n "$EXEEXT"; then
13239 am__EXEEXT_TRUE=
13240 am__EXEEXT_FALSE='#'
13241else
13242 am__EXEEXT_TRUE='#'
13243 am__EXEEXT_FALSE=
42ecbf5e 13244fi
81ecdfbb 13245
64ac50ac
RW
13246if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13247 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13248Usually this means the macro was only invoked conditionally." "$LINENO" 5
13249fi
42ecbf5e 13250if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
81ecdfbb
RW
13251 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13252Usually this means the macro was only invoked conditionally." "$LINENO" 5
42ecbf5e 13253fi
d5fbea21 13254if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
81ecdfbb
RW
13255 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
13256Usually this means the macro was only invoked conditionally." "$LINENO" 5
d5fbea21 13257fi
42ecbf5e
DJ
13258
13259: ${CONFIG_STATUS=./config.status}
81ecdfbb 13260ac_write_fail=0
42ecbf5e
DJ
13261ac_clean_files_save=$ac_clean_files
13262ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
13263{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13264$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13265as_write_fail=0
13266cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
42ecbf5e
DJ
13267#! $SHELL
13268# Generated by $as_me.
13269# Run this file to recreate the current configuration.
13270# Compiler output produced by configure, useful for debugging
13271# configure, is in config.log if it exists.
13272
13273debug=false
13274ac_cs_recheck=false
13275ac_cs_silent=false
42ecbf5e 13276
81ecdfbb
RW
13277SHELL=\${CONFIG_SHELL-$SHELL}
13278export SHELL
13279_ASEOF
13280cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13281## -------------------- ##
13282## M4sh Initialization. ##
13283## -------------------- ##
42ecbf5e 13284
81ecdfbb
RW
13285# Be more Bourne compatible
13286DUALCASE=1; export DUALCASE # for MKS sh
13287if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
42ecbf5e
DJ
13288 emulate sh
13289 NULLCMD=:
81ecdfbb 13290 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
42ecbf5e
DJ
13291 # is contrary to our usage. Disable this feature.
13292 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
13293 setopt NO_GLOB_SUBST
13294else
13295 case `(set -o) 2>/dev/null` in #(
13296 *posix*) :
13297 set -o posix ;; #(
13298 *) :
13299 ;;
13300esac
42ecbf5e 13301fi
42ecbf5e 13302
81ecdfbb
RW
13303
13304as_nl='
13305'
13306export as_nl
13307# Printing a long string crashes Solaris 7 /usr/bin/printf.
13308as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13309as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13310as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13311# Prefer a ksh shell builtin over an external printf program on Solaris,
13312# but without wasting forks for bash or zsh.
13313if test -z "$BASH_VERSION$ZSH_VERSION" \
13314 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13315 as_echo='print -r --'
13316 as_echo_n='print -rn --'
13317elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13318 as_echo='printf %s\n'
13319 as_echo_n='printf %s'
13320else
13321 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13322 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13323 as_echo_n='/usr/ucb/echo -n'
13324 else
13325 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13326 as_echo_n_body='eval
13327 arg=$1;
13328 case $arg in #(
13329 *"$as_nl"*)
13330 expr "X$arg" : "X\\(.*\\)$as_nl";
13331 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13332 esac;
13333 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13334 '
13335 export as_echo_n_body
13336 as_echo_n='sh -c $as_echo_n_body as_echo'
13337 fi
13338 export as_echo_body
13339 as_echo='sh -c $as_echo_body as_echo'
13340fi
13341
13342# The user is always right.
13343if test "${PATH_SEPARATOR+set}" != set; then
13344 PATH_SEPARATOR=:
13345 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13346 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13347 PATH_SEPARATOR=';'
13348 }
42ecbf5e
DJ
13349fi
13350
13351
81ecdfbb
RW
13352# IFS
13353# We need space, tab and new line, in precisely that order. Quoting is
13354# there to prevent editors from complaining about space-tab.
13355# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13356# splitting by setting IFS to empty value.)
13357IFS=" "" $as_nl"
13358
13359# Find who we are. Look in the path if we contain no directory separator.
13360case $0 in #((
13361 *[\\/]* ) as_myself=$0 ;;
13362 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13363for as_dir in $PATH
13364do
13365 IFS=$as_save_IFS
13366 test -z "$as_dir" && as_dir=.
13367 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13368 done
13369IFS=$as_save_IFS
13370
13371 ;;
13372esac
13373# We did not find ourselves, most probably we were run as `sh COMMAND'
13374# in which case we are not to be found in the path.
13375if test "x$as_myself" = x; then
13376 as_myself=$0
13377fi
13378if test ! -f "$as_myself"; then
13379 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13380 exit 1
13381fi
13382
13383# Unset variables that we do not need and which cause bugs (e.g. in
13384# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13385# suppresses any "Segmentation fault" message there. '((' could
13386# trigger a bug in pdksh 5.2.14.
13387for as_var in BASH_ENV ENV MAIL MAILPATH
13388do eval test x\${$as_var+set} = xset \
13389 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13390done
42ecbf5e
DJ
13391PS1='$ '
13392PS2='> '
13393PS4='+ '
13394
13395# NLS nuisances.
81ecdfbb
RW
13396LC_ALL=C
13397export LC_ALL
13398LANGUAGE=C
13399export LANGUAGE
13400
13401# CDPATH.
13402(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13403
13404
13405# as_fn_error ERROR [LINENO LOG_FD]
13406# ---------------------------------
13407# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13408# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13409# script with status $?, using 1 if that was 0.
13410as_fn_error ()
13411{
13412 as_status=$?; test $as_status -eq 0 && as_status=1
13413 if test "$3"; then
13414 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13415 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
42ecbf5e 13416 fi
81ecdfbb
RW
13417 $as_echo "$as_me: error: $1" >&2
13418 as_fn_exit $as_status
13419} # as_fn_error
13420
13421
13422# as_fn_set_status STATUS
13423# -----------------------
13424# Set $? to STATUS, without forking.
13425as_fn_set_status ()
13426{
13427 return $1
13428} # as_fn_set_status
13429
13430# as_fn_exit STATUS
13431# -----------------
13432# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13433as_fn_exit ()
13434{
13435 set +e
13436 as_fn_set_status $1
13437 exit $1
13438} # as_fn_exit
13439
13440# as_fn_unset VAR
13441# ---------------
13442# Portably unset VAR.
13443as_fn_unset ()
13444{
13445 { eval $1=; unset $1;}
13446}
13447as_unset=as_fn_unset
13448# as_fn_append VAR VALUE
13449# ----------------------
13450# Append the text in VALUE to the end of the definition contained in VAR. Take
13451# advantage of any shell optimizations that allow amortized linear growth over
13452# repeated appends, instead of the typical quadratic growth present in naive
13453# implementations.
13454if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13455 eval 'as_fn_append ()
13456 {
13457 eval $1+=\$2
13458 }'
13459else
13460 as_fn_append ()
13461 {
13462 eval $1=\$$1\$2
13463 }
13464fi # as_fn_append
13465
13466# as_fn_arith ARG...
13467# ------------------
13468# Perform arithmetic evaluation on the ARGs, and store the result in the
13469# global $as_val. Take advantage of shells that can avoid forks. The arguments
13470# must be portable across $(()) and expr.
13471if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13472 eval 'as_fn_arith ()
13473 {
13474 as_val=$(( $* ))
13475 }'
13476else
13477 as_fn_arith ()
13478 {
13479 as_val=`expr "$@" || test $? -eq 1`
13480 }
13481fi # as_fn_arith
13482
42ecbf5e 13483
81ecdfbb
RW
13484if expr a : '\(a\)' >/dev/null 2>&1 &&
13485 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42ecbf5e
DJ
13486 as_expr=expr
13487else
13488 as_expr=false
13489fi
13490
81ecdfbb 13491if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42ecbf5e
DJ
13492 as_basename=basename
13493else
13494 as_basename=false
13495fi
13496
81ecdfbb
RW
13497if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13498 as_dirname=dirname
13499else
13500 as_dirname=false
13501fi
42ecbf5e 13502
81ecdfbb 13503as_me=`$as_basename -- "$0" ||
42ecbf5e
DJ
13504$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13505 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
13506 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13507$as_echo X/"$0" |
13508 sed '/^.*\/\([^/][^/]*\)\/*$/{
13509 s//\1/
13510 q
13511 }
13512 /^X\/\(\/\/\)$/{
13513 s//\1/
13514 q
13515 }
13516 /^X\/\(\/\).*/{
13517 s//\1/
13518 q
13519 }
13520 s/.*/./; q'`
42ecbf5e 13521
42ecbf5e
DJ
13522# Avoid depending upon Character Ranges.
13523as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13524as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13525as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13526as_cr_digits='0123456789'
13527as_cr_alnum=$as_cr_Letters$as_cr_digits
13528
81ecdfbb
RW
13529ECHO_C= ECHO_N= ECHO_T=
13530case `echo -n x` in #(((((
13531-n*)
13532 case `echo 'xy\c'` in
13533 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13534 xy) ECHO_C='\c';;
13535 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13536 ECHO_T=' ';;
13537 esac;;
13538*)
13539 ECHO_N='-n';;
42ecbf5e 13540esac
252b5132 13541
81ecdfbb
RW
13542rm -f conf$$ conf$$.exe conf$$.file
13543if test -d conf$$.dir; then
13544 rm -f conf$$.dir/conf$$.file
42ecbf5e 13545else
81ecdfbb
RW
13546 rm -f conf$$.dir
13547 mkdir conf$$.dir 2>/dev/null
42ecbf5e 13548fi
81ecdfbb
RW
13549if (echo >conf$$.file) 2>/dev/null; then
13550 if ln -s conf$$.file conf$$ 2>/dev/null; then
42ecbf5e 13551 as_ln_s='ln -s'
81ecdfbb
RW
13552 # ... but there are two gotchas:
13553 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13554 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13555 # In both cases, we have to default to `cp -p'.
13556 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13557 as_ln_s='cp -p'
13558 elif ln conf$$.file conf$$ 2>/dev/null; then
13559 as_ln_s=ln
13560 else
13561 as_ln_s='cp -p'
252b5132 13562 fi
e5a52504 13563else
42ecbf5e 13564 as_ln_s='cp -p'
e5a52504 13565fi
81ecdfbb
RW
13566rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13567rmdir conf$$.dir 2>/dev/null
13568
13569
13570# as_fn_mkdir_p
13571# -------------
13572# Create "$as_dir" as a directory, including parents if necessary.
13573as_fn_mkdir_p ()
13574{
13575
13576 case $as_dir in #(
13577 -*) as_dir=./$as_dir;;
13578 esac
13579 test -d "$as_dir" || eval $as_mkdir_p || {
13580 as_dirs=
13581 while :; do
13582 case $as_dir in #(
13583 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13584 *) as_qdir=$as_dir;;
13585 esac
13586 as_dirs="'$as_qdir' $as_dirs"
13587 as_dir=`$as_dirname -- "$as_dir" ||
13588$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13589 X"$as_dir" : 'X\(//\)[^/]' \| \
13590 X"$as_dir" : 'X\(//\)$' \| \
13591 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13592$as_echo X"$as_dir" |
13593 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13594 s//\1/
13595 q
13596 }
13597 /^X\(\/\/\)[^/].*/{
13598 s//\1/
13599 q
13600 }
13601 /^X\(\/\/\)$/{
13602 s//\1/
13603 q
13604 }
13605 /^X\(\/\).*/{
13606 s//\1/
13607 q
13608 }
13609 s/.*/./; q'`
13610 test -d "$as_dir" && break
13611 done
13612 test -z "$as_dirs" || eval "mkdir $as_dirs"
13613 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13614
252b5132 13615
81ecdfbb 13616} # as_fn_mkdir_p
42ecbf5e 13617if mkdir -p . 2>/dev/null; then
81ecdfbb 13618 as_mkdir_p='mkdir -p "$as_dir"'
42ecbf5e
DJ
13619else
13620 test -d ./-p && rmdir ./-p
13621 as_mkdir_p=false
13622fi
252b5132 13623
81ecdfbb
RW
13624if test -x / >/dev/null 2>&1; then
13625 as_test_x='test -x'
13626else
13627 if ls -dL / >/dev/null 2>&1; then
13628 as_ls_L_option=L
13629 else
13630 as_ls_L_option=
13631 fi
13632 as_test_x='
13633 eval sh -c '\''
13634 if test -d "$1"; then
13635 test -d "$1/.";
13636 else
13637 case $1 in #(
13638 -*)set "./$1";;
13639 esac;
13640 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13641 ???[sx]*):;;*)false;;esac;fi
13642 '\'' sh
13643 '
13644fi
13645as_executable_p=$as_test_x
252b5132 13646
42ecbf5e
DJ
13647# Sed expression to map a string onto a valid CPP name.
13648as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
f234d5fe 13649
42ecbf5e
DJ
13650# Sed expression to map a string onto a valid variable name.
13651as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
e5a52504 13652
e5a52504 13653
42ecbf5e 13654exec 6>&1
81ecdfbb
RW
13655## ----------------------------------- ##
13656## Main body of $CONFIG_STATUS script. ##
13657## ----------------------------------- ##
13658_ASEOF
13659test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
e5a52504 13660
81ecdfbb
RW
13661cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13662# Save the log message, to keep $0 and so on meaningful, and to
42ecbf5e 13663# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
13664# values after options handling.
13665ac_log="
42ecbf5e 13666This file was extended by $as_me, which was
81ecdfbb 13667generated by GNU Autoconf 2.64. Invocation command line was
42ecbf5e
DJ
13668
13669 CONFIG_FILES = $CONFIG_FILES
13670 CONFIG_HEADERS = $CONFIG_HEADERS
13671 CONFIG_LINKS = $CONFIG_LINKS
13672 CONFIG_COMMANDS = $CONFIG_COMMANDS
13673 $ $0 $@
e5a52504 13674
81ecdfbb
RW
13675on `(hostname || uname -n) 2>/dev/null | sed 1q`
13676"
13677
42ecbf5e
DJ
13678_ACEOF
13679
81ecdfbb
RW
13680case $ac_config_files in *"
13681"*) set x $ac_config_files; shift; ac_config_files=$*;;
13682esac
e5a52504 13683
81ecdfbb
RW
13684case $ac_config_headers in *"
13685"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13686esac
42ecbf5e 13687
42ecbf5e 13688
81ecdfbb
RW
13689cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13690# Files that config.status was made for.
13691config_files="$ac_config_files"
13692config_headers="$ac_config_headers"
13693config_commands="$ac_config_commands"
42ecbf5e 13694
81ecdfbb 13695_ACEOF
42ecbf5e 13696
81ecdfbb 13697cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e 13698ac_cs_usage="\
81ecdfbb
RW
13699\`$as_me' instantiates files and other configuration actions
13700from templates according to the current configuration. Unless the files
13701and actions are specified as TAGs, all are instantiated by default.
42ecbf5e 13702
81ecdfbb 13703Usage: $0 [OPTION]... [TAG]...
42ecbf5e
DJ
13704
13705 -h, --help print this help, then exit
81ecdfbb
RW
13706 -V, --version print version number and configuration settings, then exit
13707 -q, --quiet, --silent
13708 do not print progress messages
42ecbf5e
DJ
13709 -d, --debug don't remove temporary files
13710 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
13711 --file=FILE[:TEMPLATE]
13712 instantiate the configuration file FILE
13713 --header=FILE[:TEMPLATE]
13714 instantiate the configuration header FILE
42ecbf5e
DJ
13715
13716Configuration files:
13717$config_files
13718
13719Configuration headers:
13720$config_headers
13721
13722Configuration commands:
13723$config_commands
13724
81ecdfbb 13725Report bugs to the package provider."
42ecbf5e 13726
81ecdfbb
RW
13727_ACEOF
13728cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42ecbf5e
DJ
13729ac_cs_version="\\
13730config.status
81ecdfbb
RW
13731configured by $0, generated by GNU Autoconf 2.64,
13732 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
42ecbf5e 13733
81ecdfbb 13734Copyright (C) 2009 Free Software Foundation, Inc.
42ecbf5e
DJ
13735This config.status script is free software; the Free Software Foundation
13736gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
13737
13738ac_pwd='$ac_pwd'
13739srcdir='$srcdir'
13740INSTALL='$INSTALL'
13741MKDIR_P='$MKDIR_P'
13742AWK='$AWK'
13743test -n "\$AWK" || AWK=awk
42ecbf5e
DJ
13744_ACEOF
13745
81ecdfbb
RW
13746cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13747# The default lists apply if the user does not specify any file.
42ecbf5e
DJ
13748ac_need_defaults=:
13749while test $# != 0
13750do
13751 case $1 in
13752 --*=*)
81ecdfbb
RW
13753 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13754 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
42ecbf5e 13755 ac_shift=:
252b5132 13756 ;;
81ecdfbb 13757 *)
42ecbf5e
DJ
13758 ac_option=$1
13759 ac_optarg=$2
13760 ac_shift=shift
252b5132 13761 ;;
42ecbf5e 13762 esac
252b5132 13763
42ecbf5e
DJ
13764 case $ac_option in
13765 # Handling of the options.
42ecbf5e
DJ
13766 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13767 ac_cs_recheck=: ;;
81ecdfbb
RW
13768 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13769 $as_echo "$ac_cs_version"; exit ;;
13770 --debug | --debu | --deb | --de | --d | -d )
42ecbf5e
DJ
13771 debug=: ;;
13772 --file | --fil | --fi | --f )
13773 $ac_shift
81ecdfbb
RW
13774 case $ac_optarg in
13775 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13776 esac
13777 as_fn_append CONFIG_FILES " '$ac_optarg'"
42ecbf5e
DJ
13778 ac_need_defaults=false;;
13779 --header | --heade | --head | --hea )
13780 $ac_shift
81ecdfbb
RW
13781 case $ac_optarg in
13782 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13783 esac
13784 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
42ecbf5e 13785 ac_need_defaults=false;;
81ecdfbb
RW
13786 --he | --h)
13787 # Conflict between --help and --header
13788 as_fn_error "ambiguous option: \`$1'
13789Try \`$0 --help' for more information.";;
13790 --help | --hel | -h )
13791 $as_echo "$ac_cs_usage"; exit ;;
42ecbf5e
DJ
13792 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13793 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13794 ac_cs_silent=: ;;
252b5132 13795
42ecbf5e 13796 # This is an error.
81ecdfbb
RW
13797 -*) as_fn_error "unrecognized option: \`$1'
13798Try \`$0 --help' for more information." ;;
252b5132 13799
81ecdfbb
RW
13800 *) as_fn_append ac_config_targets " $1"
13801 ac_need_defaults=false ;;
252b5132 13802
42ecbf5e
DJ
13803 esac
13804 shift
13805done
d15b04bd 13806
42ecbf5e 13807ac_configure_extra_args=
e5a52504 13808
42ecbf5e
DJ
13809if $ac_cs_silent; then
13810 exec 6>/dev/null
13811 ac_configure_extra_args="$ac_configure_extra_args --silent"
13812fi
e5a52504 13813
42ecbf5e 13814_ACEOF
81ecdfbb 13815cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42ecbf5e 13816if \$ac_cs_recheck; then
81ecdfbb
RW
13817 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13818 shift
13819 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13820 CONFIG_SHELL='$SHELL'
13821 export CONFIG_SHELL
13822 exec "\$@"
42ecbf5e
DJ
13823fi
13824
13825_ACEOF
81ecdfbb
RW
13826cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13827exec 5>>config.log
13828{
13829 echo
13830 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13831## Running $as_me. ##
13832_ASBOX
13833 $as_echo "$ac_log"
13834} >&5
42ecbf5e 13835
81ecdfbb
RW
13836_ACEOF
13837cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
252b5132 13838#
81ecdfbb 13839# INIT-COMMANDS
252b5132 13840#
42ecbf5e 13841AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
13842
13843
13844# The HP-UX ksh and POSIX shell print the target directory to stdout
13845# if CDPATH is set.
13846(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13847
13848sed_quote_subst='$sed_quote_subst'
13849double_quote_subst='$double_quote_subst'
13850delay_variable_subst='$delay_variable_subst'
3725885a
RW
13851macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13852macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13853enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13854enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13855pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13856enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13857SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13858ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13859host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13860host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13861host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13862build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13863build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13864build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13865SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13866Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13867GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13868EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13869FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13870LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13871NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13872LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13873max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13874ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13875exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13876lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13877lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13878lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13879reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13880reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13881OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13882deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13883file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13884AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13885AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13886STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13887RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13888old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13889old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13890old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13891lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13892CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13893CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13894compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13895GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13896lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13897lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13898lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13899lt_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"`'
13900objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13901MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13902lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13903lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13904lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13905lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13906lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13907need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13908DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13909NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13910LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13911OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13912OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13913libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13914shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13915extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13916archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13917enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13918export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13919whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13920compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13921old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13922old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13923archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13924archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13925module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13926module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13927with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13928allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13929no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13930hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13931hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13932hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13933hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13934hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13935hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13936hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13937hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13938inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13939link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13940fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13941always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13942export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13943exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13944include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13945prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13946file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13947variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13948need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13949need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13950version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13951runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13952shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13953shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13954libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13955library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13956soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13957install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13958postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13959postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13960finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13961finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13962hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13963sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13964sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13965hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13966enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13967enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13968enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13969old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13970striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
d7040cdb
SE
13971
13972LTCC='$LTCC'
13973LTCFLAGS='$LTCFLAGS'
13974compiler='$compiler_DEFAULT'
13975
3725885a
RW
13976# A function that is used when there is no print builtin or printf.
13977func_fallback_echo ()
13978{
13979 eval 'cat <<_LTECHO_EOF
13980\$1
13981_LTECHO_EOF'
13982}
13983
d7040cdb 13984# Quote evaled strings.
3725885a
RW
13985for var in SHELL \
13986ECHO \
13987SED \
d7040cdb
SE
13988GREP \
13989EGREP \
13990FGREP \
13991LD \
13992NM \
13993LN_S \
13994lt_SP2NL \
13995lt_NL2SP \
13996reload_flag \
b214d478 13997OBJDUMP \
d7040cdb
SE
13998deplibs_check_method \
13999file_magic_cmd \
14000AR \
14001AR_FLAGS \
14002STRIP \
14003RANLIB \
14004CC \
14005CFLAGS \
14006compiler \
14007lt_cv_sys_global_symbol_pipe \
14008lt_cv_sys_global_symbol_to_cdecl \
14009lt_cv_sys_global_symbol_to_c_name_address \
b214d478 14010lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb
SE
14011lt_prog_compiler_no_builtin_flag \
14012lt_prog_compiler_wl \
14013lt_prog_compiler_pic \
14014lt_prog_compiler_static \
14015lt_cv_prog_compiler_c_o \
14016need_locks \
b214d478
SE
14017DSYMUTIL \
14018NMEDIT \
14019LIPO \
14020OTOOL \
14021OTOOL64 \
d7040cdb
SE
14022shrext_cmds \
14023export_dynamic_flag_spec \
14024whole_archive_flag_spec \
14025compiler_needs_object \
14026with_gnu_ld \
14027allow_undefined_flag \
14028no_undefined_flag \
14029hardcode_libdir_flag_spec \
14030hardcode_libdir_flag_spec_ld \
14031hardcode_libdir_separator \
14032fix_srcfile_path \
14033exclude_expsyms \
14034include_expsyms \
14035file_list_spec \
14036variables_saved_for_relink \
14037libname_spec \
14038library_names_spec \
14039soname_spec \
3725885a 14040install_override_mode \
d7040cdb
SE
14041finish_eval \
14042old_striplib \
14043striplib; do
3725885a 14044 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 14045 *[\\\\\\\`\\"\\\$]*)
3725885a 14046 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
d7040cdb
SE
14047 ;;
14048 *)
14049 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14050 ;;
14051 esac
14052done
14053
14054# Double-quote double-evaled strings.
14055for var in reload_cmds \
14056old_postinstall_cmds \
14057old_postuninstall_cmds \
14058old_archive_cmds \
14059extract_expsyms_cmds \
14060old_archive_from_new_cmds \
14061old_archive_from_expsyms_cmds \
14062archive_cmds \
14063archive_expsym_cmds \
14064module_cmds \
14065module_expsym_cmds \
14066export_symbols_cmds \
14067prelink_cmds \
14068postinstall_cmds \
14069postuninstall_cmds \
14070finish_cmds \
14071sys_lib_search_path_spec \
14072sys_lib_dlsearch_path_spec; do
3725885a 14073 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 14074 *[\\\\\\\`\\"\\\$]*)
3725885a 14075 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
d7040cdb
SE
14076 ;;
14077 *)
14078 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14079 ;;
14080 esac
14081done
14082
d7040cdb
SE
14083ac_aux_dir='$ac_aux_dir'
14084xsi_shell='$xsi_shell'
14085lt_shell_append='$lt_shell_append'
14086
14087# See if we are running on zsh, and set the options which allow our
14088# commands through without removal of \ escapes INIT.
14089if test -n "\${ZSH_VERSION+set}" ; then
14090 setopt NO_GLOB_SUBST
14091fi
14092
14093
14094 PACKAGE='$PACKAGE'
14095 VERSION='$VERSION'
14096 TIMESTAMP='$TIMESTAMP'
14097 RM='$RM'
14098 ofile='$ofile'
14099
14100
14101
20e95c23
DJ
14102# Capture the value of obsolete ALL_LINGUAS because we need it to compute
14103 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
14104 # from automake.
14105 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14106 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14107 LINGUAS="${LINGUAS-%UNSET%}"
14108
42ecbf5e
DJ
14109
14110_ACEOF
14111
81ecdfbb 14112cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e 14113
81ecdfbb 14114# Handling of arguments.
42ecbf5e 14115for ac_config_target in $ac_config_targets
252b5132 14116do
81ecdfbb
RW
14117 case $ac_config_target in
14118 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14119 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
14120 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14121 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14122 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14123 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
14124
14125 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
252b5132
RH
14126 esac
14127done
14128
81ecdfbb 14129
42ecbf5e
DJ
14130# If the user did not use the arguments to specify the items to instantiate,
14131# then the envvar interface is used. Set only those that are not.
14132# We use the long form for the default assignment because of an extremely
14133# bizarre bug on SunOS 4.1.3.
14134if $ac_need_defaults; then
14135 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14136 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14137 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14138fi
14139
14140# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 14141# simply because there is no reason against having it here, and in addition,
42ecbf5e 14142# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
14143# Hook for its removal unless debugging.
14144# Note that there is a small window in which the directory will not be cleaned:
14145# after its creation but before its name has been assigned to `$tmp'.
42ecbf5e
DJ
14146$debug ||
14147{
81ecdfbb
RW
14148 tmp=
14149 trap 'exit_status=$?
14150 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14151' 0
14152 trap 'as_fn_exit 1' 1 2 13 15
42ecbf5e 14153}
42ecbf5e 14154# Create a (secure) tmp directory for tmp files.
e5a52504 14155
42ecbf5e 14156{
81ecdfbb 14157 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42ecbf5e
DJ
14158 test -n "$tmp" && test -d "$tmp"
14159} ||
14160{
81ecdfbb
RW
14161 tmp=./conf$$-$RANDOM
14162 (umask 077 && mkdir "$tmp")
14163} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14164
14165# Set up the scripts for CONFIG_FILES section.
14166# No need to generate them if there are no CONFIG_FILES.
14167# This happens for instance with `./config.status config.h'.
14168if test -n "$CONFIG_FILES"; then
14169
14170if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14171 ac_cs_awk_getline=:
14172 ac_cs_awk_pipe_init=
14173 ac_cs_awk_read_file='
14174 while ((getline aline < (F[key])) > 0)
14175 print(aline)
14176 close(F[key])'
14177 ac_cs_awk_pipe_fini=
14178else
14179 ac_cs_awk_getline=false
14180 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14181 ac_cs_awk_read_file='
14182 print "|#_!!_#|"
14183 print "cat " F[key] " &&"
14184 '$ac_cs_awk_pipe_init
14185 # The final `:' finishes the AND list.
14186 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14187fi
14188ac_cr=`echo X | tr X '\015'`
14189# On cygwin, bash can eat \r inside `` if the user requested igncr.
14190# But we know of no other shell where ac_cr would be empty at this
14191# point, so we can use a bashism as a fallback.
14192if test "x$ac_cr" = x; then
14193 eval ac_cr=\$\'\\r\'
14194fi
14195ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14196if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14197 ac_cs_awk_cr='\r'
14198else
14199 ac_cs_awk_cr=$ac_cr
14200fi
14201
14202echo 'BEGIN {' >"$tmp/subs1.awk" &&
14203_ACEOF
14204
14205# Create commands to substitute file output variables.
42ecbf5e 14206{
81ecdfbb
RW
14207 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14208 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14209 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14210 echo "_ACAWK" &&
14211 echo "_ACEOF"
14212} >conf$$files.sh &&
14213. ./conf$$files.sh ||
14214 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14215rm -f conf$$files.sh
e5a52504 14216
81ecdfbb
RW
14217{
14218 echo "cat >conf$$subs.awk <<_ACEOF" &&
14219 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14220 echo "_ACEOF"
14221} >conf$$subs.sh ||
14222 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14223ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14224ac_delim='%!_!# '
14225for ac_last_try in false false false false false :; do
14226 . ./conf$$subs.sh ||
14227 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14228
14229 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14230 if test $ac_delim_n = $ac_delim_num; then
14231 break
14232 elif $ac_last_try; then
14233 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14234 else
14235 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14236 fi
14237done
14238rm -f conf$$subs.sh
14239
14240cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14241cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14242_ACEOF
14243sed -n '
14244h
14245s/^/S["/; s/!.*/"]=/
14246p
14247g
14248s/^[^!]*!//
14249:repl
14250t repl
14251s/'"$ac_delim"'$//
14252t delim
14253:nl
14254h
14255s/\(.\{148\}\).*/\1/
14256t more1
14257s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14258p
14259n
14260b repl
14261:more1
14262s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14263p
14264g
14265s/.\{148\}//
14266t nl
14267:delim
14268h
14269s/\(.\{148\}\).*/\1/
14270t more2
14271s/["\\]/\\&/g; s/^/"/; s/$/"/
14272p
14273b
14274:more2
14275s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14276p
14277g
14278s/.\{148\}//
14279t delim
14280' <conf$$subs.awk | sed '
14281/^[^""]/{
14282 N
14283 s/\n//
14284}
14285' >>$CONFIG_STATUS || ac_write_fail=1
14286rm -f conf$$subs.awk
14287cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14288_ACAWK
14289cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14290 for (key in S) S_is_set[key] = 1
14291 FS = "\a"
14292 \$ac_cs_awk_pipe_init
14293}
14294{
14295 line = $ 0
14296 nfields = split(line, field, "@")
14297 substed = 0
14298 len = length(field[1])
14299 for (i = 2; i < nfields; i++) {
14300 key = field[i]
14301 keylen = length(key)
14302 if (S_is_set[key]) {
14303 value = S[key]
14304 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14305 len += length(value) + length(field[++i])
14306 substed = 1
14307 } else
14308 len += 1 + keylen
14309 }
14310 if (nfields == 3 && !substed) {
14311 key = field[2]
14312 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14313 \$ac_cs_awk_read_file
14314 next
14315 }
14316 }
14317 print line
14318}
14319\$ac_cs_awk_pipe_fini
14320_ACAWK
14321_ACEOF
14322cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14323if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14324 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14325else
14326 cat
14327fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14328 || as_fn_error "could not setup config files machinery" "$LINENO" 5
42ecbf5e 14329_ACEOF
d15b04bd 14330
81ecdfbb
RW
14331# VPATH may cause trouble with some makes, so we remove $(srcdir),
14332# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14333# trailing colons and then remove the whole line if VPATH becomes empty
14334# (actually we leave an empty line to preserve line numbers).
14335if test "x$srcdir" = x.; then
14336 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14337s/:*\$(srcdir):*/:/
14338s/:*\${srcdir}:*/:/
14339s/:*@srcdir@:*/:/
14340s/^\([^=]*=[ ]*\):*/\1/
14341s/:*$//
14342s/^[^=]*=[ ]*$//
14343}'
14344fi
14345
14346cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14347fi # test -n "$CONFIG_FILES"
42ecbf5e 14348
81ecdfbb
RW
14349# Set up the scripts for CONFIG_HEADERS section.
14350# No need to generate them if there are no CONFIG_HEADERS.
14351# This happens for instance with `./config.status Makefile'.
14352if test -n "$CONFIG_HEADERS"; then
14353cat >"$tmp/defines.awk" <<\_ACAWK ||
14354BEGIN {
14355_ACEOF
42ecbf5e 14356
81ecdfbb
RW
14357# Transform confdefs.h into an awk script `defines.awk', embedded as
14358# here-document in config.status, that substitutes the proper values into
14359# config.h.in to produce config.h.
252b5132 14360
81ecdfbb
RW
14361# Create a delimiter string that does not exist in confdefs.h, to ease
14362# handling of long lines.
14363ac_delim='%!_!# '
14364for ac_last_try in false false :; do
14365 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14366 if test -z "$ac_t"; then
14367 break
14368 elif $ac_last_try; then
14369 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14370 else
14371 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14372 fi
14373done
14374
14375# For the awk script, D is an array of macro values keyed by name,
14376# likewise P contains macro parameters if any. Preserve backslash
14377# newline sequences.
14378
14379ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14380sed -n '
14381s/.\{148\}/&'"$ac_delim"'/g
14382t rset
14383:rset
14384s/^[ ]*#[ ]*define[ ][ ]*/ /
14385t def
14386d
14387:def
14388s/\\$//
14389t bsnl
14390s/["\\]/\\&/g
14391s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14392D["\1"]=" \3"/p
14393s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14394d
14395:bsnl
14396s/["\\]/\\&/g
14397s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14398D["\1"]=" \3\\\\\\n"\\/p
14399t cont
14400s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14401t cont
14402d
14403:cont
14404n
14405s/.\{148\}/&'"$ac_delim"'/g
14406t clear
14407:clear
14408s/\\$//
14409t bsnlc
14410s/["\\]/\\&/g; s/^/"/; s/$/"/p
14411d
14412:bsnlc
14413s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14414b cont
14415' <confdefs.h | sed '
14416s/'"$ac_delim"'/"\\\
14417"/g' >>$CONFIG_STATUS || ac_write_fail=1
14418
14419cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14420 for (key in D) D_is_set[key] = 1
14421 FS = "\a"
14422}
14423/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14424 line = \$ 0
14425 split(line, arg, " ")
14426 if (arg[1] == "#") {
14427 defundef = arg[2]
14428 mac1 = arg[3]
14429 } else {
14430 defundef = substr(arg[1], 2)
14431 mac1 = arg[2]
14432 }
14433 split(mac1, mac2, "(") #)
14434 macro = mac2[1]
14435 prefix = substr(line, 1, index(line, defundef) - 1)
14436 if (D_is_set[macro]) {
14437 # Preserve the white space surrounding the "#".
14438 print prefix "define", macro P[macro] D[macro]
14439 next
14440 } else {
14441 # Replace #undef with comments. This is necessary, for example,
14442 # in the case of _POSIX_SOURCE, which is predefined and required
14443 # on some systems where configure will not decide to define it.
14444 if (defundef == "undef") {
14445 print "/*", prefix defundef, macro, "*/"
14446 next
14447 }
14448 }
14449}
14450{ print }
14451_ACAWK
42ecbf5e 14452_ACEOF
81ecdfbb
RW
14453cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14454 as_fn_error "could not setup config headers machinery" "$LINENO" 5
14455fi # test -n "$CONFIG_HEADERS"
42ecbf5e 14456
81ecdfbb
RW
14457
14458eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14459shift
14460for ac_tag
14461do
14462 case $ac_tag in
14463 :[FHLC]) ac_mode=$ac_tag; continue;;
14464 esac
14465 case $ac_mode$ac_tag in
14466 :[FHL]*:*);;
14467 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14468 :[FH]-) ac_tag=-:-;;
14469 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14470 esac
14471 ac_save_IFS=$IFS
14472 IFS=:
14473 set x $ac_tag
14474 IFS=$ac_save_IFS
14475 shift
14476 ac_file=$1
14477 shift
14478
14479 case $ac_mode in
14480 :L) ac_source=$1;;
14481 :[FH])
14482 ac_file_inputs=
14483 for ac_f
14484 do
14485 case $ac_f in
14486 -) ac_f="$tmp/stdin";;
14487 *) # Look for the file first in the build tree, then in the source tree
14488 # (if the path is not absolute). The absolute path cannot be DOS-style,
14489 # because $ac_f cannot contain `:'.
14490 test -f "$ac_f" ||
14491 case $ac_f in
14492 [\\/$]*) false;;
14493 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14494 esac ||
14495 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14496 esac
14497 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14498 as_fn_append ac_file_inputs " '$ac_f'"
14499 done
14500
14501 # Let's still pretend it is `configure' which instantiates (i.e., don't
14502 # use $as_me), people would be surprised to read:
14503 # /* config.h. Generated by config.status. */
14504 configure_input='Generated from '`
14505 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14506 `' by configure.'
14507 if test x"$ac_file" != x-; then
14508 configure_input="$ac_file. $configure_input"
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14510$as_echo "$as_me: creating $ac_file" >&6;}
252b5132 14511 fi
81ecdfbb
RW
14512 # Neutralize special characters interpreted by sed in replacement strings.
14513 case $configure_input in #(
14514 *\&* | *\|* | *\\* )
14515 ac_sed_conf_input=`$as_echo "$configure_input" |
14516 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14517 *) ac_sed_conf_input=$configure_input;;
14518 esac
252b5132 14519
81ecdfbb
RW
14520 case $ac_tag in
14521 *:-:* | *:-) cat >"$tmp/stdin" \
14522 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14523 esac
14524 ;;
252b5132
RH
14525 esac
14526
81ecdfbb 14527 ac_dir=`$as_dirname -- "$ac_file" ||
42ecbf5e
DJ
14528$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14529 X"$ac_file" : 'X\(//\)[^/]' \| \
14530 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
14531 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14532$as_echo X"$ac_file" |
14533 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14534 s//\1/
14535 q
14536 }
14537 /^X\(\/\/\)[^/].*/{
14538 s//\1/
14539 q
14540 }
14541 /^X\(\/\/\)$/{
14542 s//\1/
14543 q
14544 }
14545 /^X\(\/\).*/{
14546 s//\1/
14547 q
14548 }
14549 s/.*/./; q'`
14550 as_dir="$ac_dir"; as_fn_mkdir_p
42ecbf5e
DJ
14551 ac_builddir=.
14552
81ecdfbb
RW
14553case "$ac_dir" in
14554.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14555*)
14556 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14557 # A ".." for each directory in $ac_dir_suffix.
14558 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14559 case $ac_top_builddir_sub in
14560 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14561 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14562 esac ;;
14563esac
14564ac_abs_top_builddir=$ac_pwd
14565ac_abs_builddir=$ac_pwd$ac_dir_suffix
14566# for backward compatibility:
14567ac_top_builddir=$ac_top_build_prefix
252b5132 14568
42ecbf5e 14569case $srcdir in
81ecdfbb 14570 .) # We are building in place.
42ecbf5e 14571 ac_srcdir=.
81ecdfbb
RW
14572 ac_top_srcdir=$ac_top_builddir_sub
14573 ac_abs_top_srcdir=$ac_pwd ;;
14574 [\\/]* | ?:[\\/]* ) # Absolute name.
42ecbf5e 14575 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
14576 ac_top_srcdir=$srcdir
14577 ac_abs_top_srcdir=$srcdir ;;
14578 *) # Relative name.
14579 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14580 ac_top_srcdir=$ac_top_build_prefix$srcdir
14581 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42ecbf5e 14582esac
81ecdfbb 14583ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
42ecbf5e 14584
252b5132 14585
81ecdfbb
RW
14586 case $ac_mode in
14587 :F)
14588 #
14589 # CONFIG_FILE
14590 #
e5a52504 14591
42ecbf5e
DJ
14592 case $INSTALL in
14593 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb
RW
14594 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14595 esac
14596 ac_MKDIR_P=$MKDIR_P
14597 case $MKDIR_P in
14598 [\\/$]* | ?:[\\/]* ) ;;
14599 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
d15b04bd 14600 esac
81ecdfbb 14601_ACEOF
e5a52504 14602
81ecdfbb
RW
14603cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14604# If the template does not know about datarootdir, expand it.
14605# FIXME: This hack should be removed a few years after 2.60.
14606ac_datarootdir_hack=; ac_datarootdir_seen=
14607ac_sed_dataroot='
14608/datarootdir/ {
14609 p
14610 q
14611}
14612/@datadir@/p
14613/@docdir@/p
14614/@infodir@/p
14615/@localedir@/p
14616/@mandir@/p'
14617case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14618*datarootdir*) ac_datarootdir_seen=yes;;
14619*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14621$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14622_ACEOF
14623cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14624 ac_datarootdir_hack='
14625 s&@datadir@&$datadir&g
14626 s&@docdir@&$docdir&g
14627 s&@infodir@&$infodir&g
14628 s&@localedir@&$localedir&g
14629 s&@mandir@&$mandir&g
14630 s&\\\${datarootdir}&$datarootdir&g' ;;
14631esac
42ecbf5e 14632_ACEOF
81ecdfbb
RW
14633
14634# Neutralize VPATH when `$srcdir' = `.'.
14635# Shell code in configure.ac might set extrasub.
14636# FIXME: do we really want to maintain this feature?
14637cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14638ac_sed_extra="$ac_vpsub
42ecbf5e
DJ
14639$extrasub
14640_ACEOF
81ecdfbb 14641cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e
DJ
14642:t
14643/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
14644s|@configure_input@|$ac_sed_conf_input|;t t
14645s&@top_builddir@&$ac_top_builddir_sub&;t t
14646s&@top_build_prefix@&$ac_top_build_prefix&;t t
14647s&@srcdir@&$ac_srcdir&;t t
14648s&@abs_srcdir@&$ac_abs_srcdir&;t t
14649s&@top_srcdir@&$ac_top_srcdir&;t t
14650s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14651s&@builddir@&$ac_builddir&;t t
14652s&@abs_builddir@&$ac_abs_builddir&;t t
14653s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14654s&@INSTALL@&$ac_INSTALL&;t t
14655s&@MKDIR_P@&$ac_MKDIR_P&;t t
14656$ac_datarootdir_hack
14657"
14658eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
14659if $ac_cs_awk_getline; then
14660 $AWK -f "$tmp/subs.awk"
14661else
14662 $AWK -f "$tmp/subs.awk" | $SHELL
14663fi >$tmp/out \
14664 || as_fn_error "could not create $ac_file" "$LINENO" 5
14665
14666test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14667 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14668 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14670which seems to be undefined. Please make sure it is defined." >&5
14671$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14672which seems to be undefined. Please make sure it is defined." >&2;}
14673
14674 rm -f "$tmp/stdin"
42ecbf5e 14675 case $ac_file in
81ecdfbb
RW
14676 -) cat "$tmp/out" && rm -f "$tmp/out";;
14677 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14678 esac \
14679 || as_fn_error "could not create $ac_file" "$LINENO" 5
14680 ;;
14681 :H)
14682 #
14683 # CONFIG_HEADER
14684 #
42ecbf5e 14685 if test x"$ac_file" != x-; then
81ecdfbb
RW
14686 {
14687 $as_echo "/* $configure_input */" \
14688 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14689 } >"$tmp/config.h" \
14690 || as_fn_error "could not create $ac_file" "$LINENO" 5
14691 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14693$as_echo "$as_me: $ac_file is unchanged" >&6;}
42ecbf5e 14694 else
81ecdfbb
RW
14695 rm -f "$ac_file"
14696 mv "$tmp/config.h" "$ac_file" \
14697 || as_fn_error "could not create $ac_file" "$LINENO" 5
252b5132 14698 fi
42ecbf5e 14699 else
81ecdfbb
RW
14700 $as_echo "/* $configure_input */" \
14701 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14702 || as_fn_error "could not create -" "$LINENO" 5
e5a52504 14703 fi
81ecdfbb
RW
14704# Compute "$ac_file"'s index in $config_headers.
14705_am_arg="$ac_file"
42ecbf5e
DJ
14706_am_stamp_count=1
14707for _am_header in $config_headers :; do
14708 case $_am_header in
81ecdfbb 14709 $_am_arg | $_am_arg:* )
42ecbf5e
DJ
14710 break ;;
14711 * )
14712 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14713 esac
14714done
81ecdfbb
RW
14715echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14716$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14717 X"$_am_arg" : 'X\(//\)[^/]' \| \
14718 X"$_am_arg" : 'X\(//\)$' \| \
14719 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14720$as_echo X"$_am_arg" |
14721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14722 s//\1/
14723 q
14724 }
14725 /^X\(\/\/\)[^/].*/{
14726 s//\1/
14727 q
14728 }
14729 /^X\(\/\/\)$/{
14730 s//\1/
14731 q
14732 }
14733 /^X\(\/\).*/{
14734 s//\1/
14735 q
14736 }
14737 s/.*/./; q'`/stamp-h$_am_stamp_count
14738 ;;
42ecbf5e 14739
81ecdfbb
RW
14740 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14741$as_echo "$as_me: executing $ac_file commands" >&6;}
14742 ;;
14743 esac
42ecbf5e
DJ
14744
14745
81ecdfbb
RW
14746 case $ac_file$ac_mode in
14747 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14748 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14749 # are listed without --file. Let's play safe and only enable the eval
14750 # if we detect the quoting.
14751 case $CONFIG_FILES in
14752 *\'*) eval set x "$CONFIG_FILES" ;;
14753 *) set x $CONFIG_FILES ;;
14754 esac
14755 shift
14756 for mf
14757 do
14758 # Strip MF so we end up with the name of the file.
14759 mf=`echo "$mf" | sed -e 's/:.*$//'`
14760 # Check whether this is an Automake generated Makefile or not.
14761 # We used to match only the files named `Makefile.in', but
14762 # some people rename them; so instead we look at the file content.
14763 # Grep'ing the first line is not enough: some people post-process
14764 # each Makefile.in and add a new line on top of each file to say so.
14765 # Grep'ing the whole file is not good either: AIX grep has a line
14766 # limit of 2048, but all sed's we know have understand at least 4000.
14767 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14768 dirpart=`$as_dirname -- "$mf" ||
42ecbf5e
DJ
14769$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14770 X"$mf" : 'X\(//\)[^/]' \| \
14771 X"$mf" : 'X\(//\)$' \| \
81ecdfbb
RW
14772 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14773$as_echo X"$mf" |
14774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14775 s//\1/
14776 q
14777 }
14778 /^X\(\/\/\)[^/].*/{
14779 s//\1/
14780 q
14781 }
14782 /^X\(\/\/\)$/{
14783 s//\1/
14784 q
14785 }
14786 /^X\(\/\).*/{
14787 s//\1/
14788 q
14789 }
14790 s/.*/./; q'`
14791 else
14792 continue
14793 fi
14794 # Extract the definition of DEPDIR, am__include, and am__quote
14795 # from the Makefile without running `make'.
14796 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14797 test -z "$DEPDIR" && continue
14798 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14799 test -z "am__include" && continue
14800 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14801 # When using ansi2knr, U may be empty or an underscore; expand it
14802 U=`sed -n 's/^U = //p' < "$mf"`
14803 # Find all dependency output files, they are included files with
14804 # $(DEPDIR) in their names. We invoke sed twice because it is the
14805 # simplest approach to changing $(DEPDIR) to its actual value in the
14806 # expansion.
14807 for file in `sed -n "
14808 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14809 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14810 # Make sure the directory exists.
14811 test -f "$dirpart/$file" && continue
14812 fdir=`$as_dirname -- "$file" ||
42ecbf5e
DJ
14813$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14814 X"$file" : 'X\(//\)[^/]' \| \
14815 X"$file" : 'X\(//\)$' \| \
81ecdfbb
RW
14816 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14817$as_echo X"$file" |
14818 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14819 s//\1/
14820 q
14821 }
14822 /^X\(\/\/\)[^/].*/{
14823 s//\1/
14824 q
14825 }
14826 /^X\(\/\/\)$/{
14827 s//\1/
14828 q
14829 }
14830 /^X\(\/\).*/{
14831 s//\1/
14832 q
14833 }
14834 s/.*/./; q'`
14835 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14836 # echo "creating $dirpart/$file"
14837 echo '# dummy' > "$dirpart/$file"
42ecbf5e 14838 done
42ecbf5e 14839 done
81ecdfbb 14840}
d7040cdb 14841 ;;
81ecdfbb 14842 "libtool":C)
d7040cdb
SE
14843
14844 # See if we are running on zsh, and set the options which allow our
14845 # commands through without removal of \ escapes.
14846 if test -n "${ZSH_VERSION+set}" ; then
14847 setopt NO_GLOB_SUBST
14848 fi
14849
14850 cfgfile="${ofile}T"
14851 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14852 $RM "$cfgfile"
14853
14854 cat <<_LT_EOF >> "$cfgfile"
14855#! $SHELL
14856
14857# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
b214d478 14858# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
14859# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14860# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14861#
b214d478 14862# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
3725885a 14863# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
b214d478 14864# Written by Gordon Matzigkeit, 1996
d7040cdb 14865#
b214d478 14866# This file is part of GNU Libtool.
d7040cdb 14867#
b214d478
SE
14868# GNU Libtool is free software; you can redistribute it and/or
14869# modify it under the terms of the GNU General Public License as
14870# published by the Free Software Foundation; either version 2 of
14871# the License, or (at your option) any later version.
d7040cdb 14872#
b214d478
SE
14873# As a special exception to the GNU General Public License,
14874# if you distribute this file as part of a program or library that
14875# is built using GNU Libtool, you may include this file under the
14876# same distribution terms that you use for the rest of that program.
d7040cdb 14877#
b214d478
SE
14878# GNU Libtool is distributed in the hope that it will be useful,
14879# but WITHOUT ANY WARRANTY; without even the implied warranty of
14880# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14881# GNU General Public License for more details.
d7040cdb 14882#
b214d478
SE
14883# You should have received a copy of the GNU General Public License
14884# along with GNU Libtool; see the file COPYING. If not, a copy
14885# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14886# obtained by writing to the Free Software Foundation, Inc.,
14887# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
14888
14889
14890# The names of the tagged configurations supported by this script.
14891available_tags=""
14892
14893# ### BEGIN LIBTOOL CONFIG
14894
14895# Which release of libtool.m4 was used?
14896macro_version=$macro_version
14897macro_revision=$macro_revision
14898
14899# Whether or not to build shared libraries.
14900build_libtool_libs=$enable_shared
14901
14902# Whether or not to build static libraries.
14903build_old_libs=$enable_static
14904
14905# What type of objects to build.
14906pic_mode=$pic_mode
14907
14908# Whether or not to optimize for fast installation.
14909fast_install=$enable_fast_install
14910
3725885a
RW
14911# Shell to use when invoking shell scripts.
14912SHELL=$lt_SHELL
14913
14914# An echo program that protects backslashes.
14915ECHO=$lt_ECHO
14916
d7040cdb
SE
14917# The host system.
14918host_alias=$host_alias
14919host=$host
14920host_os=$host_os
14921
14922# The build system.
14923build_alias=$build_alias
14924build=$build
14925build_os=$build_os
14926
14927# A sed program that does not truncate output.
14928SED=$lt_SED
14929
14930# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14931Xsed="\$SED -e 1s/^X//"
14932
14933# A grep program that handles long lines.
14934GREP=$lt_GREP
14935
14936# An ERE matcher.
14937EGREP=$lt_EGREP
14938
14939# A literal string matcher.
14940FGREP=$lt_FGREP
14941
14942# A BSD- or MS-compatible name lister.
14943NM=$lt_NM
14944
14945# Whether we need soft or hard links.
14946LN_S=$lt_LN_S
14947
14948# What is the maximum length of a command?
14949max_cmd_len=$max_cmd_len
14950
14951# Object file suffix (normally "o").
14952objext=$ac_objext
14953
14954# Executable file suffix (normally "").
14955exeext=$exeext
14956
14957# whether the shell understands "unset".
14958lt_unset=$lt_unset
14959
14960# turn spaces into newlines.
14961SP2NL=$lt_lt_SP2NL
14962
14963# turn newlines into spaces.
14964NL2SP=$lt_lt_NL2SP
14965
b214d478
SE
14966# An object symbol dumper.
14967OBJDUMP=$lt_OBJDUMP
14968
d7040cdb
SE
14969# Method to check whether dependent libraries are shared objects.
14970deplibs_check_method=$lt_deplibs_check_method
14971
14972# Command to use when deplibs_check_method == "file_magic".
14973file_magic_cmd=$lt_file_magic_cmd
14974
14975# The archiver.
14976AR=$lt_AR
14977AR_FLAGS=$lt_AR_FLAGS
14978
14979# A symbol stripping program.
14980STRIP=$lt_STRIP
14981
14982# Commands used to install an old-style archive.
14983RANLIB=$lt_RANLIB
14984old_postinstall_cmds=$lt_old_postinstall_cmds
14985old_postuninstall_cmds=$lt_old_postuninstall_cmds
14986
3725885a
RW
14987# Whether to use a lock for old archive extraction.
14988lock_old_archive_extraction=$lock_old_archive_extraction
14989
d7040cdb
SE
14990# A C compiler.
14991LTCC=$lt_CC
14992
14993# LTCC compiler flags.
14994LTCFLAGS=$lt_CFLAGS
14995
14996# Take the output of nm and produce a listing of raw symbols and C names.
14997global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14998
14999# Transform the output of nm in a proper C declaration.
15000global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15001
15002# Transform the output of nm in a C name address pair.
15003global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15004
b214d478
SE
15005# Transform the output of nm in a C name address pair when lib prefix is needed.
15006global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15007
d7040cdb
SE
15008# The name of the directory that contains temporary libtool files.
15009objdir=$objdir
15010
d7040cdb
SE
15011# Used to examine libraries when file_magic_cmd begins with "file".
15012MAGIC_CMD=$MAGIC_CMD
15013
15014# Must we lock files when doing compilation?
15015need_locks=$lt_need_locks
15016
b214d478
SE
15017# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15018DSYMUTIL=$lt_DSYMUTIL
15019
15020# Tool to change global to local symbols on Mac OS X.
15021NMEDIT=$lt_NMEDIT
15022
15023# Tool to manipulate fat objects and archives on Mac OS X.
15024LIPO=$lt_LIPO
15025
15026# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15027OTOOL=$lt_OTOOL
15028
15029# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15030OTOOL64=$lt_OTOOL64
15031
d7040cdb
SE
15032# Old archive suffix (normally "a").
15033libext=$libext
15034
15035# Shared library suffix (normally ".so").
15036shrext_cmds=$lt_shrext_cmds
15037
15038# The commands to extract the exported symbol list from a shared archive.
15039extract_expsyms_cmds=$lt_extract_expsyms_cmds
15040
15041# Variables whose values should be saved in libtool wrapper scripts and
15042# restored at link time.
15043variables_saved_for_relink=$lt_variables_saved_for_relink
15044
15045# Do we need the "lib" prefix for modules?
15046need_lib_prefix=$need_lib_prefix
15047
15048# Do we need a version for libraries?
15049need_version=$need_version
15050
15051# Library versioning type.
15052version_type=$version_type
15053
15054# Shared library runtime path variable.
15055runpath_var=$runpath_var
15056
15057# Shared library path variable.
15058shlibpath_var=$shlibpath_var
15059
15060# Is shlibpath searched before the hard-coded library search path?
15061shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15062
15063# Format of library name prefix.
15064libname_spec=$lt_libname_spec
15065
15066# List of archive names. First name is the real one, the rest are links.
15067# The last name is the one that the linker finds with -lNAME
15068library_names_spec=$lt_library_names_spec
15069
15070# The coded name of the library, if different from the real name.
15071soname_spec=$lt_soname_spec
15072
3725885a
RW
15073# Permission mode override for installation of shared libraries.
15074install_override_mode=$lt_install_override_mode
15075
d7040cdb
SE
15076# Command to use after installation of a shared archive.
15077postinstall_cmds=$lt_postinstall_cmds
15078
15079# Command to use after uninstallation of a shared archive.
15080postuninstall_cmds=$lt_postuninstall_cmds
15081
15082# Commands used to finish a libtool library installation in a directory.
15083finish_cmds=$lt_finish_cmds
15084
15085# As "finish_cmds", except a single script fragment to be evaled but
15086# not shown.
15087finish_eval=$lt_finish_eval
15088
15089# Whether we should hardcode library paths into libraries.
15090hardcode_into_libs=$hardcode_into_libs
15091
15092# Compile-time system search path for libraries.
15093sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15094
15095# Run-time system search path for libraries.
15096sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15097
15098# Whether dlopen is supported.
15099dlopen_support=$enable_dlopen
15100
15101# Whether dlopen of programs is supported.
15102dlopen_self=$enable_dlopen_self
15103
15104# Whether dlopen of statically linked programs is supported.
15105dlopen_self_static=$enable_dlopen_self_static
15106
15107# Commands to strip libraries.
15108old_striplib=$lt_old_striplib
15109striplib=$lt_striplib
15110
15111
15112# The linker used to build libraries.
15113LD=$lt_LD
15114
3725885a
RW
15115# How to create reloadable object files.
15116reload_flag=$lt_reload_flag
15117reload_cmds=$lt_reload_cmds
15118
d7040cdb
SE
15119# Commands used to build an old-style archive.
15120old_archive_cmds=$lt_old_archive_cmds
15121
15122# A language specific compiler.
15123CC=$lt_compiler
15124
15125# Is the compiler the GNU compiler?
15126with_gcc=$GCC
15127
15128# Compiler flag to turn off builtin functions.
15129no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15130
15131# How to pass a linker flag through the compiler.
15132wl=$lt_lt_prog_compiler_wl
15133
15134# Additional compiler flags for building library objects.
15135pic_flag=$lt_lt_prog_compiler_pic
15136
15137# Compiler flag to prevent dynamic linking.
15138link_static_flag=$lt_lt_prog_compiler_static
15139
15140# Does compiler simultaneously support -c and -o options?
15141compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15142
15143# Whether or not to add -lc for building shared libraries.
15144build_libtool_need_lc=$archive_cmds_need_lc
15145
15146# Whether or not to disallow shared libs when runtime libs are static.
15147allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15148
15149# Compiler flag to allow reflexive dlopens.
15150export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15151
15152# Compiler flag to generate shared objects directly from archives.
15153whole_archive_flag_spec=$lt_whole_archive_flag_spec
15154
15155# Whether the compiler copes with passing no objects directly.
15156compiler_needs_object=$lt_compiler_needs_object
15157
15158# Create an old-style archive from a shared archive.
15159old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15160
15161# Create a temporary old-style archive to link instead of a shared archive.
15162old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15163
15164# Commands used to build a shared archive.
15165archive_cmds=$lt_archive_cmds
15166archive_expsym_cmds=$lt_archive_expsym_cmds
15167
15168# Commands used to build a loadable module if different from building
15169# a shared archive.
15170module_cmds=$lt_module_cmds
15171module_expsym_cmds=$lt_module_expsym_cmds
15172
15173# Whether we are building with GNU ld or not.
15174with_gnu_ld=$lt_with_gnu_ld
15175
15176# Flag that allows shared libraries with undefined symbols to be built.
15177allow_undefined_flag=$lt_allow_undefined_flag
15178
15179# Flag that enforces no undefined symbols.
15180no_undefined_flag=$lt_no_undefined_flag
15181
15182# Flag to hardcode \$libdir into a binary during linking.
15183# This must work even if \$libdir does not exist
15184hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15185
15186# If ld is used when linking, flag to hardcode \$libdir into a binary
15187# during linking. This must work even if \$libdir does not exist.
15188hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15189
15190# Whether we need a single "-rpath" flag with a separated argument.
15191hardcode_libdir_separator=$lt_hardcode_libdir_separator
15192
15193# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15194# DIR into the resulting binary.
15195hardcode_direct=$hardcode_direct
15196
15197# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15198# DIR into the resulting binary and the resulting library dependency is
15199# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15200# library is relocated.
15201hardcode_direct_absolute=$hardcode_direct_absolute
15202
15203# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15204# into the resulting binary.
15205hardcode_minus_L=$hardcode_minus_L
15206
15207# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15208# into the resulting binary.
15209hardcode_shlibpath_var=$hardcode_shlibpath_var
15210
15211# Set to "yes" if building a shared library automatically hardcodes DIR
15212# into the library and all subsequent libraries and executables linked
15213# against it.
15214hardcode_automatic=$hardcode_automatic
15215
15216# Set to yes if linker adds runtime paths of dependent libraries
15217# to runtime path list.
15218inherit_rpath=$inherit_rpath
15219
15220# Whether libtool must link a program against all its dependency libraries.
15221link_all_deplibs=$link_all_deplibs
15222
15223# Fix the shell variable \$srcfile for the compiler.
15224fix_srcfile_path=$lt_fix_srcfile_path
15225
15226# Set to "yes" if exported symbols are required.
15227always_export_symbols=$always_export_symbols
15228
15229# The commands to list exported symbols.
15230export_symbols_cmds=$lt_export_symbols_cmds
15231
15232# Symbols that should not be listed in the preloaded symbols.
15233exclude_expsyms=$lt_exclude_expsyms
15234
15235# Symbols that must always be exported.
15236include_expsyms=$lt_include_expsyms
15237
15238# Commands necessary for linking programs (against libraries) with templates.
15239prelink_cmds=$lt_prelink_cmds
15240
15241# Specify filename containing input files.
15242file_list_spec=$lt_file_list_spec
15243
15244# How to hardcode a shared library path into an executable.
15245hardcode_action=$hardcode_action
15246
15247# ### END LIBTOOL CONFIG
15248
15249_LT_EOF
15250
15251 case $host_os in
15252 aix3*)
15253 cat <<\_LT_EOF >> "$cfgfile"
15254# AIX sometimes has problems with the GCC collect2 program. For some
15255# reason, if we set the COLLECT_NAMES environment variable, the problems
15256# vanish in a puff of smoke.
15257if test "X${COLLECT_NAMES+set}" != Xset; then
15258 COLLECT_NAMES=
15259 export COLLECT_NAMES
15260fi
15261_LT_EOF
15262 ;;
15263 esac
15264
15265
15266ltmain="$ac_aux_dir/ltmain.sh"
15267
15268
15269 # We use sed instead of cat because bash on DJGPP gets confused if
15270 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15271 # text mode, it properly converts lines to CR/LF. This bash problem
15272 # is reportedly fixed, but why not run on old versions too?
15273 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15274 || (rm -f "$cfgfile"; exit 1)
15275
15276 case $xsi_shell in
15277 yes)
15278 cat << \_LT_EOF >> "$cfgfile"
b214d478 15279
d7040cdb
SE
15280# func_dirname file append nondir_replacement
15281# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15282# otherwise set result to NONDIR_REPLACEMENT.
15283func_dirname ()
15284{
15285 case ${1} in
15286 */*) func_dirname_result="${1%/*}${2}" ;;
15287 * ) func_dirname_result="${3}" ;;
15288 esac
15289}
15290
15291# func_basename file
15292func_basename ()
15293{
15294 func_basename_result="${1##*/}"
15295}
15296
b214d478
SE
15297# func_dirname_and_basename file append nondir_replacement
15298# perform func_basename and func_dirname in a single function
15299# call:
15300# dirname: Compute the dirname of FILE. If nonempty,
15301# add APPEND to the result, otherwise set result
15302# to NONDIR_REPLACEMENT.
15303# value returned in "$func_dirname_result"
15304# basename: Compute filename of FILE.
15305# value retuned in "$func_basename_result"
15306# Implementation must be kept synchronized with func_dirname
15307# and func_basename. For efficiency, we do not delegate to
15308# those functions but instead duplicate the functionality here.
15309func_dirname_and_basename ()
15310{
15311 case ${1} in
15312 */*) func_dirname_result="${1%/*}${2}" ;;
15313 * ) func_dirname_result="${3}" ;;
15314 esac
15315 func_basename_result="${1##*/}"
15316}
15317
d7040cdb
SE
15318# func_stripname prefix suffix name
15319# strip PREFIX and SUFFIX off of NAME.
15320# PREFIX and SUFFIX must not contain globbing or regex special
15321# characters, hashes, percent signs, but SUFFIX may contain a leading
15322# dot (in which case that matches only a dot).
15323func_stripname ()
15324{
15325 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15326 # positional parameters, so assign one to ordinary parameter first.
15327 func_stripname_result=${3}
15328 func_stripname_result=${func_stripname_result#"${1}"}
15329 func_stripname_result=${func_stripname_result%"${2}"}
15330}
15331
15332# func_opt_split
15333func_opt_split ()
15334{
15335 func_opt_split_opt=${1%%=*}
15336 func_opt_split_arg=${1#*=}
15337}
15338
15339# func_lo2o object
15340func_lo2o ()
15341{
15342 case ${1} in
15343 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15344 *) func_lo2o_result=${1} ;;
15345 esac
15346}
b214d478
SE
15347
15348# func_xform libobj-or-source
15349func_xform ()
15350{
15351 func_xform_result=${1%.*}.lo
15352}
15353
15354# func_arith arithmetic-term...
15355func_arith ()
15356{
15357 func_arith_result=$(( $* ))
15358}
15359
15360# func_len string
15361# STRING may not start with a hyphen.
15362func_len ()
15363{
15364 func_len_result=${#1}
15365}
15366
d7040cdb
SE
15367_LT_EOF
15368 ;;
15369 *) # Bourne compatible functions.
15370 cat << \_LT_EOF >> "$cfgfile"
b214d478 15371
d7040cdb
SE
15372# func_dirname file append nondir_replacement
15373# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15374# otherwise set result to NONDIR_REPLACEMENT.
15375func_dirname ()
15376{
15377 # Extract subdirectory from the argument.
3725885a 15378 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
d7040cdb
SE
15379 if test "X$func_dirname_result" = "X${1}"; then
15380 func_dirname_result="${3}"
15381 else
15382 func_dirname_result="$func_dirname_result${2}"
15383 fi
15384}
15385
15386# func_basename file
15387func_basename ()
15388{
3725885a 15389 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
d7040cdb
SE
15390}
15391
b214d478 15392
d7040cdb
SE
15393# func_stripname prefix suffix name
15394# strip PREFIX and SUFFIX off of NAME.
15395# PREFIX and SUFFIX must not contain globbing or regex special
15396# characters, hashes, percent signs, but SUFFIX may contain a leading
15397# dot (in which case that matches only a dot).
15398# func_strip_suffix prefix name
15399func_stripname ()
15400{
15401 case ${2} in
3725885a
RW
15402 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15403 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
d7040cdb
SE
15404 esac
15405}
15406
15407# sed scripts:
15408my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15409my_sed_long_arg='1s/^-[^=]*=//'
15410
15411# func_opt_split
15412func_opt_split ()
15413{
3725885a
RW
15414 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
15415 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
d7040cdb
SE
15416}
15417
15418# func_lo2o object
15419func_lo2o ()
15420{
3725885a 15421 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
d7040cdb 15422}
b214d478
SE
15423
15424# func_xform libobj-or-source
15425func_xform ()
15426{
3725885a 15427 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
b214d478
SE
15428}
15429
15430# func_arith arithmetic-term...
15431func_arith ()
15432{
15433 func_arith_result=`expr "$@"`
15434}
15435
15436# func_len string
15437# STRING may not start with a hyphen.
15438func_len ()
15439{
15440 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15441}
15442
d7040cdb
SE
15443_LT_EOF
15444esac
15445
15446case $lt_shell_append in
15447 yes)
15448 cat << \_LT_EOF >> "$cfgfile"
15449
15450# func_append var value
15451# Append VALUE to the end of shell variable VAR.
15452func_append ()
15453{
15454 eval "$1+=\$2"
15455}
15456_LT_EOF
15457 ;;
15458 *)
15459 cat << \_LT_EOF >> "$cfgfile"
15460
15461# func_append var value
15462# Append VALUE to the end of shell variable VAR.
15463func_append ()
15464{
15465 eval "$1=\$$1\$2"
15466}
b214d478 15467
d7040cdb
SE
15468_LT_EOF
15469 ;;
15470 esac
15471
15472
15473 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15474 || (rm -f "$cfgfile"; exit 1)
15475
15476 mv -f "$cfgfile" "$ofile" ||
15477 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15478 chmod +x "$ofile"
15479
42ecbf5e 15480 ;;
81ecdfbb 15481 "default-1":C)
20e95c23
DJ
15482 for ac_file in $CONFIG_FILES; do
15483 # Support "outfile[:infile[:infile...]]"
15484 case "$ac_file" in
15485 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15486 esac
15487 # PO directories have a Makefile.in generated from Makefile.in.in.
15488 case "$ac_file" in */Makefile.in)
15489 # Adjust a relative srcdir.
15490 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15491 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
15492 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15493 # In autoconf-2.13 it is called $ac_given_srcdir.
15494 # In autoconf-2.50 it is called $srcdir.
15495 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15496 case "$ac_given_srcdir" in
15497 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15498 /*) top_srcdir="$ac_given_srcdir" ;;
15499 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15500 esac
15501 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15502 rm -f "$ac_dir/POTFILES"
15503 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15504 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15505 POMAKEFILEDEPS="POTFILES.in"
15506 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
15507 # on $ac_dir but don't depend on user-specified configuration
15508 # parameters.
15509 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15510 # The LINGUAS file contains the set of available languages.
15511 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15512 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15513 fi
15514 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15515 # Hide the ALL_LINGUAS assigment from automake.
15516 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15517 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15518 else
15519 # The set of available languages was given in configure.in.
15520 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15521 fi
15522 case "$ac_given_srcdir" in
15523 .) srcdirpre= ;;
15524 *) srcdirpre='$(srcdir)/' ;;
15525 esac
15526 POFILES=
15527 GMOFILES=
15528 UPDATEPOFILES=
15529 DUMMYPOFILES=
15530 for lang in $ALL_LINGUAS; do
15531 POFILES="$POFILES $srcdirpre$lang.po"
15532 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15533 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15534 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15535 done
15536 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15537 # environment variable.
15538 INST_LINGUAS=
15539 if test -n "$ALL_LINGUAS"; then
15540 for presentlang in $ALL_LINGUAS; do
15541 useit=no
15542 if test "%UNSET%" != "$LINGUAS"; then
15543 desiredlanguages="$LINGUAS"
15544 else
15545 desiredlanguages="$ALL_LINGUAS"
15546 fi
15547 for desiredlang in $desiredlanguages; do
15548 # Use the presentlang catalog if desiredlang is
15549 # a. equal to presentlang, or
15550 # b. a variant of presentlang (because in this case,
15551 # presentlang can be used as a fallback for messages
15552 # which are not translated in the desiredlang catalog).
15553 case "$desiredlang" in
15554 "$presentlang"*) useit=yes;;
15555 esac
15556 done
15557 if test $useit = yes; then
15558 INST_LINGUAS="$INST_LINGUAS $presentlang"
15559 fi
15560 done
15561 fi
15562 CATALOGS=
15563 if test -n "$INST_LINGUAS"; then
15564 for lang in $INST_LINGUAS; do
15565 CATALOGS="$CATALOGS $lang.gmo"
15566 done
15567 fi
15568 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15569 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"
15570 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15571 if test -f "$f"; then
15572 case "$f" in
15573 *.orig | *.bak | *~) ;;
15574 *) cat "$f" >> "$ac_dir/Makefile" ;;
15575 esac
15576 fi
15577 done
15578 fi
15579 ;;
15580 esac
15581 done ;;
81ecdfbb 15582
42ecbf5e 15583 esac
81ecdfbb 15584done # for ac_tag
42ecbf5e 15585
42ecbf5e 15586
81ecdfbb 15587as_fn_exit 0
42ecbf5e 15588_ACEOF
42ecbf5e
DJ
15589ac_clean_files=$ac_clean_files_save
15590
81ecdfbb
RW
15591test $ac_write_fail = 0 ||
15592 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15593
42ecbf5e
DJ
15594
15595# configure is writing to config.log, and then calls config.status.
15596# config.status does its own redirection, appending to config.log.
15597# Unfortunately, on DOS this fails, as config.log is still kept open
15598# by configure, so config.status won't be able to write to it; its
15599# output is simply discarded. So we exec the FD to /dev/null,
15600# effectively closing config.log, so it can be properly (re)opened and
15601# appended to by config.status. When coming back to configure, we
15602# need to make the FD available again.
15603if test "$no_create" != yes; then
15604 ac_cs_success=:
15605 ac_config_status_args=
15606 test "$silent" = yes &&
15607 ac_config_status_args="$ac_config_status_args --quiet"
15608 exec 5>/dev/null
15609 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15610 exec 5>>config.log
15611 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15612 # would make configure fail if this is the last instruction.
81ecdfbb
RW
15613 $ac_cs_success || as_fn_exit $?
15614fi
15615if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15617$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
42ecbf5e 15618fi
252b5132 15619