]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gas/configure
* Makefile.in (clean): Remove Fission .dwo and .dwp files.
[thirdparty/binutils-gdb.git] / gas / 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## -------------------- ##
13b2be9c 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 :
13b2be9c
DJ
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13b2be9c
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
13b2be9c
DJ
31fi
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 }
13b2be9c
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
13b2be9c
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
13b2be9c 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."
13b2be9c 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."
13b2be9c 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
13b2be9c 380
81ecdfbb
RW
381if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13b2be9c
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
13b2be9c
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
13b2be9c 399
81ecdfbb 400as_me=`$as_basename -- "$0" ||
13b2be9c
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'`
13b2be9c 418
13b2be9c
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
13b2be9c 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 |
13b2be9c 436 sed '
81ecdfbb
RW
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
13b2be9c 441 N
81ecdfbb
RW
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13b2be9c 444 t loop
81ecdfbb 445 s/-\n.*//
13b2be9c 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; }
13b2be9c
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"
13b2be9c
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';;
13b2be9c
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
13b2be9c 474else
81ecdfbb
RW
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
13b2be9c 477fi
81ecdfbb
RW
478if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
13b2be9c 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'
13b2be9c 491 fi
13b2be9c
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
13b2be9c
DJ
497
498if mkdir -p . 2>/dev/null; then
81ecdfbb 499 as_mkdir_p='mkdir -p "$as_dir"'
13b2be9c 500else
ab509236 501 test -d ./-p && rmdir ./-p
13b2be9c
DJ
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
13b2be9c
DJ
527
528# Sed expression to map a string onto a valid CPP name.
ab509236 529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13b2be9c
DJ
530
531# Sed expression to map a string onto a valid variable name.
ab509236 532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13b2be9c 533
d7040cdb
SE
534SHELL=${CONFIG_SHELL-/bin/sh}
535
d7040cdb 536
81ecdfbb
RW
537exec 7<&0 </dev/null 6>&1
538
13b2be9c
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
13b2be9c
DJ
544#
545# Initializations.
546#
252b5132 547ac_default_prefix=/usr/local
81ecdfbb 548ac_clean_files=
13b2be9c 549ac_config_libobj_dir=.
81ecdfbb 550LIBOBJS=
13b2be9c
DJ
551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
13b2be9c
DJ
555
556# Identity of this package.
557PACKAGE_NAME=
558PACKAGE_TARNAME=
559PACKAGE_VERSION=
560PACKAGE_STRING=
561PACKAGE_BUGREPORT=
81ecdfbb 562PACKAGE_URL=
13b2be9c
DJ
563
564ac_unique_file="as.h"
565# Factoring default headers for most tests.
566ac_includes_default="\
567#include <stdio.h>
81ecdfbb 568#ifdef HAVE_SYS_TYPES_H
13b2be9c
DJ
569# include <sys/types.h>
570#endif
81ecdfbb 571#ifdef HAVE_SYS_STAT_H
13b2be9c
DJ
572# include <sys/stat.h>
573#endif
81ecdfbb 574#ifdef STDC_HEADERS
13b2be9c
DJ
575# include <stdlib.h>
576# include <stddef.h>
577#else
81ecdfbb 578# ifdef HAVE_STDLIB_H
13b2be9c
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
13b2be9c
DJ
584# include <memory.h>
585# endif
586# include <string.h>
587#endif
81ecdfbb 588#ifdef HAVE_STRINGS_H
13b2be9c
DJ
589# include <strings.h>
590#endif
81ecdfbb 591#ifdef HAVE_INTTYPES_H
13b2be9c 592# include <inttypes.h>
13b2be9c 593#endif
81ecdfbb
RW
594#ifdef HAVE_STDINT_H
595# include <stdint.h>
596#endif
597#ifdef HAVE_UNISTD_H
13b2be9c
DJ
598# include <unistd.h>
599#endif"
600
81ecdfbb
RW
601ac_subst_vars='am__EXEEXT_FALSE
602am__EXEEXT_TRUE
603LTLIBOBJS
604LIBOBJS
605LIBM
606ALLOCA
607GENINSRC_NEVER_FALSE
608GENINSRC_NEVER_TRUE
609MAINT
610MAINTAINER_MODE_FALSE
611MAINTAINER_MODE_TRUE
612MSGMERGE
613MSGFMT
614MKINSTALLDIRS
615CATOBJEXT
616GENCAT
617INSTOBJEXT
618DATADIRNAME
619CATALOGS
620POSUB
621GMSGFMT
622XGETTEXT
623INCINTL
624LIBINTL_DEP
625LIBINTL
626USE_NLS
627LEXLIB
628LEX_OUTPUT_ROOT
629LEX
630YFLAGS
631YACC
632OPCODES_LIB
633atof
634install_tooldir
635te_file
636obj_format
637target_cpu_type
638extra_objects
639cgen_cpu_prefix
640GDBINIT
641NO_WERROR
642WARN_CFLAGS
643OTOOL64
644OTOOL
645LIPO
646NMEDIT
647DSYMUTIL
df7b86aa 648MANIFEST_TOOL
81ecdfbb 649RANLIB
df7b86aa 650ac_ct_AR
81ecdfbb 651AR
df7b86aa 652DLLTOOL
81ecdfbb
RW
653OBJDUMP
654LN_S
655NM
656ac_ct_DUMPBIN
657DUMPBIN
658LD
659FGREP
660SED
661LIBTOOL
662EGREP
663GREP
664CPP
665am__fastdepCC_FALSE
666am__fastdepCC_TRUE
667CCDEPMODE
668AMDEPBACKSLASH
669AMDEP_FALSE
670AMDEP_TRUE
671am__quote
672am__include
673DEPDIR
674am__untar
675am__tar
676AMTAR
677am__leading_dot
678SET_MAKE
679AWK
680mkdir_p
681MKDIR_P
682INSTALL_STRIP_PROGRAM
683STRIP
684install_sh
685MAKEINFO
686AUTOHEADER
687AUTOMAKE
688AUTOCONF
689ACLOCAL
690VERSION
691PACKAGE
692CYGPATH_W
693am__isrc
694INSTALL_DATA
695INSTALL_SCRIPT
696INSTALL_PROGRAM
697OBJEXT
698EXEEXT
699ac_ct_CC
700CPPFLAGS
701LDFLAGS
702CFLAGS
703CC
704target_os
705target_vendor
706target_cpu
707target
708host_os
709host_vendor
710host_cpu
711host
712build_os
713build_vendor
714build_cpu
715build
716target_alias
717host_alias
718build_alias
719LIBS
720ECHO_T
721ECHO_N
722ECHO_C
723DEFS
724mandir
725localedir
726libdir
727psdir
728pdfdir
729dvidir
730htmldir
731infodir
732docdir
733oldincludedir
734includedir
735localstatedir
736sharedstatedir
737sysconfdir
738datadir
739datarootdir
740libexecdir
741sbindir
742bindir
743program_transform_name
744prefix
745exec_prefix
746PACKAGE_URL
747PACKAGE_BUGREPORT
748PACKAGE_STRING
749PACKAGE_VERSION
750PACKAGE_TARNAME
751PACKAGE_NAME
752PATH_SEPARATOR
753SHELL'
13b2be9c 754ac_subst_files=''
81ecdfbb
RW
755ac_user_opts='
756enable_option_checking
757enable_dependency_tracking
da2f07f1 758enable_plugins
81ecdfbb
RW
759enable_largefile
760enable_shared
761enable_static
762with_pic
763enable_fast_install
764with_gnu_ld
df7b86aa 765with_sysroot
81ecdfbb
RW
766enable_libtool_lock
767enable_targets
768enable_checking
769enable_werror
770enable_build_warnings
771enable_nls
772enable_maintainer_mode
0acf065b 773with_zlib
81ecdfbb
RW
774'
775 ac_precious_vars='build_alias
776host_alias
777target_alias
778CC
779CFLAGS
780LDFLAGS
781LIBS
782CPPFLAGS
783CPP
784YACC
785YFLAGS'
786
252b5132
RH
787
788# Initialize some variables set by options.
13b2be9c
DJ
789ac_init_help=
790ac_init_version=false
81ecdfbb
RW
791ac_unrecognized_opts=
792ac_unrecognized_sep=
252b5132
RH
793# The variables have the same names as the options, with
794# dashes changed to underlines.
13b2be9c 795cache_file=/dev/null
252b5132 796exec_prefix=NONE
252b5132 797no_create=
252b5132
RH
798no_recursion=
799prefix=NONE
800program_prefix=NONE
801program_suffix=NONE
802program_transform_name=s,x,x,
803silent=
804site=
805srcdir=
252b5132
RH
806verbose=
807x_includes=NONE
808x_libraries=NONE
13b2be9c
DJ
809
810# Installation directory options.
811# These are left unexpanded so users can "make install exec_prefix=/foo"
812# and all the variables that are supposed to be based on exec_prefix
813# by default will actually change.
814# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 815# (The list follows the same order as the GNU Coding Standards.)
252b5132
RH
816bindir='${exec_prefix}/bin'
817sbindir='${exec_prefix}/sbin'
818libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
819datarootdir='${prefix}/share'
820datadir='${datarootdir}'
252b5132
RH
821sysconfdir='${prefix}/etc'
822sharedstatedir='${prefix}/com'
823localstatedir='${prefix}/var'
252b5132
RH
824includedir='${prefix}/include'
825oldincludedir='/usr/include'
81ecdfbb
RW
826docdir='${datarootdir}/doc/${PACKAGE}'
827infodir='${datarootdir}/info'
828htmldir='${docdir}'
829dvidir='${docdir}'
830pdfdir='${docdir}'
831psdir='${docdir}'
832libdir='${exec_prefix}/lib'
833localedir='${datarootdir}/locale'
834mandir='${datarootdir}/man'
252b5132 835
252b5132 836ac_prev=
81ecdfbb 837ac_dashdash=
252b5132
RH
838for ac_option
839do
252b5132
RH
840 # If the previous option needs an argument, assign it.
841 if test -n "$ac_prev"; then
81ecdfbb 842 eval $ac_prev=\$ac_option
252b5132
RH
843 ac_prev=
844 continue
845 fi
846
81ecdfbb
RW
847 case $ac_option in
848 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
849 *) ac_optarg=yes ;;
850 esac
252b5132
RH
851
852 # Accept the important Cygnus configure options, so we can diagnose typos.
853
81ecdfbb
RW
854 case $ac_dashdash$ac_option in
855 --)
856 ac_dashdash=yes ;;
252b5132
RH
857
858 -bindir | --bindir | --bindi | --bind | --bin | --bi)
859 ac_prev=bindir ;;
860 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
13b2be9c 861 bindir=$ac_optarg ;;
252b5132
RH
862
863 -build | --build | --buil | --bui | --bu)
13b2be9c 864 ac_prev=build_alias ;;
252b5132 865 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
13b2be9c 866 build_alias=$ac_optarg ;;
252b5132
RH
867
868 -cache-file | --cache-file | --cache-fil | --cache-fi \
869 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
870 ac_prev=cache_file ;;
871 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
872 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
13b2be9c
DJ
873 cache_file=$ac_optarg ;;
874
875 --config-cache | -C)
876 cache_file=config.cache ;;
252b5132 877
81ecdfbb 878 -datadir | --datadir | --datadi | --datad)
252b5132 879 ac_prev=datadir ;;
81ecdfbb 880 -datadir=* | --datadir=* | --datadi=* | --datad=*)
13b2be9c 881 datadir=$ac_optarg ;;
252b5132 882
81ecdfbb
RW
883 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
884 | --dataroo | --dataro | --datar)
885 ac_prev=datarootdir ;;
886 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
887 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
888 datarootdir=$ac_optarg ;;
889
252b5132 890 -disable-* | --disable-*)
81ecdfbb 891 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 892 # Reject names that are not valid shell variable names.
81ecdfbb
RW
893 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
894 as_fn_error "invalid feature name: $ac_useropt"
895 ac_useropt_orig=$ac_useropt
896 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
897 case $ac_user_opts in
898 *"
899"enable_$ac_useropt"
900"*) ;;
901 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
902 ac_unrecognized_sep=', ';;
903 esac
904 eval enable_$ac_useropt=no ;;
905
906 -docdir | --docdir | --docdi | --doc | --do)
907 ac_prev=docdir ;;
908 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
909 docdir=$ac_optarg ;;
910
911 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
912 ac_prev=dvidir ;;
913 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
914 dvidir=$ac_optarg ;;
252b5132
RH
915
916 -enable-* | --enable-*)
81ecdfbb 917 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 918 # Reject names that are not valid shell variable names.
81ecdfbb
RW
919 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
920 as_fn_error "invalid feature name: $ac_useropt"
921 ac_useropt_orig=$ac_useropt
922 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
923 case $ac_user_opts in
924 *"
925"enable_$ac_useropt"
926"*) ;;
927 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
928 ac_unrecognized_sep=', ';;
252b5132 929 esac
81ecdfbb 930 eval enable_$ac_useropt=\$ac_optarg ;;
252b5132
RH
931
932 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
933 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
934 | --exec | --exe | --ex)
935 ac_prev=exec_prefix ;;
936 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
937 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
938 | --exec=* | --exe=* | --ex=*)
13b2be9c 939 exec_prefix=$ac_optarg ;;
252b5132
RH
940
941 -gas | --gas | --ga | --g)
942 # Obsolete; use --with-gas.
943 with_gas=yes ;;
944
13b2be9c
DJ
945 -help | --help | --hel | --he | -h)
946 ac_init_help=long ;;
947 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
948 ac_init_help=recursive ;;
949 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
950 ac_init_help=short ;;
252b5132
RH
951
952 -host | --host | --hos | --ho)
13b2be9c 953 ac_prev=host_alias ;;
252b5132 954 -host=* | --host=* | --hos=* | --ho=*)
13b2be9c 955 host_alias=$ac_optarg ;;
252b5132 956
81ecdfbb
RW
957 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
958 ac_prev=htmldir ;;
959 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
960 | --ht=*)
961 htmldir=$ac_optarg ;;
962
252b5132
RH
963 -includedir | --includedir | --includedi | --included | --include \
964 | --includ | --inclu | --incl | --inc)
965 ac_prev=includedir ;;
966 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
967 | --includ=* | --inclu=* | --incl=* | --inc=*)
13b2be9c 968 includedir=$ac_optarg ;;
252b5132
RH
969
970 -infodir | --infodir | --infodi | --infod | --info | --inf)
971 ac_prev=infodir ;;
972 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
13b2be9c 973 infodir=$ac_optarg ;;
252b5132
RH
974
975 -libdir | --libdir | --libdi | --libd)
976 ac_prev=libdir ;;
977 -libdir=* | --libdir=* | --libdi=* | --libd=*)
13b2be9c 978 libdir=$ac_optarg ;;
252b5132
RH
979
980 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
981 | --libexe | --libex | --libe)
982 ac_prev=libexecdir ;;
983 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
984 | --libexe=* | --libex=* | --libe=*)
13b2be9c 985 libexecdir=$ac_optarg ;;
252b5132 986
81ecdfbb
RW
987 -localedir | --localedir | --localedi | --localed | --locale)
988 ac_prev=localedir ;;
989 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
990 localedir=$ac_optarg ;;
991
252b5132 992 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 993 | --localstate | --localstat | --localsta | --localst | --locals)
252b5132
RH
994 ac_prev=localstatedir ;;
995 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 996 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
13b2be9c 997 localstatedir=$ac_optarg ;;
252b5132
RH
998
999 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1000 ac_prev=mandir ;;
1001 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
13b2be9c 1002 mandir=$ac_optarg ;;
252b5132
RH
1003
1004 -nfp | --nfp | --nf)
1005 # Obsolete; use --without-fp.
1006 with_fp=no ;;
1007
1008 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
13b2be9c 1009 | --no-cr | --no-c | -n)
252b5132
RH
1010 no_create=yes ;;
1011
1012 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1013 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1014 no_recursion=yes ;;
1015
1016 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1017 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1018 | --oldin | --oldi | --old | --ol | --o)
1019 ac_prev=oldincludedir ;;
1020 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1021 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1022 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
13b2be9c 1023 oldincludedir=$ac_optarg ;;
252b5132
RH
1024
1025 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1026 ac_prev=prefix ;;
1027 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
13b2be9c 1028 prefix=$ac_optarg ;;
252b5132
RH
1029
1030 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1031 | --program-pre | --program-pr | --program-p)
1032 ac_prev=program_prefix ;;
1033 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1034 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
13b2be9c 1035 program_prefix=$ac_optarg ;;
252b5132
RH
1036
1037 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1038 | --program-suf | --program-su | --program-s)
1039 ac_prev=program_suffix ;;
1040 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1041 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
13b2be9c 1042 program_suffix=$ac_optarg ;;
252b5132
RH
1043
1044 -program-transform-name | --program-transform-name \
1045 | --program-transform-nam | --program-transform-na \
1046 | --program-transform-n | --program-transform- \
1047 | --program-transform | --program-transfor \
1048 | --program-transfo | --program-transf \
1049 | --program-trans | --program-tran \
1050 | --progr-tra | --program-tr | --program-t)
1051 ac_prev=program_transform_name ;;
1052 -program-transform-name=* | --program-transform-name=* \
1053 | --program-transform-nam=* | --program-transform-na=* \
1054 | --program-transform-n=* | --program-transform-=* \
1055 | --program-transform=* | --program-transfor=* \
1056 | --program-transfo=* | --program-transf=* \
1057 | --program-trans=* | --program-tran=* \
1058 | --progr-tra=* | --program-tr=* | --program-t=*)
13b2be9c 1059 program_transform_name=$ac_optarg ;;
252b5132 1060
81ecdfbb
RW
1061 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1062 ac_prev=pdfdir ;;
1063 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1064 pdfdir=$ac_optarg ;;
1065
1066 -psdir | --psdir | --psdi | --psd | --ps)
1067 ac_prev=psdir ;;
1068 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1069 psdir=$ac_optarg ;;
1070
252b5132
RH
1071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072 | -silent | --silent | --silen | --sile | --sil)
1073 silent=yes ;;
1074
1075 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1076 ac_prev=sbindir ;;
1077 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1078 | --sbi=* | --sb=*)
13b2be9c 1079 sbindir=$ac_optarg ;;
252b5132
RH
1080
1081 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1082 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1083 | --sharedst | --shareds | --shared | --share | --shar \
1084 | --sha | --sh)
1085 ac_prev=sharedstatedir ;;
1086 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1087 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1088 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1089 | --sha=* | --sh=*)
13b2be9c 1090 sharedstatedir=$ac_optarg ;;
252b5132
RH
1091
1092 -site | --site | --sit)
1093 ac_prev=site ;;
1094 -site=* | --site=* | --sit=*)
13b2be9c 1095 site=$ac_optarg ;;
76bff705 1096
252b5132
RH
1097 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1098 ac_prev=srcdir ;;
1099 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
13b2be9c 1100 srcdir=$ac_optarg ;;
252b5132
RH
1101
1102 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1103 | --syscon | --sysco | --sysc | --sys | --sy)
1104 ac_prev=sysconfdir ;;
1105 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1106 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
13b2be9c 1107 sysconfdir=$ac_optarg ;;
252b5132
RH
1108
1109 -target | --target | --targe | --targ | --tar | --ta | --t)
13b2be9c 1110 ac_prev=target_alias ;;
252b5132 1111 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
13b2be9c 1112 target_alias=$ac_optarg ;;
252b5132
RH
1113
1114 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1115 verbose=yes ;;
1116
13b2be9c
DJ
1117 -version | --version | --versio | --versi | --vers | -V)
1118 ac_init_version=: ;;
252b5132
RH
1119
1120 -with-* | --with-*)
81ecdfbb 1121 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 1122 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1123 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124 as_fn_error "invalid package name: $ac_useropt"
1125 ac_useropt_orig=$ac_useropt
1126 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127 case $ac_user_opts in
1128 *"
1129"with_$ac_useropt"
1130"*) ;;
1131 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1132 ac_unrecognized_sep=', ';;
252b5132 1133 esac
81ecdfbb 1134 eval with_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1135
1136 -without-* | --without-*)
81ecdfbb 1137 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 1138 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1139 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1140 as_fn_error "invalid package name: $ac_useropt"
1141 ac_useropt_orig=$ac_useropt
1142 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1143 case $ac_user_opts in
1144 *"
1145"with_$ac_useropt"
1146"*) ;;
1147 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1148 ac_unrecognized_sep=', ';;
1149 esac
1150 eval with_$ac_useropt=no ;;
252b5132
RH
1151
1152 --x)
1153 # Obsolete; use --with-x.
1154 with_x=yes ;;
1155
1156 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1157 | --x-incl | --x-inc | --x-in | --x-i)
1158 ac_prev=x_includes ;;
1159 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1160 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
13b2be9c 1161 x_includes=$ac_optarg ;;
252b5132
RH
1162
1163 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1164 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1165 ac_prev=x_libraries ;;
1166 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1167 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
13b2be9c 1168 x_libraries=$ac_optarg ;;
252b5132 1169
81ecdfbb
RW
1170 -*) as_fn_error "unrecognized option: \`$ac_option'
1171Try \`$0 --help' for more information."
252b5132
RH
1172 ;;
1173
13b2be9c
DJ
1174 *=*)
1175 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1176 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1177 case $ac_envvar in #(
1178 '' | [0-9]* | *[!_$as_cr_alnum]* )
1179 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1180 esac
1181 eval $ac_envvar=\$ac_optarg
13b2be9c
DJ
1182 export $ac_envvar ;;
1183
252b5132 1184 *)
13b2be9c 1185 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1186 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
13b2be9c 1187 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1188 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
13b2be9c 1189 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
1190 ;;
1191
1192 esac
1193done
1194
1195if test -n "$ac_prev"; then
13b2be9c 1196 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1197 as_fn_error "missing argument to $ac_option"
c8615825 1198fi
c8615825 1199
81ecdfbb
RW
1200if test -n "$ac_unrecognized_opts"; then
1201 case $enable_option_checking in
1202 no) ;;
1203 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1204 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
13b2be9c 1205 esac
81ecdfbb 1206fi
252b5132 1207
81ecdfbb
RW
1208# Check all directory arguments for consistency.
1209for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1210 datadir sysconfdir sharedstatedir localstatedir includedir \
1211 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1212 libdir localedir mandir
252b5132 1213do
81ecdfbb
RW
1214 eval ac_val=\$$ac_var
1215 # Remove trailing slashes.
1216 case $ac_val in
1217 */ )
1218 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1219 eval $ac_var=\$ac_val;;
1220 esac
1221 # Be sure to have absolute directory names.
13b2be9c 1222 case $ac_val in
81ecdfbb
RW
1223 [\\/$]* | ?:[\\/]* ) continue;;
1224 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
252b5132 1225 esac
81ecdfbb 1226 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
252b5132
RH
1227done
1228
13b2be9c
DJ
1229# There might be people who depend on the old broken behavior: `$host'
1230# used to hold the argument of --host etc.
1231# FIXME: To remove some day.
1232build=$build_alias
1233host=$host_alias
1234target=$target_alias
1235
1236# FIXME: To remove some day.
1237if test "x$host_alias" != x; then
1238 if test "x$build_alias" = x; then
1239 cross_compiling=maybe
81ecdfbb 1240 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
13b2be9c
DJ
1241 If a cross compiler is detected then cross compile mode will be used." >&2
1242 elif test "x$build_alias" != "x$host_alias"; then
1243 cross_compiling=yes
1244 fi
1245fi
9b2b7d69 1246
13b2be9c
DJ
1247ac_tool_prefix=
1248test -n "$host_alias" && ac_tool_prefix=$host_alias-
1249
1250test "$silent" = yes && exec 6>/dev/null
252b5132 1251
252b5132 1252
81ecdfbb
RW
1253ac_pwd=`pwd` && test -n "$ac_pwd" &&
1254ac_ls_di=`ls -di .` &&
1255ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1256 as_fn_error "working directory cannot be determined"
1257test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1258 as_fn_error "pwd does not report name of working directory"
1259
1260
252b5132
RH
1261# Find the source files, if location was not specified.
1262if test -z "$srcdir"; then
1263 ac_srcdir_defaulted=yes
81ecdfbb
RW
1264 # Try the directory containing this script, then the parent directory.
1265 ac_confdir=`$as_dirname -- "$as_myself" ||
1266$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1267 X"$as_myself" : 'X\(//\)[^/]' \| \
1268 X"$as_myself" : 'X\(//\)$' \| \
1269 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1270$as_echo X"$as_myself" |
1271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1272 s//\1/
1273 q
1274 }
1275 /^X\(\/\/\)[^/].*/{
1276 s//\1/
1277 q
1278 }
1279 /^X\(\/\/\)$/{
1280 s//\1/
1281 q
1282 }
1283 /^X\(\/\).*/{
1284 s//\1/
1285 q
1286 }
1287 s/.*/./; q'`
252b5132 1288 srcdir=$ac_confdir
81ecdfbb 1289 if test ! -r "$srcdir/$ac_unique_file"; then
252b5132
RH
1290 srcdir=..
1291 fi
1292else
1293 ac_srcdir_defaulted=no
1294fi
81ecdfbb
RW
1295if test ! -r "$srcdir/$ac_unique_file"; then
1296 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1297 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1298fi
1299ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1300ac_abs_confdir=`(
1301 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1302 pwd)`
1303# When building in place, set srcdir=.
1304if test "$ac_abs_confdir" = "$ac_pwd"; then
1305 srcdir=.
1306fi
1307# Remove unnecessary trailing slashes from srcdir.
1308# Double slashes in file names in object file debugging info
1309# mess up M-x gdb in Emacs.
1310case $srcdir in
1311*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1312esac
1313for ac_var in $ac_precious_vars; do
1314 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1315 eval ac_env_${ac_var}_value=\$${ac_var}
1316 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1317 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1318done
d6d788bd 1319
13b2be9c
DJ
1320#
1321# Report the --help message.
1322#
1323if test "$ac_init_help" = "long"; then
1324 # Omit some internal or obsolete options to make the list less imposing.
1325 # This message is too long to be a string in the A/UX 3.1 sh.
1326 cat <<_ACEOF
1327\`configure' configures this package to adapt to many kinds of systems.
9b2b7d69 1328
13b2be9c 1329Usage: $0 [OPTION]... [VAR=VALUE]...
9b2b7d69 1330
13b2be9c
DJ
1331To assign environment variables (e.g., CC, CFLAGS...), specify them as
1332VAR=VALUE. See below for descriptions of some of the useful variables.
9b2b7d69 1333
13b2be9c 1334Defaults for the options are specified in brackets.
9b2b7d69 1335
13b2be9c
DJ
1336Configuration:
1337 -h, --help display this help and exit
1338 --help=short display options specific to this package
1339 --help=recursive display the short help of all the included packages
1340 -V, --version display version information and exit
1341 -q, --quiet, --silent do not print \`checking...' messages
1342 --cache-file=FILE cache test results in FILE [disabled]
1343 -C, --config-cache alias for \`--cache-file=config.cache'
1344 -n, --no-create do not create output files
1345 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1346
13b2be9c
DJ
1347Installation directories:
1348 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1349 [$ac_default_prefix]
13b2be9c 1350 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1351 [PREFIX]
9b2b7d69 1352
13b2be9c
DJ
1353By default, \`make install' will install all the files in
1354\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1355an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1356for instance \`--prefix=\$HOME'.
9b2b7d69 1357
13b2be9c 1358For better control, use the options below.
9b2b7d69 1359
13b2be9c 1360Fine tuning of the installation directories:
81ecdfbb
RW
1361 --bindir=DIR user executables [EPREFIX/bin]
1362 --sbindir=DIR system admin executables [EPREFIX/sbin]
1363 --libexecdir=DIR program executables [EPREFIX/libexec]
1364 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1365 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1366 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1367 --libdir=DIR object code libraries [EPREFIX/lib]
1368 --includedir=DIR C header files [PREFIX/include]
1369 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1370 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1371 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1372 --infodir=DIR info documentation [DATAROOTDIR/info]
1373 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1374 --mandir=DIR man documentation [DATAROOTDIR/man]
1375 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1376 --htmldir=DIR html documentation [DOCDIR]
1377 --dvidir=DIR dvi documentation [DOCDIR]
1378 --pdfdir=DIR pdf documentation [DOCDIR]
1379 --psdir=DIR ps documentation [DOCDIR]
13b2be9c 1380_ACEOF
9b2b7d69 1381
13b2be9c 1382 cat <<\_ACEOF
9b2b7d69 1383
13b2be9c
DJ
1384Program names:
1385 --program-prefix=PREFIX prepend PREFIX to installed program names
1386 --program-suffix=SUFFIX append SUFFIX to installed program names
1387 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
9b2b7d69 1388
13b2be9c
DJ
1389System types:
1390 --build=BUILD configure for building on BUILD [guessed]
1391 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1392 --target=TARGET configure for building compilers for TARGET [HOST]
1393_ACEOF
9b2b7d69 1394fi
9b2b7d69 1395
13b2be9c 1396if test -n "$ac_init_help"; then
9b2b7d69 1397
13b2be9c 1398 cat <<\_ACEOF
9b2b7d69 1399
13b2be9c 1400Optional Features:
81ecdfbb 1401 --disable-option-checking ignore unrecognized --enable/--with options
13b2be9c
DJ
1402 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1403 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
ab509236
L
1404 --disable-dependency-tracking speeds up one-time build
1405 --enable-dependency-tracking do not reject slow dependency extractors
da2f07f1 1406 --enable-plugins Enable support for plugins (defaults no)
d053aef8 1407 --disable-largefile omit support for large files
81ecdfbb
RW
1408 --enable-shared[=PKGS] build shared libraries [default=yes]
1409 --enable-static[=PKGS] build static libraries [default=yes]
d7040cdb
SE
1410 --enable-fast-install[=PKGS]
1411 optimize for fast installation [default=yes]
13b2be9c 1412 --disable-libtool-lock avoid locking (might break parallel builds)
241a6c40 1413 --enable-targets alternative target configurations besides the primary
c43a438d 1414 --enable-checking enable run-time checks
241a6c40
AM
1415 --enable-werror treat compile warnings as errors
1416 --enable-build-warnings enable build-time compiler warnings
13b2be9c 1417 --disable-nls do not use Native Language Support
ab509236
L
1418 --enable-maintainer-mode enable make rules and dependencies not useful
1419 (and sometimes confusing) to the casual installer
9b2b7d69 1420
13b2be9c
DJ
1421Optional Packages:
1422 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1423 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1424 --with-pic try to use only PIC/non-PIC objects [default=use
1425 both]
1426 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
df7b86aa
NC
1427 --with-sysroot=DIR Search for dependent libraries within DIR
1428 (or the compiler's sysroot if not specified).
0acf065b 1429 --with-zlib include zlib support (auto/yes/no) default=auto
9b2b7d69 1430
13b2be9c
DJ
1431Some influential environment variables:
1432 CC C compiler command
1433 CFLAGS C compiler flags
1434 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1435 nonstandard directory <lib dir>
81ecdfbb
RW
1436 LIBS libraries to pass to the linker, e.g. -l<library>
1437 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1438 you have headers in a nonstandard directory <include dir>
13b2be9c 1439 CPP C preprocessor
81ecdfbb
RW
1440 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1441 the first program found out of: `bison -y', `byacc', `yacc'.
1442 YFLAGS The list of arguments that will be passed by default to $YACC.
1443 This script will default YFLAGS to the empty string to avoid a
1444 default value of `-d' given by some make applications.
13b2be9c
DJ
1445
1446Use these variables to override the choices made by `configure' or to help
1447it to find libraries and programs with nonstandard names/locations.
1448
81ecdfbb 1449Report bugs to the package provider.
13b2be9c 1450_ACEOF
81ecdfbb 1451ac_status=$?
9b2b7d69 1452fi
9b2b7d69 1453
13b2be9c
DJ
1454if test "$ac_init_help" = "recursive"; then
1455 # If there are subdirs, report their specific --help.
13b2be9c 1456 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1457 test -d "$ac_dir" ||
1458 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1459 continue
13b2be9c
DJ
1460 ac_builddir=.
1461
81ecdfbb
RW
1462case "$ac_dir" in
1463.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1464*)
1465 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1466 # A ".." for each directory in $ac_dir_suffix.
1467 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1468 case $ac_top_builddir_sub in
1469 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1470 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1471 esac ;;
1472esac
1473ac_abs_top_builddir=$ac_pwd
1474ac_abs_builddir=$ac_pwd$ac_dir_suffix
1475# for backward compatibility:
1476ac_top_builddir=$ac_top_build_prefix
9b2b7d69 1477
13b2be9c 1478case $srcdir in
81ecdfbb 1479 .) # We are building in place.
13b2be9c 1480 ac_srcdir=.
81ecdfbb
RW
1481 ac_top_srcdir=$ac_top_builddir_sub
1482 ac_abs_top_srcdir=$ac_pwd ;;
1483 [\\/]* | ?:[\\/]* ) # Absolute name.
13b2be9c 1484 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1485 ac_top_srcdir=$srcdir
1486 ac_abs_top_srcdir=$srcdir ;;
1487 *) # Relative name.
1488 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1489 ac_top_srcdir=$ac_top_build_prefix$srcdir
1490 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ab509236 1491esac
81ecdfbb
RW
1492ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1493
1494 cd "$ac_dir" || { ac_status=$?; continue; }
1495 # Check for guested configure.
1496 if test -f "$ac_srcdir/configure.gnu"; then
1497 echo &&
1498 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1499 elif test -f "$ac_srcdir/configure"; then
1500 echo &&
1501 $SHELL "$ac_srcdir/configure" --help=recursive
13b2be9c 1502 else
81ecdfbb
RW
1503 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1504 fi || ac_status=$?
1505 cd "$ac_pwd" || { ac_status=$?; break; }
13b2be9c
DJ
1506 done
1507fi
6840198f 1508
81ecdfbb 1509test -n "$ac_init_help" && exit $ac_status
13b2be9c
DJ
1510if $ac_init_version; then
1511 cat <<\_ACEOF
81ecdfbb
RW
1512configure
1513generated by GNU Autoconf 2.64
c8615825 1514
81ecdfbb 1515Copyright (C) 2009 Free Software Foundation, Inc.
13b2be9c
DJ
1516This configure script is free software; the Free Software Foundation
1517gives unlimited permission to copy, distribute and modify it.
1518_ACEOF
81ecdfbb 1519 exit
13b2be9c 1520fi
c8615825 1521
81ecdfbb
RW
1522## ------------------------ ##
1523## Autoconf initialization. ##
1524## ------------------------ ##
c8615825 1525
81ecdfbb
RW
1526# ac_fn_c_try_compile LINENO
1527# --------------------------
1528# Try to compile conftest.$ac_ext, and return whether this succeeded.
1529ac_fn_c_try_compile ()
13b2be9c 1530{
81ecdfbb
RW
1531 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1532 rm -f conftest.$ac_objext
1533 if { { ac_try="$ac_compile"
1534case "(($ac_try" in
1535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1536 *) ac_try_echo=$ac_try;;
1537esac
1538eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1539$as_echo "$ac_try_echo"; } >&5
1540 (eval "$ac_compile") 2>conftest.err
1541 ac_status=$?
1542 if test -s conftest.err; then
1543 grep -v '^ *+' conftest.err >conftest.er1
1544 cat conftest.er1 >&5
1545 mv -f conftest.er1 conftest.err
1546 fi
1547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1548 test $ac_status = 0; } && {
1549 test -z "$ac_c_werror_flag" ||
1550 test ! -s conftest.err
1551 } && test -s conftest.$ac_objext; then :
1552 ac_retval=0
1553else
1554 $as_echo "$as_me: failed program was:" >&5
1555sed 's/^/| /' conftest.$ac_ext >&5
13b2be9c 1556
81ecdfbb
RW
1557 ac_retval=1
1558fi
1559 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1560 return $ac_retval
13b2be9c 1561
81ecdfbb 1562} # ac_fn_c_try_compile
13b2be9c 1563
81ecdfbb
RW
1564# ac_fn_c_try_link LINENO
1565# -----------------------
1566# Try to link conftest.$ac_ext, and return whether this succeeded.
1567ac_fn_c_try_link ()
1568{
1569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570 rm -f conftest.$ac_objext conftest$ac_exeext
1571 if { { ac_try="$ac_link"
1572case "(($ac_try" in
1573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574 *) ac_try_echo=$ac_try;;
1575esac
1576eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577$as_echo "$ac_try_echo"; } >&5
1578 (eval "$ac_link") 2>conftest.err
1579 ac_status=$?
1580 if test -s conftest.err; then
1581 grep -v '^ *+' conftest.err >conftest.er1
1582 cat conftest.er1 >&5
1583 mv -f conftest.er1 conftest.err
1584 fi
1585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586 test $ac_status = 0; } && {
1587 test -z "$ac_c_werror_flag" ||
1588 test ! -s conftest.err
1589 } && test -s conftest$ac_exeext && {
1590 test "$cross_compiling" = yes ||
1591 $as_test_x conftest$ac_exeext
1592 }; then :
1593 ac_retval=0
1594else
1595 $as_echo "$as_me: failed program was:" >&5
1596sed 's/^/| /' conftest.$ac_ext >&5
1597
1598 ac_retval=1
1599fi
1600 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1601 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1602 # interfere with the next link command; also delete a directory that is
1603 # left behind by Apple's compiler. We do this before executing the actions.
1604 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1605 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1606 return $ac_retval
1607
1608} # ac_fn_c_try_link
1609
1610# ac_fn_c_try_cpp LINENO
1611# ----------------------
1612# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1613ac_fn_c_try_cpp ()
1614{
1615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616 if { { ac_try="$ac_cpp conftest.$ac_ext"
1617case "(($ac_try" in
1618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1619 *) ac_try_echo=$ac_try;;
1620esac
1621eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622$as_echo "$ac_try_echo"; } >&5
1623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1624 ac_status=$?
1625 if test -s conftest.err; then
1626 grep -v '^ *+' conftest.err >conftest.er1
1627 cat conftest.er1 >&5
1628 mv -f conftest.er1 conftest.err
1629 fi
1630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631 test $ac_status = 0; } >/dev/null && {
1632 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1633 test ! -s conftest.err
1634 }; then :
1635 ac_retval=0
1636else
1637 $as_echo "$as_me: failed program was:" >&5
1638sed 's/^/| /' conftest.$ac_ext >&5
1639
1640 ac_retval=1
1641fi
1642 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1643 return $ac_retval
1644
1645} # ac_fn_c_try_cpp
1646
1647# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1648# -------------------------------------------------------
1649# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1650# the include files in INCLUDES and setting the cache variable VAR
1651# accordingly.
1652ac_fn_c_check_header_mongrel ()
1653{
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1657$as_echo_n "checking for $2... " >&6; }
1658if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1659 $as_echo_n "(cached) " >&6
1660fi
1661eval ac_res=\$$3
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1663$as_echo "$ac_res" >&6; }
1664else
1665 # Is the header compilable?
1666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1667$as_echo_n "checking $2 usability... " >&6; }
1668cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1669/* end confdefs.h. */
1670$4
1671#include <$2>
1672_ACEOF
1673if ac_fn_c_try_compile "$LINENO"; then :
1674 ac_header_compiler=yes
1675else
1676 ac_header_compiler=no
1677fi
1678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1680$as_echo "$ac_header_compiler" >&6; }
1681
1682# Is the header present?
1683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1684$as_echo_n "checking $2 presence... " >&6; }
1685cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1686/* end confdefs.h. */
1687#include <$2>
1688_ACEOF
1689if ac_fn_c_try_cpp "$LINENO"; then :
1690 ac_header_preproc=yes
1691else
1692 ac_header_preproc=no
1693fi
1694rm -f conftest.err conftest.$ac_ext
1695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1696$as_echo "$ac_header_preproc" >&6; }
1697
1698# So? What about this header?
1699case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1700 yes:no: )
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1702$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1704$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1705 ;;
1706 no:yes:* )
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1708$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1710$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1712$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1714$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1716$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1717 ;;
1718esac
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1720$as_echo_n "checking for $2... " >&6; }
1721if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1722 $as_echo_n "(cached) " >&6
1723else
1724 eval "$3=\$ac_header_compiler"
1725fi
1726eval ac_res=\$$3
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1728$as_echo "$ac_res" >&6; }
1729fi
1730 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1731
1732} # ac_fn_c_check_header_mongrel
1733
1734# ac_fn_c_try_run LINENO
1735# ----------------------
1736# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1737# that executables *can* be run.
1738ac_fn_c_try_run ()
1739{
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 if { { ac_try="$ac_link"
1742case "(($ac_try" in
1743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1744 *) ac_try_echo=$ac_try;;
1745esac
1746eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1747$as_echo "$ac_try_echo"; } >&5
1748 (eval "$ac_link") 2>&5
1749 ac_status=$?
1750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1752 { { case "(($ac_try" in
1753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754 *) ac_try_echo=$ac_try;;
1755esac
1756eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757$as_echo "$ac_try_echo"; } >&5
1758 (eval "$ac_try") 2>&5
1759 ac_status=$?
1760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761 test $ac_status = 0; }; }; then :
1762 ac_retval=0
1763else
1764 $as_echo "$as_me: program exited with status $ac_status" >&5
1765 $as_echo "$as_me: failed program was:" >&5
1766sed 's/^/| /' conftest.$ac_ext >&5
1767
1768 ac_retval=$ac_status
1769fi
1770 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1771 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1772 return $ac_retval
1773
1774} # ac_fn_c_try_run
1775
1776# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1777# -------------------------------------------------------
1778# Tests whether HEADER exists and can be compiled using the include files in
1779# INCLUDES, setting the cache variable VAR accordingly.
1780ac_fn_c_check_header_compile ()
1781{
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1784$as_echo_n "checking for $2... " >&6; }
1785if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1786 $as_echo_n "(cached) " >&6
1787else
1788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1789/* end confdefs.h. */
1790$4
1791#include <$2>
1792_ACEOF
1793if ac_fn_c_try_compile "$LINENO"; then :
1794 eval "$3=yes"
1795else
1796 eval "$3=no"
1797fi
1798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1799fi
1800eval ac_res=\$$3
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1802$as_echo "$ac_res" >&6; }
1803 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1804
1805} # ac_fn_c_check_header_compile
1806
1807# ac_fn_c_check_func LINENO FUNC VAR
1808# ----------------------------------
1809# Tests whether FUNC exists, setting the cache variable VAR accordingly
1810ac_fn_c_check_func ()
1811{
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1814$as_echo_n "checking for $2... " >&6; }
1815if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1816 $as_echo_n "(cached) " >&6
1817else
1818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1819/* end confdefs.h. */
1820/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1822#define $2 innocuous_$2
1823
1824/* System header to define __stub macros and hopefully few prototypes,
1825 which can conflict with char $2 (); below.
1826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1827 <limits.h> exists even on freestanding compilers. */
1828
1829#ifdef __STDC__
1830# include <limits.h>
1831#else
1832# include <assert.h>
1833#endif
1834
1835#undef $2
1836
1837/* Override any GCC internal prototype to avoid an error.
1838 Use char because int might match the return type of a GCC
1839 builtin and then its argument prototype would still apply. */
1840#ifdef __cplusplus
1841extern "C"
1842#endif
1843char $2 ();
1844/* The GNU C library defines this for functions which it implements
1845 to always fail with ENOSYS. Some functions are actually named
1846 something starting with __ and the normal name is an alias. */
1847#if defined __stub_$2 || defined __stub___$2
1848choke me
1849#endif
1850
1851int
1852main ()
1853{
1854return $2 ();
1855 ;
1856 return 0;
1857}
1858_ACEOF
1859if ac_fn_c_try_link "$LINENO"; then :
1860 eval "$3=yes"
1861else
1862 eval "$3=no"
1863fi
1864rm -f core conftest.err conftest.$ac_objext \
1865 conftest$ac_exeext conftest.$ac_ext
1866fi
1867eval ac_res=\$$3
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1869$as_echo "$ac_res" >&6; }
1870 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1871
1872} # ac_fn_c_check_func
1873
1874# ac_fn_c_check_decl LINENO SYMBOL VAR
1875# ------------------------------------
1876# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1877ac_fn_c_check_decl ()
1878{
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
360cfc9c
AM
1880 as_decl_name=`echo $2|sed 's/ *(.*//'`
1881 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1883$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
81ecdfbb
RW
1884if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1885 $as_echo_n "(cached) " >&6
1886else
1887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888/* end confdefs.h. */
1889$4
1890int
1891main ()
1892{
360cfc9c
AM
1893#ifndef $as_decl_name
1894#ifdef __cplusplus
1895 (void) $as_decl_use;
1896#else
1897 (void) $as_decl_name;
1898#endif
81ecdfbb
RW
1899#endif
1900
1901 ;
1902 return 0;
1903}
1904_ACEOF
1905if ac_fn_c_try_compile "$LINENO"; then :
1906 eval "$3=yes"
1907else
1908 eval "$3=no"
1909fi
1910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1911fi
1912eval ac_res=\$$3
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1914$as_echo "$ac_res" >&6; }
1915 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1916
1917} # ac_fn_c_check_decl
1918cat >config.log <<_ACEOF
1919This file contains any messages produced by compilers while
1920running configure, to aid debugging if configure makes a mistake.
1921
1922It was created by $as_me, which was
1923generated by GNU Autoconf 2.64. Invocation command line was
1924
1925 $ $0 $@
1926
1927_ACEOF
1928exec 5>>config.log
1929{
1930cat <<_ASUNAME
1931## --------- ##
1932## Platform. ##
1933## --------- ##
1934
1935hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1936uname -m = `(uname -m) 2>/dev/null || echo unknown`
1937uname -r = `(uname -r) 2>/dev/null || echo unknown`
1938uname -s = `(uname -s) 2>/dev/null || echo unknown`
1939uname -v = `(uname -v) 2>/dev/null || echo unknown`
1940
1941/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1942/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1943
1944/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
13b2be9c
DJ
1945/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1946/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 1947/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
13b2be9c
DJ
1948/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1949/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1950/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1951
1952_ASUNAME
1953
1954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1955for as_dir in $PATH
1956do
1957 IFS=$as_save_IFS
1958 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1959 $as_echo "PATH: $as_dir"
1960 done
1961IFS=$as_save_IFS
9b2b7d69 1962
13b2be9c 1963} >&5
6840198f 1964
13b2be9c 1965cat >&5 <<_ACEOF
c8615825 1966
9b2b7d69 1967
13b2be9c
DJ
1968## ----------- ##
1969## Core tests. ##
1970## ----------- ##
87ccc1b0 1971
13b2be9c 1972_ACEOF
9b2b7d69 1973
13b2be9c
DJ
1974
1975# Keep a trace of the command line.
1976# Strip out --no-create and --no-recursion so they do not pile up.
1977# Strip out --silent because we don't want to record it for future runs.
1978# Also quote any args containing shell meta-characters.
1979# Make two passes to allow for proper duplicate-argument suppression.
1980ac_configure_args=
1981ac_configure_args0=
1982ac_configure_args1=
13b2be9c
DJ
1983ac_must_keep_next=false
1984for ac_pass in 1 2
1985do
1986 for ac_arg
1987 do
1988 case $ac_arg in
1989 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1990 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1991 | -silent | --silent | --silen | --sile | --sil)
1992 continue ;;
81ecdfbb
RW
1993 *\'*)
1994 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
13b2be9c
DJ
1995 esac
1996 case $ac_pass in
81ecdfbb 1997 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
13b2be9c 1998 2)
81ecdfbb 1999 as_fn_append ac_configure_args1 " '$ac_arg'"
13b2be9c 2000 if test $ac_must_keep_next = true; then
ab509236 2001 ac_must_keep_next=false # Got value, back to normal.
13b2be9c 2002 else
ab509236
L
2003 case $ac_arg in
2004 *=* | --config-cache | -C | -disable-* | --disable-* \
2005 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2006 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2007 | -with-* | --with-* | -without-* | --without-* | --x)
2008 case "$ac_configure_args0 " in
2009 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2010 esac
2011 ;;
2012 -* ) ac_must_keep_next=true ;;
2013 esac
13b2be9c 2014 fi
81ecdfbb 2015 as_fn_append ac_configure_args " '$ac_arg'"
c8615825
AM
2016 ;;
2017 esac
2018 done
13b2be9c 2019done
81ecdfbb
RW
2020{ ac_configure_args0=; unset ac_configure_args0;}
2021{ ac_configure_args1=; unset ac_configure_args1;}
13b2be9c
DJ
2022
2023# When interrupted or exit'd, cleanup temporary files, and complete
2024# config.log. We remove comments because anyway the quotes in there
2025# would cause problems or look ugly.
81ecdfbb
RW
2026# WARNING: Use '\'' to represent an apostrophe within the trap.
2027# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
13b2be9c
DJ
2028trap 'exit_status=$?
2029 # Save into config.log some information that might help in debugging.
2030 {
2031 echo
2032
2033 cat <<\_ASBOX
2034## ---------------- ##
2035## Cache variables. ##
2036## ---------------- ##
2037_ASBOX
2038 echo
2039 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2040(
2041 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2042 eval ac_val=\$$ac_var
2043 case $ac_val in #(
2044 *${as_nl}*)
2045 case $ac_var in #(
2046 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2047$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2048 esac
2049 case $ac_var in #(
2050 _ | IFS | as_nl) ;; #(
2051 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2052 *) { eval $ac_var=; unset $ac_var;} ;;
2053 esac ;;
2054 esac
2055 done
13b2be9c 2056 (set) 2>&1 |
81ecdfbb
RW
2057 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2058 *${as_nl}ac_space=\ *)
13b2be9c 2059 sed -n \
81ecdfbb
RW
2060 "s/'\''/'\''\\\\'\'''\''/g;
2061 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2062 ;; #(
13b2be9c 2063 *)
81ecdfbb 2064 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13b2be9c 2065 ;;
81ecdfbb
RW
2066 esac |
2067 sort
2068)
13b2be9c
DJ
2069 echo
2070
2071 cat <<\_ASBOX
2072## ----------------- ##
2073## Output variables. ##
2074## ----------------- ##
2075_ASBOX
2076 echo
2077 for ac_var in $ac_subst_vars
2078 do
81ecdfbb
RW
2079 eval ac_val=\$$ac_var
2080 case $ac_val in
2081 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2082 esac
2083 $as_echo "$ac_var='\''$ac_val'\''"
13b2be9c
DJ
2084 done | sort
2085 echo
2086
2087 if test -n "$ac_subst_files"; then
2088 cat <<\_ASBOX
81ecdfbb
RW
2089## ------------------- ##
2090## File substitutions. ##
2091## ------------------- ##
13b2be9c
DJ
2092_ASBOX
2093 echo
2094 for ac_var in $ac_subst_files
2095 do
81ecdfbb
RW
2096 eval ac_val=\$$ac_var
2097 case $ac_val in
2098 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2099 esac
2100 $as_echo "$ac_var='\''$ac_val'\''"
13b2be9c
DJ
2101 done | sort
2102 echo
2103 fi
2104
2105 if test -s confdefs.h; then
2106 cat <<\_ASBOX
2107## ----------- ##
2108## confdefs.h. ##
2109## ----------- ##
2110_ASBOX
2111 echo
81ecdfbb 2112 cat confdefs.h
13b2be9c
DJ
2113 echo
2114 fi
2115 test "$ac_signal" != 0 &&
81ecdfbb
RW
2116 $as_echo "$as_me: caught signal $ac_signal"
2117 $as_echo "$as_me: exit $exit_status"
13b2be9c 2118 } >&5
81ecdfbb
RW
2119 rm -f core *.core core.conftest.* &&
2120 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
13b2be9c 2121 exit $exit_status
81ecdfbb 2122' 0
13b2be9c 2123for ac_signal in 1 2 13 15; do
81ecdfbb 2124 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
13b2be9c
DJ
2125done
2126ac_signal=0
2127
2128# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2129rm -f -r conftest* confdefs.h
2130
2131$as_echo "/* confdefs.h */" > confdefs.h
13b2be9c
DJ
2132
2133# Predefined preprocessor variables.
2134
2135cat >>confdefs.h <<_ACEOF
2136#define PACKAGE_NAME "$PACKAGE_NAME"
2137_ACEOF
2138
13b2be9c
DJ
2139cat >>confdefs.h <<_ACEOF
2140#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2141_ACEOF
2142
13b2be9c
DJ
2143cat >>confdefs.h <<_ACEOF
2144#define PACKAGE_VERSION "$PACKAGE_VERSION"
2145_ACEOF
2146
13b2be9c
DJ
2147cat >>confdefs.h <<_ACEOF
2148#define PACKAGE_STRING "$PACKAGE_STRING"
2149_ACEOF
2150
13b2be9c
DJ
2151cat >>confdefs.h <<_ACEOF
2152#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2153_ACEOF
2154
81ecdfbb
RW
2155cat >>confdefs.h <<_ACEOF
2156#define PACKAGE_URL "$PACKAGE_URL"
2157_ACEOF
2158
13b2be9c
DJ
2159
2160# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2161# Prefer an explicitly selected file to automatically selected ones.
2162ac_site_file1=NONE
2163ac_site_file2=NONE
2164if test -n "$CONFIG_SITE"; then
2165 ac_site_file1=$CONFIG_SITE
2166elif test "x$prefix" != xNONE; then
2167 ac_site_file1=$prefix/share/config.site
2168 ac_site_file2=$prefix/etc/config.site
2169else
2170 ac_site_file1=$ac_default_prefix/share/config.site
2171 ac_site_file2=$ac_default_prefix/etc/config.site
2172fi
2173for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2174do
2175 test "x$ac_site_file" = xNONE && continue
13b2be9c 2176 if test -r "$ac_site_file"; then
81ecdfbb
RW
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2178$as_echo "$as_me: loading site script $ac_site_file" >&6;}
13b2be9c
DJ
2179 sed 's/^/| /' "$ac_site_file" >&5
2180 . "$ac_site_file"
2181 fi
2182done
2183
2184if test -r "$cache_file"; then
2185 # Some versions of bash will fail to source /dev/null (special
2186 # files actually), so we avoid doing that.
2187 if test -f "$cache_file"; then
81ecdfbb
RW
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2189$as_echo "$as_me: loading cache $cache_file" >&6;}
13b2be9c 2190 case $cache_file in
81ecdfbb
RW
2191 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2192 *) . "./$cache_file";;
13b2be9c
DJ
2193 esac
2194 fi
2195else
81ecdfbb
RW
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2197$as_echo "$as_me: creating cache $cache_file" >&6;}
13b2be9c
DJ
2198 >$cache_file
2199fi
2200
2201# Check that the precious variables saved in the cache have kept the same
2202# value.
2203ac_cache_corrupted=false
81ecdfbb 2204for ac_var in $ac_precious_vars; do
13b2be9c
DJ
2205 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2206 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2207 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2208 eval ac_new_val=\$ac_env_${ac_var}_value
13b2be9c
DJ
2209 case $ac_old_set,$ac_new_set in
2210 set,)
81ecdfbb
RW
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2212$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
13b2be9c
DJ
2213 ac_cache_corrupted=: ;;
2214 ,set)
81ecdfbb
RW
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2216$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
13b2be9c
DJ
2217 ac_cache_corrupted=: ;;
2218 ,);;
2219 *)
2220 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2221 # differences in whitespace do not lead to failure.
2222 ac_old_val_w=`echo x $ac_old_val`
2223 ac_new_val_w=`echo x $ac_new_val`
2224 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2226$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2227 ac_cache_corrupted=:
2228 else
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2230$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2231 eval $ac_var=\$ac_old_val
2232 fi
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2234$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2236$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
13b2be9c
DJ
2237 fi;;
2238 esac
2239 # Pass precious variables to config.status.
2240 if test "$ac_new_set" = set; then
2241 case $ac_new_val in
81ecdfbb 2242 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
13b2be9c
DJ
2243 *) ac_arg=$ac_var=$ac_new_val ;;
2244 esac
2245 case " $ac_configure_args " in
2246 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2247 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
13b2be9c
DJ
2248 esac
2249 fi
2250done
2251if $ac_cache_corrupted; then
81ecdfbb
RW
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2253$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2255$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2256 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
13b2be9c 2257fi
81ecdfbb
RW
2258## -------------------- ##
2259## Main body of script. ##
2260## -------------------- ##
13b2be9c
DJ
2261
2262ac_ext=c
2263ac_cpp='$CPP $CPPFLAGS'
2264ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2265ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2266ac_compiler_gnu=$ac_cv_c_compiler_gnu
2267
2268
2269
13b2be9c 2270
da594c4a 2271
13b2be9c
DJ
2272
2273
2274ac_aux_dir=
81ecdfbb
RW
2275for ac_dir in .. "$srcdir"/..; do
2276 for ac_t in install-sh install.sh shtool; do
2277 if test -f "$ac_dir/$ac_t"; then
2278 ac_aux_dir=$ac_dir
2279 ac_install_sh="$ac_aux_dir/$ac_t -c"
2280 break 2
2281 fi
2282 done
13b2be9c
DJ
2283done
2284if test -z "$ac_aux_dir"; then
81ecdfbb 2285 as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
13b2be9c 2286fi
81ecdfbb
RW
2287
2288# These three variables are undocumented and unsupported,
2289# and are intended to be withdrawn in a future Autoconf release.
2290# They can cause serious problems if a builder's source tree is in a directory
2291# whose full name contains unusual characters.
2292ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2293ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2294ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2295
13b2be9c
DJ
2296
2297# Make sure we can run config.sub.
81ecdfbb
RW
2298$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2299 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2300
2301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2302$as_echo_n "checking build system type... " >&6; }
2303if test "${ac_cv_build+set}" = set; then :
2304 $as_echo_n "(cached) " >&6
2305else
2306 ac_build_alias=$build_alias
2307test "x$ac_build_alias" = x &&
2308 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2309test "x$ac_build_alias" = x &&
2310 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2311ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2312 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2313
2314fi
2315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2316$as_echo "$ac_cv_build" >&6; }
2317case $ac_cv_build in
2318*-*-*) ;;
2319*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2320esac
13b2be9c 2321build=$ac_cv_build
81ecdfbb
RW
2322ac_save_IFS=$IFS; IFS='-'
2323set x $ac_cv_build
2324shift
2325build_cpu=$1
2326build_vendor=$2
2327shift; shift
2328# Remember, the first character of IFS is used to create $*,
2329# except with old shells:
2330build_os=$*
2331IFS=$ac_save_IFS
2332case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
13b2be9c
DJ
2333
2334
81ecdfbb
RW
2335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2336$as_echo_n "checking host system type... " >&6; }
2337if test "${ac_cv_host+set}" = set; then :
2338 $as_echo_n "(cached) " >&6
13b2be9c 2339else
81ecdfbb
RW
2340 if test "x$host_alias" = x; then
2341 ac_cv_host=$ac_cv_build
2342else
2343 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2344 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2345fi
13b2be9c
DJ
2346
2347fi
81ecdfbb
RW
2348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2349$as_echo "$ac_cv_host" >&6; }
2350case $ac_cv_host in
2351*-*-*) ;;
2352*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2353esac
13b2be9c 2354host=$ac_cv_host
81ecdfbb
RW
2355ac_save_IFS=$IFS; IFS='-'
2356set x $ac_cv_host
2357shift
2358host_cpu=$1
2359host_vendor=$2
2360shift; shift
2361# Remember, the first character of IFS is used to create $*,
2362# except with old shells:
2363host_os=$*
2364IFS=$ac_save_IFS
2365case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
13b2be9c
DJ
2366
2367
81ecdfbb
RW
2368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2369$as_echo_n "checking target system type... " >&6; }
2370if test "${ac_cv_target+set}" = set; then :
2371 $as_echo_n "(cached) " >&6
2372else
2373 if test "x$target_alias" = x; then
2374 ac_cv_target=$ac_cv_host
13b2be9c 2375else
81ecdfbb
RW
2376 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2377 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2378fi
13b2be9c
DJ
2379
2380fi
81ecdfbb
RW
2381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2382$as_echo "$ac_cv_target" >&6; }
2383case $ac_cv_target in
2384*-*-*) ;;
2385*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2386esac
13b2be9c 2387target=$ac_cv_target
81ecdfbb
RW
2388ac_save_IFS=$IFS; IFS='-'
2389set x $ac_cv_target
2390shift
2391target_cpu=$1
2392target_vendor=$2
2393shift; shift
2394# Remember, the first character of IFS is used to create $*,
2395# except with old shells:
2396target_os=$*
2397IFS=$ac_save_IFS
2398case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
13b2be9c
DJ
2399
2400
2401# The aliases save the names the user supplied, while $host etc.
2402# will get canonicalized.
2403test -n "$target_alias" &&
2404 test "$program_prefix$program_suffix$program_transform_name" = \
2405 NONENONEs,x,x, &&
2406 program_prefix=${target_alias}-
2407ac_ext=c
2408ac_cpp='$CPP $CPPFLAGS'
2409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2411ac_compiler_gnu=$ac_cv_c_compiler_gnu
2412if test -n "$ac_tool_prefix"; then
2413 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2414set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
2415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2416$as_echo_n "checking for $ac_word... " >&6; }
2417if test "${ac_cv_prog_CC+set}" = set; then :
2418 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2419else
2420 if test -n "$CC"; then
2421 ac_cv_prog_CC="$CC" # Let the user override the test.
2422else
2423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2424for as_dir in $PATH
2425do
2426 IFS=$as_save_IFS
2427 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2428 for ac_exec_ext in '' $ac_executable_extensions; do
2429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13b2be9c 2430 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 2431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2432 break 2
2433 fi
2434done
81ecdfbb
RW
2435 done
2436IFS=$as_save_IFS
13b2be9c
DJ
2437
2438fi
2439fi
2440CC=$ac_cv_prog_CC
2441if test -n "$CC"; then
81ecdfbb
RW
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2443$as_echo "$CC" >&6; }
13b2be9c 2444else
81ecdfbb
RW
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2446$as_echo "no" >&6; }
13b2be9c
DJ
2447fi
2448
81ecdfbb 2449
13b2be9c
DJ
2450fi
2451if test -z "$ac_cv_prog_CC"; then
2452 ac_ct_CC=$CC
2453 # Extract the first word of "gcc", so it can be a program name with args.
2454set dummy gcc; ac_word=$2
81ecdfbb
RW
2455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2456$as_echo_n "checking for $ac_word... " >&6; }
2457if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2458 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2459else
2460 if test -n "$ac_ct_CC"; then
2461 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2462else
2463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464for as_dir in $PATH
2465do
2466 IFS=$as_save_IFS
2467 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2468 for ac_exec_ext in '' $ac_executable_extensions; do
2469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13b2be9c 2470 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 2471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2472 break 2
2473 fi
2474done
81ecdfbb
RW
2475 done
2476IFS=$as_save_IFS
13b2be9c
DJ
2477
2478fi
2479fi
2480ac_ct_CC=$ac_cv_prog_ac_ct_CC
2481if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2483$as_echo "$ac_ct_CC" >&6; }
13b2be9c 2484else
81ecdfbb
RW
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2486$as_echo "no" >&6; }
13b2be9c
DJ
2487fi
2488
81ecdfbb
RW
2489 if test "x$ac_ct_CC" = x; then
2490 CC=""
2491 else
2492 case $cross_compiling:$ac_tool_warned in
2493yes:)
2494{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2495$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2496ac_tool_warned=yes ;;
2497esac
2498 CC=$ac_ct_CC
2499 fi
13b2be9c
DJ
2500else
2501 CC="$ac_cv_prog_CC"
2502fi
2503
2504if test -z "$CC"; then
81ecdfbb
RW
2505 if test -n "$ac_tool_prefix"; then
2506 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13b2be9c 2507set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
2508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2509$as_echo_n "checking for $ac_word... " >&6; }
2510if test "${ac_cv_prog_CC+set}" = set; then :
2511 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2512else
2513 if test -n "$CC"; then
2514 ac_cv_prog_CC="$CC" # Let the user override the test.
2515else
2516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517for as_dir in $PATH
2518do
2519 IFS=$as_save_IFS
2520 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2521 for ac_exec_ext in '' $ac_executable_extensions; do
2522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13b2be9c 2523 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 2524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2525 break 2
2526 fi
2527done
81ecdfbb
RW
2528 done
2529IFS=$as_save_IFS
13b2be9c
DJ
2530
2531fi
2532fi
2533CC=$ac_cv_prog_CC
2534if test -n "$CC"; then
81ecdfbb
RW
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2536$as_echo "$CC" >&6; }
13b2be9c 2537else
81ecdfbb
RW
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2539$as_echo "no" >&6; }
13b2be9c
DJ
2540fi
2541
13b2be9c 2542
81ecdfbb 2543 fi
13b2be9c
DJ
2544fi
2545if test -z "$CC"; then
2546 # Extract the first word of "cc", so it can be a program name with args.
2547set dummy cc; ac_word=$2
81ecdfbb
RW
2548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2549$as_echo_n "checking for $ac_word... " >&6; }
2550if test "${ac_cv_prog_CC+set}" = set; then :
2551 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2552else
2553 if test -n "$CC"; then
2554 ac_cv_prog_CC="$CC" # Let the user override the test.
2555else
2556 ac_prog_rejected=no
2557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558for as_dir in $PATH
2559do
2560 IFS=$as_save_IFS
2561 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2562 for ac_exec_ext in '' $ac_executable_extensions; do
2563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13b2be9c
DJ
2564 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2565 ac_prog_rejected=yes
2566 continue
2567 fi
2568 ac_cv_prog_CC="cc"
81ecdfbb 2569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2570 break 2
2571 fi
2572done
81ecdfbb
RW
2573 done
2574IFS=$as_save_IFS
2575
13b2be9c
DJ
2576if test $ac_prog_rejected = yes; then
2577 # We found a bogon in the path, so make sure we never use it.
2578 set dummy $ac_cv_prog_CC
2579 shift
2580 if test $# != 0; then
2581 # We chose a different compiler from the bogus one.
2582 # However, it has the same basename, so the bogon will be chosen
2583 # first if we set CC to just the basename; use the full file name.
2584 shift
2585 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2586 fi
2587fi
2588fi
2589fi
2590CC=$ac_cv_prog_CC
2591if test -n "$CC"; then
81ecdfbb
RW
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2593$as_echo "$CC" >&6; }
13b2be9c 2594else
81ecdfbb
RW
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2596$as_echo "no" >&6; }
13b2be9c
DJ
2597fi
2598
81ecdfbb 2599
13b2be9c
DJ
2600fi
2601if test -z "$CC"; then
2602 if test -n "$ac_tool_prefix"; then
81ecdfbb 2603 for ac_prog in cl.exe
13b2be9c
DJ
2604 do
2605 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2606set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
2607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2608$as_echo_n "checking for $ac_word... " >&6; }
2609if test "${ac_cv_prog_CC+set}" = set; then :
2610 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2611else
2612 if test -n "$CC"; then
2613 ac_cv_prog_CC="$CC" # Let the user override the test.
2614else
2615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616for as_dir in $PATH
2617do
2618 IFS=$as_save_IFS
2619 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2620 for ac_exec_ext in '' $ac_executable_extensions; do
2621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13b2be9c 2622 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 2623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2624 break 2
2625 fi
2626done
81ecdfbb
RW
2627 done
2628IFS=$as_save_IFS
13b2be9c
DJ
2629
2630fi
2631fi
2632CC=$ac_cv_prog_CC
2633if test -n "$CC"; then
81ecdfbb
RW
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2635$as_echo "$CC" >&6; }
13b2be9c 2636else
81ecdfbb
RW
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2638$as_echo "no" >&6; }
13b2be9c
DJ
2639fi
2640
81ecdfbb 2641
13b2be9c
DJ
2642 test -n "$CC" && break
2643 done
2644fi
2645if test -z "$CC"; then
2646 ac_ct_CC=$CC
81ecdfbb 2647 for ac_prog in cl.exe
13b2be9c
DJ
2648do
2649 # Extract the first word of "$ac_prog", so it can be a program name with args.
2650set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
2651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2652$as_echo_n "checking for $ac_word... " >&6; }
2653if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2654 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2655else
2656 if test -n "$ac_ct_CC"; then
2657 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2658else
2659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660for as_dir in $PATH
2661do
2662 IFS=$as_save_IFS
2663 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2664 for ac_exec_ext in '' $ac_executable_extensions; do
2665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13b2be9c 2666 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 2667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2668 break 2
2669 fi
2670done
81ecdfbb
RW
2671 done
2672IFS=$as_save_IFS
13b2be9c
DJ
2673
2674fi
2675fi
2676ac_ct_CC=$ac_cv_prog_ac_ct_CC
2677if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2679$as_echo "$ac_ct_CC" >&6; }
13b2be9c 2680else
81ecdfbb
RW
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2682$as_echo "no" >&6; }
13b2be9c
DJ
2683fi
2684
81ecdfbb 2685
13b2be9c
DJ
2686 test -n "$ac_ct_CC" && break
2687done
2688
81ecdfbb
RW
2689 if test "x$ac_ct_CC" = x; then
2690 CC=""
2691 else
2692 case $cross_compiling:$ac_tool_warned in
2693yes:)
2694{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2695$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2696ac_tool_warned=yes ;;
2697esac
2698 CC=$ac_ct_CC
2699 fi
13b2be9c
DJ
2700fi
2701
2702fi
2703
2704
81ecdfbb
RW
2705test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2706$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2707as_fn_error "no acceptable C compiler found in \$PATH
2708See \`config.log' for more details." "$LINENO" 5; }
13b2be9c
DJ
2709
2710# Provide some information about the compiler.
81ecdfbb
RW
2711$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2712set X $ac_compile
2713ac_compiler=$2
2714for ac_option in --version -v -V -qversion; do
2715 { { ac_try="$ac_compiler $ac_option >&5"
2716case "(($ac_try" in
2717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2718 *) ac_try_echo=$ac_try;;
2719esac
2720eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2721$as_echo "$ac_try_echo"; } >&5
2722 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13b2be9c 2723 ac_status=$?
81ecdfbb
RW
2724 if test -s conftest.err; then
2725 sed '10a\
2726... rest of stderr output deleted ...
2727 10q' conftest.err >conftest.er1
2728 cat conftest.er1 >&5
2729 rm -f conftest.er1 conftest.err
2730 fi
2731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2732 test $ac_status = 0; }
2733done
13b2be9c 2734
81ecdfbb 2735cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
2736/* end confdefs.h. */
2737
2738int
2739main ()
2740{
2741
2742 ;
2743 return 0;
2744}
2745_ACEOF
2746ac_clean_files_save=$ac_clean_files
81ecdfbb 2747ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
13b2be9c
DJ
2748# Try to create an executable without -o first, disregard a.out.
2749# It will help us diagnose broken compilers, and finding out an intuition
2750# of exeext.
81ecdfbb
RW
2751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2752$as_echo_n "checking for C compiler default output file name... " >&6; }
2753ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2754
2755# The possible output files:
2756ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2757
2758ac_rmfiles=
2759for ac_file in $ac_files
2760do
2761 case $ac_file in
2762 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2763 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2764 esac
2765done
2766rm -f $ac_rmfiles
2767
2768if { { ac_try="$ac_link_default"
2769case "(($ac_try" in
2770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2771 *) ac_try_echo=$ac_try;;
2772esac
2773eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2774$as_echo "$ac_try_echo"; } >&5
2775 (eval "$ac_link_default") 2>&5
2776 ac_status=$?
2777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2778 test $ac_status = 0; }; then :
2779 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2780# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2781# in a Makefile. We should not override ac_cv_exeext if it was cached,
2782# so that the user can short-circuit this test for compilers unknown to
2783# Autoconf.
2784for ac_file in $ac_files ''
13b2be9c
DJ
2785do
2786 test -f "$ac_file" || continue
2787 case $ac_file in
81ecdfbb 2788 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
ab509236 2789 ;;
13b2be9c 2790 [ab].out )
ab509236
L
2791 # We found the default executable, but exeext='' is most
2792 # certainly right.
2793 break;;
13b2be9c 2794 *.* )
81ecdfbb
RW
2795 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2796 then :; else
2797 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2798 fi
2799 # We set ac_cv_exeext here because the later test for it is not
2800 # safe: cross compilers may not add the suffix if given an `-o'
2801 # argument, so we may need to know it at that point already.
2802 # Even if this section looks crufty: it has the advantage of
2803 # actually working.
ab509236 2804 break;;
13b2be9c 2805 * )
ab509236 2806 break;;
13b2be9c
DJ
2807 esac
2808done
81ecdfbb
RW
2809test "$ac_cv_exeext" = no && ac_cv_exeext=
2810
13b2be9c 2811else
81ecdfbb
RW
2812 ac_file=''
2813fi
2814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2815$as_echo "$ac_file" >&6; }
2816if test -z "$ac_file"; then :
2817 $as_echo "$as_me: failed program was:" >&5
13b2be9c
DJ
2818sed 's/^/| /' conftest.$ac_ext >&5
2819
81ecdfbb
RW
2820{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2821$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2822{ as_fn_set_status 77
2823as_fn_error "C compiler cannot create executables
2824See \`config.log' for more details." "$LINENO" 5; }; }
13b2be9c 2825fi
13b2be9c 2826ac_exeext=$ac_cv_exeext
13b2be9c 2827
81ecdfbb 2828# Check that the compiler produces executables we can run. If not, either
13b2be9c 2829# the compiler is broken, or we cross compile.
81ecdfbb
RW
2830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2831$as_echo_n "checking whether the C compiler works... " >&6; }
13b2be9c
DJ
2832# If not cross compiling, check that we can run a simple program.
2833if test "$cross_compiling" != yes; then
2834 if { ac_try='./$ac_file'
81ecdfbb
RW
2835 { { case "(($ac_try" in
2836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2837 *) ac_try_echo=$ac_try;;
2838esac
2839eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2840$as_echo "$ac_try_echo"; } >&5
2841 (eval "$ac_try") 2>&5
13b2be9c 2842 ac_status=$?
81ecdfbb
RW
2843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2844 test $ac_status = 0; }; }; then
13b2be9c
DJ
2845 cross_compiling=no
2846 else
2847 if test "$cross_compiling" = maybe; then
2848 cross_compiling=yes
2849 else
81ecdfbb
RW
2850 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2851$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2852as_fn_error "cannot run C compiled programs.
13b2be9c 2853If you meant to cross compile, use \`--host'.
81ecdfbb 2854See \`config.log' for more details." "$LINENO" 5; }
13b2be9c
DJ
2855 fi
2856 fi
2857fi
81ecdfbb
RW
2858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2859$as_echo "yes" >&6; }
13b2be9c 2860
81ecdfbb 2861rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
13b2be9c 2862ac_clean_files=$ac_clean_files_save
81ecdfbb 2863# Check that the compiler produces executables we can run. If not, either
13b2be9c 2864# the compiler is broken, or we cross compile.
81ecdfbb
RW
2865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2866$as_echo_n "checking whether we are cross compiling... " >&6; }
2867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2868$as_echo "$cross_compiling" >&6; }
2869
2870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2871$as_echo_n "checking for suffix of executables... " >&6; }
2872if { { ac_try="$ac_link"
2873case "(($ac_try" in
2874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2875 *) ac_try_echo=$ac_try;;
2876esac
2877eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2878$as_echo "$ac_try_echo"; } >&5
2879 (eval "$ac_link") 2>&5
13b2be9c 2880 ac_status=$?
81ecdfbb
RW
2881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2882 test $ac_status = 0; }; then :
13b2be9c
DJ
2883 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2884# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2885# work properly (i.e., refer to `conftest.exe'), while it won't with
2886# `rm'.
2887for ac_file in conftest.exe conftest conftest.*; do
2888 test -f "$ac_file" || continue
2889 case $ac_file in
81ecdfbb 2890 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
13b2be9c 2891 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ab509236 2892 break;;
13b2be9c
DJ
2893 * ) break;;
2894 esac
2895done
2896else
81ecdfbb
RW
2897 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2898$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2899as_fn_error "cannot compute suffix of executables: cannot compile and link
2900See \`config.log' for more details." "$LINENO" 5; }
13b2be9c 2901fi
13b2be9c 2902rm -f conftest$ac_cv_exeext
81ecdfbb
RW
2903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2904$as_echo "$ac_cv_exeext" >&6; }
13b2be9c
DJ
2905
2906rm -f conftest.$ac_ext
2907EXEEXT=$ac_cv_exeext
2908ac_exeext=$EXEEXT
81ecdfbb
RW
2909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2910$as_echo_n "checking for suffix of object files... " >&6; }
2911if test "${ac_cv_objext+set}" = set; then :
2912 $as_echo_n "(cached) " >&6
13b2be9c 2913else
81ecdfbb 2914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
2915/* end confdefs.h. */
2916
2917int
2918main ()
2919{
2920
2921 ;
2922 return 0;
2923}
2924_ACEOF
2925rm -f conftest.o conftest.obj
81ecdfbb
RW
2926if { { ac_try="$ac_compile"
2927case "(($ac_try" in
2928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2929 *) ac_try_echo=$ac_try;;
2930esac
2931eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2932$as_echo "$ac_try_echo"; } >&5
2933 (eval "$ac_compile") 2>&5
2934 ac_status=$?
2935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2936 test $ac_status = 0; }; then :
2937 for ac_file in conftest.o conftest.obj conftest.*; do
2938 test -f "$ac_file" || continue;
13b2be9c 2939 case $ac_file in
81ecdfbb 2940 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
13b2be9c
DJ
2941 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2942 break;;
2943 esac
2944done
2945else
81ecdfbb 2946 $as_echo "$as_me: failed program was:" >&5
13b2be9c
DJ
2947sed 's/^/| /' conftest.$ac_ext >&5
2948
81ecdfbb
RW
2949{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2950$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2951as_fn_error "cannot compute suffix of object files: cannot compile
2952See \`config.log' for more details." "$LINENO" 5; }
13b2be9c 2953fi
13b2be9c
DJ
2954rm -f conftest.$ac_cv_objext conftest.$ac_ext
2955fi
81ecdfbb
RW
2956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2957$as_echo "$ac_cv_objext" >&6; }
13b2be9c
DJ
2958OBJEXT=$ac_cv_objext
2959ac_objext=$OBJEXT
81ecdfbb
RW
2960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2961$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2962if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2963 $as_echo_n "(cached) " >&6
13b2be9c 2964else
81ecdfbb 2965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
2966/* end confdefs.h. */
2967
2968int
2969main ()
2970{
2971#ifndef __GNUC__
2972 choke me
2973#endif
2974
2975 ;
2976 return 0;
2977}
2978_ACEOF
81ecdfbb 2979if ac_fn_c_try_compile "$LINENO"; then :
13b2be9c
DJ
2980 ac_compiler_gnu=yes
2981else
81ecdfbb 2982 ac_compiler_gnu=no
13b2be9c 2983fi
81ecdfbb 2984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
2985ac_cv_c_compiler_gnu=$ac_compiler_gnu
2986
2987fi
81ecdfbb
RW
2988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2989$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2990if test $ac_compiler_gnu = yes; then
2991 GCC=yes
2992else
2993 GCC=
2994fi
13b2be9c
DJ
2995ac_test_CFLAGS=${CFLAGS+set}
2996ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
2997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2998$as_echo_n "checking whether $CC accepts -g... " >&6; }
2999if test "${ac_cv_prog_cc_g+set}" = set; then :
3000 $as_echo_n "(cached) " >&6
3001else
3002 ac_save_c_werror_flag=$ac_c_werror_flag
3003 ac_c_werror_flag=yes
3004 ac_cv_prog_cc_g=no
3005 CFLAGS="-g"
3006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
3007/* end confdefs.h. */
3008
3009int
3010main ()
3011{
3012
3013 ;
3014 return 0;
3015}
3016_ACEOF
81ecdfbb 3017if ac_fn_c_try_compile "$LINENO"; then :
13b2be9c
DJ
3018 ac_cv_prog_cc_g=yes
3019else
81ecdfbb
RW
3020 CFLAGS=""
3021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3022/* end confdefs.h. */
13b2be9c 3023
81ecdfbb
RW
3024int
3025main ()
3026{
3027
3028 ;
3029 return 0;
3030}
3031_ACEOF
3032if ac_fn_c_try_compile "$LINENO"; then :
3033
3034else
3035 ac_c_werror_flag=$ac_save_c_werror_flag
3036 CFLAGS="-g"
3037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3038/* end confdefs.h. */
3039
3040int
3041main ()
3042{
3043
3044 ;
3045 return 0;
3046}
3047_ACEOF
3048if ac_fn_c_try_compile "$LINENO"; then :
3049 ac_cv_prog_cc_g=yes
3050fi
3051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c 3052fi
81ecdfbb 3053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c 3054fi
81ecdfbb
RW
3055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3056 ac_c_werror_flag=$ac_save_c_werror_flag
3057fi
3058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3059$as_echo "$ac_cv_prog_cc_g" >&6; }
13b2be9c
DJ
3060if test "$ac_test_CFLAGS" = set; then
3061 CFLAGS=$ac_save_CFLAGS
3062elif test $ac_cv_prog_cc_g = yes; then
3063 if test "$GCC" = yes; then
3064 CFLAGS="-g -O2"
3065 else
3066 CFLAGS="-g"
3067 fi
3068else
3069 if test "$GCC" = yes; then
3070 CFLAGS="-O2"
3071 else
3072 CFLAGS=
3073 fi
3074fi
81ecdfbb
RW
3075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3076$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3077if test "${ac_cv_prog_cc_c89+set}" = set; then :
3078 $as_echo_n "(cached) " >&6
13b2be9c 3079else
81ecdfbb 3080 ac_cv_prog_cc_c89=no
13b2be9c 3081ac_save_CC=$CC
81ecdfbb 3082cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
3083/* end confdefs.h. */
3084#include <stdarg.h>
3085#include <stdio.h>
3086#include <sys/types.h>
3087#include <sys/stat.h>
3088/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3089struct buf { int x; };
3090FILE * (*rcsopen) (struct buf *, struct stat *, int);
3091static char *e (p, i)
3092 char **p;
3093 int i;
3094{
3095 return p[i];
3096}
3097static char *f (char * (*g) (char **, int), char **p, ...)
3098{
3099 char *s;
3100 va_list v;
3101 va_start (v,p);
3102 s = g (p, va_arg (v,int));
3103 va_end (v);
3104 return s;
3105}
ab509236
L
3106
3107/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3108 function prototypes and stuff, but not '\xHH' hex character constants.
3109 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3110 as 'x'. The following induces an error, until -std is added to get
ab509236
L
3111 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3112 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3113 that's true only with -std. */
ab509236
L
3114int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3115
81ecdfbb
RW
3116/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3117 inside strings and character constants. */
3118#define FOO(x) 'x'
3119int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3120
13b2be9c
DJ
3121int test (int i, double x);
3122struct s1 {int (*f) (int a);};
3123struct s2 {int (*f) (double a);};
3124int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3125int argc;
3126char **argv;
3127int
3128main ()
3129{
3130return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3131 ;
3132 return 0;
3133}
3134_ACEOF
81ecdfbb
RW
3135for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3136 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13b2be9c
DJ
3137do
3138 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3139 if ac_fn_c_try_compile "$LINENO"; then :
3140 ac_cv_prog_cc_c89=$ac_arg
13b2be9c 3141fi
81ecdfbb
RW
3142rm -f core conftest.err conftest.$ac_objext
3143 test "x$ac_cv_prog_cc_c89" != "xno" && break
13b2be9c 3144done
81ecdfbb 3145rm -f conftest.$ac_ext
13b2be9c
DJ
3146CC=$ac_save_CC
3147
3148fi
81ecdfbb
RW
3149# AC_CACHE_VAL
3150case "x$ac_cv_prog_cc_c89" in
3151 x)
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3153$as_echo "none needed" >&6; } ;;
3154 xno)
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3156$as_echo "unsupported" >&6; } ;;
13b2be9c 3157 *)
81ecdfbb
RW
3158 CC="$CC $ac_cv_prog_cc_c89"
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3160$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13b2be9c 3161esac
81ecdfbb 3162if test "x$ac_cv_prog_cc_c89" != xno; then :
13b2be9c 3163
13b2be9c
DJ
3164fi
3165
13b2be9c
DJ
3166ac_ext=c
3167ac_cpp='$CPP $CPPFLAGS'
3168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3170ac_compiler_gnu=$ac_cv_c_compiler_gnu
3171
3172
81ecdfbb
RW
3173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3174$as_echo_n "checking for library containing strerror... " >&6; }
3175if test "${ac_cv_search_strerror+set}" = set; then :
3176 $as_echo_n "(cached) " >&6
13b2be9c 3177else
ab509236 3178 ac_func_search_save_LIBS=$LIBS
81ecdfbb 3179cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
3180/* end confdefs.h. */
3181
81ecdfbb
RW
3182/* Override any GCC internal prototype to avoid an error.
3183 Use char because int might match the return type of a GCC
3184 builtin and then its argument prototype would still apply. */
13b2be9c
DJ
3185#ifdef __cplusplus
3186extern "C"
3187#endif
13b2be9c
DJ
3188char strerror ();
3189int
3190main ()
3191{
81ecdfbb 3192return strerror ();
13b2be9c
DJ
3193 ;
3194 return 0;
3195}
3196_ACEOF
81ecdfbb
RW
3197for ac_lib in '' cposix; do
3198 if test -z "$ac_lib"; then
3199 ac_res="none required"
3200 else
3201 ac_res=-l$ac_lib
ab509236 3202 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
3203 fi
3204 if ac_fn_c_try_link "$LINENO"; then :
3205 ac_cv_search_strerror=$ac_res
3206fi
3207rm -f core conftest.err conftest.$ac_objext \
3208 conftest$ac_exeext
3209 if test "${ac_cv_search_strerror+set}" = set; then :
3210 break
3211fi
3212done
3213if test "${ac_cv_search_strerror+set}" = set; then :
ab509236 3214
ab509236 3215else
81ecdfbb 3216 ac_cv_search_strerror=no
13b2be9c 3217fi
81ecdfbb 3218rm conftest.$ac_ext
ab509236
L
3219LIBS=$ac_func_search_save_LIBS
3220fi
81ecdfbb
RW
3221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3222$as_echo "$ac_cv_search_strerror" >&6; }
3223ac_res=$ac_cv_search_strerror
3224if test "$ac_res" != no; then :
3225 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13b2be9c 3226
ab509236 3227fi
13b2be9c
DJ
3228
3229
3230BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
81ecdfbb
RW
3231am__api_version='1.11'
3232
13b2be9c
DJ
3233# Find a good install program. We prefer a C program (faster),
3234# so one script is as good as another. But avoid the broken or
3235# incompatible versions:
3236# SysV /etc/install, /usr/sbin/install
3237# SunOS /usr/etc/install
3238# IRIX /sbin/install
3239# AIX /bin/install
3240# AmigaOS /C/install, which installs bootblocks on floppy discs
3241# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3242# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3243# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ab509236 3244# OS/2's system install, which has a completely different semantic
13b2be9c 3245# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 3246# Reject install programs that cannot install multiple files.
81ecdfbb
RW
3247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3248$as_echo_n "checking for a BSD-compatible install... " >&6; }
13b2be9c 3249if test -z "$INSTALL"; then
81ecdfbb
RW
3250if test "${ac_cv_path_install+set}" = set; then :
3251 $as_echo_n "(cached) " >&6
13b2be9c
DJ
3252else
3253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254for as_dir in $PATH
3255do
3256 IFS=$as_save_IFS
3257 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3258 # Account for people who put trailing slashes in PATH elements.
3259case $as_dir/ in #((
3260 ./ | .// | /[cC]/* | \
13b2be9c 3261 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 3262 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
13b2be9c
DJ
3263 /usr/ucb/* ) ;;
3264 *)
3265 # OSF1 and SCO ODT 3.0 have their own names for install.
3266 # Don't use installbsd from OSF since it installs stuff as root
3267 # by default.
3268 for ac_prog in ginstall scoinst install; do
3269 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 3270 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
ab509236
L
3271 if test $ac_prog = install &&
3272 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3273 # AIX install. It has an incompatible calling convention.
3274 :
3275 elif test $ac_prog = install &&
3276 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3277 # program-specific install script used by HP pwplus--don't use.
3278 :
3279 else
58c85be7
RW
3280 rm -rf conftest.one conftest.two conftest.dir
3281 echo one > conftest.one
3282 echo two > conftest.two
3283 mkdir conftest.dir
3284 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3285 test -s conftest.one && test -s conftest.two &&
3286 test -s conftest.dir/conftest.one &&
3287 test -s conftest.dir/conftest.two
3288 then
3289 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3290 break 3
3291 fi
ab509236
L
3292 fi
3293 fi
13b2be9c
DJ
3294 done
3295 done
3296 ;;
3297esac
81ecdfbb
RW
3298
3299 done
3300IFS=$as_save_IFS
13b2be9c 3301
58c85be7 3302rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
3303
3304fi
3305 if test "${ac_cv_path_install+set}" = set; then
13b2be9c 3306 INSTALL=$ac_cv_path_install
252b5132 3307 else
58c85be7
RW
3308 # As a last resort, use the slow shell script. Don't cache a
3309 # value for INSTALL within a source directory, because that will
252b5132 3310 # break other packages using the cache if that directory is
58c85be7 3311 # removed, or if the value is a relative name.
13b2be9c 3312 INSTALL=$ac_install_sh
252b5132
RH
3313 fi
3314fi
81ecdfbb
RW
3315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3316$as_echo "$INSTALL" >&6; }
252b5132
RH
3317
3318# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3319# It thinks the first close brace ends the variable substitution.
3320test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3321
13b2be9c 3322test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
3323
3324test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3325
81ecdfbb
RW
3326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3327$as_echo_n "checking whether build environment is sane... " >&6; }
252b5132
RH
3328# Just in case
3329sleep 1
13b2be9c 3330echo timestamp > conftest.file
81ecdfbb
RW
3331# Reject unsafe characters in $srcdir or the absolute working directory
3332# name. Accept space and tab only in the latter.
3333am_lf='
3334'
3335case `pwd` in
3336 *[\\\"\#\$\&\'\`$am_lf]*)
3337 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3338esac
3339case $srcdir in
3340 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3341 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3342esac
3343
252b5132
RH
3344# Do `set' in a subshell so we don't clobber the current shell's
3345# arguments. Must try -L first in case configure is actually a
3346# symlink; some systems play weird games with the mod time of symlinks
3347# (eg FreeBSD returns the mod time of the symlink's containing
3348# directory).
3349if (
81ecdfbb 3350 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
252b5132
RH
3351 if test "$*" = "X"; then
3352 # -L didn't work.
81ecdfbb 3353 set X `ls -t "$srcdir/configure" conftest.file`
252b5132 3354 fi
13b2be9c
DJ
3355 rm -f conftest.file
3356 if test "$*" != "X $srcdir/configure conftest.file" \
3357 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
3358
3359 # If neither matched, then we have a broken ls. This can happen
3360 # if, for instance, CONFIG_SHELL is bash and it inherits a
3361 # broken ls alias from the environment. This has actually
3362 # happened. Such a system could not be considered "sane".
81ecdfbb
RW
3363 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3364alias in your environment" "$LINENO" 5
252b5132
RH
3365 fi
3366
13b2be9c
DJ
3367 test "$2" = conftest.file
3368 )
3369then
3370 # Ok.
3371 :
3372else
81ecdfbb
RW
3373 as_fn_error "newly created file is older than distributed files!
3374Check your system clock" "$LINENO" 5
13b2be9c 3375fi
81ecdfbb
RW
3376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3377$as_echo "yes" >&6; }
13b2be9c 3378test "$program_prefix" != NONE &&
81ecdfbb 3379 program_transform_name="s&^&$program_prefix&;$program_transform_name"
13b2be9c
DJ
3380# Use a double $ so make ignores it.
3381test "$program_suffix" != NONE &&
81ecdfbb
RW
3382 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3383# Double any \ or $.
13b2be9c 3384# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
3385ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3386program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
13b2be9c 3387
13b2be9c
DJ
3388# expand $ac_aux_dir to an absolute path
3389am_aux_dir=`cd $ac_aux_dir && pwd`
3390
81ecdfbb
RW
3391if test x"${MISSING+set}" != xset; then
3392 case $am_aux_dir in
3393 *\ * | *\ *)
3394 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3395 *)
3396 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3397 esac
3398fi
13b2be9c
DJ
3399# Use eval to expand $SHELL
3400if eval "$MISSING --run true"; then
3401 am_missing_run="$MISSING --run "
3402else
3403 am_missing_run=
81ecdfbb
RW
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3405$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
ab509236
L
3406fi
3407
81ecdfbb
RW
3408if test x"${install_sh}" != xset; then
3409 case $am_aux_dir in
3410 *\ * | *\ *)
3411 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3412 *)
3413 install_sh="\${SHELL} $am_aux_dir/install-sh"
3414 esac
3415fi
3416
3417# Installed binaries are usually stripped using `strip' when the user
3418# run `make install-strip'. However `strip' might not be the right
3419# tool to use in cross-compilation environments, therefore Automake
3420# will honor the `STRIP' environment variable to overrule this program.
3421if test "$cross_compiling" != no; then
3422 if test -n "$ac_tool_prefix"; then
3423 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3424set dummy ${ac_tool_prefix}strip; ac_word=$2
3425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3426$as_echo_n "checking for $ac_word... " >&6; }
3427if test "${ac_cv_prog_STRIP+set}" = set; then :
3428 $as_echo_n "(cached) " >&6
13b2be9c 3429else
81ecdfbb
RW
3430 if test -n "$STRIP"; then
3431 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13b2be9c
DJ
3432else
3433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3434for as_dir in $PATH
3435do
3436 IFS=$as_save_IFS
3437 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3438 for ac_exec_ext in '' $ac_executable_extensions; do
3439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3440 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
3442 break 2
3443 fi
3444done
81ecdfbb
RW
3445 done
3446IFS=$as_save_IFS
13b2be9c
DJ
3447
3448fi
3449fi
81ecdfbb
RW
3450STRIP=$ac_cv_prog_STRIP
3451if test -n "$STRIP"; then
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3453$as_echo "$STRIP" >&6; }
13b2be9c 3454else
81ecdfbb
RW
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3456$as_echo "no" >&6; }
13b2be9c
DJ
3457fi
3458
13b2be9c 3459
81ecdfbb
RW
3460fi
3461if test -z "$ac_cv_prog_STRIP"; then
3462 ac_ct_STRIP=$STRIP
3463 # Extract the first word of "strip", so it can be a program name with args.
3464set dummy strip; ac_word=$2
3465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3466$as_echo_n "checking for $ac_word... " >&6; }
3467if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3468 $as_echo_n "(cached) " >&6
13b2be9c 3469else
81ecdfbb
RW
3470 if test -n "$ac_ct_STRIP"; then
3471 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13b2be9c 3472else
81ecdfbb
RW
3473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474for as_dir in $PATH
3475do
3476 IFS=$as_save_IFS
3477 test -z "$as_dir" && as_dir=.
3478 for ac_exec_ext in '' $ac_executable_extensions; do
3479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3480 ac_cv_prog_ac_ct_STRIP="strip"
3481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3482 break 2
3483 fi
3484done
3485 done
3486IFS=$as_save_IFS
3487
3488fi
3489fi
3490ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3491if test -n "$ac_ct_STRIP"; then
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3493$as_echo "$ac_ct_STRIP" >&6; }
3494else
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3496$as_echo "no" >&6; }
3497fi
3498
3499 if test "x$ac_ct_STRIP" = x; then
3500 STRIP=":"
3501 else
3502 case $cross_compiling:$ac_tool_warned in
3503yes:)
3504{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3505$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3506ac_tool_warned=yes ;;
3507esac
3508 STRIP=$ac_ct_STRIP
3509 fi
3510else
3511 STRIP="$ac_cv_prog_STRIP"
3512fi
3513
3514fi
3515INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3516
3517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3518$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3519if test -z "$MKDIR_P"; then
3520 if test "${ac_cv_path_mkdir+set}" = set; then :
3521 $as_echo_n "(cached) " >&6
3522else
3523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3524for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3525do
3526 IFS=$as_save_IFS
3527 test -z "$as_dir" && as_dir=.
3528 for ac_prog in mkdir gmkdir; do
3529 for ac_exec_ext in '' $ac_executable_extensions; do
3530 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3531 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3532 'mkdir (GNU coreutils) '* | \
3533 'mkdir (coreutils) '* | \
3534 'mkdir (fileutils) '4.1*)
3535 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3536 break 3;;
3537 esac
3538 done
3539 done
3540 done
3541IFS=$as_save_IFS
3542
3543fi
3544
3545 if test "${ac_cv_path_mkdir+set}" = set; then
3546 MKDIR_P="$ac_cv_path_mkdir -p"
3547 else
3548 # As a last resort, use the slow shell script. Don't cache a
3549 # value for MKDIR_P within a source directory, because that will
3550 # break other packages using the cache if that directory is
3551 # removed, or if the value is a relative name.
3552 test -d ./--version && rmdir ./--version
3553 MKDIR_P="$ac_install_sh -d"
3554 fi
3555fi
3556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3557$as_echo "$MKDIR_P" >&6; }
3558
3559mkdir_p="$MKDIR_P"
3560case $mkdir_p in
3561 [\\/$]* | ?:[\\/]*) ;;
3562 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3563esac
3564
3565for ac_prog in gawk mawk nawk awk
3566do
3567 # Extract the first word of "$ac_prog", so it can be a program name with args.
3568set dummy $ac_prog; ac_word=$2
3569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3570$as_echo_n "checking for $ac_word... " >&6; }
3571if test "${ac_cv_prog_AWK+set}" = set; then :
3572 $as_echo_n "(cached) " >&6
3573else
3574 if test -n "$AWK"; then
3575 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3576else
3577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3578for as_dir in $PATH
3579do
3580 IFS=$as_save_IFS
3581 test -z "$as_dir" && as_dir=.
3582 for ac_exec_ext in '' $ac_executable_extensions; do
3583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3584 ac_cv_prog_AWK="$ac_prog"
3585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3586 break 2
3587 fi
3588done
3589 done
3590IFS=$as_save_IFS
3591
3592fi
3593fi
3594AWK=$ac_cv_prog_AWK
3595if test -n "$AWK"; then
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3597$as_echo "$AWK" >&6; }
3598else
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3600$as_echo "no" >&6; }
13b2be9c 3601fi
81ecdfbb
RW
3602
3603
3604 test -n "$AWK" && break
3605done
3606
3607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3608$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3609set x ${MAKE-make}
3610ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3611if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3612 $as_echo_n "(cached) " >&6
3613else
3614 cat >conftest.make <<\_ACEOF
3615SHELL = /bin/sh
3616all:
3617 @echo '@@@%%%=$(MAKE)=@@@%%%'
3618_ACEOF
3619# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3620case `${MAKE-make} -f conftest.make 2>/dev/null` in
3621 *@@@%%%=?*=@@@%%%*)
3622 eval ac_cv_prog_make_${ac_make}_set=yes;;
3623 *)
3624 eval ac_cv_prog_make_${ac_make}_set=no;;
3625esac
13b2be9c
DJ
3626rm -f conftest.make
3627fi
81ecdfbb
RW
3628if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3630$as_echo "yes" >&6; }
13b2be9c
DJ
3631 SET_MAKE=
3632else
81ecdfbb
RW
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3634$as_echo "no" >&6; }
13b2be9c
DJ
3635 SET_MAKE="MAKE=${MAKE-make}"
3636fi
3637
3638rm -rf .tst 2>/dev/null
3639mkdir .tst 2>/dev/null
3640if test -d .tst; then
3641 am__leading_dot=.
3642else
3643 am__leading_dot=_
3644fi
3645rmdir .tst 2>/dev/null
3646
3647DEPDIR="${am__leading_dot}deps"
3648
81ecdfbb 3649ac_config_commands="$ac_config_commands depfiles"
13b2be9c
DJ
3650
3651
3652am_make=${MAKE-make}
3653cat > confinc << 'END'
3654am__doit:
81ecdfbb 3655 @echo this is the am__doit target
13b2be9c
DJ
3656.PHONY: am__doit
3657END
3658# If we don't find an include directive, just comment out the code.
81ecdfbb
RW
3659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3660$as_echo_n "checking for style of include used by $am_make... " >&6; }
13b2be9c
DJ
3661am__include="#"
3662am__quote=
3663_am_result=none
3664# First try GNU make style include.
3665echo "include confinc" > confmf
81ecdfbb
RW
3666# Ignore all kinds of additional output from `make'.
3667case `$am_make -s -f confmf 2> /dev/null` in #(
3668*the\ am__doit\ target*)
3669 am__include=include
3670 am__quote=
3671 _am_result=GNU
3672 ;;
3673esac
13b2be9c
DJ
3674# Now try BSD make style include.
3675if test "$am__include" = "#"; then
3676 echo '.include "confinc"' > confmf
81ecdfbb
RW
3677 case `$am_make -s -f confmf 2> /dev/null` in #(
3678 *the\ am__doit\ target*)
3679 am__include=.include
3680 am__quote="\""
3681 _am_result=BSD
3682 ;;
3683 esac
13b2be9c
DJ
3684fi
3685
3686
81ecdfbb
RW
3687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3688$as_echo "$_am_result" >&6; }
13b2be9c
DJ
3689rm -f confinc confmf
3690
81ecdfbb
RW
3691# Check whether --enable-dependency-tracking was given.
3692if test "${enable_dependency_tracking+set}" = set; then :
3693 enableval=$enable_dependency_tracking;
3694fi
13b2be9c 3695
13b2be9c
DJ
3696if test "x$enable_dependency_tracking" != xno; then
3697 am_depcomp="$ac_aux_dir/depcomp"
3698 AMDEPBACKSLASH='\'
3699fi
81ecdfbb 3700 if test "x$enable_dependency_tracking" != xno; then
13b2be9c
DJ
3701 AMDEP_TRUE=
3702 AMDEP_FALSE='#'
3703else
3704 AMDEP_TRUE='#'
3705 AMDEP_FALSE=
3706fi
3707
3708
81ecdfbb
RW
3709if test "`cd $srcdir && pwd`" != "`pwd`"; then
3710 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3711 # is not polluted with repeated "-I."
3712 am__isrc=' -I$(srcdir)'
3713 # test to see if srcdir already configured
3714 if test -f $srcdir/config.status; then
3715 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3716 fi
13b2be9c
DJ
3717fi
3718
3719# test whether we have cygpath
3720if test -z "$CYGPATH_W"; then
3721 if (cygpath --version) >/dev/null 2>/dev/null; then
3722 CYGPATH_W='cygpath -w'
3723 else
3724 CYGPATH_W=echo
3725 fi
3726fi
3727
3728
3729# Define the identity of the package.
3730 PACKAGE=gas
3731 VERSION=${BFD_VERSION}
3732
3733
3734cat >>confdefs.h <<_ACEOF
3735#define PACKAGE "$PACKAGE"
3736_ACEOF
3737
3738
3739cat >>confdefs.h <<_ACEOF
3740#define VERSION "$VERSION"
3741_ACEOF
3742
3743# Some tools Automake needs.
3744
3745ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3746
3747
3748AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3749
3750
3751AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3752
3753
3754AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3755
3756
3757MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3758
13b2be9c
DJ
3759# We need awk for the "check" target. The system "awk" is bad on
3760# some platforms.
8ea2b00f
AM
3761# Always define AMTAR for backward compatibility.
3762
3763AMTAR=${AMTAR-"${am_missing_run}tar"}
3764
3765am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3766
3767
252b5132 3768
d6d788bd 3769
13b2be9c 3770depcc="$CC" am_compiler_list=
d6d788bd 3771
81ecdfbb
RW
3772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3773$as_echo_n "checking dependency style of $depcc... " >&6; }
3774if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3775 $as_echo_n "(cached) " >&6
252b5132 3776else
13b2be9c
DJ
3777 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3778 # We make a subdir and do the tests there. Otherwise we can end up
3779 # making bogus files that we don't know about and never remove. For
3780 # instance it was reported that on HP-UX the gcc test will end up
3781 # making a dummy file named `D' -- because `-MD' means `put the output
3782 # in D'.
3783 mkdir conftest.dir
3784 # Copy depcomp to subdir because otherwise we won't find it if we're
3785 # using a relative directory.
3786 cp "$am_depcomp" conftest.dir
3787 cd conftest.dir
3788 # We will build objects and dependencies in a subdirectory because
3789 # it helps to detect inapplicable dependency modes. For instance
3790 # both Tru64's cc and ICC support -MD to output dependencies as a
3791 # side effect of compilation, but ICC will put the dependencies in
3792 # the current directory while Tru64 will put them in the object
3793 # directory.
3794 mkdir sub
252b5132 3795
13b2be9c
DJ
3796 am_cv_CC_dependencies_compiler_type=none
3797 if test "$am_compiler_list" = ""; then
3798 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3799 fi
81ecdfbb
RW
3800 am__universal=false
3801 case " $depcc " in #(
3802 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3803 esac
3804
13b2be9c
DJ
3805 for depmode in $am_compiler_list; do
3806 # Setup a source with many dependencies, because some compilers
3807 # like to wrap large dependency lists on column 80 (with \), and
3808 # we should not choose a depcomp mode which is confused by this.
3809 #
3810 # We need to recreate these files for each test, as the compiler may
3811 # overwrite some of them when testing with obscure command lines.
3812 # This happens at least with the AIX C compiler.
3813 : > sub/conftest.c
3814 for i in 1 2 3 4 5 6; do
3815 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4b363073
NC
3816 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3817 # Solaris 8's {/usr,}/bin/sh.
3818 touch sub/conftst$i.h
13b2be9c
DJ
3819 done
3820 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3821
81ecdfbb
RW
3822 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3823 # mode. It turns out that the SunPro C++ compiler does not properly
3824 # handle `-M -o', and we need to detect this. Also, some Intel
3825 # versions had trouble with output in subdirs
3826 am__obj=sub/conftest.${OBJEXT-o}
3827 am__minus_obj="-o $am__obj"
13b2be9c 3828 case $depmode in
81ecdfbb
RW
3829 gcc)
3830 # This depmode causes a compiler race in universal mode.
3831 test "$am__universal" = false || continue
3832 ;;
13b2be9c
DJ
3833 nosideeffect)
3834 # after this tag, mechanisms are not by side-effect, so they'll
3835 # only be used when explicitly requested
3836 if test "x$enable_dependency_tracking" = xyes; then
3837 continue
3838 else
3839 break
3840 fi
3841 ;;
81ecdfbb
RW
3842 msvisualcpp | msvcmsys)
3843 # This compiler won't grok `-c -o', but also, the minuso test has
3844 # not run yet. These depmodes are late enough in the game, and
3845 # so weak that their functioning should not be impacted.
3846 am__obj=conftest.${OBJEXT-o}
3847 am__minus_obj=
3848 ;;
13b2be9c
DJ
3849 none) break ;;
3850 esac
13b2be9c 3851 if depmode=$depmode \
81ecdfbb 3852 source=sub/conftest.c object=$am__obj \
13b2be9c 3853 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
81ecdfbb 3854 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13b2be9c 3855 >/dev/null 2>conftest.err &&
81ecdfbb 3856 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13b2be9c 3857 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
81ecdfbb 3858 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13b2be9c
DJ
3859 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3860 # icc doesn't choke on unknown options, it will just issue warnings
4b363073
NC
3861 # or remarks (even with -Werror). So we grep stderr for any message
3862 # that says an option was ignored or not supported.
3863 # When given -MP, icc 7.0 and 7.1 complain thusly:
3864 # icc: Command line warning: ignoring option '-M'; no argument required
3865 # The diagnosis changed in icc 8.0:
3866 # icc: Command line remark: option '-MP' not supported
3867 if (grep 'ignoring option' conftest.err ||
3868 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13b2be9c
DJ
3869 am_cv_CC_dependencies_compiler_type=$depmode
3870 break
3871 fi
3872 fi
3873 done
252b5132 3874
13b2be9c
DJ
3875 cd ..
3876 rm -rf conftest.dir
252b5132 3877else
13b2be9c 3878 am_cv_CC_dependencies_compiler_type=none
252b5132
RH
3879fi
3880
252b5132 3881fi
81ecdfbb
RW
3882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3883$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13b2be9c 3884CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
252b5132 3885
81ecdfbb 3886 if
13b2be9c
DJ
3887 test "x$enable_dependency_tracking" != xno \
3888 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3889 am__fastdepCC_TRUE=
3890 am__fastdepCC_FALSE='#'
252b5132 3891else
13b2be9c
DJ
3892 am__fastdepCC_TRUE='#'
3893 am__fastdepCC_FALSE=
252b5132
RH
3894fi
3895
d6d788bd
L
3896
3897
13b2be9c 3898
ce2cded5
L
3899ac_ext=c
3900ac_cpp='$CPP $CPPFLAGS'
3901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3903ac_compiler_gnu=$ac_cv_c_compiler_gnu
3904if test -n "$ac_tool_prefix"; then
3905 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3906set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3908$as_echo_n "checking for $ac_word... " >&6; }
3909if test "${ac_cv_prog_CC+set}" = set; then :
3910 $as_echo_n "(cached) " >&6
252b5132 3911else
ce2cded5
L
3912 if test -n "$CC"; then
3913 ac_cv_prog_CC="$CC" # Let the user override the test.
d7040cdb 3914else
ce2cded5
L
3915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3916for as_dir in $PATH
3917do
3918 IFS=$as_save_IFS
3919 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3920 for ac_exec_ext in '' $ac_executable_extensions; do
3921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 3922 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 3923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
3924 break 2
3925 fi
3926done
81ecdfbb
RW
3927 done
3928IFS=$as_save_IFS
d7040cdb 3929
ce2cded5
L
3930fi
3931fi
3932CC=$ac_cv_prog_CC
3933if test -n "$CC"; then
81ecdfbb
RW
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3935$as_echo "$CC" >&6; }
bedf545c 3936else
81ecdfbb
RW
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3938$as_echo "no" >&6; }
ce2cded5 3939fi
d7040cdb 3940
81ecdfbb 3941
ce2cded5
L
3942fi
3943if test -z "$ac_cv_prog_CC"; then
3944 ac_ct_CC=$CC
3945 # Extract the first word of "gcc", so it can be a program name with args.
3946set dummy gcc; ac_word=$2
81ecdfbb
RW
3947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3948$as_echo_n "checking for $ac_word... " >&6; }
3949if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3950 $as_echo_n "(cached) " >&6
d7040cdb 3951else
ce2cded5
L
3952 if test -n "$ac_ct_CC"; then
3953 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3954else
d7040cdb
SE
3955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956for as_dir in $PATH
3957do
3958 IFS=$as_save_IFS
3959 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3960 for ac_exec_ext in '' $ac_executable_extensions; do
3961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 3962 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 3963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5 3964 break 2
d7040cdb 3965 fi
ce2cded5 3966done
81ecdfbb
RW
3967 done
3968IFS=$as_save_IFS
d7040cdb 3969
ce2cded5
L
3970fi
3971fi
3972ac_ct_CC=$ac_cv_prog_ac_ct_CC
3973if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3975$as_echo "$ac_ct_CC" >&6; }
ce2cded5 3976else
81ecdfbb
RW
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3978$as_echo "no" >&6; }
d7040cdb
SE
3979fi
3980
81ecdfbb
RW
3981 if test "x$ac_ct_CC" = x; then
3982 CC=""
3983 else
3984 case $cross_compiling:$ac_tool_warned in
3985yes:)
3986{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3987$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3988ac_tool_warned=yes ;;
3989esac
3990 CC=$ac_ct_CC
3991 fi
ce2cded5
L
3992else
3993 CC="$ac_cv_prog_CC"
3994fi
d7040cdb 3995
ce2cded5 3996if test -z "$CC"; then
81ecdfbb
RW
3997 if test -n "$ac_tool_prefix"; then
3998 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ce2cded5 3999set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
4000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4001$as_echo_n "checking for $ac_word... " >&6; }
4002if test "${ac_cv_prog_CC+set}" = set; then :
4003 $as_echo_n "(cached) " >&6
d7040cdb 4004else
ce2cded5
L
4005 if test -n "$CC"; then
4006 ac_cv_prog_CC="$CC" # Let the user override the test.
d7040cdb 4007else
ce2cded5
L
4008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009for as_dir in $PATH
4010do
4011 IFS=$as_save_IFS
4012 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4013 for ac_exec_ext in '' $ac_executable_extensions; do
4014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4015 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4017 break 2
4018 fi
4019done
81ecdfbb
RW
4020 done
4021IFS=$as_save_IFS
d7040cdb 4022
252b5132
RH
4023fi
4024fi
ce2cded5
L
4025CC=$ac_cv_prog_CC
4026if test -n "$CC"; then
81ecdfbb
RW
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4028$as_echo "$CC" >&6; }
ce2cded5 4029else
81ecdfbb
RW
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4031$as_echo "no" >&6; }
d7040cdb 4032fi
f9c19112 4033
ce2cded5 4034
81ecdfbb 4035 fi
ce2cded5
L
4036fi
4037if test -z "$CC"; then
4038 # Extract the first word of "cc", so it can be a program name with args.
4039set dummy cc; ac_word=$2
81ecdfbb
RW
4040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4041$as_echo_n "checking for $ac_word... " >&6; }
4042if test "${ac_cv_prog_CC+set}" = set; then :
4043 $as_echo_n "(cached) " >&6
ce2cded5
L
4044else
4045 if test -n "$CC"; then
4046 ac_cv_prog_CC="$CC" # Let the user override the test.
4047else
4048 ac_prog_rejected=no
4049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050for as_dir in $PATH
4051do
4052 IFS=$as_save_IFS
4053 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4054 for ac_exec_ext in '' $ac_executable_extensions; do
4055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5
L
4056 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4057 ac_prog_rejected=yes
4058 continue
4059 fi
4060 ac_cv_prog_CC="cc"
81ecdfbb 4061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4062 break 2
4063 fi
4064done
81ecdfbb
RW
4065 done
4066IFS=$as_save_IFS
ce2cded5
L
4067
4068if test $ac_prog_rejected = yes; then
4069 # We found a bogon in the path, so make sure we never use it.
4070 set dummy $ac_cv_prog_CC
4071 shift
4072 if test $# != 0; then
4073 # We chose a different compiler from the bogus one.
4074 # However, it has the same basename, so the bogon will be chosen
4075 # first if we set CC to just the basename; use the full file name.
4076 shift
4077 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4078 fi
4079fi
4080fi
4081fi
4082CC=$ac_cv_prog_CC
4083if test -n "$CC"; then
81ecdfbb
RW
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4085$as_echo "$CC" >&6; }
ce2cded5 4086else
81ecdfbb
RW
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4088$as_echo "no" >&6; }
ce2cded5
L
4089fi
4090
81ecdfbb 4091
ce2cded5
L
4092fi
4093if test -z "$CC"; then
4094 if test -n "$ac_tool_prefix"; then
81ecdfbb 4095 for ac_prog in cl.exe
ce2cded5
L
4096 do
4097 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4098set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4100$as_echo_n "checking for $ac_word... " >&6; }
4101if test "${ac_cv_prog_CC+set}" = set; then :
4102 $as_echo_n "(cached) " >&6
ce2cded5
L
4103else
4104 if test -n "$CC"; then
4105 ac_cv_prog_CC="$CC" # Let the user override the test.
4106else
4107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108for as_dir in $PATH
4109do
4110 IFS=$as_save_IFS
4111 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4112 for ac_exec_ext in '' $ac_executable_extensions; do
4113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4114 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4116 break 2
4117 fi
4118done
81ecdfbb
RW
4119 done
4120IFS=$as_save_IFS
ce2cded5
L
4121
4122fi
4123fi
4124CC=$ac_cv_prog_CC
4125if test -n "$CC"; then
81ecdfbb
RW
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4127$as_echo "$CC" >&6; }
ce2cded5 4128else
81ecdfbb
RW
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4130$as_echo "no" >&6; }
ce2cded5
L
4131fi
4132
81ecdfbb 4133
ce2cded5 4134 test -n "$CC" && break
d7040cdb
SE
4135 done
4136fi
ce2cded5
L
4137if test -z "$CC"; then
4138 ac_ct_CC=$CC
81ecdfbb 4139 for ac_prog in cl.exe
d7040cdb
SE
4140do
4141 # Extract the first word of "$ac_prog", so it can be a program name with args.
4142set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4144$as_echo_n "checking for $ac_word... " >&6; }
4145if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4146 $as_echo_n "(cached) " >&6
d7040cdb 4147else
ce2cded5
L
4148 if test -n "$ac_ct_CC"; then
4149 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d7040cdb
SE
4150else
4151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152for as_dir in $PATH
4153do
4154 IFS=$as_save_IFS
4155 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4156 for ac_exec_ext in '' $ac_executable_extensions; do
4157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4158 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 4160 break 2
ac48eca1 4161 fi
d7040cdb 4162done
81ecdfbb
RW
4163 done
4164IFS=$as_save_IFS
ac48eca1 4165
d7040cdb
SE
4166fi
4167fi
ce2cded5
L
4168ac_ct_CC=$ac_cv_prog_ac_ct_CC
4169if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4171$as_echo "$ac_ct_CC" >&6; }
d7040cdb 4172else
81ecdfbb
RW
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4174$as_echo "no" >&6; }
d7040cdb 4175fi
ac48eca1 4176
81ecdfbb 4177
ce2cded5 4178 test -n "$ac_ct_CC" && break
d7040cdb 4179done
ac48eca1 4180
81ecdfbb
RW
4181 if test "x$ac_ct_CC" = x; then
4182 CC=""
4183 else
4184 case $cross_compiling:$ac_tool_warned in
4185yes:)
4186{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4187$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4188ac_tool_warned=yes ;;
4189esac
4190 CC=$ac_ct_CC
4191 fi
d7040cdb 4192fi
ac48eca1 4193
d7040cdb 4194fi
ac48eca1 4195
ac48eca1 4196
81ecdfbb
RW
4197test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4198$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4199as_fn_error "no acceptable C compiler found in \$PATH
4200See \`config.log' for more details." "$LINENO" 5; }
6be7c12c 4201
ce2cded5 4202# Provide some information about the compiler.
81ecdfbb
RW
4203$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4204set X $ac_compile
4205ac_compiler=$2
4206for ac_option in --version -v -V -qversion; do
4207 { { ac_try="$ac_compiler $ac_option >&5"
4208case "(($ac_try" in
4209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4210 *) ac_try_echo=$ac_try;;
4211esac
4212eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4213$as_echo "$ac_try_echo"; } >&5
4214 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
ce2cded5 4215 ac_status=$?
81ecdfbb
RW
4216 if test -s conftest.err; then
4217 sed '10a\
4218... rest of stderr output deleted ...
4219 10q' conftest.err >conftest.er1
4220 cat conftest.er1 >&5
4221 rm -f conftest.er1 conftest.err
4222 fi
4223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4224 test $ac_status = 0; }
4225done
ac48eca1 4226
81ecdfbb
RW
4227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4228$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4229if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4230 $as_echo_n "(cached) " >&6
d7040cdb 4231else
81ecdfbb 4232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4233/* end confdefs.h. */
c8615825 4234
ce2cded5
L
4235int
4236main ()
4237{
4238#ifndef __GNUC__
4239 choke me
4240#endif
4241
4242 ;
4243 return 0;
4244}
4245_ACEOF
81ecdfbb 4246if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5 4247 ac_compiler_gnu=yes
d7040cdb 4248else
81ecdfbb 4249 ac_compiler_gnu=no
d7040cdb 4250fi
81ecdfbb 4251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce2cded5 4252ac_cv_c_compiler_gnu=$ac_compiler_gnu
ac48eca1 4253
ce2cded5 4254fi
81ecdfbb
RW
4255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4256$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4257if test $ac_compiler_gnu = yes; then
4258 GCC=yes
4259else
4260 GCC=
4261fi
ce2cded5
L
4262ac_test_CFLAGS=${CFLAGS+set}
4263ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4265$as_echo_n "checking whether $CC accepts -g... " >&6; }
4266if test "${ac_cv_prog_cc_g+set}" = set; then :
4267 $as_echo_n "(cached) " >&6
4268else
4269 ac_save_c_werror_flag=$ac_c_werror_flag
4270 ac_c_werror_flag=yes
4271 ac_cv_prog_cc_g=no
4272 CFLAGS="-g"
4273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4274/* end confdefs.h. */
d7040cdb 4275
ce2cded5
L
4276int
4277main ()
4278{
d7040cdb 4279
ce2cded5
L
4280 ;
4281 return 0;
4282}
4283_ACEOF
81ecdfbb 4284if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5
L
4285 ac_cv_prog_cc_g=yes
4286else
81ecdfbb
RW
4287 CFLAGS=""
4288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4289/* end confdefs.h. */
4290
4291int
4292main ()
4293{
4294
4295 ;
4296 return 0;
4297}
4298_ACEOF
4299if ac_fn_c_try_compile "$LINENO"; then :
4300
4301else
4302 ac_c_werror_flag=$ac_save_c_werror_flag
4303 CFLAGS="-g"
4304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4305/* end confdefs.h. */
d70c5fc7 4306
81ecdfbb
RW
4307int
4308main ()
4309{
4310
4311 ;
4312 return 0;
4313}
4314_ACEOF
4315if ac_fn_c_try_compile "$LINENO"; then :
4316 ac_cv_prog_cc_g=yes
4317fi
4318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d70c5fc7 4319fi
81ecdfbb 4320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d70c5fc7 4321fi
81ecdfbb
RW
4322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4323 ac_c_werror_flag=$ac_save_c_werror_flag
4324fi
4325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4326$as_echo "$ac_cv_prog_cc_g" >&6; }
ce2cded5
L
4327if test "$ac_test_CFLAGS" = set; then
4328 CFLAGS=$ac_save_CFLAGS
4329elif test $ac_cv_prog_cc_g = yes; then
4330 if test "$GCC" = yes; then
4331 CFLAGS="-g -O2"
4332 else
4333 CFLAGS="-g"
4334 fi
ac48eca1 4335else
ce2cded5
L
4336 if test "$GCC" = yes; then
4337 CFLAGS="-O2"
4338 else
4339 CFLAGS=
4340 fi
ac48eca1 4341fi
81ecdfbb
RW
4342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4343$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4344if test "${ac_cv_prog_cc_c89+set}" = set; then :
4345 $as_echo_n "(cached) " >&6
ac48eca1 4346else
81ecdfbb 4347 ac_cv_prog_cc_c89=no
ce2cded5 4348ac_save_CC=$CC
81ecdfbb 4349cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
4350/* end confdefs.h. */
4351#include <stdarg.h>
4352#include <stdio.h>
4353#include <sys/types.h>
4354#include <sys/stat.h>
4355/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4356struct buf { int x; };
4357FILE * (*rcsopen) (struct buf *, struct stat *, int);
4358static char *e (p, i)
4359 char **p;
4360 int i;
4361{
4362 return p[i];
4363}
4364static char *f (char * (*g) (char **, int), char **p, ...)
4365{
4366 char *s;
4367 va_list v;
4368 va_start (v,p);
4369 s = g (p, va_arg (v,int));
4370 va_end (v);
4371 return s;
4372}
4373
4374/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4375 function prototypes and stuff, but not '\xHH' hex character constants.
4376 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4377 as 'x'. The following induces an error, until -std is added to get
ce2cded5
L
4378 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4379 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4380 that's true only with -std. */
ce2cded5
L
4381int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4382
81ecdfbb
RW
4383/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4384 inside strings and character constants. */
4385#define FOO(x) 'x'
4386int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4387
ce2cded5
L
4388int test (int i, double x);
4389struct s1 {int (*f) (int a);};
4390struct s2 {int (*f) (double a);};
4391int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4392int argc;
4393char **argv;
4394int
4395main ()
4396{
4397return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4398 ;
4399 return 0;
4400}
4401_ACEOF
81ecdfbb
RW
4402for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4403 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ce2cded5
L
4404do
4405 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4406 if ac_fn_c_try_compile "$LINENO"; then :
4407 ac_cv_prog_cc_c89=$ac_arg
ce2cded5 4408fi
81ecdfbb
RW
4409rm -f core conftest.err conftest.$ac_objext
4410 test "x$ac_cv_prog_cc_c89" != "xno" && break
ce2cded5 4411done
81ecdfbb 4412rm -f conftest.$ac_ext
ce2cded5
L
4413CC=$ac_save_CC
4414
4415fi
81ecdfbb
RW
4416# AC_CACHE_VAL
4417case "x$ac_cv_prog_cc_c89" in
4418 x)
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4420$as_echo "none needed" >&6; } ;;
4421 xno)
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4423$as_echo "unsupported" >&6; } ;;
ce2cded5 4424 *)
81ecdfbb
RW
4425 CC="$CC $ac_cv_prog_cc_c89"
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4427$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
d7040cdb 4428esac
81ecdfbb 4429if test "x$ac_cv_prog_cc_c89" != xno; then :
d7040cdb 4430
ce2cded5 4431fi
d7040cdb 4432
ce2cded5
L
4433ac_ext=c
4434ac_cpp='$CPP $CPPFLAGS'
4435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4437ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 4438
7357c5b6
AM
4439ac_ext=c
4440ac_cpp='$CPP $CPPFLAGS'
4441ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4442ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4443ac_compiler_gnu=$ac_cv_c_compiler_gnu
81ecdfbb
RW
4444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4445$as_echo_n "checking how to run the C preprocessor... " >&6; }
7357c5b6
AM
4446# On Suns, sometimes $CPP names a directory.
4447if test -n "$CPP" && test -d "$CPP"; then
4448 CPP=
4449fi
4450if test -z "$CPP"; then
81ecdfbb
RW
4451 if test "${ac_cv_prog_CPP+set}" = set; then :
4452 $as_echo_n "(cached) " >&6
7357c5b6
AM
4453else
4454 # Double quotes because CPP needs to be expanded
4455 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4456 do
4457 ac_preproc_ok=false
4458for ac_c_preproc_warn_flag in '' yes
4459do
4460 # Use a header file that comes with gcc, so configuring glibc
4461 # with a fresh cross-compiler works.
4462 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4463 # <limits.h> exists even on freestanding compilers.
4464 # On the NeXT, cc -E runs the code through the compiler's parser,
4465 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4467/* end confdefs.h. */
4468#ifdef __STDC__
4469# include <limits.h>
4470#else
4471# include <assert.h>
4472#endif
4473 Syntax error
4474_ACEOF
81ecdfbb 4475if ac_fn_c_try_cpp "$LINENO"; then :
d7040cdb 4476
81ecdfbb 4477else
7357c5b6
AM
4478 # Broken: fails on valid input.
4479continue
4480fi
4481rm -f conftest.err conftest.$ac_ext
d7040cdb 4482
81ecdfbb 4483 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4484 # can be detected and how.
81ecdfbb 4485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4486/* end confdefs.h. */
4487#include <ac_nonexistent.h>
4488_ACEOF
81ecdfbb 4489if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4490 # Broken: success on invalid input.
4491continue
4492else
7357c5b6
AM
4493 # Passes both tests.
4494ac_preproc_ok=:
4495break
4496fi
4497rm -f conftest.err conftest.$ac_ext
d7040cdb 4498
7357c5b6
AM
4499done
4500# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4501rm -f conftest.err conftest.$ac_ext
81ecdfbb 4502if $ac_preproc_ok; then :
7357c5b6
AM
4503 break
4504fi
d7040cdb 4505
7357c5b6
AM
4506 done
4507 ac_cv_prog_CPP=$CPP
d7040cdb 4508
7357c5b6
AM
4509fi
4510 CPP=$ac_cv_prog_CPP
4511else
4512 ac_cv_prog_CPP=$CPP
4513fi
81ecdfbb
RW
4514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4515$as_echo "$CPP" >&6; }
7357c5b6
AM
4516ac_preproc_ok=false
4517for ac_c_preproc_warn_flag in '' yes
4518do
4519 # Use a header file that comes with gcc, so configuring glibc
4520 # with a fresh cross-compiler works.
4521 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4522 # <limits.h> exists even on freestanding compilers.
4523 # On the NeXT, cc -E runs the code through the compiler's parser,
4524 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4526/* end confdefs.h. */
4527#ifdef __STDC__
4528# include <limits.h>
4529#else
4530# include <assert.h>
4531#endif
4532 Syntax error
4533_ACEOF
81ecdfbb 4534if ac_fn_c_try_cpp "$LINENO"; then :
d7040cdb 4535
81ecdfbb 4536else
7357c5b6
AM
4537 # Broken: fails on valid input.
4538continue
4539fi
4540rm -f conftest.err conftest.$ac_ext
d7040cdb 4541
81ecdfbb 4542 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4543 # can be detected and how.
81ecdfbb 4544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4545/* end confdefs.h. */
4546#include <ac_nonexistent.h>
4547_ACEOF
81ecdfbb 4548if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4549 # Broken: success on invalid input.
4550continue
4551else
7357c5b6
AM
4552 # Passes both tests.
4553ac_preproc_ok=:
4554break
4555fi
4556rm -f conftest.err conftest.$ac_ext
d7040cdb 4557
7357c5b6
AM
4558done
4559# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4560rm -f conftest.err conftest.$ac_ext
81ecdfbb
RW
4561if $ac_preproc_ok; then :
4562
7357c5b6 4563else
81ecdfbb
RW
4564 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4565$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4566as_fn_error "C preprocessor \"$CPP\" fails sanity check
4567See \`config.log' for more details." "$LINENO" 5; }
7357c5b6 4568fi
ac48eca1 4569
7357c5b6
AM
4570ac_ext=c
4571ac_cpp='$CPP $CPPFLAGS'
4572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4574ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 4575
ac48eca1 4576
81ecdfbb
RW
4577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4578$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4579if test "${ac_cv_path_GREP+set}" = set; then :
4580 $as_echo_n "(cached) " >&6
7357c5b6 4581else
81ecdfbb
RW
4582 if test -z "$GREP"; then
4583 ac_path_GREP_found=false
4584 # Loop through the user's path and test for each of PROGNAME-LIST
4585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4586for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4587do
4588 IFS=$as_save_IFS
4589 test -z "$as_dir" && as_dir=.
4590 for ac_prog in grep ggrep; do
4591 for ac_exec_ext in '' $ac_executable_extensions; do
4592 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4593 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4594# Check for GNU ac_path_GREP and select it if it is found.
4595 # Check for GNU $ac_path_GREP
4596case `"$ac_path_GREP" --version 2>&1` in
4597*GNU*)
4598 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4599*)
4600 ac_count=0
4601 $as_echo_n 0123456789 >"conftest.in"
4602 while :
4603 do
4604 cat "conftest.in" "conftest.in" >"conftest.tmp"
4605 mv "conftest.tmp" "conftest.in"
4606 cp "conftest.in" "conftest.nl"
4607 $as_echo 'GREP' >> "conftest.nl"
4608 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4609 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4610 as_fn_arith $ac_count + 1 && ac_count=$as_val
4611 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4612 # Best one so far, save it but keep looking for a better one
4613 ac_cv_path_GREP="$ac_path_GREP"
4614 ac_path_GREP_max=$ac_count
7357c5b6 4615 fi
81ecdfbb
RW
4616 # 10*(2^10) chars as input seems more than enough
4617 test $ac_count -gt 10 && break
4618 done
4619 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4620esac
4621
4622 $ac_path_GREP_found && break 3
4623 done
4624 done
4625 done
4626IFS=$as_save_IFS
4627 if test -z "$ac_cv_path_GREP"; then
4628 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4629 fi
4630else
4631 ac_cv_path_GREP=$GREP
7357c5b6 4632fi
81ecdfbb
RW
4633
4634fi
4635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4636$as_echo "$ac_cv_path_GREP" >&6; }
4637 GREP="$ac_cv_path_GREP"
ac48eca1 4638
d7040cdb 4639
81ecdfbb
RW
4640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4641$as_echo_n "checking for egrep... " >&6; }
4642if test "${ac_cv_path_EGREP+set}" = set; then :
4643 $as_echo_n "(cached) " >&6
7357c5b6 4644else
81ecdfbb
RW
4645 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4646 then ac_cv_path_EGREP="$GREP -E"
4647 else
4648 if test -z "$EGREP"; then
4649 ac_path_EGREP_found=false
4650 # Loop through the user's path and test for each of PROGNAME-LIST
4651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4653do
4654 IFS=$as_save_IFS
4655 test -z "$as_dir" && as_dir=.
4656 for ac_prog in egrep; do
4657 for ac_exec_ext in '' $ac_executable_extensions; do
4658 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4659 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4660# Check for GNU ac_path_EGREP and select it if it is found.
4661 # Check for GNU $ac_path_EGREP
4662case `"$ac_path_EGREP" --version 2>&1` in
4663*GNU*)
4664 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4665*)
4666 ac_count=0
4667 $as_echo_n 0123456789 >"conftest.in"
4668 while :
4669 do
4670 cat "conftest.in" "conftest.in" >"conftest.tmp"
4671 mv "conftest.tmp" "conftest.in"
4672 cp "conftest.in" "conftest.nl"
4673 $as_echo 'EGREP' >> "conftest.nl"
4674 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4675 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4676 as_fn_arith $ac_count + 1 && ac_count=$as_val
4677 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4678 # Best one so far, save it but keep looking for a better one
4679 ac_cv_path_EGREP="$ac_path_EGREP"
4680 ac_path_EGREP_max=$ac_count
4681 fi
4682 # 10*(2^10) chars as input seems more than enough
4683 test $ac_count -gt 10 && break
4684 done
4685 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4686esac
4687
4688 $ac_path_EGREP_found && break 3
4689 done
4690 done
4691 done
4692IFS=$as_save_IFS
4693 if test -z "$ac_cv_path_EGREP"; then
4694 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4695 fi
4696else
4697 ac_cv_path_EGREP=$EGREP
4698fi
4699
4700 fi
4701fi
4702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4703$as_echo "$ac_cv_path_EGREP" >&6; }
4704 EGREP="$ac_cv_path_EGREP"
4705
4706
4707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4708$as_echo_n "checking for ANSI C header files... " >&6; }
4709if test "${ac_cv_header_stdc+set}" = set; then :
4710 $as_echo_n "(cached) " >&6
4711else
4712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4713/* end confdefs.h. */
4714#include <stdlib.h>
4715#include <stdarg.h>
4716#include <string.h>
4717#include <float.h>
d7040cdb 4718
7357c5b6
AM
4719int
4720main ()
4721{
d7040cdb 4722
7357c5b6
AM
4723 ;
4724 return 0;
4725}
4726_ACEOF
81ecdfbb 4727if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6
AM
4728 ac_cv_header_stdc=yes
4729else
81ecdfbb 4730 ac_cv_header_stdc=no
7357c5b6 4731fi
81ecdfbb 4732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 4733
7357c5b6
AM
4734if test $ac_cv_header_stdc = yes; then
4735 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
81ecdfbb 4736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4737/* end confdefs.h. */
4738#include <string.h>
d7040cdb 4739
7357c5b6
AM
4740_ACEOF
4741if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4742 $EGREP "memchr" >/dev/null 2>&1; then :
4743
ce2cded5 4744else
7357c5b6
AM
4745 ac_cv_header_stdc=no
4746fi
4747rm -f conftest*
d7040cdb 4748
7357c5b6 4749fi
d7040cdb 4750
7357c5b6
AM
4751if test $ac_cv_header_stdc = yes; then
4752 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
81ecdfbb 4753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4754/* end confdefs.h. */
4755#include <stdlib.h>
ac48eca1 4756
7357c5b6
AM
4757_ACEOF
4758if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4759 $EGREP "free" >/dev/null 2>&1; then :
4760
7357c5b6
AM
4761else
4762 ac_cv_header_stdc=no
4763fi
4764rm -f conftest*
d7040cdb 4765
7357c5b6 4766fi
d7040cdb 4767
7357c5b6
AM
4768if test $ac_cv_header_stdc = yes; then
4769 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
81ecdfbb 4770 if test "$cross_compiling" = yes; then :
7357c5b6
AM
4771 :
4772else
81ecdfbb 4773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4774/* end confdefs.h. */
4775#include <ctype.h>
81ecdfbb 4776#include <stdlib.h>
7357c5b6
AM
4777#if ((' ' & 0x0FF) == 0x020)
4778# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4779# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4780#else
4781# define ISLOWER(c) \
4782 (('a' <= (c) && (c) <= 'i') \
4783 || ('j' <= (c) && (c) <= 'r') \
4784 || ('s' <= (c) && (c) <= 'z'))
4785# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4786#endif
d7040cdb 4787
7357c5b6
AM
4788#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4789int
4790main ()
4791{
4792 int i;
4793 for (i = 0; i < 256; i++)
4794 if (XOR (islower (i), ISLOWER (i))
4795 || toupper (i) != TOUPPER (i))
81ecdfbb
RW
4796 return 2;
4797 return 0;
7357c5b6
AM
4798}
4799_ACEOF
81ecdfbb 4800if ac_fn_c_try_run "$LINENO"; then :
d7040cdb 4801
81ecdfbb
RW
4802else
4803 ac_cv_header_stdc=no
7357c5b6 4804fi
81ecdfbb
RW
4805rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4806 conftest.$ac_objext conftest.beam conftest.$ac_ext
7357c5b6 4807fi
81ecdfbb 4808
7357c5b6
AM
4809fi
4810fi
81ecdfbb
RW
4811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4812$as_echo "$ac_cv_header_stdc" >&6; }
7357c5b6 4813if test $ac_cv_header_stdc = yes; then
d7040cdb 4814
81ecdfbb 4815$as_echo "#define STDC_HEADERS 1" >>confdefs.h
d7040cdb 4816
7357c5b6 4817fi
d7040cdb 4818
7357c5b6 4819# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7357c5b6
AM
4820for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4821 inttypes.h stdint.h unistd.h
81ecdfbb
RW
4822do :
4823 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4824ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4825"
4826eval as_val=\$$as_ac_Header
4827 if test "x$as_val" = x""yes; then :
7357c5b6 4828 cat >>confdefs.h <<_ACEOF
81ecdfbb 4829#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7357c5b6 4830_ACEOF
ce2cded5 4831
7357c5b6 4832fi
ce2cded5 4833
7357c5b6 4834done
ce2cded5
L
4835
4836
4837
81ecdfbb
RW
4838 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4839if test "x$ac_cv_header_minix_config_h" = x""yes; then :
7357c5b6
AM
4840 MINIX=yes
4841else
4842 MINIX=
4843fi
d7040cdb
SE
4844
4845
7357c5b6 4846 if test "$MINIX" = yes; then
d7040cdb 4847
81ecdfbb 4848$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
d7040cdb
SE
4849
4850
81ecdfbb 4851$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
d7040cdb
SE
4852
4853
81ecdfbb 4854$as_echo "#define _MINIX 1" >>confdefs.h
d7040cdb 4855
7357c5b6 4856 fi
d7040cdb
SE
4857
4858
81ecdfbb
RW
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4860$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4861if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4862 $as_echo_n "(cached) " >&6
ac48eca1 4863else
81ecdfbb 4864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6 4865/* end confdefs.h. */
ac48eca1 4866
7357c5b6
AM
4867# define __EXTENSIONS__ 1
4868 $ac_includes_default
4869int
4870main ()
4871{
13b2be9c 4872
7357c5b6
AM
4873 ;
4874 return 0;
4875}
4876_ACEOF
81ecdfbb 4877if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6 4878 ac_cv_safe_to_define___extensions__=yes
d6d788bd 4879else
81ecdfbb 4880 ac_cv_safe_to_define___extensions__=no
d6d788bd 4881fi
81ecdfbb 4882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7357c5b6 4883fi
81ecdfbb
RW
4884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4885$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
7357c5b6 4886 test $ac_cv_safe_to_define___extensions__ = yes &&
81ecdfbb 4887 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
d6d788bd 4888
81ecdfbb 4889 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
d6d788bd 4890
81ecdfbb 4891 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
252b5132 4892
81ecdfbb 4893 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
252b5132 4894
81ecdfbb 4895 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
d6d788bd 4896
a74801ba 4897
d053aef8 4898
81ecdfbb 4899
da2f07f1 4900
3388710e
JM
4901# The tests for host and target for $enable_largefile require
4902# canonical names.
4903
4904
4905
da2f07f1
JK
4906# As the $enable_largefile decision depends on --enable-plugins we must set it
4907# even in directories otherwise not depending on the $plugins option.
4908
4909
4910# Check whether --enable-plugins was given.
4911if test "${enable_plugins+set}" = set; then :
4912 enableval=$enable_plugins; case "${enableval}" in
4913 yes | "") plugins=yes ;;
4914 no) plugins=no ;;
4915 *) plugins=yes ;;
4916 esac
4917else
4918 plugins=no
4919fi
4920
4921
4922
4923case "${host}" in
4924 sparc-*-solaris*|i[3-7]86-*-solaris*)
4925 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4926 # are mutually exclusive; and without procfs support, the bfd/ elf module
4927 # cannot provide certain routines such as elfcore_write_prpsinfo
4928 # or elfcore_write_prstatus. So unless the user explicitly requested
4929 # large-file support through the --enable-largefile switch, disable
4930 # large-file support in favor of procfs support.
4931 test "${target}" = "${host}" -a "x$plugins" = xno \
4932 && : ${enable_largefile="no"}
4933 ;;
4934esac
4935
81ecdfbb
RW
4936# Check whether --enable-largefile was given.
4937if test "${enable_largefile+set}" = set; then :
4938 enableval=$enable_largefile;
4939fi
4940
d053aef8
JK
4941if test "$enable_largefile" != no; then
4942
81ecdfbb
RW
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4944$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4945if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4946 $as_echo_n "(cached) " >&6
d053aef8
JK
4947else
4948 ac_cv_sys_largefile_CC=no
4949 if test "$GCC" != yes; then
4950 ac_save_CC=$CC
4951 while :; do
81ecdfbb
RW
4952 # IRIX 6.2 and later do not support large files by default,
4953 # so use the C compiler's -n32 option if that helps.
4954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
4955/* end confdefs.h. */
4956#include <sys/types.h>
4957 /* Check that off_t can represent 2**63 - 1 correctly.
4958 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4959 since some C++ compilers masquerading as C compilers
4960 incorrectly reject 9223372036854775807. */
4961#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4962 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4963 && LARGE_OFF_T % 2147483647 == 1)
4964 ? 1 : -1];
4965int
4966main ()
4967{
4968
4969 ;
4970 return 0;
4971}
4972_ACEOF
81ecdfbb 4973 if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 4974 break
d053aef8 4975fi
81ecdfbb
RW
4976rm -f core conftest.err conftest.$ac_objext
4977 CC="$CC -n32"
4978 if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 4979 ac_cv_sys_largefile_CC=' -n32'; break
d053aef8 4980fi
81ecdfbb 4981rm -f core conftest.err conftest.$ac_objext
d053aef8
JK
4982 break
4983 done
4984 CC=$ac_save_CC
4985 rm -f conftest.$ac_ext
4986 fi
4987fi
81ecdfbb
RW
4988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4989$as_echo "$ac_cv_sys_largefile_CC" >&6; }
d053aef8
JK
4990 if test "$ac_cv_sys_largefile_CC" != no; then
4991 CC=$CC$ac_cv_sys_largefile_CC
4992 fi
4993
81ecdfbb
RW
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4995$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4996if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4997 $as_echo_n "(cached) " >&6
d053aef8
JK
4998else
4999 while :; do
81ecdfbb 5000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5001/* end confdefs.h. */
5002#include <sys/types.h>
5003 /* Check that off_t can represent 2**63 - 1 correctly.
5004 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5005 since some C++ compilers masquerading as C compilers
5006 incorrectly reject 9223372036854775807. */
5007#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5008 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5009 && LARGE_OFF_T % 2147483647 == 1)
5010 ? 1 : -1];
5011int
5012main ()
5013{
5014
5015 ;
5016 return 0;
5017}
5018_ACEOF
81ecdfbb
RW
5019if ac_fn_c_try_compile "$LINENO"; then :
5020 ac_cv_sys_file_offset_bits=no; break
d053aef8 5021fi
81ecdfbb
RW
5022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5024/* end confdefs.h. */
5025#define _FILE_OFFSET_BITS 64
5026#include <sys/types.h>
5027 /* Check that off_t can represent 2**63 - 1 correctly.
5028 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5029 since some C++ compilers masquerading as C compilers
5030 incorrectly reject 9223372036854775807. */
5031#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5032 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5033 && LARGE_OFF_T % 2147483647 == 1)
5034 ? 1 : -1];
5035int
5036main ()
5037{
5038
5039 ;
5040 return 0;
5041}
5042_ACEOF
81ecdfbb 5043if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 5044 ac_cv_sys_file_offset_bits=64; break
d053aef8 5045fi
81ecdfbb
RW
5046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5047 ac_cv_sys_file_offset_bits=unknown
d053aef8
JK
5048 break
5049done
5050fi
81ecdfbb
RW
5051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5052$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5053case $ac_cv_sys_file_offset_bits in #(
5054 no | unknown) ;;
5055 *)
d053aef8
JK
5056cat >>confdefs.h <<_ACEOF
5057#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5058_ACEOF
81ecdfbb
RW
5059;;
5060esac
5061rm -rf conftest*
5062 if test $ac_cv_sys_file_offset_bits = unknown; then
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5064$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5065if test "${ac_cv_sys_large_files+set}" = set; then :
5066 $as_echo_n "(cached) " >&6
d053aef8
JK
5067else
5068 while :; do
81ecdfbb 5069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5070/* end confdefs.h. */
5071#include <sys/types.h>
5072 /* Check that off_t can represent 2**63 - 1 correctly.
5073 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5074 since some C++ compilers masquerading as C compilers
5075 incorrectly reject 9223372036854775807. */
5076#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5077 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5078 && LARGE_OFF_T % 2147483647 == 1)
5079 ? 1 : -1];
5080int
5081main ()
5082{
5083
5084 ;
5085 return 0;
5086}
5087_ACEOF
81ecdfbb
RW
5088if ac_fn_c_try_compile "$LINENO"; then :
5089 ac_cv_sys_large_files=no; break
d053aef8 5090fi
81ecdfbb
RW
5091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5093/* end confdefs.h. */
5094#define _LARGE_FILES 1
5095#include <sys/types.h>
5096 /* Check that off_t can represent 2**63 - 1 correctly.
5097 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5098 since some C++ compilers masquerading as C compilers
5099 incorrectly reject 9223372036854775807. */
5100#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5101 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5102 && LARGE_OFF_T % 2147483647 == 1)
5103 ? 1 : -1];
5104int
5105main ()
5106{
5107
5108 ;
5109 return 0;
5110}
5111_ACEOF
81ecdfbb 5112if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 5113 ac_cv_sys_large_files=1; break
d053aef8 5114fi
81ecdfbb
RW
5115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5116 ac_cv_sys_large_files=unknown
d053aef8
JK
5117 break
5118done
5119fi
81ecdfbb
RW
5120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5121$as_echo "$ac_cv_sys_large_files" >&6; }
5122case $ac_cv_sys_large_files in #(
5123 no | unknown) ;;
5124 *)
d053aef8
JK
5125cat >>confdefs.h <<_ACEOF
5126#define _LARGE_FILES $ac_cv_sys_large_files
5127_ACEOF
81ecdfbb
RW
5128;;
5129esac
5130rm -rf conftest*
5131 fi
d053aef8
JK
5132fi
5133
a74801ba 5134
da2f07f1 5135
718a6fd8
SE
5136case `pwd` in
5137 *\ * | *\ *)
81ecdfbb
RW
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5139$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
718a6fd8 5140esac
13b2be9c 5141
252b5132 5142
7357c5b6 5143
df7b86aa
NC
5144macro_version='2.4'
5145macro_revision='1.3293'
7357c5b6
AM
5146
5147
5148
5149
5150
5151
7357c5b6
AM
5152
5153
5154
5155
5156
5157
5158
718a6fd8 5159ltmain="$ac_aux_dir/ltmain.sh"
7357c5b6 5160
3725885a
RW
5161# Backslashify metacharacters that are still active within
5162# double-quoted strings.
5163sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5164
5165# Same as above, but do not quote variable references.
5166double_quote_subst='s/\(["`\\]\)/\\\1/g'
5167
5168# Sed substitution to delay expansion of an escaped shell variable in a
5169# double_quote_subst'ed string.
5170delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5171
5172# Sed substitution to delay expansion of an escaped single quote.
5173delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5174
5175# Sed substitution to avoid accidental globbing in evaled expressions
5176no_glob_subst='s/\*/\\\*/g'
5177
5178ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5179ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5180ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5181
5182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5183$as_echo_n "checking how to print strings... " >&6; }
5184# Test print first, because it will be a builtin if present.
df7b86aa 5185if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3725885a
RW
5186 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5187 ECHO='print -r --'
5188elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5189 ECHO='printf %s\n'
5190else
5191 # Use this function as a fallback that always works.
5192 func_fallback_echo ()
5193 {
5194 eval 'cat <<_LTECHO_EOF
5195$1
5196_LTECHO_EOF'
5197 }
5198 ECHO='func_fallback_echo'
5199fi
5200
5201# func_echo_all arg...
5202# Invoke $ECHO with all args, space-separated.
5203func_echo_all ()
5204{
5205 $ECHO ""
5206}
5207
5208case "$ECHO" in
5209 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5210$as_echo "printf" >&6; } ;;
5211 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5212$as_echo "print -r" >&6; } ;;
5213 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5214$as_echo "cat" >&6; } ;;
5215esac
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
81ecdfbb
RW
5230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5231$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5232if test "${ac_cv_path_SED+set}" = set; then :
5233 $as_echo_n "(cached) " >&6
5234else
5235 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5236 for ac_i in 1 2 3 4 5 6 7; do
5237 ac_script="$ac_script$as_nl$ac_script"
5238 done
5239 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5240 { ac_script=; unset ac_script;}
5241 if test -z "$SED"; then
5242 ac_path_SED_found=false
5243 # Loop through the user's path and test for each of PROGNAME-LIST
5244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357c5b6
AM
5245for as_dir in $PATH
5246do
5247 IFS=$as_save_IFS
5248 test -z "$as_dir" && as_dir=.
81ecdfbb 5249 for ac_prog in sed gsed; do
7357c5b6 5250 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb
RW
5251 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5252 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5253# Check for GNU ac_path_SED and select it if it is found.
5254 # Check for GNU $ac_path_SED
5255case `"$ac_path_SED" --version 2>&1` in
5256*GNU*)
5257 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5258*)
5259 ac_count=0
5260 $as_echo_n 0123456789 >"conftest.in"
5261 while :
5262 do
5263 cat "conftest.in" "conftest.in" >"conftest.tmp"
5264 mv "conftest.tmp" "conftest.in"
5265 cp "conftest.in" "conftest.nl"
5266 $as_echo '' >> "conftest.nl"
5267 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5268 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5269 as_fn_arith $ac_count + 1 && ac_count=$as_val
5270 if test $ac_count -gt ${ac_path_SED_max-0}; then
5271 # Best one so far, save it but keep looking for a better one
5272 ac_cv_path_SED="$ac_path_SED"
5273 ac_path_SED_max=$ac_count
5274 fi
5275 # 10*(2^10) chars as input seems more than enough
5276 test $ac_count -gt 10 && break
5277 done
5278 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5279esac
5280
5281 $ac_path_SED_found && break 3
7357c5b6
AM
5282 done
5283 done
81ecdfbb 5284 done
7357c5b6 5285IFS=$as_save_IFS
81ecdfbb
RW
5286 if test -z "$ac_cv_path_SED"; then
5287 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
7357c5b6 5288 fi
81ecdfbb
RW
5289else
5290 ac_cv_path_SED=$SED
7357c5b6
AM
5291fi
5292
81ecdfbb
RW
5293fi
5294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5295$as_echo "$ac_cv_path_SED" >&6; }
5296 SED="$ac_cv_path_SED"
5297 rm -f conftest.sed
7357c5b6
AM
5298
5299test -z "$SED" && SED=sed
5300Xsed="$SED -e 1s/^X//"
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
81ecdfbb
RW
5312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5313$as_echo_n "checking for fgrep... " >&6; }
5314if test "${ac_cv_path_FGREP+set}" = set; then :
5315 $as_echo_n "(cached) " >&6
7357c5b6 5316else
81ecdfbb
RW
5317 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5318 then ac_cv_path_FGREP="$GREP -F"
5319 else
5320 if test -z "$FGREP"; then
5321 ac_path_FGREP_found=false
5322 # Loop through the user's path and test for each of PROGNAME-LIST
5323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5325do
5326 IFS=$as_save_IFS
5327 test -z "$as_dir" && as_dir=.
5328 for ac_prog in fgrep; do
5329 for ac_exec_ext in '' $ac_executable_extensions; do
5330 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5331 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5332# Check for GNU ac_path_FGREP and select it if it is found.
5333 # Check for GNU $ac_path_FGREP
5334case `"$ac_path_FGREP" --version 2>&1` in
5335*GNU*)
5336 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5337*)
5338 ac_count=0
5339 $as_echo_n 0123456789 >"conftest.in"
5340 while :
5341 do
5342 cat "conftest.in" "conftest.in" >"conftest.tmp"
5343 mv "conftest.tmp" "conftest.in"
5344 cp "conftest.in" "conftest.nl"
5345 $as_echo 'FGREP' >> "conftest.nl"
5346 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5347 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5348 as_fn_arith $ac_count + 1 && ac_count=$as_val
5349 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5350 # Best one so far, save it but keep looking for a better one
5351 ac_cv_path_FGREP="$ac_path_FGREP"
5352 ac_path_FGREP_max=$ac_count
7357c5b6 5353 fi
81ecdfbb
RW
5354 # 10*(2^10) chars as input seems more than enough
5355 test $ac_count -gt 10 && break
5356 done
5357 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5358esac
5359
5360 $ac_path_FGREP_found && break 3
5361 done
5362 done
5363 done
5364IFS=$as_save_IFS
5365 if test -z "$ac_cv_path_FGREP"; then
5366 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5367 fi
5368else
5369 ac_cv_path_FGREP=$FGREP
7357c5b6 5370fi
81ecdfbb
RW
5371
5372 fi
5373fi
5374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5375$as_echo "$ac_cv_path_FGREP" >&6; }
5376 FGREP="$ac_cv_path_FGREP"
7357c5b6
AM
5377
5378
5379test -z "$GREP" && GREP=grep
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
81ecdfbb
RW
5399# Check whether --with-gnu-ld was given.
5400if test "${with_gnu_ld+set}" = set; then :
5401 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7357c5b6
AM
5402else
5403 with_gnu_ld=no
81ecdfbb
RW
5404fi
5405
ce2cded5
L
5406ac_prog=ld
5407if test "$GCC" = yes; then
5408 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5410$as_echo_n "checking for ld used by $CC... " >&6; }
ce2cded5
L
5411 case $host in
5412 *-*-mingw*)
5413 # gcc leaves a trailing carriage return which upsets mingw
5414 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5415 *)
5416 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5417 esac
5418 case $ac_prog in
5419 # Accept absolute paths.
5420 [\\/]* | ?:[\\/]*)
5421 re_direlt='/[^/][^/]*/\.\./'
5422 # Canonicalize the pathname of ld
5423 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5424 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5425 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5426 done
5427 test -z "$LD" && LD="$ac_prog"
5428 ;;
5429 "")
5430 # If it fails, then pretend we aren't using GCC.
5431 ac_prog=ld
5432 ;;
5433 *)
5434 # If it is relative, then search for the first ld in PATH.
5435 with_gnu_ld=unknown
5436 ;;
5437 esac
5438elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5440$as_echo_n "checking for GNU ld... " >&6; }
ce2cded5 5441else
81ecdfbb
RW
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5443$as_echo_n "checking for non-GNU ld... " >&6; }
ce2cded5 5444fi
81ecdfbb
RW
5445if test "${lt_cv_path_LD+set}" = set; then :
5446 $as_echo_n "(cached) " >&6
ce2cded5
L
5447else
5448 if test -z "$LD"; then
5449 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5450 for ac_dir in $PATH; do
5451 IFS="$lt_save_ifs"
5452 test -z "$ac_dir" && ac_dir=.
5453 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5454 lt_cv_path_LD="$ac_dir/$ac_prog"
5455 # Check to see if the program is GNU ld. I'd rather use --version,
5456 # but apparently some variants of GNU ld only accept -v.
5457 # Break only if it was the GNU/non-GNU ld that we prefer.
5458 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5459 *GNU* | *'with BFD'*)
5460 test "$with_gnu_ld" != no && break
5461 ;;
5462 *)
5463 test "$with_gnu_ld" != yes && break
5464 ;;
5465 esac
5466 fi
5467 done
5468 IFS="$lt_save_ifs"
5469else
5470 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5471fi
5472fi
5473
5474LD="$lt_cv_path_LD"
5475if test -n "$LD"; then
81ecdfbb
RW
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5477$as_echo "$LD" >&6; }
ce2cded5 5478else
81ecdfbb
RW
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5480$as_echo "no" >&6; }
ce2cded5 5481fi
81ecdfbb
RW
5482test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5484$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5485if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5486 $as_echo_n "(cached) " >&6
ce2cded5
L
5487else
5488 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5489case `$LD -v 2>&1 </dev/null` in
5490*GNU* | *'with BFD'*)
5491 lt_cv_prog_gnu_ld=yes
5492 ;;
5493*)
5494 lt_cv_prog_gnu_ld=no
5495 ;;
5496esac
5497fi
81ecdfbb
RW
5498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5499$as_echo "$lt_cv_prog_gnu_ld" >&6; }
ce2cded5
L
5500with_gnu_ld=$lt_cv_prog_gnu_ld
5501
5502
5503
5504
5505
5506
5507
5508
5509
81ecdfbb
RW
5510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5511$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5512if test "${lt_cv_path_NM+set}" = set; then :
5513 $as_echo_n "(cached) " >&6
ce2cded5
L
5514else
5515 if test -n "$NM"; then
5516 # Let the user override the test.
5517 lt_cv_path_NM="$NM"
5518else
5519 lt_nm_to_check="${ac_tool_prefix}nm"
5520 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5521 lt_nm_to_check="$lt_nm_to_check nm"
5522 fi
5523 for lt_tmp_nm in $lt_nm_to_check; do
5524 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5525 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5526 IFS="$lt_save_ifs"
5527 test -z "$ac_dir" && ac_dir=.
5528 tmp_nm="$ac_dir/$lt_tmp_nm"
5529 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5530 # Check to see if the nm accepts a BSD-compat flag.
5531 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5532 # nm: unknown option "B" ignored
5533 # Tru64's nm complains that /dev/null is an invalid object file
5534 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5535 */dev/null* | *'Invalid file or object type'*)
5536 lt_cv_path_NM="$tmp_nm -B"
5537 break
5538 ;;
5539 *)
5540 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5541 */dev/null*)
5542 lt_cv_path_NM="$tmp_nm -p"
5543 break
5544 ;;
5545 *)
5546 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5547 continue # so that we can try to find one that supports BSD flags
5548 ;;
5549 esac
5550 ;;
5551 esac
5552 fi
5553 done
5554 IFS="$lt_save_ifs"
5555 done
5556 : ${lt_cv_path_NM=no}
5557fi
5558fi
81ecdfbb
RW
5559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5560$as_echo "$lt_cv_path_NM" >&6; }
ce2cded5
L
5561if test "$lt_cv_path_NM" != "no"; then
5562 NM="$lt_cv_path_NM"
5563else
5564 # Didn't find any BSD compatible name lister, look for dumpbin.
3725885a
RW
5565 if test -n "$DUMPBIN"; then :
5566 # Let the user override the test.
5567 else
5568 if test -n "$ac_tool_prefix"; then
5569 for ac_prog in dumpbin "link -dump"
ce2cded5
L
5570 do
5571 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5572set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
5573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5574$as_echo_n "checking for $ac_word... " >&6; }
5575if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5576 $as_echo_n "(cached) " >&6
d7040cdb 5577else
ce2cded5
L
5578 if test -n "$DUMPBIN"; then
5579 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
d7040cdb
SE
5580else
5581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5582for as_dir in $PATH
5583do
5584 IFS=$as_save_IFS
5585 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5586 for ac_exec_ext in '' $ac_executable_extensions; do
5587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 5588 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
81ecdfbb 5589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 5590 break 2
d70c5fc7 5591 fi
d7040cdb 5592done
81ecdfbb
RW
5593 done
5594IFS=$as_save_IFS
d70c5fc7 5595
d7040cdb
SE
5596fi
5597fi
ce2cded5
L
5598DUMPBIN=$ac_cv_prog_DUMPBIN
5599if test -n "$DUMPBIN"; then
81ecdfbb
RW
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5601$as_echo "$DUMPBIN" >&6; }
bedf545c 5602else
81ecdfbb
RW
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5604$as_echo "no" >&6; }
d7040cdb 5605fi
13b2be9c 5606
81ecdfbb 5607
ce2cded5
L
5608 test -n "$DUMPBIN" && break
5609 done
5610fi
5611if test -z "$DUMPBIN"; then
5612 ac_ct_DUMPBIN=$DUMPBIN
3725885a 5613 for ac_prog in dumpbin "link -dump"
ce2cded5
L
5614do
5615 # Extract the first word of "$ac_prog", so it can be a program name with args.
5616set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
5617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5618$as_echo_n "checking for $ac_word... " >&6; }
5619if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5620 $as_echo_n "(cached) " >&6
d7040cdb 5621else
ce2cded5
L
5622 if test -n "$ac_ct_DUMPBIN"; then
5623 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5624else
5625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5626for as_dir in $PATH
5627do
5628 IFS=$as_save_IFS
5629 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5630 for ac_exec_ext in '' $ac_executable_extensions; do
5631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 5632 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
81ecdfbb 5633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
5634 break 2
5635 fi
5636done
81ecdfbb
RW
5637 done
5638IFS=$as_save_IFS
ce2cded5
L
5639
5640fi
5641fi
5642ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5643if test -n "$ac_ct_DUMPBIN"; then
81ecdfbb
RW
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5645$as_echo "$ac_ct_DUMPBIN" >&6; }
ce2cded5 5646else
81ecdfbb
RW
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5648$as_echo "no" >&6; }
d7040cdb
SE
5649fi
5650
81ecdfbb 5651
ce2cded5
L
5652 test -n "$ac_ct_DUMPBIN" && break
5653done
13b2be9c 5654
81ecdfbb
RW
5655 if test "x$ac_ct_DUMPBIN" = x; then
5656 DUMPBIN=":"
5657 else
5658 case $cross_compiling:$ac_tool_warned in
5659yes:)
5660{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5661$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5662ac_tool_warned=yes ;;
5663esac
5664 DUMPBIN=$ac_ct_DUMPBIN
5665 fi
ce2cded5 5666fi
13b2be9c 5667
3725885a
RW
5668 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5669 *COFF*)
5670 DUMPBIN="$DUMPBIN -symbols"
5671 ;;
5672 *)
5673 DUMPBIN=:
5674 ;;
5675 esac
5676 fi
bedf545c 5677
ce2cded5
L
5678 if test "$DUMPBIN" != ":"; then
5679 NM="$DUMPBIN"
5680 fi
5681fi
5682test -z "$NM" && NM=nm
6840198f 5683
13b2be9c 5684
ac48eca1 5685
d7040cdb 5686
ce2cded5
L
5687
5688
81ecdfbb
RW
5689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5690$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5691if test "${lt_cv_nm_interface+set}" = set; then :
5692 $as_echo_n "(cached) " >&6
ce2cded5
L
5693else
5694 lt_cv_nm_interface="BSD nm"
5695 echo "int some_variable = 0;" > conftest.$ac_ext
3725885a 5696 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
ce2cded5
L
5697 (eval "$ac_compile" 2>conftest.err)
5698 cat conftest.err >&5
3725885a 5699 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
ce2cded5
L
5700 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5701 cat conftest.err >&5
3725885a 5702 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
ce2cded5
L
5703 cat conftest.out >&5
5704 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5705 lt_cv_nm_interface="MS dumpbin"
5706 fi
5707 rm -f conftest*
5708fi
81ecdfbb
RW
5709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5710$as_echo "$lt_cv_nm_interface" >&6; }
ce2cded5 5711
81ecdfbb
RW
5712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5713$as_echo_n "checking whether ln -s works... " >&6; }
ce2cded5
L
5714LN_S=$as_ln_s
5715if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5717$as_echo "yes" >&6; }
ce2cded5 5718else
81ecdfbb
RW
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5720$as_echo "no, using $LN_S" >&6; }
ce2cded5
L
5721fi
5722
5723# find the maximum length of command line arguments
81ecdfbb
RW
5724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5725$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5726if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5727 $as_echo_n "(cached) " >&6
ce2cded5
L
5728else
5729 i=0
5730 teststring="ABCD"
5731
5732 case $build_os in
5733 msdosdjgpp*)
5734 # On DJGPP, this test can blow up pretty badly due to problems in libc
5735 # (any single argument exceeding 2000 bytes causes a buffer overrun
5736 # during glob expansion). Even if it were fixed, the result of this
5737 # check would be larger than it should be.
5738 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5739 ;;
5740
5741 gnu*)
5742 # Under GNU Hurd, this test is not required because there is
5743 # no limit to the length of command line arguments.
5744 # Libtool will interpret -1 as no limit whatsoever
5745 lt_cv_sys_max_cmd_len=-1;
5746 ;;
5747
718a6fd8 5748 cygwin* | mingw* | cegcc*)
ce2cded5
L
5749 # On Win9x/ME, this test blows up -- it succeeds, but takes
5750 # about 5 minutes as the teststring grows exponentially.
5751 # Worse, since 9x/ME are not pre-emptively multitasking,
5752 # you end up with a "frozen" computer, even though with patience
5753 # the test eventually succeeds (with a max line length of 256k).
5754 # Instead, let's just punt: use the minimum linelength reported by
5755 # all of the supported platforms: 8192 (on NT/2K/XP).
5756 lt_cv_sys_max_cmd_len=8192;
5757 ;;
5758
3725885a
RW
5759 mint*)
5760 # On MiNT this can take a long time and run out of memory.
5761 lt_cv_sys_max_cmd_len=8192;
5762 ;;
5763
ce2cded5
L
5764 amigaos*)
5765 # On AmigaOS with pdksh, this test takes hours, literally.
5766 # So we just punt and use a minimum line length of 8192.
5767 lt_cv_sys_max_cmd_len=8192;
5768 ;;
5769
5770 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5771 # This has been around since 386BSD, at least. Likely further.
5772 if test -x /sbin/sysctl; then
5773 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5774 elif test -x /usr/sbin/sysctl; then
5775 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5776 else
5777 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5778 fi
5779 # And add a safety zone
5780 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5781 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5782 ;;
5783
5784 interix*)
5785 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5786 lt_cv_sys_max_cmd_len=196608
5787 ;;
5788
5789 osf*)
5790 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5791 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5792 # nice to cause kernel panics so lets avoid the loop below.
5793 # First set a reasonable default.
5794 lt_cv_sys_max_cmd_len=16384
5795 #
5796 if test -x /sbin/sysconfig; then
5797 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5798 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5799 esac
5800 fi
5801 ;;
5802 sco3.2v5*)
5803 lt_cv_sys_max_cmd_len=102400
5804 ;;
5805 sysv5* | sco5v6* | sysv4.2uw2*)
5806 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5807 if test -n "$kargmax"; then
5808 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5809 else
5810 lt_cv_sys_max_cmd_len=32768
5811 fi
d7040cdb
SE
5812 ;;
5813 *)
718a6fd8
SE
5814 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5815 if test -n "$lt_cv_sys_max_cmd_len"; then
ce2cded5
L
5816 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5817 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5818 else
5819 # Make teststring a little bigger before we do anything with it.
5820 # a 1K string should be a reasonable start.
5821 for i in 1 2 3 4 5 6 7 8 ; do
5822 teststring=$teststring$teststring
5823 done
5824 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5825 # If test is not a shell built-in, we'll probably end up computing a
5826 # maximum length that is only half of the actual maximum length, but
5827 # we can't tell.
3725885a
RW
5828 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5829 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
ce2cded5
L
5830 test $i != 17 # 1/2 MB should be enough
5831 do
5832 i=`expr $i + 1`
5833 teststring=$teststring$teststring
5834 done
5835 # Only check the string length outside the loop.
5836 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5837 teststring=
5838 # Add a significant safety factor because C++ compilers can tack on
5839 # massive amounts of additional arguments before passing them to the
5840 # linker. It appears as though 1/2 is a usable value.
5841 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5842 fi
d7040cdb
SE
5843 ;;
5844 esac
252b5132 5845
ce2cded5 5846fi
d6d788bd 5847
ce2cded5 5848if test -n $lt_cv_sys_max_cmd_len ; then
81ecdfbb
RW
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5850$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
ce2cded5 5851else
81ecdfbb
RW
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5853$as_echo "none" >&6; }
ce2cded5
L
5854fi
5855max_cmd_len=$lt_cv_sys_max_cmd_len
252b5132 5856
d6d788bd 5857
13b2be9c 5858
13b2be9c 5859
bedf545c 5860
252b5132 5861
ce2cded5
L
5862: ${CP="cp -f"}
5863: ${MV="mv -f"}
5864: ${RM="rm -f"}
d6d788bd 5865
81ecdfbb
RW
5866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5867$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
ce2cded5
L
5868# Try some XSI features
5869xsi_shell=no
5870( _lt_dummy="a/b/c"
df7b86aa
NC
5871 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5872 = c,a/b,b/c, \
718a6fd8
SE
5873 && eval 'test $(( 1 + 1 )) -eq 2 \
5874 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
ce2cded5 5875 && xsi_shell=yes
81ecdfbb
RW
5876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5877$as_echo "$xsi_shell" >&6; }
bedf545c 5878
bedf545c 5879
81ecdfbb
RW
5880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5881$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
ce2cded5
L
5882lt_shell_append=no
5883( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5884 >/dev/null 2>&1 \
5885 && lt_shell_append=yes
81ecdfbb
RW
5886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5887$as_echo "$lt_shell_append" >&6; }
252b5132 5888
d6d788bd 5889
ce2cded5
L
5890if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5891 lt_unset=unset
5892else
5893 lt_unset=false
5894fi
13b2be9c
DJ
5895
5896
5897
5898
d6d788bd 5899
ce2cded5
L
5900# test EBCDIC or ASCII
5901case `echo X|tr X '\101'` in
5902 A) # ASCII based system
5903 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5904 lt_SP2NL='tr \040 \012'
5905 lt_NL2SP='tr \015\012 \040\040'
5906 ;;
5907 *) # EBCDIC based system
5908 lt_SP2NL='tr \100 \n'
5909 lt_NL2SP='tr \r\n \100\100'
5910 ;;
5911esac
c43a438d 5912
c43a438d 5913
c43a438d 5914
252b5132 5915
ad22bfe8 5916
1ad12f97 5917
1ad12f97 5918
9e9b66a9 5919
1ad12f97 5920
df7b86aa
NC
5921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5922$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5923if test "${lt_cv_to_host_file_cmd+set}" = set; then :
5924 $as_echo_n "(cached) " >&6
5925else
5926 case $host in
5927 *-*-mingw* )
5928 case $build in
5929 *-*-mingw* ) # actually msys
5930 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5931 ;;
5932 *-*-cygwin* )
5933 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5934 ;;
5935 * ) # otherwise, assume *nix
5936 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5937 ;;
5938 esac
5939 ;;
5940 *-*-cygwin* )
5941 case $build in
5942 *-*-mingw* ) # actually msys
5943 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5944 ;;
5945 *-*-cygwin* )
5946 lt_cv_to_host_file_cmd=func_convert_file_noop
5947 ;;
5948 * ) # otherwise, assume *nix
5949 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5950 ;;
5951 esac
5952 ;;
5953 * ) # unhandled hosts (and "normal" native builds)
5954 lt_cv_to_host_file_cmd=func_convert_file_noop
5955 ;;
5956esac
5957
5958fi
5959
5960to_host_file_cmd=$lt_cv_to_host_file_cmd
5961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5962$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5963
5964
5965
5966
5967
5968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5969$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5970if test "${lt_cv_to_tool_file_cmd+set}" = set; then :
5971 $as_echo_n "(cached) " >&6
5972else
5973 #assume ordinary cross tools, or native build.
5974lt_cv_to_tool_file_cmd=func_convert_file_noop
5975case $host in
5976 *-*-mingw* )
5977 case $build in
5978 *-*-mingw* ) # actually msys
5979 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5980 ;;
5981 esac
5982 ;;
5983esac
5984
5985fi
5986
5987to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5989$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5990
5991
5992
5993
5994
81ecdfbb
RW
5995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5996$as_echo_n "checking for $LD option to reload object files... " >&6; }
5997if test "${lt_cv_ld_reload_flag+set}" = set; then :
5998 $as_echo_n "(cached) " >&6
ce2cded5
L
5999else
6000 lt_cv_ld_reload_flag='-r'
6001fi
81ecdfbb
RW
6002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6003$as_echo "$lt_cv_ld_reload_flag" >&6; }
ce2cded5
L
6004reload_flag=$lt_cv_ld_reload_flag
6005case $reload_flag in
6006"" | " "*) ;;
6007*) reload_flag=" $reload_flag" ;;
6008esac
6009reload_cmds='$LD$reload_flag -o $output$reload_objs'
6010case $host_os in
df7b86aa
NC
6011 cygwin* | mingw* | pw32* | cegcc*)
6012 if test "$GCC" != yes; then
6013 reload_cmds=false
6014 fi
6015 ;;
ce2cded5
L
6016 darwin*)
6017 if test "$GCC" = yes; then
6018 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6019 else
6020 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6021 fi
6022 ;;
6023esac
a541e3ce 6024
9e9b66a9 6025
a2d91340 6026
d6d788bd 6027
9e9b66a9
AM
6028
6029
6030
d6d788bd 6031
252b5132 6032
718a6fd8
SE
6033if test -n "$ac_tool_prefix"; then
6034 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6035set dummy ${ac_tool_prefix}objdump; ac_word=$2
81ecdfbb
RW
6036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6037$as_echo_n "checking for $ac_word... " >&6; }
6038if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6039 $as_echo_n "(cached) " >&6
718a6fd8
SE
6040else
6041 if test -n "$OBJDUMP"; then
6042 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6043else
6044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6045for as_dir in $PATH
6046do
6047 IFS=$as_save_IFS
6048 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6049 for ac_exec_ext in '' $ac_executable_extensions; do
6050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 6051 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
81ecdfbb 6052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6053 break 2
6054 fi
6055done
81ecdfbb
RW
6056 done
6057IFS=$as_save_IFS
718a6fd8
SE
6058
6059fi
6060fi
6061OBJDUMP=$ac_cv_prog_OBJDUMP
6062if test -n "$OBJDUMP"; then
81ecdfbb
RW
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6064$as_echo "$OBJDUMP" >&6; }
718a6fd8 6065else
81ecdfbb
RW
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6067$as_echo "no" >&6; }
718a6fd8
SE
6068fi
6069
81ecdfbb 6070
718a6fd8
SE
6071fi
6072if test -z "$ac_cv_prog_OBJDUMP"; then
6073 ac_ct_OBJDUMP=$OBJDUMP
6074 # Extract the first word of "objdump", so it can be a program name with args.
6075set dummy objdump; ac_word=$2
81ecdfbb
RW
6076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6077$as_echo_n "checking for $ac_word... " >&6; }
6078if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6079 $as_echo_n "(cached) " >&6
718a6fd8
SE
6080else
6081 if test -n "$ac_ct_OBJDUMP"; then
6082 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6083else
6084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6085for as_dir in $PATH
6086do
6087 IFS=$as_save_IFS
6088 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6089 for ac_exec_ext in '' $ac_executable_extensions; do
6090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 6091 ac_cv_prog_ac_ct_OBJDUMP="objdump"
81ecdfbb 6092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6093 break 2
6094 fi
6095done
81ecdfbb
RW
6096 done
6097IFS=$as_save_IFS
718a6fd8 6098
718a6fd8
SE
6099fi
6100fi
6101ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6102if test -n "$ac_ct_OBJDUMP"; then
81ecdfbb
RW
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6104$as_echo "$ac_ct_OBJDUMP" >&6; }
718a6fd8 6105else
81ecdfbb
RW
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6107$as_echo "no" >&6; }
718a6fd8
SE
6108fi
6109
81ecdfbb
RW
6110 if test "x$ac_ct_OBJDUMP" = x; then
6111 OBJDUMP="false"
6112 else
6113 case $cross_compiling:$ac_tool_warned in
6114yes:)
6115{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6116$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6117ac_tool_warned=yes ;;
6118esac
6119 OBJDUMP=$ac_ct_OBJDUMP
6120 fi
718a6fd8
SE
6121else
6122 OBJDUMP="$ac_cv_prog_OBJDUMP"
6123fi
6124
6125test -z "$OBJDUMP" && OBJDUMP=objdump
6126
6127
6128
6129
6130
6131
6132
6133
13b2be9c 6134
81ecdfbb
RW
6135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6136$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6137if test "${lt_cv_deplibs_check_method+set}" = set; then :
6138 $as_echo_n "(cached) " >&6
d7040cdb 6139else
ce2cded5
L
6140 lt_cv_file_magic_cmd='$MAGIC_CMD'
6141lt_cv_file_magic_test_file=
6142lt_cv_deplibs_check_method='unknown'
6143# Need to set the preceding variable on all platforms that support
6144# interlibrary dependencies.
6145# 'none' -- dependencies not supported.
6146# `unknown' -- same as none, but documents that we really don't know.
6147# 'pass_all' -- all dependencies passed with no checks.
6148# 'test_compile' -- check by making test program.
6149# 'file_magic [[regex]]' -- check by looking for files in library path
6150# which responds to the $file_magic_cmd with a given extended regex.
6151# If you have `file' or equivalent on your system and you're not sure
6152# whether `pass_all' will *always* work, you probably want this one.
13b2be9c 6153
ce2cded5 6154case $host_os in
50e7d84b 6155aix[4-9]*)
ce2cded5
L
6156 lt_cv_deplibs_check_method=pass_all
6157 ;;
d7040cdb 6158
ce2cded5
L
6159beos*)
6160 lt_cv_deplibs_check_method=pass_all
6161 ;;
d7040cdb 6162
ce2cded5
L
6163bsdi[45]*)
6164 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6165 lt_cv_file_magic_cmd='/usr/bin/file -L'
6166 lt_cv_file_magic_test_file=/shlib/libc.so
6167 ;;
d7040cdb 6168
ce2cded5
L
6169cygwin*)
6170 # func_win32_libid is a shell function defined in ltmain.sh
6171 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6172 lt_cv_file_magic_cmd='func_win32_libid'
d7040cdb 6173 ;;
ce2cded5
L
6174
6175mingw* | pw32*)
6176 # Base MSYS/MinGW do not provide the 'file' command needed by
6177 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6178 # unless we find 'file', for example because we are cross-compiling.
3725885a
RW
6179 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6180 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
ce2cded5
L
6181 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6182 lt_cv_file_magic_cmd='func_win32_libid'
6183 else
df7b86aa
NC
6184 # Keep this pattern in sync with the one in func_win32_libid.
6185 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
ce2cded5
L
6186 lt_cv_file_magic_cmd='$OBJDUMP -f'
6187 fi
d7040cdb 6188 ;;
ce2cded5 6189
3725885a 6190cegcc*)
718a6fd8
SE
6191 # use the weaker test based on 'objdump'. See mingw*.
6192 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6193 lt_cv_file_magic_cmd='$OBJDUMP -f'
6194 ;;
6195
ce2cded5
L
6196darwin* | rhapsody*)
6197 lt_cv_deplibs_check_method=pass_all
6198 ;;
6199
6200freebsd* | dragonfly*)
6201 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6202 case $host_cpu in
6203 i*86 )
6204 # Not sure whether the presence of OpenBSD here was a mistake.
6205 # Let's accept both of them until this is cleared up.
6206 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6207 lt_cv_file_magic_cmd=/usr/bin/file
6208 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6209 ;;
6210 esac
6211 else
6212 lt_cv_deplibs_check_method=pass_all
d7040cdb
SE
6213 fi
6214 ;;
ce2cded5
L
6215
6216gnu*)
6217 lt_cv_deplibs_check_method=pass_all
d7040cdb 6218 ;;
ce2cded5 6219
3725885a
RW
6220haiku*)
6221 lt_cv_deplibs_check_method=pass_all
6222 ;;
6223
ce2cded5
L
6224hpux10.20* | hpux11*)
6225 lt_cv_file_magic_cmd=/usr/bin/file
6226 case $host_cpu in
6227 ia64*)
6228 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6229 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6230 ;;
6231 hppa*64*)
3725885a 6232 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]'
ce2cded5
L
6233 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6234 ;;
6235 *)
3725885a 6236 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
ce2cded5
L
6237 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6238 ;;
6239 esac
d7040cdb 6240 ;;
ce2cded5
L
6241
6242interix[3-9]*)
6243 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6244 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
d7040cdb 6245 ;;
ce2cded5
L
6246
6247irix5* | irix6* | nonstopux*)
6248 case $LD in
6249 *-32|*"-32 ") libmagic=32-bit;;
6250 *-n32|*"-n32 ") libmagic=N32;;
6251 *-64|*"-64 ") libmagic=64-bit;;
6252 *) libmagic=never-match;;
6253 esac
6254 lt_cv_deplibs_check_method=pass_all
d7040cdb 6255 ;;
ce2cded5
L
6256
6257# This must be Linux ELF.
58e24671 6258linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5 6259 lt_cv_deplibs_check_method=pass_all
d7040cdb 6260 ;;
ce2cded5
L
6261
6262netbsd*)
6263 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6264 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6265 else
6266 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6267 fi
d7040cdb 6268 ;;
ce2cded5
L
6269
6270newos6*)
6271 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6272 lt_cv_file_magic_cmd=/usr/bin/file
6273 lt_cv_file_magic_test_file=/usr/lib/libnls.so
d7040cdb 6274 ;;
76a27922 6275
ce2cded5
L
6276*nto* | *qnx*)
6277 lt_cv_deplibs_check_method=pass_all
6278 ;;
d6d788bd 6279
ce2cded5
L
6280openbsd*)
6281 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6282 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6283 else
6284 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6285 fi
6286 ;;
44f2f9d2 6287
ce2cded5
L
6288osf3* | osf4* | osf5*)
6289 lt_cv_deplibs_check_method=pass_all
6290 ;;
44f2f9d2 6291
ce2cded5
L
6292rdos*)
6293 lt_cv_deplibs_check_method=pass_all
6294 ;;
6295
6296solaris*)
6297 lt_cv_deplibs_check_method=pass_all
6298 ;;
6299
6300sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6301 lt_cv_deplibs_check_method=pass_all
6302 ;;
6303
6304sysv4 | sysv4.3*)
6305 case $host_vendor in
6306 motorola)
6307 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]'
6308 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6309 ;;
6310 ncr)
6311 lt_cv_deplibs_check_method=pass_all
6312 ;;
6313 sequent)
6314 lt_cv_file_magic_cmd='/bin/file'
6315 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6316 ;;
6317 sni)
6318 lt_cv_file_magic_cmd='/bin/file'
6319 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6320 lt_cv_file_magic_test_file=/lib/libc.so
6321 ;;
6322 siemens)
6323 lt_cv_deplibs_check_method=pass_all
6324 ;;
6325 pc)
6326 lt_cv_deplibs_check_method=pass_all
6327 ;;
6328 esac
6329 ;;
6330
6331tpf*)
6332 lt_cv_deplibs_check_method=pass_all
d7040cdb
SE
6333 ;;
6334esac
6335
ce2cded5 6336fi
81ecdfbb
RW
6337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6338$as_echo "$lt_cv_deplibs_check_method" >&6; }
df7b86aa
NC
6339
6340file_magic_glob=
6341want_nocaseglob=no
6342if test "$build" = "$host"; then
6343 case $host_os in
6344 mingw* | pw32*)
6345 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6346 want_nocaseglob=yes
6347 else
6348 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6349 fi
6350 ;;
6351 esac
6352fi
6353
ce2cded5
L
6354file_magic_cmd=$lt_cv_file_magic_cmd
6355deplibs_check_method=$lt_cv_deplibs_check_method
6356test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb 6357
d7040cdb 6358
d7040cdb 6359
d7040cdb 6360
d7040cdb 6361
44f2f9d2 6362
d7040cdb 6363
d7040cdb 6364
d7040cdb 6365
d7040cdb 6366
df7b86aa
NC
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
44f2f9d2 6377
d7040cdb 6378
ce2cded5 6379if test -n "$ac_tool_prefix"; then
df7b86aa
NC
6380 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6381set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6383$as_echo_n "checking for $ac_word... " >&6; }
6384if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
6385 $as_echo_n "(cached) " >&6
6386else
6387 if test -n "$DLLTOOL"; then
6388 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6389else
6390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6391for as_dir in $PATH
6392do
6393 IFS=$as_save_IFS
6394 test -z "$as_dir" && as_dir=.
6395 for ac_exec_ext in '' $ac_executable_extensions; do
6396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6397 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6399 break 2
6400 fi
6401done
6402 done
6403IFS=$as_save_IFS
6404
6405fi
6406fi
6407DLLTOOL=$ac_cv_prog_DLLTOOL
6408if test -n "$DLLTOOL"; then
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6410$as_echo "$DLLTOOL" >&6; }
6411else
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6413$as_echo "no" >&6; }
6414fi
6415
6416
6417fi
6418if test -z "$ac_cv_prog_DLLTOOL"; then
6419 ac_ct_DLLTOOL=$DLLTOOL
6420 # Extract the first word of "dlltool", so it can be a program name with args.
6421set dummy dlltool; ac_word=$2
6422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6423$as_echo_n "checking for $ac_word... " >&6; }
6424if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
6425 $as_echo_n "(cached) " >&6
6426else
6427 if test -n "$ac_ct_DLLTOOL"; then
6428 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6429else
6430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6431for as_dir in $PATH
6432do
6433 IFS=$as_save_IFS
6434 test -z "$as_dir" && as_dir=.
6435 for ac_exec_ext in '' $ac_executable_extensions; do
6436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6437 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6439 break 2
6440 fi
6441done
6442 done
6443IFS=$as_save_IFS
6444
6445fi
6446fi
6447ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6448if test -n "$ac_ct_DLLTOOL"; then
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6450$as_echo "$ac_ct_DLLTOOL" >&6; }
6451else
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6453$as_echo "no" >&6; }
6454fi
6455
6456 if test "x$ac_ct_DLLTOOL" = x; then
6457 DLLTOOL="false"
6458 else
6459 case $cross_compiling:$ac_tool_warned in
6460yes:)
6461{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6462$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6463ac_tool_warned=yes ;;
6464esac
6465 DLLTOOL=$ac_ct_DLLTOOL
6466 fi
6467else
6468 DLLTOOL="$ac_cv_prog_DLLTOOL"
6469fi
6470
6471test -z "$DLLTOOL" && DLLTOOL=dlltool
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6483$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6484if test "${lt_cv_sharedlib_from_linklib_cmd+set}" = set; then :
6485 $as_echo_n "(cached) " >&6
6486else
6487 lt_cv_sharedlib_from_linklib_cmd='unknown'
6488
6489case $host_os in
6490cygwin* | mingw* | pw32* | cegcc*)
6491 # two different shell functions defined in ltmain.sh
6492 # decide which to use based on capabilities of $DLLTOOL
6493 case `$DLLTOOL --help 2>&1` in
6494 *--identify-strict*)
6495 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6496 ;;
6497 *)
6498 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6499 ;;
6500 esac
6501 ;;
6502*)
6503 # fallback: assume linklib IS sharedlib
6504 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6505 ;;
6506esac
6507
6508fi
6509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6510$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6511sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6512test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6513
6514
6515
6516
6517
6518
6519
6520if test -n "$ac_tool_prefix"; then
6521 for ac_prog in ar
6522 do
6523 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6524set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
6525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6526$as_echo_n "checking for $ac_word... " >&6; }
6527if test "${ac_cv_prog_AR+set}" = set; then :
6528 $as_echo_n "(cached) " >&6
ce2cded5
L
6529else
6530 if test -n "$AR"; then
6531 ac_cv_prog_AR="$AR" # Let the user override the test.
6532else
6533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6534for as_dir in $PATH
6535do
6536 IFS=$as_save_IFS
6537 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6538 for ac_exec_ext in '' $ac_executable_extensions; do
6539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
df7b86aa 6540 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
81ecdfbb 6541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5 6542 break 2
d7040cdb
SE
6543 fi
6544done
81ecdfbb
RW
6545 done
6546IFS=$as_save_IFS
44f2f9d2 6547
ce2cded5
L
6548fi
6549fi
6550AR=$ac_cv_prog_AR
6551if test -n "$AR"; then
81ecdfbb
RW
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6553$as_echo "$AR" >&6; }
ce2cded5 6554else
81ecdfbb
RW
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6556$as_echo "no" >&6; }
44f2f9d2 6557fi
d7040cdb 6558
81ecdfbb 6559
df7b86aa
NC
6560 test -n "$AR" && break
6561 done
d7040cdb 6562fi
df7b86aa 6563if test -z "$AR"; then
ce2cded5 6564 ac_ct_AR=$AR
df7b86aa
NC
6565 for ac_prog in ar
6566do
6567 # Extract the first word of "$ac_prog", so it can be a program name with args.
6568set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
6569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6570$as_echo_n "checking for $ac_word... " >&6; }
6571if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6572 $as_echo_n "(cached) " >&6
44f2f9d2 6573else
ce2cded5
L
6574 if test -n "$ac_ct_AR"; then
6575 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6576else
6577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6578for as_dir in $PATH
6579do
6580 IFS=$as_save_IFS
6581 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6582 for ac_exec_ext in '' $ac_executable_extensions; do
6583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
df7b86aa 6584 ac_cv_prog_ac_ct_AR="$ac_prog"
81ecdfbb 6585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6586 break 2
6587 fi
6588done
81ecdfbb
RW
6589 done
6590IFS=$as_save_IFS
ce2cded5 6591
ce2cded5
L
6592fi
6593fi
6594ac_ct_AR=$ac_cv_prog_ac_ct_AR
6595if test -n "$ac_ct_AR"; then
81ecdfbb
RW
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6597$as_echo "$ac_ct_AR" >&6; }
ce2cded5 6598else
81ecdfbb
RW
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6600$as_echo "no" >&6; }
d7040cdb 6601fi
44f2f9d2 6602
df7b86aa
NC
6603
6604 test -n "$ac_ct_AR" && break
6605done
6606
81ecdfbb
RW
6607 if test "x$ac_ct_AR" = x; then
6608 AR="false"
6609 else
6610 case $cross_compiling:$ac_tool_warned in
6611yes:)
6612{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6613$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6614ac_tool_warned=yes ;;
6615esac
6616 AR=$ac_ct_AR
6617 fi
ce2cded5 6618fi
d7040cdb 6619
df7b86aa
NC
6620: ${AR=ar}
6621: ${AR_FLAGS=cru}
6622
d7040cdb
SE
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
df7b86aa
NC
6633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6634$as_echo_n "checking for archiver @FILE support... " >&6; }
6635if test "${lt_cv_ar_at_file+set}" = set; then :
6636 $as_echo_n "(cached) " >&6
6637else
6638 lt_cv_ar_at_file=no
6639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6640/* end confdefs.h. */
6641
6642int
6643main ()
6644{
6645
6646 ;
6647 return 0;
6648}
6649_ACEOF
6650if ac_fn_c_try_compile "$LINENO"; then :
6651 echo conftest.$ac_objext > conftest.lst
6652 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6653 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6654 (eval $lt_ar_try) 2>&5
6655 ac_status=$?
6656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6657 test $ac_status = 0; }
6658 if test "$ac_status" -eq 0; then
6659 # Ensure the archiver fails upon bogus file names.
6660 rm -f conftest.$ac_objext libconftest.a
6661 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6662 (eval $lt_ar_try) 2>&5
6663 ac_status=$?
6664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6665 test $ac_status = 0; }
6666 if test "$ac_status" -ne 0; then
6667 lt_cv_ar_at_file=@
6668 fi
6669 fi
6670 rm -f conftest.* libconftest.a
6671
6672fi
6673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6674
6675fi
6676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6677$as_echo "$lt_cv_ar_at_file" >&6; }
6678
6679if test "x$lt_cv_ar_at_file" = xno; then
6680 archiver_list_spec=
6681else
6682 archiver_list_spec=$lt_cv_ar_at_file
6683fi
6684
6685
6686
6687
6688
6689
d7040cdb 6690
ce2cded5
L
6691if test -n "$ac_tool_prefix"; then
6692 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6693set dummy ${ac_tool_prefix}strip; ac_word=$2
81ecdfbb
RW
6694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6695$as_echo_n "checking for $ac_word... " >&6; }
6696if test "${ac_cv_prog_STRIP+set}" = set; then :
6697 $as_echo_n "(cached) " >&6
ce2cded5
L
6698else
6699 if test -n "$STRIP"; then
6700 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6701else
6702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703for as_dir in $PATH
6704do
6705 IFS=$as_save_IFS
6706 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6707 for ac_exec_ext in '' $ac_executable_extensions; do
6708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 6709 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
81ecdfbb 6710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6711 break 2
6712 fi
6713done
81ecdfbb
RW
6714 done
6715IFS=$as_save_IFS
d7040cdb 6716
ce2cded5
L
6717fi
6718fi
6719STRIP=$ac_cv_prog_STRIP
6720if test -n "$STRIP"; then
81ecdfbb
RW
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6722$as_echo "$STRIP" >&6; }
ce2cded5 6723else
81ecdfbb
RW
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6725$as_echo "no" >&6; }
ce2cded5 6726fi
d7040cdb 6727
81ecdfbb 6728
ce2cded5
L
6729fi
6730if test -z "$ac_cv_prog_STRIP"; then
6731 ac_ct_STRIP=$STRIP
6732 # Extract the first word of "strip", so it can be a program name with args.
6733set dummy strip; ac_word=$2
81ecdfbb
RW
6734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6735$as_echo_n "checking for $ac_word... " >&6; }
6736if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6737 $as_echo_n "(cached) " >&6
ce2cded5
L
6738else
6739 if test -n "$ac_ct_STRIP"; then
6740 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6741else
6742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743for as_dir in $PATH
6744do
6745 IFS=$as_save_IFS
6746 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6747 for ac_exec_ext in '' $ac_executable_extensions; do
6748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 6749 ac_cv_prog_ac_ct_STRIP="strip"
81ecdfbb 6750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6751 break 2
6752 fi
6753done
81ecdfbb
RW
6754 done
6755IFS=$as_save_IFS
d7040cdb 6756
ce2cded5
L
6757fi
6758fi
6759ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6760if test -n "$ac_ct_STRIP"; then
81ecdfbb
RW
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6762$as_echo "$ac_ct_STRIP" >&6; }
ce2cded5 6763else
81ecdfbb
RW
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6765$as_echo "no" >&6; }
ce2cded5 6766fi
d7040cdb 6767
81ecdfbb
RW
6768 if test "x$ac_ct_STRIP" = x; then
6769 STRIP=":"
6770 else
6771 case $cross_compiling:$ac_tool_warned in
6772yes:)
6773{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6774$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6775ac_tool_warned=yes ;;
6776esac
6777 STRIP=$ac_ct_STRIP
6778 fi
ce2cded5
L
6779else
6780 STRIP="$ac_cv_prog_STRIP"
6781fi
d7040cdb 6782
ce2cded5 6783test -z "$STRIP" && STRIP=:
d7040cdb 6784
d7040cdb 6785
d7040cdb 6786
d7040cdb 6787
d7040cdb 6788
d7040cdb 6789
ce2cded5
L
6790if test -n "$ac_tool_prefix"; then
6791 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6792set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
6793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6794$as_echo_n "checking for $ac_word... " >&6; }
6795if test "${ac_cv_prog_RANLIB+set}" = set; then :
6796 $as_echo_n "(cached) " >&6
44f2f9d2 6797else
ce2cded5
L
6798 if test -n "$RANLIB"; then
6799 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6800else
6801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6802for as_dir in $PATH
6803do
6804 IFS=$as_save_IFS
6805 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6806 for ac_exec_ext in '' $ac_executable_extensions; do
6807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 6808 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 6809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6810 break 2
6811 fi
6812done
81ecdfbb
RW
6813 done
6814IFS=$as_save_IFS
44f2f9d2 6815
d7040cdb 6816fi
44f2f9d2 6817fi
ce2cded5
L
6818RANLIB=$ac_cv_prog_RANLIB
6819if test -n "$RANLIB"; then
81ecdfbb
RW
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6821$as_echo "$RANLIB" >&6; }
ce2cded5 6822else
81ecdfbb
RW
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6824$as_echo "no" >&6; }
ce2cded5 6825fi
d7040cdb 6826
81ecdfbb 6827
d7040cdb 6828fi
ce2cded5
L
6829if test -z "$ac_cv_prog_RANLIB"; then
6830 ac_ct_RANLIB=$RANLIB
6831 # Extract the first word of "ranlib", so it can be a program name with args.
6832set dummy ranlib; ac_word=$2
81ecdfbb
RW
6833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6834$as_echo_n "checking for $ac_word... " >&6; }
6835if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6836 $as_echo_n "(cached) " >&6
44f2f9d2 6837else
ce2cded5
L
6838 if test -n "$ac_ct_RANLIB"; then
6839 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6840else
6841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842for as_dir in $PATH
d7040cdb 6843do
ce2cded5
L
6844 IFS=$as_save_IFS
6845 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6846 for ac_exec_ext in '' $ac_executable_extensions; do
6847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 6848 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 6849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5 6850 break 2
d7040cdb 6851 fi
ce2cded5 6852done
81ecdfbb
RW
6853 done
6854IFS=$as_save_IFS
ce2cded5 6855
d7040cdb 6856fi
ce2cded5
L
6857fi
6858ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6859if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6861$as_echo "$ac_ct_RANLIB" >&6; }
d7040cdb 6862else
81ecdfbb
RW
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6864$as_echo "no" >&6; }
44f2f9d2 6865fi
44f2f9d2 6866
81ecdfbb
RW
6867 if test "x$ac_ct_RANLIB" = x; then
6868 RANLIB=":"
6869 else
6870 case $cross_compiling:$ac_tool_warned in
6871yes:)
6872{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6873$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6874ac_tool_warned=yes ;;
6875esac
6876 RANLIB=$ac_ct_RANLIB
6877 fi
d7040cdb 6878else
ce2cded5 6879 RANLIB="$ac_cv_prog_RANLIB"
d7040cdb 6880fi
252b5132 6881
ce2cded5 6882test -z "$RANLIB" && RANLIB=:
252b5132 6883
252b5132 6884
ae57792d 6885
252b5132 6886
13b2be9c 6887
14ee9f48 6888
ce2cded5 6889# Determine commands to create old-style static archives.
718a6fd8 6890old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
ce2cded5
L
6891old_postinstall_cmds='chmod 644 $oldlib'
6892old_postuninstall_cmds=
14ee9f48 6893
ce2cded5
L
6894if test -n "$RANLIB"; then
6895 case $host_os in
6896 openbsd*)
6897 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6898 ;;
6899 *)
6900 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6901 ;;
6902 esac
6903 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
d7040cdb 6904fi
14ee9f48 6905
3725885a
RW
6906case $host_os in
6907 darwin*)
6908 lock_old_archive_extraction=yes ;;
6909 *)
6910 lock_old_archive_extraction=no ;;
6911esac
6912
6913
6914
6915
6916
6917
f8fc3443 6918
f8fc3443 6919
252b5132 6920
85fbca6a 6921
85fbca6a 6922
13b2be9c 6923
13b2be9c 6924
d7040cdb 6925
d7040cdb
SE
6926
6927
6928
252b5132 6929
93fbbb04 6930
93fbbb04 6931
d70c5fc7 6932
e0001a05 6933
252b5132 6934
252b5132 6935
252b5132 6936
252b5132 6937
252b5132 6938
3bcbcc3d 6939
252b5132 6940
252b5132 6941
252b5132 6942
15886821 6943
252b5132 6944
252b5132 6945
13b2be9c
DJ
6946
6947
252b5132 6948
252b5132 6949
d6d788bd 6950
ce2cded5
L
6951# If no C compiler was specified, use CC.
6952LTCC=${LTCC-"$CC"}
252b5132 6953
ce2cded5
L
6954# If no C compiler flags were specified, use CFLAGS.
6955LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
252b5132 6956
ce2cded5
L
6957# Allow CC to be a program name with arguments.
6958compiler=$CC
252b5132 6959
252b5132 6960
ce2cded5 6961# Check for command to grab the raw symbol name followed by C symbol from nm.
81ecdfbb
RW
6962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6963$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6964if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6965 $as_echo_n "(cached) " >&6
ce2cded5 6966else
252b5132 6967
ce2cded5
L
6968# These are sane defaults that work on at least a few old systems.
6969# [They come from Ultrix. What could be older than Ultrix?!! ;)]
252b5132 6970
ce2cded5
L
6971# Character class describing NM global symbol codes.
6972symcode='[BCDEGRST]'
252b5132 6973
ce2cded5
L
6974# Regexp to match symbols that can be accessed directly from C.
6975sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13b2be9c 6976
ce2cded5
L
6977# Define system-specific variables.
6978case $host_os in
6979aix*)
6980 symcode='[BCDT]'
6981 ;;
718a6fd8 6982cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
6983 symcode='[ABCDGISTW]'
6984 ;;
6985hpux*)
6986 if test "$host_cpu" = ia64; then
6987 symcode='[ABCDEGRST]'
6988 fi
6989 ;;
6990irix* | nonstopux*)
6991 symcode='[BCDEGRST]'
6992 ;;
6993osf*)
6994 symcode='[BCDEGQRST]'
6995 ;;
6996solaris*)
6997 symcode='[BDRT]'
6998 ;;
6999sco3.2v5*)
7000 symcode='[DT]'
7001 ;;
7002sysv4.2uw2*)
7003 symcode='[DT]'
7004 ;;
7005sysv5* | sco5v6* | unixware* | OpenUNIX*)
7006 symcode='[ABDT]'
7007 ;;
7008sysv4)
7009 symcode='[DFNSTU]'
7010 ;;
7011esac
7012
7013# If we're using GNU nm, then use its standard symbol codes.
7014case `$NM -V 2>&1` in
7015*GNU* | *'with BFD'*)
7016 symcode='[ABCDGIRSTW]' ;;
7017esac
252b5132 7018
ce2cded5
L
7019# Transform an extracted symbol line into a proper C declaration.
7020# Some systems (esp. on ia64) link data and code symbols differently,
7021# so use this general approach.
7022lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13b2be9c 7023
ce2cded5 7024# Transform an extracted symbol line into symbol name and symbol address
df7b86aa
NC
7025lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7026lt_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'"
d7040cdb 7027
7357c5b6
AM
7028# Handle CRLF in mingw tool chain
7029opt_cr=
7030case $build_os in
7031mingw*)
7032 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7033 ;;
7034esac
d7040cdb 7035
7357c5b6
AM
7036# Try without a prefix underscore, then with it.
7037for ac_symprfx in "" "_"; do
d7040cdb 7038
7357c5b6
AM
7039 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7040 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 7041
7357c5b6
AM
7042 # Write the raw and C identifiers.
7043 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7044 # Fake it for dumpbin and say T for any non-static function
7045 # and D for any global variable.
7046 # Also find C++ and __fastcall symbols from MSVC++,
7047 # which start with @ or ?.
7048 lt_cv_sys_global_symbol_pipe="$AWK '"\
7049" {last_section=section; section=\$ 3};"\
7050" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7051" \$ 0!~/External *\|/{next};"\
7052" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7053" {if(hide[section]) next};"\
7054" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7055" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7056" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7057" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7058" ' prfx=^$ac_symprfx"
7059 else
7060 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7061 fi
df7b86aa 7062 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
d7040cdb 7063
7357c5b6
AM
7064 # Check to see that the pipe works correctly.
7065 pipe_works=no
d7040cdb 7066
7357c5b6
AM
7067 rm -f conftest*
7068 cat > conftest.$ac_ext <<_LT_EOF
7069#ifdef __cplusplus
7070extern "C" {
7071#endif
7072char nm_test_var;
7073void nm_test_func(void);
7074void nm_test_func(void){}
7075#ifdef __cplusplus
ce2cded5 7076}
7357c5b6
AM
7077#endif
7078int main(){nm_test_var='a';nm_test_func();return(0);}
7079_LT_EOF
7080
81ecdfbb 7081 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6 7082 (eval $ac_compile) 2>&5
ce2cded5 7083 ac_status=$?
81ecdfbb
RW
7084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7085 test $ac_status = 0; }; then
7357c5b6
AM
7086 # Now try to grab the symbols.
7087 nlist=conftest.nm
3725885a
RW
7088 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7089 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
ce2cded5 7090 ac_status=$?
81ecdfbb
RW
7091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7092 test $ac_status = 0; } && test -s "$nlist"; then
7357c5b6
AM
7093 # Try sorting and uniquifying the output.
7094 if sort "$nlist" | uniq > "$nlist"T; then
7095 mv -f "$nlist"T "$nlist"
7096 else
7097 rm -f "$nlist"T
7098 fi
13b2be9c 7099
7357c5b6
AM
7100 # Make sure that we snagged all the symbols we need.
7101 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7102 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7103 cat <<_LT_EOF > conftest.$ac_ext
df7b86aa
NC
7104/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7105#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7106/* DATA imports from DLLs on WIN32 con't be const, because runtime
7107 relocations are performed -- see ld's documentation on pseudo-relocs. */
7108# define LT_DLSYM_CONST
7109#elif defined(__osf__)
7110/* This system does not cope well with relocations in const data. */
7111# define LT_DLSYM_CONST
7112#else
7113# define LT_DLSYM_CONST const
7114#endif
7115
7357c5b6
AM
7116#ifdef __cplusplus
7117extern "C" {
7118#endif
13b2be9c 7119
7357c5b6
AM
7120_LT_EOF
7121 # Now generate the symbol file.
7122 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13b2be9c 7123
7357c5b6 7124 cat <<_LT_EOF >> conftest.$ac_ext
c8615825 7125
7357c5b6 7126/* The mapping between symbol names and symbols. */
df7b86aa 7127LT_DLSYM_CONST struct {
7357c5b6
AM
7128 const char *name;
7129 void *address;
7130}
7131lt__PROGRAM__LTX_preloaded_symbols[] =
7132{
7133 { "@PROGRAM@", (void *) 0 },
7134_LT_EOF
7135 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7136 cat <<\_LT_EOF >> conftest.$ac_ext
7137 {0, (void *) 0}
7138};
d7040cdb 7139
7357c5b6
AM
7140/* This works around a problem in FreeBSD linker */
7141#ifdef FREEBSD_WORKAROUND
7142static const void *lt_preloaded_setup() {
7143 return lt__PROGRAM__LTX_preloaded_symbols;
7144}
ce2cded5 7145#endif
d7040cdb 7146
7357c5b6 7147#ifdef __cplusplus
ce2cded5 7148}
7357c5b6
AM
7149#endif
7150_LT_EOF
7151 # Now try linking the two files.
7152 mv conftest.$ac_objext conftstm.$ac_objext
df7b86aa
NC
7153 lt_globsym_save_LIBS=$LIBS
7154 lt_globsym_save_CFLAGS=$CFLAGS
7357c5b6
AM
7155 LIBS="conftstm.$ac_objext"
7156 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
81ecdfbb 7157 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5
L
7158 (eval $ac_link) 2>&5
7159 ac_status=$?
81ecdfbb
RW
7160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7161 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7357c5b6
AM
7162 pipe_works=yes
7163 fi
df7b86aa
NC
7164 LIBS=$lt_globsym_save_LIBS
7165 CFLAGS=$lt_globsym_save_CFLAGS
7357c5b6
AM
7166 else
7167 echo "cannot find nm_test_func in $nlist" >&5
7168 fi
7169 else
7170 echo "cannot find nm_test_var in $nlist" >&5
7171 fi
7172 else
7173 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7174 fi
7175 else
7176 echo "$progname: failed program was:" >&5
7177 cat conftest.$ac_ext >&5
7178 fi
718a6fd8 7179 rm -rf conftest* conftst*
7357c5b6
AM
7180
7181 # Do not use the global_symbol_pipe unless it works.
7182 if test "$pipe_works" = yes; then
7183 break
7184 else
7185 lt_cv_sys_global_symbol_pipe=
7186 fi
7187done
d7040cdb 7188
ce2cded5 7189fi
7357c5b6
AM
7190
7191if test -z "$lt_cv_sys_global_symbol_pipe"; then
7192 lt_cv_sys_global_symbol_to_cdecl=
ce2cded5 7193fi
7357c5b6 7194if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
81ecdfbb
RW
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7196$as_echo "failed" >&6; }
7357c5b6 7197else
81ecdfbb
RW
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7199$as_echo "ok" >&6; }
ce2cded5 7200fi
d7040cdb 7201
df7b86aa
NC
7202# Response file support.
7203if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7204 nm_file_list_spec='@'
7205elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7206 nm_file_list_spec='@'
7207fi
7208
7209
7210
7211
7212
7213
7214
d7040cdb 7215
d7040cdb 7216
d7040cdb 7217
d7040cdb 7218
d7040cdb 7219
d7040cdb 7220
d7040cdb 7221
d7040cdb 7222
d7040cdb 7223
d7040cdb 7224
d7040cdb 7225
7357c5b6
AM
7226
7227
7228
718a6fd8
SE
7229
7230
df7b86aa
NC
7231
7232
7233
7234
7235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7236$as_echo_n "checking for sysroot... " >&6; }
7237
7238# Check whether --with-sysroot was given.
7239if test "${with_sysroot+set}" = set; then :
7240 withval=$with_sysroot;
7241else
7242 with_sysroot=no
7243fi
7244
7245
7246lt_sysroot=
7247case ${with_sysroot} in #(
7248 yes)
7249 if test "$GCC" = yes; then
7250 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7251 fi
7252 ;; #(
7253 /*)
7254 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7255 ;; #(
7256 no|'')
7257 ;; #(
7258 *)
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7260$as_echo "${with_sysroot}" >&6; }
7261 as_fn_error "The sysroot must be an absolute path." "$LINENO" 5
7262 ;;
7263esac
7264
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7266$as_echo "${lt_sysroot:-no}" >&6; }
718a6fd8
SE
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
ce2cded5 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; }
7357c5b6
AM
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
7357c5b6
AM
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
7357c5b6
AM
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" ;;
718a6fd8
SE
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 ;;
7357c5b6
AM
7455 esac
7456 ;;
7457 esac
7458 fi
7459 rm -rf conftest*
7460 ;;
7461esac
d7040cdb 7462
df7b86aa
NC
7463need_locks="$enable_libtool_lock"
7464
7465if test -n "$ac_tool_prefix"; then
7466 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7467set dummy ${ac_tool_prefix}mt; ac_word=$2
7468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7469$as_echo_n "checking for $ac_word... " >&6; }
7470if test "${ac_cv_prog_MANIFEST_TOOL+set}" = set; then :
7471 $as_echo_n "(cached) " >&6
7472else
7473 if test -n "$MANIFEST_TOOL"; then
7474 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7475else
7476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7477for as_dir in $PATH
7478do
7479 IFS=$as_save_IFS
7480 test -z "$as_dir" && as_dir=.
7481 for ac_exec_ext in '' $ac_executable_extensions; do
7482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7483 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7485 break 2
7486 fi
7487done
7488 done
7489IFS=$as_save_IFS
7490
7491fi
7492fi
7493MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7494if test -n "$MANIFEST_TOOL"; then
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7496$as_echo "$MANIFEST_TOOL" >&6; }
7497else
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7499$as_echo "no" >&6; }
7500fi
7501
7502
7503fi
7504if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7505 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7506 # Extract the first word of "mt", so it can be a program name with args.
7507set dummy mt; ac_word=$2
7508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7509$as_echo_n "checking for $ac_word... " >&6; }
7510if test "${ac_cv_prog_ac_ct_MANIFEST_TOOL+set}" = set; then :
7511 $as_echo_n "(cached) " >&6
7512else
7513 if test -n "$ac_ct_MANIFEST_TOOL"; then
7514 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7515else
7516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517for as_dir in $PATH
7518do
7519 IFS=$as_save_IFS
7520 test -z "$as_dir" && as_dir=.
7521 for ac_exec_ext in '' $ac_executable_extensions; do
7522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7523 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7525 break 2
7526 fi
7527done
7528 done
7529IFS=$as_save_IFS
7530
7531fi
7532fi
7533ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7534if test -n "$ac_ct_MANIFEST_TOOL"; then
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7536$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7537else
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7539$as_echo "no" >&6; }
7540fi
7541
7542 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7543 MANIFEST_TOOL=":"
7544 else
7545 case $cross_compiling:$ac_tool_warned in
7546yes:)
7547{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7548$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7549ac_tool_warned=yes ;;
7550esac
7551 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7552 fi
7553else
7554 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7555fi
7556
7557test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7559$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7560if test "${lt_cv_path_mainfest_tool+set}" = set; then :
7561 $as_echo_n "(cached) " >&6
7562else
7563 lt_cv_path_mainfest_tool=no
7564 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7565 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7566 cat conftest.err >&5
7567 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7568 lt_cv_path_mainfest_tool=yes
7569 fi
7570 rm -f conftest*
7571fi
7572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7573$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7574if test "x$lt_cv_path_mainfest_tool" != xyes; then
7575 MANIFEST_TOOL=:
7576fi
7577
7578
7579
7580
718a6fd8
SE
7581
7582
7583 case $host_os in
7584 rhapsody* | darwin*)
7585 if test -n "$ac_tool_prefix"; then
7586 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7587set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
81ecdfbb
RW
7588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7589$as_echo_n "checking for $ac_word... " >&6; }
7590if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7591 $as_echo_n "(cached) " >&6
718a6fd8
SE
7592else
7593 if test -n "$DSYMUTIL"; then
7594 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7595else
7596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597for as_dir in $PATH
7598do
7599 IFS=$as_save_IFS
7600 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7601 for ac_exec_ext in '' $ac_executable_extensions; do
7602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7603 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
81ecdfbb 7604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7605 break 2
7606 fi
7607done
81ecdfbb
RW
7608 done
7609IFS=$as_save_IFS
718a6fd8
SE
7610
7611fi
7612fi
7613DSYMUTIL=$ac_cv_prog_DSYMUTIL
7614if test -n "$DSYMUTIL"; then
81ecdfbb
RW
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7616$as_echo "$DSYMUTIL" >&6; }
718a6fd8 7617else
81ecdfbb
RW
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7619$as_echo "no" >&6; }
718a6fd8
SE
7620fi
7621
81ecdfbb 7622
718a6fd8
SE
7623fi
7624if test -z "$ac_cv_prog_DSYMUTIL"; then
7625 ac_ct_DSYMUTIL=$DSYMUTIL
7626 # Extract the first word of "dsymutil", so it can be a program name with args.
7627set dummy dsymutil; ac_word=$2
81ecdfbb
RW
7628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7629$as_echo_n "checking for $ac_word... " >&6; }
7630if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7631 $as_echo_n "(cached) " >&6
718a6fd8
SE
7632else
7633 if test -n "$ac_ct_DSYMUTIL"; then
7634 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7635else
7636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7637for as_dir in $PATH
7638do
7639 IFS=$as_save_IFS
7640 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7641 for ac_exec_ext in '' $ac_executable_extensions; do
7642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7643 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
81ecdfbb 7644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7645 break 2
7646 fi
7647done
81ecdfbb
RW
7648 done
7649IFS=$as_save_IFS
718a6fd8 7650
718a6fd8
SE
7651fi
7652fi
7653ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7654if test -n "$ac_ct_DSYMUTIL"; then
81ecdfbb
RW
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7656$as_echo "$ac_ct_DSYMUTIL" >&6; }
718a6fd8 7657else
81ecdfbb
RW
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7659$as_echo "no" >&6; }
718a6fd8
SE
7660fi
7661
81ecdfbb
RW
7662 if test "x$ac_ct_DSYMUTIL" = x; then
7663 DSYMUTIL=":"
7664 else
7665 case $cross_compiling:$ac_tool_warned in
7666yes:)
7667{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7668$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7669ac_tool_warned=yes ;;
7670esac
7671 DSYMUTIL=$ac_ct_DSYMUTIL
7672 fi
718a6fd8
SE
7673else
7674 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7675fi
7676
7677 if test -n "$ac_tool_prefix"; then
7678 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7679set dummy ${ac_tool_prefix}nmedit; ac_word=$2
81ecdfbb
RW
7680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7681$as_echo_n "checking for $ac_word... " >&6; }
7682if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7683 $as_echo_n "(cached) " >&6
718a6fd8
SE
7684else
7685 if test -n "$NMEDIT"; then
7686 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7687else
7688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7689for as_dir in $PATH
7690do
7691 IFS=$as_save_IFS
7692 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7693 for ac_exec_ext in '' $ac_executable_extensions; do
7694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7695 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
81ecdfbb 7696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7697 break 2
7698 fi
7699done
81ecdfbb
RW
7700 done
7701IFS=$as_save_IFS
718a6fd8
SE
7702
7703fi
7704fi
7705NMEDIT=$ac_cv_prog_NMEDIT
7706if test -n "$NMEDIT"; then
81ecdfbb
RW
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7708$as_echo "$NMEDIT" >&6; }
718a6fd8 7709else
81ecdfbb
RW
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7711$as_echo "no" >&6; }
718a6fd8
SE
7712fi
7713
81ecdfbb 7714
718a6fd8
SE
7715fi
7716if test -z "$ac_cv_prog_NMEDIT"; then
7717 ac_ct_NMEDIT=$NMEDIT
7718 # Extract the first word of "nmedit", so it can be a program name with args.
7719set dummy nmedit; ac_word=$2
81ecdfbb
RW
7720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7721$as_echo_n "checking for $ac_word... " >&6; }
7722if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7723 $as_echo_n "(cached) " >&6
718a6fd8
SE
7724else
7725 if test -n "$ac_ct_NMEDIT"; then
7726 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7727else
7728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7729for as_dir in $PATH
7730do
7731 IFS=$as_save_IFS
7732 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7733 for ac_exec_ext in '' $ac_executable_extensions; do
7734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7735 ac_cv_prog_ac_ct_NMEDIT="nmedit"
81ecdfbb 7736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7737 break 2
7738 fi
7739done
81ecdfbb
RW
7740 done
7741IFS=$as_save_IFS
718a6fd8 7742
718a6fd8
SE
7743fi
7744fi
7745ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7746if test -n "$ac_ct_NMEDIT"; then
81ecdfbb
RW
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7748$as_echo "$ac_ct_NMEDIT" >&6; }
718a6fd8 7749else
81ecdfbb
RW
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7751$as_echo "no" >&6; }
718a6fd8
SE
7752fi
7753
81ecdfbb
RW
7754 if test "x$ac_ct_NMEDIT" = x; then
7755 NMEDIT=":"
7756 else
7757 case $cross_compiling:$ac_tool_warned in
7758yes:)
7759{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7760$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7761ac_tool_warned=yes ;;
7762esac
7763 NMEDIT=$ac_ct_NMEDIT
7764 fi
718a6fd8
SE
7765else
7766 NMEDIT="$ac_cv_prog_NMEDIT"
7767fi
7768
7769 if test -n "$ac_tool_prefix"; then
7770 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7771set dummy ${ac_tool_prefix}lipo; ac_word=$2
81ecdfbb
RW
7772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7773$as_echo_n "checking for $ac_word... " >&6; }
7774if test "${ac_cv_prog_LIPO+set}" = set; then :
7775 $as_echo_n "(cached) " >&6
718a6fd8
SE
7776else
7777 if test -n "$LIPO"; then
7778 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7779else
7780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781for as_dir in $PATH
7782do
7783 IFS=$as_save_IFS
7784 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7785 for ac_exec_ext in '' $ac_executable_extensions; do
7786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7787 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
81ecdfbb 7788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7789 break 2
7790 fi
7791done
81ecdfbb
RW
7792 done
7793IFS=$as_save_IFS
718a6fd8
SE
7794
7795fi
7796fi
7797LIPO=$ac_cv_prog_LIPO
7798if test -n "$LIPO"; then
81ecdfbb
RW
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7800$as_echo "$LIPO" >&6; }
718a6fd8 7801else
81ecdfbb
RW
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7803$as_echo "no" >&6; }
718a6fd8
SE
7804fi
7805
81ecdfbb 7806
718a6fd8
SE
7807fi
7808if test -z "$ac_cv_prog_LIPO"; then
7809 ac_ct_LIPO=$LIPO
7810 # Extract the first word of "lipo", so it can be a program name with args.
7811set dummy lipo; ac_word=$2
81ecdfbb
RW
7812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7813$as_echo_n "checking for $ac_word... " >&6; }
7814if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7815 $as_echo_n "(cached) " >&6
718a6fd8
SE
7816else
7817 if test -n "$ac_ct_LIPO"; then
7818 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7819else
7820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7821for as_dir in $PATH
7822do
7823 IFS=$as_save_IFS
7824 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7825 for ac_exec_ext in '' $ac_executable_extensions; do
7826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7827 ac_cv_prog_ac_ct_LIPO="lipo"
81ecdfbb 7828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7829 break 2
7830 fi
7831done
81ecdfbb
RW
7832 done
7833IFS=$as_save_IFS
718a6fd8 7834
718a6fd8
SE
7835fi
7836fi
7837ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7838if test -n "$ac_ct_LIPO"; then
81ecdfbb
RW
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7840$as_echo "$ac_ct_LIPO" >&6; }
718a6fd8 7841else
81ecdfbb
RW
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7843$as_echo "no" >&6; }
718a6fd8
SE
7844fi
7845
81ecdfbb
RW
7846 if test "x$ac_ct_LIPO" = x; then
7847 LIPO=":"
7848 else
7849 case $cross_compiling:$ac_tool_warned in
7850yes:)
7851{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7852$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7853ac_tool_warned=yes ;;
7854esac
7855 LIPO=$ac_ct_LIPO
7856 fi
718a6fd8
SE
7857else
7858 LIPO="$ac_cv_prog_LIPO"
7859fi
7860
7861 if test -n "$ac_tool_prefix"; then
7862 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7863set dummy ${ac_tool_prefix}otool; ac_word=$2
81ecdfbb
RW
7864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7865$as_echo_n "checking for $ac_word... " >&6; }
7866if test "${ac_cv_prog_OTOOL+set}" = set; then :
7867 $as_echo_n "(cached) " >&6
718a6fd8
SE
7868else
7869 if test -n "$OTOOL"; then
7870 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7871else
7872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7873for as_dir in $PATH
7874do
7875 IFS=$as_save_IFS
7876 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7877 for ac_exec_ext in '' $ac_executable_extensions; do
7878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7879 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
81ecdfbb 7880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7881 break 2
7882 fi
7883done
81ecdfbb
RW
7884 done
7885IFS=$as_save_IFS
718a6fd8
SE
7886
7887fi
7888fi
7889OTOOL=$ac_cv_prog_OTOOL
7890if test -n "$OTOOL"; then
81ecdfbb
RW
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7892$as_echo "$OTOOL" >&6; }
718a6fd8 7893else
81ecdfbb
RW
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7895$as_echo "no" >&6; }
718a6fd8
SE
7896fi
7897
81ecdfbb 7898
718a6fd8
SE
7899fi
7900if test -z "$ac_cv_prog_OTOOL"; then
7901 ac_ct_OTOOL=$OTOOL
7902 # Extract the first word of "otool", so it can be a program name with args.
7903set dummy otool; ac_word=$2
81ecdfbb
RW
7904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7905$as_echo_n "checking for $ac_word... " >&6; }
7906if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7907 $as_echo_n "(cached) " >&6
718a6fd8
SE
7908else
7909 if test -n "$ac_ct_OTOOL"; then
7910 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7911else
7912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7913for as_dir in $PATH
7914do
7915 IFS=$as_save_IFS
7916 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7917 for ac_exec_ext in '' $ac_executable_extensions; do
7918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7919 ac_cv_prog_ac_ct_OTOOL="otool"
81ecdfbb 7920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7921 break 2
7922 fi
7923done
81ecdfbb
RW
7924 done
7925IFS=$as_save_IFS
718a6fd8 7926
718a6fd8
SE
7927fi
7928fi
7929ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7930if test -n "$ac_ct_OTOOL"; then
81ecdfbb
RW
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7932$as_echo "$ac_ct_OTOOL" >&6; }
718a6fd8 7933else
81ecdfbb
RW
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7935$as_echo "no" >&6; }
718a6fd8
SE
7936fi
7937
81ecdfbb
RW
7938 if test "x$ac_ct_OTOOL" = x; then
7939 OTOOL=":"
7940 else
7941 case $cross_compiling:$ac_tool_warned in
7942yes:)
7943{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7944$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7945ac_tool_warned=yes ;;
7946esac
7947 OTOOL=$ac_ct_OTOOL
7948 fi
718a6fd8
SE
7949else
7950 OTOOL="$ac_cv_prog_OTOOL"
7951fi
7952
7953 if test -n "$ac_tool_prefix"; then
7954 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7955set dummy ${ac_tool_prefix}otool64; ac_word=$2
81ecdfbb
RW
7956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7957$as_echo_n "checking for $ac_word... " >&6; }
7958if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7959 $as_echo_n "(cached) " >&6
718a6fd8
SE
7960else
7961 if test -n "$OTOOL64"; then
7962 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7963else
7964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7965for as_dir in $PATH
7966do
7967 IFS=$as_save_IFS
7968 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7969 for ac_exec_ext in '' $ac_executable_extensions; do
7970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7971 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
81ecdfbb 7972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7973 break 2
7974 fi
7975done
81ecdfbb
RW
7976 done
7977IFS=$as_save_IFS
718a6fd8
SE
7978
7979fi
7980fi
7981OTOOL64=$ac_cv_prog_OTOOL64
7982if test -n "$OTOOL64"; then
81ecdfbb
RW
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7984$as_echo "$OTOOL64" >&6; }
718a6fd8 7985else
81ecdfbb
RW
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7987$as_echo "no" >&6; }
718a6fd8
SE
7988fi
7989
81ecdfbb 7990
718a6fd8
SE
7991fi
7992if test -z "$ac_cv_prog_OTOOL64"; then
7993 ac_ct_OTOOL64=$OTOOL64
7994 # Extract the first word of "otool64", so it can be a program name with args.
7995set dummy otool64; ac_word=$2
81ecdfbb
RW
7996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7997$as_echo_n "checking for $ac_word... " >&6; }
7998if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7999 $as_echo_n "(cached) " >&6
718a6fd8
SE
8000else
8001 if test -n "$ac_ct_OTOOL64"; then
8002 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8003else
8004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8005for as_dir in $PATH
8006do
8007 IFS=$as_save_IFS
8008 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8009 for ac_exec_ext in '' $ac_executable_extensions; do
8010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 8011 ac_cv_prog_ac_ct_OTOOL64="otool64"
81ecdfbb 8012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
8013 break 2
8014 fi
8015done
81ecdfbb
RW
8016 done
8017IFS=$as_save_IFS
718a6fd8 8018
718a6fd8
SE
8019fi
8020fi
8021ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8022if test -n "$ac_ct_OTOOL64"; then
81ecdfbb
RW
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8024$as_echo "$ac_ct_OTOOL64" >&6; }
718a6fd8 8025else
81ecdfbb
RW
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8027$as_echo "no" >&6; }
718a6fd8
SE
8028fi
8029
81ecdfbb
RW
8030 if test "x$ac_ct_OTOOL64" = x; then
8031 OTOOL64=":"
8032 else
8033 case $cross_compiling:$ac_tool_warned in
8034yes:)
8035{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8036$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8037ac_tool_warned=yes ;;
8038esac
8039 OTOOL64=$ac_ct_OTOOL64
8040 fi
718a6fd8
SE
8041else
8042 OTOOL64="$ac_cv_prog_OTOOL64"
8043fi
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
81ecdfbb
RW
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8072$as_echo_n "checking for -single_module linker flag... " >&6; }
8073if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8074 $as_echo_n "(cached) " >&6
718a6fd8
SE
8075else
8076 lt_cv_apple_cc_single_mod=no
8077 if test -z "${LT_MULTI_MODULE}"; then
8078 # By default we will add the -single_module flag. You can override
8079 # by either setting the environment variable LT_MULTI_MODULE
8080 # non-empty at configure time, or by adding -multi_module to the
8081 # link flags.
8082 rm -rf libconftest.dylib*
8083 echo "int foo(void){return 1;}" > conftest.c
8084 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8085-dynamiclib -Wl,-single_module conftest.c" >&5
8086 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8087 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8088 _lt_result=$?
8089 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8090 lt_cv_apple_cc_single_mod=yes
8091 else
8092 cat conftest.err >&5
8093 fi
8094 rm -rf libconftest.dylib*
8095 rm -f conftest.*
8096 fi
8097fi
81ecdfbb
RW
8098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8099$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8101$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8102if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8103 $as_echo_n "(cached) " >&6
718a6fd8
SE
8104else
8105 lt_cv_ld_exported_symbols_list=no
8106 save_LDFLAGS=$LDFLAGS
8107 echo "_main" > conftest.sym
8108 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
81ecdfbb 8109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
718a6fd8
SE
8110/* end confdefs.h. */
8111
8112int
8113main ()
8114{
8115
8116 ;
8117 return 0;
8118}
8119_ACEOF
81ecdfbb 8120if ac_fn_c_try_link "$LINENO"; then :
718a6fd8
SE
8121 lt_cv_ld_exported_symbols_list=yes
8122else
81ecdfbb 8123 lt_cv_ld_exported_symbols_list=no
718a6fd8 8124fi
81ecdfbb
RW
8125rm -f core conftest.err conftest.$ac_objext \
8126 conftest$ac_exeext conftest.$ac_ext
718a6fd8
SE
8127 LDFLAGS="$save_LDFLAGS"
8128
8129fi
81ecdfbb
RW
8130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8131$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
3725885a
RW
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8133$as_echo_n "checking for -force_load linker flag... " >&6; }
8134if test "${lt_cv_ld_force_load+set}" = set; then :
8135 $as_echo_n "(cached) " >&6
8136else
8137 lt_cv_ld_force_load=no
8138 cat > conftest.c << _LT_EOF
8139int forced_loaded() { return 2;}
8140_LT_EOF
8141 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8142 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8143 echo "$AR cru libconftest.a conftest.o" >&5
8144 $AR cru libconftest.a conftest.o 2>&5
df7b86aa
NC
8145 echo "$RANLIB libconftest.a" >&5
8146 $RANLIB libconftest.a 2>&5
3725885a
RW
8147 cat > conftest.c << _LT_EOF
8148int main() { return 0;}
8149_LT_EOF
8150 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8151 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8152 _lt_result=$?
8153 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8154 lt_cv_ld_force_load=yes
8155 else
8156 cat conftest.err >&5
8157 fi
8158 rm -f conftest.err libconftest.a conftest conftest.c
8159 rm -rf conftest.dSYM
8160
8161fi
8162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8163$as_echo "$lt_cv_ld_force_load" >&6; }
718a6fd8
SE
8164 case $host_os in
8165 rhapsody* | darwin1.[012])
8166 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8167 darwin1.*)
8168 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8169 darwin*) # darwin 5.x on
8170 # if running on 10.5 or later, the deployment target defaults
8171 # to the OS version, if on x86, and 10.4, the deployment
8172 # target defaults to 10.4. Don't you love it?
8173 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8174 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8175 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8176 10.[012]*)
8177 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8178 10.*)
8179 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8180 esac
8181 ;;
8182 esac
8183 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8184 _lt_dar_single_mod='$single_module'
8185 fi
8186 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8187 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8188 else
8189 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8190 fi
3725885a 8191 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
718a6fd8
SE
8192 _lt_dsymutil='~$DSYMUTIL $lib || :'
8193 else
8194 _lt_dsymutil=
8195 fi
8196 ;;
8197 esac
8198
718a6fd8 8199for ac_header in dlfcn.h
81ecdfbb
RW
8200do :
8201 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8202"
8203if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
718a6fd8 8204 cat >>confdefs.h <<_ACEOF
81ecdfbb 8205#define HAVE_DLFCN_H 1
718a6fd8
SE
8206_ACEOF
8207
8208fi
8209
8210done
8211
8212
8213
3725885a
RW
8214
8215
718a6fd8
SE
8216# Set options
8217
8218
8219
8220 enable_dlopen=no
8221
8222
8223 enable_win32_dll=no
8224
8225
81ecdfbb
RW
8226 # Check whether --enable-shared was given.
8227if test "${enable_shared+set}" = set; then :
8228 enableval=$enable_shared; p=${PACKAGE-default}
718a6fd8
SE
8229 case $enableval in
8230 yes) enable_shared=yes ;;
8231 no) enable_shared=no ;;
8232 *)
8233 enable_shared=no
8234 # Look at the argument we got. We use all the common list separators.
8235 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8236 for pkg in $enableval; do
8237 IFS="$lt_save_ifs"
8238 if test "X$pkg" = "X$p"; then
8239 enable_shared=yes
8240 fi
8241 done
8242 IFS="$lt_save_ifs"
8243 ;;
8244 esac
8245else
8246 enable_shared=yes
81ecdfbb
RW
8247fi
8248
718a6fd8
SE
8249
8250
8251
8252
8253
8254
8255
8256
81ecdfbb
RW
8257 # Check whether --enable-static was given.
8258if test "${enable_static+set}" = set; then :
8259 enableval=$enable_static; p=${PACKAGE-default}
718a6fd8
SE
8260 case $enableval in
8261 yes) enable_static=yes ;;
8262 no) enable_static=no ;;
8263 *)
8264 enable_static=no
8265 # Look at the argument we got. We use all the common list separators.
8266 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8267 for pkg in $enableval; do
8268 IFS="$lt_save_ifs"
8269 if test "X$pkg" = "X$p"; then
8270 enable_static=yes
8271 fi
8272 done
8273 IFS="$lt_save_ifs"
8274 ;;
8275 esac
8276else
8277 enable_static=yes
81ecdfbb
RW
8278fi
8279
718a6fd8
SE
8280
8281
d7040cdb 8282
d7040cdb 8283
718a6fd8
SE
8284
8285
8286
8287
8288
81ecdfbb
RW
8289# Check whether --with-pic was given.
8290if test "${with_pic+set}" = set; then :
8291 withval=$with_pic; pic_mode="$withval"
ce2cded5 8292else
718a6fd8 8293 pic_mode=default
81ecdfbb
RW
8294fi
8295
d7040cdb 8296
718a6fd8
SE
8297test -z "$pic_mode" && pic_mode=default
8298
8299
8300
8301
8302
8303
8304
81ecdfbb
RW
8305 # Check whether --enable-fast-install was given.
8306if test "${enable_fast_install+set}" = set; then :
8307 enableval=$enable_fast_install; p=${PACKAGE-default}
718a6fd8
SE
8308 case $enableval in
8309 yes) enable_fast_install=yes ;;
8310 no) enable_fast_install=no ;;
8311 *)
8312 enable_fast_install=no
8313 # Look at the argument we got. We use all the common list separators.
8314 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8315 for pkg in $enableval; do
8316 IFS="$lt_save_ifs"
8317 if test "X$pkg" = "X$p"; then
8318 enable_fast_install=yes
8319 fi
8320 done
8321 IFS="$lt_save_ifs"
8322 ;;
8323 esac
ce2cded5 8324else
718a6fd8 8325 enable_fast_install=yes
81ecdfbb
RW
8326fi
8327
718a6fd8
SE
8328
8329
8330
8331
d7040cdb 8332
d7040cdb 8333
d7040cdb 8334
d7040cdb 8335
d7040cdb 8336
d7040cdb 8337
ce2cded5
L
8338# This can be used to rebuild libtool when needed
8339LIBTOOL_DEPS="$ltmain"
d7040cdb 8340
ce2cded5
L
8341# Always use our own libtool.
8342LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d7040cdb 8343
d7040cdb 8344
d7040cdb 8345
d7040cdb
SE
8346
8347
8348
8349
8350
8351
d7040cdb 8352
d7040cdb 8353
ab509236 8354
ab509236 8355
d7040cdb
SE
8356
8357
8358
8359
8360
13b2be9c 8361
13b2be9c 8362
13b2be9c 8363
13b2be9c 8364
d7040cdb 8365
3725885a 8366
d7040cdb
SE
8367
8368
ce2cded5 8369test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
8370
8371
d7040cdb 8372
d7040cdb 8373
d7040cdb
SE
8374
8375
8376
8377
8378
8379
ce2cded5
L
8380
8381
8382
8383
8384if test -n "${ZSH_VERSION+set}" ; then
8385 setopt NO_GLOB_SUBST
8386fi
8387
81ecdfbb
RW
8388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8389$as_echo_n "checking for objdir... " >&6; }
8390if test "${lt_cv_objdir+set}" = set; then :
8391 $as_echo_n "(cached) " >&6
d7040cdb 8392else
ce2cded5
L
8393 rm -f .libs 2>/dev/null
8394mkdir .libs 2>/dev/null
8395if test -d .libs; then
8396 lt_cv_objdir=.libs
8397else
8398 # MS-DOS does not allow filenames that begin with a dot.
8399 lt_cv_objdir=_libs
d7040cdb 8400fi
ce2cded5
L
8401rmdir .libs 2>/dev/null
8402fi
81ecdfbb
RW
8403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8404$as_echo "$lt_cv_objdir" >&6; }
ce2cded5 8405objdir=$lt_cv_objdir
d7040cdb
SE
8406
8407
8408
8409
d7040cdb 8410
ce2cded5
L
8411cat >>confdefs.h <<_ACEOF
8412#define LT_OBJDIR "$lt_cv_objdir/"
8413_ACEOF
d7040cdb
SE
8414
8415
8416
8417
ce2cded5
L
8418case $host_os in
8419aix3*)
8420 # AIX sometimes has problems with the GCC collect2 program. For some
8421 # reason, if we set the COLLECT_NAMES environment variable, the problems
8422 # vanish in a puff of smoke.
8423 if test "X${COLLECT_NAMES+set}" != Xset; then
8424 COLLECT_NAMES=
8425 export COLLECT_NAMES
8426 fi
8427 ;;
8428esac
d7040cdb 8429
ce2cded5
L
8430# Global variables:
8431ofile=libtool
8432can_build_shared=yes
d7040cdb 8433
ce2cded5
L
8434# All known linkers require a `.a' archive for static linking (except MSVC,
8435# which needs '.lib').
8436libext=a
d7040cdb 8437
ce2cded5 8438with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 8439
ce2cded5
L
8440old_CC="$CC"
8441old_CFLAGS="$CFLAGS"
d7040cdb 8442
ce2cded5
L
8443# Set sane defaults for various variables
8444test -z "$CC" && CC=cc
8445test -z "$LTCC" && LTCC=$CC
8446test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8447test -z "$LD" && LD=ld
8448test -z "$ac_objext" && ac_objext=o
8449
8450for cc_temp in $compiler""; do
8451 case $cc_temp in
8452 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8453 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8454 \-*) ;;
8455 *) break;;
8456 esac
8457done
3725885a 8458cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
ce2cded5
L
8459
8460
8461# Only perform the check for file, if the check method requires it
8462test -z "$MAGIC_CMD" && MAGIC_CMD=file
8463case $deplibs_check_method in
8464file_magic*)
8465 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
81ecdfbb
RW
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8467$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8468if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8469 $as_echo_n "(cached) " >&6
ce2cded5
L
8470else
8471 case $MAGIC_CMD in
8472[\\/*] | ?:[\\/]*)
8473 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8474 ;;
8475*)
8476 lt_save_MAGIC_CMD="$MAGIC_CMD"
8477 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8478 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8479 for ac_dir in $ac_dummy; do
8480 IFS="$lt_save_ifs"
8481 test -z "$ac_dir" && ac_dir=.
8482 if test -f $ac_dir/${ac_tool_prefix}file; then
8483 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8484 if test -n "$file_magic_test_file"; then
8485 case $deplibs_check_method in
8486 "file_magic "*)
8487 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8488 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8489 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8490 $EGREP "$file_magic_regex" > /dev/null; then
8491 :
d7040cdb 8492 else
ce2cded5 8493 cat <<_LT_EOF 1>&2
d7040cdb 8494
ce2cded5
L
8495*** Warning: the command libtool uses to detect shared libraries,
8496*** $file_magic_cmd, produces output that libtool cannot recognize.
8497*** The result is that libtool may fail to recognize shared libraries
8498*** as such. This will affect the creation of libtool libraries that
8499*** depend on shared libraries, but programs linked with such libtool
8500*** libraries will work regardless of this problem. Nevertheless, you
8501*** may want to report the problem to your system manager and/or to
8502*** bug-libtool@gnu.org
d7040cdb 8503
ce2cded5
L
8504_LT_EOF
8505 fi ;;
8506 esac
d7040cdb 8507 fi
ce2cded5 8508 break
d7040cdb 8509 fi
ce2cded5
L
8510 done
8511 IFS="$lt_save_ifs"
8512 MAGIC_CMD="$lt_save_MAGIC_CMD"
8513 ;;
8514esac
8515fi
d7040cdb 8516
ce2cded5
L
8517MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8518if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8520$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 8521else
81ecdfbb
RW
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8523$as_echo "no" >&6; }
ce2cded5 8524fi
d7040cdb 8525
d7040cdb 8526
d7040cdb 8527
d7040cdb 8528
d7040cdb 8529
ce2cded5
L
8530if test -z "$lt_cv_path_MAGIC_CMD"; then
8531 if test -n "$ac_tool_prefix"; then
81ecdfbb
RW
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8533$as_echo_n "checking for file... " >&6; }
8534if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8535 $as_echo_n "(cached) " >&6
ce2cded5
L
8536else
8537 case $MAGIC_CMD in
8538[\\/*] | ?:[\\/]*)
8539 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8540 ;;
8541*)
8542 lt_save_MAGIC_CMD="$MAGIC_CMD"
8543 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8544 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8545 for ac_dir in $ac_dummy; do
8546 IFS="$lt_save_ifs"
8547 test -z "$ac_dir" && ac_dir=.
8548 if test -f $ac_dir/file; then
8549 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8550 if test -n "$file_magic_test_file"; then
8551 case $deplibs_check_method in
8552 "file_magic "*)
8553 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8554 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8555 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8556 $EGREP "$file_magic_regex" > /dev/null; then
8557 :
d7040cdb 8558 else
ce2cded5
L
8559 cat <<_LT_EOF 1>&2
8560
8561*** Warning: the command libtool uses to detect shared libraries,
8562*** $file_magic_cmd, produces output that libtool cannot recognize.
8563*** The result is that libtool may fail to recognize shared libraries
8564*** as such. This will affect the creation of libtool libraries that
8565*** depend on shared libraries, but programs linked with such libtool
8566*** libraries will work regardless of this problem. Nevertheless, you
8567*** may want to report the problem to your system manager and/or to
8568*** bug-libtool@gnu.org
8569
8570_LT_EOF
8571 fi ;;
d7040cdb 8572 esac
d7040cdb 8573 fi
ce2cded5
L
8574 break
8575 fi
8576 done
8577 IFS="$lt_save_ifs"
8578 MAGIC_CMD="$lt_save_MAGIC_CMD"
8579 ;;
8580esac
8581fi
d7040cdb 8582
ce2cded5
L
8583MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8584if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8586$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 8587else
81ecdfbb
RW
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8589$as_echo "no" >&6; }
ce2cded5 8590fi
d7040cdb 8591
d7040cdb 8592
ce2cded5
L
8593 else
8594 MAGIC_CMD=:
8595 fi
d7040cdb 8596fi
d7040cdb 8597
ce2cded5
L
8598 fi
8599 ;;
8600esac
d7040cdb 8601
ce2cded5 8602# Use C for the default configuration in the libtool script
d7040cdb 8603
ce2cded5
L
8604lt_save_CC="$CC"
8605ac_ext=c
8606ac_cpp='$CPP $CPPFLAGS'
8607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8609ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 8610
d7040cdb 8611
ce2cded5
L
8612# Source file extension for C test sources.
8613ac_ext=c
d7040cdb 8614
ce2cded5
L
8615# Object file extension for compiled C test sources.
8616objext=o
8617objext=$objext
d7040cdb 8618
ce2cded5
L
8619# Code to be used in simple compile tests
8620lt_simple_compile_test_code="int some_variable = 0;"
8621
8622# Code to be used in simple link tests
8623lt_simple_link_test_code='int main(){return(0);}'
8624
8625
8626
8627
8628
8629
8630
8631# If no C compiler was specified, use CC.
8632LTCC=${LTCC-"$CC"}
8633
8634# If no C compiler flags were specified, use CFLAGS.
8635LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8636
8637# Allow CC to be a program name with arguments.
8638compiler=$CC
8639
8640# Save the default compiler, since it gets overwritten when the other
8641# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8642compiler_DEFAULT=$CC
8643
8644# save warnings/boilerplate of simple test code
8645ac_outfile=conftest.$ac_objext
8646echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8647eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8648_lt_compiler_boilerplate=`cat conftest.err`
8649$RM conftest*
8650
8651ac_outfile=conftest.$ac_objext
8652echo "$lt_simple_link_test_code" >conftest.$ac_ext
8653eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8654_lt_linker_boilerplate=`cat conftest.err`
718a6fd8 8655$RM -r conftest*
ce2cded5
L
8656
8657
ce2cded5
L
8658if test -n "$compiler"; then
8659
8660lt_prog_compiler_no_builtin_flag=
8661
8662if test "$GCC" = yes; then
3725885a
RW
8663 case $cc_basename in
8664 nvcc*)
8665 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8666 *)
8667 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8668 esac
ce2cded5 8669
81ecdfbb
RW
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8671$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8672if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8673 $as_echo_n "(cached) " >&6
ce2cded5
L
8674else
8675 lt_cv_prog_compiler_rtti_exceptions=no
8676 ac_outfile=conftest.$ac_objext
8677 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8678 lt_compiler_flag="-fno-rtti -fno-exceptions"
8679 # Insert the option either (1) after the last *FLAGS variable, or
8680 # (2) before a word containing "conftest.", or (3) at the end.
8681 # Note that $ac_compile itself does not contain backslashes and begins
8682 # with a dollar sign (not a hyphen), so the echo should work correctly.
8683 # The option is referenced via a variable to avoid confusing sed.
8684 lt_compile=`echo "$ac_compile" | $SED \
8685 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8686 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8687 -e 's:$: $lt_compiler_flag:'`
3725885a 8688 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8689 (eval "$lt_compile" 2>conftest.err)
8690 ac_status=$?
8691 cat conftest.err >&5
3725885a 8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8693 if (exit $ac_status) && test -s "$ac_outfile"; then
8694 # The compiler can only warn and ignore the option if not recognized
8695 # So say no if there are warnings other than the usual output.
3725885a 8696 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
8697 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8698 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8699 lt_cv_prog_compiler_rtti_exceptions=yes
8700 fi
8701 fi
8702 $RM conftest*
8703
8704fi
81ecdfbb
RW
8705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8706$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
ce2cded5
L
8707
8708if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8709 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8710else
8711 :
8712fi
8713
8714fi
8715
8716
8717
8718
8719
8720
8721 lt_prog_compiler_wl=
8722lt_prog_compiler_pic=
8723lt_prog_compiler_static=
8724
ce2cded5
L
8725
8726 if test "$GCC" = yes; then
8727 lt_prog_compiler_wl='-Wl,'
8728 lt_prog_compiler_static='-static'
8729
8730 case $host_os in
8731 aix*)
8732 # All AIX code is PIC.
8733 if test "$host_cpu" = ia64; then
8734 # AIX 5 now supports IA64 processor
8735 lt_prog_compiler_static='-Bstatic'
8736 fi
8737 ;;
d7040cdb
SE
8738
8739 amigaos*)
718a6fd8
SE
8740 case $host_cpu in
8741 powerpc)
8742 # see comment about AmigaOS4 .so support
8743 lt_prog_compiler_pic='-fPIC'
8744 ;;
8745 m68k)
8746 # FIXME: we need at least 68020 code to build shared libraries, but
8747 # adding the `-m68020' flag to GCC prevents building anything better,
8748 # like `-m68040'.
8749 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8750 ;;
8751 esac
d7040cdb
SE
8752 ;;
8753
ce2cded5
L
8754 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8755 # PIC is the default for these OSes.
d7040cdb
SE
8756 ;;
8757
718a6fd8 8758 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8759 # This hack is so that the source file can tell whether it is being
8760 # built for inclusion in a dll (and should export symbols for example).
8761 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8762 # (--disable-auto-import) libraries
8763 lt_prog_compiler_pic='-DDLL_EXPORT'
d7040cdb
SE
8764 ;;
8765
8766 darwin* | rhapsody*)
ce2cded5
L
8767 # PIC is the default on this platform
8768 # Common symbols not allowed in MH_DYLIB files
8769 lt_prog_compiler_pic='-fno-common'
8770 ;;
8771
3725885a
RW
8772 haiku*)
8773 # PIC is the default for Haiku.
8774 # The "-static" flag exists, but is broken.
8775 lt_prog_compiler_static=
8776 ;;
8777
ce2cded5 8778 hpux*)
718a6fd8
SE
8779 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8780 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8781 # sets the default TLS model and affects inlining.
ce2cded5 8782 case $host_cpu in
718a6fd8 8783 hppa*64*)
ce2cded5 8784 # +Z the default
d7040cdb 8785 ;;
ce2cded5
L
8786 *)
8787 lt_prog_compiler_pic='-fPIC'
d7040cdb
SE
8788 ;;
8789 esac
ce2cded5 8790 ;;
d7040cdb 8791
ce2cded5
L
8792 interix[3-9]*)
8793 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8794 # Instead, we relocate shared libraries at runtime.
d7040cdb
SE
8795 ;;
8796
ce2cded5
L
8797 msdosdjgpp*)
8798 # Just because we use GCC doesn't mean we suddenly get shared libraries
8799 # on systems that don't support them.
8800 lt_prog_compiler_can_build_shared=no
8801 enable_shared=no
d7040cdb
SE
8802 ;;
8803
ce2cded5
L
8804 *nto* | *qnx*)
8805 # QNX uses GNU C++, but need to define -shared option too, otherwise
8806 # it will coredump.
8807 lt_prog_compiler_pic='-fPIC -shared'
d7040cdb
SE
8808 ;;
8809
ce2cded5
L
8810 sysv4*MP*)
8811 if test -d /usr/nec; then
8812 lt_prog_compiler_pic=-Kconform_pic
8813 fi
d7040cdb
SE
8814 ;;
8815
ce2cded5
L
8816 *)
8817 lt_prog_compiler_pic='-fPIC'
d7040cdb 8818 ;;
ce2cded5 8819 esac
3725885a
RW
8820
8821 case $cc_basename in
8822 nvcc*) # Cuda Compiler Driver 2.2
8823 lt_prog_compiler_wl='-Xlinker '
8824 lt_prog_compiler_pic='-Xcompiler -fPIC'
8825 ;;
8826 esac
ce2cded5
L
8827 else
8828 # PORTME Check for flag to pass linker flags through the system compiler.
8829 case $host_os in
8830 aix*)
8831 lt_prog_compiler_wl='-Wl,'
8832 if test "$host_cpu" = ia64; then
8833 # AIX 5 now supports IA64 processor
8834 lt_prog_compiler_static='-Bstatic'
d7040cdb 8835 else
ce2cded5 8836 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
d7040cdb 8837 fi
ce2cded5 8838 ;;
d7040cdb 8839
718a6fd8 8840 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8841 # This hack is so that the source file can tell whether it is being
8842 # built for inclusion in a dll (and should export symbols for example).
8843 lt_prog_compiler_pic='-DDLL_EXPORT'
d7040cdb
SE
8844 ;;
8845
ce2cded5
L
8846 hpux9* | hpux10* | hpux11*)
8847 lt_prog_compiler_wl='-Wl,'
8848 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8849 # not for PA HP-UX.
8850 case $host_cpu in
8851 hppa*64*|ia64*)
8852 # +Z the default
8853 ;;
8854 *)
8855 lt_prog_compiler_pic='+Z'
8856 ;;
8857 esac
8858 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8859 lt_prog_compiler_static='${wl}-a ${wl}archive'
d7040cdb
SE
8860 ;;
8861
ce2cded5
L
8862 irix5* | irix6* | nonstopux*)
8863 lt_prog_compiler_wl='-Wl,'
8864 # PIC (with -KPIC) is the default.
8865 lt_prog_compiler_static='-non_shared'
8866 ;;
d7040cdb 8867
58e24671 8868 linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5 8869 case $cc_basename in
718a6fd8
SE
8870 # old Intel for x86_64 which still supported -KPIC.
8871 ecc*)
ce2cded5
L
8872 lt_prog_compiler_wl='-Wl,'
8873 lt_prog_compiler_pic='-KPIC'
8874 lt_prog_compiler_static='-static'
8875 ;;
718a6fd8
SE
8876 # icc used to be incompatible with GCC.
8877 # ICC 10 doesn't accept -KPIC any more.
8878 icc* | ifort*)
8879 lt_prog_compiler_wl='-Wl,'
8880 lt_prog_compiler_pic='-fPIC'
8881 lt_prog_compiler_static='-static'
8882 ;;
8883 # Lahey Fortran 8.1.
8884 lf95*)
8885 lt_prog_compiler_wl='-Wl,'
8886 lt_prog_compiler_pic='--shared'
8887 lt_prog_compiler_static='--static'
8888 ;;
df7b86aa
NC
8889 nagfor*)
8890 # NAG Fortran compiler
8891 lt_prog_compiler_wl='-Wl,-Wl,,'
8892 lt_prog_compiler_pic='-PIC'
8893 lt_prog_compiler_static='-Bstatic'
8894 ;;
3725885a 8895 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
ce2cded5
L
8896 # Portland Group compilers (*not* the Pentium gcc compiler,
8897 # which looks to be a dead project)
8898 lt_prog_compiler_wl='-Wl,'
8899 lt_prog_compiler_pic='-fpic'
8900 lt_prog_compiler_static='-Bstatic'
8901 ;;
8902 ccc*)
8903 lt_prog_compiler_wl='-Wl,'
8904 # All Alpha code is PIC.
8905 lt_prog_compiler_static='-non_shared'
8906 ;;
3725885a
RW
8907 xl* | bgxl* | bgf* | mpixl*)
8908 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
718a6fd8
SE
8909 lt_prog_compiler_wl='-Wl,'
8910 lt_prog_compiler_pic='-qpic'
8911 lt_prog_compiler_static='-qstaticlink'
8912 ;;
ce2cded5
L
8913 *)
8914 case `$CC -V 2>&1 | sed 5q` in
3725885a
RW
8915 *Sun\ F* | *Sun*Fortran*)
8916 # Sun Fortran 8.3 passes all unrecognized flags to the linker
ce2cded5
L
8917 lt_prog_compiler_pic='-KPIC'
8918 lt_prog_compiler_static='-Bstatic'
3725885a 8919 lt_prog_compiler_wl=''
d7040cdb 8920 ;;
3725885a
RW
8921 *Sun\ C*)
8922 # Sun C 5.9
ce2cded5
L
8923 lt_prog_compiler_pic='-KPIC'
8924 lt_prog_compiler_static='-Bstatic'
3725885a 8925 lt_prog_compiler_wl='-Wl,'
d7040cdb
SE
8926 ;;
8927 esac
ce2cded5
L
8928 ;;
8929 esac
d7040cdb
SE
8930 ;;
8931
ce2cded5
L
8932 newsos6)
8933 lt_prog_compiler_pic='-KPIC'
8934 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8935 ;;
8936
ce2cded5
L
8937 *nto* | *qnx*)
8938 # QNX uses GNU C++, but need to define -shared option too, otherwise
8939 # it will coredump.
8940 lt_prog_compiler_pic='-fPIC -shared'
d7040cdb
SE
8941 ;;
8942
ce2cded5
L
8943 osf3* | osf4* | osf5*)
8944 lt_prog_compiler_wl='-Wl,'
8945 # All OSF/1 code is PIC.
8946 lt_prog_compiler_static='-non_shared'
d7040cdb
SE
8947 ;;
8948
ce2cded5
L
8949 rdos*)
8950 lt_prog_compiler_static='-non_shared'
d7040cdb
SE
8951 ;;
8952
8953 solaris*)
ce2cded5
L
8954 lt_prog_compiler_pic='-KPIC'
8955 lt_prog_compiler_static='-Bstatic'
8956 case $cc_basename in
df7b86aa 8957 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
ce2cded5 8958 lt_prog_compiler_wl='-Qoption ld ';;
d7040cdb 8959 *)
ce2cded5 8960 lt_prog_compiler_wl='-Wl,';;
d7040cdb 8961 esac
d7040cdb
SE
8962 ;;
8963
8964 sunos4*)
ce2cded5
L
8965 lt_prog_compiler_wl='-Qoption ld '
8966 lt_prog_compiler_pic='-PIC'
8967 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8968 ;;
8969
ce2cded5
L
8970 sysv4 | sysv4.2uw2* | sysv4.3*)
8971 lt_prog_compiler_wl='-Wl,'
8972 lt_prog_compiler_pic='-KPIC'
8973 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8974 ;;
8975
8976 sysv4*MP*)
ce2cded5
L
8977 if test -d /usr/nec ;then
8978 lt_prog_compiler_pic='-Kconform_pic'
8979 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8980 fi
8981 ;;
8982
ce2cded5
L
8983 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8984 lt_prog_compiler_wl='-Wl,'
8985 lt_prog_compiler_pic='-KPIC'
8986 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8987 ;;
8988
ce2cded5
L
8989 unicos*)
8990 lt_prog_compiler_wl='-Wl,'
8991 lt_prog_compiler_can_build_shared=no
d7040cdb
SE
8992 ;;
8993
8994 uts4*)
ce2cded5
L
8995 lt_prog_compiler_pic='-pic'
8996 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8997 ;;
8998
8999 *)
ce2cded5 9000 lt_prog_compiler_can_build_shared=no
d7040cdb
SE
9001 ;;
9002 esac
d7040cdb
SE
9003 fi
9004
ce2cded5
L
9005case $host_os in
9006 # For platforms which do not support PIC, -DPIC is meaningless:
9007 *djgpp*)
9008 lt_prog_compiler_pic=
9009 ;;
9010 *)
9011 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9012 ;;
9013esac
d7040cdb 9014
df7b86aa
NC
9015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9016$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9017if test "${lt_cv_prog_compiler_pic+set}" = set; then :
9018 $as_echo_n "(cached) " >&6
9019else
9020 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9021fi
9022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9023$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9024lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
d7040cdb
SE
9025
9026#
ce2cded5 9027# Check to make sure the PIC flag actually works.
d7040cdb 9028#
ce2cded5 9029if test -n "$lt_prog_compiler_pic"; then
81ecdfbb
RW
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9031$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9032if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9033 $as_echo_n "(cached) " >&6
ce2cded5 9034else
718a6fd8 9035 lt_cv_prog_compiler_pic_works=no
ce2cded5
L
9036 ac_outfile=conftest.$ac_objext
9037 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9038 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9039 # Insert the option either (1) after the last *FLAGS variable, or
9040 # (2) before a word containing "conftest.", or (3) at the end.
9041 # Note that $ac_compile itself does not contain backslashes and begins
9042 # with a dollar sign (not a hyphen), so the echo should work correctly.
9043 # The option is referenced via a variable to avoid confusing sed.
9044 lt_compile=`echo "$ac_compile" | $SED \
9045 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9046 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9047 -e 's:$: $lt_compiler_flag:'`
3725885a 9048 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9049 (eval "$lt_compile" 2>conftest.err)
9050 ac_status=$?
9051 cat conftest.err >&5
3725885a 9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9053 if (exit $ac_status) && test -s "$ac_outfile"; then
9054 # The compiler can only warn and ignore the option if not recognized
9055 # So say no if there are warnings other than the usual output.
3725885a 9056 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
9057 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9058 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 9059 lt_cv_prog_compiler_pic_works=yes
ce2cded5
L
9060 fi
9061 fi
9062 $RM conftest*
d7040cdb 9063
ce2cded5 9064fi
81ecdfbb
RW
9065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9066$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
d7040cdb 9067
718a6fd8 9068if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
ce2cded5
L
9069 case $lt_prog_compiler_pic in
9070 "" | " "*) ;;
9071 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9072 esac
9073else
9074 lt_prog_compiler_pic=
9075 lt_prog_compiler_can_build_shared=no
9076fi
d7040cdb 9077
ce2cded5 9078fi
d7040cdb
SE
9079
9080
9081
9082
9083
9084
df7b86aa
NC
9085
9086
9087
9088
9089
ce2cded5
L
9090#
9091# Check to make sure the static flag actually works.
9092#
9093wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
81ecdfbb
RW
9094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9095$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9096if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9097 $as_echo_n "(cached) " >&6
ce2cded5 9098else
718a6fd8 9099 lt_cv_prog_compiler_static_works=no
ce2cded5
L
9100 save_LDFLAGS="$LDFLAGS"
9101 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9102 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9103 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9104 # The linker can only warn and ignore the option if not recognized
9105 # So say no if there are warnings
9106 if test -s conftest.err; then
9107 # Append any errors to the config.log.
9108 cat conftest.err 1>&5
3725885a 9109 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
ce2cded5
L
9110 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9111 if diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 9112 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
9113 fi
9114 else
718a6fd8 9115 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
9116 fi
9117 fi
718a6fd8 9118 $RM -r conftest*
ce2cded5 9119 LDFLAGS="$save_LDFLAGS"
d7040cdb 9120
ce2cded5 9121fi
81ecdfbb
RW
9122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9123$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d7040cdb 9124
718a6fd8 9125if test x"$lt_cv_prog_compiler_static_works" = xyes; then
ce2cded5
L
9126 :
9127else
9128 lt_prog_compiler_static=
9129fi
d7040cdb
SE
9130
9131
9132
9133
9134
9135
9136
81ecdfbb
RW
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9138$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9139if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9140 $as_echo_n "(cached) " >&6
ce2cded5
L
9141else
9142 lt_cv_prog_compiler_c_o=no
9143 $RM -r conftest 2>/dev/null
9144 mkdir conftest
9145 cd conftest
9146 mkdir out
9147 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9148
ce2cded5
L
9149 lt_compiler_flag="-o out/conftest2.$ac_objext"
9150 # Insert the option either (1) after the last *FLAGS variable, or
9151 # (2) before a word containing "conftest.", or (3) at the end.
9152 # Note that $ac_compile itself does not contain backslashes and begins
9153 # with a dollar sign (not a hyphen), so the echo should work correctly.
9154 lt_compile=`echo "$ac_compile" | $SED \
9155 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9156 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9157 -e 's:$: $lt_compiler_flag:'`
3725885a 9158 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9159 (eval "$lt_compile" 2>out/conftest.err)
9160 ac_status=$?
9161 cat out/conftest.err >&5
3725885a 9162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9163 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9164 then
9165 # The compiler can only warn and ignore the option if not recognized
9166 # So say no if there are warnings
3725885a 9167 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
9168 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9169 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9170 lt_cv_prog_compiler_c_o=yes
9171 fi
9172 fi
9173 chmod u+w . 2>&5
9174 $RM conftest*
9175 # SGI C++ compiler will create directory out/ii_files/ for
9176 # template instantiation
9177 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9178 $RM out/* && rmdir out
9179 cd ..
9180 $RM -r conftest
9181 $RM conftest*
d7040cdb 9182
ce2cded5 9183fi
81ecdfbb
RW
9184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9185$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
9186
9187
9188
9189
9190
9191
81ecdfbb
RW
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9193$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9194if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9195 $as_echo_n "(cached) " >&6
ce2cded5
L
9196else
9197 lt_cv_prog_compiler_c_o=no
9198 $RM -r conftest 2>/dev/null
9199 mkdir conftest
9200 cd conftest
9201 mkdir out
9202 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9203
ce2cded5
L
9204 lt_compiler_flag="-o out/conftest2.$ac_objext"
9205 # Insert the option either (1) after the last *FLAGS variable, or
9206 # (2) before a word containing "conftest.", or (3) at the end.
9207 # Note that $ac_compile itself does not contain backslashes and begins
9208 # with a dollar sign (not a hyphen), so the echo should work correctly.
9209 lt_compile=`echo "$ac_compile" | $SED \
9210 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9211 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9212 -e 's:$: $lt_compiler_flag:'`
3725885a 9213 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9214 (eval "$lt_compile" 2>out/conftest.err)
9215 ac_status=$?
9216 cat out/conftest.err >&5
3725885a 9217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9218 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9219 then
9220 # The compiler can only warn and ignore the option if not recognized
9221 # So say no if there are warnings
3725885a 9222 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
9223 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9224 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9225 lt_cv_prog_compiler_c_o=yes
9226 fi
9227 fi
9228 chmod u+w . 2>&5
9229 $RM conftest*
9230 # SGI C++ compiler will create directory out/ii_files/ for
9231 # template instantiation
9232 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9233 $RM out/* && rmdir out
9234 cd ..
9235 $RM -r conftest
9236 $RM conftest*
d7040cdb 9237
ce2cded5 9238fi
81ecdfbb
RW
9239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9240$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
9241
9242
9243
9244
ce2cded5
L
9245hard_links="nottested"
9246if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9247 # do not overwrite the value of need_locks provided by the user
81ecdfbb
RW
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9249$as_echo_n "checking if we can lock with hard links... " >&6; }
ce2cded5
L
9250 hard_links=yes
9251 $RM conftest*
9252 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9253 touch conftest.a
9254 ln conftest.a conftest.b 2>&5 || hard_links=no
9255 ln conftest.a conftest.b 2>/dev/null && hard_links=no
81ecdfbb
RW
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9257$as_echo "$hard_links" >&6; }
ce2cded5 9258 if test "$hard_links" = no; then
81ecdfbb
RW
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9260$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
ce2cded5
L
9261 need_locks=warn
9262 fi
9263else
9264 need_locks=no
9265fi
d7040cdb
SE
9266
9267
9268
9269
9270
9271
81ecdfbb
RW
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9273$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d7040cdb 9274
ce2cded5
L
9275 runpath_var=
9276 allow_undefined_flag=
9277 always_export_symbols=no
9278 archive_cmds=
9279 archive_expsym_cmds=
9280 compiler_needs_object=no
9281 enable_shared_with_static_runtimes=no
9282 export_dynamic_flag_spec=
9283 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9284 hardcode_automatic=no
9285 hardcode_direct=no
9286 hardcode_direct_absolute=no
9287 hardcode_libdir_flag_spec=
9288 hardcode_libdir_flag_spec_ld=
9289 hardcode_libdir_separator=
9290 hardcode_minus_L=no
9291 hardcode_shlibpath_var=unsupported
9292 inherit_rpath=no
9293 link_all_deplibs=unknown
9294 module_cmds=
9295 module_expsym_cmds=
9296 old_archive_from_new_cmds=
9297 old_archive_from_expsyms_cmds=
9298 thread_safe_flag_spec=
9299 whole_archive_flag_spec=
9300 # include_expsyms should be a list of space-separated symbols to be *always*
9301 # included in the symbol list
9302 include_expsyms=
9303 # exclude_expsyms can be an extended regexp of symbols to exclude
9304 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9305 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9306 # as well as any symbol that contains `d'.
718a6fd8 9307 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
ce2cded5
L
9308 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9309 # platforms (ab)use it in PIC code, but their linkers get confused if
9310 # the symbol is explicitly referenced. Since portable code cannot
9311 # rely on this symbol name, it's probably fine to never include it in
9312 # preloaded symbol tables.
718a6fd8 9313 # Exclude shared library initialization/finalization symbols.
ce2cded5 9314 extract_expsyms_cmds=
d7040cdb 9315
ce2cded5 9316 case $host_os in
718a6fd8 9317 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9318 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9319 # When not using gcc, we currently assume that we are using
9320 # Microsoft Visual C++.
9321 if test "$GCC" != yes; then
9322 with_gnu_ld=no
9323 fi
9324 ;;
9325 interix*)
9326 # we just hope/assume this is gcc and not c89 (= MSVC++)
9327 with_gnu_ld=yes
9328 ;;
9329 openbsd*)
9330 with_gnu_ld=no
9331 ;;
9332 esac
d7040cdb 9333
ce2cded5 9334 ld_shlibs=yes
3725885a
RW
9335
9336 # On some targets, GNU ld is compatible enough with the native linker
9337 # that we're better off using the native interface for both.
9338 lt_use_gnu_ld_interface=no
ce2cded5 9339 if test "$with_gnu_ld" = yes; then
3725885a
RW
9340 case $host_os in
9341 aix*)
9342 # The AIX port of GNU ld has always aspired to compatibility
9343 # with the native linker. However, as the warning in the GNU ld
9344 # block says, versions before 2.19.5* couldn't really create working
9345 # shared libraries, regardless of the interface used.
9346 case `$LD -v 2>&1` in
9347 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9348 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9349 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9350 *)
9351 lt_use_gnu_ld_interface=yes
9352 ;;
9353 esac
9354 ;;
9355 *)
9356 lt_use_gnu_ld_interface=yes
9357 ;;
9358 esac
9359 fi
9360
9361 if test "$lt_use_gnu_ld_interface" = yes; then
ce2cded5
L
9362 # If archive_cmds runs LD, not CC, wlarc should be empty
9363 wlarc='${wl}'
d7040cdb 9364
ce2cded5
L
9365 # Set some defaults for GNU ld with shared library support. These
9366 # are reset later if shared libraries are not supported. Putting them
9367 # here allows them to be overridden if necessary.
9368 runpath_var=LD_RUN_PATH
9369 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9370 export_dynamic_flag_spec='${wl}--export-dynamic'
9371 # ancient GNU ld didn't support --whole-archive et. al.
9372 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9373 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9374 else
9375 whole_archive_flag_spec=
9376 fi
9377 supports_anon_versioning=no
9378 case `$LD -v 2>&1` in
3725885a 9379 *GNU\ gold*) supports_anon_versioning=yes ;;
ce2cded5
L
9380 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9381 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9382 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9383 *\ 2.11.*) ;; # other 2.11 versions
9384 *) supports_anon_versioning=yes ;;
9385 esac
d7040cdb 9386
ce2cded5
L
9387 # See if GNU ld supports shared libraries.
9388 case $host_os in
50e7d84b 9389 aix[3-9]*)
ce2cded5
L
9390 # On AIX/PPC, the GNU linker is very broken
9391 if test "$host_cpu" != ia64; then
9392 ld_shlibs=no
9393 cat <<_LT_EOF 1>&2
d7040cdb 9394
3725885a 9395*** Warning: the GNU linker, at least up to release 2.19, is reported
ce2cded5
L
9396*** to be unable to reliably create shared libraries on AIX.
9397*** Therefore, libtool is disabling shared libraries support. If you
3725885a
RW
9398*** really care for shared libraries, you may want to install binutils
9399*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9400*** You will then need to restart the configuration process.
d7040cdb 9401
ce2cded5
L
9402_LT_EOF
9403 fi
9404 ;;
d7040cdb 9405
ce2cded5 9406 amigaos*)
718a6fd8
SE
9407 case $host_cpu in
9408 powerpc)
9409 # see comment about AmigaOS4 .so support
9410 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9411 archive_expsym_cmds=''
9412 ;;
9413 m68k)
9414 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)'
9415 hardcode_libdir_flag_spec='-L$libdir'
9416 hardcode_minus_L=yes
9417 ;;
9418 esac
ce2cded5 9419 ;;
d7040cdb 9420
ce2cded5
L
9421 beos*)
9422 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9423 allow_undefined_flag=unsupported
9424 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9425 # support --undefined. This deserves some investigation. FIXME
9426 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9427 else
9428 ld_shlibs=no
9429 fi
9430 ;;
d7040cdb 9431
718a6fd8 9432 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9433 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9434 # as there is no search path for DLLs.
9435 hardcode_libdir_flag_spec='-L$libdir'
3725885a 9436 export_dynamic_flag_spec='${wl}--export-all-symbols'
ce2cded5
L
9437 allow_undefined_flag=unsupported
9438 always_export_symbols=no
9439 enable_shared_with_static_runtimes=yes
df7b86aa
NC
9440 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9441 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
d7040cdb 9442
ce2cded5
L
9443 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9444 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9445 # If the export-symbols file already is a .def file (1st line
9446 # is EXPORTS), use it as is; otherwise, prepend...
9447 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9448 cp $export_symbols $output_objdir/$soname.def;
9449 else
9450 echo EXPORTS > $output_objdir/$soname.def;
9451 cat $export_symbols >> $output_objdir/$soname.def;
9452 fi~
9453 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9454 else
9455 ld_shlibs=no
9456 fi
9457 ;;
d7040cdb 9458
3725885a
RW
9459 haiku*)
9460 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9461 link_all_deplibs=yes
9462 ;;
9463
ce2cded5
L
9464 interix[3-9]*)
9465 hardcode_direct=no
9466 hardcode_shlibpath_var=no
9467 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9468 export_dynamic_flag_spec='${wl}-E'
9469 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9470 # Instead, shared libraries are loaded at an image base (0x10000000 by
9471 # default) and relocated if they conflict, which is a slow very memory
9472 # consuming and fragmenting process. To avoid this, we pick a random,
9473 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9474 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9475 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9476 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'
9477 ;;
d7040cdb 9478
58e24671 9479 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
9480 tmp_diet=no
9481 if test "$host_os" = linux-dietlibc; then
9482 case $cc_basename in
9483 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9484 esac
9485 fi
9486 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9487 && test "$tmp_diet" = no
9488 then
df7b86aa 9489 tmp_addflag=' $pic_flag'
718a6fd8 9490 tmp_sharedflag='-shared'
ce2cded5
L
9491 case $cc_basename,$host_cpu in
9492 pgcc*) # Portland Group C compiler
3725885a 9493 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
9494 tmp_addflag=' $pic_flag'
9495 ;;
3725885a
RW
9496 pgf77* | pgf90* | pgf95* | pgfortran*)
9497 # Portland Group f77 and f90 compilers
9498 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
9499 tmp_addflag=' $pic_flag -Mnomain' ;;
9500 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9501 tmp_addflag=' -i_dynamic' ;;
9502 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9503 tmp_addflag=' -i_dynamic -nofor_main' ;;
9504 ifc* | ifort*) # Intel Fortran compiler
9505 tmp_addflag=' -nofor_main' ;;
718a6fd8
SE
9506 lf95*) # Lahey Fortran 8.1
9507 whole_archive_flag_spec=
9508 tmp_sharedflag='--shared' ;;
3725885a 9509 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
718a6fd8
SE
9510 tmp_sharedflag='-qmkshrobj'
9511 tmp_addflag= ;;
3725885a
RW
9512 nvcc*) # Cuda Compiler Driver 2.2
9513 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'
9514 compiler_needs_object=yes
9515 ;;
ce2cded5
L
9516 esac
9517 case `$CC -V 2>&1 | sed 5q` in
9518 *Sun\ C*) # Sun C 5.9
3725885a 9519 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
9520 compiler_needs_object=yes
9521 tmp_sharedflag='-G' ;;
9522 *Sun\ F*) # Sun Fortran 8.3
9523 tmp_sharedflag='-G' ;;
ce2cded5
L
9524 esac
9525 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 9526
ce2cded5
L
9527 if test "x$supports_anon_versioning" = xyes; then
9528 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9529 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9530 echo "local: *; };" >> $output_objdir/$libname.ver~
9531 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9532 fi
718a6fd8
SE
9533
9534 case $cc_basename in
3725885a 9535 xlf* | bgf* | bgxlf* | mpixlf*)
718a6fd8
SE
9536 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9537 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9538 hardcode_libdir_flag_spec=
9539 hardcode_libdir_flag_spec_ld='-rpath $libdir'
df7b86aa 9540 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
718a6fd8
SE
9541 if test "x$supports_anon_versioning" = xyes; then
9542 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9543 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9544 echo "local: *; };" >> $output_objdir/$libname.ver~
df7b86aa 9545 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
718a6fd8
SE
9546 fi
9547 ;;
9548 esac
ce2cded5
L
9549 else
9550 ld_shlibs=no
9551 fi
9552 ;;
d7040cdb 9553
ce2cded5
L
9554 netbsd*)
9555 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9556 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9557 wlarc=
9558 else
df7b86aa
NC
9559 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9560 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
ce2cded5
L
9561 fi
9562 ;;
d7040cdb 9563
ce2cded5
L
9564 solaris*)
9565 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9566 ld_shlibs=no
9567 cat <<_LT_EOF 1>&2
d7040cdb 9568
ce2cded5
L
9569*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9570*** create shared libraries on Solaris systems. Therefore, libtool
9571*** is disabling shared libraries support. We urge you to upgrade GNU
9572*** binutils to release 2.9.1 or newer. Another option is to modify
9573*** your PATH or compiler configuration so that the native linker is
9574*** used, and then restart.
d7040cdb 9575
ce2cded5
L
9576_LT_EOF
9577 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
df7b86aa
NC
9578 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9579 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
ce2cded5
L
9580 else
9581 ld_shlibs=no
9582 fi
9583 ;;
d7040cdb 9584
ce2cded5
L
9585 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9586 case `$LD -v 2>&1` in
9587 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9588 ld_shlibs=no
9589 cat <<_LT_EOF 1>&2
d7040cdb 9590
ce2cded5
L
9591*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9592*** reliably create shared libraries on SCO systems. Therefore, libtool
9593*** is disabling shared libraries support. We urge you to upgrade GNU
9594*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9595*** your PATH or compiler configuration so that the native linker is
9596*** used, and then restart.
d7040cdb 9597
ce2cded5
L
9598_LT_EOF
9599 ;;
9600 *)
9601 # For security reasons, it is highly recommended that you always
9602 # use absolute paths for naming shared libraries, and exclude the
9603 # DT_RUNPATH tag from executables and libraries. But doing so
9604 # requires that you compile everything twice, which is a pain.
9605 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9606 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9607 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9608 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9609 else
9610 ld_shlibs=no
9611 fi
9612 ;;
9613 esac
9614 ;;
d7040cdb 9615
ce2cded5
L
9616 sunos4*)
9617 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9618 wlarc=
9619 hardcode_direct=yes
9620 hardcode_shlibpath_var=no
9621 ;;
d7040cdb 9622
ce2cded5
L
9623 *)
9624 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
df7b86aa
NC
9625 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9626 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
ce2cded5
L
9627 else
9628 ld_shlibs=no
9629 fi
9630 ;;
9631 esac
d7040cdb 9632
ce2cded5
L
9633 if test "$ld_shlibs" = no; then
9634 runpath_var=
9635 hardcode_libdir_flag_spec=
9636 export_dynamic_flag_spec=
9637 whole_archive_flag_spec=
9638 fi
9639 else
9640 # PORTME fill in a description of your system's linker (not GNU ld)
9641 case $host_os in
9642 aix3*)
9643 allow_undefined_flag=unsupported
9644 always_export_symbols=yes
9645 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'
9646 # Note: this linker hardcodes the directories in LIBPATH if there
9647 # are no directories specified by -L.
9648 hardcode_minus_L=yes
9649 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9650 # Neither direct hardcoding nor static linking is supported with a
9651 # broken collect2.
9652 hardcode_direct=unsupported
9653 fi
9654 ;;
d7040cdb 9655
50e7d84b 9656 aix[4-9]*)
ce2cded5
L
9657 if test "$host_cpu" = ia64; then
9658 # On IA64, the linker does run time linking by default, so we don't
9659 # have to do anything special.
9660 aix_use_runtimelinking=no
9661 exp_sym_flag='-Bexport'
9662 no_entry_flag=""
9663 else
9664 # If we're using GNU nm, then we don't want the "-C" option.
9665 # -C means demangle to AIX nm, but means don't demangle with GNU nm
3725885a
RW
9666 # Also, AIX nm treats weak defined symbols like other global
9667 # defined symbols, whereas GNU nm marks them as "W".
ce2cded5 9668 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
3725885a 9669 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
9670 else
9671 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'
9672 fi
9673 aix_use_runtimelinking=no
d7040cdb 9674
ce2cded5
L
9675 # Test if we are trying to use run time linking or normal
9676 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9677 # need to do runtime linking.
50e7d84b 9678 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
ce2cded5
L
9679 for ld_flag in $LDFLAGS; do
9680 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9681 aix_use_runtimelinking=yes
9682 break
9683 fi
9684 done
9685 ;;
9686 esac
d7040cdb 9687
ce2cded5
L
9688 exp_sym_flag='-bexport'
9689 no_entry_flag='-bnoentry'
9690 fi
d7040cdb 9691
ce2cded5
L
9692 # When large executables or shared objects are built, AIX ld can
9693 # have problems creating the table of contents. If linking a library
9694 # or program results in "error TOC overflow" add -mminimal-toc to
9695 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9696 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
d7040cdb 9697
ce2cded5
L
9698 archive_cmds=''
9699 hardcode_direct=yes
9700 hardcode_direct_absolute=yes
9701 hardcode_libdir_separator=':'
9702 link_all_deplibs=yes
9703 file_list_spec='${wl}-f,'
d7040cdb 9704
ce2cded5
L
9705 if test "$GCC" = yes; then
9706 case $host_os in aix4.[012]|aix4.[012].*)
9707 # We only want to do this on AIX 4.2 and lower, the check
9708 # below for broken collect2 doesn't work under 4.3+
9709 collect2name=`${CC} -print-prog-name=collect2`
9710 if test -f "$collect2name" &&
9711 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9712 then
9713 # We have reworked collect2
9714 :
9715 else
9716 # We have old collect2
9717 hardcode_direct=unsupported
9718 # It fails to find uninstalled libraries when the uninstalled
9719 # path is not listed in the libpath. Setting hardcode_minus_L
9720 # to unsupported forces relinking
9721 hardcode_minus_L=yes
9722 hardcode_libdir_flag_spec='-L$libdir'
9723 hardcode_libdir_separator=
9724 fi
9725 ;;
9726 esac
9727 shared_flag='-shared'
9728 if test "$aix_use_runtimelinking" = yes; then
9729 shared_flag="$shared_flag "'${wl}-G'
9730 fi
9731 else
9732 # not using gcc
9733 if test "$host_cpu" = ia64; then
9734 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9735 # chokes on -Wl,-G. The following line is correct:
9736 shared_flag='-G'
9737 else
9738 if test "$aix_use_runtimelinking" = yes; then
9739 shared_flag='${wl}-G'
9740 else
9741 shared_flag='${wl}-bM:SRE'
9742 fi
9743 fi
9744 fi
d7040cdb 9745
718a6fd8 9746 export_dynamic_flag_spec='${wl}-bexpall'
ce2cded5
L
9747 # It seems that -bexpall does not export symbols beginning with
9748 # underscore (_), so it is better to generate a list of symbols to export.
9749 always_export_symbols=yes
9750 if test "$aix_use_runtimelinking" = yes; then
9751 # Warning - without using the other runtime loading flags (-brtl),
9752 # -berok will link without error, but may produce a broken library.
9753 allow_undefined_flag='-berok'
9754 # Determine the default libpath from the value encoded in an
9755 # empty executable.
df7b86aa
NC
9756 if test "${lt_cv_aix_libpath+set}" = set; then
9757 aix_libpath=$lt_cv_aix_libpath
9758else
9759 if test "${lt_cv_aix_libpath_+set}" = set; then :
9760 $as_echo_n "(cached) " >&6
9761else
9762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 9763/* end confdefs.h. */
d7040cdb 9764
ce2cded5
L
9765int
9766main ()
9767{
d7040cdb 9768
ce2cded5
L
9769 ;
9770 return 0;
9771}
9772_ACEOF
81ecdfbb 9773if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9774
df7b86aa
NC
9775 lt_aix_libpath_sed='
9776 /Import File Strings/,/^$/ {
9777 /^0/ {
9778 s/^0 *\([^ ]*\) *$/\1/
9779 p
9780 }
9781 }'
9782 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9783 # Check for a 64-bit object if we didn't find anything.
9784 if test -z "$lt_cv_aix_libpath_"; then
9785 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9786 fi
ce2cded5 9787fi
81ecdfbb
RW
9788rm -f core conftest.err conftest.$ac_objext \
9789 conftest$ac_exeext conftest.$ac_ext
df7b86aa
NC
9790 if test -z "$lt_cv_aix_libpath_"; then
9791 lt_cv_aix_libpath_="/usr/lib:/lib"
9792 fi
9793
9794fi
9795
9796 aix_libpath=$lt_cv_aix_libpath_
9797fi
d7040cdb 9798
ce2cded5 9799 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
3725885a 9800 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
9801 else
9802 if test "$host_cpu" = ia64; then
9803 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9804 allow_undefined_flag="-z nodefs"
9805 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"
9806 else
9807 # Determine the default libpath from the value encoded in an
9808 # empty executable.
df7b86aa
NC
9809 if test "${lt_cv_aix_libpath+set}" = set; then
9810 aix_libpath=$lt_cv_aix_libpath
9811else
9812 if test "${lt_cv_aix_libpath_+set}" = set; then :
9813 $as_echo_n "(cached) " >&6
9814else
9815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 9816/* end confdefs.h. */
d7040cdb 9817
ce2cded5
L
9818int
9819main ()
9820{
d7040cdb 9821
ce2cded5
L
9822 ;
9823 return 0;
9824}
9825_ACEOF
81ecdfbb 9826if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9827
df7b86aa
NC
9828 lt_aix_libpath_sed='
9829 /Import File Strings/,/^$/ {
9830 /^0/ {
9831 s/^0 *\([^ ]*\) *$/\1/
9832 p
9833 }
9834 }'
9835 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9836 # Check for a 64-bit object if we didn't find anything.
9837 if test -z "$lt_cv_aix_libpath_"; then
9838 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9839 fi
ce2cded5 9840fi
81ecdfbb
RW
9841rm -f core conftest.err conftest.$ac_objext \
9842 conftest$ac_exeext conftest.$ac_ext
df7b86aa
NC
9843 if test -z "$lt_cv_aix_libpath_"; then
9844 lt_cv_aix_libpath_="/usr/lib:/lib"
9845 fi
9846
9847fi
9848
9849 aix_libpath=$lt_cv_aix_libpath_
9850fi
d7040cdb 9851
ce2cded5
L
9852 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9853 # Warning - without using the other run time loading flags,
9854 # -berok will link without error, but may produce a broken library.
9855 no_undefined_flag=' ${wl}-bernotok'
9856 allow_undefined_flag=' ${wl}-berok'
3725885a
RW
9857 if test "$with_gnu_ld" = yes; then
9858 # We only use this code for GNU lds that support --whole-archive.
9859 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9860 else
9861 # Exported symbols can be pulled into shared objects from archives
9862 whole_archive_flag_spec='$convenience'
9863 fi
ce2cded5
L
9864 archive_cmds_need_lc=yes
9865 # This is similar to how AIX traditionally builds its shared libraries.
9866 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'
9867 fi
9868 fi
9869 ;;
d7040cdb 9870
ce2cded5 9871 amigaos*)
718a6fd8
SE
9872 case $host_cpu in
9873 powerpc)
9874 # see comment about AmigaOS4 .so support
9875 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9876 archive_expsym_cmds=''
9877 ;;
9878 m68k)
9879 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)'
9880 hardcode_libdir_flag_spec='-L$libdir'
9881 hardcode_minus_L=yes
9882 ;;
9883 esac
ce2cded5 9884 ;;
d7040cdb 9885
ce2cded5
L
9886 bsdi[45]*)
9887 export_dynamic_flag_spec=-rdynamic
9888 ;;
d7040cdb 9889
718a6fd8 9890 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9891 # When not using gcc, we currently assume that we are using
9892 # Microsoft Visual C++.
9893 # hardcode_libdir_flag_spec is actually meaningless, as there is
9894 # no search path for DLLs.
df7b86aa
NC
9895 case $cc_basename in
9896 cl*)
9897 # Native MSVC
9898 hardcode_libdir_flag_spec=' '
9899 allow_undefined_flag=unsupported
9900 always_export_symbols=yes
9901 file_list_spec='@'
9902 # Tell ltmain to make .lib files, not .a files.
9903 libext=lib
9904 # Tell ltmain to make .dll files, not .so files.
9905 shrext_cmds=".dll"
9906 # FIXME: Setting linknames here is a bad hack.
9907 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9908 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9909 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9910 else
9911 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9912 fi~
9913 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9914 linknames='
9915 # The linker will not automatically build a static lib if we build a DLL.
9916 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9917 enable_shared_with_static_runtimes=yes
9918 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9919 # Don't use ranlib
9920 old_postinstall_cmds='chmod 644 $oldlib'
9921 postlink_cmds='lt_outputfile="@OUTPUT@"~
9922 lt_tool_outputfile="@TOOL_OUTPUT@"~
9923 case $lt_outputfile in
9924 *.exe|*.EXE) ;;
9925 *)
9926 lt_outputfile="$lt_outputfile.exe"
9927 lt_tool_outputfile="$lt_tool_outputfile.exe"
9928 ;;
9929 esac~
9930 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9931 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9932 $RM "$lt_outputfile.manifest";
9933 fi'
9934 ;;
9935 *)
9936 # Assume MSVC wrapper
9937 hardcode_libdir_flag_spec=' '
9938 allow_undefined_flag=unsupported
9939 # Tell ltmain to make .lib files, not .a files.
9940 libext=lib
9941 # Tell ltmain to make .dll files, not .so files.
9942 shrext_cmds=".dll"
9943 # FIXME: Setting linknames here is a bad hack.
9944 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9945 # The linker will automatically build a .lib file if we build a DLL.
9946 old_archive_from_new_cmds='true'
9947 # FIXME: Should let the user specify the lib program.
9948 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9949 enable_shared_with_static_runtimes=yes
9950 ;;
9951 esac
ce2cded5 9952 ;;
d7040cdb 9953
ce2cded5 9954 darwin* | rhapsody*)
d7040cdb 9955
718a6fd8
SE
9956
9957 archive_cmds_need_lc=no
9958 hardcode_direct=no
9959 hardcode_automatic=yes
9960 hardcode_shlibpath_var=unsupported
3725885a
RW
9961 if test "$lt_cv_ld_force_load" = "yes"; then
9962 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\"`'
9963 else
9964 whole_archive_flag_spec=''
9965 fi
718a6fd8
SE
9966 link_all_deplibs=yes
9967 allow_undefined_flag="$_lt_dar_allow_undefined"
9968 case $cc_basename in
9969 ifort*) _lt_dar_can_shared=yes ;;
9970 *) _lt_dar_can_shared=$GCC ;;
9971 esac
9972 if test "$_lt_dar_can_shared" = "yes"; then
3725885a 9973 output_verbose_link_cmd=func_echo_all
718a6fd8
SE
9974 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9975 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9976 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}"
9977 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}"
9978
9979 else
9980 ld_shlibs=no
9981 fi
9982
ce2cded5 9983 ;;
d7040cdb 9984
ce2cded5
L
9985 dgux*)
9986 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9987 hardcode_libdir_flag_spec='-L$libdir'
9988 hardcode_shlibpath_var=no
9989 ;;
d7040cdb 9990
df7b86aa
NC
9991 freebsd1*)
9992 ld_shlibs=no
9993 ;;
9994
ce2cded5
L
9995 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9996 # support. Future versions do this automatically, but an explicit c++rt0.o
9997 # does not break anything, and helps significantly (at the cost of a little
9998 # extra space).
9999 freebsd2.2*)
10000 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10001 hardcode_libdir_flag_spec='-R$libdir'
10002 hardcode_direct=yes
10003 hardcode_shlibpath_var=no
10004 ;;
d7040cdb 10005
ce2cded5
L
10006 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10007 freebsd2*)
10008 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10009 hardcode_direct=yes
10010 hardcode_minus_L=yes
10011 hardcode_shlibpath_var=no
10012 ;;
d7040cdb 10013
ce2cded5
L
10014 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10015 freebsd* | dragonfly*)
df7b86aa 10016 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
10017 hardcode_libdir_flag_spec='-R$libdir'
10018 hardcode_direct=yes
10019 hardcode_shlibpath_var=no
10020 ;;
d7040cdb 10021
ce2cded5
L
10022 hpux9*)
10023 if test "$GCC" = yes; then
df7b86aa 10024 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
ce2cded5
L
10025 else
10026 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'
10027 fi
10028 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10029 hardcode_libdir_separator=:
10030 hardcode_direct=yes
d7040cdb 10031
ce2cded5
L
10032 # hardcode_minus_L: Not really in the search PATH,
10033 # but as the default location of the library.
10034 hardcode_minus_L=yes
10035 export_dynamic_flag_spec='${wl}-E'
10036 ;;
d7040cdb 10037
ce2cded5 10038 hpux10*)
3725885a 10039 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
df7b86aa 10040 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
10041 else
10042 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10043 fi
10044 if test "$with_gnu_ld" = no; then
10045 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10046 hardcode_libdir_flag_spec_ld='+b $libdir'
10047 hardcode_libdir_separator=:
10048 hardcode_direct=yes
10049 hardcode_direct_absolute=yes
10050 export_dynamic_flag_spec='${wl}-E'
10051 # hardcode_minus_L: Not really in the search PATH,
10052 # but as the default location of the library.
10053 hardcode_minus_L=yes
10054 fi
10055 ;;
d7040cdb 10056
ce2cded5 10057 hpux11*)
3725885a 10058 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
ce2cded5
L
10059 case $host_cpu in
10060 hppa*64*)
10061 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10062 ;;
10063 ia64*)
df7b86aa 10064 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
10065 ;;
10066 *)
df7b86aa 10067 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
10068 ;;
10069 esac
10070 else
10071 case $host_cpu in
10072 hppa*64*)
10073 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10074 ;;
10075 ia64*)
10076 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10077 ;;
10078 *)
3725885a
RW
10079
10080 # Older versions of the 11.00 compiler do not understand -b yet
10081 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10083$as_echo_n "checking if $CC understands -b... " >&6; }
10084if test "${lt_cv_prog_compiler__b+set}" = set; then :
10085 $as_echo_n "(cached) " >&6
10086else
10087 lt_cv_prog_compiler__b=no
10088 save_LDFLAGS="$LDFLAGS"
10089 LDFLAGS="$LDFLAGS -b"
10090 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10091 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10092 # The linker can only warn and ignore the option if not recognized
10093 # So say no if there are warnings
10094 if test -s conftest.err; then
10095 # Append any errors to the config.log.
10096 cat conftest.err 1>&5
10097 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10098 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10099 if diff conftest.exp conftest.er2 >/dev/null; then
10100 lt_cv_prog_compiler__b=yes
10101 fi
10102 else
10103 lt_cv_prog_compiler__b=yes
10104 fi
10105 fi
10106 $RM -r conftest*
10107 LDFLAGS="$save_LDFLAGS"
10108
10109fi
10110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10111$as_echo "$lt_cv_prog_compiler__b" >&6; }
10112
10113if test x"$lt_cv_prog_compiler__b" = xyes; then
10114 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10115else
10116 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10117fi
10118
ce2cded5
L
10119 ;;
10120 esac
10121 fi
10122 if test "$with_gnu_ld" = no; then
10123 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10124 hardcode_libdir_separator=:
d7040cdb 10125
ce2cded5
L
10126 case $host_cpu in
10127 hppa*64*|ia64*)
10128 hardcode_direct=no
10129 hardcode_shlibpath_var=no
10130 ;;
10131 *)
10132 hardcode_direct=yes
10133 hardcode_direct_absolute=yes
10134 export_dynamic_flag_spec='${wl}-E'
d7040cdb 10135
ce2cded5
L
10136 # hardcode_minus_L: Not really in the search PATH,
10137 # but as the default location of the library.
10138 hardcode_minus_L=yes
10139 ;;
10140 esac
10141 fi
10142 ;;
10143
10144 irix5* | irix6* | nonstopux*)
10145 if test "$GCC" = yes; then
df7b86aa 10146 archive_cmds='$CC -shared $pic_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
10147 # Try to use the -exported_symbol ld option, if it does not
10148 # work, assume that -exports_file does not work either and
10149 # implicitly export all symbols.
df7b86aa
NC
10150 # This should be the same for all languages, so no per-tag cache variable.
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10152$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10153if test "${lt_cv_irix_exported_symbol+set}" = set; then :
10154 $as_echo_n "(cached) " >&6
10155else
10156 save_LDFLAGS="$LDFLAGS"
10157 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81ecdfbb 10159/* end confdefs.h. */
df7b86aa 10160int foo (void) { return 0; }
ce2cded5 10161_ACEOF
81ecdfbb 10162if ac_fn_c_try_link "$LINENO"; then :
df7b86aa
NC
10163 lt_cv_irix_exported_symbol=yes
10164else
10165 lt_cv_irix_exported_symbol=no
d7040cdb 10166fi
81ecdfbb
RW
10167rm -f core conftest.err conftest.$ac_objext \
10168 conftest$ac_exeext conftest.$ac_ext
df7b86aa
NC
10169 LDFLAGS="$save_LDFLAGS"
10170fi
10171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10172$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10173 if test "$lt_cv_irix_exported_symbol" = yes; then
10174 archive_expsym_cmds='$CC -shared $pic_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 ${wl}-exports_file ${wl}$export_symbols -o $lib'
10175 fi
ce2cded5 10176 else
3725885a
RW
10177 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'
10178 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
10179 fi
10180 archive_cmds_need_lc='no'
10181 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10182 hardcode_libdir_separator=:
10183 inherit_rpath=yes
10184 link_all_deplibs=yes
10185 ;;
d7040cdb 10186
ce2cded5
L
10187 netbsd*)
10188 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10189 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10190 else
10191 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10192 fi
10193 hardcode_libdir_flag_spec='-R$libdir'
10194 hardcode_direct=yes
10195 hardcode_shlibpath_var=no
10196 ;;
d7040cdb 10197
ce2cded5
L
10198 newsos6)
10199 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10200 hardcode_direct=yes
10201 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10202 hardcode_libdir_separator=:
10203 hardcode_shlibpath_var=no
10204 ;;
d7040cdb 10205
ce2cded5
L
10206 *nto* | *qnx*)
10207 ;;
d7040cdb 10208
ce2cded5 10209 openbsd*)
718a6fd8
SE
10210 if test -f /usr/libexec/ld.so; then
10211 hardcode_direct=yes
10212 hardcode_shlibpath_var=no
10213 hardcode_direct_absolute=yes
10214 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
ce2cded5 10215 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
718a6fd8 10216 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
ce2cded5 10217 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
718a6fd8
SE
10218 export_dynamic_flag_spec='${wl}-E'
10219 else
10220 case $host_os in
10221 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10222 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10223 hardcode_libdir_flag_spec='-R$libdir'
10224 ;;
10225 *)
10226 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10227 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10228 ;;
10229 esac
10230 fi
10231 else
10232 ld_shlibs=no
d7040cdb
SE
10233 fi
10234 ;;
d7040cdb 10235
ce2cded5
L
10236 os2*)
10237 hardcode_libdir_flag_spec='-L$libdir'
10238 hardcode_minus_L=yes
10239 allow_undefined_flag=unsupported
3725885a 10240 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
10241 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10242 ;;
d7040cdb 10243
ce2cded5
L
10244 osf3*)
10245 if test "$GCC" = yes; then
10246 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 10247 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
10248 else
10249 allow_undefined_flag=' -expect_unresolved \*'
3725885a 10250 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
10251 fi
10252 archive_cmds_need_lc='no'
10253 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10254 hardcode_libdir_separator=:
10255 ;;
d7040cdb 10256
ce2cded5
L
10257 osf4* | osf5*) # as osf3* with the addition of -msym flag
10258 if test "$GCC" = yes; then
10259 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
df7b86aa 10260 archive_cmds='$CC -shared${allow_undefined_flag} $pic_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
10261 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10262 else
10263 allow_undefined_flag=' -expect_unresolved \*'
3725885a 10264 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 10265 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 10266 $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 10267
ce2cded5
L
10268 # Both c and cxx compiler support -rpath directly
10269 hardcode_libdir_flag_spec='-rpath $libdir'
10270 fi
10271 archive_cmds_need_lc='no'
10272 hardcode_libdir_separator=:
10273 ;;
d7040cdb 10274
ce2cded5
L
10275 solaris*)
10276 no_undefined_flag=' -z defs'
10277 if test "$GCC" = yes; then
10278 wlarc='${wl}'
df7b86aa 10279 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5 10280 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
df7b86aa 10281 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
ce2cded5
L
10282 else
10283 case `$CC -V 2>&1` in
10284 *"Compilers 5.0"*)
10285 wlarc=''
10286 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10287 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10288 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10289 ;;
10290 *)
10291 wlarc='${wl}'
10292 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10293 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10294 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10295 ;;
10296 esac
10297 fi
10298 hardcode_libdir_flag_spec='-R$libdir'
10299 hardcode_shlibpath_var=no
10300 case $host_os in
10301 solaris2.[0-5] | solaris2.[0-5].*) ;;
10302 *)
10303 # The compiler driver will combine and reorder linker options,
10304 # but understands `-z linker_flag'. GCC discards it without `$wl',
10305 # but is careful enough not to reorder.
10306 # Supported since Solaris 2.6 (maybe 2.5.1?)
10307 if test "$GCC" = yes; then
10308 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10309 else
10310 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10311 fi
10312 ;;
10313 esac
10314 link_all_deplibs=yes
d7040cdb 10315 ;;
ce2cded5
L
10316
10317 sunos4*)
10318 if test "x$host_vendor" = xsequent; then
10319 # Use $CC to link under sequent, because it throws in some extra .o
10320 # files that make .init and .fini sections work.
10321 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb 10322 else
ce2cded5 10323 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
d7040cdb 10324 fi
ce2cded5
L
10325 hardcode_libdir_flag_spec='-L$libdir'
10326 hardcode_direct=yes
10327 hardcode_minus_L=yes
10328 hardcode_shlibpath_var=no
d7040cdb 10329 ;;
ce2cded5
L
10330
10331 sysv4)
10332 case $host_vendor in
10333 sni)
10334 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10335 hardcode_direct=yes # is this really true???
10336 ;;
10337 siemens)
10338 ## LD is ld it makes a PLAMLIB
10339 ## CC just makes a GrossModule.
10340 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10341 reload_cmds='$CC -r -o $output$reload_objs'
10342 hardcode_direct=no
10343 ;;
10344 motorola)
10345 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10346 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10347 ;;
10348 esac
10349 runpath_var='LD_RUN_PATH'
10350 hardcode_shlibpath_var=no
d7040cdb 10351 ;;
d7040cdb 10352
ce2cded5
L
10353 sysv4.3*)
10354 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10355 hardcode_shlibpath_var=no
10356 export_dynamic_flag_spec='-Bexport'
10357 ;;
d7040cdb 10358
ce2cded5
L
10359 sysv4*MP*)
10360 if test -d /usr/nec; then
10361 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10362 hardcode_shlibpath_var=no
10363 runpath_var=LD_RUN_PATH
10364 hardcode_runpath_var=yes
10365 ld_shlibs=yes
10366 fi
10367 ;;
d7040cdb 10368
ce2cded5
L
10369 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10370 no_undefined_flag='${wl}-z,text'
10371 archive_cmds_need_lc=no
10372 hardcode_shlibpath_var=no
10373 runpath_var='LD_RUN_PATH'
d7040cdb 10374
ce2cded5
L
10375 if test "$GCC" = yes; then
10376 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10377 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10378 else
10379 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10380 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10381 fi
10382 ;;
d7040cdb 10383
ce2cded5
L
10384 sysv5* | sco3.2v5* | sco5v6*)
10385 # Note: We can NOT use -z defs as we might desire, because we do not
10386 # link with -lc, and that would cause any symbols used from libc to
10387 # always be unresolved, which means just about no library would
10388 # ever link correctly. If we're not using GNU ld we use -z text
10389 # though, which does catch some bad symbols but isn't as heavy-handed
10390 # as -z defs.
10391 no_undefined_flag='${wl}-z,text'
10392 allow_undefined_flag='${wl}-z,nodefs'
10393 archive_cmds_need_lc=no
10394 hardcode_shlibpath_var=no
10395 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10396 hardcode_libdir_separator=':'
10397 link_all_deplibs=yes
10398 export_dynamic_flag_spec='${wl}-Bexport'
10399 runpath_var='LD_RUN_PATH'
d7040cdb 10400
ce2cded5
L
10401 if test "$GCC" = yes; then
10402 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10403 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10404 else
10405 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10406 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10407 fi
d7040cdb 10408 ;;
d7040cdb 10409
ce2cded5
L
10410 uts4*)
10411 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10412 hardcode_libdir_flag_spec='-L$libdir'
10413 hardcode_shlibpath_var=no
10414 ;;
d7040cdb 10415
ce2cded5
L
10416 *)
10417 ld_shlibs=no
10418 ;;
10419 esac
10420
10421 if test x$host_vendor = xsni; then
10422 case $host in
10423 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10424 export_dynamic_flag_spec='${wl}-Blargedynsym'
10425 ;;
10426 esac
d7040cdb 10427 fi
ce2cded5 10428 fi
d7040cdb 10429
81ecdfbb
RW
10430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10431$as_echo "$ld_shlibs" >&6; }
ce2cded5 10432test "$ld_shlibs" = no && can_build_shared=no
d7040cdb 10433
ce2cded5 10434with_gnu_ld=$with_gnu_ld
d7040cdb 10435
d7040cdb 10436
d7040cdb 10437
d7040cdb 10438
d7040cdb 10439
d7040cdb 10440
d7040cdb 10441
d7040cdb 10442
d7040cdb 10443
d7040cdb 10444
d7040cdb 10445
d7040cdb 10446
d7040cdb 10447
d7040cdb 10448
d7040cdb 10449
ce2cded5
L
10450#
10451# Do we need to explicitly link libc?
10452#
10453case "x$archive_cmds_need_lc" in
10454x|xyes)
10455 # Assume -lc should be added
10456 archive_cmds_need_lc=yes
d7040cdb 10457
ce2cded5
L
10458 if test "$enable_shared" = yes && test "$GCC" = yes; then
10459 case $archive_cmds in
10460 *'~'*)
10461 # FIXME: we may have to deal with multi-command sequences.
10462 ;;
10463 '$CC '*)
10464 # Test whether the compiler implicitly links with -lc since on some
10465 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10466 # to ld, don't add -lc before -lgcc.
81ecdfbb
RW
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10468$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10469if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10470 $as_echo_n "(cached) " >&6
39144654
RW
10471else
10472 $RM conftest*
10473 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 10474
81ecdfbb 10475 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
ce2cded5
L
10476 (eval $ac_compile) 2>&5
10477 ac_status=$?
81ecdfbb
RW
10478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10479 test $ac_status = 0; } 2>conftest.err; then
39144654
RW
10480 soname=conftest
10481 lib=conftest
10482 libobjs=conftest.$ac_objext
10483 deplibs=
10484 wl=$lt_prog_compiler_wl
10485 pic_flag=$lt_prog_compiler_pic
10486 compiler_flags=-v
10487 linker_flags=-v
10488 verstring=
10489 output_objdir=.
10490 libname=conftest
10491 lt_save_allow_undefined_flag=$allow_undefined_flag
10492 allow_undefined_flag=
81ecdfbb 10493 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
ce2cded5
L
10494 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10495 ac_status=$?
81ecdfbb
RW
10496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10497 test $ac_status = 0; }
39144654
RW
10498 then
10499 lt_cv_archive_cmds_need_lc=no
10500 else
10501 lt_cv_archive_cmds_need_lc=yes
10502 fi
10503 allow_undefined_flag=$lt_save_allow_undefined_flag
10504 else
10505 cat conftest.err 1>&5
10506 fi
10507 $RM conftest*
10508
10509fi
81ecdfbb
RW
10510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10511$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
39144654 10512 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
ce2cded5
L
10513 ;;
10514 esac
d7040cdb 10515 fi
d7040cdb 10516 ;;
ce2cded5 10517esac
d7040cdb 10518
d7040cdb 10519
d7040cdb 10520
d7040cdb 10521
d7040cdb 10522
d7040cdb 10523
d7040cdb 10524
d7040cdb
SE
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
d7040cdb 10612
d7040cdb 10613
d7040cdb
SE
10614
10615
10616
10617
10618
10619
d7040cdb 10620
d7040cdb 10621
d7040cdb 10622
d7040cdb 10623
d7040cdb 10624
d7040cdb 10625
d7040cdb 10626
d7040cdb 10627
d7040cdb 10628
d7040cdb 10629
d7040cdb 10630
d7040cdb 10631
d7040cdb 10632
d7040cdb 10633
d7040cdb 10634
d7040cdb 10635
d7040cdb 10636
d7040cdb 10637
d7040cdb 10638
d7040cdb 10639
d7040cdb 10640
d7040cdb 10641
d7040cdb 10642
ce2cded5
L
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
81ecdfbb
RW
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10676$as_echo_n "checking dynamic linker characteristics... " >&6; }
718a6fd8
SE
10677
10678if test "$GCC" = yes; then
ce2cded5
L
10679 case $host_os in
10680 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10681 *) lt_awk_arg="/^libraries:/" ;;
10682 esac
3725885a
RW
10683 case $host_os in
10684 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10685 *) lt_sed_strip_eq="s,=/,/,g" ;;
10686 esac
10687 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10688 case $lt_search_path_spec in
10689 *\;*)
ce2cded5
L
10690 # if the path contains ";" then we assume it to be the separator
10691 # otherwise default to the standard path separator (i.e. ":") - it is
10692 # assumed that no part of a normal pathname contains ";" but that should
10693 # okay in the real world where ";" in dirpaths is itself problematic.
3725885a
RW
10694 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10695 ;;
10696 *)
10697 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10698 ;;
10699 esac
ce2cded5
L
10700 # Ok, now we have the path, separated by spaces, we can step through it
10701 # and add multilib dir if necessary.
10702 lt_tmp_lt_search_path_spec=
10703 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10704 for lt_sys_path in $lt_search_path_spec; do
10705 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10706 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10707 else
10708 test -d "$lt_sys_path" && \
10709 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10710 fi
10711 done
3725885a 10712 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
ce2cded5
L
10713BEGIN {RS=" "; FS="/|\n";} {
10714 lt_foo="";
10715 lt_count=0;
10716 for (lt_i = NF; lt_i > 0; lt_i--) {
10717 if ($lt_i != "" && $lt_i != ".") {
10718 if ($lt_i == "..") {
10719 lt_count++;
10720 } else {
10721 if (lt_count == 0) {
10722 lt_foo="/" $lt_i lt_foo;
10723 } else {
10724 lt_count--;
10725 }
10726 }
10727 }
10728 }
10729 if (lt_foo != "") { lt_freq[lt_foo]++; }
10730 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10731}'`
3725885a
RW
10732 # AWK program above erroneously prepends '/' to C:/dos/paths
10733 # for these hosts.
10734 case $host_os in
10735 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10736 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10737 esac
10738 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
d7040cdb 10739else
ce2cded5
L
10740 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10741fi
10742library_names_spec=
10743libname_spec='lib$name'
10744soname_spec=
10745shrext_cmds=".so"
10746postinstall_cmds=
10747postuninstall_cmds=
10748finish_cmds=
10749finish_eval=
10750shlibpath_var=
10751shlibpath_overrides_runpath=unknown
10752version_type=none
10753dynamic_linker="$host_os ld.so"
10754sys_lib_dlsearch_path_spec="/lib /usr/lib"
10755need_lib_prefix=unknown
10756hardcode_into_libs=no
10757
10758# when you set need_version to no, make sure it does not cause -set_version
10759# flags to be left without arguments
10760need_version=unknown
10761
10762case $host_os in
10763aix3*)
10764 version_type=linux
10765 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10766 shlibpath_var=LIBPATH
10767
10768 # AIX 3 has no versioning support, so we append a major version to the name.
10769 soname_spec='${libname}${release}${shared_ext}$major'
10770 ;;
10771
50e7d84b 10772aix[4-9]*)
ce2cded5
L
10773 version_type=linux
10774 need_lib_prefix=no
10775 need_version=no
10776 hardcode_into_libs=yes
10777 if test "$host_cpu" = ia64; then
10778 # AIX 5 supports IA64
10779 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10780 shlibpath_var=LD_LIBRARY_PATH
10781 else
10782 # With GCC up to 2.95.x, collect2 would create an import file
10783 # for dependence libraries. The import file would start with
10784 # the line `#! .'. This would cause the generated library to
10785 # depend on `.', always an invalid library. This was fixed in
10786 # development snapshots of GCC prior to 3.0.
10787 case $host_os in
10788 aix4 | aix4.[01] | aix4.[01].*)
10789 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10790 echo ' yes '
10791 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10792 :
10793 else
10794 can_build_shared=no
10795 fi
10796 ;;
10797 esac
10798 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10799 # soname into executable. Probably we can add versioning support to
10800 # collect2, so additional links can be useful in future.
10801 if test "$aix_use_runtimelinking" = yes; then
10802 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10803 # instead of lib<name>.a to let people know that these are not
10804 # typical AIX shared libraries.
10805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10806 else
10807 # We preserve .a as extension for shared libraries through AIX4.2
10808 # and later when we are not doing run time linking.
10809 library_names_spec='${libname}${release}.a $libname.a'
10810 soname_spec='${libname}${release}${shared_ext}$major'
10811 fi
10812 shlibpath_var=LIBPATH
10813 fi
10814 ;;
10815
10816amigaos*)
718a6fd8
SE
10817 case $host_cpu in
10818 powerpc)
10819 # Since July 2007 AmigaOS4 officially supports .so libraries.
10820 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10822 ;;
10823 m68k)
ce2cded5
L
10824 library_names_spec='$libname.ixlibrary $libname.a'
10825 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3725885a 10826 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'
718a6fd8
SE
10827 ;;
10828 esac
ce2cded5
L
10829 ;;
10830
10831beos*)
10832 library_names_spec='${libname}${shared_ext}'
10833 dynamic_linker="$host_os ld.so"
10834 shlibpath_var=LIBRARY_PATH
10835 ;;
10836
10837bsdi[45]*)
10838 version_type=linux
10839 need_version=no
10840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10841 soname_spec='${libname}${release}${shared_ext}$major'
10842 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10843 shlibpath_var=LD_LIBRARY_PATH
10844 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10845 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10846 # the default ld.so.conf also contains /usr/contrib/lib and
10847 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10848 # libtool to hard-code these into programs
10849 ;;
10850
718a6fd8 10851cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
10852 version_type=windows
10853 shrext_cmds=".dll"
10854 need_version=no
10855 need_lib_prefix=no
10856
df7b86aa
NC
10857 case $GCC,$cc_basename in
10858 yes,*)
10859 # gcc
ce2cded5
L
10860 library_names_spec='$libname.dll.a'
10861 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10862 postinstall_cmds='base_file=`basename \${file}`~
10863 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10864 dldir=$destdir/`dirname \$dlpath`~
10865 test -d \$dldir || mkdir -p \$dldir~
10866 $install_prog $dir/$dlname \$dldir/$dlname~
10867 chmod a+x \$dldir/$dlname~
10868 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10869 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10870 fi'
10871 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10872 dlpath=$dir/\$dldll~
10873 $RM \$dlpath'
10874 shlibpath_overrides_runpath=yes
10875
10876 case $host_os in
10877 cygwin*)
10878 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10879 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
3725885a
RW
10880
10881 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
ce2cded5 10882 ;;
718a6fd8 10883 mingw* | cegcc*)
ce2cded5
L
10884 # MinGW DLLs use traditional 'lib' prefix
10885 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
ce2cded5
L
10886 ;;
10887 pw32*)
10888 # pw32 DLLs use 'pw' prefix rather than 'lib'
10889 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10890 ;;
10891 esac
df7b86aa
NC
10892 dynamic_linker='Win32 ld.exe'
10893 ;;
10894
10895 *,cl*)
10896 # Native MSVC
10897 libname_spec='$name'
10898 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10899 library_names_spec='${libname}.dll.lib'
10900
10901 case $build_os in
10902 mingw*)
10903 sys_lib_search_path_spec=
10904 lt_save_ifs=$IFS
10905 IFS=';'
10906 for lt_path in $LIB
10907 do
10908 IFS=$lt_save_ifs
10909 # Let DOS variable expansion print the short 8.3 style file name.
10910 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10911 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10912 done
10913 IFS=$lt_save_ifs
10914 # Convert to MSYS style.
10915 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10916 ;;
10917 cygwin*)
10918 # Convert to unix form, then to dos form, then back to unix form
10919 # but this time dos style (no spaces!) so that the unix form looks
10920 # like /cygdrive/c/PROGRA~1:/cygdr...
10921 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10922 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10923 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10924 ;;
10925 *)
10926 sys_lib_search_path_spec="$LIB"
10927 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10928 # It is most probably a Windows format PATH.
10929 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10930 else
10931 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10932 fi
10933 # FIXME: find the short name or the path components, as spaces are
10934 # common. (e.g. "Program Files" -> "PROGRA~1")
10935 ;;
10936 esac
10937
10938 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10939 postinstall_cmds='base_file=`basename \${file}`~
10940 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10941 dldir=$destdir/`dirname \$dlpath`~
10942 test -d \$dldir || mkdir -p \$dldir~
10943 $install_prog $dir/$dlname \$dldir/$dlname'
10944 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10945 dlpath=$dir/\$dldll~
10946 $RM \$dlpath'
10947 shlibpath_overrides_runpath=yes
10948 dynamic_linker='Win32 link.exe'
ce2cded5
L
10949 ;;
10950
10951 *)
df7b86aa 10952 # Assume MSVC wrapper
ce2cded5 10953 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
df7b86aa 10954 dynamic_linker='Win32 ld.exe'
ce2cded5
L
10955 ;;
10956 esac
ce2cded5
L
10957 # FIXME: first we should search . and the directory the executable is in
10958 shlibpath_var=PATH
10959 ;;
10960
10961darwin* | rhapsody*)
10962 dynamic_linker="$host_os dyld"
10963 version_type=darwin
10964 need_lib_prefix=no
10965 need_version=no
10966 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10967 soname_spec='${libname}${release}${major}$shared_ext'
10968 shlibpath_overrides_runpath=yes
10969 shlibpath_var=DYLD_LIBRARY_PATH
10970 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10971
10972 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10973 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10974 ;;
10975
10976dgux*)
10977 version_type=linux
10978 need_lib_prefix=no
10979 need_version=no
10980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10981 soname_spec='${libname}${release}${shared_ext}$major'
10982 shlibpath_var=LD_LIBRARY_PATH
10983 ;;
10984
df7b86aa
NC
10985freebsd1*)
10986 dynamic_linker=no
10987 ;;
10988
ce2cded5
L
10989freebsd* | dragonfly*)
10990 # DragonFly does not have aout. When/if they implement a new
10991 # versioning mechanism, adjust this.
10992 if test -x /usr/bin/objformat; then
10993 objformat=`/usr/bin/objformat`
10994 else
10995 case $host_os in
10996 freebsd[123]*) objformat=aout ;;
10997 *) objformat=elf ;;
10998 esac
10999 fi
11000 version_type=freebsd-$objformat
11001 case $version_type in
11002 freebsd-elf*)
11003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11004 need_version=no
11005 need_lib_prefix=no
11006 ;;
11007 freebsd-*)
11008 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11009 need_version=yes
11010 ;;
11011 esac
11012 shlibpath_var=LD_LIBRARY_PATH
11013 case $host_os in
11014 freebsd2*)
11015 shlibpath_overrides_runpath=yes
11016 ;;
11017 freebsd3.[01]* | freebsdelf3.[01]*)
11018 shlibpath_overrides_runpath=yes
11019 hardcode_into_libs=yes
11020 ;;
11021 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11022 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11023 shlibpath_overrides_runpath=no
11024 hardcode_into_libs=yes
11025 ;;
11026 *) # from 4.6 on, and DragonFly
11027 shlibpath_overrides_runpath=yes
11028 hardcode_into_libs=yes
11029 ;;
11030 esac
11031 ;;
11032
11033gnu*)
11034 version_type=linux
11035 need_lib_prefix=no
11036 need_version=no
11037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11038 soname_spec='${libname}${release}${shared_ext}$major'
11039 shlibpath_var=LD_LIBRARY_PATH
11040 hardcode_into_libs=yes
11041 ;;
11042
3725885a
RW
11043haiku*)
11044 version_type=linux
11045 need_lib_prefix=no
11046 need_version=no
11047 dynamic_linker="$host_os runtime_loader"
11048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11049 soname_spec='${libname}${release}${shared_ext}$major'
11050 shlibpath_var=LIBRARY_PATH
11051 shlibpath_overrides_runpath=yes
df7b86aa 11052 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
3725885a
RW
11053 hardcode_into_libs=yes
11054 ;;
11055
ce2cded5
L
11056hpux9* | hpux10* | hpux11*)
11057 # Give a soname corresponding to the major version so that dld.sl refuses to
11058 # link against other versions.
11059 version_type=sunos
11060 need_lib_prefix=no
11061 need_version=no
11062 case $host_cpu in
11063 ia64*)
11064 shrext_cmds='.so'
11065 hardcode_into_libs=yes
11066 dynamic_linker="$host_os dld.so"
11067 shlibpath_var=LD_LIBRARY_PATH
11068 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11070 soname_spec='${libname}${release}${shared_ext}$major'
11071 if test "X$HPUX_IA64_MODE" = X32; then
11072 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11073 else
11074 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11075 fi
11076 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11077 ;;
11078 hppa*64*)
11079 shrext_cmds='.sl'
11080 hardcode_into_libs=yes
11081 dynamic_linker="$host_os dld.sl"
11082 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11083 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11085 soname_spec='${libname}${release}${shared_ext}$major'
11086 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11087 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11088 ;;
11089 *)
11090 shrext_cmds='.sl'
11091 dynamic_linker="$host_os dld.sl"
11092 shlibpath_var=SHLIB_PATH
11093 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11095 soname_spec='${libname}${release}${shared_ext}$major'
11096 ;;
11097 esac
3725885a 11098 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
ce2cded5 11099 postinstall_cmds='chmod 555 $lib'
3725885a
RW
11100 # or fails outright, so override atomically:
11101 install_override_mode=555
ce2cded5
L
11102 ;;
11103
11104interix[3-9]*)
11105 version_type=linux
11106 need_lib_prefix=no
11107 need_version=no
11108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11109 soname_spec='${libname}${release}${shared_ext}$major'
11110 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11111 shlibpath_var=LD_LIBRARY_PATH
11112 shlibpath_overrides_runpath=no
11113 hardcode_into_libs=yes
11114 ;;
11115
11116irix5* | irix6* | nonstopux*)
11117 case $host_os in
11118 nonstopux*) version_type=nonstopux ;;
11119 *)
11120 if test "$lt_cv_prog_gnu_ld" = yes; then
11121 version_type=linux
11122 else
11123 version_type=irix
11124 fi ;;
11125 esac
11126 need_lib_prefix=no
11127 need_version=no
11128 soname_spec='${libname}${release}${shared_ext}$major'
11129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11130 case $host_os in
11131 irix5* | nonstopux*)
11132 libsuff= shlibsuff=
11133 ;;
11134 *)
11135 case $LD in # libtool.m4 will add one of these switches to LD
11136 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11137 libsuff= shlibsuff= libmagic=32-bit;;
11138 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11139 libsuff=32 shlibsuff=N32 libmagic=N32;;
11140 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11141 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11142 *) libsuff= shlibsuff= libmagic=never-match;;
11143 esac
11144 ;;
11145 esac
11146 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11147 shlibpath_overrides_runpath=no
11148 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11149 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11150 hardcode_into_libs=yes
11151 ;;
d7040cdb 11152
ce2cded5
L
11153# No shared lib support for Linux oldld, aout, or coff.
11154linux*oldld* | linux*aout* | linux*coff*)
11155 dynamic_linker=no
11156 ;;
11157
11158# This must be Linux ELF.
58e24671 11159linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
11160 version_type=linux
11161 need_lib_prefix=no
11162 need_version=no
11163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11164 soname_spec='${libname}${release}${shared_ext}$major'
11165 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11166 shlibpath_var=LD_LIBRARY_PATH
11167 shlibpath_overrides_runpath=no
39144654 11168
ce2cded5 11169 # Some binutils ld are patched to set DT_RUNPATH
81ecdfbb
RW
11170 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11171 $as_echo_n "(cached) " >&6
39144654
RW
11172else
11173 lt_cv_shlibpath_overrides_runpath=no
11174 save_LDFLAGS=$LDFLAGS
11175 save_libdir=$libdir
11176 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11177 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
81ecdfbb 11178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11179/* end confdefs.h. */
11180
d7040cdb
SE
11181int
11182main ()
11183{
ce2cded5 11184
d7040cdb
SE
11185 ;
11186 return 0;
11187}
11188_ACEOF
81ecdfbb
RW
11189if ac_fn_c_try_link "$LINENO"; then :
11190 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
39144654 11191 lt_cv_shlibpath_overrides_runpath=yes
ce2cded5 11192fi
ce2cded5 11193fi
81ecdfbb
RW
11194rm -f core conftest.err conftest.$ac_objext \
11195 conftest$ac_exeext conftest.$ac_ext
39144654
RW
11196 LDFLAGS=$save_LDFLAGS
11197 libdir=$save_libdir
11198
11199fi
11200
11201 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
ce2cded5
L
11202
11203 # This implies no fast_install, which is unacceptable.
11204 # Some rework will be needed to allow for fast_install
11205 # before this can be enabled.
11206 hardcode_into_libs=yes
11207
df7b86aa
NC
11208 # Add ABI-specific directories to the system library path.
11209 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11210
ce2cded5
L
11211 # Append ld.so.conf contents to the search path
11212 if test -f /etc/ld.so.conf; then
3725885a 11213 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' ' '`
df7b86aa
NC
11214 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11215
ce2cded5
L
11216 fi
11217
11218 # We used to test for /lib/ld.so.1 and disable shared libraries on
11219 # powerpc, because MkLinux only supported shared libraries with the
11220 # GNU dynamic linker. Since this was broken with cross compilers,
11221 # most powerpc-linux boxes support dynamic linking these days and
11222 # people can always --disable-shared, the test was removed, and we
11223 # assume the GNU/Linux dynamic linker is in use.
11224 dynamic_linker='GNU/Linux ld.so'
11225 ;;
11226
11227netbsd*)
11228 version_type=sunos
11229 need_lib_prefix=no
11230 need_version=no
11231 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11233 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11234 dynamic_linker='NetBSD (a.out) ld.so'
11235 else
11236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11237 soname_spec='${libname}${release}${shared_ext}$major'
11238 dynamic_linker='NetBSD ld.elf_so'
11239 fi
11240 shlibpath_var=LD_LIBRARY_PATH
11241 shlibpath_overrides_runpath=yes
11242 hardcode_into_libs=yes
11243 ;;
11244
11245newsos6)
11246 version_type=linux
11247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11248 shlibpath_var=LD_LIBRARY_PATH
11249 shlibpath_overrides_runpath=yes
11250 ;;
11251
11252*nto* | *qnx*)
11253 version_type=qnx
11254 need_lib_prefix=no
11255 need_version=no
11256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11257 soname_spec='${libname}${release}${shared_ext}$major'
11258 shlibpath_var=LD_LIBRARY_PATH
11259 shlibpath_overrides_runpath=no
11260 hardcode_into_libs=yes
11261 dynamic_linker='ldqnx.so'
11262 ;;
11263
11264openbsd*)
11265 version_type=sunos
11266 sys_lib_dlsearch_path_spec="/usr/lib"
11267 need_lib_prefix=no
11268 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11269 case $host_os in
11270 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11271 *) need_version=no ;;
11272 esac
11273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11274 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11275 shlibpath_var=LD_LIBRARY_PATH
11276 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11277 case $host_os in
11278 openbsd2.[89] | openbsd2.[89].*)
11279 shlibpath_overrides_runpath=no
11280 ;;
11281 *)
11282 shlibpath_overrides_runpath=yes
11283 ;;
11284 esac
11285 else
11286 shlibpath_overrides_runpath=yes
11287 fi
11288 ;;
11289
11290os2*)
11291 libname_spec='$name'
11292 shrext_cmds=".dll"
11293 need_lib_prefix=no
11294 library_names_spec='$libname${shared_ext} $libname.a'
11295 dynamic_linker='OS/2 ld.exe'
11296 shlibpath_var=LIBPATH
11297 ;;
11298
11299osf3* | osf4* | osf5*)
11300 version_type=osf
11301 need_lib_prefix=no
11302 need_version=no
11303 soname_spec='${libname}${release}${shared_ext}$major'
11304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11305 shlibpath_var=LD_LIBRARY_PATH
11306 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11307 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11308 ;;
11309
11310rdos*)
11311 dynamic_linker=no
11312 ;;
11313
11314solaris*)
11315 version_type=linux
11316 need_lib_prefix=no
11317 need_version=no
11318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11319 soname_spec='${libname}${release}${shared_ext}$major'
11320 shlibpath_var=LD_LIBRARY_PATH
11321 shlibpath_overrides_runpath=yes
11322 hardcode_into_libs=yes
11323 # ldd complains unless libraries are executable
11324 postinstall_cmds='chmod +x $lib'
11325 ;;
11326
11327sunos4*)
11328 version_type=sunos
11329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11330 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11331 shlibpath_var=LD_LIBRARY_PATH
11332 shlibpath_overrides_runpath=yes
11333 if test "$with_gnu_ld" = yes; then
11334 need_lib_prefix=no
11335 fi
11336 need_version=yes
11337 ;;
11338
11339sysv4 | sysv4.3*)
11340 version_type=linux
11341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11342 soname_spec='${libname}${release}${shared_ext}$major'
11343 shlibpath_var=LD_LIBRARY_PATH
11344 case $host_vendor in
11345 sni)
11346 shlibpath_overrides_runpath=no
11347 need_lib_prefix=no
11348 runpath_var=LD_RUN_PATH
11349 ;;
11350 siemens)
11351 need_lib_prefix=no
11352 ;;
11353 motorola)
11354 need_lib_prefix=no
11355 need_version=no
11356 shlibpath_overrides_runpath=no
11357 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11358 ;;
11359 esac
11360 ;;
11361
11362sysv4*MP*)
11363 if test -d /usr/nec ;then
11364 version_type=linux
11365 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11366 soname_spec='$libname${shared_ext}.$major'
11367 shlibpath_var=LD_LIBRARY_PATH
11368 fi
11369 ;;
11370
11371sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11372 version_type=freebsd-elf
11373 need_lib_prefix=no
11374 need_version=no
11375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11376 soname_spec='${libname}${release}${shared_ext}$major'
11377 shlibpath_var=LD_LIBRARY_PATH
11378 shlibpath_overrides_runpath=yes
11379 hardcode_into_libs=yes
11380 if test "$with_gnu_ld" = yes; then
11381 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11382 else
11383 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11384 case $host_os in
11385 sco3.2v5*)
11386 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11387 ;;
11388 esac
11389 fi
11390 sys_lib_dlsearch_path_spec='/usr/lib'
11391 ;;
11392
11393tpf*)
11394 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11395 version_type=linux
11396 need_lib_prefix=no
11397 need_version=no
718a6fd8 11398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
ce2cded5
L
11399 shlibpath_var=LD_LIBRARY_PATH
11400 shlibpath_overrides_runpath=no
11401 hardcode_into_libs=yes
11402 ;;
d7040cdb 11403
ce2cded5
L
11404uts4*)
11405 version_type=linux
11406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11407 soname_spec='${libname}${release}${shared_ext}$major'
11408 shlibpath_var=LD_LIBRARY_PATH
11409 ;;
d7040cdb 11410
ce2cded5
L
11411*)
11412 dynamic_linker=no
11413 ;;
11414esac
81ecdfbb
RW
11415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11416$as_echo "$dynamic_linker" >&6; }
ce2cded5
L
11417test "$dynamic_linker" = no && can_build_shared=no
11418
11419variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11420if test "$GCC" = yes; then
11421 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb 11422fi
d7040cdb 11423
718a6fd8
SE
11424if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11425 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11426fi
11427if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11428 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11429fi
11430
d7040cdb 11431
d7040cdb
SE
11432
11433
d7040cdb
SE
11434
11435
d7040cdb
SE
11436
11437
d7040cdb
SE
11438
11439
d7040cdb
SE
11440
11441
d7040cdb 11442
d7040cdb 11443
d7040cdb 11444
d7040cdb 11445
d7040cdb 11446
d7040cdb 11447
d7040cdb 11448
d7040cdb 11449
d7040cdb 11450
d7040cdb 11451
d7040cdb 11452
d7040cdb 11453
d7040cdb 11454
d7040cdb 11455
d7040cdb
SE
11456
11457
d7040cdb 11458
d7040cdb 11459
d7040cdb 11460
d7040cdb 11461
d7040cdb 11462
d7040cdb 11463
d7040cdb 11464
d7040cdb 11465
d7040cdb 11466
d7040cdb
SE
11467
11468
d7040cdb 11469
d7040cdb 11470
d7040cdb 11471
d7040cdb
SE
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
d7040cdb
SE
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
d7040cdb 11501
d7040cdb 11502
d7040cdb 11503
d7040cdb 11504
d7040cdb
SE
11505
11506
11507
11508
ce2cded5
L
11509
11510
3725885a
RW
11511
11512
11513
11514
11515
ce2cded5
L
11516
11517
11518
11519
11520
11521
81ecdfbb
RW
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11523$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
ce2cded5
L
11524hardcode_action=
11525if test -n "$hardcode_libdir_flag_spec" ||
11526 test -n "$runpath_var" ||
11527 test "X$hardcode_automatic" = "Xyes" ; then
11528
11529 # We can hardcode non-existent directories.
11530 if test "$hardcode_direct" != no &&
11531 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11532 # have to relink, otherwise we might link with an installed library
11533 # when we should be linking with a yet-to-be-installed one
11534 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11535 test "$hardcode_minus_L" != no; then
11536 # Linking always hardcodes the temporary library directory.
11537 hardcode_action=relink
11538 else
11539 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11540 hardcode_action=immediate
11541 fi
11542else
11543 # We cannot hardcode anything, or else we can only hardcode existing
11544 # directories.
11545 hardcode_action=unsupported
11546fi
81ecdfbb
RW
11547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11548$as_echo "$hardcode_action" >&6; }
ce2cded5
L
11549
11550if test "$hardcode_action" = relink ||
11551 test "$inherit_rpath" = yes; then
11552 # Fast installation is not supported
11553 enable_fast_install=no
11554elif test "$shlibpath_overrides_runpath" = yes ||
11555 test "$enable_shared" = no; then
11556 # Fast installation is not necessary
11557 enable_fast_install=needless
d7040cdb 11558fi
d7040cdb 11559
d7040cdb
SE
11560
11561
11562
11563
11564
ce2cded5
L
11565 if test "x$enable_dlopen" != xyes; then
11566 enable_dlopen=unknown
11567 enable_dlopen_self=unknown
11568 enable_dlopen_self_static=unknown
11569else
11570 lt_cv_dlopen=no
11571 lt_cv_dlopen_libs=
11572
11573 case $host_os in
11574 beos*)
11575 lt_cv_dlopen="load_add_on"
11576 lt_cv_dlopen_libs=
11577 lt_cv_dlopen_self=yes
11578 ;;
d7040cdb 11579
718a6fd8 11580 mingw* | pw32* | cegcc*)
ce2cded5
L
11581 lt_cv_dlopen="LoadLibrary"
11582 lt_cv_dlopen_libs=
11583 ;;
d7040cdb 11584
ce2cded5
L
11585 cygwin*)
11586 lt_cv_dlopen="dlopen"
11587 lt_cv_dlopen_libs=
11588 ;;
d7040cdb 11589
ce2cded5
L
11590 darwin*)
11591 # if libdl is installed we need to link against it
81ecdfbb
RW
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11593$as_echo_n "checking for dlopen in -ldl... " >&6; }
11594if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11595 $as_echo_n "(cached) " >&6
ce2cded5
L
11596else
11597 ac_check_lib_save_LIBS=$LIBS
11598LIBS="-ldl $LIBS"
81ecdfbb 11599cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 11600/* end confdefs.h. */
d7040cdb 11601
81ecdfbb
RW
11602/* Override any GCC internal prototype to avoid an error.
11603 Use char because int might match the return type of a GCC
11604 builtin and then its argument prototype would still apply. */
ce2cded5
L
11605#ifdef __cplusplus
11606extern "C"
11607#endif
ce2cded5
L
11608char dlopen ();
11609int
11610main ()
11611{
81ecdfbb 11612return dlopen ();
ce2cded5
L
11613 ;
11614 return 0;
11615}
11616_ACEOF
81ecdfbb 11617if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
11618 ac_cv_lib_dl_dlopen=yes
11619else
81ecdfbb 11620 ac_cv_lib_dl_dlopen=no
ce2cded5 11621fi
81ecdfbb
RW
11622rm -f core conftest.err conftest.$ac_objext \
11623 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
11624LIBS=$ac_check_lib_save_LIBS
11625fi
81ecdfbb
RW
11626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11627$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11628if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5
L
11629 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11630else
d7040cdb 11631
ce2cded5
L
11632 lt_cv_dlopen="dyld"
11633 lt_cv_dlopen_libs=
11634 lt_cv_dlopen_self=yes
d7040cdb 11635
ce2cded5 11636fi
d7040cdb 11637
ce2cded5 11638 ;;
d7040cdb 11639
ce2cded5 11640 *)
81ecdfbb
RW
11641 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11642if test "x$ac_cv_func_shl_load" = x""yes; then :
ce2cded5
L
11643 lt_cv_dlopen="shl_load"
11644else
81ecdfbb
RW
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11646$as_echo_n "checking for shl_load in -ldld... " >&6; }
11647if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11648 $as_echo_n "(cached) " >&6
ce2cded5
L
11649else
11650 ac_check_lib_save_LIBS=$LIBS
11651LIBS="-ldld $LIBS"
81ecdfbb 11652cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 11653/* end confdefs.h. */
d7040cdb 11654
81ecdfbb
RW
11655/* Override any GCC internal prototype to avoid an error.
11656 Use char because int might match the return type of a GCC
11657 builtin and then its argument prototype would still apply. */
ce2cded5
L
11658#ifdef __cplusplus
11659extern "C"
11660#endif
ce2cded5
L
11661char shl_load ();
11662int
11663main ()
11664{
81ecdfbb 11665return shl_load ();
ce2cded5
L
11666 ;
11667 return 0;
11668}
d7040cdb 11669_ACEOF
81ecdfbb 11670if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
11671 ac_cv_lib_dld_shl_load=yes
11672else
81ecdfbb 11673 ac_cv_lib_dld_shl_load=no
d7040cdb 11674fi
81ecdfbb
RW
11675rm -f core conftest.err conftest.$ac_objext \
11676 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
11677LIBS=$ac_check_lib_save_LIBS
11678fi
81ecdfbb
RW
11679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11680$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11681if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
718a6fd8 11682 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
ce2cded5 11683else
81ecdfbb
RW
11684 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11685if test "x$ac_cv_func_dlopen" = x""yes; then :
ce2cded5
L
11686 lt_cv_dlopen="dlopen"
11687else
81ecdfbb
RW
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11689$as_echo_n "checking for dlopen in -ldl... " >&6; }
11690if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11691 $as_echo_n "(cached) " >&6
d7040cdb 11692else
ce2cded5
L
11693 ac_check_lib_save_LIBS=$LIBS
11694LIBS="-ldl $LIBS"
81ecdfbb 11695cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 11696/* end confdefs.h. */
d7040cdb 11697
81ecdfbb
RW
11698/* Override any GCC internal prototype to avoid an error.
11699 Use char because int might match the return type of a GCC
11700 builtin and then its argument prototype would still apply. */
ce2cded5
L
11701#ifdef __cplusplus
11702extern "C"
11703#endif
ce2cded5 11704char dlopen ();
d7040cdb
SE
11705int
11706main ()
11707{
81ecdfbb 11708return dlopen ();
d7040cdb
SE
11709 ;
11710 return 0;
11711}
11712_ACEOF
81ecdfbb 11713if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
11714 ac_cv_lib_dl_dlopen=yes
11715else
81ecdfbb 11716 ac_cv_lib_dl_dlopen=no
ce2cded5 11717fi
81ecdfbb
RW
11718rm -f core conftest.err conftest.$ac_objext \
11719 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
11720LIBS=$ac_check_lib_save_LIBS
11721fi
81ecdfbb
RW
11722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11723$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11724if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5
L
11725 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11726else
81ecdfbb
RW
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11728$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11729if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11730 $as_echo_n "(cached) " >&6
ce2cded5
L
11731else
11732 ac_check_lib_save_LIBS=$LIBS
11733LIBS="-lsvld $LIBS"
81ecdfbb 11734cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 11735/* end confdefs.h. */
d7040cdb 11736
81ecdfbb
RW
11737/* Override any GCC internal prototype to avoid an error.
11738 Use char because int might match the return type of a GCC
11739 builtin and then its argument prototype would still apply. */
ce2cded5
L
11740#ifdef __cplusplus
11741extern "C"
11742#endif
ce2cded5 11743char dlopen ();
d7040cdb
SE
11744int
11745main ()
11746{
81ecdfbb 11747return dlopen ();
d7040cdb
SE
11748 ;
11749 return 0;
11750}
11751_ACEOF
81ecdfbb 11752if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 11753 ac_cv_lib_svld_dlopen=yes
d7040cdb 11754else
81ecdfbb 11755 ac_cv_lib_svld_dlopen=no
d7040cdb 11756fi
81ecdfbb
RW
11757rm -f core conftest.err conftest.$ac_objext \
11758 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
11759LIBS=$ac_check_lib_save_LIBS
11760fi
81ecdfbb
RW
11761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11762$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11763if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
ce2cded5
L
11764 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11765else
81ecdfbb
RW
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11767$as_echo_n "checking for dld_link in -ldld... " >&6; }
11768if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11769 $as_echo_n "(cached) " >&6
d7040cdb 11770else
ce2cded5
L
11771 ac_check_lib_save_LIBS=$LIBS
11772LIBS="-ldld $LIBS"
81ecdfbb 11773cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 11774/* end confdefs.h. */
ce2cded5 11775
81ecdfbb
RW
11776/* Override any GCC internal prototype to avoid an error.
11777 Use char because int might match the return type of a GCC
11778 builtin and then its argument prototype would still apply. */
ce2cded5
L
11779#ifdef __cplusplus
11780extern "C"
11781#endif
ce2cded5 11782char dld_link ();
d7040cdb
SE
11783int
11784main ()
11785{
81ecdfbb 11786return dld_link ();
d7040cdb
SE
11787 ;
11788 return 0;
11789}
11790_ACEOF
81ecdfbb 11791if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
11792 ac_cv_lib_dld_dld_link=yes
11793else
81ecdfbb 11794 ac_cv_lib_dld_dld_link=no
d7040cdb 11795fi
81ecdfbb
RW
11796rm -f core conftest.err conftest.$ac_objext \
11797 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
11798LIBS=$ac_check_lib_save_LIBS
11799fi
81ecdfbb
RW
11800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11801$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11802if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
718a6fd8 11803 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
ce2cded5
L
11804fi
11805
11806
11807fi
11808
11809
11810fi
11811
11812
11813fi
11814
11815
11816fi
11817
11818
11819fi
11820
11821 ;;
11822 esac
11823
11824 if test "x$lt_cv_dlopen" != xno; then
11825 enable_dlopen=yes
d7040cdb 11826 else
ce2cded5 11827 enable_dlopen=no
d7040cdb 11828 fi
ce2cded5
L
11829
11830 case $lt_cv_dlopen in
11831 dlopen)
11832 save_CPPFLAGS="$CPPFLAGS"
11833 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11834
11835 save_LDFLAGS="$LDFLAGS"
11836 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11837
11838 save_LIBS="$LIBS"
11839 LIBS="$lt_cv_dlopen_libs $LIBS"
11840
81ecdfbb
RW
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11842$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11843if test "${lt_cv_dlopen_self+set}" = set; then :
11844 $as_echo_n "(cached) " >&6
d7040cdb 11845else
ce2cded5
L
11846 if test "$cross_compiling" = yes; then :
11847 lt_cv_dlopen_self=cross
11848else
11849 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11850 lt_status=$lt_dlunknown
11851 cat > conftest.$ac_ext <<_LT_EOF
df7b86aa 11852#line $LINENO "configure"
ce2cded5
L
11853#include "confdefs.h"
11854
11855#if HAVE_DLFCN_H
11856#include <dlfcn.h>
11857#endif
11858
11859#include <stdio.h>
11860
11861#ifdef RTLD_GLOBAL
11862# define LT_DLGLOBAL RTLD_GLOBAL
11863#else
11864# ifdef DL_GLOBAL
11865# define LT_DLGLOBAL DL_GLOBAL
11866# else
11867# define LT_DLGLOBAL 0
11868# endif
11869#endif
11870
11871/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11872 find out it does not work in some platform. */
11873#ifndef LT_DLLAZY_OR_NOW
11874# ifdef RTLD_LAZY
11875# define LT_DLLAZY_OR_NOW RTLD_LAZY
11876# else
11877# ifdef DL_LAZY
11878# define LT_DLLAZY_OR_NOW DL_LAZY
11879# else
11880# ifdef RTLD_NOW
11881# define LT_DLLAZY_OR_NOW RTLD_NOW
11882# else
11883# ifdef DL_NOW
11884# define LT_DLLAZY_OR_NOW DL_NOW
11885# else
11886# define LT_DLLAZY_OR_NOW 0
11887# endif
11888# endif
11889# endif
11890# endif
11891#endif
11892
3725885a
RW
11893/* When -fvisbility=hidden is used, assume the code has been annotated
11894 correspondingly for the symbols needed. */
11895#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
df7b86aa 11896int fnord () __attribute__((visibility("default")));
3725885a
RW
11897#endif
11898
df7b86aa 11899int fnord () { return 42; }
ce2cded5
L
11900int main ()
11901{
11902 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11903 int status = $lt_dlunknown;
11904
11905 if (self)
11906 {
11907 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11908 else
11909 {
11910 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11911 else puts (dlerror ());
11912 }
ce2cded5
L
11913 /* dlclose (self); */
11914 }
11915 else
11916 puts (dlerror ());
11917
718a6fd8 11918 return status;
ce2cded5
L
11919}
11920_LT_EOF
81ecdfbb 11921 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5
L
11922 (eval $ac_link) 2>&5
11923 ac_status=$?
81ecdfbb
RW
11924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11925 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
ce2cded5
L
11926 (./conftest; exit; ) >&5 2>/dev/null
11927 lt_status=$?
11928 case x$lt_status in
11929 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11930 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11931 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11932 esac
11933 else :
11934 # compilation failed
11935 lt_cv_dlopen_self=no
11936 fi
11937fi
11938rm -fr conftest*
11939
d7040cdb
SE
11940
11941fi
81ecdfbb
RW
11942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11943$as_echo "$lt_cv_dlopen_self" >&6; }
ce2cded5
L
11944
11945 if test "x$lt_cv_dlopen_self" = xyes; then
11946 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
81ecdfbb
RW
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11948$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11949if test "${lt_cv_dlopen_self_static+set}" = set; then :
11950 $as_echo_n "(cached) " >&6
d7040cdb 11951else
ce2cded5
L
11952 if test "$cross_compiling" = yes; then :
11953 lt_cv_dlopen_self_static=cross
11954else
11955 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11956 lt_status=$lt_dlunknown
11957 cat > conftest.$ac_ext <<_LT_EOF
df7b86aa 11958#line $LINENO "configure"
ce2cded5
L
11959#include "confdefs.h"
11960
11961#if HAVE_DLFCN_H
11962#include <dlfcn.h>
11963#endif
11964
11965#include <stdio.h>
11966
11967#ifdef RTLD_GLOBAL
11968# define LT_DLGLOBAL RTLD_GLOBAL
11969#else
11970# ifdef DL_GLOBAL
11971# define LT_DLGLOBAL DL_GLOBAL
11972# else
11973# define LT_DLGLOBAL 0
11974# endif
11975#endif
11976
11977/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11978 find out it does not work in some platform. */
11979#ifndef LT_DLLAZY_OR_NOW
11980# ifdef RTLD_LAZY
11981# define LT_DLLAZY_OR_NOW RTLD_LAZY
11982# else
11983# ifdef DL_LAZY
11984# define LT_DLLAZY_OR_NOW DL_LAZY
11985# else
11986# ifdef RTLD_NOW
11987# define LT_DLLAZY_OR_NOW RTLD_NOW
11988# else
11989# ifdef DL_NOW
11990# define LT_DLLAZY_OR_NOW DL_NOW
11991# else
11992# define LT_DLLAZY_OR_NOW 0
11993# endif
11994# endif
11995# endif
11996# endif
11997#endif
11998
3725885a
RW
11999/* When -fvisbility=hidden is used, assume the code has been annotated
12000 correspondingly for the symbols needed. */
12001#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
df7b86aa 12002int fnord () __attribute__((visibility("default")));
3725885a
RW
12003#endif
12004
df7b86aa 12005int fnord () { return 42; }
ce2cded5 12006int main ()
d7040cdb 12007{
ce2cded5
L
12008 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12009 int status = $lt_dlunknown;
12010
12011 if (self)
12012 {
12013 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
12014 else
12015 {
12016 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12017 else puts (dlerror ());
12018 }
ce2cded5
L
12019 /* dlclose (self); */
12020 }
12021 else
12022 puts (dlerror ());
12023
718a6fd8 12024 return status;
d7040cdb 12025}
ce2cded5 12026_LT_EOF
81ecdfbb 12027 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
d7040cdb
SE
12028 (eval $ac_link) 2>&5
12029 ac_status=$?
81ecdfbb
RW
12030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12031 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
ce2cded5
L
12032 (./conftest; exit; ) >&5 2>/dev/null
12033 lt_status=$?
12034 case x$lt_status in
12035 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12036 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12037 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12038 esac
12039 else :
12040 # compilation failed
12041 lt_cv_dlopen_self_static=no
12042 fi
d7040cdb 12043fi
ce2cded5
L
12044rm -fr conftest*
12045
12046
d7040cdb 12047fi
81ecdfbb
RW
12048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12049$as_echo "$lt_cv_dlopen_self_static" >&6; }
ce2cded5
L
12050 fi
12051
12052 CPPFLAGS="$save_CPPFLAGS"
12053 LDFLAGS="$save_LDFLAGS"
12054 LIBS="$save_LIBS"
12055 ;;
12056 esac
12057
12058 case $lt_cv_dlopen_self in
12059 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12060 *) enable_dlopen_self=unknown ;;
12061 esac
12062
12063 case $lt_cv_dlopen_self_static in
12064 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12065 *) enable_dlopen_self_static=unknown ;;
12066 esac
d7040cdb 12067fi
d7040cdb 12068
d7040cdb
SE
12069
12070
d7040cdb 12071
d7040cdb 12072
ce2cded5
L
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085striplib=
12086old_striplib=
81ecdfbb
RW
12087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12088$as_echo_n "checking whether stripping libraries is possible... " >&6; }
ce2cded5
L
12089if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12090 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12091 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
81ecdfbb
RW
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12093$as_echo "yes" >&6; }
ce2cded5
L
12094else
12095# FIXME - insert some real tests, host_os isn't really good enough
12096 case $host_os in
12097 darwin*)
12098 if test -n "$STRIP" ; then
12099 striplib="$STRIP -x"
12100 old_striplib="$STRIP -S"
81ecdfbb
RW
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12102$as_echo "yes" >&6; }
ce2cded5 12103 else
81ecdfbb
RW
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12105$as_echo "no" >&6; }
d7040cdb 12106 fi
ce2cded5
L
12107 ;;
12108 *)
81ecdfbb
RW
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12110$as_echo "no" >&6; }
ce2cded5 12111 ;;
d7040cdb 12112 esac
d7040cdb
SE
12113fi
12114
d7040cdb 12115
d7040cdb 12116
d7040cdb 12117
d7040cdb 12118
d7040cdb 12119
d7040cdb 12120
d7040cdb 12121
d7040cdb 12122
d7040cdb 12123
d7040cdb 12124
d7040cdb 12125
ce2cded5 12126 # Report which library types will actually be built
81ecdfbb
RW
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12128$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12130$as_echo "$can_build_shared" >&6; }
d7040cdb 12131
81ecdfbb
RW
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12133$as_echo_n "checking whether to build shared libraries... " >&6; }
ce2cded5 12134 test "$can_build_shared" = "no" && enable_shared=no
d7040cdb 12135
ce2cded5
L
12136 # On AIX, shared libraries and static libraries use the same namespace, and
12137 # are all built from PIC.
12138 case $host_os in
12139 aix3*)
12140 test "$enable_shared" = yes && enable_static=no
12141 if test -n "$RANLIB"; then
12142 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12143 postinstall_cmds='$RANLIB $lib'
12144 fi
12145 ;;
d7040cdb 12146
50e7d84b 12147 aix[4-9]*)
ce2cded5
L
12148 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12149 test "$enable_shared" = yes && enable_static=no
12150 fi
12151 ;;
12152 esac
81ecdfbb
RW
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12154$as_echo "$enable_shared" >&6; }
ce2cded5 12155
81ecdfbb
RW
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12157$as_echo_n "checking whether to build static libraries... " >&6; }
ce2cded5
L
12158 # Make sure either enable_shared or enable_static is yes.
12159 test "$enable_shared" = yes || enable_static=yes
81ecdfbb
RW
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12161$as_echo "$enable_static" >&6; }
d7040cdb 12162
d7040cdb 12163
d7040cdb 12164
d7040cdb 12165
ce2cded5
L
12166fi
12167ac_ext=c
12168ac_cpp='$CPP $CPPFLAGS'
12169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12171ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 12172
ce2cded5 12173CC="$lt_save_CC"
d7040cdb 12174
d7040cdb 12175
d7040cdb 12176
d7040cdb 12177
d7040cdb 12178
d7040cdb 12179
d7040cdb 12180
d7040cdb 12181
d7040cdb 12182
d7040cdb
SE
12183
12184
d7040cdb
SE
12185
12186
81ecdfbb 12187 ac_config_commands="$ac_config_commands libtool"
d7040cdb
SE
12188
12189
d7040cdb 12190
d7040cdb 12191
ce2cded5 12192# Only expand once:
d7040cdb 12193
d7040cdb 12194
d7040cdb 12195
81ecdfbb
RW
12196# Check whether --enable-targets was given.
12197if test "${enable_targets+set}" = set; then :
12198 enableval=$enable_targets; case "${enableval}" in
12199 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
ce2cded5
L
12200 ;;
12201 no) enable_targets= ;;
12202 *) enable_targets=$enableval ;;
12203esac
81ecdfbb
RW
12204fi
12205
ce2cded5
L
12206ac_checking=yes
12207if grep '^RELEASE=y' ${srcdir}/../bfd/Makefile.am >/dev/null 2>/dev/null ; then
12208 ac_checking=
12209fi
81ecdfbb
RW
12210# Check whether --enable-checking was given.
12211if test "${enable_checking+set}" = set; then :
12212 enableval=$enable_checking; case "${enableval}" in
ce2cded5
L
12213 no|none) ac_checking= ;;
12214 *) ac_checking=yes ;;
12215esac
81ecdfbb
RW
12216fi
12217if test x$ac_checking != x ; then
d7040cdb 12218
81ecdfbb 12219$as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
d7040cdb 12220
ce2cded5 12221fi
d7040cdb 12222
ce2cded5 12223using_cgen=no
d7040cdb 12224
d7040cdb 12225
397841b5
AM
12226GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
12227cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12228/* end confdefs.h. */
12229__GNUC__
12230_ACEOF
12231if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12232 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
12233
12234else
12235 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
12236fi
12237rm -f conftest*
12238
d7040cdb 12239
81ecdfbb
RW
12240# Check whether --enable-werror was given.
12241if test "${enable_werror+set}" = set; then :
12242 enableval=$enable_werror; case "${enableval}" in
ce2cded5
L
12243 yes | y) ERROR_ON_WARNING="yes" ;;
12244 no | n) ERROR_ON_WARNING="no" ;;
81ecdfbb 12245 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
ce2cded5 12246 esac
81ecdfbb
RW
12247fi
12248
d7040cdb 12249
397841b5 12250# Disable -Wformat by default when using gcc on mingw
bb8541b9
L
12251case "${host}" in
12252 *-*-mingw32*)
12253 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12254 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
12255 fi
12256 ;;
12257 *) ;;
12258esac
12259
ce2cded5
L
12260# Enable -Werror by default when using gcc
12261if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12262 ERROR_ON_WARNING=yes
12263fi
12264
12265NO_WERROR=
12266if test "${ERROR_ON_WARNING}" = yes ; then
12267 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
12268 NO_WERROR="-Wno-error"
12269fi
12270
12271if test "${GCC}" = yes ; then
12272 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12273fi
12274
81ecdfbb
RW
12275# Check whether --enable-build-warnings was given.
12276if test "${enable_build_warnings+set}" = set; then :
12277 enableval=$enable_build_warnings; case "${enableval}" in
ce2cded5
L
12278 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
12279 no) if test "${GCC}" = yes ; then
12280 WARN_CFLAGS="-w"
12281 fi;;
12282 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12283 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
12284 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12285 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
12286 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12287esac
81ecdfbb
RW
12288fi
12289
d7040cdb 12290
ce2cded5
L
12291if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
12292 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
12293fi
d7040cdb 12294
d7040cdb 12295
d7040cdb 12296
d7040cdb 12297
d7040cdb 12298
ce2cded5 12299# Generate a header file
81ecdfbb 12300ac_config_headers="$ac_config_headers config.h:config.in"
d7040cdb 12301
d7040cdb 12302
df7b86aa
NC
12303# PR 14072
12304
12305
ce2cded5
L
12306# If we are on a DOS filesystem, we must use gdb.ini rather than
12307# .gdbinit.
12308case "${host}" in
12309 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
12310 GDBINIT="gdb.ini"
81ecdfbb 12311 ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
d7040cdb 12312
ce2cded5
L
12313 ;;
12314 *)
12315 GDBINIT=".gdbinit"
81ecdfbb 12316 ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
d7040cdb 12317
ce2cded5
L
12318 ;;
12319esac
d7040cdb 12320
d7040cdb 12321
ce2cded5 12322#We need this for the host. BOUT header is in host order.
81ecdfbb
RW
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12324$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12325if test "${ac_cv_c_bigendian+set}" = set; then :
12326 $as_echo_n "(cached) " >&6
12327else
12328 ac_cv_c_bigendian=unknown
12329 # See if we're dealing with a universal compiler.
12330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12331/* end confdefs.h. */
12332#ifndef __APPLE_CC__
12333 not a universal capable compiler
12334 #endif
12335 typedef int dummy;
12336
12337_ACEOF
12338if ac_fn_c_try_compile "$LINENO"; then :
12339
12340 # Check for potential -arch flags. It is not universal unless
12341 # there are at least two -arch flags with different values.
12342 ac_arch=
12343 ac_prev=
12344 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12345 if test -n "$ac_prev"; then
12346 case $ac_word in
12347 i?86 | x86_64 | ppc | ppc64)
12348 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12349 ac_arch=$ac_word
12350 else
12351 ac_cv_c_bigendian=universal
12352 break
12353 fi
12354 ;;
12355 esac
12356 ac_prev=
12357 elif test "x$ac_word" = "x-arch"; then
12358 ac_prev=arch
12359 fi
12360 done
12361fi
12362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12363 if test $ac_cv_c_bigendian = unknown; then
12364 # See if sys/param.h defines the BYTE_ORDER macro.
12365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
12366/* end confdefs.h. */
12367#include <sys/types.h>
81ecdfbb 12368 #include <sys/param.h>
d7040cdb 12369
ce2cded5
L
12370int
12371main ()
12372{
81ecdfbb
RW
12373#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12374 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12375 && LITTLE_ENDIAN)
12376 bogus endian macros
12377 #endif
d7040cdb 12378
ce2cded5
L
12379 ;
12380 return 0;
12381}
12382_ACEOF
81ecdfbb 12383if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5 12384 # It does; now see whether it defined to BIG_ENDIAN or not.
81ecdfbb 12385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
12386/* end confdefs.h. */
12387#include <sys/types.h>
81ecdfbb 12388 #include <sys/param.h>
d7040cdb 12389
ce2cded5
L
12390int
12391main ()
12392{
12393#if BYTE_ORDER != BIG_ENDIAN
81ecdfbb
RW
12394 not big endian
12395 #endif
d7040cdb 12396
ce2cded5
L
12397 ;
12398 return 0;
12399}
12400_ACEOF
81ecdfbb 12401if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5
L
12402 ac_cv_c_bigendian=yes
12403else
81ecdfbb 12404 ac_cv_c_bigendian=no
ce2cded5 12405fi
81ecdfbb
RW
12406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12407fi
12408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12409 fi
12410 if test $ac_cv_c_bigendian = unknown; then
12411 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12413/* end confdefs.h. */
12414#include <limits.h>
d7040cdb 12415
81ecdfbb
RW
12416int
12417main ()
12418{
12419#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12420 bogus endian macros
12421 #endif
12422
12423 ;
12424 return 0;
12425}
ce2cded5 12426_ACEOF
81ecdfbb
RW
12427if ac_fn_c_try_compile "$LINENO"; then :
12428 # It does; now see whether it defined to _BIG_ENDIAN or not.
12429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 12430/* end confdefs.h. */
81ecdfbb
RW
12431#include <limits.h>
12432
ce2cded5
L
12433int
12434main ()
12435{
81ecdfbb
RW
12436#ifndef _BIG_ENDIAN
12437 not big endian
12438 #endif
12439
ce2cded5
L
12440 ;
12441 return 0;
12442}
12443_ACEOF
81ecdfbb 12444if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5 12445 ac_cv_c_bigendian=yes
81ecdfbb
RW
12446else
12447 ac_cv_c_bigendian=no
d7040cdb 12448fi
81ecdfbb 12449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce2cded5 12450fi
81ecdfbb
RW
12451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12452 fi
12453 if test $ac_cv_c_bigendian = unknown; then
12454 # Compile a test program.
12455 if test "$cross_compiling" = yes; then :
12456 # Try to guess by grepping values from an object file.
12457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12458/* end confdefs.h. */
12459short int ascii_mm[] =
12460 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12461 short int ascii_ii[] =
12462 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12463 int use_ascii (int i) {
12464 return ascii_mm[i] + ascii_ii[i];
12465 }
12466 short int ebcdic_ii[] =
12467 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12468 short int ebcdic_mm[] =
12469 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12470 int use_ebcdic (int i) {
12471 return ebcdic_mm[i] + ebcdic_ii[i];
12472 }
12473 extern int foo;
d7040cdb 12474
81ecdfbb
RW
12475int
12476main ()
12477{
12478return use_ascii (foo) == use_ebcdic (foo);
12479 ;
12480 return 0;
12481}
12482_ACEOF
12483if ac_fn_c_try_compile "$LINENO"; then :
12484 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12485 ac_cv_c_bigendian=yes
12486 fi
12487 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12488 if test "$ac_cv_c_bigendian" = unknown; then
12489 ac_cv_c_bigendian=no
12490 else
12491 # finding both strings is unlikely to happen, but who knows?
12492 ac_cv_c_bigendian=unknown
12493 fi
12494 fi
ce2cded5 12495fi
81ecdfbb 12496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce2cded5 12497else
81ecdfbb 12498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 12499/* end confdefs.h. */
81ecdfbb 12500$ac_includes_default
ce2cded5
L
12501int
12502main ()
12503{
81ecdfbb
RW
12504
12505 /* Are we little or big endian? From Harbison&Steele. */
12506 union
12507 {
12508 long int l;
12509 char c[sizeof (long int)];
12510 } u;
12511 u.l = 1;
12512 return u.c[sizeof (long int) - 1] == 1;
12513
12514 ;
12515 return 0;
ce2cded5 12516}
d7040cdb 12517_ACEOF
81ecdfbb 12518if ac_fn_c_try_run "$LINENO"; then :
ce2cded5
L
12519 ac_cv_c_bigendian=no
12520else
81ecdfbb 12521 ac_cv_c_bigendian=yes
d7040cdb 12522fi
81ecdfbb
RW
12523rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12524 conftest.$ac_objext conftest.beam conftest.$ac_ext
d7040cdb 12525fi
81ecdfbb
RW
12526
12527 fi
ce2cded5 12528fi
81ecdfbb
RW
12529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12530$as_echo "$ac_cv_c_bigendian" >&6; }
12531 case $ac_cv_c_bigendian in #(
12532 yes)
12533 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12534;; #(
12535 no)
12536 ;; #(
12537 universal)
d7040cdb 12538
81ecdfbb
RW
12539$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12540
12541 ;; #(
12542 *)
12543 as_fn_error "unknown endianness
12544 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12545 esac
d7040cdb 12546
d7040cdb 12547
ce2cded5 12548te_file=generic
d7040cdb 12549
ce2cded5
L
12550# Makefile target for installing gas in $(tooldir)/bin.
12551install_tooldir=install-exec-tooldir
d7040cdb 12552
ce2cded5
L
12553canon_targets=""
12554all_targets=no
12555if test -n "$enable_targets" ; then
12556 for t in `echo $enable_targets | sed 's/,/ /g'`; do
12557 if test $t = "all"; then
12558 all_targets=yes
12559 continue
12560 fi
12561 result=`$ac_config_sub $t 2>/dev/null`
12562 if test -n "$result" ; then
12563 canon_targets="$canon_targets $result"
12564# else
12565# # Permit "all", etc. We don't support it yet though.
12566# canon_targets="$canon_targets $t"
12567 fi
12568 done
12569 _gas_uniq_list="$canon_targets"
d7040cdb
SE
12570_gas_uniq_newlist=""
12571for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12572 case $_gas_uniq_i in
12573 _gas_uniq_dummy) ;;
12574 *) case " $_gas_uniq_newlist " in
12575 *" $_gas_uniq_i "*) ;;
12576 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12577 esac ;;
12578 esac
12579done
ce2cded5 12580canon_targets=$_gas_uniq_newlist
d7040cdb 12581
ce2cded5
L
12582fi
12583
12584emulations=""
12585
12586for this_target in $target $canon_targets ; do
12587
12588 targ=${this_target}
12589 . ${srcdir}/configure.tgt
12590
12591 case ${target_cpu} in
12592 crisv32)
12593
12594cat >>confdefs.h <<_ACEOF
12595#define DEFAULT_CRIS_ARCH $arch
d7040cdb 12596_ACEOF
ce2cded5
L
12597
12598 ;;
12599 esac
12600
12601 if test ${this_target} = $target ; then
12602 target_cpu_type=${cpu_type}
12603 elif test ${target_cpu_type} != ${cpu_type} ; then
12604 continue
12605 fi
12606
12607 generic_target=${cpu_type}-${target_vendor}-${target_os}
12608 case ${generic_target} in
12609 i386-*-sco3.2v5*)
12610 if test ${this_target} = $target; then
12611
81ecdfbb 12612$as_echo "#define SCO_ELF 1" >>confdefs.h
ce2cded5
L
12613
12614 fi
12615 ;;
12616
12617 i386-*-msdosdjgpp* \
12618 | i386-*-go32* \
12619 | i386-go32-rtems*)
12620
81ecdfbb 12621$as_echo "#define STRICTCOFF 1" >>confdefs.h
ce2cded5
L
12622
12623 ;;
12624
12625 i860-*-*)
81ecdfbb
RW
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
12627$as_echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;}
ce2cded5
L
12628 ;;
12629
7ba29e2a
NC
12630 microblaze*)
12631 ;;
12632
ce2cded5
L
12633 mips-sony-bsd*)
12634 ;;
12635 mips-*-bsd*)
81ecdfbb 12636 as_fn_error "Unknown vendor for mips-bsd configuration." "$LINENO" 5
ce2cded5
L
12637 ;;
12638
e5231592 12639 ppc-*-aix[5-9].*)
ce2cded5 12640
81ecdfbb 12641$as_echo "#define AIX_WEAK_SUPPORT 1" >>confdefs.h
ce2cded5
L
12642
12643 ;;
12644 ppc-*-linux-*)
12645 case "$endian" in
12646 big) ;;
81ecdfbb 12647 *) as_fn_error "GNU/Linux must be configured big endian" "$LINENO" 5 ;;
ce2cded5
L
12648 esac
12649 ;;
12650 ppc-*-solaris*)
12651 if test ${this_target} = $target; then
12652
81ecdfbb 12653$as_echo "#define TARGET_SOLARIS_COMMENT 1" >>confdefs.h
ce2cded5
L
12654
12655 fi
12656 if test x${endian} = xbig; then
81ecdfbb 12657 as_fn_error "Solaris must be configured little endian" "$LINENO" 5
ce2cded5
L
12658 fi
12659 ;;
12660
12661 sh*-*-symbianelf*)
12662
81ecdfbb 12663$as_echo "#define TARGET_SYMBIAN 1" >>confdefs.h
ce2cded5
L
12664
12665 ;;
d7040cdb 12666 esac
d7040cdb 12667
ce2cded5
L
12668 if test ${this_target} = $target ; then
12669 endian_def=
12670 if test x${endian} = xbig; then
12671 endian_def=1
12672 elif test x${endian} = xlittle; then
12673 endian_def=0
12674 fi
12675 if test x${endian_def} != x; then
12676
12677cat >>confdefs.h <<_ACEOF
12678#define TARGET_BYTES_BIG_ENDIAN $endian_def
12679_ACEOF
12680
12681 fi
12682 fi
12683
12684# Other random stuff.
12685
12686 case ${cpu_type} in
12687 mips)
12688 # Set mips_cpu to the name of the default CPU.
12689 case ${target_cpu} in
12690 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
12691 mips_cpu=from-abi
12692 ;;
12693 mipsisa32 | mipsisa32el)
12694 mips_cpu=mips32
12695 ;;
12696 mipsisa32r2 | mipsisa32r2el)
12697 mips_cpu=mips32r2
12698 ;;
12699 mipsisa64 | mipsisa64el)
12700 mips_cpu=mips64
12701 ;;
12702 mipsisa64r2 | mipsisa64r2el)
12703 mips_cpu=mips64r2
12704 ;;
12705 mipstx39 | mipstx39el)
12706 mips_cpu=r3900
12707 ;;
12708 mips64vr | mips64vrel)
12709 mips_cpu=vr4100
12710 ;;
12711 mipsisa32r2* | mipsisa64r2*)
12712 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
12713 ;;
12714 mips64* | mipsisa64* | mipsisa32*)
12715 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
12716 ;;
12717 *)
81ecdfbb 12718 as_fn_error "$target_cpu isn't a supported MIPS CPU name" "$LINENO" 5
ce2cded5
L
12719 ;;
12720 esac
12721 # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
12722 # binaries. It's a GNU extension that some OSes don't understand.
12723 # The value only matters on ELF targets.
12724 case ${target} in
12725 *-*-irix*)
12726 use_e_mips_abi_o32=0
12727 ;;
12728 *)
12729 use_e_mips_abi_o32=1
12730 ;;
12731 esac
12732 # Decide whether to generate 32-bit or 64-bit code by default.
12733 # Used to resolve -march=from-abi when an embedded ABI is selected.
12734 case ${target} in
12735 mips64*-*-* | mipsisa64*-*-*)
12736 mips_default_64bit=1
12737 ;;
12738 *)
12739 mips_default_64bit=0
12740 ;;
12741 esac
12742 # Decide which ABI to target by default.
12743 case ${target} in
aeffff67 12744 mips64*-linux* | mips-sgi-irix6* | mips64*-freebsd* | mips64*-kfreebsd*-gnu)
ce2cded5
L
12745 mips_default_abi=N32_ABI
12746 ;;
aeffff67 12747 mips*-linux* | mips*-freebsd* | mips*-kfreebsd*-gnu)
ce2cded5
L
12748 mips_default_abi=O32_ABI
12749 ;;
12750 mips64*-openbsd*)
12751 mips_default_abi=N64_ABI
12752 ;;
12753 *)
12754 mips_default_abi=NO_ABI
12755 ;;
12756 esac
12757
12758cat >>confdefs.h <<_ACEOF
12759#define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
d7040cdb 12760_ACEOF
d7040cdb
SE
12761
12762
12763cat >>confdefs.h <<_ACEOF
ce2cded5 12764#define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
d7040cdb
SE
12765_ACEOF
12766
12767
12768cat >>confdefs.h <<_ACEOF
ce2cded5 12769#define MIPS_DEFAULT_64BIT $mips_default_64bit
d7040cdb
SE
12770_ACEOF
12771
12772
ce2cded5
L
12773cat >>confdefs.h <<_ACEOF
12774#define MIPS_DEFAULT_ABI $mips_default_abi
12775_ACEOF
d7040cdb 12776
ce2cded5
L
12777 ;;
12778 esac
d7040cdb 12779
ce2cded5
L
12780 # Do we need the opcodes library?
12781 case ${cpu_type} in
12782 vax | tic30)
12783 ;;
d7040cdb 12784
ce2cded5
L
12785 *)
12786 need_opcodes=yes
d7040cdb 12787
ce2cded5
L
12788 case "${enable_shared}" in
12789 yes) shared_opcodes=true ;;
12790 *opcodes*) shared_opcodes=true ;;
12791 *) shared_opcodes=false ;;
12792 esac
12793 ;;
12794 esac
d7040cdb 12795
ce2cded5
L
12796 # Any other special object files needed ?
12797 case ${cpu_type} in
d7040cdb 12798
ce2cded5
L
12799 bfin)
12800 echo ${extra_objects} | grep -s "bfin-parse.o"
12801 if test $? -ne 0 ; then
12802 extra_objects="$extra_objects bfin-parse.o"
12803 fi
d7040cdb 12804
df7b86aa 12805 echo ${extra_objects} | grep -s "bfin-lex-wrapper.o"
ce2cded5 12806 if test $? -ne 0 ; then
df7b86aa 12807 extra_objects="$extra_objects bfin-lex-wrapper.o"
ce2cded5
L
12808 fi
12809 ;;
d7040cdb 12810
cfb8c092 12811 epiphany | fr30 | ip2k | iq2000 | lm32 | m32r | openrisc)
ce2cded5
L
12812 using_cgen=yes
12813 ;;
d7040cdb 12814
ce2cded5
L
12815 m32c)
12816 using_cgen=yes
12817 ;;
12818 frv)
12819 using_cgen=yes
12820 ;;
12821 m68k)
12822 case ${extra_objects} in
12823 *m68k-parse.o*) ;;
12824 *) extra_objects="$extra_objects m68k-parse.o" ;;
12825 esac
12826 ;;
d7040cdb 12827
ce2cded5
L
12828 mep)
12829 using_cgen=yes
12830 ;;
d7040cdb 12831
ce2cded5
L
12832 mips)
12833 echo ${extra_objects} | grep -s "itbl-parse.o"
12834 if test $? -ne 0 ; then
12835 extra_objects="$extra_objects itbl-parse.o"
12836 fi
d7040cdb 12837
df7b86aa 12838 echo ${extra_objects} | grep -s "itbl-lex-wrapper.o"
ce2cded5 12839 if test $? -ne 0 ; then
df7b86aa 12840 extra_objects="$extra_objects itbl-lex-wrapper.o"
ce2cded5 12841 fi
d7040cdb 12842
ce2cded5
L
12843 echo ${extra_objects} | grep -s "itbl-ops.o"
12844 if test $? -ne 0 ; then
12845 extra_objects="$extra_objects itbl-ops.o"
12846 fi
12847 ;;
d7040cdb 12848
ce2cded5
L
12849 mt)
12850 using_cgen=yes
12851 ;;
d7040cdb 12852
ce2cded5
L
12853 i386 | s390 | sparc)
12854 if test $this_target = $target ; then
d7040cdb
SE
12855
12856cat >>confdefs.h <<_ACEOF
ce2cded5 12857#define DEFAULT_ARCH "${arch}"
d7040cdb
SE
12858_ACEOF
12859
ce2cded5
L
12860 fi
12861 ;;
d7040cdb 12862
99c513f6
DD
12863 rl78)
12864 echo ${extra_objects} | grep -s "rl78-parse.o"
12865 if test $? -ne 0 ; then
12866 extra_objects="$extra_objects rl78-parse.o"
12867 fi
12868 ;;
12869
c7927a3c
NC
12870 rx)
12871 echo ${extra_objects} | grep -s "rx-parse.o"
12872 if test $? -ne 0 ; then
12873 extra_objects="$extra_objects rx-parse.o"
12874 fi
12875 ;;
12876
ce2cded5
L
12877 xstormy16)
12878 using_cgen=yes
12879 ;;
d7040cdb 12880
ce2cded5
L
12881 xc16x)
12882 using_cgen=yes
12883 ;;
d7040cdb 12884
ce2cded5
L
12885 xtensa)
12886 echo ${extra_objects} | grep -s "xtensa-relax.o"
12887 if test $? -ne 0 ; then
12888 extra_objects="$extra_objects xtensa-relax.o"
12889 fi
12890 ;;
d7040cdb 12891
ce2cded5
L
12892 *)
12893 ;;
12894 esac
d7040cdb 12895
ce2cded5
L
12896 if test $using_cgen = yes ; then
12897 case "x${extra_objects}" in
12898 *cgen.o*) ;;
12899 *) extra_objects="$extra_objects cgen.o" ;;
12900 esac
12901 fi
d7040cdb 12902
ce2cded5 12903# See if we really can support this configuration with the emulation code.
d7040cdb 12904
ce2cded5
L
12905 if test $this_target = $target ; then
12906 obj_format=$fmt
12907 te_file=$em
12908 fi
d7040cdb 12909
b11d79f2
TG
12910 case ${te_file} in
12911 vms) extra_objects="$extra_objects te-vms.o" ;;
12912 esac
12913
ce2cded5 12914# From target name and format, produce a list of supported emulations.
d7040cdb 12915
ce2cded5
L
12916 case ${generic_target}-${fmt} in
12917 mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
aeffff67
RS
12918 mips*-*-linux*-* | mips*-*-freebsd* | mips*-*-kfreebsd*-gnu)
12919 case "$endian" in
ce2cded5
L
12920 big) emulation="mipsbelf mipslelf mipself" ;;
12921 *) emulation="mipslelf mipsbelf mipself" ;;
12922 esac ;;
12923 mips-*-lnews*-ecoff) ;;
12924 mips-*-*-ecoff) case "$endian" in
12925 big) emulation="mipsbecoff mipslecoff mipsecoff" ;;
12926 *) emulation="mipslecoff mipsbecoff mipsecoff" ;;
12927 esac ;;
12928 mips-*-*-elf) case "$endian" in
12929 big) emulation="mipsbelf mipslelf mipself" ;;
12930 *) emulation="mipslelf mipsbelf mipself" ;;
12931 esac ;;
12932 mips-*-sysv4*MP*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
12933 # i386-pc-pe-coff != i386-pc-coff.
12934 i386-*-pe-coff) ;;
12935 # Uncommenting the next line will turn on support for i386 AOUT
12936 # for the default linux configuration
12937 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
12938 #
12939 i386-*-aout) emulation="i386aout" ;;
12940 i386-*-coff) emulation="i386coff" ;;
12941 i386-*-elf) emulation="i386elf" ;;
d7040cdb 12942
ce2cded5
L
12943 # Always all formats. The first stated emulation becomes the default.
12944 cris-*-*aout*) emulation="crisaout criself" ;;
12945 cris-*-*) emulation="criself crisaout" ;;
12946 esac
13b2be9c 12947
ce2cded5 12948 emulations="$emulations $emulation"
13b2be9c 12949
13b2be9c 12950done
13b2be9c 12951
ce2cded5
L
12952# Turn on all targets if possible
12953if test ${all_targets} = "yes"; then
12954 case ${target_cpu_type} in
12955 i386)
12956 case ${obj_format} in
12957 aout)
12958 emulations="$emulations i386coff i386elf"
12959 ;;
12960 coff)
12961 emulations="$emulations i386aout i386elf"
12962 ;;
12963 elf)
12964 emulations="$emulations i386aout i386coff"
12965 ;;
12966 esac
12967 ;;
12968 x86_64)
12969 case ${obj_format} in
12970 aout)
12971 emulations="$emulations i386coff i386elf"
12972 ;;
12973 coff)
12974 emulations="$emulations i386aout i386elf"
12975 ;;
12976 elf)
12977 emulations="$emulations i386aout i386coff"
12978 ;;
12979 esac
12980 ;;
12981 esac
13b2be9c 12982fi
c8615825 12983
39871c07
AM
12984# PE code has way too many macros tweaking behaviour
12985case ${te_file} in
12986 pe*) emulations="" ;;
12987esac
12988
ce2cded5
L
12989# Assign floating point type. Most processors with FP support
12990# IEEE FP. On those that don't support FP at all, usually IEEE
12991# is emulated.
12992case ${target_cpu} in
12993 vax | pdp11 ) atof=vax ;;
12994 *) atof=ieee ;;
12995esac
c8615825 12996
ce2cded5 12997case "${obj_format}" in
81ecdfbb 12998 "") as_fn_error "GAS does not know what format to use for target ${target}" "$LINENO" 5 ;;
ce2cded5 12999esac
13b2be9c 13000
ce2cded5
L
13001# Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
13002cgen_cpu_prefix=""
13003if test $using_cgen = yes ; then
13004 case ${target_cpu} in
13005 *) cgen_cpu_prefix=${target_cpu} ;;
13006 esac
c8615825 13007
c8615825 13008
81ecdfbb 13009$as_echo "#define USING_CGEN 1" >>confdefs.h
d7040cdb 13010
d7040cdb 13011fi
13b2be9c 13012
ce2cded5
L
13013
13014if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
81ecdfbb 13015 as_fn_error "GAS does not support target CPU ${target_cpu_type}" "$LINENO" 5
13b2be9c 13016fi
ce2cded5
L
13017
13018if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
81ecdfbb 13019 as_fn_error "GAS does not have support for object file format ${obj_format}" "$LINENO" 5
13b2be9c
DJ
13020fi
13021
ce2cded5
L
13022# Some COFF configurations want these random other flags set.
13023case ${obj_format} in
13024 coff)
13025 case ${target_cpu_type} in
13026 i386)
81ecdfbb 13027$as_echo "#define I386COFF 1" >>confdefs.h
ce2cded5
L
13028 ;;
13029 m68k)
81ecdfbb 13030$as_echo "#define M68KCOFF 1" >>confdefs.h
ce2cded5
L
13031 ;;
13032 m88k)
81ecdfbb 13033$as_echo "#define M88KCOFF 1" >>confdefs.h
ce2cded5
L
13034 ;;
13035 x86_64)
81ecdfbb 13036$as_echo "#define I386COFF 1" >>confdefs.h
ce2cded5
L
13037 ;;
13038 esac
13039 ;;
13040esac
13041
13042# Getting this done right is going to be a bitch. Each configuration specified
13043# with --enable-targets=... should be checked for environment, format, cpu
13044# setting.
13045#
13046# For each configuration, the necessary object file support code must be linked
13047# in. This might be only one, it might be up to four. The necessary emulation
13048# code needs to be provided, too.
13049#
13050# And then there's "--enable-targets=all"....
13051#
13052# For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
13053
13054formats="${obj_format}"
13055emfiles=""
13056EMULATIONS=""
13057_gas_uniq_list="$emulations"
13058_gas_uniq_newlist=""
13059for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
13060 case $_gas_uniq_i in
13061 _gas_uniq_dummy) ;;
13062 *) case " $_gas_uniq_newlist " in
13063 *" $_gas_uniq_i "*) ;;
13064 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
13065 esac ;;
13066 esac
13067done
13068emulations=$_gas_uniq_newlist
13069
13070for em in . $emulations ; do
13071 case $em in
13072 .) continue ;;
13073 mipsbelf | mipslelf | mipself)
13074 fmt=elf file=mipself ;;
13075 mipsbecoff | mipslecoff | mipsecoff)
13076 fmt=ecoff file=mipsecoff ;;
13077 *coff)
13078 fmt=coff file=$em ;;
13079 *aout)
13080 fmt=aout file=$em ;;
13081 *elf)
13082 fmt=elf file=$em ;;
13083 esac
13084 formats="$formats $fmt"
13085 emfiles="$emfiles e-$file.o"
13086 EMULATIONS="$EMULATIONS &$em,"
13087done
13088_gas_uniq_list="$formats"
13089_gas_uniq_newlist=""
13090for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
13091 case $_gas_uniq_i in
13092 _gas_uniq_dummy) ;;
13093 *) case " $_gas_uniq_newlist " in
13094 *" $_gas_uniq_i "*) ;;
13095 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
13096 esac ;;
13097 esac
13b2be9c 13098done
ce2cded5 13099formats=$_gas_uniq_newlist
13b2be9c 13100
ce2cded5
L
13101_gas_uniq_list="$emfiles"
13102_gas_uniq_newlist=""
13103for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
13104 case $_gas_uniq_i in
13105 _gas_uniq_dummy) ;;
13106 *) case " $_gas_uniq_newlist " in
13107 *" $_gas_uniq_i "*) ;;
13108 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
13109 esac ;;
13110 esac
13111done
13112emfiles=$_gas_uniq_newlist
d7040cdb 13113
ce2cded5
L
13114if test `set . $formats ; shift ; echo $#` -gt 1 ; then
13115 for fmt in $formats ; do
13116 case $fmt in
13117 aout)
81ecdfbb 13118$as_echo "#define OBJ_MAYBE_AOUT 1" >>confdefs.h
ce2cded5
L
13119 ;;
13120 bout)
81ecdfbb 13121$as_echo "#define OBJ_MAYBE_BOUT 1" >>confdefs.h
ce2cded5
L
13122 ;;
13123 coff)
81ecdfbb 13124$as_echo "#define OBJ_MAYBE_COFF 1" >>confdefs.h
ce2cded5
L
13125 ;;
13126 ecoff)
81ecdfbb 13127$as_echo "#define OBJ_MAYBE_ECOFF 1" >>confdefs.h
ce2cded5
L
13128 ;;
13129 elf)
81ecdfbb 13130$as_echo "#define OBJ_MAYBE_ELF 1" >>confdefs.h
ce2cded5
L
13131 ;;
13132 generic)
81ecdfbb 13133$as_echo "#define OBJ_MAYBE_GENERIC 1" >>confdefs.h
ce2cded5
L
13134 ;;
13135 som)
81ecdfbb 13136$as_echo "#define OBJ_MAYBE_SOM 1" >>confdefs.h
ce2cded5
L
13137 ;;
13138 esac
13139 extra_objects="$extra_objects obj-$fmt.o"
13140 done
13141 obj_format=multi
13b2be9c 13142fi
ce2cded5
L
13143if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
13144 DEFAULT_EMULATION=`set . $emulations ; echo $2`
13145 # e-mips* has more than one emulation per file, e-i386* has just one at the
13146 # moment. If only one emulation is specified, then don't define
13147 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
13148 case "${obj_format}${emfiles}" in
13149 multi* | *mips*)
13150 extra_objects="$extra_objects $emfiles"
d7040cdb 13151
81ecdfbb 13152$as_echo "#define USE_EMULATIONS 1" >>confdefs.h
ce2cded5
L
13153 ;;
13154 esac
13155fi
d7040cdb 13156
13b2be9c 13157
ce2cded5
L
13158cat >>confdefs.h <<_ACEOF
13159#define EMULATIONS $EMULATIONS
13b2be9c 13160_ACEOF
d7040cdb 13161
d7040cdb 13162
ce2cded5
L
13163cat >>confdefs.h <<_ACEOF
13164#define DEFAULT_EMULATION "$DEFAULT_EMULATION"
d7040cdb 13165_ACEOF
d7040cdb 13166
d7040cdb 13167
ce2cded5 13168reject_dev_configs=yes
252b5132 13169
ce2cded5
L
13170case ${reject_dev_configs}-${dev} in
13171 yes-yes) # Oops.
81ecdfbb 13172 as_fn_error "GAS does not support the ${generic_target} configuration." "$LINENO" 5
ce2cded5 13173 ;;
d7040cdb
SE
13174esac
13175
13b2be9c 13176
ce2cded5
L
13177
13178
13179
13180
13181
13182# do we need the opcodes library?
13183case "${need_opcodes}" in
13184yes)
13185 OPCODES_LIB=../opcodes/libopcodes.la
13186 ;;
13187esac
13188
13189
13190
13191
13192cat >>confdefs.h <<_ACEOF
13193#define TARGET_ALIAS "${target_alias}"
d7040cdb 13194_ACEOF
20e95c23 13195
20e95c23 13196
ce2cded5
L
13197cat >>confdefs.h <<_ACEOF
13198#define TARGET_CANONICAL "${target}"
13199_ACEOF
20e95c23 13200
d6d788bd 13201
ce2cded5
L
13202cat >>confdefs.h <<_ACEOF
13203#define TARGET_CPU "${target_cpu}"
13204_ACEOF
20e95c23 13205
ce2cded5
L
13206
13207cat >>confdefs.h <<_ACEOF
13208#define TARGET_VENDOR "${target_vendor}"
0efedc4c
AM
13209_ACEOF
13210
13211
ce2cded5
L
13212cat >>confdefs.h <<_ACEOF
13213#define TARGET_OS "${target_os}"
13214_ACEOF
13215
0efedc4c 13216
d7040cdb
SE
13217for ac_prog in 'bison -y' byacc
13218do
13219 # Extract the first word of "$ac_prog", so it can be a program name with args.
13220set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
13221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13222$as_echo_n "checking for $ac_word... " >&6; }
13223if test "${ac_cv_prog_YACC+set}" = set; then :
13224 $as_echo_n "(cached) " >&6
20e95c23 13225else
d7040cdb
SE
13226 if test -n "$YACC"; then
13227 ac_cv_prog_YACC="$YACC" # Let the user override the test.
d6d788bd 13228else
d7040cdb
SE
13229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13230for as_dir in $PATH
13231do
13232 IFS=$as_save_IFS
13233 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13234 for ac_exec_ext in '' $ac_executable_extensions; do
13235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 13236 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 13237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 13238 break 2
20e95c23 13239 fi
d7040cdb 13240done
81ecdfbb
RW
13241 done
13242IFS=$as_save_IFS
20e95c23 13243
d7040cdb
SE
13244fi
13245fi
13246YACC=$ac_cv_prog_YACC
13247if test -n "$YACC"; then
81ecdfbb
RW
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
13249$as_echo "$YACC" >&6; }
d7040cdb 13250else
81ecdfbb
RW
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13252$as_echo "no" >&6; }
d7040cdb 13253fi
20e95c23 13254
81ecdfbb 13255
d7040cdb
SE
13256 test -n "$YACC" && break
13257done
13258test -n "$YACC" || YACC="yacc"
20e95c23 13259
d7040cdb
SE
13260for ac_prog in flex lex
13261do
13262 # Extract the first word of "$ac_prog", so it can be a program name with args.
13263set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
13264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13265$as_echo_n "checking for $ac_word... " >&6; }
13266if test "${ac_cv_prog_LEX+set}" = set; then :
13267 $as_echo_n "(cached) " >&6
d6d788bd 13268else
d7040cdb
SE
13269 if test -n "$LEX"; then
13270 ac_cv_prog_LEX="$LEX" # Let the user override the test.
13271else
13272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13273for as_dir in $PATH
13274do
13275 IFS=$as_save_IFS
13276 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13277 for ac_exec_ext in '' $ac_executable_extensions; do
13278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 13279 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 13280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
13281 break 2
13282 fi
13283done
81ecdfbb
RW
13284 done
13285IFS=$as_save_IFS
20e95c23 13286
d7040cdb
SE
13287fi
13288fi
13289LEX=$ac_cv_prog_LEX
13290if test -n "$LEX"; then
81ecdfbb
RW
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
13292$as_echo "$LEX" >&6; }
20e95c23 13293else
81ecdfbb
RW
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13295$as_echo "no" >&6; }
13b2be9c
DJ
13296fi
13297
81ecdfbb 13298
d7040cdb
SE
13299 test -n "$LEX" && break
13300done
13301test -n "$LEX" || LEX=":"
20e95c23 13302
81ecdfbb
RW
13303if test "x$LEX" != "x:"; then
13304 cat >conftest.l <<_ACEOF
13305%%
13306a { ECHO; }
13307b { REJECT; }
13308c { yymore (); }
13309d { yyless (1); }
13310e { yyless (input () != 0); }
13311f { unput (yytext[0]); }
13312. { BEGIN INITIAL; }
13313%%
13314#ifdef YYTEXT_POINTER
13315extern char *yytext;
d7040cdb 13316#endif
d7040cdb 13317int
81ecdfbb 13318main (void)
d7040cdb 13319{
81ecdfbb 13320 return ! yylex () + ! yywrap ();
d7040cdb
SE
13321}
13322_ACEOF
81ecdfbb
RW
13323{ { ac_try="$LEX conftest.l"
13324case "(($ac_try" in
13325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13326 *) ac_try_echo=$ac_try;;
13327esac
13328eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13329$as_echo "$ac_try_echo"; } >&5
13330 (eval "$LEX conftest.l") 2>&5
d7040cdb 13331 ac_status=$?
81ecdfbb
RW
13332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13333 test $ac_status = 0; }
13334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
13335$as_echo_n "checking lex output file root... " >&6; }
13336if test "${ac_cv_prog_lex_root+set}" = set; then :
13337 $as_echo_n "(cached) " >&6
d7040cdb 13338else
d5fbea21 13339
81ecdfbb
RW
13340if test -f lex.yy.c; then
13341 ac_cv_prog_lex_root=lex.yy
13342elif test -f lexyy.c; then
13343 ac_cv_prog_lex_root=lexyy
13344else
13345 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
d6d788bd 13346fi
d7040cdb 13347fi
81ecdfbb
RW
13348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
13349$as_echo "$ac_cv_prog_lex_root" >&6; }
13350LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
d7040cdb 13351
81ecdfbb
RW
13352if test -z "${LEXLIB+set}"; then
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
13354$as_echo_n "checking lex library... " >&6; }
13355if test "${ac_cv_lib_lex+set}" = set; then :
13356 $as_echo_n "(cached) " >&6
d7040cdb 13357else
d7040cdb 13358
81ecdfbb
RW
13359 ac_save_LIBS=$LIBS
13360 ac_cv_lib_lex='none needed'
13361 for ac_lib in '' -lfl -ll; do
13362 LIBS="$ac_lib $ac_save_LIBS"
13363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13364/* end confdefs.h. */
13365`cat $LEX_OUTPUT_ROOT.c`
13366_ACEOF
13367if ac_fn_c_try_link "$LINENO"; then :
13368 ac_cv_lib_lex=$ac_lib
d7040cdb 13369fi
81ecdfbb
RW
13370rm -f core conftest.err conftest.$ac_objext \
13371 conftest$ac_exeext conftest.$ac_ext
13372 test "$ac_cv_lib_lex" != 'none needed' && break
13373 done
13374 LIBS=$ac_save_LIBS
d7040cdb
SE
13375
13376fi
81ecdfbb
RW
13377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
13378$as_echo "$ac_cv_lib_lex" >&6; }
13379 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
d7040cdb
SE
13380fi
13381
13b2be9c 13382
81ecdfbb
RW
13383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
13384$as_echo_n "checking whether yytext is a pointer... " >&6; }
13385if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
13386 $as_echo_n "(cached) " >&6
d7040cdb
SE
13387else
13388 # POSIX says lex can declare yytext either as a pointer or an array; the
81ecdfbb 13389# default is implementation-dependent. Figure out which it is, since
d7040cdb
SE
13390# not all implementations provide the %pointer and %array declarations.
13391ac_cv_prog_lex_yytext_pointer=no
d7040cdb 13392ac_save_LIBS=$LIBS
81ecdfbb
RW
13393LIBS="$LEXLIB $ac_save_LIBS"
13394cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13395/* end confdefs.h. */
13396#define YYTEXT_POINTER 1
d7040cdb 13397`cat $LEX_OUTPUT_ROOT.c`
13b2be9c 13398_ACEOF
81ecdfbb 13399if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 13400 ac_cv_prog_lex_yytext_pointer=yes
13b2be9c 13401fi
81ecdfbb
RW
13402rm -f core conftest.err conftest.$ac_objext \
13403 conftest$ac_exeext conftest.$ac_ext
d7040cdb 13404LIBS=$ac_save_LIBS
252b5132 13405
9b2b7d69 13406fi
81ecdfbb
RW
13407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
13408$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
d7040cdb 13409if test $ac_cv_prog_lex_yytext_pointer = yes; then
13b2be9c 13410
81ecdfbb 13411$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
9b2b7d69 13412
d6d788bd 13413fi
81ecdfbb 13414rm -f conftest.l $LEX_OUTPUT_ROOT.c
d7040cdb 13415
c8615825 13416fi
d7040cdb
SE
13417if test "$LEX" = :; then
13418 LEX=${am_missing_run}flex
13419fi
13420
006ad0a1 13421ALL_LINGUAS="fr tr es rw id ru fi ja"
d7040cdb
SE
13422# If we haven't got the data from the intl directory,
13423# assume NLS is disabled.
13424USE_NLS=no
13425LIBINTL=
13426LIBINTL_DEP=
13427INCINTL=
13428XGETTEXT=
13429GMSGFMT=
13430POSUB=
13431
13432if test -f ../intl/config.intl; then
13433 . ../intl/config.intl
13434fi
81ecdfbb
RW
13435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13436$as_echo_n "checking whether NLS is requested... " >&6; }
d7040cdb 13437if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13439$as_echo "no" >&6; }
d7040cdb 13440else
81ecdfbb
RW
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13442$as_echo "yes" >&6; }
d7040cdb 13443
81ecdfbb 13444$as_echo "#define ENABLE_NLS 1" >>confdefs.h
d7040cdb
SE
13445
13446
81ecdfbb
RW
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
13448$as_echo_n "checking for catalogs to be installed... " >&6; }
d7040cdb
SE
13449 # Look for .po and .gmo files in the source directory.
13450 CATALOGS=
13451 XLINGUAS=
13452 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13453 # If there aren't any .gmo files the shell will give us the
13454 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13455 # weeded out.
13456 case "$cat" in *\**)
13457 continue;;
13458 esac
13459 # The quadruple backslash is collapsed to a double backslash
13460 # by the backticks, then collapsed again by the double quotes,
13461 # leaving us with one backslash in the sed expression (right
13462 # before the dot that mustn't act as a wildcard).
13463 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13464 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13465 # The user is allowed to set LINGUAS to a list of languages to
13466 # install catalogs for. If it's empty that means "all of them."
13467 if test "x$LINGUAS" = x; then
13468 CATALOGS="$CATALOGS $cat"
13469 XLINGUAS="$XLINGUAS $lang"
13470 else
13471 case "$LINGUAS" in *$lang*)
13472 CATALOGS="$CATALOGS $cat"
13473 XLINGUAS="$XLINGUAS $lang"
13474 ;;
13475 esac
13476 fi
13477 done
13478 LINGUAS="$XLINGUAS"
81ecdfbb
RW
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
13480$as_echo "$LINGUAS" >&6; }
d7040cdb
SE
13481
13482
13483 DATADIRNAME=share
13484
13485 INSTOBJEXT=.mo
13486
13487 GENCAT=gencat
13488
13489 CATOBJEXT=.gmo
13490
13491fi
13492
13493 MKINSTALLDIRS=
13494 if test -n "$ac_aux_dir"; then
13495 case "$ac_aux_dir" in
13496 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13497 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13498 esac
13499 fi
13500 if test -z "$MKINSTALLDIRS"; then
13501 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13502 fi
13503
13504
13505
81ecdfbb
RW
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13507$as_echo_n "checking whether NLS is requested... " >&6; }
13508 # Check whether --enable-nls was given.
13509if test "${enable_nls+set}" = set; then :
13510 enableval=$enable_nls; USE_NLS=$enableval
d7040cdb
SE
13511else
13512 USE_NLS=yes
81ecdfbb
RW
13513fi
13514
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13516$as_echo "$USE_NLS" >&6; }
d7040cdb
SE
13517
13518
13519
13520
13521
13522
13523# Prepare PATH_SEPARATOR.
13524# The user is always right.
13525if test "${PATH_SEPARATOR+set}" != set; then
13526 echo "#! /bin/sh" >conf$$.sh
13527 echo "exit 0" >>conf$$.sh
13528 chmod +x conf$$.sh
13529 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13530 PATH_SEPARATOR=';'
13b2be9c 13531 else
d7040cdb 13532 PATH_SEPARATOR=:
13b2be9c 13533 fi
d7040cdb 13534 rm -f conf$$.sh
252b5132 13535fi
13b2be9c 13536
d7040cdb
SE
13537# Find out how to test for executable files. Don't use a zero-byte file,
13538# as systems may use methods other than mode bits to determine executability.
13539cat >conf$$.file <<_ASEOF
13540#! /bin/sh
13541exit 0
13542_ASEOF
13543chmod +x conf$$.file
13544if test -x conf$$.file >/dev/null 2>&1; then
13545 ac_executable_p="test -x"
13546else
13547 ac_executable_p="test -f"
13b2be9c 13548fi
d7040cdb 13549rm -f conf$$.file
13b2be9c 13550
d7040cdb
SE
13551# Extract the first word of "msgfmt", so it can be a program name with args.
13552set dummy msgfmt; ac_word=$2
81ecdfbb
RW
13553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13554$as_echo_n "checking for $ac_word... " >&6; }
13555if test "${ac_cv_path_MSGFMT+set}" = set; then :
13556 $as_echo_n "(cached) " >&6
252b5132 13557else
d7040cdb
SE
13558 case "$MSGFMT" in
13559 [\\/]* | ?:[\\/]*)
13560 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13561 ;;
13562 *)
13563 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13564 for ac_dir in $PATH; do
13565 IFS="$ac_save_IFS"
13566 test -z "$ac_dir" && ac_dir=.
13567 for ac_exec_ext in '' $ac_executable_extensions; do
13568 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13569 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
13570 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13571 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13572 break 2
13573 fi
13574 fi
13575 done
13576 done
13577 IFS="$ac_save_IFS"
13578 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13579 ;;
13580esac
252b5132 13581fi
d7040cdb
SE
13582MSGFMT="$ac_cv_path_MSGFMT"
13583if test "$MSGFMT" != ":"; then
81ecdfbb
RW
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13585$as_echo "$MSGFMT" >&6; }
252b5132 13586else
81ecdfbb
RW
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13588$as_echo "no" >&6; }
252b5132 13589fi
252b5132 13590
d7040cdb
SE
13591 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13592set dummy gmsgfmt; ac_word=$2
81ecdfbb
RW
13593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13594$as_echo_n "checking for $ac_word... " >&6; }
13595if test "${ac_cv_path_GMSGFMT+set}" = set; then :
13596 $as_echo_n "(cached) " >&6
13b2be9c 13597else
d7040cdb
SE
13598 case $GMSGFMT in
13599 [\\/]* | ?:[\\/]*)
13600 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13601 ;;
13602 *)
13603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13604for as_dir in $PATH
13605do
13606 IFS=$as_save_IFS
13607 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13608 for ac_exec_ext in '' $ac_executable_extensions; do
13609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 13610 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
13612 break 2
13613 fi
13614done
81ecdfbb
RW
13615 done
13616IFS=$as_save_IFS
252b5132 13617
d7040cdb
SE
13618 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13619 ;;
13620esac
13621fi
13622GMSGFMT=$ac_cv_path_GMSGFMT
d7040cdb 13623if test -n "$GMSGFMT"; then
81ecdfbb
RW
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13625$as_echo "$GMSGFMT" >&6; }
ac48eca1 13626else
81ecdfbb
RW
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13628$as_echo "no" >&6; }
6840198f 13629fi
6840198f 13630
13b2be9c 13631
20e95c23 13632
81ecdfbb 13633
d7040cdb
SE
13634# Prepare PATH_SEPARATOR.
13635# The user is always right.
13636if test "${PATH_SEPARATOR+set}" != set; then
13637 echo "#! /bin/sh" >conf$$.sh
13638 echo "exit 0" >>conf$$.sh
13639 chmod +x conf$$.sh
13640 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13641 PATH_SEPARATOR=';'
13642 else
13643 PATH_SEPARATOR=:
13644 fi
13645 rm -f conf$$.sh
13646fi
20e95c23 13647
d7040cdb
SE
13648# Find out how to test for executable files. Don't use a zero-byte file,
13649# as systems may use methods other than mode bits to determine executability.
13650cat >conf$$.file <<_ASEOF
13651#! /bin/sh
13652exit 0
13653_ASEOF
13654chmod +x conf$$.file
13655if test -x conf$$.file >/dev/null 2>&1; then
13656 ac_executable_p="test -x"
13b2be9c 13657else
d7040cdb 13658 ac_executable_p="test -f"
13b2be9c 13659fi
d7040cdb 13660rm -f conf$$.file
20e95c23 13661
d7040cdb
SE
13662# Extract the first word of "xgettext", so it can be a program name with args.
13663set dummy xgettext; ac_word=$2
81ecdfbb
RW
13664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13665$as_echo_n "checking for $ac_word... " >&6; }
13666if test "${ac_cv_path_XGETTEXT+set}" = set; then :
13667 $as_echo_n "(cached) " >&6
252b5132 13668else
d7040cdb
SE
13669 case "$XGETTEXT" in
13670 [\\/]* | ?:[\\/]*)
13671 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13672 ;;
13673 *)
13674 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13675 for ac_dir in $PATH; do
13676 IFS="$ac_save_IFS"
13677 test -z "$ac_dir" && ac_dir=.
13678 for ac_exec_ext in '' $ac_executable_extensions; do
13679 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13680 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13681 (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
13682 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13683 break 2
13684 fi
13685 fi
13686 done
13687 done
13688 IFS="$ac_save_IFS"
13689 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13690 ;;
13691esac
13b2be9c 13692fi
d7040cdb
SE
13693XGETTEXT="$ac_cv_path_XGETTEXT"
13694if test "$XGETTEXT" != ":"; then
81ecdfbb
RW
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13696$as_echo "$XGETTEXT" >&6; }
d7040cdb 13697else
81ecdfbb
RW
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13699$as_echo "no" >&6; }
13b2be9c 13700fi
13b2be9c 13701
d7040cdb 13702 rm -f messages.po
20e95c23 13703
13b2be9c 13704
d7040cdb
SE
13705# Prepare PATH_SEPARATOR.
13706# The user is always right.
13707if test "${PATH_SEPARATOR+set}" != set; then
13708 echo "#! /bin/sh" >conf$$.sh
13709 echo "exit 0" >>conf$$.sh
13710 chmod +x conf$$.sh
13711 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13712 PATH_SEPARATOR=';'
13713 else
13714 PATH_SEPARATOR=:
13715 fi
13716 rm -f conf$$.sh
252b5132 13717fi
20e95c23 13718
d7040cdb
SE
13719# Find out how to test for executable files. Don't use a zero-byte file,
13720# as systems may use methods other than mode bits to determine executability.
13721cat >conf$$.file <<_ASEOF
13722#! /bin/sh
13723exit 0
13724_ASEOF
13725chmod +x conf$$.file
13726if test -x conf$$.file >/dev/null 2>&1; then
13727 ac_executable_p="test -x"
252b5132 13728else
d7040cdb
SE
13729 ac_executable_p="test -f"
13730fi
13731rm -f conf$$.file
20e95c23 13732
d7040cdb
SE
13733# Extract the first word of "msgmerge", so it can be a program name with args.
13734set dummy msgmerge; ac_word=$2
81ecdfbb
RW
13735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13736$as_echo_n "checking for $ac_word... " >&6; }
13737if test "${ac_cv_path_MSGMERGE+set}" = set; then :
13738 $as_echo_n "(cached) " >&6
20e95c23 13739else
d7040cdb
SE
13740 case "$MSGMERGE" in
13741 [\\/]* | ?:[\\/]*)
13742 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13743 ;;
13744 *)
13745 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13746 for ac_dir in $PATH; do
13747 IFS="$ac_save_IFS"
13748 test -z "$ac_dir" && ac_dir=.
13749 for ac_exec_ext in '' $ac_executable_extensions; do
13750 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13751 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
13752 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13753 break 2
13754 fi
13755 fi
13756 done
13757 done
13758 IFS="$ac_save_IFS"
13759 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13760 ;;
13761esac
20e95c23 13762fi
d7040cdb
SE
13763MSGMERGE="$ac_cv_path_MSGMERGE"
13764if test "$MSGMERGE" != ":"; then
81ecdfbb
RW
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13766$as_echo "$MSGMERGE" >&6; }
d7040cdb 13767else
81ecdfbb
RW
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13769$as_echo "no" >&6; }
20e95c23 13770fi
252b5132 13771
252b5132 13772
d7040cdb
SE
13773 if test "$GMSGFMT" != ":"; then
13774 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
13775 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13776 : ;
13777 else
13778 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
81ecdfbb
RW
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
13780$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
d7040cdb
SE
13781 GMSGFMT=":"
13782 fi
13783 fi
13b2be9c 13784
d7040cdb
SE
13785 if test "$XGETTEXT" != ":"; then
13786 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13787 (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
13788 : ;
13789 else
81ecdfbb
RW
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13791$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
d7040cdb
SE
13792 XGETTEXT=":"
13793 fi
13794 rm -f messages.po
13795 fi
252b5132 13796
81ecdfbb 13797 ac_config_commands="$ac_config_commands default-1"
13b2be9c 13798
13b2be9c 13799
81ecdfbb
RW
13800
13801
13802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13803$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13804 # Check whether --enable-maintainer-mode was given.
13805if test "${enable_maintainer_mode+set}" = set; then :
13806 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
9b2b7d69 13807else
81ecdfbb 13808 USE_MAINTAINER_MODE=no
13b2be9c 13809fi
13b2be9c 13810
81ecdfbb
RW
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13812$as_echo "$USE_MAINTAINER_MODE" >&6; }
13813 if test $USE_MAINTAINER_MODE = yes; then
13814 MAINTAINER_MODE_TRUE=
13815 MAINTAINER_MODE_FALSE='#'
13816else
13817 MAINTAINER_MODE_TRUE='#'
13818 MAINTAINER_MODE_FALSE=
13b2be9c 13819fi
13b2be9c 13820
81ecdfbb
RW
13821 MAINT=$MAINTAINER_MODE_TRUE
13822
13823
13824 if false; then
13825 GENINSRC_NEVER_TRUE=
13826 GENINSRC_NEVER_FALSE='#'
13b2be9c 13827else
81ecdfbb
RW
13828 GENINSRC_NEVER_TRUE='#'
13829 GENINSRC_NEVER_FALSE=
252b5132 13830fi
13b2be9c 13831
81ecdfbb
RW
13832
13833
58797674 13834for ac_header in string.h stdlib.h memory.h strings.h unistd.h errno.h sys/types.h limits.h locale.h time.h sys/stat.h
81ecdfbb
RW
13835do :
13836 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13837ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13838eval as_val=\$$as_ac_Header
13839 if test "x$as_val" = x""yes; then :
13b2be9c 13840 cat >>confdefs.h <<_ACEOF
81ecdfbb 13841#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13b2be9c
DJ
13842_ACEOF
13843
252b5132 13844fi
13b2be9c 13845
252b5132
RH
13846done
13847
df7b86aa
NC
13848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
13849$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
13850if test "${gcc_cv_header_string+set}" = set; then :
13851 $as_echo_n "(cached) " >&6
13852else
13853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13854/* end confdefs.h. */
13855#include <string.h>
13856#include <strings.h>
13857int
13858main ()
13859{
13860
13861 ;
13862 return 0;
13863}
13864_ACEOF
13865if ac_fn_c_try_compile "$LINENO"; then :
13866 gcc_cv_header_string=yes
13867else
13868 gcc_cv_header_string=no
13869fi
13870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13871fi
13872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
13873$as_echo "$gcc_cv_header_string" >&6; }
13874if test $gcc_cv_header_string = yes; then
13875
13876$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
13877
13878fi
13879
d6d788bd 13880
252b5132
RH
13881# Put this here so that autoconf's "cross-compiling" message doesn't confuse
13882# people who are not cross-compiling but are compiling cross-assemblers.
81ecdfbb
RW
13883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling a cross-assembler" >&5
13884$as_echo_n "checking whether compiling a cross-assembler... " >&6; }
252b5132
RH
13885if test "${host}" = "${target}"; then
13886 cross_gas=no
13887else
13888 cross_gas=yes
13b2be9c 13889
81ecdfbb 13890$as_echo "#define CROSS_COMPILE 1" >>confdefs.h
252b5132
RH
13891
13892fi
81ecdfbb
RW
13893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_gas" >&5
13894$as_echo "$cross_gas" >&6; }
252b5132
RH
13895
13896# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13897# for constant arguments. Useless!
81ecdfbb
RW
13898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13899$as_echo_n "checking for working alloca.h... " >&6; }
13900if test "${ac_cv_working_alloca_h+set}" = set; then :
13901 $as_echo_n "(cached) " >&6
13b2be9c 13902else
81ecdfbb 13903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 13904/* end confdefs.h. */
252b5132 13905#include <alloca.h>
13b2be9c
DJ
13906int
13907main ()
13908{
13909char *p = (char *) alloca (2 * sizeof (int));
81ecdfbb 13910 if (p) return 0;
13b2be9c
DJ
13911 ;
13912 return 0;
13913}
13914_ACEOF
81ecdfbb 13915if ac_fn_c_try_link "$LINENO"; then :
13b2be9c
DJ
13916 ac_cv_working_alloca_h=yes
13917else
81ecdfbb 13918 ac_cv_working_alloca_h=no
13b2be9c 13919fi
81ecdfbb
RW
13920rm -f core conftest.err conftest.$ac_objext \
13921 conftest$ac_exeext conftest.$ac_ext
13b2be9c 13922fi
81ecdfbb
RW
13923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13924$as_echo "$ac_cv_working_alloca_h" >&6; }
13b2be9c
DJ
13925if test $ac_cv_working_alloca_h = yes; then
13926
81ecdfbb 13927$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
252b5132
RH
13928
13929fi
13930
81ecdfbb
RW
13931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13932$as_echo_n "checking for alloca... " >&6; }
13933if test "${ac_cv_func_alloca_works+set}" = set; then :
13934 $as_echo_n "(cached) " >&6
252b5132 13935else
81ecdfbb 13936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 13937/* end confdefs.h. */
252b5132
RH
13938#ifdef __GNUC__
13939# define alloca __builtin_alloca
13940#else
13941# ifdef _MSC_VER
13942# include <malloc.h>
13943# define alloca _alloca
13944# else
81ecdfbb 13945# ifdef HAVE_ALLOCA_H
252b5132
RH
13946# include <alloca.h>
13947# else
13948# ifdef _AIX
13949 #pragma alloca
13950# else
13951# ifndef alloca /* predefined by HP cc +Olibcalls */
13952char *alloca ();
13953# endif
13954# endif
13955# endif
13956# endif
13957#endif
13958
13b2be9c
DJ
13959int
13960main ()
13961{
13962char *p = (char *) alloca (1);
81ecdfbb 13963 if (p) return 0;
13b2be9c
DJ
13964 ;
13965 return 0;
13966}
13967_ACEOF
81ecdfbb 13968if ac_fn_c_try_link "$LINENO"; then :
252b5132
RH
13969 ac_cv_func_alloca_works=yes
13970else
81ecdfbb 13971 ac_cv_func_alloca_works=no
252b5132 13972fi
81ecdfbb
RW
13973rm -f core conftest.err conftest.$ac_objext \
13974 conftest$ac_exeext conftest.$ac_ext
252b5132 13975fi
81ecdfbb
RW
13976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13977$as_echo "$ac_cv_func_alloca_works" >&6; }
252b5132 13978
252b5132 13979if test $ac_cv_func_alloca_works = yes; then
9b2b7d69 13980
81ecdfbb 13981$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9b2b7d69 13982
13b2be9c 13983else
c8615825 13984 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13b2be9c
DJ
13985# that cause trouble. Some versions do not even contain alloca or
13986# contain a buggy version. If you still want to use their alloca,
13987# use ar to extract alloca.o from them instead of compiling alloca.c.
13988
81ecdfbb 13989ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13b2be9c 13990
81ecdfbb 13991$as_echo "#define C_ALLOCA 1" >>confdefs.h
252b5132 13992
d6d788bd 13993
81ecdfbb
RW
13994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13995$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13996if test "${ac_cv_os_cray+set}" = set; then :
13997 $as_echo_n "(cached) " >&6
252b5132 13998else
81ecdfbb 13999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 14000/* end confdefs.h. */
81ecdfbb 14001#if defined CRAY && ! defined CRAY2
252b5132
RH
14002webecray
14003#else
14004wenotbecray
14005#endif
14006
13b2be9c 14007_ACEOF
252b5132 14008if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb 14009 $EGREP "webecray" >/dev/null 2>&1; then :
252b5132
RH
14010 ac_cv_os_cray=yes
14011else
252b5132
RH
14012 ac_cv_os_cray=no
14013fi
14014rm -f conftest*
14015
14016fi
81ecdfbb
RW
14017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
14018$as_echo "$ac_cv_os_cray" >&6; }
252b5132 14019if test $ac_cv_os_cray = yes; then
13b2be9c 14020 for ac_func in _getb67 GETB67 getb67; do
81ecdfbb
RW
14021 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14022ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14023eval as_val=\$$as_ac_var
14024 if test "x$as_val" = x""yes; then :
13b2be9c
DJ
14025
14026cat >>confdefs.h <<_ACEOF
252b5132 14027#define CRAY_STACKSEG_END $ac_func
13b2be9c 14028_ACEOF
252b5132 14029
13b2be9c 14030 break
252b5132
RH
14031fi
14032
13b2be9c 14033 done
252b5132
RH
14034fi
14035
81ecdfbb
RW
14036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
14037$as_echo_n "checking stack direction for C alloca... " >&6; }
14038if test "${ac_cv_c_stack_direction+set}" = set; then :
14039 $as_echo_n "(cached) " >&6
252b5132 14040else
81ecdfbb 14041 if test "$cross_compiling" = yes; then :
252b5132
RH
14042 ac_cv_c_stack_direction=0
14043else
81ecdfbb 14044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 14045/* end confdefs.h. */
81ecdfbb 14046$ac_includes_default
13b2be9c 14047int
252b5132
RH
14048find_stack_direction ()
14049{
14050 static char *addr = 0;
14051 auto char dummy;
14052 if (addr == 0)
14053 {
14054 addr = &dummy;
14055 return find_stack_direction ();
14056 }
14057 else
14058 return (&dummy > addr) ? 1 : -1;
14059}
13b2be9c
DJ
14060
14061int
252b5132
RH
14062main ()
14063{
81ecdfbb 14064 return find_stack_direction () < 0;
252b5132 14065}
13b2be9c 14066_ACEOF
81ecdfbb 14067if ac_fn_c_try_run "$LINENO"; then :
252b5132
RH
14068 ac_cv_c_stack_direction=1
14069else
81ecdfbb 14070 ac_cv_c_stack_direction=-1
252b5132 14071fi
81ecdfbb
RW
14072rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14073 conftest.$ac_objext conftest.beam conftest.$ac_ext
252b5132 14074fi
252b5132 14075
81ecdfbb
RW
14076fi
14077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
14078$as_echo "$ac_cv_c_stack_direction" >&6; }
13b2be9c 14079cat >>confdefs.h <<_ACEOF
252b5132 14080#define STACK_DIRECTION $ac_cv_c_stack_direction
13b2be9c
DJ
14081_ACEOF
14082
252b5132
RH
14083
14084fi
14085
81ecdfbb
RW
14086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14087$as_echo_n "checking for inline... " >&6; }
14088if test "${ac_cv_c_inline+set}" = set; then :
14089 $as_echo_n "(cached) " >&6
252b5132
RH
14090else
14091 ac_cv_c_inline=no
14092for ac_kw in inline __inline__ __inline; do
81ecdfbb 14093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
14094/* end confdefs.h. */
14095#ifndef __cplusplus
14096typedef int foo_t;
14097static $ac_kw foo_t static_foo () {return 0; }
14098$ac_kw foo_t foo () {return 0; }
14099#endif
252b5132 14100
13b2be9c 14101_ACEOF
81ecdfbb
RW
14102if ac_fn_c_try_compile "$LINENO"; then :
14103 ac_cv_c_inline=$ac_kw
252b5132 14104fi
81ecdfbb
RW
14105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14106 test "$ac_cv_c_inline" != no && break
252b5132
RH
14107done
14108
14109fi
81ecdfbb
RW
14110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14111$as_echo "$ac_cv_c_inline" >&6; }
ab509236 14112
13b2be9c 14113case $ac_cv_c_inline in
252b5132 14114 inline | yes) ;;
ab509236
L
14115 *)
14116 case $ac_cv_c_inline in
14117 no) ac_val=;;
14118 *) ac_val=$ac_cv_c_inline;;
14119 esac
14120 cat >>confdefs.h <<_ACEOF
14121#ifndef __cplusplus
14122#define inline $ac_val
14123#endif
13b2be9c 14124_ACEOF
ab509236 14125 ;;
252b5132
RH
14126esac
14127
6840198f 14128
d6d788bd 14129# VMS doesn't have unlink.
252b5132 14130for ac_func in unlink remove
81ecdfbb
RW
14131do :
14132 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14133ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14134eval as_val=\$$as_ac_var
14135 if test "x$as_val" = x""yes; then :
13b2be9c 14136 cat >>confdefs.h <<_ACEOF
81ecdfbb 14137#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13b2be9c 14138_ACEOF
252b5132 14139 break
252b5132
RH
14140fi
14141done
14142
6840198f 14143
d6d788bd 14144# Some systems don't have sbrk().
252b5132 14145for ac_func in sbrk
81ecdfbb
RW
14146do :
14147 ac_fn_c_check_func "$LINENO" "sbrk" "ac_cv_func_sbrk"
14148if test "x$ac_cv_func_sbrk" = x""yes; then :
13b2be9c 14149 cat >>confdefs.h <<_ACEOF
81ecdfbb 14150#define HAVE_SBRK 1
13b2be9c 14151_ACEOF
252b5132 14152
252b5132
RH
14153fi
14154done
14155
d6d788bd 14156
44350750
NC
14157for ac_func in setlocale
14158do :
14159 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
14160if test "x$ac_cv_func_setlocale" = x""yes; then :
14161 cat >>confdefs.h <<_ACEOF
14162#define HAVE_SETLOCALE 1
14163_ACEOF
14164
14165fi
14166done
14167
14168
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
14170$as_echo_n "checking for LC_MESSAGES... " >&6; }
14171if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
14172 $as_echo_n "(cached) " >&6
14173else
14174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14175/* end confdefs.h. */
14176#include <locale.h>
14177int
14178main ()
14179{
14180return LC_MESSAGES
14181 ;
14182 return 0;
14183}
14184_ACEOF
14185if ac_fn_c_try_link "$LINENO"; then :
14186 am_cv_val_LC_MESSAGES=yes
14187else
14188 am_cv_val_LC_MESSAGES=no
14189fi
14190rm -f core conftest.err conftest.$ac_objext \
14191 conftest$ac_exeext conftest.$ac_ext
14192fi
14193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
14194$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
14195 if test $am_cv_val_LC_MESSAGES = yes; then
14196
14197$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
14198
14199 fi
14200
14201
39bec121
TW
14202# do we need the math library?
14203case "${need_libm}" in
13b2be9c 14204yes)
39bec121 14205 LIBM=
f9c19112 14206case $host in
3725885a 14207*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
d7040cdb 14208 # These system don't have libm, or don't need it
39bec121
TW
14209 ;;
14210*-ncr-sysv4.3*)
81ecdfbb
RW
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
14212$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
14213if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then :
14214 $as_echo_n "(cached) " >&6
39bec121 14215else
13b2be9c 14216 ac_check_lib_save_LIBS=$LIBS
39bec121 14217LIBS="-lmw $LIBS"
81ecdfbb 14218cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
14219/* end confdefs.h. */
14220
81ecdfbb
RW
14221/* Override any GCC internal prototype to avoid an error.
14222 Use char because int might match the return type of a GCC
14223 builtin and then its argument prototype would still apply. */
13b2be9c
DJ
14224#ifdef __cplusplus
14225extern "C"
14226#endif
13b2be9c
DJ
14227char _mwvalidcheckl ();
14228int
14229main ()
14230{
81ecdfbb 14231return _mwvalidcheckl ();
13b2be9c
DJ
14232 ;
14233 return 0;
14234}
14235_ACEOF
81ecdfbb 14236if ac_fn_c_try_link "$LINENO"; then :
13b2be9c
DJ
14237 ac_cv_lib_mw__mwvalidcheckl=yes
14238else
81ecdfbb 14239 ac_cv_lib_mw__mwvalidcheckl=no
13b2be9c 14240fi
81ecdfbb
RW
14241rm -f core conftest.err conftest.$ac_objext \
14242 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
14243LIBS=$ac_check_lib_save_LIBS
14244fi
81ecdfbb
RW
14245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
14246$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
14247if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then :
39bec121 14248 LIBM="-lmw"
39bec121
TW
14249fi
14250
81ecdfbb
RW
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
14252$as_echo_n "checking for cos in -lm... " >&6; }
14253if test "${ac_cv_lib_m_cos+set}" = set; then :
14254 $as_echo_n "(cached) " >&6
39bec121 14255else
13b2be9c 14256 ac_check_lib_save_LIBS=$LIBS
39bec121 14257LIBS="-lm $LIBS"
81ecdfbb 14258cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 14259/* end confdefs.h. */
39bec121 14260
81ecdfbb
RW
14261/* Override any GCC internal prototype to avoid an error.
14262 Use char because int might match the return type of a GCC
14263 builtin and then its argument prototype would still apply. */
d7040cdb
SE
14264#ifdef __cplusplus
14265extern "C"
14266#endif
d7040cdb 14267char cos ();
13b2be9c
DJ
14268int
14269main ()
14270{
81ecdfbb 14271return cos ();
13b2be9c
DJ
14272 ;
14273 return 0;
14274}
14275_ACEOF
81ecdfbb 14276if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 14277 ac_cv_lib_m_cos=yes
13b2be9c 14278else
81ecdfbb 14279 ac_cv_lib_m_cos=no
13b2be9c 14280fi
81ecdfbb
RW
14281rm -f core conftest.err conftest.$ac_objext \
14282 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
14283LIBS=$ac_check_lib_save_LIBS
14284fi
81ecdfbb
RW
14285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
14286$as_echo "$ac_cv_lib_m_cos" >&6; }
14287if test "x$ac_cv_lib_m_cos" = x""yes; then :
39bec121 14288 LIBM="$LIBM -lm"
39bec121
TW
14289fi
14290
14291 ;;
14292*)
81ecdfbb
RW
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
14294$as_echo_n "checking for cos in -lm... " >&6; }
14295if test "${ac_cv_lib_m_cos+set}" = set; then :
14296 $as_echo_n "(cached) " >&6
39bec121 14297else
13b2be9c 14298 ac_check_lib_save_LIBS=$LIBS
39bec121 14299LIBS="-lm $LIBS"
81ecdfbb 14300cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 14301/* end confdefs.h. */
39bec121 14302
81ecdfbb
RW
14303/* Override any GCC internal prototype to avoid an error.
14304 Use char because int might match the return type of a GCC
14305 builtin and then its argument prototype would still apply. */
d7040cdb
SE
14306#ifdef __cplusplus
14307extern "C"
14308#endif
d7040cdb 14309char cos ();
13b2be9c
DJ
14310int
14311main ()
14312{
81ecdfbb 14313return cos ();
13b2be9c
DJ
14314 ;
14315 return 0;
14316}
14317_ACEOF
81ecdfbb 14318if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 14319 ac_cv_lib_m_cos=yes
13b2be9c 14320else
81ecdfbb 14321 ac_cv_lib_m_cos=no
13b2be9c 14322fi
81ecdfbb
RW
14323rm -f core conftest.err conftest.$ac_objext \
14324 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
14325LIBS=$ac_check_lib_save_LIBS
14326fi
81ecdfbb
RW
14327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
14328$as_echo "$ac_cv_lib_m_cos" >&6; }
14329if test "x$ac_cv_lib_m_cos" = x""yes; then :
39bec121 14330 LIBM="-lm"
39bec121
TW
14331fi
14332
14333 ;;
14334esac
14335
13b2be9c 14336
d7040cdb 14337
39bec121
TW
14338 ;;
14339esac
14340
252b5132
RH
14341# Some non-ANSI preprocessors botch requoting inside strings. That's bad
14342# enough, but on some of those systems, the assert macro relies on requoting
14343# working properly!
81ecdfbb
RW
14344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working assert macro" >&5
14345$as_echo_n "checking for working assert macro... " >&6; }
14346if test "${gas_cv_assert_ok+set}" = set; then :
14347 $as_echo_n "(cached) " >&6
13b2be9c 14348else
81ecdfbb 14349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 14350/* end confdefs.h. */
252b5132
RH
14351#include <assert.h>
14352#include <stdio.h>
13b2be9c
DJ
14353int
14354main ()
14355{
252b5132
RH
14356
14357/* check for requoting problems */
14358static int a, b, c, d;
14359static char *s;
14360assert (!strcmp(s, "foo bar baz quux"));
14361/* check for newline handling */
14362assert (a == b
14363 || c == d);
14364
13b2be9c
DJ
14365 ;
14366 return 0;
81ecdfbb
RW
14367}
14368_ACEOF
14369if ac_fn_c_try_link "$LINENO"; then :
252b5132
RH
14370 gas_cv_assert_ok=yes
14371else
81ecdfbb 14372 gas_cv_assert_ok=no
252b5132 14373fi
81ecdfbb
RW
14374rm -f core conftest.err conftest.$ac_objext \
14375 conftest$ac_exeext conftest.$ac_ext
252b5132 14376fi
81ecdfbb
RW
14377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_assert_ok" >&5
14378$as_echo "$gas_cv_assert_ok" >&6; }
13b2be9c 14379test $gas_cv_assert_ok = yes ||
81ecdfbb 14380$as_echo "#define BROKEN_ASSERT 1" >>confdefs.h
252b5132 14381
d6d788bd
L
14382
14383
252b5132
RH
14384# On some systems, the system header files may not declare malloc, realloc,
14385# and free. There are places where gas needs these functions to have been
14386# declared -- such as when taking their addresses.
14387gas_test_headers="
14388#ifdef HAVE_MEMORY_H
14389#include <memory.h>
14390#endif
14391#ifdef HAVE_STRING_H
14392#include <string.h>
14393#else
14394#ifdef HAVE_STRINGS_H
14395#include <strings.h>
14396#endif
14397#endif
14398#ifdef HAVE_STDLIB_H
14399#include <stdlib.h>
14400#endif
14401#ifdef HAVE_UNISTD_H
14402#include <unistd.h>
14403#endif
14404"
14405
e8a38df5
AL
14406# Does errno.h declare errno, or do we have to add a separate declaration
14407# for it?
14408
81ecdfbb
RW
14409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for errno" >&5
14410$as_echo_n "checking whether declaration is required for errno... " >&6; }
14411if test "${gas_cv_decl_needed_errno+set}" = set; then :
14412 $as_echo_n "(cached) " >&6
e8a38df5 14413else
81ecdfbb 14414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a38df5
AL
14415/* end confdefs.h. */
14416
14417#ifdef HAVE_ERRNO_H
14418#include <errno.h>
14419#endif
14420
14421int
14422main ()
14423{
14424
14425typedef int f;
14426f x;
14427x = (f) errno;
14428
14429 ;
14430 return 0;
14431}
14432_ACEOF
81ecdfbb 14433if ac_fn_c_try_link "$LINENO"; then :
e8a38df5
AL
14434 gas_cv_decl_needed_errno=no
14435else
81ecdfbb 14436 gas_cv_decl_needed_errno=yes
e8a38df5 14437fi
81ecdfbb
RW
14438rm -f core conftest.err conftest.$ac_objext \
14439 conftest$ac_exeext conftest.$ac_ext
e8a38df5 14440fi
81ecdfbb
RW
14441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_errno" >&5
14442$as_echo "$gas_cv_decl_needed_errno" >&6; }
e8a38df5
AL
14443if test $gas_cv_decl_needed_errno = yes; then
14444
81ecdfbb 14445$as_echo "#define NEED_DECLARATION_ERRNO 1" >>confdefs.h
e8a38df5
AL
14446
14447fi
14448
14449
81ecdfbb
RW
14450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
14451$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
14452if test "${gas_cv_decl_getopt_unistd_h+set}" = set; then :
14453 $as_echo_n "(cached) " >&6
56f36663 14454else
81ecdfbb 14455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56f36663
NC
14456/* end confdefs.h. */
14457#include <unistd.h>
14458int
14459main ()
14460{
14461extern int getopt (int, char *const*, const char *);
14462 ;
14463 return 0;
14464}
14465_ACEOF
81ecdfbb 14466if ac_fn_c_try_compile "$LINENO"; then :
56f36663
NC
14467 gas_cv_decl_getopt_unistd_h=yes
14468else
81ecdfbb 14469 gas_cv_decl_getopt_unistd_h=no
56f36663 14470fi
81ecdfbb 14471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56f36663
NC
14472fi
14473
81ecdfbb
RW
14474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_getopt_unistd_h" >&5
14475$as_echo "$gas_cv_decl_getopt_unistd_h" >&6; }
56f36663
NC
14476if test $gas_cv_decl_getopt_unistd_h = yes; then
14477
81ecdfbb 14478$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
56f36663
NC
14479
14480fi
14481
e8a38df5 14482
81ecdfbb
RW
14483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for environ" >&5
14484$as_echo_n "checking whether declaration is required for environ... " >&6; }
14485if test "${gas_cv_decl_needed_environ+set}" = set; then :
14486 $as_echo_n "(cached) " >&6
13b2be9c 14487else
81ecdfbb 14488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 14489/* end confdefs.h. */
252b5132 14490$gas_test_headers
13b2be9c
DJ
14491int
14492main ()
14493{
252b5132 14494
e8a38df5 14495typedef char **f;
252b5132 14496f x;
e8a38df5 14497x = (f) environ;
252b5132 14498
13b2be9c
DJ
14499 ;
14500 return 0;
14501}
14502_ACEOF
81ecdfbb 14503if ac_fn_c_try_link "$LINENO"; then :
e8a38df5 14504 gas_cv_decl_needed_environ=no
252b5132 14505else
81ecdfbb 14506 gas_cv_decl_needed_environ=yes
252b5132 14507fi
81ecdfbb
RW
14508rm -f core conftest.err conftest.$ac_objext \
14509 conftest$ac_exeext conftest.$ac_ext
252b5132 14510fi
81ecdfbb
RW
14511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_environ" >&5
14512$as_echo "$gas_cv_decl_needed_environ" >&6; }
e8a38df5 14513if test $gas_cv_decl_needed_environ = yes; then
13b2be9c 14514
81ecdfbb 14515$as_echo "#define NEED_DECLARATION_ENVIRON 1" >>confdefs.h
13b2be9c
DJ
14516
14517fi
14518
14519
81ecdfbb
RW
14520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for ffs" >&5
14521$as_echo_n "checking whether declaration is required for ffs... " >&6; }
14522if test "${gas_cv_decl_needed_ffs+set}" = set; then :
14523 $as_echo_n "(cached) " >&6
13b2be9c 14524else
81ecdfbb 14525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
14526/* end confdefs.h. */
14527$gas_test_headers
14528int
14529main ()
14530{
14531
e8a38df5 14532typedef int (*f)(int);
13b2be9c 14533f x;
e8a38df5 14534x = (f) ffs;
13b2be9c
DJ
14535
14536 ;
14537 return 0;
14538}
14539_ACEOF
81ecdfbb 14540if ac_fn_c_try_link "$LINENO"; then :
e8a38df5 14541 gas_cv_decl_needed_ffs=no
13b2be9c 14542else
81ecdfbb 14543 gas_cv_decl_needed_ffs=yes
13b2be9c 14544fi
81ecdfbb
RW
14545rm -f core conftest.err conftest.$ac_objext \
14546 conftest$ac_exeext conftest.$ac_ext
13b2be9c 14547fi
81ecdfbb
RW
14548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_ffs" >&5
14549$as_echo "$gas_cv_decl_needed_ffs" >&6; }
e8a38df5 14550if test $gas_cv_decl_needed_ffs = yes; then
13b2be9c 14551
81ecdfbb 14552$as_echo "#define NEED_DECLARATION_FFS 1" >>confdefs.h
13b2be9c
DJ
14553
14554fi
14555
14556
81ecdfbb
RW
14557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for free" >&5
14558$as_echo_n "checking whether declaration is required for free... " >&6; }
14559if test "${gas_cv_decl_needed_free+set}" = set; then :
14560 $as_echo_n "(cached) " >&6
13b2be9c 14561else
81ecdfbb 14562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
14563/* end confdefs.h. */
14564$gas_test_headers
14565int
14566main ()
14567{
14568
14569typedef void (*f)();
14570f x;
14571x = (f) free;
14572
14573 ;
14574 return 0;
14575}
14576_ACEOF
81ecdfbb 14577if ac_fn_c_try_link "$LINENO"; then :
13b2be9c
DJ
14578 gas_cv_decl_needed_free=no
14579else
81ecdfbb 14580 gas_cv_decl_needed_free=yes
13b2be9c 14581fi
81ecdfbb
RW
14582rm -f core conftest.err conftest.$ac_objext \
14583 conftest$ac_exeext conftest.$ac_ext
13b2be9c 14584fi
81ecdfbb
RW
14585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_free" >&5
14586$as_echo "$gas_cv_decl_needed_free" >&6; }
13b2be9c
DJ
14587if test $gas_cv_decl_needed_free = yes; then
14588
81ecdfbb 14589$as_echo "#define NEED_DECLARATION_FREE 1" >>confdefs.h
13b2be9c
DJ
14590
14591fi
14592
14593
81ecdfbb
RW
14594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for malloc" >&5
14595$as_echo_n "checking whether declaration is required for malloc... " >&6; }
14596if test "${gas_cv_decl_needed_malloc+set}" = set; then :
14597 $as_echo_n "(cached) " >&6
13b2be9c 14598else
81ecdfbb 14599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
14600/* end confdefs.h. */
14601$gas_test_headers
14602int
14603main ()
14604{
14605
14606typedef char *(*f)();
14607f x;
e8a38df5 14608x = (f) malloc;
13b2be9c
DJ
14609
14610 ;
14611 return 0;
14612}
14613_ACEOF
81ecdfbb 14614if ac_fn_c_try_link "$LINENO"; then :
e8a38df5 14615 gas_cv_decl_needed_malloc=no
13b2be9c 14616else
81ecdfbb 14617 gas_cv_decl_needed_malloc=yes
13b2be9c 14618fi
81ecdfbb
RW
14619rm -f core conftest.err conftest.$ac_objext \
14620 conftest$ac_exeext conftest.$ac_ext
13b2be9c 14621fi
81ecdfbb
RW
14622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_malloc" >&5
14623$as_echo "$gas_cv_decl_needed_malloc" >&6; }
e8a38df5 14624if test $gas_cv_decl_needed_malloc = yes; then
13b2be9c 14625
81ecdfbb 14626$as_echo "#define NEED_DECLARATION_MALLOC 1" >>confdefs.h
13b2be9c
DJ
14627
14628fi
14629
14630
81ecdfbb
RW
14631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for sbrk" >&5
14632$as_echo_n "checking whether declaration is required for sbrk... " >&6; }
14633if test "${gas_cv_decl_needed_sbrk+set}" = set; then :
14634 $as_echo_n "(cached) " >&6
13b2be9c 14635else
81ecdfbb 14636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
14637/* end confdefs.h. */
14638$gas_test_headers
14639int
14640main ()
14641{
14642
e8a38df5 14643typedef char *(*f)();
13b2be9c 14644f x;
e8a38df5 14645x = (f) sbrk;
13b2be9c
DJ
14646
14647 ;
14648 return 0;
14649}
14650_ACEOF
81ecdfbb 14651if ac_fn_c_try_link "$LINENO"; then :
e8a38df5 14652 gas_cv_decl_needed_sbrk=no
13b2be9c 14653else
81ecdfbb 14654 gas_cv_decl_needed_sbrk=yes
13b2be9c 14655fi
81ecdfbb
RW
14656rm -f core conftest.err conftest.$ac_objext \
14657 conftest$ac_exeext conftest.$ac_ext
13b2be9c 14658fi
81ecdfbb
RW
14659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_sbrk" >&5
14660$as_echo "$gas_cv_decl_needed_sbrk" >&6; }
e8a38df5 14661if test $gas_cv_decl_needed_sbrk = yes; then
13b2be9c 14662
81ecdfbb 14663$as_echo "#define NEED_DECLARATION_SBRK 1" >>confdefs.h
13b2be9c
DJ
14664
14665fi
14666
14667
81ecdfbb
RW
14668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for strstr" >&5
14669$as_echo_n "checking whether declaration is required for strstr... " >&6; }
14670if test "${gas_cv_decl_needed_strstr+set}" = set; then :
14671 $as_echo_n "(cached) " >&6
13b2be9c 14672else
81ecdfbb 14673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 14674/* end confdefs.h. */
e8a38df5 14675$gas_test_headers
13b2be9c
DJ
14676int
14677main ()
14678{
14679
e8a38df5 14680typedef char *(*f)();
13b2be9c 14681f x;
e8a38df5 14682x = (f) strstr;
13b2be9c
DJ
14683
14684 ;
14685 return 0;
14686}
14687_ACEOF
81ecdfbb 14688if ac_fn_c_try_link "$LINENO"; then :
e8a38df5 14689 gas_cv_decl_needed_strstr=no
13b2be9c 14690else
81ecdfbb 14691 gas_cv_decl_needed_strstr=yes
13b2be9c 14692fi
81ecdfbb
RW
14693rm -f core conftest.err conftest.$ac_objext \
14694 conftest$ac_exeext conftest.$ac_ext
13b2be9c 14695fi
81ecdfbb
RW
14696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_strstr" >&5
14697$as_echo "$gas_cv_decl_needed_strstr" >&6; }
e8a38df5 14698if test $gas_cv_decl_needed_strstr = yes; then
13b2be9c 14699
81ecdfbb 14700$as_echo "#define NEED_DECLARATION_STRSTR 1" >>confdefs.h
13b2be9c
DJ
14701
14702fi
14703
14704
0175442d
L
14705ac_fn_c_check_decl "$LINENO" "mempcpy" "ac_cv_have_decl_mempcpy" "$ac_includes_default"
14706if test "x$ac_cv_have_decl_mempcpy" = x""yes; then :
14707 ac_have_decl=1
14708else
14709 ac_have_decl=0
14710fi
14711
14712cat >>confdefs.h <<_ACEOF
14713#define HAVE_DECL_MEMPCPY $ac_have_decl
14714_ACEOF
14715
81ecdfbb
RW
14716ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
14717if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
14718 ac_have_decl=1
6d74f28b 14719else
81ecdfbb 14720 ac_have_decl=0
6d74f28b 14721fi
6d74f28b
EB
14722
14723cat >>confdefs.h <<_ACEOF
81ecdfbb 14724#define HAVE_DECL_VSNPRINTF $ac_have_decl
6d74f28b
EB
14725_ACEOF
14726
14727
13b2be9c 14728
c973bc5c
NC
14729case "${host}" in
14730*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
14731
81ecdfbb 14732$as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
c973bc5c
NC
14733 ;;
14734esac
14735
0acf065b
CC
14736# Link in zlib if we can. This allows us to write compressed debug sections.
14737
14738 # See if the user specified whether he wants zlib support or not.
14739
14740# Check whether --with-zlib was given.
14741if test "${with_zlib+set}" = set; then :
14742 withval=$with_zlib;
14743else
14744 with_zlib=auto
14745fi
14746
14747
14748 if test "$with_zlib" != "no"; then
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
14750$as_echo_n "checking for library containing zlibVersion... " >&6; }
14751if test "${ac_cv_search_zlibVersion+set}" = set; then :
14752 $as_echo_n "(cached) " >&6
14753else
14754 ac_func_search_save_LIBS=$LIBS
14755cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14756/* end confdefs.h. */
14757
14758/* Override any GCC internal prototype to avoid an error.
14759 Use char because int might match the return type of a GCC
14760 builtin and then its argument prototype would still apply. */
14761#ifdef __cplusplus
14762extern "C"
14763#endif
14764char zlibVersion ();
14765int
14766main ()
14767{
14768return zlibVersion ();
14769 ;
14770 return 0;
14771}
14772_ACEOF
14773for ac_lib in '' z; do
14774 if test -z "$ac_lib"; then
14775 ac_res="none required"
14776 else
14777 ac_res=-l$ac_lib
14778 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14779 fi
14780 if ac_fn_c_try_link "$LINENO"; then :
14781 ac_cv_search_zlibVersion=$ac_res
14782fi
14783rm -f core conftest.err conftest.$ac_objext \
14784 conftest$ac_exeext
14785 if test "${ac_cv_search_zlibVersion+set}" = set; then :
14786 break
14787fi
14788done
14789if test "${ac_cv_search_zlibVersion+set}" = set; then :
14790
14791else
14792 ac_cv_search_zlibVersion=no
14793fi
14794rm conftest.$ac_ext
14795LIBS=$ac_func_search_save_LIBS
14796fi
14797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
14798$as_echo "$ac_cv_search_zlibVersion" >&6; }
14799ac_res=$ac_cv_search_zlibVersion
14800if test "$ac_res" != no; then :
14801 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14802 for ac_header in zlib.h
14803do :
14804 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
14805if test "x$ac_cv_header_zlib_h" = x""yes; then :
14806 cat >>confdefs.h <<_ACEOF
14807#define HAVE_ZLIB_H 1
14808_ACEOF
14809
14810fi
14811
14812done
14813
14814fi
14815
14816 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
14817 as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
14818 fi
14819 fi
14820
14821
b11d79f2
TG
14822# Support for VMS timestamps via cross compile
14823
14824if test "$ac_cv_header_time_h" = yes; then
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tm.tm_gmtoff in time.h" >&5
14826$as_echo_n "checking for struct tm.tm_gmtoff in time.h... " >&6; }
14827 if test "${gas_cv_have_time_type_member_tm_gmtoff+set}" = set; then :
14828 $as_echo_n "(cached) " >&6
14829else
14830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14831/* end confdefs.h. */
14832
14833#define _BSD_SOURCE 1
14834#include <time.h>
14835int
14836main ()
14837{
14838struct tm avar; void* aref = (void*) &avar.tm_gmtoff
14839 ;
14840 return 0;
14841}
14842_ACEOF
14843if ac_fn_c_try_compile "$LINENO"; then :
14844 gas_cv_have_time_type_member_tm_gmtoff=yes
14845else
14846 gas_cv_have_time_type_member_tm_gmtoff=no
14847
14848fi
14849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14850fi
14851
14852 if test $gas_cv_have_time_type_member_tm_gmtoff = yes; then
14853
14854$as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
14855
14856 fi
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_time_type_member_tm_gmtoff" >&5
14858$as_echo "$gas_cv_have_time_type_member_tm_gmtoff" >&6; }
14859
14860fi
14861
14862if test "$ac_cv_header_sys_stat_h" = yes; then
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_sec in sys/stat.h" >&5
14864$as_echo_n "checking for struct stat.st_mtim.tv_sec in sys/stat.h... " >&6; }
14865 if test "${gas_cv_have_sys_stat_type_member_st_mtim_tv_sec+set}" = set; then :
14866 $as_echo_n "(cached) " >&6
14867else
14868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14869/* end confdefs.h. */
14870
14871#define _BSD_SOURCE 1
14872#include <sys/stat.h>
14873int
14874main ()
14875{
14876struct stat avar; void* aref = (void*) &avar.st_mtim.tv_sec
14877 ;
14878 return 0;
14879}
14880_ACEOF
14881if ac_fn_c_try_compile "$LINENO"; then :
14882 gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=yes
14883else
14884 gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=no
14885
14886fi
14887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14888fi
14889
14890 if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec = yes; then
14891
14892$as_echo "#define HAVE_ST_MTIM_TV_SEC 1" >>confdefs.h
14893
14894 fi
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&5
14896$as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&6; }
14897
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_nsec in sys/stat.h" >&5
14899$as_echo_n "checking for struct stat.st_mtim.tv_nsec in sys/stat.h... " >&6; }
14900 if test "${gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec+set}" = set; then :
14901 $as_echo_n "(cached) " >&6
14902else
14903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14904/* end confdefs.h. */
14905
14906#define _BSD_SOURCE 1
14907#include <sys/stat.h>
14908int
14909main ()
14910{
14911struct stat avar; void* aref = (void*) &avar.st_mtim.tv_nsec
14912 ;
14913 return 0;
14914}
14915_ACEOF
14916if ac_fn_c_try_compile "$LINENO"; then :
14917 gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=yes
14918else
14919 gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=no
14920
14921fi
14922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14923fi
14924
14925 if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec = yes; then
14926
14927$as_echo "#define HAVE_ST_MTIM_TV_NSEC 1" >>confdefs.h
14928
14929 fi
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&5
14931$as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&6; }
14932
14933fi
14934
14935
c973bc5c 14936
13b2be9c 14937
108a6f8e
CD
14938
14939
14940
14941
31dd3154 14942
81ecdfbb 14943ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
13b2be9c 14944
81ecdfbb 14945ac_config_commands="$ac_config_commands default"
13b2be9c
DJ
14946
14947
14948cat >confcache <<\_ACEOF
14949# This file is a shell script that caches the results of configure
14950# tests run on this system so they can be shared between configure
14951# scripts and configure runs, see configure's option --config-cache.
14952# It is not useful on other systems. If it contains results you don't
14953# want to keep, you may remove or edit it.
14954#
14955# config.status only pays attention to the cache file if you give it
14956# the --recheck option to rerun configure.
14957#
14958# `ac_cv_env_foo' variables (set or unset) will be overridden when
14959# loading this file, other *unset* `ac_cv_foo' will be assigned the
14960# following values.
14961
14962_ACEOF
14963
14964# The following way of writing the cache mishandles newlines in values,
14965# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 14966# So, we kill variables containing newlines.
13b2be9c
DJ
14967# Ultrix sh set writes to stderr and can't be redirected directly,
14968# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
14969(
14970 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14971 eval ac_val=\$$ac_var
14972 case $ac_val in #(
14973 *${as_nl}*)
14974 case $ac_var in #(
14975 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14976$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14977 esac
14978 case $ac_var in #(
14979 _ | IFS | as_nl) ;; #(
14980 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14981 *) { eval $ac_var=; unset $ac_var;} ;;
14982 esac ;;
14983 esac
14984 done
14985
13b2be9c 14986 (set) 2>&1 |
81ecdfbb
RW
14987 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14988 *${as_nl}ac_space=\ *)
14989 # `set' does not quote correctly, so add quotes: double-quote
14990 # substitution turns \\\\ into \\, and sed turns \\ into \.
13b2be9c 14991 sed -n \
ab509236
L
14992 "s/'/'\\\\''/g;
14993 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 14994 ;; #(
13b2be9c
DJ
14995 *)
14996 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 14997 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13b2be9c 14998 ;;
81ecdfbb
RW
14999 esac |
15000 sort
15001) |
13b2be9c 15002 sed '
81ecdfbb 15003 /^ac_cv_env_/b end
13b2be9c 15004 t clear
81ecdfbb 15005 :clear
13b2be9c
DJ
15006 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15007 t end
81ecdfbb
RW
15008 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15009 :end' >>confcache
15010if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15011 if test -w "$cache_file"; then
15012 test "x$cache_file" != "x/dev/null" &&
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15014$as_echo "$as_me: updating cache $cache_file" >&6;}
13b2be9c
DJ
15015 cat confcache >$cache_file
15016 else
81ecdfbb
RW
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15018$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13b2be9c
DJ
15019 fi
15020fi
15021rm -f confcache
15022
15023test "x$prefix" = xNONE && prefix=$ac_default_prefix
15024# Let make expand exec_prefix.
15025test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15026
13b2be9c
DJ
15027DEFS=-DHAVE_CONFIG_H
15028
15029ac_libobjs=
15030ac_ltlibobjs=
15031for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15032 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
15033 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15034 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15035 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15036 # will be set to the directory where LIBOBJS objects are built.
15037 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15038 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13b2be9c
DJ
15039done
15040LIBOBJS=$ac_libobjs
15041
15042LTLIBOBJS=$ac_ltlibobjs
15043
15044
15045if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
81ecdfbb
RW
15046 as_fn_error "conditional \"AMDEP\" was never defined.
15047Usually this means the macro was only invoked conditionally." "$LINENO" 5
13b2be9c
DJ
15048fi
15049if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
81ecdfbb
RW
15050 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15051Usually this means the macro was only invoked conditionally." "$LINENO" 5
15052fi
15053 if test -n "$EXEEXT"; then
15054 am__EXEEXT_TRUE=
15055 am__EXEEXT_FALSE='#'
15056else
15057 am__EXEEXT_TRUE='#'
15058 am__EXEEXT_FALSE=
13b2be9c 15059fi
81ecdfbb
RW
15060
15061
13b2be9c 15062if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
81ecdfbb
RW
15063 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15064Usually this means the macro was only invoked conditionally." "$LINENO" 5
13b2be9c 15065fi
d5fbea21 15066if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
81ecdfbb
RW
15067 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
15068Usually this means the macro was only invoked conditionally." "$LINENO" 5
d5fbea21 15069fi
13b2be9c
DJ
15070
15071: ${CONFIG_STATUS=./config.status}
81ecdfbb 15072ac_write_fail=0
13b2be9c
DJ
15073ac_clean_files_save=$ac_clean_files
15074ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
15075{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15076$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15077as_write_fail=0
15078cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13b2be9c
DJ
15079#! $SHELL
15080# Generated by $as_me.
15081# Run this file to recreate the current configuration.
15082# Compiler output produced by configure, useful for debugging
15083# configure, is in config.log if it exists.
15084
15085debug=false
15086ac_cs_recheck=false
15087ac_cs_silent=false
13b2be9c 15088
81ecdfbb
RW
15089SHELL=\${CONFIG_SHELL-$SHELL}
15090export SHELL
15091_ASEOF
15092cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15093## -------------------- ##
15094## M4sh Initialization. ##
15095## -------------------- ##
13b2be9c 15096
81ecdfbb
RW
15097# Be more Bourne compatible
15098DUALCASE=1; export DUALCASE # for MKS sh
15099if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13b2be9c
DJ
15100 emulate sh
15101 NULLCMD=:
81ecdfbb 15102 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13b2be9c
DJ
15103 # is contrary to our usage. Disable this feature.
15104 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
15105 setopt NO_GLOB_SUBST
15106else
15107 case `(set -o) 2>/dev/null` in #(
15108 *posix*) :
15109 set -o posix ;; #(
15110 *) :
15111 ;;
15112esac
13b2be9c
DJ
15113fi
15114
81ecdfbb
RW
15115
15116as_nl='
15117'
15118export as_nl
15119# Printing a long string crashes Solaris 7 /usr/bin/printf.
15120as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15121as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15122as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15123# Prefer a ksh shell builtin over an external printf program on Solaris,
15124# but without wasting forks for bash or zsh.
15125if test -z "$BASH_VERSION$ZSH_VERSION" \
15126 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15127 as_echo='print -r --'
15128 as_echo_n='print -rn --'
15129elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15130 as_echo='printf %s\n'
15131 as_echo_n='printf %s'
15132else
15133 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15134 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15135 as_echo_n='/usr/ucb/echo -n'
15136 else
15137 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15138 as_echo_n_body='eval
15139 arg=$1;
15140 case $arg in #(
15141 *"$as_nl"*)
15142 expr "X$arg" : "X\\(.*\\)$as_nl";
15143 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15144 esac;
15145 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15146 '
15147 export as_echo_n_body
15148 as_echo_n='sh -c $as_echo_n_body as_echo'
15149 fi
15150 export as_echo_body
15151 as_echo='sh -c $as_echo_body as_echo'
13b2be9c
DJ
15152fi
15153
81ecdfbb
RW
15154# The user is always right.
15155if test "${PATH_SEPARATOR+set}" != set; then
15156 PATH_SEPARATOR=:
15157 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15158 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15159 PATH_SEPARATOR=';'
15160 }
15161fi
15162
15163
15164# IFS
15165# We need space, tab and new line, in precisely that order. Quoting is
15166# there to prevent editors from complaining about space-tab.
15167# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15168# splitting by setting IFS to empty value.)
15169IFS=" "" $as_nl"
15170
15171# Find who we are. Look in the path if we contain no directory separator.
15172case $0 in #((
15173 *[\\/]* ) as_myself=$0 ;;
15174 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15175for as_dir in $PATH
15176do
15177 IFS=$as_save_IFS
15178 test -z "$as_dir" && as_dir=.
15179 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15180 done
15181IFS=$as_save_IFS
15182
15183 ;;
15184esac
15185# We did not find ourselves, most probably we were run as `sh COMMAND'
15186# in which case we are not to be found in the path.
15187if test "x$as_myself" = x; then
15188 as_myself=$0
15189fi
15190if test ! -f "$as_myself"; then
15191 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15192 exit 1
15193fi
13b2be9c 15194
81ecdfbb
RW
15195# Unset variables that we do not need and which cause bugs (e.g. in
15196# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15197# suppresses any "Segmentation fault" message there. '((' could
15198# trigger a bug in pdksh 5.2.14.
15199for as_var in BASH_ENV ENV MAIL MAILPATH
15200do eval test x\${$as_var+set} = xset \
15201 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15202done
13b2be9c
DJ
15203PS1='$ '
15204PS2='> '
15205PS4='+ '
15206
15207# NLS nuisances.
81ecdfbb
RW
15208LC_ALL=C
15209export LC_ALL
15210LANGUAGE=C
15211export LANGUAGE
15212
15213# CDPATH.
15214(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15215
15216
15217# as_fn_error ERROR [LINENO LOG_FD]
15218# ---------------------------------
15219# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15220# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15221# script with status $?, using 1 if that was 0.
15222as_fn_error ()
15223{
15224 as_status=$?; test $as_status -eq 0 && as_status=1
15225 if test "$3"; then
15226 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15227 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13b2be9c 15228 fi
81ecdfbb
RW
15229 $as_echo "$as_me: error: $1" >&2
15230 as_fn_exit $as_status
15231} # as_fn_error
15232
15233
15234# as_fn_set_status STATUS
15235# -----------------------
15236# Set $? to STATUS, without forking.
15237as_fn_set_status ()
15238{
15239 return $1
15240} # as_fn_set_status
15241
15242# as_fn_exit STATUS
15243# -----------------
15244# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15245as_fn_exit ()
15246{
15247 set +e
15248 as_fn_set_status $1
15249 exit $1
15250} # as_fn_exit
15251
15252# as_fn_unset VAR
15253# ---------------
15254# Portably unset VAR.
15255as_fn_unset ()
15256{
15257 { eval $1=; unset $1;}
15258}
15259as_unset=as_fn_unset
15260# as_fn_append VAR VALUE
15261# ----------------------
15262# Append the text in VALUE to the end of the definition contained in VAR. Take
15263# advantage of any shell optimizations that allow amortized linear growth over
15264# repeated appends, instead of the typical quadratic growth present in naive
15265# implementations.
15266if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15267 eval 'as_fn_append ()
15268 {
15269 eval $1+=\$2
15270 }'
15271else
15272 as_fn_append ()
15273 {
15274 eval $1=\$$1\$2
15275 }
15276fi # as_fn_append
15277
15278# as_fn_arith ARG...
15279# ------------------
15280# Perform arithmetic evaluation on the ARGs, and store the result in the
15281# global $as_val. Take advantage of shells that can avoid forks. The arguments
15282# must be portable across $(()) and expr.
15283if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15284 eval 'as_fn_arith ()
15285 {
15286 as_val=$(( $* ))
15287 }'
15288else
15289 as_fn_arith ()
15290 {
15291 as_val=`expr "$@" || test $? -eq 1`
15292 }
15293fi # as_fn_arith
15294
13b2be9c 15295
81ecdfbb
RW
15296if expr a : '\(a\)' >/dev/null 2>&1 &&
15297 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13b2be9c
DJ
15298 as_expr=expr
15299else
15300 as_expr=false
15301fi
15302
81ecdfbb 15303if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13b2be9c
DJ
15304 as_basename=basename
15305else
15306 as_basename=false
15307fi
15308
81ecdfbb
RW
15309if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15310 as_dirname=dirname
15311else
15312 as_dirname=false
15313fi
13b2be9c 15314
81ecdfbb 15315as_me=`$as_basename -- "$0" ||
13b2be9c
DJ
15316$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15317 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
15318 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15319$as_echo X/"$0" |
15320 sed '/^.*\/\([^/][^/]*\)\/*$/{
15321 s//\1/
15322 q
15323 }
15324 /^X\/\(\/\/\)$/{
15325 s//\1/
15326 q
15327 }
15328 /^X\/\(\/\).*/{
15329 s//\1/
15330 q
15331 }
15332 s/.*/./; q'`
13b2be9c 15333
13b2be9c
DJ
15334# Avoid depending upon Character Ranges.
15335as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15336as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15337as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15338as_cr_digits='0123456789'
15339as_cr_alnum=$as_cr_Letters$as_cr_digits
15340
81ecdfbb
RW
15341ECHO_C= ECHO_N= ECHO_T=
15342case `echo -n x` in #(((((
15343-n*)
15344 case `echo 'xy\c'` in
15345 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15346 xy) ECHO_C='\c';;
15347 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15348 ECHO_T=' ';;
15349 esac;;
15350*)
15351 ECHO_N='-n';;
13b2be9c 15352esac
252b5132 15353
81ecdfbb
RW
15354rm -f conf$$ conf$$.exe conf$$.file
15355if test -d conf$$.dir; then
15356 rm -f conf$$.dir/conf$$.file
252b5132 15357else
81ecdfbb
RW
15358 rm -f conf$$.dir
15359 mkdir conf$$.dir 2>/dev/null
252b5132 15360fi
81ecdfbb
RW
15361if (echo >conf$$.file) 2>/dev/null; then
15362 if ln -s conf$$.file conf$$ 2>/dev/null; then
13b2be9c 15363 as_ln_s='ln -s'
81ecdfbb
RW
15364 # ... but there are two gotchas:
15365 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15366 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15367 # In both cases, we have to default to `cp -p'.
15368 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15369 as_ln_s='cp -p'
15370 elif ln conf$$.file conf$$ 2>/dev/null; then
15371 as_ln_s=ln
15372 else
15373 as_ln_s='cp -p'
13b2be9c 15374 fi
13b2be9c
DJ
15375else
15376 as_ln_s='cp -p'
252b5132 15377fi
81ecdfbb
RW
15378rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15379rmdir conf$$.dir 2>/dev/null
252b5132 15380
81ecdfbb
RW
15381
15382# as_fn_mkdir_p
15383# -------------
15384# Create "$as_dir" as a directory, including parents if necessary.
15385as_fn_mkdir_p ()
15386{
15387
15388 case $as_dir in #(
15389 -*) as_dir=./$as_dir;;
15390 esac
15391 test -d "$as_dir" || eval $as_mkdir_p || {
15392 as_dirs=
15393 while :; do
15394 case $as_dir in #(
15395 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15396 *) as_qdir=$as_dir;;
15397 esac
15398 as_dirs="'$as_qdir' $as_dirs"
15399 as_dir=`$as_dirname -- "$as_dir" ||
15400$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15401 X"$as_dir" : 'X\(//\)[^/]' \| \
15402 X"$as_dir" : 'X\(//\)$' \| \
15403 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15404$as_echo X"$as_dir" |
15405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15406 s//\1/
15407 q
15408 }
15409 /^X\(\/\/\)[^/].*/{
15410 s//\1/
15411 q
15412 }
15413 /^X\(\/\/\)$/{
15414 s//\1/
15415 q
15416 }
15417 /^X\(\/\).*/{
15418 s//\1/
15419 q
15420 }
15421 s/.*/./; q'`
15422 test -d "$as_dir" && break
15423 done
15424 test -z "$as_dirs" || eval "mkdir $as_dirs"
15425 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15426
15427
15428} # as_fn_mkdir_p
13b2be9c 15429if mkdir -p . 2>/dev/null; then
81ecdfbb 15430 as_mkdir_p='mkdir -p "$as_dir"'
252b5132 15431else
ab509236 15432 test -d ./-p && rmdir ./-p
13b2be9c
DJ
15433 as_mkdir_p=false
15434fi
81ecdfbb
RW
15435
15436if test -x / >/dev/null 2>&1; then
15437 as_test_x='test -x'
15438else
15439 if ls -dL / >/dev/null 2>&1; then
15440 as_ls_L_option=L
15441 else
15442 as_ls_L_option=
15443 fi
15444 as_test_x='
15445 eval sh -c '\''
15446 if test -d "$1"; then
15447 test -d "$1/.";
15448 else
15449 case $1 in #(
15450 -*)set "./$1";;
15451 esac;
15452 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15453 ???[sx]*):;;*)false;;esac;fi
15454 '\'' sh
15455 '
15456fi
15457as_executable_p=$as_test_x
252b5132 15458
13b2be9c 15459# Sed expression to map a string onto a valid CPP name.
ab509236 15460as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 15461
13b2be9c 15462# Sed expression to map a string onto a valid variable name.
ab509236 15463as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
252b5132 15464
d6d788bd 15465
13b2be9c 15466exec 6>&1
81ecdfbb
RW
15467## ----------------------------------- ##
15468## Main body of $CONFIG_STATUS script. ##
15469## ----------------------------------- ##
15470_ASEOF
15471test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
252b5132 15472
81ecdfbb
RW
15473cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15474# Save the log message, to keep $0 and so on meaningful, and to
13b2be9c 15475# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
15476# values after options handling.
15477ac_log="
13b2be9c 15478This file was extended by $as_me, which was
81ecdfbb 15479generated by GNU Autoconf 2.64. Invocation command line was
d6d788bd 15480
13b2be9c
DJ
15481 CONFIG_FILES = $CONFIG_FILES
15482 CONFIG_HEADERS = $CONFIG_HEADERS
15483 CONFIG_LINKS = $CONFIG_LINKS
15484 CONFIG_COMMANDS = $CONFIG_COMMANDS
15485 $ $0 $@
252b5132 15486
81ecdfbb
RW
15487on `(hostname || uname -n) 2>/dev/null | sed 1q`
15488"
15489
13b2be9c 15490_ACEOF
252b5132 15491
81ecdfbb
RW
15492case $ac_config_files in *"
15493"*) set x $ac_config_files; shift; ac_config_files=$*;;
15494esac
13b2be9c 15495
81ecdfbb
RW
15496case $ac_config_headers in *"
15497"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15498esac
252b5132 15499
252b5132 15500
81ecdfbb
RW
15501cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15502# Files that config.status was made for.
15503config_files="$ac_config_files"
15504config_headers="$ac_config_headers"
15505config_commands="$ac_config_commands"
d6d788bd 15506
81ecdfbb 15507_ACEOF
252b5132 15508
81ecdfbb 15509cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13b2be9c 15510ac_cs_usage="\
81ecdfbb
RW
15511\`$as_me' instantiates files and other configuration actions
15512from templates according to the current configuration. Unless the files
15513and actions are specified as TAGs, all are instantiated by default.
252b5132 15514
81ecdfbb 15515Usage: $0 [OPTION]... [TAG]...
252b5132 15516
13b2be9c 15517 -h, --help print this help, then exit
81ecdfbb
RW
15518 -V, --version print version number and configuration settings, then exit
15519 -q, --quiet, --silent
15520 do not print progress messages
13b2be9c
DJ
15521 -d, --debug don't remove temporary files
15522 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
15523 --file=FILE[:TEMPLATE]
15524 instantiate the configuration file FILE
15525 --header=FILE[:TEMPLATE]
15526 instantiate the configuration header FILE
252b5132 15527
13b2be9c
DJ
15528Configuration files:
15529$config_files
252b5132 15530
13b2be9c
DJ
15531Configuration headers:
15532$config_headers
252b5132 15533
13b2be9c
DJ
15534Configuration commands:
15535$config_commands
252b5132 15536
81ecdfbb 15537Report bugs to the package provider."
d6d788bd 15538
81ecdfbb
RW
15539_ACEOF
15540cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13b2be9c
DJ
15541ac_cs_version="\\
15542config.status
81ecdfbb
RW
15543configured by $0, generated by GNU Autoconf 2.64,
15544 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
d6d788bd 15545
81ecdfbb 15546Copyright (C) 2009 Free Software Foundation, Inc.
13b2be9c
DJ
15547This config.status script is free software; the Free Software Foundation
15548gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
15549
15550ac_pwd='$ac_pwd'
15551srcdir='$srcdir'
15552INSTALL='$INSTALL'
15553MKDIR_P='$MKDIR_P'
15554AWK='$AWK'
15555test -n "\$AWK" || AWK=awk
13b2be9c 15556_ACEOF
d6d788bd 15557
81ecdfbb
RW
15558cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15559# The default lists apply if the user does not specify any file.
13b2be9c
DJ
15560ac_need_defaults=:
15561while test $# != 0
15562do
15563 case $1 in
15564 --*=*)
81ecdfbb
RW
15565 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15566 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13b2be9c 15567 ac_shift=:
c8615825 15568 ;;
81ecdfbb 15569 *)
13b2be9c
DJ
15570 ac_option=$1
15571 ac_optarg=$2
15572 ac_shift=shift
c8615825 15573 ;;
13b2be9c 15574 esac
252b5132 15575
13b2be9c
DJ
15576 case $ac_option in
15577 # Handling of the options.
13b2be9c
DJ
15578 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15579 ac_cs_recheck=: ;;
81ecdfbb
RW
15580 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15581 $as_echo "$ac_cs_version"; exit ;;
15582 --debug | --debu | --deb | --de | --d | -d )
13b2be9c
DJ
15583 debug=: ;;
15584 --file | --fil | --fi | --f )
15585 $ac_shift
81ecdfbb
RW
15586 case $ac_optarg in
15587 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15588 esac
15589 as_fn_append CONFIG_FILES " '$ac_optarg'"
13b2be9c
DJ
15590 ac_need_defaults=false;;
15591 --header | --heade | --head | --hea )
15592 $ac_shift
81ecdfbb
RW
15593 case $ac_optarg in
15594 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15595 esac
15596 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13b2be9c 15597 ac_need_defaults=false;;
81ecdfbb
RW
15598 --he | --h)
15599 # Conflict between --help and --header
15600 as_fn_error "ambiguous option: \`$1'
15601Try \`$0 --help' for more information.";;
15602 --help | --hel | -h )
15603 $as_echo "$ac_cs_usage"; exit ;;
13b2be9c
DJ
15604 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15605 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15606 ac_cs_silent=: ;;
c8615825 15607
13b2be9c 15608 # This is an error.
81ecdfbb
RW
15609 -*) as_fn_error "unrecognized option: \`$1'
15610Try \`$0 --help' for more information." ;;
252b5132 15611
81ecdfbb
RW
15612 *) as_fn_append ac_config_targets " $1"
15613 ac_need_defaults=false ;;
252b5132 15614
13b2be9c
DJ
15615 esac
15616 shift
15617done
252b5132 15618
13b2be9c 15619ac_configure_extra_args=
d6d788bd 15620
13b2be9c
DJ
15621if $ac_cs_silent; then
15622 exec 6>/dev/null
15623 ac_configure_extra_args="$ac_configure_extra_args --silent"
15624fi
9b2b7d69 15625
13b2be9c 15626_ACEOF
81ecdfbb 15627cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13b2be9c 15628if \$ac_cs_recheck; then
81ecdfbb
RW
15629 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15630 shift
15631 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15632 CONFIG_SHELL='$SHELL'
15633 export CONFIG_SHELL
15634 exec "\$@"
13b2be9c
DJ
15635fi
15636
15637_ACEOF
81ecdfbb
RW
15638cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15639exec 5>>config.log
15640{
15641 echo
15642 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15643## Running $as_me. ##
15644_ASBOX
15645 $as_echo "$ac_log"
15646} >&5
13b2be9c 15647
81ecdfbb
RW
15648_ACEOF
15649cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9b2b7d69 15650#
81ecdfbb 15651# INIT-COMMANDS
9b2b7d69 15652#
13b2be9c 15653AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
15654
15655
15656# The HP-UX ksh and POSIX shell print the target directory to stdout
15657# if CDPATH is set.
15658(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15659
15660sed_quote_subst='$sed_quote_subst'
15661double_quote_subst='$double_quote_subst'
15662delay_variable_subst='$delay_variable_subst'
3725885a
RW
15663macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15664macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15665enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15666enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15667pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15668enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15669SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15670ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15671host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15672host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15673host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15674build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15675build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15676build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15677SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15678Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15679GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15680EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15681FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15682LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15683NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15684LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15685max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15686ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15687exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15688lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15689lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15690lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
df7b86aa
NC
15691lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15692lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
3725885a
RW
15693reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15694reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15695OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15696deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15697file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
df7b86aa
NC
15698file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15699want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15700DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15701sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
3725885a
RW
15702AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15703AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
df7b86aa 15704archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
3725885a
RW
15705STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15706RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15707old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15708old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15709old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15710lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15711CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15712CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15713compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15714GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15715lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15716lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15717lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15718lt_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"`'
df7b86aa
NC
15719nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15720lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
3725885a
RW
15721objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15722MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15723lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
3725885a 15724lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
df7b86aa 15725lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
3725885a
RW
15726lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15727lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15728need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
df7b86aa 15729MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
3725885a
RW
15730DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15731NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15732LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15733OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15734OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15735libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15736shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15737extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15738archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15739enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15740export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15741whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15742compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15743old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15744old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15745archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15746archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15747module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15748module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15749with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15750allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15751no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15752hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15753hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15754hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15755hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15756hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15757hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15758hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15759hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15760inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15761link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
3725885a
RW
15762always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15763export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15764exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15765include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15766prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
df7b86aa 15767postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
3725885a
RW
15768file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15769variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15770need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15771need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15772version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15773runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15774shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15775shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15776libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15777library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15778soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15779install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15780postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15781postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15782finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15783finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15784hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15785sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15786sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15787hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15788enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15789enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15790enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15791old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15792striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
d7040cdb
SE
15793
15794LTCC='$LTCC'
15795LTCFLAGS='$LTCFLAGS'
15796compiler='$compiler_DEFAULT'
15797
3725885a
RW
15798# A function that is used when there is no print builtin or printf.
15799func_fallback_echo ()
15800{
15801 eval 'cat <<_LTECHO_EOF
15802\$1
15803_LTECHO_EOF'
15804}
15805
d7040cdb 15806# Quote evaled strings.
3725885a
RW
15807for var in SHELL \
15808ECHO \
15809SED \
d7040cdb
SE
15810GREP \
15811EGREP \
15812FGREP \
15813LD \
15814NM \
15815LN_S \
15816lt_SP2NL \
15817lt_NL2SP \
15818reload_flag \
718a6fd8 15819OBJDUMP \
d7040cdb
SE
15820deplibs_check_method \
15821file_magic_cmd \
df7b86aa
NC
15822file_magic_glob \
15823want_nocaseglob \
15824DLLTOOL \
15825sharedlib_from_linklib_cmd \
d7040cdb
SE
15826AR \
15827AR_FLAGS \
df7b86aa 15828archiver_list_spec \
d7040cdb
SE
15829STRIP \
15830RANLIB \
15831CC \
15832CFLAGS \
15833compiler \
15834lt_cv_sys_global_symbol_pipe \
15835lt_cv_sys_global_symbol_to_cdecl \
15836lt_cv_sys_global_symbol_to_c_name_address \
718a6fd8 15837lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
df7b86aa 15838nm_file_list_spec \
d7040cdb 15839lt_prog_compiler_no_builtin_flag \
d7040cdb 15840lt_prog_compiler_pic \
df7b86aa 15841lt_prog_compiler_wl \
d7040cdb
SE
15842lt_prog_compiler_static \
15843lt_cv_prog_compiler_c_o \
15844need_locks \
df7b86aa 15845MANIFEST_TOOL \
718a6fd8
SE
15846DSYMUTIL \
15847NMEDIT \
15848LIPO \
15849OTOOL \
15850OTOOL64 \
d7040cdb
SE
15851shrext_cmds \
15852export_dynamic_flag_spec \
15853whole_archive_flag_spec \
15854compiler_needs_object \
15855with_gnu_ld \
15856allow_undefined_flag \
15857no_undefined_flag \
15858hardcode_libdir_flag_spec \
15859hardcode_libdir_flag_spec_ld \
15860hardcode_libdir_separator \
d7040cdb
SE
15861exclude_expsyms \
15862include_expsyms \
15863file_list_spec \
15864variables_saved_for_relink \
15865libname_spec \
15866library_names_spec \
15867soname_spec \
3725885a 15868install_override_mode \
d7040cdb
SE
15869finish_eval \
15870old_striplib \
15871striplib; do
3725885a 15872 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 15873 *[\\\\\\\`\\"\\\$]*)
3725885a 15874 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
d7040cdb
SE
15875 ;;
15876 *)
15877 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15878 ;;
15879 esac
15880done
15881
15882# Double-quote double-evaled strings.
15883for var in reload_cmds \
15884old_postinstall_cmds \
15885old_postuninstall_cmds \
15886old_archive_cmds \
15887extract_expsyms_cmds \
15888old_archive_from_new_cmds \
15889old_archive_from_expsyms_cmds \
15890archive_cmds \
15891archive_expsym_cmds \
15892module_cmds \
15893module_expsym_cmds \
15894export_symbols_cmds \
15895prelink_cmds \
df7b86aa 15896postlink_cmds \
d7040cdb
SE
15897postinstall_cmds \
15898postuninstall_cmds \
15899finish_cmds \
15900sys_lib_search_path_spec \
15901sys_lib_dlsearch_path_spec; do
3725885a 15902 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 15903 *[\\\\\\\`\\"\\\$]*)
3725885a 15904 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
d7040cdb
SE
15905 ;;
15906 *)
15907 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15908 ;;
15909 esac
15910done
15911
d7040cdb
SE
15912ac_aux_dir='$ac_aux_dir'
15913xsi_shell='$xsi_shell'
15914lt_shell_append='$lt_shell_append'
15915
15916# See if we are running on zsh, and set the options which allow our
15917# commands through without removal of \ escapes INIT.
15918if test -n "\${ZSH_VERSION+set}" ; then
15919 setopt NO_GLOB_SUBST
15920fi
15921
15922
15923 PACKAGE='$PACKAGE'
15924 VERSION='$VERSION'
15925 TIMESTAMP='$TIMESTAMP'
15926 RM='$RM'
15927 ofile='$ofile'
15928
15929
15930
20e95c23
DJ
15931# Capture the value of obsolete ALL_LINGUAS because we need it to compute
15932 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
15933 # from automake.
15934 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15935 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15936 LINGUAS="${LINGUAS-%UNSET%}"
15937
13b2be9c
DJ
15938target_cpu_type=${target_cpu_type}
15939 cgen_cpu_prefix=${cgen_cpu_prefix}
15940 obj_format=${obj_format}
15941 te_file=${te_file}
15942
15943_ACEOF
15944
81ecdfbb 15945cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13b2be9c 15946
81ecdfbb 15947# Handling of arguments.
13b2be9c 15948for ac_config_target in $ac_config_targets
9b2b7d69 15949do
81ecdfbb
RW
15950 case $ac_config_target in
15951 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15952 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15953 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15954 "gdb.ini") CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
15955 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
15956 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15957 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15958 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15959 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15960 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15961
15962 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9b2b7d69
MM
15963 esac
15964done
15965
81ecdfbb 15966
13b2be9c
DJ
15967# If the user did not use the arguments to specify the items to instantiate,
15968# then the envvar interface is used. Set only those that are not.
15969# We use the long form for the default assignment because of an extremely
15970# bizarre bug on SunOS 4.1.3.
15971if $ac_need_defaults; then
15972 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15973 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15974 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15975fi
15976
15977# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 15978# simply because there is no reason against having it here, and in addition,
13b2be9c 15979# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
15980# Hook for its removal unless debugging.
15981# Note that there is a small window in which the directory will not be cleaned:
15982# after its creation but before its name has been assigned to `$tmp'.
13b2be9c
DJ
15983$debug ||
15984{
81ecdfbb
RW
15985 tmp=
15986 trap 'exit_status=$?
15987 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15988' 0
15989 trap 'as_fn_exit 1' 1 2 13 15
13b2be9c 15990}
13b2be9c 15991# Create a (secure) tmp directory for tmp files.
9b2b7d69 15992
13b2be9c 15993{
81ecdfbb 15994 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13b2be9c
DJ
15995 test -n "$tmp" && test -d "$tmp"
15996} ||
15997{
81ecdfbb
RW
15998 tmp=./conf$$-$RANDOM
15999 (umask 077 && mkdir "$tmp")
16000} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16001
16002# Set up the scripts for CONFIG_FILES section.
16003# No need to generate them if there are no CONFIG_FILES.
16004# This happens for instance with `./config.status config.h'.
16005if test -n "$CONFIG_FILES"; then
16006
16007
16008ac_cr=`echo X | tr X '\015'`
16009# On cygwin, bash can eat \r inside `` if the user requested igncr.
16010# But we know of no other shell where ac_cr would be empty at this
16011# point, so we can use a bashism as a fallback.
16012if test "x$ac_cr" = x; then
16013 eval ac_cr=\$\'\\r\'
16014fi
16015ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16016if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16017 ac_cs_awk_cr='\r'
16018else
16019 ac_cs_awk_cr=$ac_cr
16020fi
16021
16022echo 'BEGIN {' >"$tmp/subs1.awk" &&
16023_ACEOF
16024
16025
16026{
16027 echo "cat >conf$$subs.awk <<_ACEOF" &&
16028 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16029 echo "_ACEOF"
16030} >conf$$subs.sh ||
16031 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16032ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16033ac_delim='%!_!# '
16034for ac_last_try in false false false false false :; do
16035 . ./conf$$subs.sh ||
16036 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16037
16038 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16039 if test $ac_delim_n = $ac_delim_num; then
16040 break
16041 elif $ac_last_try; then
16042 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16043 else
16044 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16045 fi
16046done
16047rm -f conf$$subs.sh
16048
16049cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16050cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16051_ACEOF
16052sed -n '
16053h
16054s/^/S["/; s/!.*/"]=/
16055p
16056g
16057s/^[^!]*!//
16058:repl
16059t repl
16060s/'"$ac_delim"'$//
16061t delim
16062:nl
16063h
16064s/\(.\{148\}\).*/\1/
16065t more1
16066s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16067p
16068n
16069b repl
16070:more1
16071s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16072p
16073g
16074s/.\{148\}//
16075t nl
16076:delim
16077h
16078s/\(.\{148\}\).*/\1/
16079t more2
16080s/["\\]/\\&/g; s/^/"/; s/$/"/
16081p
16082b
16083:more2
16084s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16085p
16086g
16087s/.\{148\}//
16088t delim
16089' <conf$$subs.awk | sed '
16090/^[^""]/{
16091 N
16092 s/\n//
16093}
16094' >>$CONFIG_STATUS || ac_write_fail=1
16095rm -f conf$$subs.awk
16096cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16097_ACAWK
16098cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16099 for (key in S) S_is_set[key] = 1
16100 FS = "\a"
16101
16102}
13b2be9c 16103{
81ecdfbb
RW
16104 line = $ 0
16105 nfields = split(line, field, "@")
16106 substed = 0
16107 len = length(field[1])
16108 for (i = 2; i < nfields; i++) {
16109 key = field[i]
16110 keylen = length(key)
16111 if (S_is_set[key]) {
16112 value = S[key]
16113 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16114 len += length(value) + length(field[++i])
16115 substed = 1
16116 } else
16117 len += 1 + keylen
16118 }
16119
16120 print line
13b2be9c 16121}
9b2b7d69 16122
81ecdfbb
RW
16123_ACAWK
16124_ACEOF
16125cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16126if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16127 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16128else
16129 cat
16130fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16131 || as_fn_error "could not setup config files machinery" "$LINENO" 5
13b2be9c
DJ
16132_ACEOF
16133
81ecdfbb
RW
16134# VPATH may cause trouble with some makes, so we remove $(srcdir),
16135# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16136# trailing colons and then remove the whole line if VPATH becomes empty
16137# (actually we leave an empty line to preserve line numbers).
16138if test "x$srcdir" = x.; then
16139 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16140s/:*\$(srcdir):*/:/
16141s/:*\${srcdir}:*/:/
16142s/:*@srcdir@:*/:/
16143s/^\([^=]*=[ ]*\):*/\1/
16144s/:*$//
16145s/^[^=]*=[ ]*$//
16146}'
16147fi
16148
16149cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16150fi # test -n "$CONFIG_FILES"
13b2be9c 16151
81ecdfbb
RW
16152# Set up the scripts for CONFIG_HEADERS section.
16153# No need to generate them if there are no CONFIG_HEADERS.
16154# This happens for instance with `./config.status Makefile'.
16155if test -n "$CONFIG_HEADERS"; then
16156cat >"$tmp/defines.awk" <<\_ACAWK ||
16157BEGIN {
16158_ACEOF
13b2be9c 16159
81ecdfbb
RW
16160# Transform confdefs.h into an awk script `defines.awk', embedded as
16161# here-document in config.status, that substitutes the proper values into
16162# config.h.in to produce config.h.
9b2b7d69 16163
81ecdfbb
RW
16164# Create a delimiter string that does not exist in confdefs.h, to ease
16165# handling of long lines.
16166ac_delim='%!_!# '
16167for ac_last_try in false false :; do
16168 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16169 if test -z "$ac_t"; then
16170 break
16171 elif $ac_last_try; then
16172 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16173 else
16174 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16175 fi
16176done
16177
16178# For the awk script, D is an array of macro values keyed by name,
16179# likewise P contains macro parameters if any. Preserve backslash
16180# newline sequences.
16181
16182ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16183sed -n '
16184s/.\{148\}/&'"$ac_delim"'/g
16185t rset
16186:rset
16187s/^[ ]*#[ ]*define[ ][ ]*/ /
16188t def
16189d
16190:def
16191s/\\$//
16192t bsnl
16193s/["\\]/\\&/g
16194s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16195D["\1"]=" \3"/p
16196s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16197d
16198:bsnl
16199s/["\\]/\\&/g
16200s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16201D["\1"]=" \3\\\\\\n"\\/p
16202t cont
16203s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16204t cont
16205d
16206:cont
16207n
16208s/.\{148\}/&'"$ac_delim"'/g
16209t clear
16210:clear
16211s/\\$//
16212t bsnlc
16213s/["\\]/\\&/g; s/^/"/; s/$/"/p
16214d
16215:bsnlc
16216s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16217b cont
16218' <confdefs.h | sed '
16219s/'"$ac_delim"'/"\\\
16220"/g' >>$CONFIG_STATUS || ac_write_fail=1
16221
16222cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16223 for (key in D) D_is_set[key] = 1
16224 FS = "\a"
16225}
16226/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16227 line = \$ 0
16228 split(line, arg, " ")
16229 if (arg[1] == "#") {
16230 defundef = arg[2]
16231 mac1 = arg[3]
16232 } else {
16233 defundef = substr(arg[1], 2)
16234 mac1 = arg[2]
16235 }
16236 split(mac1, mac2, "(") #)
16237 macro = mac2[1]
16238 prefix = substr(line, 1, index(line, defundef) - 1)
16239 if (D_is_set[macro]) {
16240 # Preserve the white space surrounding the "#".
16241 print prefix "define", macro P[macro] D[macro]
16242 next
16243 } else {
16244 # Replace #undef with comments. This is necessary, for example,
16245 # in the case of _POSIX_SOURCE, which is predefined and required
16246 # on some systems where configure will not decide to define it.
16247 if (defundef == "undef") {
16248 print "/*", prefix defundef, macro, "*/"
16249 next
16250 }
16251 }
16252}
16253{ print }
16254_ACAWK
13b2be9c 16255_ACEOF
81ecdfbb
RW
16256cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16257 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16258fi # test -n "$CONFIG_HEADERS"
13b2be9c 16259
81ecdfbb
RW
16260
16261eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16262shift
16263for ac_tag
16264do
16265 case $ac_tag in
16266 :[FHLC]) ac_mode=$ac_tag; continue;;
16267 esac
16268 case $ac_mode$ac_tag in
16269 :[FHL]*:*);;
16270 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16271 :[FH]-) ac_tag=-:-;;
16272 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16273 esac
16274 ac_save_IFS=$IFS
16275 IFS=:
16276 set x $ac_tag
16277 IFS=$ac_save_IFS
16278 shift
16279 ac_file=$1
16280 shift
16281
16282 case $ac_mode in
16283 :L) ac_source=$1;;
16284 :[FH])
16285 ac_file_inputs=
16286 for ac_f
16287 do
16288 case $ac_f in
16289 -) ac_f="$tmp/stdin";;
16290 *) # Look for the file first in the build tree, then in the source tree
16291 # (if the path is not absolute). The absolute path cannot be DOS-style,
16292 # because $ac_f cannot contain `:'.
16293 test -f "$ac_f" ||
16294 case $ac_f in
16295 [\\/$]*) false;;
16296 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16297 esac ||
16298 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16299 esac
16300 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16301 as_fn_append ac_file_inputs " '$ac_f'"
16302 done
16303
16304 # Let's still pretend it is `configure' which instantiates (i.e., don't
16305 # use $as_me), people would be surprised to read:
16306 # /* config.h. Generated by config.status. */
16307 configure_input='Generated from '`
16308 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16309 `' by configure.'
16310 if test x"$ac_file" != x-; then
16311 configure_input="$ac_file. $configure_input"
16312 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16313$as_echo "$as_me: creating $ac_file" >&6;}
9b2b7d69 16314 fi
81ecdfbb
RW
16315 # Neutralize special characters interpreted by sed in replacement strings.
16316 case $configure_input in #(
16317 *\&* | *\|* | *\\* )
16318 ac_sed_conf_input=`$as_echo "$configure_input" |
16319 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16320 *) ac_sed_conf_input=$configure_input;;
16321 esac
252b5132 16322
81ecdfbb
RW
16323 case $ac_tag in
16324 *:-:* | *:-) cat >"$tmp/stdin" \
16325 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16326 esac
16327 ;;
252b5132 16328 esac
9b2b7d69 16329
81ecdfbb 16330 ac_dir=`$as_dirname -- "$ac_file" ||
13b2be9c 16331$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
16332 X"$ac_file" : 'X\(//\)[^/]' \| \
16333 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
16334 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16335$as_echo X"$ac_file" |
16336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16337 s//\1/
16338 q
16339 }
16340 /^X\(\/\/\)[^/].*/{
16341 s//\1/
16342 q
16343 }
16344 /^X\(\/\/\)$/{
16345 s//\1/
16346 q
16347 }
16348 /^X\(\/\).*/{
16349 s//\1/
16350 q
16351 }
16352 s/.*/./; q'`
16353 as_dir="$ac_dir"; as_fn_mkdir_p
13b2be9c
DJ
16354 ac_builddir=.
16355
81ecdfbb
RW
16356case "$ac_dir" in
16357.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16358*)
16359 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16360 # A ".." for each directory in $ac_dir_suffix.
16361 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16362 case $ac_top_builddir_sub in
16363 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16364 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16365 esac ;;
16366esac
16367ac_abs_top_builddir=$ac_pwd
16368ac_abs_builddir=$ac_pwd$ac_dir_suffix
16369# for backward compatibility:
16370ac_top_builddir=$ac_top_build_prefix
9b2b7d69 16371
13b2be9c 16372case $srcdir in
81ecdfbb 16373 .) # We are building in place.
13b2be9c 16374 ac_srcdir=.
81ecdfbb
RW
16375 ac_top_srcdir=$ac_top_builddir_sub
16376 ac_abs_top_srcdir=$ac_pwd ;;
16377 [\\/]* | ?:[\\/]* ) # Absolute name.
13b2be9c 16378 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
16379 ac_top_srcdir=$srcdir
16380 ac_abs_top_srcdir=$srcdir ;;
16381 *) # Relative name.
16382 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16383 ac_top_srcdir=$ac_top_build_prefix$srcdir
16384 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13b2be9c 16385esac
81ecdfbb 16386ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
ab509236 16387
252b5132 16388
81ecdfbb
RW
16389 case $ac_mode in
16390 :F)
16391 #
16392 # CONFIG_FILE
16393 #
9b2b7d69 16394
13b2be9c
DJ
16395 case $INSTALL in
16396 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb
RW
16397 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16398 esac
16399 ac_MKDIR_P=$MKDIR_P
16400 case $MKDIR_P in
16401 [\\/$]* | ?:[\\/]* ) ;;
16402 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
c8615825 16403 esac
81ecdfbb 16404_ACEOF
9b2b7d69 16405
81ecdfbb
RW
16406cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16407# If the template does not know about datarootdir, expand it.
16408# FIXME: This hack should be removed a few years after 2.60.
16409ac_datarootdir_hack=; ac_datarootdir_seen=
16410ac_sed_dataroot='
16411/datarootdir/ {
16412 p
16413 q
16414}
16415/@datadir@/p
16416/@docdir@/p
16417/@infodir@/p
16418/@localedir@/p
16419/@mandir@/p'
16420case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16421*datarootdir*) ac_datarootdir_seen=yes;;
16422*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16424$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16425_ACEOF
16426cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16427 ac_datarootdir_hack='
16428 s&@datadir@&$datadir&g
16429 s&@docdir@&$docdir&g
16430 s&@infodir@&$infodir&g
16431 s&@localedir@&$localedir&g
16432 s&@mandir@&$mandir&g
16433 s&\\\${datarootdir}&$datarootdir&g' ;;
16434esac
13b2be9c 16435_ACEOF
81ecdfbb
RW
16436
16437# Neutralize VPATH when `$srcdir' = `.'.
16438# Shell code in configure.ac might set extrasub.
16439# FIXME: do we really want to maintain this feature?
16440cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16441ac_sed_extra="$ac_vpsub
13b2be9c
DJ
16442$extrasub
16443_ACEOF
81ecdfbb 16444cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13b2be9c
DJ
16445:t
16446/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
16447s|@configure_input@|$ac_sed_conf_input|;t t
16448s&@top_builddir@&$ac_top_builddir_sub&;t t
16449s&@top_build_prefix@&$ac_top_build_prefix&;t t
16450s&@srcdir@&$ac_srcdir&;t t
16451s&@abs_srcdir@&$ac_abs_srcdir&;t t
16452s&@top_srcdir@&$ac_top_srcdir&;t t
16453s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16454s&@builddir@&$ac_builddir&;t t
16455s&@abs_builddir@&$ac_abs_builddir&;t t
16456s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16457s&@INSTALL@&$ac_INSTALL&;t t
16458s&@MKDIR_P@&$ac_MKDIR_P&;t t
16459$ac_datarootdir_hack
16460"
16461eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16462 || as_fn_error "could not create $ac_file" "$LINENO" 5
16463
16464test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16465 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16466 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16468which seems to be undefined. Please make sure it is defined." >&5
16469$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16470which seems to be undefined. Please make sure it is defined." >&2;}
16471
16472 rm -f "$tmp/stdin"
13b2be9c 16473 case $ac_file in
81ecdfbb
RW
16474 -) cat "$tmp/out" && rm -f "$tmp/out";;
16475 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16476 esac \
16477 || as_fn_error "could not create $ac_file" "$LINENO" 5
16478 ;;
16479 :H)
16480 #
16481 # CONFIG_HEADER
16482 #
13b2be9c 16483 if test x"$ac_file" != x-; then
81ecdfbb
RW
16484 {
16485 $as_echo "/* $configure_input */" \
16486 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16487 } >"$tmp/config.h" \
16488 || as_fn_error "could not create $ac_file" "$LINENO" 5
16489 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16490 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16491$as_echo "$as_me: $ac_file is unchanged" >&6;}
13b2be9c 16492 else
81ecdfbb
RW
16493 rm -f "$ac_file"
16494 mv "$tmp/config.h" "$ac_file" \
16495 || as_fn_error "could not create $ac_file" "$LINENO" 5
9b2b7d69 16496 fi
13b2be9c 16497 else
81ecdfbb
RW
16498 $as_echo "/* $configure_input */" \
16499 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16500 || as_fn_error "could not create -" "$LINENO" 5
9b2b7d69 16501 fi
81ecdfbb
RW
16502# Compute "$ac_file"'s index in $config_headers.
16503_am_arg="$ac_file"
13b2be9c
DJ
16504_am_stamp_count=1
16505for _am_header in $config_headers :; do
16506 case $_am_header in
81ecdfbb 16507 $_am_arg | $_am_arg:* )
13b2be9c
DJ
16508 break ;;
16509 * )
16510 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16511 esac
16512done
81ecdfbb
RW
16513echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16514$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16515 X"$_am_arg" : 'X\(//\)[^/]' \| \
16516 X"$_am_arg" : 'X\(//\)$' \| \
16517 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16518$as_echo X"$_am_arg" |
16519 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16520 s//\1/
16521 q
16522 }
16523 /^X\(\/\/\)[^/].*/{
16524 s//\1/
16525 q
16526 }
16527 /^X\(\/\/\)$/{
16528 s//\1/
16529 q
16530 }
16531 /^X\(\/\).*/{
16532 s//\1/
16533 q
16534 }
16535 s/.*/./; q'`/stamp-h$_am_stamp_count
16536 ;;
ab509236 16537
81ecdfbb
RW
16538 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16539$as_echo "$as_me: executing $ac_file commands" >&6;}
16540 ;;
16541 esac
13b2be9c
DJ
16542
16543
81ecdfbb
RW
16544 case $ac_file$ac_mode in
16545 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16546 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16547 # are listed without --file. Let's play safe and only enable the eval
16548 # if we detect the quoting.
16549 case $CONFIG_FILES in
16550 *\'*) eval set x "$CONFIG_FILES" ;;
16551 *) set x $CONFIG_FILES ;;
16552 esac
16553 shift
16554 for mf
16555 do
16556 # Strip MF so we end up with the name of the file.
16557 mf=`echo "$mf" | sed -e 's/:.*$//'`
16558 # Check whether this is an Automake generated Makefile or not.
16559 # We used to match only the files named `Makefile.in', but
16560 # some people rename them; so instead we look at the file content.
16561 # Grep'ing the first line is not enough: some people post-process
16562 # each Makefile.in and add a new line on top of each file to say so.
16563 # Grep'ing the whole file is not good either: AIX grep has a line
16564 # limit of 2048, but all sed's we know have understand at least 4000.
16565 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16566 dirpart=`$as_dirname -- "$mf" ||
13b2be9c 16567$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
16568 X"$mf" : 'X\(//\)[^/]' \| \
16569 X"$mf" : 'X\(//\)$' \| \
81ecdfbb
RW
16570 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16571$as_echo X"$mf" |
16572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16573 s//\1/
16574 q
16575 }
16576 /^X\(\/\/\)[^/].*/{
16577 s//\1/
16578 q
16579 }
16580 /^X\(\/\/\)$/{
16581 s//\1/
16582 q
16583 }
16584 /^X\(\/\).*/{
16585 s//\1/
16586 q
16587 }
16588 s/.*/./; q'`
16589 else
16590 continue
16591 fi
16592 # Extract the definition of DEPDIR, am__include, and am__quote
16593 # from the Makefile without running `make'.
16594 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16595 test -z "$DEPDIR" && continue
16596 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16597 test -z "am__include" && continue
16598 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16599 # When using ansi2knr, U may be empty or an underscore; expand it
16600 U=`sed -n 's/^U = //p' < "$mf"`
16601 # Find all dependency output files, they are included files with
16602 # $(DEPDIR) in their names. We invoke sed twice because it is the
16603 # simplest approach to changing $(DEPDIR) to its actual value in the
16604 # expansion.
16605 for file in `sed -n "
16606 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16607 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16608 # Make sure the directory exists.
16609 test -f "$dirpart/$file" && continue
16610 fdir=`$as_dirname -- "$file" ||
13b2be9c 16611$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
16612 X"$file" : 'X\(//\)[^/]' \| \
16613 X"$file" : 'X\(//\)$' \| \
81ecdfbb
RW
16614 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16615$as_echo X"$file" |
16616 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16617 s//\1/
16618 q
16619 }
16620 /^X\(\/\/\)[^/].*/{
16621 s//\1/
16622 q
16623 }
16624 /^X\(\/\/\)$/{
16625 s//\1/
16626 q
16627 }
16628 /^X\(\/\).*/{
16629 s//\1/
16630 q
16631 }
16632 s/.*/./; q'`
16633 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16634 # echo "creating $dirpart/$file"
16635 echo '# dummy' > "$dirpart/$file"
13b2be9c 16636 done
13b2be9c 16637 done
81ecdfbb 16638}
d7040cdb 16639 ;;
81ecdfbb 16640 "libtool":C)
d7040cdb
SE
16641
16642 # See if we are running on zsh, and set the options which allow our
16643 # commands through without removal of \ escapes.
16644 if test -n "${ZSH_VERSION+set}" ; then
16645 setopt NO_GLOB_SUBST
16646 fi
16647
16648 cfgfile="${ofile}T"
16649 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16650 $RM "$cfgfile"
16651
16652 cat <<_LT_EOF >> "$cfgfile"
16653#! $SHELL
16654
16655# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
718a6fd8 16656# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
16657# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16658# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16659#
718a6fd8 16660# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
df7b86aa
NC
16661# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
16662# Inc.
718a6fd8 16663# Written by Gordon Matzigkeit, 1996
d7040cdb 16664#
718a6fd8 16665# This file is part of GNU Libtool.
d7040cdb 16666#
718a6fd8
SE
16667# GNU Libtool is free software; you can redistribute it and/or
16668# modify it under the terms of the GNU General Public License as
16669# published by the Free Software Foundation; either version 2 of
16670# the License, or (at your option) any later version.
d7040cdb 16671#
718a6fd8
SE
16672# As a special exception to the GNU General Public License,
16673# if you distribute this file as part of a program or library that
16674# is built using GNU Libtool, you may include this file under the
16675# same distribution terms that you use for the rest of that program.
d7040cdb 16676#
718a6fd8
SE
16677# GNU Libtool is distributed in the hope that it will be useful,
16678# but WITHOUT ANY WARRANTY; without even the implied warranty of
16679# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16680# GNU General Public License for more details.
d7040cdb 16681#
718a6fd8
SE
16682# You should have received a copy of the GNU General Public License
16683# along with GNU Libtool; see the file COPYING. If not, a copy
16684# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16685# obtained by writing to the Free Software Foundation, Inc.,
16686# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
16687
16688
16689# The names of the tagged configurations supported by this script.
16690available_tags=""
16691
16692# ### BEGIN LIBTOOL CONFIG
16693
16694# Which release of libtool.m4 was used?
16695macro_version=$macro_version
16696macro_revision=$macro_revision
16697
16698# Whether or not to build shared libraries.
16699build_libtool_libs=$enable_shared
16700
16701# Whether or not to build static libraries.
16702build_old_libs=$enable_static
16703
16704# What type of objects to build.
16705pic_mode=$pic_mode
16706
16707# Whether or not to optimize for fast installation.
16708fast_install=$enable_fast_install
16709
3725885a
RW
16710# Shell to use when invoking shell scripts.
16711SHELL=$lt_SHELL
16712
16713# An echo program that protects backslashes.
16714ECHO=$lt_ECHO
16715
d7040cdb
SE
16716# The host system.
16717host_alias=$host_alias
16718host=$host
16719host_os=$host_os
16720
16721# The build system.
16722build_alias=$build_alias
16723build=$build
16724build_os=$build_os
16725
16726# A sed program that does not truncate output.
16727SED=$lt_SED
16728
16729# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16730Xsed="\$SED -e 1s/^X//"
16731
16732# A grep program that handles long lines.
16733GREP=$lt_GREP
16734
16735# An ERE matcher.
16736EGREP=$lt_EGREP
16737
16738# A literal string matcher.
16739FGREP=$lt_FGREP
16740
16741# A BSD- or MS-compatible name lister.
16742NM=$lt_NM
16743
16744# Whether we need soft or hard links.
16745LN_S=$lt_LN_S
16746
16747# What is the maximum length of a command?
16748max_cmd_len=$max_cmd_len
16749
16750# Object file suffix (normally "o").
16751objext=$ac_objext
16752
16753# Executable file suffix (normally "").
16754exeext=$exeext
16755
16756# whether the shell understands "unset".
16757lt_unset=$lt_unset
16758
16759# turn spaces into newlines.
16760SP2NL=$lt_lt_SP2NL
16761
16762# turn newlines into spaces.
16763NL2SP=$lt_lt_NL2SP
16764
df7b86aa
NC
16765# convert \$build file names to \$host format.
16766to_host_file_cmd=$lt_cv_to_host_file_cmd
16767
16768# convert \$build files to toolchain format.
16769to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16770
718a6fd8
SE
16771# An object symbol dumper.
16772OBJDUMP=$lt_OBJDUMP
16773
d7040cdb
SE
16774# Method to check whether dependent libraries are shared objects.
16775deplibs_check_method=$lt_deplibs_check_method
16776
df7b86aa 16777# Command to use when deplibs_check_method = "file_magic".
d7040cdb
SE
16778file_magic_cmd=$lt_file_magic_cmd
16779
df7b86aa
NC
16780# How to find potential files when deplibs_check_method = "file_magic".
16781file_magic_glob=$lt_file_magic_glob
16782
16783# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16784want_nocaseglob=$lt_want_nocaseglob
16785
16786# DLL creation program.
16787DLLTOOL=$lt_DLLTOOL
16788
16789# Command to associate shared and link libraries.
16790sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16791
d7040cdb
SE
16792# The archiver.
16793AR=$lt_AR
df7b86aa
NC
16794
16795# Flags to create an archive.
d7040cdb
SE
16796AR_FLAGS=$lt_AR_FLAGS
16797
df7b86aa
NC
16798# How to feed a file listing to the archiver.
16799archiver_list_spec=$lt_archiver_list_spec
16800
d7040cdb
SE
16801# A symbol stripping program.
16802STRIP=$lt_STRIP
16803
16804# Commands used to install an old-style archive.
16805RANLIB=$lt_RANLIB
16806old_postinstall_cmds=$lt_old_postinstall_cmds
16807old_postuninstall_cmds=$lt_old_postuninstall_cmds
16808
3725885a
RW
16809# Whether to use a lock for old archive extraction.
16810lock_old_archive_extraction=$lock_old_archive_extraction
16811
d7040cdb
SE
16812# A C compiler.
16813LTCC=$lt_CC
16814
16815# LTCC compiler flags.
16816LTCFLAGS=$lt_CFLAGS
16817
16818# Take the output of nm and produce a listing of raw symbols and C names.
16819global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16820
16821# Transform the output of nm in a proper C declaration.
16822global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16823
16824# Transform the output of nm in a C name address pair.
16825global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16826
718a6fd8
SE
16827# Transform the output of nm in a C name address pair when lib prefix is needed.
16828global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16829
df7b86aa
NC
16830# Specify filename containing input files for \$NM.
16831nm_file_list_spec=$lt_nm_file_list_spec
16832
16833# The root where to search for dependent libraries,and in which our libraries should be installed.
16834lt_sysroot=$lt_sysroot
16835
d7040cdb
SE
16836# The name of the directory that contains temporary libtool files.
16837objdir=$objdir
16838
d7040cdb
SE
16839# Used to examine libraries when file_magic_cmd begins with "file".
16840MAGIC_CMD=$MAGIC_CMD
16841
16842# Must we lock files when doing compilation?
16843need_locks=$lt_need_locks
16844
df7b86aa
NC
16845# Manifest tool.
16846MANIFEST_TOOL=$lt_MANIFEST_TOOL
16847
718a6fd8
SE
16848# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16849DSYMUTIL=$lt_DSYMUTIL
16850
16851# Tool to change global to local symbols on Mac OS X.
16852NMEDIT=$lt_NMEDIT
16853
16854# Tool to manipulate fat objects and archives on Mac OS X.
16855LIPO=$lt_LIPO
16856
16857# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16858OTOOL=$lt_OTOOL
16859
16860# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16861OTOOL64=$lt_OTOOL64
16862
d7040cdb
SE
16863# Old archive suffix (normally "a").
16864libext=$libext
16865
16866# Shared library suffix (normally ".so").
16867shrext_cmds=$lt_shrext_cmds
16868
16869# The commands to extract the exported symbol list from a shared archive.
16870extract_expsyms_cmds=$lt_extract_expsyms_cmds
16871
16872# Variables whose values should be saved in libtool wrapper scripts and
16873# restored at link time.
16874variables_saved_for_relink=$lt_variables_saved_for_relink
16875
16876# Do we need the "lib" prefix for modules?
16877need_lib_prefix=$need_lib_prefix
16878
16879# Do we need a version for libraries?
16880need_version=$need_version
16881
16882# Library versioning type.
16883version_type=$version_type
16884
16885# Shared library runtime path variable.
16886runpath_var=$runpath_var
16887
16888# Shared library path variable.
16889shlibpath_var=$shlibpath_var
16890
16891# Is shlibpath searched before the hard-coded library search path?
16892shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16893
16894# Format of library name prefix.
16895libname_spec=$lt_libname_spec
16896
16897# List of archive names. First name is the real one, the rest are links.
16898# The last name is the one that the linker finds with -lNAME
16899library_names_spec=$lt_library_names_spec
16900
16901# The coded name of the library, if different from the real name.
16902soname_spec=$lt_soname_spec
16903
3725885a
RW
16904# Permission mode override for installation of shared libraries.
16905install_override_mode=$lt_install_override_mode
16906
d7040cdb
SE
16907# Command to use after installation of a shared archive.
16908postinstall_cmds=$lt_postinstall_cmds
16909
16910# Command to use after uninstallation of a shared archive.
16911postuninstall_cmds=$lt_postuninstall_cmds
16912
16913# Commands used to finish a libtool library installation in a directory.
16914finish_cmds=$lt_finish_cmds
16915
16916# As "finish_cmds", except a single script fragment to be evaled but
16917# not shown.
16918finish_eval=$lt_finish_eval
16919
16920# Whether we should hardcode library paths into libraries.
16921hardcode_into_libs=$hardcode_into_libs
16922
16923# Compile-time system search path for libraries.
16924sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16925
16926# Run-time system search path for libraries.
16927sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16928
16929# Whether dlopen is supported.
16930dlopen_support=$enable_dlopen
16931
16932# Whether dlopen of programs is supported.
16933dlopen_self=$enable_dlopen_self
16934
16935# Whether dlopen of statically linked programs is supported.
16936dlopen_self_static=$enable_dlopen_self_static
16937
16938# Commands to strip libraries.
16939old_striplib=$lt_old_striplib
16940striplib=$lt_striplib
16941
16942
16943# The linker used to build libraries.
16944LD=$lt_LD
16945
3725885a
RW
16946# How to create reloadable object files.
16947reload_flag=$lt_reload_flag
16948reload_cmds=$lt_reload_cmds
16949
d7040cdb
SE
16950# Commands used to build an old-style archive.
16951old_archive_cmds=$lt_old_archive_cmds
16952
16953# A language specific compiler.
16954CC=$lt_compiler
16955
16956# Is the compiler the GNU compiler?
16957with_gcc=$GCC
16958
16959# Compiler flag to turn off builtin functions.
16960no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16961
d7040cdb
SE
16962# Additional compiler flags for building library objects.
16963pic_flag=$lt_lt_prog_compiler_pic
16964
df7b86aa
NC
16965# How to pass a linker flag through the compiler.
16966wl=$lt_lt_prog_compiler_wl
16967
d7040cdb
SE
16968# Compiler flag to prevent dynamic linking.
16969link_static_flag=$lt_lt_prog_compiler_static
16970
16971# Does compiler simultaneously support -c and -o options?
16972compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16973
16974# Whether or not to add -lc for building shared libraries.
16975build_libtool_need_lc=$archive_cmds_need_lc
16976
16977# Whether or not to disallow shared libs when runtime libs are static.
16978allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16979
16980# Compiler flag to allow reflexive dlopens.
16981export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16982
16983# Compiler flag to generate shared objects directly from archives.
16984whole_archive_flag_spec=$lt_whole_archive_flag_spec
16985
16986# Whether the compiler copes with passing no objects directly.
16987compiler_needs_object=$lt_compiler_needs_object
16988
16989# Create an old-style archive from a shared archive.
16990old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16991
16992# Create a temporary old-style archive to link instead of a shared archive.
16993old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16994
16995# Commands used to build a shared archive.
16996archive_cmds=$lt_archive_cmds
16997archive_expsym_cmds=$lt_archive_expsym_cmds
16998
16999# Commands used to build a loadable module if different from building
17000# a shared archive.
17001module_cmds=$lt_module_cmds
17002module_expsym_cmds=$lt_module_expsym_cmds
17003
17004# Whether we are building with GNU ld or not.
17005with_gnu_ld=$lt_with_gnu_ld
17006
17007# Flag that allows shared libraries with undefined symbols to be built.
17008allow_undefined_flag=$lt_allow_undefined_flag
17009
17010# Flag that enforces no undefined symbols.
17011no_undefined_flag=$lt_no_undefined_flag
17012
17013# Flag to hardcode \$libdir into a binary during linking.
17014# This must work even if \$libdir does not exist
17015hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17016
17017# If ld is used when linking, flag to hardcode \$libdir into a binary
17018# during linking. This must work even if \$libdir does not exist.
17019hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17020
17021# Whether we need a single "-rpath" flag with a separated argument.
17022hardcode_libdir_separator=$lt_hardcode_libdir_separator
17023
17024# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17025# DIR into the resulting binary.
17026hardcode_direct=$hardcode_direct
17027
17028# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17029# DIR into the resulting binary and the resulting library dependency is
17030# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17031# library is relocated.
17032hardcode_direct_absolute=$hardcode_direct_absolute
17033
17034# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17035# into the resulting binary.
17036hardcode_minus_L=$hardcode_minus_L
17037
17038# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17039# into the resulting binary.
17040hardcode_shlibpath_var=$hardcode_shlibpath_var
17041
17042# Set to "yes" if building a shared library automatically hardcodes DIR
17043# into the library and all subsequent libraries and executables linked
17044# against it.
17045hardcode_automatic=$hardcode_automatic
17046
17047# Set to yes if linker adds runtime paths of dependent libraries
17048# to runtime path list.
17049inherit_rpath=$inherit_rpath
17050
17051# Whether libtool must link a program against all its dependency libraries.
17052link_all_deplibs=$link_all_deplibs
17053
d7040cdb
SE
17054# Set to "yes" if exported symbols are required.
17055always_export_symbols=$always_export_symbols
17056
17057# The commands to list exported symbols.
17058export_symbols_cmds=$lt_export_symbols_cmds
17059
17060# Symbols that should not be listed in the preloaded symbols.
17061exclude_expsyms=$lt_exclude_expsyms
17062
17063# Symbols that must always be exported.
17064include_expsyms=$lt_include_expsyms
17065
17066# Commands necessary for linking programs (against libraries) with templates.
17067prelink_cmds=$lt_prelink_cmds
17068
df7b86aa
NC
17069# Commands necessary for finishing linking programs.
17070postlink_cmds=$lt_postlink_cmds
17071
d7040cdb
SE
17072# Specify filename containing input files.
17073file_list_spec=$lt_file_list_spec
17074
17075# How to hardcode a shared library path into an executable.
17076hardcode_action=$hardcode_action
17077
17078# ### END LIBTOOL CONFIG
17079
17080_LT_EOF
17081
17082 case $host_os in
17083 aix3*)
17084 cat <<\_LT_EOF >> "$cfgfile"
17085# AIX sometimes has problems with the GCC collect2 program. For some
17086# reason, if we set the COLLECT_NAMES environment variable, the problems
17087# vanish in a puff of smoke.
17088if test "X${COLLECT_NAMES+set}" != Xset; then
17089 COLLECT_NAMES=
17090 export COLLECT_NAMES
17091fi
17092_LT_EOF
17093 ;;
17094 esac
17095
17096
17097ltmain="$ac_aux_dir/ltmain.sh"
17098
17099
17100 # We use sed instead of cat because bash on DJGPP gets confused if
17101 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17102 # text mode, it properly converts lines to CR/LF. This bash problem
17103 # is reportedly fixed, but why not run on old versions too?
df7b86aa
NC
17104 sed '$q' "$ltmain" >> "$cfgfile" \
17105 || (rm -f "$cfgfile"; exit 1)
17106
17107 if test x"$xsi_shell" = xyes; then
17108 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17109func_dirname ()\
17110{\
17111\ case ${1} in\
17112\ */*) func_dirname_result="${1%/*}${2}" ;;\
17113\ * ) func_dirname_result="${3}" ;;\
17114\ esac\
17115} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17116 && mv -f "$cfgfile.tmp" "$cfgfile" \
17117 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17118test 0 -eq $? || _lt_function_replace_fail=:
17119
17120
17121 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17122func_basename ()\
17123{\
17124\ func_basename_result="${1##*/}"\
17125} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17126 && mv -f "$cfgfile.tmp" "$cfgfile" \
17127 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17128test 0 -eq $? || _lt_function_replace_fail=:
17129
17130
17131 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17132func_dirname_and_basename ()\
17133{\
17134\ case ${1} in\
17135\ */*) func_dirname_result="${1%/*}${2}" ;;\
17136\ * ) func_dirname_result="${3}" ;;\
17137\ esac\
17138\ func_basename_result="${1##*/}"\
17139} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17140 && mv -f "$cfgfile.tmp" "$cfgfile" \
17141 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17142test 0 -eq $? || _lt_function_replace_fail=:
17143
17144
17145 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17146func_stripname ()\
17147{\
17148\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17149\ # positional parameters, so assign one to ordinary parameter first.\
17150\ func_stripname_result=${3}\
17151\ func_stripname_result=${func_stripname_result#"${1}"}\
17152\ func_stripname_result=${func_stripname_result%"${2}"}\
17153} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17154 && mv -f "$cfgfile.tmp" "$cfgfile" \
17155 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17156test 0 -eq $? || _lt_function_replace_fail=:
17157
17158
17159 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17160func_split_long_opt ()\
17161{\
17162\ func_split_long_opt_name=${1%%=*}\
17163\ func_split_long_opt_arg=${1#*=}\
17164} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17165 && mv -f "$cfgfile.tmp" "$cfgfile" \
17166 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17167test 0 -eq $? || _lt_function_replace_fail=:
17168
17169
17170 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17171func_split_short_opt ()\
17172{\
17173\ func_split_short_opt_arg=${1#??}\
17174\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17175} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17176 && mv -f "$cfgfile.tmp" "$cfgfile" \
17177 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17178test 0 -eq $? || _lt_function_replace_fail=:
17179
17180
17181 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17182func_lo2o ()\
17183{\
17184\ case ${1} in\
17185\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17186\ *) func_lo2o_result=${1} ;;\
17187\ esac\
17188} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17189 && mv -f "$cfgfile.tmp" "$cfgfile" \
17190 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17191test 0 -eq $? || _lt_function_replace_fail=:
17192
17193
17194 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17195func_xform ()\
17196{\
17197 func_xform_result=${1%.*}.lo\
17198} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17199 && mv -f "$cfgfile.tmp" "$cfgfile" \
17200 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17201test 0 -eq $? || _lt_function_replace_fail=:
17202
17203
17204 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17205func_arith ()\
17206{\
17207 func_arith_result=$(( $* ))\
17208} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17209 && mv -f "$cfgfile.tmp" "$cfgfile" \
17210 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17211test 0 -eq $? || _lt_function_replace_fail=:
17212
17213
17214 sed -e '/^func_len ()$/,/^} # func_len /c\
17215func_len ()\
17216{\
17217 func_len_result=${#1}\
17218} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17219 && mv -f "$cfgfile.tmp" "$cfgfile" \
17220 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17221test 0 -eq $? || _lt_function_replace_fail=:
17222
17223fi
17224
17225if test x"$lt_shell_append" = xyes; then
17226 sed -e '/^func_append ()$/,/^} # func_append /c\
17227func_append ()\
17228{\
17229 eval "${1}+=\\${2}"\
17230} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17231 && mv -f "$cfgfile.tmp" "$cfgfile" \
17232 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17233test 0 -eq $? || _lt_function_replace_fail=:
17234
17235
17236 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17237func_append_quoted ()\
17238{\
17239\ func_quote_for_eval "${2}"\
17240\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17241} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17242 && mv -f "$cfgfile.tmp" "$cfgfile" \
17243 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17244test 0 -eq $? || _lt_function_replace_fail=:
17245
17246
17247 # Save a `func_append' function call where possible by direct use of '+='
17248 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17249 && mv -f "$cfgfile.tmp" "$cfgfile" \
17250 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17251 test 0 -eq $? || _lt_function_replace_fail=:
17252else
17253 # Save a `func_append' function call even when '+=' is not available
17254 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17255 && mv -f "$cfgfile.tmp" "$cfgfile" \
17256 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17257 test 0 -eq $? || _lt_function_replace_fail=:
17258fi
17259
17260if test x"$_lt_function_replace_fail" = x":"; then
17261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17262$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17263fi
17264
17265
17266 mv -f "$cfgfile" "$ofile" ||
d7040cdb
SE
17267 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17268 chmod +x "$ofile"
17269
13b2be9c 17270 ;;
81ecdfbb 17271 "default-1":C)
20e95c23
DJ
17272 for ac_file in $CONFIG_FILES; do
17273 # Support "outfile[:infile[:infile...]]"
17274 case "$ac_file" in
17275 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17276 esac
17277 # PO directories have a Makefile.in generated from Makefile.in.in.
17278 case "$ac_file" in */Makefile.in)
17279 # Adjust a relative srcdir.
17280 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
3cac54d2 17281 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
20e95c23
DJ
17282 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17283 # In autoconf-2.13 it is called $ac_given_srcdir.
17284 # In autoconf-2.50 it is called $srcdir.
17285 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17286 case "$ac_given_srcdir" in
17287 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17288 /*) top_srcdir="$ac_given_srcdir" ;;
17289 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17290 esac
17291 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17292 rm -f "$ac_dir/POTFILES"
17293 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17294 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17295 POMAKEFILEDEPS="POTFILES.in"
17296 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
17297 # on $ac_dir but don't depend on user-specified configuration
17298 # parameters.
17299 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17300 # The LINGUAS file contains the set of available languages.
17301 if test -n "$OBSOLETE_ALL_LINGUAS"; then
17302 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17303 fi
17304 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17305 # Hide the ALL_LINGUAS assigment from automake.
17306 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17307 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17308 else
17309 # The set of available languages was given in configure.in.
17310 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17311 fi
17312 case "$ac_given_srcdir" in
17313 .) srcdirpre= ;;
17314 *) srcdirpre='$(srcdir)/' ;;
17315 esac
17316 POFILES=
17317 GMOFILES=
17318 UPDATEPOFILES=
17319 DUMMYPOFILES=
17320 for lang in $ALL_LINGUAS; do
17321 POFILES="$POFILES $srcdirpre$lang.po"
17322 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17323 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17324 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17325 done
17326 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17327 # environment variable.
17328 INST_LINGUAS=
17329 if test -n "$ALL_LINGUAS"; then
17330 for presentlang in $ALL_LINGUAS; do
17331 useit=no
17332 if test "%UNSET%" != "$LINGUAS"; then
17333 desiredlanguages="$LINGUAS"
17334 else
17335 desiredlanguages="$ALL_LINGUAS"
17336 fi
17337 for desiredlang in $desiredlanguages; do
17338 # Use the presentlang catalog if desiredlang is
17339 # a. equal to presentlang, or
17340 # b. a variant of presentlang (because in this case,
17341 # presentlang can be used as a fallback for messages
17342 # which are not translated in the desiredlang catalog).
17343 case "$desiredlang" in
17344 "$presentlang"*) useit=yes;;
17345 esac
17346 done
17347 if test $useit = yes; then
17348 INST_LINGUAS="$INST_LINGUAS $presentlang"
17349 fi
17350 done
17351 fi
17352 CATALOGS=
17353 if test -n "$INST_LINGUAS"; then
17354 for lang in $INST_LINGUAS; do
17355 CATALOGS="$CATALOGS $lang.gmo"
17356 done
17357 fi
17358 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17359 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"
17360 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17361 if test -f "$f"; then
17362 case "$f" in
17363 *.orig | *.bak | *~) ;;
17364 *) cat "$f" >> "$ac_dir/Makefile" ;;
17365 esac
17366 fi
17367 done
17368 fi
17369 ;;
17370 esac
17371 done ;;
81ecdfbb 17372 "default":C) rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
252b5132
RH
17373 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
17374 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
17375 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
17376 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
17377 if test "x$cgen_cpu_prefix" != x ; then
17378 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
20e95c23 17379 fi ;;
81ecdfbb 17380
13b2be9c 17381 esac
81ecdfbb 17382done # for ac_tag
13b2be9c 17383
13b2be9c 17384
81ecdfbb 17385as_fn_exit 0
13b2be9c 17386_ACEOF
13b2be9c
DJ
17387ac_clean_files=$ac_clean_files_save
17388
81ecdfbb
RW
17389test $ac_write_fail = 0 ||
17390 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17391
13b2be9c
DJ
17392
17393# configure is writing to config.log, and then calls config.status.
17394# config.status does its own redirection, appending to config.log.
17395# Unfortunately, on DOS this fails, as config.log is still kept open
17396# by configure, so config.status won't be able to write to it; its
17397# output is simply discarded. So we exec the FD to /dev/null,
17398# effectively closing config.log, so it can be properly (re)opened and
17399# appended to by config.status. When coming back to configure, we
17400# need to make the FD available again.
17401if test "$no_create" != yes; then
17402 ac_cs_success=:
17403 ac_config_status_args=
17404 test "$silent" = yes &&
17405 ac_config_status_args="$ac_config_status_args --quiet"
17406 exec 5>/dev/null
17407 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17408 exec 5>>config.log
17409 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17410 # would make configure fail if this is the last instruction.
81ecdfbb
RW
17411 $ac_cs_success || as_fn_exit $?
17412fi
17413if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17415$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13b2be9c 17416fi
252b5132 17417