sim: use libiberty countargv in more places
[deliverable/binutils-gdb.git] / sim / common / configure
CommitLineData
c906108c 1#! /bin/sh
b7026657 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.
b7026657 8#
b7026657
AC
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## -------------------- ##
c906108c 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 :
b7026657
AC
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b7026657
AC
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
b7026657 31fi
c906108c 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 }
b7026657 79fi
c906108c
SS
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
b7026657
AC
121PS1='$ '
122PS2='> '
123PS4='+ '
c906108c 124
b7026657 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
6bb11ab3
L
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
b7026657 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."
b7026657 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."
b7026657 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
c906108c 380
81ecdfbb
RW
381if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b7026657
AC
383 as_expr=expr
384else
385 as_expr=false
386fi
c906108c 387
81ecdfbb 388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b7026657
AC
389 as_basename=basename
390else
391 as_basename=false
392fi
c906108c 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
c906108c 399
81ecdfbb 400as_me=`$as_basename -- "$0" ||
b7026657
AC
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'`
c906108c 418
b7026657
AC
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
c906108c 425
c906108c 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 |
b7026657 436 sed '
81ecdfbb
RW
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
b7026657 441 N
81ecdfbb
RW
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
b7026657 444 t loop
81ecdfbb 445 s/-\n.*//
b7026657 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; }
b7026657
AC
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"
b7026657
AC
454 # Exit status is that of the last command.
455 exit
456}
c906108c 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';;
b7026657 469esac
c906108c 470
81ecdfbb
RW
471rm -f conf$$ conf$$.exe conf$$.file
472if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
b7026657 474else
81ecdfbb
RW
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
b7026657 477fi
81ecdfbb
RW
478if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
b7026657 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'
b7026657 491 fi
b7026657
AC
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
c906108c 497
b7026657 498if mkdir -p . 2>/dev/null; then
81ecdfbb 499 as_mkdir_p='mkdir -p "$as_dir"'
b7026657
AC
500else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503fi
c906108c 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
c906108c 527
b7026657
AC
528# Sed expression to map a string onto a valid CPP name.
529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
c906108c 530
b7026657
AC
531# Sed expression to map a string onto a valid variable name.
532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
c906108c 533
6bb11ab3
L
534SHELL=${CONFIG_SHELL-/bin/sh}
535
c906108c 536
81ecdfbb 537exec 7<&0 </dev/null 6>&1
c906108c 538
b7026657
AC
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`
c906108c 543
c906108c 544#
b7026657 545# Initializations.
c906108c 546#
b7026657 547ac_default_prefix=/usr/local
81ecdfbb 548ac_clean_files=
b7026657 549ac_config_libobj_dir=.
81ecdfbb 550LIBOBJS=
b7026657
AC
551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
b7026657
AC
555
556# Identity of this package.
557PACKAGE_NAME=
558PACKAGE_TARNAME=
559PACKAGE_VERSION=
560PACKAGE_STRING=
561PACKAGE_BUGREPORT=
81ecdfbb 562PACKAGE_URL=
b7026657
AC
563
564ac_unique_file="Makefile.in"
565# Factoring default headers for most tests.
566ac_includes_default="\
567#include <stdio.h>
81ecdfbb 568#ifdef HAVE_SYS_TYPES_H
b7026657
AC
569# include <sys/types.h>
570#endif
81ecdfbb 571#ifdef HAVE_SYS_STAT_H
b7026657
AC
572# include <sys/stat.h>
573#endif
81ecdfbb 574#ifdef STDC_HEADERS
b7026657
AC
575# include <stdlib.h>
576# include <stddef.h>
577#else
81ecdfbb 578# ifdef HAVE_STDLIB_H
b7026657
AC
579# include <stdlib.h>
580# endif
581#endif
81ecdfbb
RW
582#ifdef HAVE_STRING_H
583# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
b7026657
AC
584# include <memory.h>
585# endif
586# include <string.h>
587#endif
81ecdfbb 588#ifdef HAVE_STRINGS_H
b7026657
AC
589# include <strings.h>
590#endif
81ecdfbb 591#ifdef HAVE_INTTYPES_H
b7026657 592# include <inttypes.h>
b7026657 593#endif
81ecdfbb
RW
594#ifdef HAVE_STDINT_H
595# include <stdint.h>
596#endif
597#ifdef HAVE_UNISTD_H
b7026657
AC
598# include <unistd.h>
599#endif"
c906108c 600
81ecdfbb
RW
601ac_subst_vars='LTLIBOBJS
602LIBOBJS
603TARGET_SUBDIR
604CPP_FOR_TARGET
605REPORT_BUGS_TEXI
606REPORT_BUGS_TO
607PKGVERSION
608sim_profile
609sim_trace
610sim_stdio
611sim_debug
612sim_cflags
613sim_bswap
614MAINT
31e6ad7d
MF
615MAINTAINER_MODE_FALSE
616MAINTAINER_MODE_TRUE
6bb11ab3
L
617lt_cv_dlopen_libs
618OTOOL64
619OTOOL
620LIPO
621NMEDIT
622DSYMUTIL
623AWK
624STRIP
625OBJDUMP
626LN_S
627NM
628ac_ct_DUMPBIN
629DUMPBIN
630LD
631FGREP
632SED
633LIBTOOL
634PLUGINS_FALSE
635PLUGINS_TRUE
aadc9410
MF
636zlibinc
637zlibdir
81ecdfbb
RW
638CATOBJEXT
639GENCAT
640INSTOBJEXT
641DATADIRNAME
642CATALOGS
643POSUB
644GMSGFMT
645XGETTEXT
646INCINTL
647LIBINTL_DEP
648LIBINTL
649USE_NLS
db2e4d67
MF
650GMAKE_FALSE
651GMAKE_TRUE
652MAKE
653CCDEPMODE
654DEPDIR
655am__leading_dot
5f3ef9d0 656PACKAGE
81ecdfbb
RW
657RANLIB
658AR
659HDEFINES
660CC_FOR_BUILD
661INSTALL_DATA
662INSTALL_SCRIPT
663INSTALL_PROGRAM
2232061b
MF
664EGREP
665GREP
666CPP
81ecdfbb
RW
667target_os
668target_vendor
669target_cpu
670target
671host_os
672host_vendor
673host_cpu
674host
675build_os
676build_vendor
677build_cpu
678build
6ffe910a
MF
679OBJEXT
680EXEEXT
681ac_ct_CC
682CPPFLAGS
683LDFLAGS
684CFLAGS
685CC
81ecdfbb
RW
686target_alias
687host_alias
688build_alias
689LIBS
690ECHO_T
691ECHO_N
692ECHO_C
693DEFS
694mandir
695localedir
696libdir
697psdir
698pdfdir
699dvidir
700htmldir
701infodir
702docdir
703oldincludedir
704includedir
705localstatedir
706sharedstatedir
707sysconfdir
708datadir
709datarootdir
710libexecdir
711sbindir
712bindir
713program_transform_name
714prefix
715exec_prefix
716PACKAGE_URL
717PACKAGE_BUGREPORT
718PACKAGE_STRING
719PACKAGE_VERSION
720PACKAGE_TARNAME
721PACKAGE_NAME
722PATH_SEPARATOR
723SHELL
724WERROR_CFLAGS
725WARN_CFLAGS
726sim_xor_endian
727sim_stdcall
728sim_smp
729sim_reserved_bits
730sim_regparm
731sim_packages
732sim_inline
733sim_hw
734sim_hw_objs
735sim_hw_cflags
736sim_default_model
737sim_scache
738sim_float
81ecdfbb
RW
739sim_endian
740sim_bitsize
741sim_assert
742sim_alignment
743sim_environment'
b7026657 744ac_subst_files=''
81ecdfbb
RW
745ac_user_opts='
746enable_option_checking
aadc9410 747with_system_zlib
6bb11ab3
L
748enable_plugins
749enable_shared
750enable_static
751with_pic
752enable_fast_install
753with_gnu_ld
754enable_libtool_lock
81ecdfbb
RW
755enable_maintainer_mode
756enable_sim_bswap
757enable_sim_cflags
758enable_sim_debug
759enable_sim_stdio
760enable_sim_trace
761enable_sim_profile
762with_pkgversion
763with_bugurl
764'
765 ac_precious_vars='build_alias
766host_alias
767target_alias
768CC
769CFLAGS
770LDFLAGS
771LIBS
772CPPFLAGS
773CPP'
774
c906108c
SS
775
776# Initialize some variables set by options.
b7026657
AC
777ac_init_help=
778ac_init_version=false
81ecdfbb
RW
779ac_unrecognized_opts=
780ac_unrecognized_sep=
c906108c
SS
781# The variables have the same names as the options, with
782# dashes changed to underlines.
b7026657 783cache_file=/dev/null
c906108c 784exec_prefix=NONE
c906108c 785no_create=
c906108c
SS
786no_recursion=
787prefix=NONE
788program_prefix=NONE
789program_suffix=NONE
790program_transform_name=s,x,x,
791silent=
792site=
793srcdir=
c906108c
SS
794verbose=
795x_includes=NONE
796x_libraries=NONE
b7026657
AC
797
798# Installation directory options.
799# These are left unexpanded so users can "make install exec_prefix=/foo"
800# and all the variables that are supposed to be based on exec_prefix
801# by default will actually change.
802# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 803# (The list follows the same order as the GNU Coding Standards.)
c906108c
SS
804bindir='${exec_prefix}/bin'
805sbindir='${exec_prefix}/sbin'
806libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
807datarootdir='${prefix}/share'
808datadir='${datarootdir}'
c906108c
SS
809sysconfdir='${prefix}/etc'
810sharedstatedir='${prefix}/com'
811localstatedir='${prefix}/var'
c906108c
SS
812includedir='${prefix}/include'
813oldincludedir='/usr/include'
81ecdfbb
RW
814docdir='${datarootdir}/doc/${PACKAGE}'
815infodir='${datarootdir}/info'
816htmldir='${docdir}'
817dvidir='${docdir}'
818pdfdir='${docdir}'
819psdir='${docdir}'
820libdir='${exec_prefix}/lib'
821localedir='${datarootdir}/locale'
822mandir='${datarootdir}/man'
c906108c 823
c906108c 824ac_prev=
81ecdfbb 825ac_dashdash=
c906108c
SS
826for ac_option
827do
c906108c
SS
828 # If the previous option needs an argument, assign it.
829 if test -n "$ac_prev"; then
81ecdfbb 830 eval $ac_prev=\$ac_option
c906108c
SS
831 ac_prev=
832 continue
833 fi
834
81ecdfbb
RW
835 case $ac_option in
836 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
837 *) ac_optarg=yes ;;
838 esac
c906108c
SS
839
840 # Accept the important Cygnus configure options, so we can diagnose typos.
841
81ecdfbb
RW
842 case $ac_dashdash$ac_option in
843 --)
844 ac_dashdash=yes ;;
c906108c
SS
845
846 -bindir | --bindir | --bindi | --bind | --bin | --bi)
847 ac_prev=bindir ;;
848 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b7026657 849 bindir=$ac_optarg ;;
c906108c
SS
850
851 -build | --build | --buil | --bui | --bu)
b7026657 852 ac_prev=build_alias ;;
c906108c 853 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b7026657 854 build_alias=$ac_optarg ;;
c906108c
SS
855
856 -cache-file | --cache-file | --cache-fil | --cache-fi \
857 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
858 ac_prev=cache_file ;;
859 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
860 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
b7026657
AC
861 cache_file=$ac_optarg ;;
862
863 --config-cache | -C)
864 cache_file=config.cache ;;
c906108c 865
81ecdfbb 866 -datadir | --datadir | --datadi | --datad)
c906108c 867 ac_prev=datadir ;;
81ecdfbb 868 -datadir=* | --datadir=* | --datadi=* | --datad=*)
b7026657 869 datadir=$ac_optarg ;;
c906108c 870
81ecdfbb
RW
871 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
872 | --dataroo | --dataro | --datar)
873 ac_prev=datarootdir ;;
874 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
875 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
876 datarootdir=$ac_optarg ;;
877
c906108c 878 -disable-* | --disable-*)
81ecdfbb 879 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 880 # Reject names that are not valid shell variable names.
81ecdfbb
RW
881 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
882 as_fn_error "invalid feature name: $ac_useropt"
883 ac_useropt_orig=$ac_useropt
884 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
885 case $ac_user_opts in
886 *"
887"enable_$ac_useropt"
888"*) ;;
889 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
890 ac_unrecognized_sep=', ';;
891 esac
892 eval enable_$ac_useropt=no ;;
893
894 -docdir | --docdir | --docdi | --doc | --do)
895 ac_prev=docdir ;;
896 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
897 docdir=$ac_optarg ;;
898
899 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
900 ac_prev=dvidir ;;
901 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
902 dvidir=$ac_optarg ;;
c906108c
SS
903
904 -enable-* | --enable-*)
81ecdfbb 905 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 906 # Reject names that are not valid shell variable names.
81ecdfbb
RW
907 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
908 as_fn_error "invalid feature name: $ac_useropt"
909 ac_useropt_orig=$ac_useropt
910 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
911 case $ac_user_opts in
912 *"
913"enable_$ac_useropt"
914"*) ;;
915 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
916 ac_unrecognized_sep=', ';;
c906108c 917 esac
81ecdfbb 918 eval enable_$ac_useropt=\$ac_optarg ;;
c906108c
SS
919
920 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
921 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
922 | --exec | --exe | --ex)
923 ac_prev=exec_prefix ;;
924 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
925 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
926 | --exec=* | --exe=* | --ex=*)
b7026657 927 exec_prefix=$ac_optarg ;;
c906108c
SS
928
929 -gas | --gas | --ga | --g)
930 # Obsolete; use --with-gas.
931 with_gas=yes ;;
932
b7026657
AC
933 -help | --help | --hel | --he | -h)
934 ac_init_help=long ;;
935 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
936 ac_init_help=recursive ;;
937 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
938 ac_init_help=short ;;
c906108c
SS
939
940 -host | --host | --hos | --ho)
b7026657 941 ac_prev=host_alias ;;
c906108c 942 -host=* | --host=* | --hos=* | --ho=*)
b7026657 943 host_alias=$ac_optarg ;;
c906108c 944
81ecdfbb
RW
945 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
946 ac_prev=htmldir ;;
947 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
948 | --ht=*)
949 htmldir=$ac_optarg ;;
950
c906108c
SS
951 -includedir | --includedir | --includedi | --included | --include \
952 | --includ | --inclu | --incl | --inc)
953 ac_prev=includedir ;;
954 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
955 | --includ=* | --inclu=* | --incl=* | --inc=*)
b7026657 956 includedir=$ac_optarg ;;
c906108c
SS
957
958 -infodir | --infodir | --infodi | --infod | --info | --inf)
959 ac_prev=infodir ;;
960 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b7026657 961 infodir=$ac_optarg ;;
c906108c
SS
962
963 -libdir | --libdir | --libdi | --libd)
964 ac_prev=libdir ;;
965 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b7026657 966 libdir=$ac_optarg ;;
c906108c
SS
967
968 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
969 | --libexe | --libex | --libe)
970 ac_prev=libexecdir ;;
971 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
972 | --libexe=* | --libex=* | --libe=*)
b7026657 973 libexecdir=$ac_optarg ;;
c906108c 974
81ecdfbb
RW
975 -localedir | --localedir | --localedi | --localed | --locale)
976 ac_prev=localedir ;;
977 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
978 localedir=$ac_optarg ;;
979
c906108c 980 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 981 | --localstate | --localstat | --localsta | --localst | --locals)
c906108c
SS
982 ac_prev=localstatedir ;;
983 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 984 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
b7026657 985 localstatedir=$ac_optarg ;;
c906108c
SS
986
987 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
988 ac_prev=mandir ;;
989 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b7026657 990 mandir=$ac_optarg ;;
c906108c
SS
991
992 -nfp | --nfp | --nf)
993 # Obsolete; use --without-fp.
994 with_fp=no ;;
995
996 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b7026657 997 | --no-cr | --no-c | -n)
c906108c
SS
998 no_create=yes ;;
999
1000 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1001 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1002 no_recursion=yes ;;
1003
1004 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1005 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1006 | --oldin | --oldi | --old | --ol | --o)
1007 ac_prev=oldincludedir ;;
1008 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1009 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1010 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
b7026657 1011 oldincludedir=$ac_optarg ;;
c906108c
SS
1012
1013 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1014 ac_prev=prefix ;;
1015 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b7026657 1016 prefix=$ac_optarg ;;
c906108c
SS
1017
1018 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1019 | --program-pre | --program-pr | --program-p)
1020 ac_prev=program_prefix ;;
1021 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1022 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
b7026657 1023 program_prefix=$ac_optarg ;;
c906108c
SS
1024
1025 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1026 | --program-suf | --program-su | --program-s)
1027 ac_prev=program_suffix ;;
1028 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1029 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
b7026657 1030 program_suffix=$ac_optarg ;;
c906108c
SS
1031
1032 -program-transform-name | --program-transform-name \
1033 | --program-transform-nam | --program-transform-na \
1034 | --program-transform-n | --program-transform- \
1035 | --program-transform | --program-transfor \
1036 | --program-transfo | --program-transf \
1037 | --program-trans | --program-tran \
1038 | --progr-tra | --program-tr | --program-t)
1039 ac_prev=program_transform_name ;;
1040 -program-transform-name=* | --program-transform-name=* \
1041 | --program-transform-nam=* | --program-transform-na=* \
1042 | --program-transform-n=* | --program-transform-=* \
1043 | --program-transform=* | --program-transfor=* \
1044 | --program-transfo=* | --program-transf=* \
1045 | --program-trans=* | --program-tran=* \
1046 | --progr-tra=* | --program-tr=* | --program-t=*)
b7026657 1047 program_transform_name=$ac_optarg ;;
c906108c 1048
81ecdfbb
RW
1049 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1050 ac_prev=pdfdir ;;
1051 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1052 pdfdir=$ac_optarg ;;
1053
1054 -psdir | --psdir | --psdi | --psd | --ps)
1055 ac_prev=psdir ;;
1056 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1057 psdir=$ac_optarg ;;
1058
c906108c
SS
1059 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1060 | -silent | --silent | --silen | --sile | --sil)
1061 silent=yes ;;
1062
1063 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1064 ac_prev=sbindir ;;
1065 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1066 | --sbi=* | --sb=*)
b7026657 1067 sbindir=$ac_optarg ;;
c906108c
SS
1068
1069 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1070 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1071 | --sharedst | --shareds | --shared | --share | --shar \
1072 | --sha | --sh)
1073 ac_prev=sharedstatedir ;;
1074 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1075 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1076 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1077 | --sha=* | --sh=*)
b7026657 1078 sharedstatedir=$ac_optarg ;;
c906108c
SS
1079
1080 -site | --site | --sit)
1081 ac_prev=site ;;
1082 -site=* | --site=* | --sit=*)
b7026657 1083 site=$ac_optarg ;;
eb2d80b4 1084
c906108c
SS
1085 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1086 ac_prev=srcdir ;;
1087 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b7026657 1088 srcdir=$ac_optarg ;;
c906108c
SS
1089
1090 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1091 | --syscon | --sysco | --sysc | --sys | --sy)
1092 ac_prev=sysconfdir ;;
1093 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1094 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
b7026657 1095 sysconfdir=$ac_optarg ;;
c906108c
SS
1096
1097 -target | --target | --targe | --targ | --tar | --ta | --t)
b7026657 1098 ac_prev=target_alias ;;
c906108c 1099 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b7026657 1100 target_alias=$ac_optarg ;;
c906108c
SS
1101
1102 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1103 verbose=yes ;;
1104
b7026657
AC
1105 -version | --version | --versio | --versi | --vers | -V)
1106 ac_init_version=: ;;
c906108c
SS
1107
1108 -with-* | --with-*)
81ecdfbb 1109 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 1110 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1111 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1112 as_fn_error "invalid package name: $ac_useropt"
1113 ac_useropt_orig=$ac_useropt
1114 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1115 case $ac_user_opts in
1116 *"
1117"with_$ac_useropt"
1118"*) ;;
1119 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1120 ac_unrecognized_sep=', ';;
c906108c 1121 esac
81ecdfbb 1122 eval with_$ac_useropt=\$ac_optarg ;;
c906108c
SS
1123
1124 -without-* | --without-*)
81ecdfbb 1125 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 1126 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1127 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1128 as_fn_error "invalid package name: $ac_useropt"
1129 ac_useropt_orig=$ac_useropt
1130 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1131 case $ac_user_opts in
1132 *"
1133"with_$ac_useropt"
1134"*) ;;
1135 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1136 ac_unrecognized_sep=', ';;
1137 esac
1138 eval with_$ac_useropt=no ;;
c906108c
SS
1139
1140 --x)
1141 # Obsolete; use --with-x.
1142 with_x=yes ;;
1143
1144 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1145 | --x-incl | --x-inc | --x-in | --x-i)
1146 ac_prev=x_includes ;;
1147 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1148 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
b7026657 1149 x_includes=$ac_optarg ;;
c906108c
SS
1150
1151 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1152 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1153 ac_prev=x_libraries ;;
1154 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1155 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
b7026657 1156 x_libraries=$ac_optarg ;;
c906108c 1157
81ecdfbb
RW
1158 -*) as_fn_error "unrecognized option: \`$ac_option'
1159Try \`$0 --help' for more information."
c906108c
SS
1160 ;;
1161
b7026657
AC
1162 *=*)
1163 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1164 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1165 case $ac_envvar in #(
1166 '' | [0-9]* | *[!_$as_cr_alnum]* )
1167 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1168 esac
1169 eval $ac_envvar=\$ac_optarg
b7026657
AC
1170 export $ac_envvar ;;
1171
c906108c 1172 *)
b7026657 1173 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1174 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
b7026657 1175 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1176 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
b7026657 1177 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
c906108c
SS
1178 ;;
1179
1180 esac
1181done
1182
1183if test -n "$ac_prev"; then
b7026657 1184 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1185 as_fn_error "missing argument to $ac_option"
c906108c 1186fi
c906108c 1187
81ecdfbb
RW
1188if test -n "$ac_unrecognized_opts"; then
1189 case $enable_option_checking in
1190 no) ;;
1191 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1192 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
b7026657 1193 esac
81ecdfbb 1194fi
c906108c 1195
81ecdfbb
RW
1196# Check all directory arguments for consistency.
1197for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1198 datadir sysconfdir sharedstatedir localstatedir includedir \
1199 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1200 libdir localedir mandir
c906108c 1201do
81ecdfbb
RW
1202 eval ac_val=\$$ac_var
1203 # Remove trailing slashes.
1204 case $ac_val in
1205 */ )
1206 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1207 eval $ac_var=\$ac_val;;
1208 esac
1209 # Be sure to have absolute directory names.
b7026657 1210 case $ac_val in
81ecdfbb
RW
1211 [\\/$]* | ?:[\\/]* ) continue;;
1212 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
c906108c 1213 esac
81ecdfbb 1214 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
c906108c
SS
1215done
1216
b7026657
AC
1217# There might be people who depend on the old broken behavior: `$host'
1218# used to hold the argument of --host etc.
1219# FIXME: To remove some day.
1220build=$build_alias
1221host=$host_alias
1222target=$target_alias
1223
1224# FIXME: To remove some day.
1225if test "x$host_alias" != x; then
1226 if test "x$build_alias" = x; then
1227 cross_compiling=maybe
81ecdfbb 1228 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
b7026657
AC
1229 If a cross compiler is detected then cross compile mode will be used." >&2
1230 elif test "x$build_alias" != "x$host_alias"; then
1231 cross_compiling=yes
1232 fi
1233fi
c906108c 1234
b7026657
AC
1235ac_tool_prefix=
1236test -n "$host_alias" && ac_tool_prefix=$host_alias-
1237
1238test "$silent" = yes && exec 6>/dev/null
c906108c 1239
c906108c 1240
81ecdfbb
RW
1241ac_pwd=`pwd` && test -n "$ac_pwd" &&
1242ac_ls_di=`ls -di .` &&
1243ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1244 as_fn_error "working directory cannot be determined"
1245test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1246 as_fn_error "pwd does not report name of working directory"
1247
1248
c906108c
SS
1249# Find the source files, if location was not specified.
1250if test -z "$srcdir"; then
1251 ac_srcdir_defaulted=yes
81ecdfbb
RW
1252 # Try the directory containing this script, then the parent directory.
1253 ac_confdir=`$as_dirname -- "$as_myself" ||
1254$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1255 X"$as_myself" : 'X\(//\)[^/]' \| \
1256 X"$as_myself" : 'X\(//\)$' \| \
1257 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1258$as_echo X"$as_myself" |
1259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1260 s//\1/
1261 q
1262 }
1263 /^X\(\/\/\)[^/].*/{
1264 s//\1/
1265 q
1266 }
1267 /^X\(\/\/\)$/{
1268 s//\1/
1269 q
1270 }
1271 /^X\(\/\).*/{
1272 s//\1/
1273 q
1274 }
1275 s/.*/./; q'`
c906108c 1276 srcdir=$ac_confdir
81ecdfbb 1277 if test ! -r "$srcdir/$ac_unique_file"; then
c906108c
SS
1278 srcdir=..
1279 fi
1280else
1281 ac_srcdir_defaulted=no
1282fi
81ecdfbb
RW
1283if test ! -r "$srcdir/$ac_unique_file"; then
1284 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1285 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1286fi
1287ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1288ac_abs_confdir=`(
1289 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1290 pwd)`
1291# When building in place, set srcdir=.
1292if test "$ac_abs_confdir" = "$ac_pwd"; then
1293 srcdir=.
1294fi
1295# Remove unnecessary trailing slashes from srcdir.
1296# Double slashes in file names in object file debugging info
1297# mess up M-x gdb in Emacs.
1298case $srcdir in
1299*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1300esac
1301for ac_var in $ac_precious_vars; do
1302 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1303 eval ac_env_${ac_var}_value=\$${ac_var}
1304 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1305 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1306done
c906108c 1307
b7026657
AC
1308#
1309# Report the --help message.
1310#
1311if test "$ac_init_help" = "long"; then
1312 # Omit some internal or obsolete options to make the list less imposing.
1313 # This message is too long to be a string in the A/UX 3.1 sh.
1314 cat <<_ACEOF
1315\`configure' configures this package to adapt to many kinds of systems.
c906108c 1316
b7026657 1317Usage: $0 [OPTION]... [VAR=VALUE]...
c906108c 1318
b7026657
AC
1319To assign environment variables (e.g., CC, CFLAGS...), specify them as
1320VAR=VALUE. See below for descriptions of some of the useful variables.
c906108c 1321
b7026657 1322Defaults for the options are specified in brackets.
c906108c 1323
b7026657
AC
1324Configuration:
1325 -h, --help display this help and exit
1326 --help=short display options specific to this package
1327 --help=recursive display the short help of all the included packages
1328 -V, --version display version information and exit
1329 -q, --quiet, --silent do not print \`checking...' messages
1330 --cache-file=FILE cache test results in FILE [disabled]
1331 -C, --config-cache alias for \`--cache-file=config.cache'
1332 -n, --no-create do not create output files
1333 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1334
b7026657
AC
1335Installation directories:
1336 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1337 [$ac_default_prefix]
b7026657 1338 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1339 [PREFIX]
c906108c 1340
b7026657
AC
1341By default, \`make install' will install all the files in
1342\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1343an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1344for instance \`--prefix=\$HOME'.
c906108c 1345
b7026657
AC
1346For better control, use the options below.
1347
1348Fine tuning of the installation directories:
81ecdfbb
RW
1349 --bindir=DIR user executables [EPREFIX/bin]
1350 --sbindir=DIR system admin executables [EPREFIX/sbin]
1351 --libexecdir=DIR program executables [EPREFIX/libexec]
1352 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1353 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1354 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1355 --libdir=DIR object code libraries [EPREFIX/lib]
1356 --includedir=DIR C header files [PREFIX/include]
1357 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1358 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1359 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1360 --infodir=DIR info documentation [DATAROOTDIR/info]
1361 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1362 --mandir=DIR man documentation [DATAROOTDIR/man]
1363 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1364 --htmldir=DIR html documentation [DOCDIR]
1365 --dvidir=DIR dvi documentation [DOCDIR]
1366 --pdfdir=DIR pdf documentation [DOCDIR]
1367 --psdir=DIR ps documentation [DOCDIR]
b7026657
AC
1368_ACEOF
1369
1370 cat <<\_ACEOF
1371
1372Program names:
1373 --program-prefix=PREFIX prepend PREFIX to installed program names
1374 --program-suffix=SUFFIX append SUFFIX to installed program names
1375 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1376
1377System types:
1378 --build=BUILD configure for building on BUILD [guessed]
1379 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1380 --target=TARGET configure for building compilers for TARGET [HOST]
1381_ACEOF
c906108c 1382fi
b7026657
AC
1383
1384if test -n "$ac_init_help"; then
1385
1386 cat <<\_ACEOF
1387
1388Optional Features:
81ecdfbb 1389 --disable-option-checking ignore unrecognized --enable/--with options
b7026657
AC
1390 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1391 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
faa743bb 1392 --enable-plugins Enable support for plugins
6bb11ab3
L
1393 --enable-shared[=PKGS] build shared libraries [default=yes]
1394 --enable-static[=PKGS] build static libraries [default=yes]
1395 --enable-fast-install[=PKGS]
1396 optimize for fast installation [default=yes]
1397 --disable-libtool-lock avoid locking (might break parallel builds)
31e6ad7d
MF
1398 --enable-maintainer-mode enable make rules and dependencies not useful
1399 (and sometimes confusing) to the casual installer
8d0978fb
MF
1400 --enable-sim-bswap Use Host specific BSWAP instruction
1401 --enable-sim-cflags=opts
1402 Extra CFLAGS for use in building simulator
1403 --enable-sim-debug=opts Enable debugging flags (for developers of the sim
1404 itself)
1405 --enable-sim-stdio Specify whether to use stdio for console
1406 input/output
1407 --enable-sim-trace=opts Enable tracing of simulated programs
1408 --enable-sim-profile=opts
1409 Enable profiling flags
b7026657 1410
6efef468
JM
1411Optional Packages:
1412 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1413 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
aadc9410 1414 --with-system-zlib use installed libz
6bb11ab3
L
1415 --with-pic try to use only PIC/non-PIC objects [default=use
1416 both]
1417 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
bf12d44e 1418 --with-pkgversion=PKG Use PKG in the version string in place of "SIM"
6efef468
JM
1419 --with-bugurl=URL Direct users to URL to report a bug
1420
b7026657
AC
1421Some influential environment variables:
1422 CC C compiler command
1423 CFLAGS C compiler flags
1424 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1425 nonstandard directory <lib dir>
81ecdfbb
RW
1426 LIBS libraries to pass to the linker, e.g. -l<library>
1427 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1428 you have headers in a nonstandard directory <include dir>
b7026657
AC
1429 CPP C preprocessor
1430
1431Use these variables to override the choices made by `configure' or to help
1432it to find libraries and programs with nonstandard names/locations.
1433
81ecdfbb 1434Report bugs to the package provider.
b7026657 1435_ACEOF
81ecdfbb 1436ac_status=$?
c906108c
SS
1437fi
1438
b7026657
AC
1439if test "$ac_init_help" = "recursive"; then
1440 # If there are subdirs, report their specific --help.
b7026657 1441 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1442 test -d "$ac_dir" ||
1443 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1444 continue
b7026657 1445 ac_builddir=.
c906108c 1446
81ecdfbb
RW
1447case "$ac_dir" in
1448.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1449*)
1450 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1451 # A ".." for each directory in $ac_dir_suffix.
1452 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1453 case $ac_top_builddir_sub in
1454 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1455 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1456 esac ;;
1457esac
1458ac_abs_top_builddir=$ac_pwd
1459ac_abs_builddir=$ac_pwd$ac_dir_suffix
1460# for backward compatibility:
1461ac_top_builddir=$ac_top_build_prefix
c906108c 1462
b7026657 1463case $srcdir in
81ecdfbb 1464 .) # We are building in place.
b7026657 1465 ac_srcdir=.
81ecdfbb
RW
1466 ac_top_srcdir=$ac_top_builddir_sub
1467 ac_abs_top_srcdir=$ac_pwd ;;
1468 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 1469 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1470 ac_top_srcdir=$srcdir
1471 ac_abs_top_srcdir=$srcdir ;;
1472 *) # Relative name.
1473 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1474 ac_top_srcdir=$ac_top_build_prefix$srcdir
1475 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 1476esac
81ecdfbb
RW
1477ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1478
1479 cd "$ac_dir" || { ac_status=$?; continue; }
1480 # Check for guested configure.
1481 if test -f "$ac_srcdir/configure.gnu"; then
1482 echo &&
1483 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1484 elif test -f "$ac_srcdir/configure"; then
1485 echo &&
1486 $SHELL "$ac_srcdir/configure" --help=recursive
b7026657 1487 else
81ecdfbb
RW
1488 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1489 fi || ac_status=$?
1490 cd "$ac_pwd" || { ac_status=$?; break; }
b7026657 1491 done
c906108c 1492fi
b7026657 1493
81ecdfbb 1494test -n "$ac_init_help" && exit $ac_status
b7026657
AC
1495if $ac_init_version; then
1496 cat <<\_ACEOF
81ecdfbb
RW
1497configure
1498generated by GNU Autoconf 2.64
b7026657 1499
81ecdfbb 1500Copyright (C) 2009 Free Software Foundation, Inc.
b7026657
AC
1501This configure script is free software; the Free Software Foundation
1502gives unlimited permission to copy, distribute and modify it.
1503_ACEOF
81ecdfbb 1504 exit
b7026657 1505fi
b7026657 1506
81ecdfbb
RW
1507## ------------------------ ##
1508## Autoconf initialization. ##
1509## ------------------------ ##
b7026657 1510
81ecdfbb
RW
1511# ac_fn_c_try_compile LINENO
1512# --------------------------
1513# Try to compile conftest.$ac_ext, and return whether this succeeded.
1514ac_fn_c_try_compile ()
b7026657 1515{
81ecdfbb
RW
1516 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1517 rm -f conftest.$ac_objext
1518 if { { ac_try="$ac_compile"
1519case "(($ac_try" in
1520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1521 *) ac_try_echo=$ac_try;;
1522esac
1523eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1524$as_echo "$ac_try_echo"; } >&5
1525 (eval "$ac_compile") 2>conftest.err
1526 ac_status=$?
1527 if test -s conftest.err; then
1528 grep -v '^ *+' conftest.err >conftest.er1
1529 cat conftest.er1 >&5
1530 mv -f conftest.er1 conftest.err
1531 fi
1532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1533 test $ac_status = 0; } && {
1534 test -z "$ac_c_werror_flag" ||
1535 test ! -s conftest.err
1536 } && test -s conftest.$ac_objext; then :
1537 ac_retval=0
1538else
1539 $as_echo "$as_me: failed program was:" >&5
1540sed 's/^/| /' conftest.$ac_ext >&5
b7026657 1541
81ecdfbb
RW
1542 ac_retval=1
1543fi
1544 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1545 return $ac_retval
b7026657 1546
81ecdfbb 1547} # ac_fn_c_try_compile
b7026657 1548
81ecdfbb
RW
1549# ac_fn_c_try_cpp LINENO
1550# ----------------------
1551# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1552ac_fn_c_try_cpp ()
1553{
1554 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1555 if { { ac_try="$ac_cpp conftest.$ac_ext"
1556case "(($ac_try" in
1557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1558 *) ac_try_echo=$ac_try;;
1559esac
1560eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1561$as_echo "$ac_try_echo"; } >&5
1562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1563 ac_status=$?
1564 if test -s conftest.err; then
1565 grep -v '^ *+' conftest.err >conftest.er1
1566 cat conftest.er1 >&5
1567 mv -f conftest.er1 conftest.err
1568 fi
1569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1570 test $ac_status = 0; } >/dev/null && {
1571 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1572 test ! -s conftest.err
1573 }; then :
1574 ac_retval=0
1575else
1576 $as_echo "$as_me: failed program was:" >&5
1577sed 's/^/| /' conftest.$ac_ext >&5
b7026657 1578
81ecdfbb
RW
1579 ac_retval=1
1580fi
1581 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1582 return $ac_retval
b7026657 1583
81ecdfbb 1584} # ac_fn_c_try_cpp
b7026657 1585
81ecdfbb
RW
1586# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1587# -------------------------------------------------------
1588# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1589# the include files in INCLUDES and setting the cache variable VAR
1590# accordingly.
1591ac_fn_c_check_header_mongrel ()
1592{
1593 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1594 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1596$as_echo_n "checking for $2... " >&6; }
1597if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1598 $as_echo_n "(cached) " >&6
1599fi
1600eval ac_res=\$$3
1601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1602$as_echo "$ac_res" >&6; }
1603else
1604 # Is the header compilable?
1605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1606$as_echo_n "checking $2 usability... " >&6; }
1607cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1608/* end confdefs.h. */
1609$4
1610#include <$2>
1611_ACEOF
1612if ac_fn_c_try_compile "$LINENO"; then :
1613 ac_header_compiler=yes
1614else
1615 ac_header_compiler=no
1616fi
1617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1619$as_echo "$ac_header_compiler" >&6; }
1620
1621# Is the header present?
1622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1623$as_echo_n "checking $2 presence... " >&6; }
1624cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1625/* end confdefs.h. */
1626#include <$2>
1627_ACEOF
1628if ac_fn_c_try_cpp "$LINENO"; then :
1629 ac_header_preproc=yes
1630else
1631 ac_header_preproc=no
1632fi
1633rm -f conftest.err conftest.$ac_ext
1634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1635$as_echo "$ac_header_preproc" >&6; }
1636
1637# So? What about this header?
1638case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1639 yes:no: )
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1641$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1643$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1644 ;;
1645 no:yes:* )
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1647$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1649$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1651$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1653$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1655$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1656 ;;
1657esac
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1659$as_echo_n "checking for $2... " >&6; }
1660if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1661 $as_echo_n "(cached) " >&6
1662else
1663 eval "$3=\$ac_header_compiler"
1664fi
1665eval ac_res=\$$3
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1667$as_echo "$ac_res" >&6; }
1668fi
1669 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1670
1671} # ac_fn_c_check_header_mongrel
1672
1673# ac_fn_c_try_run LINENO
1674# ----------------------
1675# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1676# that executables *can* be run.
1677ac_fn_c_try_run ()
1678{
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 if { { ac_try="$ac_link"
1681case "(($ac_try" in
1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683 *) ac_try_echo=$ac_try;;
1684esac
1685eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686$as_echo "$ac_try_echo"; } >&5
1687 (eval "$ac_link") 2>&5
1688 ac_status=$?
1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1691 { { case "(($ac_try" in
1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693 *) ac_try_echo=$ac_try;;
1694esac
1695eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696$as_echo "$ac_try_echo"; } >&5
1697 (eval "$ac_try") 2>&5
1698 ac_status=$?
1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; }; }; then :
1701 ac_retval=0
1702else
1703 $as_echo "$as_me: program exited with status $ac_status" >&5
1704 $as_echo "$as_me: failed program was:" >&5
1705sed 's/^/| /' conftest.$ac_ext >&5
1706
1707 ac_retval=$ac_status
1708fi
1709 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1710 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1711 return $ac_retval
1712
1713} # ac_fn_c_try_run
1714
1715# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1716# -------------------------------------------------------
1717# Tests whether HEADER exists and can be compiled using the include files in
1718# INCLUDES, setting the cache variable VAR accordingly.
1719ac_fn_c_check_header_compile ()
1720{
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1723$as_echo_n "checking for $2... " >&6; }
1724if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1725 $as_echo_n "(cached) " >&6
1726else
1727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1728/* end confdefs.h. */
1729$4
1730#include <$2>
1731_ACEOF
1732if ac_fn_c_try_compile "$LINENO"; then :
1733 eval "$3=yes"
1734else
1735 eval "$3=no"
1736fi
1737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1738fi
1739eval ac_res=\$$3
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1741$as_echo "$ac_res" >&6; }
1742 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1743
1744} # ac_fn_c_check_header_compile
1745
1746# ac_fn_c_try_link LINENO
1747# -----------------------
1748# Try to link conftest.$ac_ext, and return whether this succeeded.
1749ac_fn_c_try_link ()
1750{
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 rm -f conftest.$ac_objext conftest$ac_exeext
1753 if { { ac_try="$ac_link"
1754case "(($ac_try" in
1755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756 *) ac_try_echo=$ac_try;;
1757esac
1758eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759$as_echo "$ac_try_echo"; } >&5
1760 (eval "$ac_link") 2>conftest.err
1761 ac_status=$?
1762 if test -s conftest.err; then
1763 grep -v '^ *+' conftest.err >conftest.er1
1764 cat conftest.er1 >&5
1765 mv -f conftest.er1 conftest.err
1766 fi
1767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1768 test $ac_status = 0; } && {
1769 test -z "$ac_c_werror_flag" ||
1770 test ! -s conftest.err
1771 } && test -s conftest$ac_exeext && {
1772 test "$cross_compiling" = yes ||
1773 $as_test_x conftest$ac_exeext
1774 }; then :
1775 ac_retval=0
1776else
1777 $as_echo "$as_me: failed program was:" >&5
1778sed 's/^/| /' conftest.$ac_ext >&5
1779
1780 ac_retval=1
1781fi
1782 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1783 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1784 # interfere with the next link command; also delete a directory that is
1785 # left behind by Apple's compiler. We do this before executing the actions.
1786 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1787 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1788 return $ac_retval
1789
1790} # ac_fn_c_try_link
1791
1792# ac_fn_c_check_func LINENO FUNC VAR
1793# ----------------------------------
1794# Tests whether FUNC exists, setting the cache variable VAR accordingly
1795ac_fn_c_check_func ()
1796{
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1799$as_echo_n "checking for $2... " >&6; }
1800if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1801 $as_echo_n "(cached) " >&6
1802else
1803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1804/* end confdefs.h. */
1805/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1807#define $2 innocuous_$2
1808
1809/* System header to define __stub macros and hopefully few prototypes,
1810 which can conflict with char $2 (); below.
1811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1812 <limits.h> exists even on freestanding compilers. */
1813
1814#ifdef __STDC__
1815# include <limits.h>
1816#else
1817# include <assert.h>
1818#endif
1819
1820#undef $2
1821
1822/* Override any GCC internal prototype to avoid an error.
1823 Use char because int might match the return type of a GCC
1824 builtin and then its argument prototype would still apply. */
1825#ifdef __cplusplus
1826extern "C"
1827#endif
1828char $2 ();
1829/* The GNU C library defines this for functions which it implements
1830 to always fail with ENOSYS. Some functions are actually named
1831 something starting with __ and the normal name is an alias. */
1832#if defined __stub_$2 || defined __stub___$2
1833choke me
1834#endif
1835
1836int
1837main ()
1838{
1839return $2 ();
1840 ;
1841 return 0;
1842}
1843_ACEOF
1844if ac_fn_c_try_link "$LINENO"; then :
1845 eval "$3=yes"
1846else
1847 eval "$3=no"
1848fi
1849rm -f core conftest.err conftest.$ac_objext \
1850 conftest$ac_exeext conftest.$ac_ext
1851fi
1852eval ac_res=\$$3
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1854$as_echo "$ac_res" >&6; }
1855 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1856
1857} # ac_fn_c_check_func
1858
1859# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1860# ----------------------------------------------------
1861# Tries to find if the field MEMBER exists in type AGGR, after including
1862# INCLUDES, setting cache variable VAR accordingly.
1863ac_fn_c_check_member ()
1864{
44330079
RW
1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1867$as_echo_n "checking for $2.$3... " >&6; }
1868if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1869 $as_echo_n "(cached) " >&6
1870else
1871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1872/* end confdefs.h. */
1873$5
1874int
1875main ()
1876{
1877static $2 ac_aggr;
1878if (ac_aggr.$3)
1879return 0;
1880 ;
1881 return 0;
1882}
1883_ACEOF
1884if ac_fn_c_try_compile "$LINENO"; then :
1885 eval "$4=yes"
1886else
1887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888/* end confdefs.h. */
1889$5
1890int
1891main ()
1892{
1893static $2 ac_aggr;
1894if (sizeof ac_aggr.$3)
1895return 0;
1896 ;
1897 return 0;
1898}
1899_ACEOF
1900if ac_fn_c_try_compile "$LINENO"; then :
1901 eval "$4=yes"
1902else
1903 eval "$4=no"
1904fi
1905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1906fi
1907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1908fi
1909eval ac_res=\$$4
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1911$as_echo "$ac_res" >&6; }
1912 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1913
81ecdfbb 1914} # ac_fn_c_check_member
75005b3a
MF
1915
1916# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1917# -------------------------------------------
1918# Tests whether TYPE exists after having included INCLUDES, setting cache
1919# variable VAR accordingly.
1920ac_fn_c_check_type ()
1921{
1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1924$as_echo_n "checking for $2... " >&6; }
1925if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1926 $as_echo_n "(cached) " >&6
1927else
1928 eval "$3=no"
1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930/* end confdefs.h. */
1931$4
1932int
1933main ()
1934{
1935if (sizeof ($2))
1936 return 0;
1937 ;
1938 return 0;
1939}
1940_ACEOF
1941if ac_fn_c_try_compile "$LINENO"; then :
1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943/* end confdefs.h. */
1944$4
1945int
1946main ()
1947{
1948if (sizeof (($2)))
1949 return 0;
1950 ;
1951 return 0;
1952}
1953_ACEOF
1954if ac_fn_c_try_compile "$LINENO"; then :
1955
1956else
1957 eval "$3=yes"
1958fi
1959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1960fi
1961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1962fi
1963eval ac_res=\$$3
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1965$as_echo "$ac_res" >&6; }
1966 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1967
1968} # ac_fn_c_check_type
81ecdfbb
RW
1969cat >config.log <<_ACEOF
1970This file contains any messages produced by compilers while
1971running configure, to aid debugging if configure makes a mistake.
1972
1973It was created by $as_me, which was
1974generated by GNU Autoconf 2.64. Invocation command line was
1975
1976 $ $0 $@
1977
1978_ACEOF
1979exec 5>>config.log
1980{
1981cat <<_ASUNAME
1982## --------- ##
1983## Platform. ##
1984## --------- ##
1985
1986hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1987uname -m = `(uname -m) 2>/dev/null || echo unknown`
1988uname -r = `(uname -r) 2>/dev/null || echo unknown`
1989uname -s = `(uname -s) 2>/dev/null || echo unknown`
1990uname -v = `(uname -v) 2>/dev/null || echo unknown`
1991
1992/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1993/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1994
1995/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1996/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1997/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1998/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1999/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2000/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2001/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2002
2003_ASUNAME
2004
2005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2006for as_dir in $PATH
2007do
2008 IFS=$as_save_IFS
2009 test -z "$as_dir" && as_dir=.
2010 $as_echo "PATH: $as_dir"
2011 done
2012IFS=$as_save_IFS
2013
2014} >&5
2015
2016cat >&5 <<_ACEOF
b7026657
AC
2017
2018
2019## ----------- ##
2020## Core tests. ##
2021## ----------- ##
2022
2023_ACEOF
2024
2025
2026# Keep a trace of the command line.
2027# Strip out --no-create and --no-recursion so they do not pile up.
2028# Strip out --silent because we don't want to record it for future runs.
2029# Also quote any args containing shell meta-characters.
2030# Make two passes to allow for proper duplicate-argument suppression.
2031ac_configure_args=
2032ac_configure_args0=
2033ac_configure_args1=
b7026657
AC
2034ac_must_keep_next=false
2035for ac_pass in 1 2
2036do
2037 for ac_arg
2038 do
2039 case $ac_arg in
2040 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2041 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2042 | -silent | --silent | --silen | --sile | --sil)
2043 continue ;;
81ecdfbb
RW
2044 *\'*)
2045 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
b7026657
AC
2046 esac
2047 case $ac_pass in
81ecdfbb 2048 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
b7026657 2049 2)
81ecdfbb 2050 as_fn_append ac_configure_args1 " '$ac_arg'"
b7026657
AC
2051 if test $ac_must_keep_next = true; then
2052 ac_must_keep_next=false # Got value, back to normal.
2053 else
2054 case $ac_arg in
2055 *=* | --config-cache | -C | -disable-* | --disable-* \
2056 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2057 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2058 | -with-* | --with-* | -without-* | --without-* | --x)
2059 case "$ac_configure_args0 " in
2060 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2061 esac
2062 ;;
2063 -* ) ac_must_keep_next=true ;;
2064 esac
2065 fi
81ecdfbb 2066 as_fn_append ac_configure_args " '$ac_arg'"
b7026657
AC
2067 ;;
2068 esac
2069 done
2070done
81ecdfbb
RW
2071{ ac_configure_args0=; unset ac_configure_args0;}
2072{ ac_configure_args1=; unset ac_configure_args1;}
b7026657
AC
2073
2074# When interrupted or exit'd, cleanup temporary files, and complete
2075# config.log. We remove comments because anyway the quotes in there
2076# would cause problems or look ugly.
81ecdfbb
RW
2077# WARNING: Use '\'' to represent an apostrophe within the trap.
2078# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
b7026657
AC
2079trap 'exit_status=$?
2080 # Save into config.log some information that might help in debugging.
2081 {
2082 echo
2083
2084 cat <<\_ASBOX
2085## ---------------- ##
2086## Cache variables. ##
2087## ---------------- ##
2088_ASBOX
2089 echo
2090 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2091(
2092 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2093 eval ac_val=\$$ac_var
2094 case $ac_val in #(
2095 *${as_nl}*)
2096 case $ac_var in #(
2097 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2098$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2099 esac
2100 case $ac_var in #(
2101 _ | IFS | as_nl) ;; #(
2102 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2103 *) { eval $ac_var=; unset $ac_var;} ;;
2104 esac ;;
2105 esac
2106 done
b7026657 2107 (set) 2>&1 |
81ecdfbb
RW
2108 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2109 *${as_nl}ac_space=\ *)
b7026657 2110 sed -n \
81ecdfbb
RW
2111 "s/'\''/'\''\\\\'\'''\''/g;
2112 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2113 ;; #(
b7026657 2114 *)
81ecdfbb 2115 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 2116 ;;
81ecdfbb
RW
2117 esac |
2118 sort
2119)
b7026657
AC
2120 echo
2121
2122 cat <<\_ASBOX
2123## ----------------- ##
2124## Output variables. ##
2125## ----------------- ##
2126_ASBOX
2127 echo
2128 for ac_var in $ac_subst_vars
2129 do
81ecdfbb
RW
2130 eval ac_val=\$$ac_var
2131 case $ac_val in
2132 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2133 esac
2134 $as_echo "$ac_var='\''$ac_val'\''"
b7026657
AC
2135 done | sort
2136 echo
2137
2138 if test -n "$ac_subst_files"; then
2139 cat <<\_ASBOX
81ecdfbb
RW
2140## ------------------- ##
2141## File substitutions. ##
2142## ------------------- ##
b7026657
AC
2143_ASBOX
2144 echo
2145 for ac_var in $ac_subst_files
2146 do
81ecdfbb
RW
2147 eval ac_val=\$$ac_var
2148 case $ac_val in
2149 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2150 esac
2151 $as_echo "$ac_var='\''$ac_val'\''"
b7026657
AC
2152 done | sort
2153 echo
2154 fi
2155
2156 if test -s confdefs.h; then
2157 cat <<\_ASBOX
2158## ----------- ##
2159## confdefs.h. ##
2160## ----------- ##
2161_ASBOX
2162 echo
81ecdfbb 2163 cat confdefs.h
b7026657
AC
2164 echo
2165 fi
2166 test "$ac_signal" != 0 &&
81ecdfbb
RW
2167 $as_echo "$as_me: caught signal $ac_signal"
2168 $as_echo "$as_me: exit $exit_status"
b7026657 2169 } >&5
81ecdfbb
RW
2170 rm -f core *.core core.conftest.* &&
2171 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
b7026657 2172 exit $exit_status
81ecdfbb 2173' 0
b7026657 2174for ac_signal in 1 2 13 15; do
81ecdfbb 2175 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
b7026657
AC
2176done
2177ac_signal=0
2178
2179# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2180rm -f -r conftest* confdefs.h
2181
2182$as_echo "/* confdefs.h */" > confdefs.h
b7026657
AC
2183
2184# Predefined preprocessor variables.
2185
2186cat >>confdefs.h <<_ACEOF
2187#define PACKAGE_NAME "$PACKAGE_NAME"
2188_ACEOF
2189
b7026657
AC
2190cat >>confdefs.h <<_ACEOF
2191#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2192_ACEOF
2193
b7026657
AC
2194cat >>confdefs.h <<_ACEOF
2195#define PACKAGE_VERSION "$PACKAGE_VERSION"
2196_ACEOF
2197
b7026657
AC
2198cat >>confdefs.h <<_ACEOF
2199#define PACKAGE_STRING "$PACKAGE_STRING"
2200_ACEOF
2201
b7026657
AC
2202cat >>confdefs.h <<_ACEOF
2203#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2204_ACEOF
2205
81ecdfbb
RW
2206cat >>confdefs.h <<_ACEOF
2207#define PACKAGE_URL "$PACKAGE_URL"
2208_ACEOF
2209
b7026657
AC
2210
2211# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2212# Prefer an explicitly selected file to automatically selected ones.
2213ac_site_file1=NONE
2214ac_site_file2=NONE
2215if test -n "$CONFIG_SITE"; then
2216 ac_site_file1=$CONFIG_SITE
2217elif test "x$prefix" != xNONE; then
2218 ac_site_file1=$prefix/share/config.site
2219 ac_site_file2=$prefix/etc/config.site
2220else
2221 ac_site_file1=$ac_default_prefix/share/config.site
2222 ac_site_file2=$ac_default_prefix/etc/config.site
2223fi
2224for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2225do
2226 test "x$ac_site_file" = xNONE && continue
b7026657 2227 if test -r "$ac_site_file"; then
81ecdfbb
RW
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2229$as_echo "$as_me: loading site script $ac_site_file" >&6;}
b7026657
AC
2230 sed 's/^/| /' "$ac_site_file" >&5
2231 . "$ac_site_file"
2232 fi
2233done
2234
2235if test -r "$cache_file"; then
2236 # Some versions of bash will fail to source /dev/null (special
2237 # files actually), so we avoid doing that.
2238 if test -f "$cache_file"; then
81ecdfbb
RW
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2240$as_echo "$as_me: loading cache $cache_file" >&6;}
b7026657 2241 case $cache_file in
81ecdfbb
RW
2242 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2243 *) . "./$cache_file";;
b7026657
AC
2244 esac
2245 fi
2246else
81ecdfbb
RW
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2248$as_echo "$as_me: creating cache $cache_file" >&6;}
b7026657
AC
2249 >$cache_file
2250fi
2251
2252# Check that the precious variables saved in the cache have kept the same
2253# value.
2254ac_cache_corrupted=false
81ecdfbb 2255for ac_var in $ac_precious_vars; do
b7026657
AC
2256 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2257 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2258 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2259 eval ac_new_val=\$ac_env_${ac_var}_value
b7026657
AC
2260 case $ac_old_set,$ac_new_set in
2261 set,)
81ecdfbb
RW
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2263$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
b7026657
AC
2264 ac_cache_corrupted=: ;;
2265 ,set)
81ecdfbb
RW
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2267$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
b7026657
AC
2268 ac_cache_corrupted=: ;;
2269 ,);;
2270 *)
2271 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2272 # differences in whitespace do not lead to failure.
2273 ac_old_val_w=`echo x $ac_old_val`
2274 ac_new_val_w=`echo x $ac_new_val`
2275 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2277$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2278 ac_cache_corrupted=:
2279 else
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2281$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2282 eval $ac_var=\$ac_old_val
2283 fi
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2285$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2287$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
b7026657
AC
2288 fi;;
2289 esac
2290 # Pass precious variables to config.status.
2291 if test "$ac_new_set" = set; then
2292 case $ac_new_val in
81ecdfbb 2293 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b7026657
AC
2294 *) ac_arg=$ac_var=$ac_new_val ;;
2295 esac
2296 case " $ac_configure_args " in
2297 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2298 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
b7026657
AC
2299 esac
2300 fi
2301done
2302if $ac_cache_corrupted; then
81ecdfbb
RW
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2304$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2306$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2307 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
b7026657 2308fi
81ecdfbb
RW
2309## -------------------- ##
2310## Main body of script. ##
2311## -------------------- ##
b7026657
AC
2312
2313ac_ext=c
2314ac_cpp='$CPP $CPPFLAGS'
2315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2317ac_compiler_gnu=$ac_cv_c_compiler_gnu
2318
2319
2320
2321
2322
35695fd6
AC
2323
2324ac_ext=c
2325ac_cpp='$CPP $CPPFLAGS'
2326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2328ac_compiler_gnu=$ac_cv_c_compiler_gnu
2329if test -n "$ac_tool_prefix"; then
2330 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2331set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
2332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2333$as_echo_n "checking for $ac_word... " >&6; }
2334if test "${ac_cv_prog_CC+set}" = set; then :
2335 $as_echo_n "(cached) " >&6
b7026657 2336else
35695fd6
AC
2337 if test -n "$CC"; then
2338 ac_cv_prog_CC="$CC" # Let the user override the test.
2339else
2340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2341for as_dir in $PATH
2342do
2343 IFS=$as_save_IFS
2344 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2345 for ac_exec_ext in '' $ac_executable_extensions; do
2346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35695fd6 2347 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 2348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35695fd6
AC
2349 break 2
2350 fi
2351done
81ecdfbb
RW
2352 done
2353IFS=$as_save_IFS
35695fd6 2354
b7026657 2355fi
b7026657 2356fi
35695fd6
AC
2357CC=$ac_cv_prog_CC
2358if test -n "$CC"; then
81ecdfbb
RW
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2360$as_echo "$CC" >&6; }
b7026657 2361else
81ecdfbb
RW
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2363$as_echo "no" >&6; }
b7026657
AC
2364fi
2365
81ecdfbb 2366
35695fd6
AC
2367fi
2368if test -z "$ac_cv_prog_CC"; then
2369 ac_ct_CC=$CC
2370 # Extract the first word of "gcc", so it can be a program name with args.
2371set dummy gcc; ac_word=$2
81ecdfbb
RW
2372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2373$as_echo_n "checking for $ac_word... " >&6; }
2374if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2375 $as_echo_n "(cached) " >&6
b7026657 2376else
35695fd6
AC
2377 if test -n "$ac_ct_CC"; then
2378 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
b7026657 2379else
35695fd6
AC
2380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2381for as_dir in $PATH
2382do
2383 IFS=$as_save_IFS
2384 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2385 for ac_exec_ext in '' $ac_executable_extensions; do
2386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35695fd6 2387 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 2388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35695fd6
AC
2389 break 2
2390 fi
2391done
81ecdfbb
RW
2392 done
2393IFS=$as_save_IFS
b7026657
AC
2394
2395fi
b7026657 2396fi
35695fd6
AC
2397ac_ct_CC=$ac_cv_prog_ac_ct_CC
2398if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2400$as_echo "$ac_ct_CC" >&6; }
35695fd6 2401else
81ecdfbb
RW
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2403$as_echo "no" >&6; }
b7026657 2404fi
b7026657 2405
81ecdfbb
RW
2406 if test "x$ac_ct_CC" = x; then
2407 CC=""
2408 else
2409 case $cross_compiling:$ac_tool_warned in
2410yes:)
2411{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2412$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2413ac_tool_warned=yes ;;
2414esac
2415 CC=$ac_ct_CC
2416 fi
35695fd6
AC
2417else
2418 CC="$ac_cv_prog_CC"
b7026657
AC
2419fi
2420
35695fd6 2421if test -z "$CC"; then
81ecdfbb
RW
2422 if test -n "$ac_tool_prefix"; then
2423 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
35695fd6 2424set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
2425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2426$as_echo_n "checking for $ac_word... " >&6; }
2427if test "${ac_cv_prog_CC+set}" = set; then :
2428 $as_echo_n "(cached) " >&6
b7026657 2429else
35695fd6
AC
2430 if test -n "$CC"; then
2431 ac_cv_prog_CC="$CC" # Let the user override the test.
2432else
2433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2434for as_dir in $PATH
b7026657 2435do
35695fd6
AC
2436 IFS=$as_save_IFS
2437 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2438 for ac_exec_ext in '' $ac_executable_extensions; do
2439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35695fd6 2440 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 2441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35695fd6 2442 break 2
b7026657 2443 fi
35695fd6 2444done
81ecdfbb
RW
2445 done
2446IFS=$as_save_IFS
b7026657 2447
b7026657 2448fi
b7026657 2449fi
35695fd6
AC
2450CC=$ac_cv_prog_CC
2451if test -n "$CC"; then
81ecdfbb
RW
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2453$as_echo "$CC" >&6; }
b7026657 2454else
81ecdfbb
RW
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2456$as_echo "no" >&6; }
b7026657 2457fi
b7026657 2458
b7026657 2459
81ecdfbb 2460 fi
35695fd6
AC
2461fi
2462if test -z "$CC"; then
2463 # Extract the first word of "cc", so it can be a program name with args.
2464set dummy cc; ac_word=$2
81ecdfbb
RW
2465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2466$as_echo_n "checking for $ac_word... " >&6; }
2467if test "${ac_cv_prog_CC+set}" = set; then :
2468 $as_echo_n "(cached) " >&6
35695fd6
AC
2469else
2470 if test -n "$CC"; then
2471 ac_cv_prog_CC="$CC" # Let the user override the test.
2472else
2473 ac_prog_rejected=no
2474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475for as_dir in $PATH
2476do
2477 IFS=$as_save_IFS
2478 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2479 for ac_exec_ext in '' $ac_executable_extensions; do
2480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35695fd6
AC
2481 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2482 ac_prog_rejected=yes
2483 continue
2484 fi
2485 ac_cv_prog_CC="cc"
81ecdfbb 2486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35695fd6
AC
2487 break 2
2488 fi
2489done
81ecdfbb
RW
2490 done
2491IFS=$as_save_IFS
b7026657 2492
35695fd6
AC
2493if test $ac_prog_rejected = yes; then
2494 # We found a bogon in the path, so make sure we never use it.
2495 set dummy $ac_cv_prog_CC
2496 shift
2497 if test $# != 0; then
2498 # We chose a different compiler from the bogus one.
2499 # However, it has the same basename, so the bogon will be chosen
2500 # first if we set CC to just the basename; use the full file name.
2501 shift
2502 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2503 fi
2504fi
2505fi
2506fi
2507CC=$ac_cv_prog_CC
2508if test -n "$CC"; then
81ecdfbb
RW
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2510$as_echo "$CC" >&6; }
35695fd6 2511else
81ecdfbb
RW
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2513$as_echo "no" >&6; }
35695fd6 2514fi
b7026657 2515
81ecdfbb 2516
35695fd6
AC
2517fi
2518if test -z "$CC"; then
2519 if test -n "$ac_tool_prefix"; then
81ecdfbb 2520 for ac_prog in cl.exe
35695fd6
AC
2521 do
2522 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2523set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
2524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2525$as_echo_n "checking for $ac_word... " >&6; }
2526if test "${ac_cv_prog_CC+set}" = set; then :
2527 $as_echo_n "(cached) " >&6
b7026657 2528else
35695fd6
AC
2529 if test -n "$CC"; then
2530 ac_cv_prog_CC="$CC" # Let the user override the test.
2531else
2532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533for as_dir in $PATH
2534do
2535 IFS=$as_save_IFS
2536 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2537 for ac_exec_ext in '' $ac_executable_extensions; do
2538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35695fd6 2539 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 2540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35695fd6
AC
2541 break 2
2542 fi
2543done
81ecdfbb
RW
2544 done
2545IFS=$as_save_IFS
b7026657 2546
35695fd6
AC
2547fi
2548fi
2549CC=$ac_cv_prog_CC
2550if test -n "$CC"; then
81ecdfbb
RW
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2552$as_echo "$CC" >&6; }
35695fd6 2553else
81ecdfbb
RW
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2555$as_echo "no" >&6; }
35695fd6 2556fi
b7026657 2557
81ecdfbb 2558
35695fd6
AC
2559 test -n "$CC" && break
2560 done
2561fi
2562if test -z "$CC"; then
2563 ac_ct_CC=$CC
81ecdfbb 2564 for ac_prog in cl.exe
35695fd6
AC
2565do
2566 # Extract the first word of "$ac_prog", so it can be a program name with args.
2567set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
2568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2569$as_echo_n "checking for $ac_word... " >&6; }
2570if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2571 $as_echo_n "(cached) " >&6
b7026657 2572else
35695fd6
AC
2573 if test -n "$ac_ct_CC"; then
2574 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2575else
2576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577for as_dir in $PATH
2578do
2579 IFS=$as_save_IFS
2580 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2581 for ac_exec_ext in '' $ac_executable_extensions; do
2582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35695fd6 2583 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 2584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35695fd6
AC
2585 break 2
2586 fi
2587done
81ecdfbb
RW
2588 done
2589IFS=$as_save_IFS
35695fd6
AC
2590
2591fi
2592fi
2593ac_ct_CC=$ac_cv_prog_ac_ct_CC
2594if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2596$as_echo "$ac_ct_CC" >&6; }
35695fd6 2597else
81ecdfbb
RW
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2599$as_echo "no" >&6; }
35695fd6
AC
2600fi
2601
81ecdfbb 2602
35695fd6
AC
2603 test -n "$ac_ct_CC" && break
2604done
2605
81ecdfbb
RW
2606 if test "x$ac_ct_CC" = x; then
2607 CC=""
2608 else
2609 case $cross_compiling:$ac_tool_warned in
2610yes:)
2611{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2612$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2613ac_tool_warned=yes ;;
2614esac
2615 CC=$ac_ct_CC
2616 fi
35695fd6
AC
2617fi
2618
2619fi
2620
2621
81ecdfbb
RW
2622test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2623$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2624as_fn_error "no acceptable C compiler found in \$PATH
2625See \`config.log' for more details." "$LINENO" 5; }
35695fd6
AC
2626
2627# Provide some information about the compiler.
81ecdfbb
RW
2628$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2629set X $ac_compile
2630ac_compiler=$2
2631for ac_option in --version -v -V -qversion; do
2632 { { ac_try="$ac_compiler $ac_option >&5"
2633case "(($ac_try" in
2634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2635 *) ac_try_echo=$ac_try;;
2636esac
2637eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2638$as_echo "$ac_try_echo"; } >&5
2639 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
35695fd6 2640 ac_status=$?
81ecdfbb
RW
2641 if test -s conftest.err; then
2642 sed '10a\
2643... rest of stderr output deleted ...
2644 10q' conftest.err >conftest.er1
2645 cat conftest.er1 >&5
2646 rm -f conftest.er1 conftest.err
2647 fi
2648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2649 test $ac_status = 0; }
2650done
35695fd6 2651
81ecdfbb 2652cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 2653/* end confdefs.h. */
b7026657
AC
2654
2655int
2656main ()
2657{
2658
2659 ;
2660 return 0;
2661}
2662_ACEOF
35695fd6 2663ac_clean_files_save=$ac_clean_files
81ecdfbb 2664ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
35695fd6
AC
2665# Try to create an executable without -o first, disregard a.out.
2666# It will help us diagnose broken compilers, and finding out an intuition
2667# of exeext.
81ecdfbb
RW
2668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2669$as_echo_n "checking for C compiler default output file name... " >&6; }
2670ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2671
2672# The possible output files:
2673ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2674
2675ac_rmfiles=
2676for ac_file in $ac_files
35695fd6 2677do
35695fd6 2678 case $ac_file in
81ecdfbb
RW
2679 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2680 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2681 esac
2682done
2683rm -f $ac_rmfiles
2684
2685if { { ac_try="$ac_link_default"
2686case "(($ac_try" in
2687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2688 *) ac_try_echo=$ac_try;;
2689esac
2690eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2691$as_echo "$ac_try_echo"; } >&5
2692 (eval "$ac_link_default") 2>&5
2693 ac_status=$?
2694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2695 test $ac_status = 0; }; then :
2696 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2697# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2698# in a Makefile. We should not override ac_cv_exeext if it was cached,
2699# so that the user can short-circuit this test for compilers unknown to
2700# Autoconf.
2701for ac_file in $ac_files ''
2702do
2703 test -f "$ac_file" || continue
2704 case $ac_file in
2705 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2706 ;;
2707 [ab].out )
35695fd6
AC
2708 # We found the default executable, but exeext='' is most
2709 # certainly right.
2710 break;;
2711 *.* )
81ecdfbb
RW
2712 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2713 then :; else
2714 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2715 fi
2716 # We set ac_cv_exeext here because the later test for it is not
2717 # safe: cross compilers may not add the suffix if given an `-o'
2718 # argument, so we may need to know it at that point already.
2719 # Even if this section looks crufty: it has the advantage of
2720 # actually working.
35695fd6
AC
2721 break;;
2722 * )
2723 break;;
2724 esac
2725done
81ecdfbb
RW
2726test "$ac_cv_exeext" = no && ac_cv_exeext=
2727
b7026657 2728else
81ecdfbb
RW
2729 ac_file=''
2730fi
2731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2732$as_echo "$ac_file" >&6; }
2733if test -z "$ac_file"; then :
2734 $as_echo "$as_me: failed program was:" >&5
b7026657
AC
2735sed 's/^/| /' conftest.$ac_ext >&5
2736
81ecdfbb
RW
2737{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2738$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2739{ as_fn_set_status 77
2740as_fn_error "C compiler cannot create executables
2741See \`config.log' for more details." "$LINENO" 5; }; }
b7026657 2742fi
35695fd6 2743ac_exeext=$ac_cv_exeext
c906108c 2744
81ecdfbb 2745# Check that the compiler produces executables we can run. If not, either
35695fd6 2746# the compiler is broken, or we cross compile.
81ecdfbb
RW
2747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2748$as_echo_n "checking whether the C compiler works... " >&6; }
35695fd6
AC
2749# If not cross compiling, check that we can run a simple program.
2750if test "$cross_compiling" != yes; then
2751 if { ac_try='./$ac_file'
81ecdfbb
RW
2752 { { case "(($ac_try" in
2753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2754 *) ac_try_echo=$ac_try;;
2755esac
2756eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2757$as_echo "$ac_try_echo"; } >&5
2758 (eval "$ac_try") 2>&5
35695fd6 2759 ac_status=$?
81ecdfbb
RW
2760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2761 test $ac_status = 0; }; }; then
35695fd6
AC
2762 cross_compiling=no
2763 else
2764 if test "$cross_compiling" = maybe; then
2765 cross_compiling=yes
2766 else
81ecdfbb
RW
2767 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2768$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2769as_fn_error "cannot run C compiled programs.
35695fd6 2770If you meant to cross compile, use \`--host'.
81ecdfbb 2771See \`config.log' for more details." "$LINENO" 5; }
35695fd6
AC
2772 fi
2773 fi
c906108c 2774fi
81ecdfbb
RW
2775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2776$as_echo "yes" >&6; }
c906108c 2777
81ecdfbb 2778rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
35695fd6 2779ac_clean_files=$ac_clean_files_save
81ecdfbb 2780# Check that the compiler produces executables we can run. If not, either
35695fd6 2781# the compiler is broken, or we cross compile.
81ecdfbb
RW
2782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2783$as_echo_n "checking whether we are cross compiling... " >&6; }
2784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2785$as_echo "$cross_compiling" >&6; }
2786
2787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2788$as_echo_n "checking for suffix of executables... " >&6; }
2789if { { ac_try="$ac_link"
2790case "(($ac_try" in
2791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2792 *) ac_try_echo=$ac_try;;
2793esac
2794eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2795$as_echo "$ac_try_echo"; } >&5
2796 (eval "$ac_link") 2>&5
35695fd6 2797 ac_status=$?
81ecdfbb
RW
2798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2799 test $ac_status = 0; }; then :
35695fd6
AC
2800 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2801# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2802# work properly (i.e., refer to `conftest.exe'), while it won't with
2803# `rm'.
2804for ac_file in conftest.exe conftest conftest.*; do
2805 test -f "$ac_file" || continue
2806 case $ac_file in
81ecdfbb 2807 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
35695fd6 2808 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
35695fd6
AC
2809 break;;
2810 * ) break;;
2811 esac
2812done
c906108c 2813else
81ecdfbb
RW
2814 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2815$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2816as_fn_error "cannot compute suffix of executables: cannot compile and link
2817See \`config.log' for more details." "$LINENO" 5; }
c906108c 2818fi
35695fd6 2819rm -f conftest$ac_cv_exeext
81ecdfbb
RW
2820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2821$as_echo "$ac_cv_exeext" >&6; }
c906108c 2822
35695fd6
AC
2823rm -f conftest.$ac_ext
2824EXEEXT=$ac_cv_exeext
2825ac_exeext=$EXEEXT
81ecdfbb
RW
2826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2827$as_echo_n "checking for suffix of object files... " >&6; }
2828if test "${ac_cv_objext+set}" = set; then :
2829 $as_echo_n "(cached) " >&6
c906108c 2830else
81ecdfbb 2831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 2832/* end confdefs.h. */
c906108c 2833
b7026657
AC
2834int
2835main ()
2836{
35695fd6
AC
2837
2838 ;
2839 return 0;
b7026657
AC
2840}
2841_ACEOF
35695fd6 2842rm -f conftest.o conftest.obj
81ecdfbb
RW
2843if { { ac_try="$ac_compile"
2844case "(($ac_try" in
2845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2846 *) ac_try_echo=$ac_try;;
2847esac
2848eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2849$as_echo "$ac_try_echo"; } >&5
2850 (eval "$ac_compile") 2>&5
2851 ac_status=$?
2852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2853 test $ac_status = 0; }; then :
2854 for ac_file in conftest.o conftest.obj conftest.*; do
2855 test -f "$ac_file" || continue;
35695fd6 2856 case $ac_file in
81ecdfbb 2857 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
35695fd6
AC
2858 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2859 break;;
2860 esac
2861done
c906108c 2862else
81ecdfbb 2863 $as_echo "$as_me: failed program was:" >&5
b7026657
AC
2864sed 's/^/| /' conftest.$ac_ext >&5
2865
81ecdfbb
RW
2866{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2867$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2868as_fn_error "cannot compute suffix of object files: cannot compile
2869See \`config.log' for more details." "$LINENO" 5; }
c906108c 2870fi
35695fd6 2871rm -f conftest.$ac_cv_objext conftest.$ac_ext
b7026657 2872fi
81ecdfbb
RW
2873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2874$as_echo "$ac_cv_objext" >&6; }
35695fd6
AC
2875OBJEXT=$ac_cv_objext
2876ac_objext=$OBJEXT
81ecdfbb
RW
2877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2878$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2879if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2880 $as_echo_n "(cached) " >&6
b7026657 2881else
81ecdfbb 2882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
2883/* end confdefs.h. */
2884
2885int
2886main ()
2887{
35695fd6
AC
2888#ifndef __GNUC__
2889 choke me
b7026657
AC
2890#endif
2891
2892 ;
2893 return 0;
2894}
2895_ACEOF
81ecdfbb 2896if ac_fn_c_try_compile "$LINENO"; then :
35695fd6 2897 ac_compiler_gnu=yes
c906108c 2898else
81ecdfbb 2899 ac_compiler_gnu=no
c906108c 2900fi
81ecdfbb 2901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35695fd6 2902ac_cv_c_compiler_gnu=$ac_compiler_gnu
c906108c
SS
2903
2904fi
81ecdfbb
RW
2905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2906$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2907if test $ac_compiler_gnu = yes; then
2908 GCC=yes
2909else
2910 GCC=
2911fi
35695fd6
AC
2912ac_test_CFLAGS=${CFLAGS+set}
2913ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
2914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2915$as_echo_n "checking whether $CC accepts -g... " >&6; }
2916if test "${ac_cv_prog_cc_g+set}" = set; then :
2917 $as_echo_n "(cached) " >&6
2918else
2919 ac_save_c_werror_flag=$ac_c_werror_flag
2920 ac_c_werror_flag=yes
2921 ac_cv_prog_cc_g=no
2922 CFLAGS="-g"
2923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 2924/* end confdefs.h. */
b7026657 2925
35695fd6
AC
2926int
2927main ()
2928{
2929
2930 ;
2931 return 0;
2932}
b7026657 2933_ACEOF
81ecdfbb 2934if ac_fn_c_try_compile "$LINENO"; then :
35695fd6 2935 ac_cv_prog_cc_g=yes
c906108c 2936else
81ecdfbb
RW
2937 CFLAGS=""
2938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2939/* end confdefs.h. */
2940
2941int
2942main ()
2943{
2944
2945 ;
2946 return 0;
2947}
2948_ACEOF
2949if ac_fn_c_try_compile "$LINENO"; then :
2950
2951else
2952 ac_c_werror_flag=$ac_save_c_werror_flag
2953 CFLAGS="-g"
2954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2955/* end confdefs.h. */
b7026657 2956
81ecdfbb
RW
2957int
2958main ()
2959{
2960
2961 ;
2962 return 0;
2963}
2964_ACEOF
2965if ac_fn_c_try_compile "$LINENO"; then :
2966 ac_cv_prog_cc_g=yes
2967fi
2968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 2969fi
81ecdfbb 2970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 2971fi
81ecdfbb
RW
2972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2973 ac_c_werror_flag=$ac_save_c_werror_flag
2974fi
2975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2976$as_echo "$ac_cv_prog_cc_g" >&6; }
35695fd6
AC
2977if test "$ac_test_CFLAGS" = set; then
2978 CFLAGS=$ac_save_CFLAGS
2979elif test $ac_cv_prog_cc_g = yes; then
2980 if test "$GCC" = yes; then
2981 CFLAGS="-g -O2"
2982 else
2983 CFLAGS="-g"
2984 fi
2985else
2986 if test "$GCC" = yes; then
2987 CFLAGS="-O2"
2988 else
2989 CFLAGS=
2990 fi
2991fi
81ecdfbb
RW
2992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2993$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2994if test "${ac_cv_prog_cc_c89+set}" = set; then :
2995 $as_echo_n "(cached) " >&6
b7026657 2996else
81ecdfbb 2997 ac_cv_prog_cc_c89=no
35695fd6 2998ac_save_CC=$CC
81ecdfbb 2999cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 3000/* end confdefs.h. */
35695fd6
AC
3001#include <stdarg.h>
3002#include <stdio.h>
3003#include <sys/types.h>
3004#include <sys/stat.h>
3005/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3006struct buf { int x; };
3007FILE * (*rcsopen) (struct buf *, struct stat *, int);
3008static char *e (p, i)
3009 char **p;
3010 int i;
3011{
3012 return p[i];
3013}
3014static char *f (char * (*g) (char **, int), char **p, ...)
3015{
3016 char *s;
3017 va_list v;
3018 va_start (v,p);
3019 s = g (p, va_arg (v,int));
3020 va_end (v);
3021 return s;
3022}
b7026657 3023
35695fd6
AC
3024/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3025 function prototypes and stuff, but not '\xHH' hex character constants.
3026 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3027 as 'x'. The following induces an error, until -std is added to get
35695fd6
AC
3028 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3029 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3030 that's true only with -std. */
35695fd6
AC
3031int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3032
81ecdfbb
RW
3033/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3034 inside strings and character constants. */
3035#define FOO(x) 'x'
3036int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3037
35695fd6
AC
3038int test (int i, double x);
3039struct s1 {int (*f) (int a);};
3040struct s2 {int (*f) (double a);};
3041int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3042int argc;
3043char **argv;
3044int
3045main ()
3046{
3047return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3048 ;
3049 return 0;
3050}
b7026657 3051_ACEOF
81ecdfbb
RW
3052for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3053 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
35695fd6
AC
3054do
3055 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3056 if ac_fn_c_try_compile "$LINENO"; then :
3057 ac_cv_prog_cc_c89=$ac_arg
b7026657 3058fi
81ecdfbb
RW
3059rm -f core conftest.err conftest.$ac_objext
3060 test "x$ac_cv_prog_cc_c89" != "xno" && break
35695fd6 3061done
81ecdfbb 3062rm -f conftest.$ac_ext
35695fd6 3063CC=$ac_save_CC
b7026657
AC
3064
3065fi
81ecdfbb
RW
3066# AC_CACHE_VAL
3067case "x$ac_cv_prog_cc_c89" in
3068 x)
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3070$as_echo "none needed" >&6; } ;;
3071 xno)
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3073$as_echo "unsupported" >&6; } ;;
35695fd6 3074 *)
81ecdfbb
RW
3075 CC="$CC $ac_cv_prog_cc_c89"
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3077$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
35695fd6 3078esac
81ecdfbb 3079if test "x$ac_cv_prog_cc_c89" != xno; then :
c906108c 3080
b7026657 3081fi
35695fd6 3082
35695fd6
AC
3083ac_ext=c
3084ac_cpp='$CPP $CPPFLAGS'
3085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3087ac_compiler_gnu=$ac_cv_c_compiler_gnu
3088
6ffe910a
MF
3089ac_aux_dir=
3090for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3091 for ac_t in install-sh install.sh shtool; do
3092 if test -f "$ac_dir/$ac_t"; then
3093 ac_aux_dir=$ac_dir
3094 ac_install_sh="$ac_aux_dir/$ac_t -c"
3095 break 2
3096 fi
81ecdfbb 3097 done
6ffe910a
MF
3098done
3099if test -z "$ac_aux_dir"; then
3100 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3101fi
81ecdfbb 3102
6ffe910a
MF
3103# These three variables are undocumented and unsupported,
3104# and are intended to be withdrawn in a future Autoconf release.
3105# They can cause serious problems if a builder's source tree is in a directory
3106# whose full name contains unusual characters.
3107ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3108ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3109ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
c906108c 3110
35695fd6 3111
6ffe910a
MF
3112# Make sure we can run config.sub.
3113$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3114 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
35695fd6 3115
6ffe910a
MF
3116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3117$as_echo_n "checking build system type... " >&6; }
3118if test "${ac_cv_build+set}" = set; then :
3119 $as_echo_n "(cached) " >&6
35695fd6 3120else
6ffe910a
MF
3121 ac_build_alias=$build_alias
3122test "x$ac_build_alias" = x &&
3123 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3124test "x$ac_build_alias" = x &&
3125 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3126ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3127 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
35695fd6 3128
6ffe910a
MF
3129fi
3130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3131$as_echo "$ac_cv_build" >&6; }
3132case $ac_cv_build in
3133*-*-*) ;;
3134*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3135esac
3136build=$ac_cv_build
3137ac_save_IFS=$IFS; IFS='-'
3138set x $ac_cv_build
3139shift
3140build_cpu=$1
3141build_vendor=$2
3142shift; shift
3143# Remember, the first character of IFS is used to create $*,
3144# except with old shells:
3145build_os=$*
3146IFS=$ac_save_IFS
3147case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
35695fd6 3148
35695fd6 3149
6ffe910a
MF
3150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3151$as_echo_n "checking host system type... " >&6; }
3152if test "${ac_cv_host+set}" = set; then :
81ecdfbb 3153 $as_echo_n "(cached) " >&6
b7026657 3154else
6ffe910a
MF
3155 if test "x$host_alias" = x; then
3156 ac_cv_host=$ac_cv_build
35695fd6 3157else
6ffe910a
MF
3158 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3159 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
35695fd6 3160fi
6ffe910a 3161
35695fd6 3162fi
6ffe910a
MF
3163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3164$as_echo "$ac_cv_host" >&6; }
3165case $ac_cv_host in
3166*-*-*) ;;
3167*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3168esac
3169host=$ac_cv_host
3170ac_save_IFS=$IFS; IFS='-'
3171set x $ac_cv_host
3172shift
3173host_cpu=$1
3174host_vendor=$2
3175shift; shift
3176# Remember, the first character of IFS is used to create $*,
3177# except with old shells:
3178host_os=$*
3179IFS=$ac_save_IFS
3180case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
35695fd6 3181
81ecdfbb 3182
6ffe910a
MF
3183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3184$as_echo_n "checking target system type... " >&6; }
3185if test "${ac_cv_target+set}" = set; then :
81ecdfbb 3186 $as_echo_n "(cached) " >&6
35695fd6 3187else
6ffe910a
MF
3188 if test "x$target_alias" = x; then
3189 ac_cv_target=$ac_cv_host
35695fd6 3190else
6ffe910a
MF
3191 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3192 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
35695fd6
AC
3193fi
3194
35695fd6 3195fi
6ffe910a
MF
3196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3197$as_echo "$ac_cv_target" >&6; }
3198case $ac_cv_target in
3199*-*-*) ;;
3200*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3201esac
3202target=$ac_cv_target
3203ac_save_IFS=$IFS; IFS='-'
3204set x $ac_cv_target
3205shift
3206target_cpu=$1
3207target_vendor=$2
3208shift; shift
3209# Remember, the first character of IFS is used to create $*,
3210# except with old shells:
3211target_os=$*
3212IFS=$ac_save_IFS
3213case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
35695fd6
AC
3214
3215
6ffe910a
MF
3216# The aliases save the names the user supplied, while $host etc.
3217# will get canonicalized.
3218test -n "$target_alias" &&
3219 test "$program_prefix$program_suffix$program_transform_name" = \
3220 NONENONEs,x,x, &&
3221 program_prefix=${target_alias}-
c906108c 3222
35695fd6
AC
3223ac_ext=c
3224ac_cpp='$CPP $CPPFLAGS'
3225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3227ac_compiler_gnu=$ac_cv_c_compiler_gnu
81ecdfbb
RW
3228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3229$as_echo_n "checking how to run the C preprocessor... " >&6; }
35695fd6
AC
3230# On Suns, sometimes $CPP names a directory.
3231if test -n "$CPP" && test -d "$CPP"; then
3232 CPP=
3233fi
3234if test -z "$CPP"; then
81ecdfbb
RW
3235 if test "${ac_cv_prog_CPP+set}" = set; then :
3236 $as_echo_n "(cached) " >&6
c906108c 3237else
35695fd6
AC
3238 # Double quotes because CPP needs to be expanded
3239 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3240 do
3241 ac_preproc_ok=false
3242for ac_c_preproc_warn_flag in '' yes
3243do
3244 # Use a header file that comes with gcc, so configuring glibc
3245 # with a fresh cross-compiler works.
3246 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3247 # <limits.h> exists even on freestanding compilers.
3248 # On the NeXT, cc -E runs the code through the compiler's parser,
3249 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 3250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 3251/* end confdefs.h. */
35695fd6
AC
3252#ifdef __STDC__
3253# include <limits.h>
c906108c 3254#else
35695fd6 3255# include <assert.h>
c906108c 3256#endif
35695fd6 3257 Syntax error
b7026657 3258_ACEOF
81ecdfbb 3259if ac_fn_c_try_cpp "$LINENO"; then :
c906108c 3260
81ecdfbb 3261else
35695fd6
AC
3262 # Broken: fails on valid input.
3263continue
c906108c 3264fi
35695fd6
AC
3265rm -f conftest.err conftest.$ac_ext
3266
81ecdfbb 3267 # OK, works on sane cases. Now check whether nonexistent headers
35695fd6 3268 # can be detected and how.
81ecdfbb 3269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 3270/* end confdefs.h. */
35695fd6 3271#include <ac_nonexistent.h>
b7026657 3272_ACEOF
81ecdfbb 3273if ac_fn_c_try_cpp "$LINENO"; then :
35695fd6
AC
3274 # Broken: success on invalid input.
3275continue
b7026657 3276else
35695fd6
AC
3277 # Passes both tests.
3278ac_preproc_ok=:
3279break
b7026657 3280fi
35695fd6
AC
3281rm -f conftest.err conftest.$ac_ext
3282
3283done
3284# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3285rm -f conftest.err conftest.$ac_ext
81ecdfbb 3286if $ac_preproc_ok; then :
35695fd6 3287 break
b7026657 3288fi
b7026657 3289
35695fd6
AC
3290 done
3291 ac_cv_prog_CPP=$CPP
c906108c 3292
c906108c 3293fi
35695fd6 3294 CPP=$ac_cv_prog_CPP
c906108c 3295else
35695fd6
AC
3296 ac_cv_prog_CPP=$CPP
3297fi
81ecdfbb
RW
3298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3299$as_echo "$CPP" >&6; }
35695fd6
AC
3300ac_preproc_ok=false
3301for ac_c_preproc_warn_flag in '' yes
3302do
3303 # Use a header file that comes with gcc, so configuring glibc
3304 # with a fresh cross-compiler works.
3305 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3306 # <limits.h> exists even on freestanding compilers.
3307 # On the NeXT, cc -E runs the code through the compiler's parser,
3308 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 3309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 3310/* end confdefs.h. */
35695fd6
AC
3311#ifdef __STDC__
3312# include <limits.h>
3313#else
3314# include <assert.h>
3315#endif
3316 Syntax error
b7026657 3317_ACEOF
81ecdfbb 3318if ac_fn_c_try_cpp "$LINENO"; then :
b7026657 3319
81ecdfbb 3320else
35695fd6
AC
3321 # Broken: fails on valid input.
3322continue
c906108c 3323fi
35695fd6 3324rm -f conftest.err conftest.$ac_ext
c906108c 3325
81ecdfbb 3326 # OK, works on sane cases. Now check whether nonexistent headers
35695fd6 3327 # can be detected and how.
81ecdfbb 3328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35695fd6
AC
3329/* end confdefs.h. */
3330#include <ac_nonexistent.h>
3331_ACEOF
81ecdfbb 3332if ac_fn_c_try_cpp "$LINENO"; then :
35695fd6
AC
3333 # Broken: success on invalid input.
3334continue
3335else
35695fd6
AC
3336 # Passes both tests.
3337ac_preproc_ok=:
3338break
3339fi
3340rm -f conftest.err conftest.$ac_ext
c906108c 3341
35695fd6
AC
3342done
3343# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3344rm -f conftest.err conftest.$ac_ext
81ecdfbb
RW
3345if $ac_preproc_ok; then :
3346
35695fd6 3347else
81ecdfbb
RW
3348 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3349$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3350as_fn_error "C preprocessor \"$CPP\" fails sanity check
3351See \`config.log' for more details." "$LINENO" 5; }
c906108c
SS
3352fi
3353
35695fd6
AC
3354ac_ext=c
3355ac_cpp='$CPP $CPPFLAGS'
3356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3358ac_compiler_gnu=$ac_cv_c_compiler_gnu
b7026657
AC
3359
3360
81ecdfbb
RW
3361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3362$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3363if test "${ac_cv_path_GREP+set}" = set; then :
3364 $as_echo_n "(cached) " >&6
35695fd6 3365else
81ecdfbb
RW
3366 if test -z "$GREP"; then
3367 ac_path_GREP_found=false
3368 # Loop through the user's path and test for each of PROGNAME-LIST
3369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3370for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3371do
3372 IFS=$as_save_IFS
3373 test -z "$as_dir" && as_dir=.
3374 for ac_prog in grep ggrep; do
3375 for ac_exec_ext in '' $ac_executable_extensions; do
3376 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3377 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3378# Check for GNU ac_path_GREP and select it if it is found.
3379 # Check for GNU $ac_path_GREP
3380case `"$ac_path_GREP" --version 2>&1` in
3381*GNU*)
3382 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3383*)
3384 ac_count=0
3385 $as_echo_n 0123456789 >"conftest.in"
3386 while :
3387 do
3388 cat "conftest.in" "conftest.in" >"conftest.tmp"
3389 mv "conftest.tmp" "conftest.in"
3390 cp "conftest.in" "conftest.nl"
3391 $as_echo 'GREP' >> "conftest.nl"
3392 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3393 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3394 as_fn_arith $ac_count + 1 && ac_count=$as_val
3395 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3396 # Best one so far, save it but keep looking for a better one
3397 ac_cv_path_GREP="$ac_path_GREP"
3398 ac_path_GREP_max=$ac_count
35695fd6 3399 fi
81ecdfbb
RW
3400 # 10*(2^10) chars as input seems more than enough
3401 test $ac_count -gt 10 && break
3402 done
3403 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3404esac
3405
3406 $ac_path_GREP_found && break 3
3407 done
3408 done
3409 done
3410IFS=$as_save_IFS
3411 if test -z "$ac_cv_path_GREP"; then
3412 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3413 fi
3414else
3415 ac_cv_path_GREP=$GREP
3416fi
3417
b7026657 3418fi
81ecdfbb
RW
3419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3420$as_echo "$ac_cv_path_GREP" >&6; }
3421 GREP="$ac_cv_path_GREP"
35695fd6
AC
3422
3423
81ecdfbb
RW
3424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3425$as_echo_n "checking for egrep... " >&6; }
3426if test "${ac_cv_path_EGREP+set}" = set; then :
3427 $as_echo_n "(cached) " >&6
b7026657 3428else
81ecdfbb
RW
3429 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3430 then ac_cv_path_EGREP="$GREP -E"
3431 else
3432 if test -z "$EGREP"; then
3433 ac_path_EGREP_found=false
3434 # Loop through the user's path and test for each of PROGNAME-LIST
3435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3436for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3437do
3438 IFS=$as_save_IFS
3439 test -z "$as_dir" && as_dir=.
3440 for ac_prog in egrep; do
3441 for ac_exec_ext in '' $ac_executable_extensions; do
3442 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3443 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3444# Check for GNU ac_path_EGREP and select it if it is found.
3445 # Check for GNU $ac_path_EGREP
3446case `"$ac_path_EGREP" --version 2>&1` in
3447*GNU*)
3448 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3449*)
3450 ac_count=0
3451 $as_echo_n 0123456789 >"conftest.in"
3452 while :
3453 do
3454 cat "conftest.in" "conftest.in" >"conftest.tmp"
3455 mv "conftest.tmp" "conftest.in"
3456 cp "conftest.in" "conftest.nl"
3457 $as_echo 'EGREP' >> "conftest.nl"
3458 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3459 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3460 as_fn_arith $ac_count + 1 && ac_count=$as_val
3461 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3462 # Best one so far, save it but keep looking for a better one
3463 ac_cv_path_EGREP="$ac_path_EGREP"
3464 ac_path_EGREP_max=$ac_count
3465 fi
3466 # 10*(2^10) chars as input seems more than enough
3467 test $ac_count -gt 10 && break
3468 done
3469 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3470esac
3471
3472 $ac_path_EGREP_found && break 3
3473 done
3474 done
3475 done
3476IFS=$as_save_IFS
3477 if test -z "$ac_cv_path_EGREP"; then
3478 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3479 fi
3480else
3481 ac_cv_path_EGREP=$EGREP
3482fi
3483
3484 fi
3485fi
3486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3487$as_echo "$ac_cv_path_EGREP" >&6; }
3488 EGREP="$ac_cv_path_EGREP"
3489
3490
3491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3492$as_echo_n "checking for ANSI C header files... " >&6; }
3493if test "${ac_cv_header_stdc+set}" = set; then :
3494 $as_echo_n "(cached) " >&6
3495else
3496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 3497/* end confdefs.h. */
35695fd6
AC
3498#include <stdlib.h>
3499#include <stdarg.h>
3500#include <string.h>
3501#include <float.h>
3502
3503int
3504main ()
3505{
3506
3507 ;
3508 return 0;
3509}
b7026657 3510_ACEOF
81ecdfbb 3511if ac_fn_c_try_compile "$LINENO"; then :
35695fd6 3512 ac_cv_header_stdc=yes
b7026657 3513else
81ecdfbb 3514 ac_cv_header_stdc=no
b7026657 3515fi
81ecdfbb 3516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 3517
35695fd6
AC
3518if test $ac_cv_header_stdc = yes; then
3519 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
81ecdfbb 3520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 3521/* end confdefs.h. */
35695fd6
AC
3522#include <string.h>
3523
b7026657 3524_ACEOF
35695fd6 3525if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
3526 $EGREP "memchr" >/dev/null 2>&1; then :
3527
b7026657 3528else
35695fd6 3529 ac_cv_header_stdc=no
c906108c 3530fi
35695fd6
AC
3531rm -f conftest*
3532
3533fi
3534
3535if test $ac_cv_header_stdc = yes; then
3536 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
81ecdfbb 3537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35695fd6
AC
3538/* end confdefs.h. */
3539#include <stdlib.h>
3540
3541_ACEOF
3542if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
3543 $EGREP "free" >/dev/null 2>&1; then :
3544
b7026657 3545else
20e95c23
DJ
3546 ac_cv_header_stdc=no
3547fi
3548rm -f conftest*
3549
c906108c
SS
3550fi
3551
20e95c23
DJ
3552if test $ac_cv_header_stdc = yes; then
3553 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
81ecdfbb 3554 if test "$cross_compiling" = yes; then :
20e95c23
DJ
3555 :
3556else
81ecdfbb 3557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 3558/* end confdefs.h. */
20e95c23 3559#include <ctype.h>
81ecdfbb 3560#include <stdlib.h>
20e95c23
DJ
3561#if ((' ' & 0x0FF) == 0x020)
3562# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3563# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3564#else
3565# define ISLOWER(c) \
3566 (('a' <= (c) && (c) <= 'i') \
3567 || ('j' <= (c) && (c) <= 'r') \
3568 || ('s' <= (c) && (c) <= 'z'))
3569# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3570#endif
c906108c 3571
20e95c23 3572#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
b7026657
AC
3573int
3574main ()
3575{
20e95c23
DJ
3576 int i;
3577 for (i = 0; i < 256; i++)
3578 if (XOR (islower (i), ISLOWER (i))
3579 || toupper (i) != TOUPPER (i))
81ecdfbb
RW
3580 return 2;
3581 return 0;
b7026657
AC
3582}
3583_ACEOF
81ecdfbb 3584if ac_fn_c_try_run "$LINENO"; then :
b7026657 3585
81ecdfbb
RW
3586else
3587 ac_cv_header_stdc=no
c906108c 3588fi
81ecdfbb
RW
3589rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3590 conftest.$ac_objext conftest.beam conftest.$ac_ext
c906108c 3591fi
81ecdfbb 3592
c906108c 3593fi
c906108c 3594fi
81ecdfbb
RW
3595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3596$as_echo "$ac_cv_header_stdc" >&6; }
20e95c23 3597if test $ac_cv_header_stdc = yes; then
b7026657 3598
81ecdfbb 3599$as_echo "#define STDC_HEADERS 1" >>confdefs.h
c906108c 3600
c906108c
SS
3601fi
3602
20e95c23 3603# On IRIX 5.3, sys/types and inttypes.h are conflicting.
81ecdfbb
RW
3604for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3605 inttypes.h stdint.h unistd.h
3606do :
3607 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3608ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3609"
3610eval as_val=\$$as_ac_Header
3611 if test "x$as_val" = x""yes; then :
3612 cat >>confdefs.h <<_ACEOF
3613#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3614_ACEOF
b7026657 3615
81ecdfbb 3616fi
b7026657 3617
81ecdfbb 3618done
b7026657
AC
3619
3620
6ffe910a 3621
2232061b
MF
3622 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3623if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3624 MINIX=yes
3625else
3626 MINIX=
3627fi
3628
3629
3630 if test "$MINIX" = yes; then
3631
3632$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3633
3634
3635$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3636
3637
3638$as_echo "#define _MINIX 1" >>confdefs.h
3639
3640 fi
3641
3642
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3644$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3645if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3646 $as_echo_n "(cached) " >&6
3647else
3648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649/* end confdefs.h. */
3650
3651# define __EXTENSIONS__ 1
3652 $ac_includes_default
3653int
3654main ()
3655{
3656
3657 ;
3658 return 0;
3659}
3660_ACEOF
3661if ac_fn_c_try_compile "$LINENO"; then :
3662 ac_cv_safe_to_define___extensions__=yes
3663else
3664 ac_cv_safe_to_define___extensions__=no
3665fi
3666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3667fi
3668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3669$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3670 test $ac_cv_safe_to_define___extensions__ = yes &&
3671 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3672
3673 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3674
3675 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3676
3677 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3678
3679 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3680
3681
3682test "$program_prefix" != NONE &&
3683 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3684# Use a double $ so make ignores it.
3685test "$program_suffix" != NONE &&
3686 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3687# Double any \ or $.
3688# By default was `s,x,x', remove it if useless.
3689ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3690program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3691
3692# Find a good install program. We prefer a C program (faster),
3693# so one script is as good as another. But avoid the broken or
3694# incompatible versions:
3695# SysV /etc/install, /usr/sbin/install
3696# SunOS /usr/etc/install
3697# IRIX /sbin/install
3698# AIX /bin/install
3699# AmigaOS /C/install, which installs bootblocks on floppy discs
3700# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3701# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3702# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3703# OS/2's system install, which has a completely different semantic
3704# ./install, which can be erroneously created by make from ./install.sh.
3705# Reject install programs that cannot install multiple files.
3706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3707$as_echo_n "checking for a BSD-compatible install... " >&6; }
3708if test -z "$INSTALL"; then
3709if test "${ac_cv_path_install+set}" = set; then :
3710 $as_echo_n "(cached) " >&6
3711else
3712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3713for as_dir in $PATH
3714do
3715 IFS=$as_save_IFS
3716 test -z "$as_dir" && as_dir=.
3717 # Account for people who put trailing slashes in PATH elements.
3718case $as_dir/ in #((
3719 ./ | .// | /[cC]/* | \
3720 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3721 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3722 /usr/ucb/* ) ;;
3723 *)
3724 # OSF1 and SCO ODT 3.0 have their own names for install.
3725 # Don't use installbsd from OSF since it installs stuff as root
3726 # by default.
3727 for ac_prog in ginstall scoinst install; do
3728 for ac_exec_ext in '' $ac_executable_extensions; do
3729 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3730 if test $ac_prog = install &&
3731 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3732 # AIX install. It has an incompatible calling convention.
3733 :
3734 elif test $ac_prog = install &&
3735 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3736 # program-specific install script used by HP pwplus--don't use.
3737 :
3738 else
3739 rm -rf conftest.one conftest.two conftest.dir
3740 echo one > conftest.one
3741 echo two > conftest.two
3742 mkdir conftest.dir
3743 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3744 test -s conftest.one && test -s conftest.two &&
3745 test -s conftest.dir/conftest.one &&
3746 test -s conftest.dir/conftest.two
3747 then
3748 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3749 break 3
3750 fi
3751 fi
3752 fi
3753 done
3754 done
3755 ;;
3756esac
3757
3758 done
3759IFS=$as_save_IFS
3760
3761rm -rf conftest.one conftest.two conftest.dir
3762
3763fi
3764 if test "${ac_cv_path_install+set}" = set; then
3765 INSTALL=$ac_cv_path_install
3766 else
3767 # As a last resort, use the slow shell script. Don't cache a
3768 # value for INSTALL within a source directory, because that will
3769 # break other packages using the cache if that directory is
3770 # removed, or if the value is a relative name.
3771 INSTALL=$ac_install_sh
3772 fi
3773fi
3774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3775$as_echo "$INSTALL" >&6; }
3776
3777# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3778# It thinks the first close brace ends the variable substitution.
3779test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3780
3781test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3782
3783test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3784
3785rm -rf .tst 2>/dev/null
3786mkdir .tst 2>/dev/null
3787if test -d .tst; then
3788 am__leading_dot=.
3789else
3790 am__leading_dot=_
3791fi
3792rmdir .tst 2>/dev/null
3793
3794DEPDIR="${am__leading_dot}deps"
3795
6bb11ab3
L
3796case `pwd` in
3797 *\ * | *\ *)
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3799$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3800esac
2232061b 3801
6ffe910a 3802
6ffe910a 3803
6bb11ab3
L
3804macro_version='2.2.7a'
3805macro_revision='1.3134'
6ffe910a
MF
3806
3807
3808
3809
2232061b 3810
6bb11ab3
L
3811
3812
3813
3814
3815
3816
3817
3818
3819ltmain="$ac_aux_dir/ltmain.sh"
3820
3821# Backslashify metacharacters that are still active within
3822# double-quoted strings.
3823sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3824
3825# Same as above, but do not quote variable references.
3826double_quote_subst='s/\(["`\\]\)/\\\1/g'
3827
3828# Sed substitution to delay expansion of an escaped shell variable in a
3829# double_quote_subst'ed string.
3830delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3831
3832# Sed substitution to delay expansion of an escaped single quote.
3833delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3834
3835# Sed substitution to avoid accidental globbing in evaled expressions
3836no_glob_subst='s/\*/\\\*/g'
3837
3838ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3839ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3840ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3841
3842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3843$as_echo_n "checking how to print strings... " >&6; }
3844# Test print first, because it will be a builtin if present.
3845if test "X`print -r -- -n 2>/dev/null`" = X-n && \
3846 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3847 ECHO='print -r --'
3848elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3849 ECHO='printf %s\n'
6ffe910a 3850else
6bb11ab3
L
3851 # Use this function as a fallback that always works.
3852 func_fallback_echo ()
3853 {
3854 eval 'cat <<_LTECHO_EOF
3855$1
3856_LTECHO_EOF'
3857 }
3858 ECHO='func_fallback_echo'
6ffe910a
MF
3859fi
3860
6bb11ab3
L
3861# func_echo_all arg...
3862# Invoke $ECHO with all args, space-separated.
3863func_echo_all ()
3864{
3865 $ECHO ""
3866}
6ffe910a 3867
6bb11ab3
L
3868case "$ECHO" in
3869 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3870$as_echo "printf" >&6; } ;;
3871 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3872$as_echo "print -r" >&6; } ;;
3873 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3874$as_echo "cat" >&6; } ;;
3875esac
6ffe910a
MF
3876
3877
6ffe910a 3878
6bb11ab3
L
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3891$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3892if test "${ac_cv_path_SED+set}" = set; then :
3893 $as_echo_n "(cached) " >&6
3894else
3895 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3896 for ac_i in 1 2 3 4 5 6 7; do
3897 ac_script="$ac_script$as_nl$ac_script"
3898 done
3899 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3900 { ac_script=; unset ac_script;}
3901 if test -z "$SED"; then
3902 ac_path_SED_found=false
3903 # Loop through the user's path and test for each of PROGNAME-LIST
3904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3905for as_dir in $PATH
3906do
3907 IFS=$as_save_IFS
3908 test -z "$as_dir" && as_dir=.
3909 for ac_prog in sed gsed; do
3910 for ac_exec_ext in '' $ac_executable_extensions; do
3911 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3912 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3913# Check for GNU ac_path_SED and select it if it is found.
3914 # Check for GNU $ac_path_SED
3915case `"$ac_path_SED" --version 2>&1` in
3916*GNU*)
3917 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3918*)
3919 ac_count=0
3920 $as_echo_n 0123456789 >"conftest.in"
3921 while :
3922 do
3923 cat "conftest.in" "conftest.in" >"conftest.tmp"
3924 mv "conftest.tmp" "conftest.in"
3925 cp "conftest.in" "conftest.nl"
3926 $as_echo '' >> "conftest.nl"
3927 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3928 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3929 as_fn_arith $ac_count + 1 && ac_count=$as_val
3930 if test $ac_count -gt ${ac_path_SED_max-0}; then
3931 # Best one so far, save it but keep looking for a better one
3932 ac_cv_path_SED="$ac_path_SED"
3933 ac_path_SED_max=$ac_count
3934 fi
3935 # 10*(2^10) chars as input seems more than enough
3936 test $ac_count -gt 10 && break
3937 done
3938 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3939esac
3940
3941 $ac_path_SED_found && break 3
3942 done
3943 done
3944 done
3945IFS=$as_save_IFS
3946 if test -z "$ac_cv_path_SED"; then
3947 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
3948 fi
3949else
3950 ac_cv_path_SED=$SED
3951fi
3952
3953fi
3954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3955$as_echo "$ac_cv_path_SED" >&6; }
3956 SED="$ac_cv_path_SED"
3957 rm -f conftest.sed
3958
3959test -z "$SED" && SED=sed
3960Xsed="$SED -e 1s/^X//"
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3973$as_echo_n "checking for fgrep... " >&6; }
3974if test "${ac_cv_path_FGREP+set}" = set; then :
3975 $as_echo_n "(cached) " >&6
3976else
3977 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3978 then ac_cv_path_FGREP="$GREP -F"
3979 else
3980 if test -z "$FGREP"; then
3981 ac_path_FGREP_found=false
3982 # Loop through the user's path and test for each of PROGNAME-LIST
3983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3984for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3985do
3986 IFS=$as_save_IFS
3987 test -z "$as_dir" && as_dir=.
3988 for ac_prog in fgrep; do
3989 for ac_exec_ext in '' $ac_executable_extensions; do
3990 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3991 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3992# Check for GNU ac_path_FGREP and select it if it is found.
3993 # Check for GNU $ac_path_FGREP
3994case `"$ac_path_FGREP" --version 2>&1` in
3995*GNU*)
3996 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3997*)
3998 ac_count=0
3999 $as_echo_n 0123456789 >"conftest.in"
4000 while :
4001 do
4002 cat "conftest.in" "conftest.in" >"conftest.tmp"
4003 mv "conftest.tmp" "conftest.in"
4004 cp "conftest.in" "conftest.nl"
4005 $as_echo 'FGREP' >> "conftest.nl"
4006 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4007 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4008 as_fn_arith $ac_count + 1 && ac_count=$as_val
4009 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4010 # Best one so far, save it but keep looking for a better one
4011 ac_cv_path_FGREP="$ac_path_FGREP"
4012 ac_path_FGREP_max=$ac_count
4013 fi
4014 # 10*(2^10) chars as input seems more than enough
4015 test $ac_count -gt 10 && break
4016 done
4017 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4018esac
4019
4020 $ac_path_FGREP_found && break 3
4021 done
4022 done
4023 done
4024IFS=$as_save_IFS
4025 if test -z "$ac_cv_path_FGREP"; then
4026 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4027 fi
4028else
4029 ac_cv_path_FGREP=$FGREP
4030fi
4031
4032 fi
4033fi
4034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4035$as_echo "$ac_cv_path_FGREP" >&6; }
4036 FGREP="$ac_cv_path_FGREP"
4037
4038
4039test -z "$GREP" && GREP=grep
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059# Check whether --with-gnu-ld was given.
4060if test "${with_gnu_ld+set}" = set; then :
4061 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4062else
4063 with_gnu_ld=no
4064fi
4065
4066ac_prog=ld
4067if test "$GCC" = yes; then
4068 # Check if gcc -print-prog-name=ld gives a path.
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4070$as_echo_n "checking for ld used by $CC... " >&6; }
4071 case $host in
4072 *-*-mingw*)
4073 # gcc leaves a trailing carriage return which upsets mingw
4074 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4075 *)
4076 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4077 esac
4078 case $ac_prog in
4079 # Accept absolute paths.
4080 [\\/]* | ?:[\\/]*)
4081 re_direlt='/[^/][^/]*/\.\./'
4082 # Canonicalize the pathname of ld
4083 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4084 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4085 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4086 done
4087 test -z "$LD" && LD="$ac_prog"
4088 ;;
4089 "")
4090 # If it fails, then pretend we aren't using GCC.
4091 ac_prog=ld
4092 ;;
4093 *)
4094 # If it is relative, then search for the first ld in PATH.
4095 with_gnu_ld=unknown
4096 ;;
4097 esac
4098elif test "$with_gnu_ld" = yes; then
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4100$as_echo_n "checking for GNU ld... " >&6; }
4101else
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4103$as_echo_n "checking for non-GNU ld... " >&6; }
4104fi
4105if test "${lt_cv_path_LD+set}" = set; then :
4106 $as_echo_n "(cached) " >&6
4107else
4108 if test -z "$LD"; then
4109 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4110 for ac_dir in $PATH; do
4111 IFS="$lt_save_ifs"
4112 test -z "$ac_dir" && ac_dir=.
4113 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4114 lt_cv_path_LD="$ac_dir/$ac_prog"
4115 # Check to see if the program is GNU ld. I'd rather use --version,
4116 # but apparently some variants of GNU ld only accept -v.
4117 # Break only if it was the GNU/non-GNU ld that we prefer.
4118 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4119 *GNU* | *'with BFD'*)
4120 test "$with_gnu_ld" != no && break
4121 ;;
4122 *)
4123 test "$with_gnu_ld" != yes && break
4124 ;;
4125 esac
4126 fi
4127 done
4128 IFS="$lt_save_ifs"
4129else
4130 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4131fi
4132fi
4133
4134LD="$lt_cv_path_LD"
4135if test -n "$LD"; then
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4137$as_echo "$LD" >&6; }
4138else
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4140$as_echo "no" >&6; }
4141fi
4142test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4144$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4145if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4146 $as_echo_n "(cached) " >&6
4147else
4148 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4149case `$LD -v 2>&1 </dev/null` in
4150*GNU* | *'with BFD'*)
4151 lt_cv_prog_gnu_ld=yes
4152 ;;
4153*)
4154 lt_cv_prog_gnu_ld=no
4155 ;;
4156esac
4157fi
4158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4159$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4160with_gnu_ld=$lt_cv_prog_gnu_ld
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4171$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4172if test "${lt_cv_path_NM+set}" = set; then :
4173 $as_echo_n "(cached) " >&6
4174else
4175 if test -n "$NM"; then
4176 # Let the user override the test.
4177 lt_cv_path_NM="$NM"
4178else
4179 lt_nm_to_check="${ac_tool_prefix}nm"
4180 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4181 lt_nm_to_check="$lt_nm_to_check nm"
4182 fi
4183 for lt_tmp_nm in $lt_nm_to_check; do
4184 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4185 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4186 IFS="$lt_save_ifs"
4187 test -z "$ac_dir" && ac_dir=.
4188 tmp_nm="$ac_dir/$lt_tmp_nm"
4189 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4190 # Check to see if the nm accepts a BSD-compat flag.
4191 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4192 # nm: unknown option "B" ignored
4193 # Tru64's nm complains that /dev/null is an invalid object file
4194 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4195 */dev/null* | *'Invalid file or object type'*)
4196 lt_cv_path_NM="$tmp_nm -B"
4197 break
4198 ;;
4199 *)
4200 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4201 */dev/null*)
4202 lt_cv_path_NM="$tmp_nm -p"
4203 break
4204 ;;
4205 *)
4206 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4207 continue # so that we can try to find one that supports BSD flags
4208 ;;
4209 esac
4210 ;;
4211 esac
4212 fi
4213 done
4214 IFS="$lt_save_ifs"
4215 done
4216 : ${lt_cv_path_NM=no}
4217fi
4218fi
4219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4220$as_echo "$lt_cv_path_NM" >&6; }
4221if test "$lt_cv_path_NM" != "no"; then
4222 NM="$lt_cv_path_NM"
4223else
4224 # Didn't find any BSD compatible name lister, look for dumpbin.
4225 if test -n "$DUMPBIN"; then :
4226 # Let the user override the test.
4227 else
4228 if test -n "$ac_tool_prefix"; then
4229 for ac_prog in dumpbin "link -dump"
4230 do
4231 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4232set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6ffe910a
MF
4233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4234$as_echo_n "checking for $ac_word... " >&6; }
6bb11ab3 4235if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6ffe910a
MF
4236 $as_echo_n "(cached) " >&6
4237else
6bb11ab3
L
4238 if test -n "$DUMPBIN"; then
4239 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6ffe910a
MF
4240else
4241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242for as_dir in $PATH
4243do
4244 IFS=$as_save_IFS
4245 test -z "$as_dir" && as_dir=.
4246 for ac_exec_ext in '' $ac_executable_extensions; do
4247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6bb11ab3 4248 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6ffe910a
MF
4249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4250 break 2
4251 fi
4252done
4253 done
4254IFS=$as_save_IFS
4255
4256fi
4257fi
6bb11ab3
L
4258DUMPBIN=$ac_cv_prog_DUMPBIN
4259if test -n "$DUMPBIN"; then
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4261$as_echo "$DUMPBIN" >&6; }
6ffe910a
MF
4262else
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4264$as_echo "no" >&6; }
4265fi
4266
4267
6bb11ab3
L
4268 test -n "$DUMPBIN" && break
4269 done
6ffe910a 4270fi
6bb11ab3
L
4271if test -z "$DUMPBIN"; then
4272 ac_ct_DUMPBIN=$DUMPBIN
4273 for ac_prog in dumpbin "link -dump"
4274do
4275 # Extract the first word of "$ac_prog", so it can be a program name with args.
4276set dummy $ac_prog; ac_word=$2
6ffe910a
MF
4277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4278$as_echo_n "checking for $ac_word... " >&6; }
6bb11ab3 4279if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6ffe910a
MF
4280 $as_echo_n "(cached) " >&6
4281else
6bb11ab3
L
4282 if test -n "$ac_ct_DUMPBIN"; then
4283 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6ffe910a
MF
4284else
4285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4286for as_dir in $PATH
4287do
4288 IFS=$as_save_IFS
4289 test -z "$as_dir" && as_dir=.
4290 for ac_exec_ext in '' $ac_executable_extensions; do
4291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6bb11ab3 4292 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6ffe910a
MF
4293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4294 break 2
4295 fi
4296done
4297 done
4298IFS=$as_save_IFS
4299
4300fi
4301fi
6bb11ab3
L
4302ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4303if test -n "$ac_ct_DUMPBIN"; then
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4305$as_echo "$ac_ct_DUMPBIN" >&6; }
6ffe910a
MF
4306else
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4308$as_echo "no" >&6; }
4309fi
4310
6bb11ab3
L
4311
4312 test -n "$ac_ct_DUMPBIN" && break
4313done
4314
4315 if test "x$ac_ct_DUMPBIN" = x; then
4316 DUMPBIN=":"
6ffe910a
MF
4317 else
4318 case $cross_compiling:$ac_tool_warned in
4319yes:)
4320{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4321$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4322ac_tool_warned=yes ;;
4323esac
6bb11ab3 4324 DUMPBIN=$ac_ct_DUMPBIN
6ffe910a 4325 fi
6ffe910a
MF
4326fi
4327
6bb11ab3
L
4328 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4329 *COFF*)
4330 DUMPBIN="$DUMPBIN -symbols"
4331 ;;
4332 *)
4333 DUMPBIN=:
4334 ;;
4335 esac
4336 fi
6ffe910a 4337
6bb11ab3
L
4338 if test "$DUMPBIN" != ":"; then
4339 NM="$DUMPBIN"
4340 fi
4341fi
4342test -z "$NM" && NM=nm
5f3ef9d0 4343
5f3ef9d0
JB
4344
4345
4346
db2e4d67
MF
4347
4348
6bb11ab3
L
4349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4350$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4351if test "${lt_cv_nm_interface+set}" = set; then :
4352 $as_echo_n "(cached) " >&6
4353else
4354 lt_cv_nm_interface="BSD nm"
4355 echo "int some_variable = 0;" > conftest.$ac_ext
4356 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4357 (eval "$ac_compile" 2>conftest.err)
4358 cat conftest.err >&5
4359 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4360 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4361 cat conftest.err >&5
4362 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4363 cat conftest.out >&5
4364 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4365 lt_cv_nm_interface="MS dumpbin"
4366 fi
4367 rm -f conftest*
4368fi
4369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4370$as_echo "$lt_cv_nm_interface" >&6; }
db2e4d67 4371
6bb11ab3
L
4372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4373$as_echo_n "checking whether ln -s works... " >&6; }
4374LN_S=$as_ln_s
4375if test "$LN_S" = "ln -s"; then
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4377$as_echo "yes" >&6; }
4378else
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4380$as_echo "no, using $LN_S" >&6; }
4381fi
4382
4383# find the maximum length of command line arguments
4384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4385$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4386if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
db2e4d67
MF
4387 $as_echo_n "(cached) " >&6
4388else
6bb11ab3
L
4389 i=0
4390 teststring="ABCD"
db2e4d67 4391
6bb11ab3
L
4392 case $build_os in
4393 msdosdjgpp*)
4394 # On DJGPP, this test can blow up pretty badly due to problems in libc
4395 # (any single argument exceeding 2000 bytes causes a buffer overrun
4396 # during glob expansion). Even if it were fixed, the result of this
4397 # check would be larger than it should be.
4398 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4399 ;;
db2e4d67 4400
6bb11ab3
L
4401 gnu*)
4402 # Under GNU Hurd, this test is not required because there is
4403 # no limit to the length of command line arguments.
4404 # Libtool will interpret -1 as no limit whatsoever
4405 lt_cv_sys_max_cmd_len=-1;
4406 ;;
db2e4d67 4407
6bb11ab3
L
4408 cygwin* | mingw* | cegcc*)
4409 # On Win9x/ME, this test blows up -- it succeeds, but takes
4410 # about 5 minutes as the teststring grows exponentially.
4411 # Worse, since 9x/ME are not pre-emptively multitasking,
4412 # you end up with a "frozen" computer, even though with patience
4413 # the test eventually succeeds (with a max line length of 256k).
4414 # Instead, let's just punt: use the minimum linelength reported by
4415 # all of the supported platforms: 8192 (on NT/2K/XP).
4416 lt_cv_sys_max_cmd_len=8192;
4417 ;;
4418
4419 mint*)
4420 # On MiNT this can take a long time and run out of memory.
4421 lt_cv_sys_max_cmd_len=8192;
4422 ;;
4423
4424 amigaos*)
4425 # On AmigaOS with pdksh, this test takes hours, literally.
4426 # So we just punt and use a minimum line length of 8192.
4427 lt_cv_sys_max_cmd_len=8192;
4428 ;;
4429
4430 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4431 # This has been around since 386BSD, at least. Likely further.
4432 if test -x /sbin/sysctl; then
4433 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4434 elif test -x /usr/sbin/sysctl; then
4435 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4436 else
4437 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
db2e4d67 4438 fi
6bb11ab3
L
4439 # And add a safety zone
4440 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4441 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4442 ;;
db2e4d67 4443
6bb11ab3
L
4444 interix*)
4445 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4446 lt_cv_sys_max_cmd_len=196608
4447 ;;
4448
4449 osf*)
4450 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4451 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4452 # nice to cause kernel panics so lets avoid the loop below.
4453 # First set a reasonable default.
4454 lt_cv_sys_max_cmd_len=16384
4455 #
4456 if test -x /sbin/sysconfig; then
4457 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4458 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4459 esac
4460 fi
4461 ;;
4462 sco3.2v5*)
4463 lt_cv_sys_max_cmd_len=102400
4464 ;;
4465 sysv5* | sco5v6* | sysv4.2uw2*)
4466 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4467 if test -n "$kargmax"; then
4468 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4469 else
4470 lt_cv_sys_max_cmd_len=32768
4471 fi
4472 ;;
4473 *)
4474 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4475 if test -n "$lt_cv_sys_max_cmd_len"; then
4476 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4477 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4478 else
4479 # Make teststring a little bigger before we do anything with it.
4480 # a 1K string should be a reasonable start.
4481 for i in 1 2 3 4 5 6 7 8 ; do
4482 teststring=$teststring$teststring
4483 done
4484 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4485 # If test is not a shell built-in, we'll probably end up computing a
4486 # maximum length that is only half of the actual maximum length, but
4487 # we can't tell.
4488 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4489 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4490 test $i != 17 # 1/2 MB should be enough
4491 do
4492 i=`expr $i + 1`
4493 teststring=$teststring$teststring
4494 done
4495 # Only check the string length outside the loop.
4496 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4497 teststring=
4498 # Add a significant safety factor because C++ compilers can tack on
4499 # massive amounts of additional arguments before passing them to the
4500 # linker. It appears as though 1/2 is a usable value.
4501 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4502 fi
4503 ;;
4504 esac
4505
4506fi
4507
4508if test -n $lt_cv_sys_max_cmd_len ; then
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4510$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
db2e4d67 4511else
6bb11ab3
L
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4513$as_echo "none" >&6; }
db2e4d67 4514fi
6bb11ab3
L
4515max_cmd_len=$lt_cv_sys_max_cmd_len
4516
4517
4518
4519
4520
4521
4522: ${CP="cp -f"}
4523: ${MV="mv -f"}
4524: ${RM="rm -f"}
4525
4526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4527$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4528# Try some XSI features
4529xsi_shell=no
4530( _lt_dummy="a/b/c"
4531 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4532 = c,a/b,, \
4533 && eval 'test $(( 1 + 1 )) -eq 2 \
4534 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4535 && xsi_shell=yes
4536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4537$as_echo "$xsi_shell" >&6; }
db2e4d67 4538
6bb11ab3
L
4539
4540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4541$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4542lt_shell_append=no
4543( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4544 >/dev/null 2>&1 \
4545 && lt_shell_append=yes
4546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4547$as_echo "$lt_shell_append" >&6; }
4548
4549
4550if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4551 lt_unset=unset
4552else
4553 lt_unset=false
db2e4d67 4554fi
db2e4d67 4555
6bb11ab3
L
4556
4557
4558
4559
4560# test EBCDIC or ASCII
4561case `echo X|tr X '\101'` in
4562 A) # ASCII based system
4563 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4564 lt_SP2NL='tr \040 \012'
4565 lt_NL2SP='tr \015\012 \040\040'
4566 ;;
4567 *) # EBCDIC based system
4568 lt_SP2NL='tr \100 \n'
4569 lt_NL2SP='tr \r\n \100\100'
4570 ;;
4571esac
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4582$as_echo_n "checking for $LD option to reload object files... " >&6; }
4583if test "${lt_cv_ld_reload_flag+set}" = set; then :
4584 $as_echo_n "(cached) " >&6
4585else
4586 lt_cv_ld_reload_flag='-r'
db2e4d67 4587fi
6bb11ab3
L
4588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4589$as_echo "$lt_cv_ld_reload_flag" >&6; }
4590reload_flag=$lt_cv_ld_reload_flag
4591case $reload_flag in
4592"" | " "*) ;;
4593*) reload_flag=" $reload_flag" ;;
4594esac
4595reload_cmds='$LD$reload_flag -o $output$reload_objs'
4596case $host_os in
4597 darwin*)
4598 if test "$GCC" = yes; then
4599 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4600 else
4601 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4602 fi
4603 ;;
4604esac
db2e4d67
MF
4605
4606
6bb11ab3
L
4607
4608
4609
4610
4611
4612
4613
4614if test -n "$ac_tool_prefix"; then
4615 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4616set dummy ${ac_tool_prefix}objdump; ac_word=$2
db2e4d67
MF
4617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4618$as_echo_n "checking for $ac_word... " >&6; }
6bb11ab3 4619if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
db2e4d67
MF
4620 $as_echo_n "(cached) " >&6
4621else
6bb11ab3
L
4622 if test -n "$OBJDUMP"; then
4623 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
db2e4d67
MF
4624else
4625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4626for as_dir in $PATH
4627do
4628 IFS=$as_save_IFS
4629 test -z "$as_dir" && as_dir=.
4630 for ac_exec_ext in '' $ac_executable_extensions; do
4631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6bb11ab3 4632 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
db2e4d67
MF
4633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4634 break 2
4635 fi
4636done
4637 done
4638IFS=$as_save_IFS
4639
4640fi
4641fi
6bb11ab3
L
4642OBJDUMP=$ac_cv_prog_OBJDUMP
4643if test -n "$OBJDUMP"; then
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4645$as_echo "$OBJDUMP" >&6; }
db2e4d67
MF
4646else
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4648$as_echo "no" >&6; }
4649fi
4650
4651
6bb11ab3
L
4652fi
4653if test -z "$ac_cv_prog_OBJDUMP"; then
4654 ac_ct_OBJDUMP=$OBJDUMP
4655 # Extract the first word of "objdump", so it can be a program name with args.
4656set dummy objdump; ac_word=$2
4657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4658$as_echo_n "checking for $ac_word... " >&6; }
4659if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4660 $as_echo_n "(cached) " >&6
4661else
4662 if test -n "$ac_ct_OBJDUMP"; then
4663 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4664else
4665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666for as_dir in $PATH
4667do
4668 IFS=$as_save_IFS
4669 test -z "$as_dir" && as_dir=.
4670 for ac_exec_ext in '' $ac_executable_extensions; do
4671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4672 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4674 break 2
4675 fi
db2e4d67 4676done
6bb11ab3
L
4677 done
4678IFS=$as_save_IFS
db2e4d67 4679
6bb11ab3
L
4680fi
4681fi
4682ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4683if test -n "$ac_ct_OBJDUMP"; then
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4685$as_echo "$ac_ct_OBJDUMP" >&6; }
4686else
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4688$as_echo "no" >&6; }
4689fi
4690
4691 if test "x$ac_ct_OBJDUMP" = x; then
4692 OBJDUMP="false"
4693 else
4694 case $cross_compiling:$ac_tool_warned in
4695yes:)
4696{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4697$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4698ac_tool_warned=yes ;;
db2e4d67 4699esac
6bb11ab3
L
4700 OBJDUMP=$ac_ct_OBJDUMP
4701 fi
db2e4d67 4702else
6bb11ab3 4703 OBJDUMP="$ac_cv_prog_OBJDUMP"
db2e4d67
MF
4704fi
4705
6bb11ab3 4706test -z "$OBJDUMP" && OBJDUMP=objdump
db2e4d67 4707
6ffe910a 4708
6ffe910a 4709
6ffe910a
MF
4710
4711
6ffe910a
MF
4712
4713
6ffe910a 4714
6ffe910a 4715
6bb11ab3
L
4716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4717$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4718if test "${lt_cv_deplibs_check_method+set}" = set; then :
4719 $as_echo_n "(cached) " >&6
4720else
4721 lt_cv_file_magic_cmd='$MAGIC_CMD'
4722lt_cv_file_magic_test_file=
4723lt_cv_deplibs_check_method='unknown'
4724# Need to set the preceding variable on all platforms that support
4725# interlibrary dependencies.
4726# 'none' -- dependencies not supported.
4727# `unknown' -- same as none, but documents that we really don't know.
4728# 'pass_all' -- all dependencies passed with no checks.
4729# 'test_compile' -- check by making test program.
4730# 'file_magic [[regex]]' -- check by looking for files in library path
4731# which responds to the $file_magic_cmd with a given extended regex.
4732# If you have `file' or equivalent on your system and you're not sure
4733# whether `pass_all' will *always* work, you probably want this one.
4734
4735case $host_os in
4736aix[4-9]*)
4737 lt_cv_deplibs_check_method=pass_all
4738 ;;
4739
4740beos*)
4741 lt_cv_deplibs_check_method=pass_all
4742 ;;
4743
4744bsdi[45]*)
4745 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4746 lt_cv_file_magic_cmd='/usr/bin/file -L'
4747 lt_cv_file_magic_test_file=/shlib/libc.so
4748 ;;
4749
4750cygwin*)
4751 # func_win32_libid is a shell function defined in ltmain.sh
4752 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4753 lt_cv_file_magic_cmd='func_win32_libid'
4754 ;;
4755
4756mingw* | pw32*)
4757 # Base MSYS/MinGW do not provide the 'file' command needed by
4758 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4759 # unless we find 'file', for example because we are cross-compiling.
4760 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4761 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4762 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4763 lt_cv_file_magic_cmd='func_win32_libid'
4764 else
4765 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4766 lt_cv_file_magic_cmd='$OBJDUMP -f'
4767 fi
4768 ;;
4769
4770cegcc*)
4771 # use the weaker test based on 'objdump'. See mingw*.
4772 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4773 lt_cv_file_magic_cmd='$OBJDUMP -f'
4774 ;;
4775
4776darwin* | rhapsody*)
4777 lt_cv_deplibs_check_method=pass_all
4778 ;;
4779
4780freebsd* | dragonfly*)
4781 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4782 case $host_cpu in
4783 i*86 )
4784 # Not sure whether the presence of OpenBSD here was a mistake.
4785 # Let's accept both of them until this is cleared up.
4786 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4787 lt_cv_file_magic_cmd=/usr/bin/file
4788 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4789 ;;
4790 esac
4791 else
4792 lt_cv_deplibs_check_method=pass_all
4793 fi
4794 ;;
4795
4796gnu*)
4797 lt_cv_deplibs_check_method=pass_all
4798 ;;
4799
4800haiku*)
4801 lt_cv_deplibs_check_method=pass_all
4802 ;;
4803
4804hpux10.20* | hpux11*)
4805 lt_cv_file_magic_cmd=/usr/bin/file
4806 case $host_cpu in
4807 ia64*)
4808 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4809 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4810 ;;
4811 hppa*64*)
4812 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]'
4813 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4814 ;;
4815 *)
4816 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4817 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4818 ;;
4819 esac
4820 ;;
4821
4822interix[3-9]*)
4823 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4824 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4825 ;;
4826
4827irix5* | irix6* | nonstopux*)
4828 case $LD in
4829 *-32|*"-32 ") libmagic=32-bit;;
4830 *-n32|*"-n32 ") libmagic=N32;;
4831 *-64|*"-64 ") libmagic=64-bit;;
4832 *) libmagic=never-match;;
4833 esac
4834 lt_cv_deplibs_check_method=pass_all
4835 ;;
6ffe910a 4836
6bb11ab3
L
4837# This must be Linux ELF.
4838linux* | k*bsd*-gnu | kopensolaris*-gnu)
4839 lt_cv_deplibs_check_method=pass_all
4840 ;;
6ffe910a 4841
6bb11ab3
L
4842netbsd*)
4843 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4844 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4845 else
4846 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4847 fi
4848 ;;
6ffe910a 4849
6bb11ab3
L
4850newos6*)
4851 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4852 lt_cv_file_magic_cmd=/usr/bin/file
4853 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4854 ;;
2b193c4a 4855
6bb11ab3
L
4856*nto* | *qnx*)
4857 lt_cv_deplibs_check_method=pass_all
4858 ;;
2b193c4a 4859
6bb11ab3
L
4860openbsd*)
4861 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4862 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4863 else
4864 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4865 fi
4866 ;;
b7026657 4867
6bb11ab3
L
4868osf3* | osf4* | osf5*)
4869 lt_cv_deplibs_check_method=pass_all
4870 ;;
4871
4872rdos*)
4873 lt_cv_deplibs_check_method=pass_all
4874 ;;
4875
4876solaris*)
4877 lt_cv_deplibs_check_method=pass_all
4878 ;;
4879
4880sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4881 lt_cv_deplibs_check_method=pass_all
4882 ;;
4883
4884sysv4 | sysv4.3*)
4885 case $host_vendor in
4886 motorola)
4887 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]'
4888 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4889 ;;
4890 ncr)
4891 lt_cv_deplibs_check_method=pass_all
4892 ;;
4893 sequent)
4894 lt_cv_file_magic_cmd='/bin/file'
4895 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4896 ;;
4897 sni)
4898 lt_cv_file_magic_cmd='/bin/file'
4899 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4900 lt_cv_file_magic_test_file=/lib/libc.so
4901 ;;
4902 siemens)
4903 lt_cv_deplibs_check_method=pass_all
4904 ;;
4905 pc)
4906 lt_cv_deplibs_check_method=pass_all
4907 ;;
4908 esac
4909 ;;
4910
4911tpf*)
4912 lt_cv_deplibs_check_method=pass_all
4913 ;;
4914esac
20e95c23 4915
b7026657 4916fi
6bb11ab3
L
4917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4918$as_echo "$lt_cv_deplibs_check_method" >&6; }
4919file_magic_cmd=$lt_cv_file_magic_cmd
4920deplibs_check_method=$lt_cv_deplibs_check_method
4921test -z "$deplibs_check_method" && deplibs_check_method=unknown
4922
4923
4924
4925
4926
81ecdfbb 4927
81ecdfbb 4928
6bb11ab3
L
4929
4930
4931
4932
4933
4934if test -n "$ac_tool_prefix"; then
4935 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4936set dummy ${ac_tool_prefix}ar; ac_word=$2
4937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4938$as_echo_n "checking for $ac_word... " >&6; }
4939if test "${ac_cv_prog_AR+set}" = set; then :
4940 $as_echo_n "(cached) " >&6
4941else
4942 if test -n "$AR"; then
4943 ac_cv_prog_AR="$AR" # Let the user override the test.
4944else
4945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4946for as_dir in $PATH
4947do
4948 IFS=$as_save_IFS
4949 test -z "$as_dir" && as_dir=.
4950 for ac_exec_ext in '' $ac_executable_extensions; do
4951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4952 ac_cv_prog_AR="${ac_tool_prefix}ar"
4953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4954 break 2
4955 fi
4956done
4957 done
4958IFS=$as_save_IFS
b7026657
AC
4959
4960fi
6bb11ab3
L
4961fi
4962AR=$ac_cv_prog_AR
4963if test -n "$AR"; then
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4965$as_echo "$AR" >&6; }
4966else
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4968$as_echo "no" >&6; }
4969fi
4970
b7026657 4971
6bb11ab3
L
4972fi
4973if test -z "$ac_cv_prog_AR"; then
4974 ac_ct_AR=$AR
4975 # Extract the first word of "ar", so it can be a program name with args.
4976set dummy ar; ac_word=$2
4977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4978$as_echo_n "checking for $ac_word... " >&6; }
4979if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4980 $as_echo_n "(cached) " >&6
4981else
4982 if test -n "$ac_ct_AR"; then
4983 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4984else
4985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4986for as_dir in $PATH
4987do
4988 IFS=$as_save_IFS
4989 test -z "$as_dir" && as_dir=.
4990 for ac_exec_ext in '' $ac_executable_extensions; do
4991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4992 ac_cv_prog_ac_ct_AR="ar"
4993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4994 break 2
4995 fi
20e95c23 4996done
6bb11ab3
L
4997 done
4998IFS=$as_save_IFS
b7026657 4999
6bb11ab3
L
5000fi
5001fi
5002ac_ct_AR=$ac_cv_prog_ac_ct_AR
5003if test -n "$ac_ct_AR"; then
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5005$as_echo "$ac_ct_AR" >&6; }
5006else
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5008$as_echo "no" >&6; }
5009fi
c906108c 5010
6bb11ab3
L
5011 if test "x$ac_ct_AR" = x; then
5012 AR="false"
5013 else
5014 case $cross_compiling:$ac_tool_warned in
5015yes:)
5016{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5017$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5018ac_tool_warned=yes ;;
5019esac
5020 AR=$ac_ct_AR
5021 fi
5022else
5023 AR="$ac_cv_prog_AR"
81ecdfbb 5024fi
b7026657 5025
6bb11ab3
L
5026test -z "$AR" && AR=ar
5027test -z "$AR_FLAGS" && AR_FLAGS=cru
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039if test -n "$ac_tool_prefix"; then
5040 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5041set dummy ${ac_tool_prefix}strip; ac_word=$2
5042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5043$as_echo_n "checking for $ac_word... " >&6; }
5044if test "${ac_cv_prog_STRIP+set}" = set; then :
5045 $as_echo_n "(cached) " >&6
5046else
5047 if test -n "$STRIP"; then
5048 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5049else
5050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051for as_dir in $PATH
5052do
5053 IFS=$as_save_IFS
5054 test -z "$as_dir" && as_dir=.
5055 for ac_exec_ext in '' $ac_executable_extensions; do
5056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5057 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5059 break 2
5060 fi
81ecdfbb 5061done
6bb11ab3
L
5062 done
5063IFS=$as_save_IFS
5064
5065fi
5066fi
5067STRIP=$ac_cv_prog_STRIP
5068if test -n "$STRIP"; then
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5070$as_echo "$STRIP" >&6; }
5071else
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5073$as_echo "no" >&6; }
5074fi
b7026657
AC
5075
5076
81ecdfbb 5077fi
6bb11ab3
L
5078if test -z "$ac_cv_prog_STRIP"; then
5079 ac_ct_STRIP=$STRIP
5080 # Extract the first word of "strip", so it can be a program name with args.
5081set dummy strip; ac_word=$2
5082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5083$as_echo_n "checking for $ac_word... " >&6; }
5084if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5085 $as_echo_n "(cached) " >&6
5086else
5087 if test -n "$ac_ct_STRIP"; then
5088 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5089else
5090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5091for as_dir in $PATH
5092do
5093 IFS=$as_save_IFS
5094 test -z "$as_dir" && as_dir=.
5095 for ac_exec_ext in '' $ac_executable_extensions; do
5096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5097 ac_cv_prog_ac_ct_STRIP="strip"
5098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5099 break 2
5100 fi
81ecdfbb 5101done
6bb11ab3
L
5102 done
5103IFS=$as_save_IFS
b7026657 5104
6bb11ab3
L
5105fi
5106fi
5107ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5108if test -n "$ac_ct_STRIP"; then
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5110$as_echo "$ac_ct_STRIP" >&6; }
5111else
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5113$as_echo "no" >&6; }
5114fi
b7026657 5115
6bb11ab3
L
5116 if test "x$ac_ct_STRIP" = x; then
5117 STRIP=":"
5118 else
5119 case $cross_compiling:$ac_tool_warned in
5120yes:)
5121{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5122$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5123ac_tool_warned=yes ;;
5124esac
5125 STRIP=$ac_ct_STRIP
5126 fi
5127else
5128 STRIP="$ac_cv_prog_STRIP"
5129fi
5130
5131test -z "$STRIP" && STRIP=:
5132
5133
5134
5135
5136
5137
5138if test -n "$ac_tool_prefix"; then
5139 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5140set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5142$as_echo_n "checking for $ac_word... " >&6; }
5143if test "${ac_cv_prog_RANLIB+set}" = set; then :
5144 $as_echo_n "(cached) " >&6
5145else
5146 if test -n "$RANLIB"; then
5147 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5148else
5149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150for as_dir in $PATH
5151do
5152 IFS=$as_save_IFS
5153 test -z "$as_dir" && as_dir=.
5154 for ac_exec_ext in '' $ac_executable_extensions; do
5155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5156 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5158 break 2
5159 fi
5160done
5161 done
5162IFS=$as_save_IFS
5163
5164fi
5165fi
5166RANLIB=$ac_cv_prog_RANLIB
5167if test -n "$RANLIB"; then
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5169$as_echo "$RANLIB" >&6; }
5170else
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5172$as_echo "no" >&6; }
5173fi
5174
5175
5176fi
5177if test -z "$ac_cv_prog_RANLIB"; then
5178 ac_ct_RANLIB=$RANLIB
5179 # Extract the first word of "ranlib", so it can be a program name with args.
5180set dummy ranlib; ac_word=$2
5181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5182$as_echo_n "checking for $ac_word... " >&6; }
5183if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5184 $as_echo_n "(cached) " >&6
5185else
5186 if test -n "$ac_ct_RANLIB"; then
5187 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5188else
5189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190for as_dir in $PATH
5191do
5192 IFS=$as_save_IFS
5193 test -z "$as_dir" && as_dir=.
5194 for ac_exec_ext in '' $ac_executable_extensions; do
5195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5196 ac_cv_prog_ac_ct_RANLIB="ranlib"
5197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5198 break 2
5199 fi
5200done
5201 done
5202IFS=$as_save_IFS
5203
5204fi
5205fi
5206ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5207if test -n "$ac_ct_RANLIB"; then
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5209$as_echo "$ac_ct_RANLIB" >&6; }
5210else
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5212$as_echo "no" >&6; }
5213fi
5214
5215 if test "x$ac_ct_RANLIB" = x; then
5216 RANLIB=":"
5217 else
5218 case $cross_compiling:$ac_tool_warned in
5219yes:)
5220{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5221$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5222ac_tool_warned=yes ;;
5223esac
5224 RANLIB=$ac_ct_RANLIB
5225 fi
5226else
5227 RANLIB="$ac_cv_prog_RANLIB"
5228fi
5229
5230test -z "$RANLIB" && RANLIB=:
5231
5232
5233
5234
5235
5236
5237# Determine commands to create old-style static archives.
5238old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5239old_postinstall_cmds='chmod 644 $oldlib'
5240old_postuninstall_cmds=
5241
5242if test -n "$RANLIB"; then
5243 case $host_os in
5244 openbsd*)
5245 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5246 ;;
5247 *)
5248 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5249 ;;
5250 esac
5251 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5252fi
5253
5254case $host_os in
5255 darwin*)
5256 lock_old_archive_extraction=yes ;;
5257 *)
5258 lock_old_archive_extraction=no ;;
5259esac
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281for ac_prog in gawk mawk nawk awk
5282do
5283 # Extract the first word of "$ac_prog", so it can be a program name with args.
5284set dummy $ac_prog; ac_word=$2
5285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5286$as_echo_n "checking for $ac_word... " >&6; }
5287if test "${ac_cv_prog_AWK+set}" = set; then :
5288 $as_echo_n "(cached) " >&6
5289else
5290 if test -n "$AWK"; then
5291 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5292else
5293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294for as_dir in $PATH
5295do
5296 IFS=$as_save_IFS
5297 test -z "$as_dir" && as_dir=.
5298 for ac_exec_ext in '' $ac_executable_extensions; do
5299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5300 ac_cv_prog_AWK="$ac_prog"
5301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5302 break 2
5303 fi
5304done
5305 done
5306IFS=$as_save_IFS
5307
5308fi
5309fi
5310AWK=$ac_cv_prog_AWK
5311if test -n "$AWK"; then
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5313$as_echo "$AWK" >&6; }
5314else
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5316$as_echo "no" >&6; }
5317fi
5318
5319
5320 test -n "$AWK" && break
5321done
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341# If no C compiler was specified, use CC.
5342LTCC=${LTCC-"$CC"}
5343
5344# If no C compiler flags were specified, use CFLAGS.
5345LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5346
5347# Allow CC to be a program name with arguments.
5348compiler=$CC
5349
5350
5351# Check for command to grab the raw symbol name followed by C symbol from nm.
5352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5353$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5354if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5355 $as_echo_n "(cached) " >&6
5356else
5357
5358# These are sane defaults that work on at least a few old systems.
5359# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5360
5361# Character class describing NM global symbol codes.
5362symcode='[BCDEGRST]'
5363
5364# Regexp to match symbols that can be accessed directly from C.
5365sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5366
5367# Define system-specific variables.
5368case $host_os in
5369aix*)
5370 symcode='[BCDT]'
5371 ;;
5372cygwin* | mingw* | pw32* | cegcc*)
5373 symcode='[ABCDGISTW]'
5374 ;;
5375hpux*)
5376 if test "$host_cpu" = ia64; then
5377 symcode='[ABCDEGRST]'
5378 fi
5379 ;;
5380irix* | nonstopux*)
5381 symcode='[BCDEGRST]'
5382 ;;
5383osf*)
5384 symcode='[BCDEGQRST]'
5385 ;;
5386solaris*)
5387 symcode='[BDRT]'
5388 ;;
5389sco3.2v5*)
5390 symcode='[DT]'
5391 ;;
5392sysv4.2uw2*)
5393 symcode='[DT]'
5394 ;;
5395sysv5* | sco5v6* | unixware* | OpenUNIX*)
5396 symcode='[ABDT]'
5397 ;;
5398sysv4)
5399 symcode='[DFNSTU]'
5400 ;;
5401esac
5402
5403# If we're using GNU nm, then use its standard symbol codes.
5404case `$NM -V 2>&1` in
5405*GNU* | *'with BFD'*)
5406 symcode='[ABCDGIRSTW]' ;;
5407esac
5408
5409# Transform an extracted symbol line into a proper C declaration.
5410# Some systems (esp. on ia64) link data and code symbols differently,
5411# so use this general approach.
5412lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5413
5414# Transform an extracted symbol line into symbol name and symbol address
5415lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5416lt_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'"
5417
5418# Handle CRLF in mingw tool chain
5419opt_cr=
5420case $build_os in
5421mingw*)
5422 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5423 ;;
5424esac
5425
5426# Try without a prefix underscore, then with it.
5427for ac_symprfx in "" "_"; do
5428
5429 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5430 symxfrm="\\1 $ac_symprfx\\2 \\2"
5431
5432 # Write the raw and C identifiers.
5433 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5434 # Fake it for dumpbin and say T for any non-static function
5435 # and D for any global variable.
5436 # Also find C++ and __fastcall symbols from MSVC++,
5437 # which start with @ or ?.
5438 lt_cv_sys_global_symbol_pipe="$AWK '"\
5439" {last_section=section; section=\$ 3};"\
5440" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5441" \$ 0!~/External *\|/{next};"\
5442" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5443" {if(hide[section]) next};"\
5444" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5445" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5446" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5447" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5448" ' prfx=^$ac_symprfx"
5449 else
5450 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5451 fi
5452
5453 # Check to see that the pipe works correctly.
5454 pipe_works=no
5455
5456 rm -f conftest*
5457 cat > conftest.$ac_ext <<_LT_EOF
5458#ifdef __cplusplus
5459extern "C" {
5460#endif
5461char nm_test_var;
5462void nm_test_func(void);
5463void nm_test_func(void){}
5464#ifdef __cplusplus
5465}
5466#endif
5467int main(){nm_test_var='a';nm_test_func();return(0);}
5468_LT_EOF
5469
5470 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5471 (eval $ac_compile) 2>&5
5472 ac_status=$?
5473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5474 test $ac_status = 0; }; then
5475 # Now try to grab the symbols.
5476 nlist=conftest.nm
5477 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5478 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5479 ac_status=$?
5480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5481 test $ac_status = 0; } && test -s "$nlist"; then
5482 # Try sorting and uniquifying the output.
5483 if sort "$nlist" | uniq > "$nlist"T; then
5484 mv -f "$nlist"T "$nlist"
5485 else
5486 rm -f "$nlist"T
5487 fi
5488
5489 # Make sure that we snagged all the symbols we need.
5490 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5491 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5492 cat <<_LT_EOF > conftest.$ac_ext
5493#ifdef __cplusplus
5494extern "C" {
5495#endif
5496
5497_LT_EOF
5498 # Now generate the symbol file.
5499 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5500
5501 cat <<_LT_EOF >> conftest.$ac_ext
5502
5503/* The mapping between symbol names and symbols. */
5504const struct {
5505 const char *name;
5506 void *address;
5507}
5508lt__PROGRAM__LTX_preloaded_symbols[] =
5509{
5510 { "@PROGRAM@", (void *) 0 },
5511_LT_EOF
5512 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5513 cat <<\_LT_EOF >> conftest.$ac_ext
5514 {0, (void *) 0}
5515};
5516
5517/* This works around a problem in FreeBSD linker */
5518#ifdef FREEBSD_WORKAROUND
5519static const void *lt_preloaded_setup() {
5520 return lt__PROGRAM__LTX_preloaded_symbols;
5521}
5522#endif
5523
5524#ifdef __cplusplus
5525}
5526#endif
5527_LT_EOF
5528 # Now try linking the two files.
5529 mv conftest.$ac_objext conftstm.$ac_objext
5530 lt_save_LIBS="$LIBS"
5531 lt_save_CFLAGS="$CFLAGS"
5532 LIBS="conftstm.$ac_objext"
5533 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5534 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5535 (eval $ac_link) 2>&5
5536 ac_status=$?
5537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5538 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5539 pipe_works=yes
5540 fi
5541 LIBS="$lt_save_LIBS"
5542 CFLAGS="$lt_save_CFLAGS"
5543 else
5544 echo "cannot find nm_test_func in $nlist" >&5
5545 fi
5546 else
5547 echo "cannot find nm_test_var in $nlist" >&5
5548 fi
5549 else
5550 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5551 fi
5552 else
5553 echo "$progname: failed program was:" >&5
5554 cat conftest.$ac_ext >&5
5555 fi
5556 rm -rf conftest* conftst*
5557
5558 # Do not use the global_symbol_pipe unless it works.
5559 if test "$pipe_works" = yes; then
5560 break
5561 else
5562 lt_cv_sys_global_symbol_pipe=
5563 fi
5564done
5565
5566fi
5567
5568if test -z "$lt_cv_sys_global_symbol_pipe"; then
5569 lt_cv_sys_global_symbol_to_cdecl=
5570fi
5571if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5573$as_echo "failed" >&6; }
5574else
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5576$as_echo "ok" >&6; }
5577fi
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600# Check whether --enable-libtool-lock was given.
5601if test "${enable_libtool_lock+set}" = set; then :
5602 enableval=$enable_libtool_lock;
5603fi
5604
5605test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5606
5607# Some flags need to be propagated to the compiler or linker for good
5608# libtool support.
5609case $host in
5610ia64-*-hpux*)
5611 # Find out which ABI we are using.
5612 echo 'int i;' > conftest.$ac_ext
5613 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5614 (eval $ac_compile) 2>&5
5615 ac_status=$?
5616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5617 test $ac_status = 0; }; then
5618 case `/usr/bin/file conftest.$ac_objext` in
5619 *ELF-32*)
5620 HPUX_IA64_MODE="32"
5621 ;;
5622 *ELF-64*)
5623 HPUX_IA64_MODE="64"
5624 ;;
5625 esac
5626 fi
5627 rm -rf conftest*
5628 ;;
5629*-*-irix6*)
5630 # Find out which ABI we are using.
5631 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5632 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5633 (eval $ac_compile) 2>&5
5634 ac_status=$?
5635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5636 test $ac_status = 0; }; then
5637 if test "$lt_cv_prog_gnu_ld" = yes; then
5638 case `/usr/bin/file conftest.$ac_objext` in
5639 *32-bit*)
5640 LD="${LD-ld} -melf32bsmip"
5641 ;;
5642 *N32*)
5643 LD="${LD-ld} -melf32bmipn32"
5644 ;;
5645 *64-bit*)
5646 LD="${LD-ld} -melf64bmip"
5647 ;;
5648 esac
5649 else
5650 case `/usr/bin/file conftest.$ac_objext` in
5651 *32-bit*)
5652 LD="${LD-ld} -32"
5653 ;;
5654 *N32*)
5655 LD="${LD-ld} -n32"
5656 ;;
5657 *64-bit*)
5658 LD="${LD-ld} -64"
5659 ;;
5660 esac
5661 fi
5662 fi
5663 rm -rf conftest*
5664 ;;
5665
bf3d9781 5666x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6bb11ab3
L
5667s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5668 # Find out which ABI we are using.
5669 echo 'int i;' > conftest.$ac_ext
5670 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5671 (eval $ac_compile) 2>&5
5672 ac_status=$?
5673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5674 test $ac_status = 0; }; then
5675 case `/usr/bin/file conftest.o` in
5676 *32-bit*)
5677 case $host in
5678 x86_64-*kfreebsd*-gnu)
5679 LD="${LD-ld} -m elf_i386_fbsd"
5680 ;;
5681 x86_64-*linux*)
5682 case `/usr/bin/file conftest.o` in
5683 *x86-64*)
5684 LD="${LD-ld} -m elf32_x86_64"
5685 ;;
5686 *)
5687 LD="${LD-ld} -m elf_i386"
5688 ;;
5689 esac
5690 ;;
bf3d9781
AM
5691 powerpc64le-*linux*)
5692 LD="${LD-ld} -m elf32lppclinux"
5693 ;;
5694 powerpc64-*linux*)
6bb11ab3
L
5695 LD="${LD-ld} -m elf32ppclinux"
5696 ;;
5697 s390x-*linux*)
5698 LD="${LD-ld} -m elf_s390"
5699 ;;
5700 sparc64-*linux*)
5701 LD="${LD-ld} -m elf32_sparc"
5702 ;;
5703 esac
5704 ;;
5705 *64-bit*)
5706 case $host in
5707 x86_64-*kfreebsd*-gnu)
5708 LD="${LD-ld} -m elf_x86_64_fbsd"
5709 ;;
5710 x86_64-*linux*)
5711 LD="${LD-ld} -m elf_x86_64"
5712 ;;
bf3d9781
AM
5713 powerpcle-*linux*)
5714 LD="${LD-ld} -m elf64lppc"
5715 ;;
5716 powerpc-*linux*)
6bb11ab3
L
5717 LD="${LD-ld} -m elf64ppc"
5718 ;;
5719 s390*-*linux*|s390*-*tpf*)
5720 LD="${LD-ld} -m elf64_s390"
5721 ;;
5722 sparc*-*linux*)
5723 LD="${LD-ld} -m elf64_sparc"
5724 ;;
5725 esac
5726 ;;
5727 esac
5728 fi
5729 rm -rf conftest*
5730 ;;
5731
5732*-*-sco3.2v5*)
5733 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5734 SAVE_CFLAGS="$CFLAGS"
5735 CFLAGS="$CFLAGS -belf"
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5737$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5738if test "${lt_cv_cc_needs_belf+set}" = set; then :
5739 $as_echo_n "(cached) " >&6
5740else
5741 ac_ext=c
5742ac_cpp='$CPP $CPPFLAGS'
5743ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5744ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5745ac_compiler_gnu=$ac_cv_c_compiler_gnu
5746
5747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5748/* end confdefs.h. */
5749
5750int
5751main ()
5752{
5753
5754 ;
5755 return 0;
5756}
5757_ACEOF
5758if ac_fn_c_try_link "$LINENO"; then :
5759 lt_cv_cc_needs_belf=yes
5760else
5761 lt_cv_cc_needs_belf=no
5762fi
5763rm -f core conftest.err conftest.$ac_objext \
5764 conftest$ac_exeext conftest.$ac_ext
5765 ac_ext=c
5766ac_cpp='$CPP $CPPFLAGS'
5767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5769ac_compiler_gnu=$ac_cv_c_compiler_gnu
5770
5771fi
5772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5773$as_echo "$lt_cv_cc_needs_belf" >&6; }
5774 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5775 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5776 CFLAGS="$SAVE_CFLAGS"
5777 fi
5778 ;;
5779sparc*-*solaris*)
5780 # Find out which ABI we are using.
5781 echo 'int i;' > conftest.$ac_ext
5782 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5783 (eval $ac_compile) 2>&5
5784 ac_status=$?
5785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5786 test $ac_status = 0; }; then
5787 case `/usr/bin/file conftest.o` in
5788 *64-bit*)
5789 case $lt_cv_prog_gnu_ld in
5790 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5791 *)
5792 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5793 LD="${LD-ld} -64"
5794 fi
5795 ;;
5796 esac
5797 ;;
5798 esac
5799 fi
5800 rm -rf conftest*
5801 ;;
5802esac
5803
5804need_locks="$enable_libtool_lock"
5805
5806
5807 case $host_os in
5808 rhapsody* | darwin*)
5809 if test -n "$ac_tool_prefix"; then
5810 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5811set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5813$as_echo_n "checking for $ac_word... " >&6; }
5814if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5815 $as_echo_n "(cached) " >&6
5816else
5817 if test -n "$DSYMUTIL"; then
5818 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5819else
5820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821for as_dir in $PATH
5822do
5823 IFS=$as_save_IFS
5824 test -z "$as_dir" && as_dir=.
5825 for ac_exec_ext in '' $ac_executable_extensions; do
5826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5827 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5829 break 2
5830 fi
5831done
5832 done
5833IFS=$as_save_IFS
5834
5835fi
5836fi
5837DSYMUTIL=$ac_cv_prog_DSYMUTIL
5838if test -n "$DSYMUTIL"; then
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5840$as_echo "$DSYMUTIL" >&6; }
5841else
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5843$as_echo "no" >&6; }
5844fi
5845
5846
5847fi
5848if test -z "$ac_cv_prog_DSYMUTIL"; then
5849 ac_ct_DSYMUTIL=$DSYMUTIL
5850 # Extract the first word of "dsymutil", so it can be a program name with args.
5851set dummy dsymutil; ac_word=$2
5852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5853$as_echo_n "checking for $ac_word... " >&6; }
5854if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5855 $as_echo_n "(cached) " >&6
5856else
5857 if test -n "$ac_ct_DSYMUTIL"; then
5858 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5859else
5860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5861for as_dir in $PATH
5862do
5863 IFS=$as_save_IFS
5864 test -z "$as_dir" && as_dir=.
5865 for ac_exec_ext in '' $ac_executable_extensions; do
5866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5867 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5869 break 2
5870 fi
5871done
5872 done
5873IFS=$as_save_IFS
5874
5875fi
5876fi
5877ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5878if test -n "$ac_ct_DSYMUTIL"; then
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5880$as_echo "$ac_ct_DSYMUTIL" >&6; }
5881else
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5883$as_echo "no" >&6; }
5884fi
5885
5886 if test "x$ac_ct_DSYMUTIL" = x; then
5887 DSYMUTIL=":"
5888 else
5889 case $cross_compiling:$ac_tool_warned in
5890yes:)
5891{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5892$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5893ac_tool_warned=yes ;;
5894esac
5895 DSYMUTIL=$ac_ct_DSYMUTIL
5896 fi
5897else
5898 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5899fi
5900
5901 if test -n "$ac_tool_prefix"; then
5902 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5903set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5905$as_echo_n "checking for $ac_word... " >&6; }
5906if test "${ac_cv_prog_NMEDIT+set}" = set; then :
5907 $as_echo_n "(cached) " >&6
5908else
5909 if test -n "$NMEDIT"; then
5910 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5911else
5912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913for as_dir in $PATH
5914do
5915 IFS=$as_save_IFS
5916 test -z "$as_dir" && as_dir=.
5917 for ac_exec_ext in '' $ac_executable_extensions; do
5918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5919 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5921 break 2
5922 fi
5923done
5924 done
5925IFS=$as_save_IFS
5926
5927fi
5928fi
5929NMEDIT=$ac_cv_prog_NMEDIT
5930if test -n "$NMEDIT"; then
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5932$as_echo "$NMEDIT" >&6; }
5933else
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5935$as_echo "no" >&6; }
5936fi
5937
5938
5939fi
5940if test -z "$ac_cv_prog_NMEDIT"; then
5941 ac_ct_NMEDIT=$NMEDIT
5942 # Extract the first word of "nmedit", so it can be a program name with args.
5943set dummy nmedit; ac_word=$2
5944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5945$as_echo_n "checking for $ac_word... " >&6; }
5946if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
5947 $as_echo_n "(cached) " >&6
5948else
5949 if test -n "$ac_ct_NMEDIT"; then
5950 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5951else
5952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5953for as_dir in $PATH
5954do
5955 IFS=$as_save_IFS
5956 test -z "$as_dir" && as_dir=.
5957 for ac_exec_ext in '' $ac_executable_extensions; do
5958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5959 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5961 break 2
5962 fi
5963done
5964 done
5965IFS=$as_save_IFS
5966
5967fi
5968fi
5969ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5970if test -n "$ac_ct_NMEDIT"; then
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5972$as_echo "$ac_ct_NMEDIT" >&6; }
5973else
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5975$as_echo "no" >&6; }
5976fi
5977
5978 if test "x$ac_ct_NMEDIT" = x; then
5979 NMEDIT=":"
5980 else
5981 case $cross_compiling:$ac_tool_warned in
5982yes:)
5983{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5984$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5985ac_tool_warned=yes ;;
5986esac
5987 NMEDIT=$ac_ct_NMEDIT
5988 fi
5989else
5990 NMEDIT="$ac_cv_prog_NMEDIT"
5991fi
5992
5993 if test -n "$ac_tool_prefix"; then
5994 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5995set dummy ${ac_tool_prefix}lipo; ac_word=$2
5996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5997$as_echo_n "checking for $ac_word... " >&6; }
5998if test "${ac_cv_prog_LIPO+set}" = set; then :
5999 $as_echo_n "(cached) " >&6
6000else
6001 if test -n "$LIPO"; then
6002 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6003else
6004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005for as_dir in $PATH
6006do
6007 IFS=$as_save_IFS
6008 test -z "$as_dir" && as_dir=.
6009 for ac_exec_ext in '' $ac_executable_extensions; do
6010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6011 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6013 break 2
6014 fi
6015done
6016 done
6017IFS=$as_save_IFS
6018
6019fi
6020fi
6021LIPO=$ac_cv_prog_LIPO
6022if test -n "$LIPO"; then
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6024$as_echo "$LIPO" >&6; }
6025else
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6027$as_echo "no" >&6; }
6028fi
6029
6030
6031fi
6032if test -z "$ac_cv_prog_LIPO"; then
6033 ac_ct_LIPO=$LIPO
6034 # Extract the first word of "lipo", so it can be a program name with args.
6035set dummy lipo; ac_word=$2
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_ac_ct_LIPO+set}" = set; then :
6039 $as_echo_n "(cached) " >&6
6040else
6041 if test -n "$ac_ct_LIPO"; then
6042 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # 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=.
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
6051 ac_cv_prog_ac_ct_LIPO="lipo"
6052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6053 break 2
6054 fi
6055done
6056 done
6057IFS=$as_save_IFS
6058
6059fi
6060fi
6061ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6062if test -n "$ac_ct_LIPO"; then
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6064$as_echo "$ac_ct_LIPO" >&6; }
6065else
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6067$as_echo "no" >&6; }
6068fi
6069
6070 if test "x$ac_ct_LIPO" = x; then
6071 LIPO=":"
6072 else
6073 case $cross_compiling:$ac_tool_warned in
6074yes:)
6075{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6076$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6077ac_tool_warned=yes ;;
6078esac
6079 LIPO=$ac_ct_LIPO
6080 fi
6081else
6082 LIPO="$ac_cv_prog_LIPO"
6083fi
6084
6085 if test -n "$ac_tool_prefix"; then
6086 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6087set dummy ${ac_tool_prefix}otool; ac_word=$2
6088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6089$as_echo_n "checking for $ac_word... " >&6; }
6090if test "${ac_cv_prog_OTOOL+set}" = set; then :
6091 $as_echo_n "(cached) " >&6
6092else
6093 if test -n "$OTOOL"; then
6094 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6095else
6096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6097for as_dir in $PATH
6098do
6099 IFS=$as_save_IFS
6100 test -z "$as_dir" && as_dir=.
6101 for ac_exec_ext in '' $ac_executable_extensions; do
6102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6103 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6105 break 2
6106 fi
6107done
6108 done
6109IFS=$as_save_IFS
6110
6111fi
6112fi
6113OTOOL=$ac_cv_prog_OTOOL
6114if test -n "$OTOOL"; then
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6116$as_echo "$OTOOL" >&6; }
6117else
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6119$as_echo "no" >&6; }
6120fi
6121
6122
6123fi
6124if test -z "$ac_cv_prog_OTOOL"; then
6125 ac_ct_OTOOL=$OTOOL
6126 # Extract the first word of "otool", so it can be a program name with args.
6127set dummy otool; ac_word=$2
6128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6129$as_echo_n "checking for $ac_word... " >&6; }
6130if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6131 $as_echo_n "(cached) " >&6
6132else
6133 if test -n "$ac_ct_OTOOL"; then
6134 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6135else
6136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6137for as_dir in $PATH
6138do
6139 IFS=$as_save_IFS
6140 test -z "$as_dir" && as_dir=.
6141 for ac_exec_ext in '' $ac_executable_extensions; do
6142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6143 ac_cv_prog_ac_ct_OTOOL="otool"
6144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6145 break 2
6146 fi
6147done
6148 done
6149IFS=$as_save_IFS
6150
6151fi
6152fi
6153ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6154if test -n "$ac_ct_OTOOL"; then
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6156$as_echo "$ac_ct_OTOOL" >&6; }
6157else
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6159$as_echo "no" >&6; }
6160fi
6161
6162 if test "x$ac_ct_OTOOL" = x; then
6163 OTOOL=":"
6164 else
6165 case $cross_compiling:$ac_tool_warned in
6166yes:)
6167{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6168$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6169ac_tool_warned=yes ;;
6170esac
6171 OTOOL=$ac_ct_OTOOL
6172 fi
6173else
6174 OTOOL="$ac_cv_prog_OTOOL"
6175fi
6176
6177 if test -n "$ac_tool_prefix"; then
6178 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6179set dummy ${ac_tool_prefix}otool64; ac_word=$2
6180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6181$as_echo_n "checking for $ac_word... " >&6; }
6182if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6183 $as_echo_n "(cached) " >&6
6184else
6185 if test -n "$OTOOL64"; then
6186 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6187else
6188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189for as_dir in $PATH
6190do
6191 IFS=$as_save_IFS
6192 test -z "$as_dir" && as_dir=.
6193 for ac_exec_ext in '' $ac_executable_extensions; do
6194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6195 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6197 break 2
6198 fi
6199done
6200 done
6201IFS=$as_save_IFS
6202
6203fi
6204fi
6205OTOOL64=$ac_cv_prog_OTOOL64
6206if test -n "$OTOOL64"; then
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6208$as_echo "$OTOOL64" >&6; }
6209else
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6211$as_echo "no" >&6; }
6212fi
6213
6214
6215fi
6216if test -z "$ac_cv_prog_OTOOL64"; then
6217 ac_ct_OTOOL64=$OTOOL64
6218 # Extract the first word of "otool64", so it can be a program name with args.
6219set dummy otool64; ac_word=$2
6220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6221$as_echo_n "checking for $ac_word... " >&6; }
6222if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6223 $as_echo_n "(cached) " >&6
6224else
6225 if test -n "$ac_ct_OTOOL64"; then
6226 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6227else
6228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6229for as_dir in $PATH
6230do
6231 IFS=$as_save_IFS
6232 test -z "$as_dir" && as_dir=.
6233 for ac_exec_ext in '' $ac_executable_extensions; do
6234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6235 ac_cv_prog_ac_ct_OTOOL64="otool64"
6236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6237 break 2
6238 fi
6239done
6240 done
6241IFS=$as_save_IFS
6242
6243fi
6244fi
6245ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6246if test -n "$ac_ct_OTOOL64"; then
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6248$as_echo "$ac_ct_OTOOL64" >&6; }
6249else
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6251$as_echo "no" >&6; }
6252fi
6253
6254 if test "x$ac_ct_OTOOL64" = x; then
6255 OTOOL64=":"
6256 else
6257 case $cross_compiling:$ac_tool_warned in
6258yes:)
6259{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6260$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6261ac_tool_warned=yes ;;
6262esac
6263 OTOOL64=$ac_ct_OTOOL64
6264 fi
6265else
6266 OTOOL64="$ac_cv_prog_OTOOL64"
6267fi
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6296$as_echo_n "checking for -single_module linker flag... " >&6; }
6297if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6298 $as_echo_n "(cached) " >&6
6299else
6300 lt_cv_apple_cc_single_mod=no
6301 if test -z "${LT_MULTI_MODULE}"; then
6302 # By default we will add the -single_module flag. You can override
6303 # by either setting the environment variable LT_MULTI_MODULE
6304 # non-empty at configure time, or by adding -multi_module to the
6305 # link flags.
6306 rm -rf libconftest.dylib*
6307 echo "int foo(void){return 1;}" > conftest.c
6308 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6309-dynamiclib -Wl,-single_module conftest.c" >&5
6310 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6311 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6312 _lt_result=$?
6313 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6314 lt_cv_apple_cc_single_mod=yes
6315 else
6316 cat conftest.err >&5
6317 fi
6318 rm -rf libconftest.dylib*
6319 rm -f conftest.*
6320 fi
6321fi
6322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6323$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6325$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6326if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6327 $as_echo_n "(cached) " >&6
6328else
6329 lt_cv_ld_exported_symbols_list=no
6330 save_LDFLAGS=$LDFLAGS
6331 echo "_main" > conftest.sym
6332 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6334/* end confdefs.h. */
6335
6336int
6337main ()
6338{
6339
6340 ;
6341 return 0;
6342}
6343_ACEOF
6344if ac_fn_c_try_link "$LINENO"; then :
6345 lt_cv_ld_exported_symbols_list=yes
6346else
6347 lt_cv_ld_exported_symbols_list=no
6348fi
6349rm -f core conftest.err conftest.$ac_objext \
6350 conftest$ac_exeext conftest.$ac_ext
6351 LDFLAGS="$save_LDFLAGS"
6352
6353fi
6354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6355$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6357$as_echo_n "checking for -force_load linker flag... " >&6; }
6358if test "${lt_cv_ld_force_load+set}" = set; then :
6359 $as_echo_n "(cached) " >&6
6360else
6361 lt_cv_ld_force_load=no
6362 cat > conftest.c << _LT_EOF
6363int forced_loaded() { return 2;}
6364_LT_EOF
6365 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6366 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6367 echo "$AR cru libconftest.a conftest.o" >&5
6368 $AR cru libconftest.a conftest.o 2>&5
6369 cat > conftest.c << _LT_EOF
6370int main() { return 0;}
6371_LT_EOF
6372 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6373 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6374 _lt_result=$?
6375 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6376 lt_cv_ld_force_load=yes
6377 else
6378 cat conftest.err >&5
6379 fi
6380 rm -f conftest.err libconftest.a conftest conftest.c
6381 rm -rf conftest.dSYM
6382
6383fi
6384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6385$as_echo "$lt_cv_ld_force_load" >&6; }
6386 case $host_os in
6387 rhapsody* | darwin1.[012])
6388 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6389 darwin1.*)
6390 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6391 darwin*) # darwin 5.x on
6392 # if running on 10.5 or later, the deployment target defaults
6393 # to the OS version, if on x86, and 10.4, the deployment
6394 # target defaults to 10.4. Don't you love it?
6395 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6396 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6397 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
fdbf396f 6398 10.[012][,.]*)
6bb11ab3
L
6399 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6400 10.*)
6401 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6402 esac
6403 ;;
6404 esac
6405 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6406 _lt_dar_single_mod='$single_module'
6407 fi
6408 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6409 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6410 else
6411 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6412 fi
6413 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6414 _lt_dsymutil='~$DSYMUTIL $lib || :'
6415 else
6416 _lt_dsymutil=
6417 fi
6418 ;;
6419 esac
6420
6421for ac_header in dlfcn.h
6422do :
6423 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6424"
6425if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6426 cat >>confdefs.h <<_ACEOF
6427#define HAVE_DLFCN_H 1
6428_ACEOF
6429
6430fi
6431
6432done
6433
6434
6435
6436# autoconf.info says this should be called right after AC_INIT.
6437ac_config_headers="$ac_config_headers cconfig.h:config.in"
6438
6439
6440
0cb8d851
MF
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6442$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6443if test "${ac_cv_c_bigendian+set}" = set; then :
6444 $as_echo_n "(cached) " >&6
6445else
6446 ac_cv_c_bigendian=unknown
6447 # See if we're dealing with a universal compiler.
6448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6449/* end confdefs.h. */
6450#ifndef __APPLE_CC__
6451 not a universal capable compiler
6452 #endif
6453 typedef int dummy;
6454
6455_ACEOF
6456if ac_fn_c_try_compile "$LINENO"; then :
6457
6458 # Check for potential -arch flags. It is not universal unless
6459 # there are at least two -arch flags with different values.
6460 ac_arch=
6461 ac_prev=
6462 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6463 if test -n "$ac_prev"; then
6464 case $ac_word in
6465 i?86 | x86_64 | ppc | ppc64)
6466 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6467 ac_arch=$ac_word
6468 else
6469 ac_cv_c_bigendian=universal
6470 break
6471 fi
6472 ;;
6473 esac
6474 ac_prev=
6475 elif test "x$ac_word" = "x-arch"; then
6476 ac_prev=arch
6477 fi
6478 done
6479fi
6480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6481 if test $ac_cv_c_bigendian = unknown; then
6482 # See if sys/param.h defines the BYTE_ORDER macro.
6483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6484/* end confdefs.h. */
6485#include <sys/types.h>
6486 #include <sys/param.h>
6487
6488int
6489main ()
6490{
6491#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6492 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6493 && LITTLE_ENDIAN)
6494 bogus endian macros
6495 #endif
6496
6497 ;
6498 return 0;
6499}
6500_ACEOF
6501if ac_fn_c_try_compile "$LINENO"; then :
6502 # It does; now see whether it defined to BIG_ENDIAN or not.
6503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6504/* end confdefs.h. */
6505#include <sys/types.h>
6506 #include <sys/param.h>
6507
6508int
6509main ()
6510{
6511#if BYTE_ORDER != BIG_ENDIAN
6512 not big endian
6513 #endif
6514
6515 ;
6516 return 0;
6517}
6518_ACEOF
6519if ac_fn_c_try_compile "$LINENO"; then :
6520 ac_cv_c_bigendian=yes
6521else
6522 ac_cv_c_bigendian=no
6523fi
6524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6525fi
6526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6527 fi
6528 if test $ac_cv_c_bigendian = unknown; then
6529 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6531/* end confdefs.h. */
6532#include <limits.h>
6533
6534int
6535main ()
6536{
6537#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6538 bogus endian macros
6539 #endif
6540
6541 ;
6542 return 0;
6543}
6544_ACEOF
6545if ac_fn_c_try_compile "$LINENO"; then :
6546 # It does; now see whether it defined to _BIG_ENDIAN or not.
6547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6548/* end confdefs.h. */
6549#include <limits.h>
6550
6551int
6552main ()
6553{
6554#ifndef _BIG_ENDIAN
6555 not big endian
6556 #endif
6557
6558 ;
6559 return 0;
6560}
6561_ACEOF
6562if ac_fn_c_try_compile "$LINENO"; then :
6563 ac_cv_c_bigendian=yes
6564else
6565 ac_cv_c_bigendian=no
6566fi
6567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6568fi
6569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6570 fi
6571 if test $ac_cv_c_bigendian = unknown; then
6572 # Compile a test program.
6573 if test "$cross_compiling" = yes; then :
6574 # Try to guess by grepping values from an object file.
6575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6576/* end confdefs.h. */
6577short int ascii_mm[] =
6578 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6579 short int ascii_ii[] =
6580 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6581 int use_ascii (int i) {
6582 return ascii_mm[i] + ascii_ii[i];
6583 }
6584 short int ebcdic_ii[] =
6585 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6586 short int ebcdic_mm[] =
6587 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6588 int use_ebcdic (int i) {
6589 return ebcdic_mm[i] + ebcdic_ii[i];
6590 }
6591 extern int foo;
6592
6593int
6594main ()
6595{
6596return use_ascii (foo) == use_ebcdic (foo);
6597 ;
6598 return 0;
6599}
6600_ACEOF
6601if ac_fn_c_try_compile "$LINENO"; then :
6602 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6603 ac_cv_c_bigendian=yes
6604 fi
6605 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6606 if test "$ac_cv_c_bigendian" = unknown; then
6607 ac_cv_c_bigendian=no
6608 else
6609 # finding both strings is unlikely to happen, but who knows?
6610 ac_cv_c_bigendian=unknown
6611 fi
6612 fi
6613fi
6614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6615else
6616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6617/* end confdefs.h. */
6618$ac_includes_default
6619int
6620main ()
6621{
6622
6623 /* Are we little or big endian? From Harbison&Steele. */
6624 union
6625 {
6626 long int l;
6627 char c[sizeof (long int)];
6628 } u;
6629 u.l = 1;
6630 return u.c[sizeof (long int) - 1] == 1;
6631
6632 ;
6633 return 0;
6634}
6635_ACEOF
6636if ac_fn_c_try_run "$LINENO"; then :
6637 ac_cv_c_bigendian=no
6638else
6639 ac_cv_c_bigendian=yes
6640fi
6641rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6642 conftest.$ac_objext conftest.beam conftest.$ac_ext
6643fi
6644
6645 fi
6646fi
6647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6648$as_echo "$ac_cv_c_bigendian" >&6; }
6649 case $ac_cv_c_bigendian in #(
6650 yes)
6651 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6652;; #(
6653 no)
6654 ;; #(
6655 universal)
6656
6657$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6658
6659 ;; #(
6660 *)
6661 as_fn_error "unknown endianness
6662 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6663 esac
6664
6bb11ab3
L
6665
6666
6667
6668# Put a plausible default for CC_FOR_BUILD in Makefile.
6669if test "x$cross_compiling" = "xno"; then
6670 CC_FOR_BUILD='$(CC)'
6671else
6672 CC_FOR_BUILD=gcc
6673fi
6674
6675
6676
6677
6678AR=${AR-ar}
6679
6680if test -n "$ac_tool_prefix"; then
6681 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6682set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6684$as_echo_n "checking for $ac_word... " >&6; }
6685if test "${ac_cv_prog_RANLIB+set}" = set; then :
6686 $as_echo_n "(cached) " >&6
6687else
6688 if test -n "$RANLIB"; then
6689 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6690else
6691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6692for as_dir in $PATH
6693do
6694 IFS=$as_save_IFS
6695 test -z "$as_dir" && as_dir=.
6696 for ac_exec_ext in '' $ac_executable_extensions; do
6697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6698 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6700 break 2
6701 fi
6702done
6703 done
6704IFS=$as_save_IFS
6705
6706fi
6707fi
6708RANLIB=$ac_cv_prog_RANLIB
6709if test -n "$RANLIB"; then
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6711$as_echo "$RANLIB" >&6; }
6712else
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6714$as_echo "no" >&6; }
6715fi
6716
6717
6718fi
6719if test -z "$ac_cv_prog_RANLIB"; then
6720 ac_ct_RANLIB=$RANLIB
6721 # Extract the first word of "ranlib", so it can be a program name with args.
6722set dummy ranlib; ac_word=$2
6723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6724$as_echo_n "checking for $ac_word... " >&6; }
6725if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6726 $as_echo_n "(cached) " >&6
6727else
6728 if test -n "$ac_ct_RANLIB"; then
6729 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6730else
6731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732for as_dir in $PATH
6733do
6734 IFS=$as_save_IFS
6735 test -z "$as_dir" && as_dir=.
6736 for ac_exec_ext in '' $ac_executable_extensions; do
6737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6738 ac_cv_prog_ac_ct_RANLIB="ranlib"
6739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6740 break 2
6741 fi
6742done
6743 done
6744IFS=$as_save_IFS
6745
6746fi
6747fi
6748ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6749if test -n "$ac_ct_RANLIB"; then
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6751$as_echo "$ac_ct_RANLIB" >&6; }
6752else
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6754$as_echo "no" >&6; }
6755fi
6756
6757 if test "x$ac_ct_RANLIB" = x; then
6758 RANLIB=":"
6759 else
6760 case $cross_compiling:$ac_tool_warned in
6761yes:)
6762{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6763$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6764ac_tool_warned=yes ;;
6765esac
6766 RANLIB=$ac_ct_RANLIB
6767 fi
6768else
6769 RANLIB="$ac_cv_prog_RANLIB"
6770fi
6771
6772
6773# Some of the common include files depend on bfd.h, and bfd.h checks
6774# that config.h is included first by testing that the PACKAGE macro
6775# is defined.
6776PACKAGE=sim
6777
6778cat >>confdefs.h <<_ACEOF
6779#define PACKAGE "$PACKAGE"
6780_ACEOF
6781
6782
6783
6784# Dependency checking.
6785ac_config_commands="$ac_config_commands depdir"
6786
6787
6788depcc="$CC" am_compiler_list=
6789
6790am_depcomp=$ac_aux_dir/depcomp
6791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6792$as_echo_n "checking dependency style of $depcc... " >&6; }
6793if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
6794 $as_echo_n "(cached) " >&6
6795else
6796 if test -f "$am_depcomp"; then
6797 # We make a subdir and do the tests there. Otherwise we can end up
6798 # making bogus files that we don't know about and never remove. For
6799 # instance it was reported that on HP-UX the gcc test will end up
6800 # making a dummy file named `D' -- because `-MD' means `put the output
6801 # in D'.
6802 mkdir conftest.dir
6803 # Copy depcomp to subdir because otherwise we won't find it if we're
6804 # using a relative directory.
6805 cp "$am_depcomp" conftest.dir
6806 cd conftest.dir
6807 # We will build objects and dependencies in a subdirectory because
6808 # it helps to detect inapplicable dependency modes. For instance
6809 # both Tru64's cc and ICC support -MD to output dependencies as a
6810 # side effect of compilation, but ICC will put the dependencies in
6811 # the current directory while Tru64 will put them in the object
6812 # directory.
6813 mkdir sub
6814
6815 am_cv_CC_dependencies_compiler_type=none
6816 if test "$am_compiler_list" = ""; then
6817 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6818 fi
6819 for depmode in $am_compiler_list; do
6820 if test $depmode = none; then break; fi
6821
6822 $as_echo "$as_me:$LINENO: trying $depmode" >&5
6823 # Setup a source with many dependencies, because some compilers
6824 # like to wrap large dependency lists on column 80 (with \), and
6825 # we should not choose a depcomp mode which is confused by this.
6826 #
6827 # We need to recreate these files for each test, as the compiler may
6828 # overwrite some of them when testing with obscure command lines.
6829 # This happens at least with the AIX C compiler.
6830 : > sub/conftest.c
6831 for i in 1 2 3 4 5 6; do
6832 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6833 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6834 # Solaris 8's {/usr,}/bin/sh.
6835 touch sub/conftst$i.h
6836 done
6837 echo "include sub/conftest.Po" > confmf
6838
6839 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6840 # mode. It turns out that the SunPro C++ compiler does not properly
6841 # handle `-M -o', and we need to detect this.
6842 depcmd="depmode=$depmode \
6843 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6844 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6845 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
6846 echo "| $depcmd" | sed -e 's/ */ /g' >&5
6847 if env $depcmd > conftest.err 2>&1 &&
6848 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
6849 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
6850 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
6851 # icc doesn't choke on unknown options, it will just issue warnings
6852 # or remarks (even with -Werror). So we grep stderr for any message
6853 # that says an option was ignored or not supported.
6854 # When given -MP, icc 7.0 and 7.1 complain thusly:
6855 # icc: Command line warning: ignoring option '-M'; no argument required
6856 # The diagnosis changed in icc 8.0:
6857 # icc: Command line remark: option '-MP' not supported
6858 if (grep 'ignoring option' conftest.err ||
6859 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6860 am_cv_CC_dependencies_compiler_type=$depmode
6861 $as_echo "$as_me:$LINENO: success" >&5
6862 break
6863 fi
6864 fi
6865 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
6866 sed -e 's/^/| /' < conftest.err >&5
6867 done
6868
6869 cd ..
6870 rm -rf conftest.dir
6871else
6872 am_cv_CC_dependencies_compiler_type=none
6873fi
6874
6875fi
6876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6877$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6878if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
6879then as_fn_error "no usable dependency style found" "$LINENO" 5
6880else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6881
6882fi
6883
6884
6885# Check for the 'make' the user wants to use.
6886for ac_prog in make
6887do
6888 # Extract the first word of "$ac_prog", so it can be a program name with args.
6889set dummy $ac_prog; ac_word=$2
6890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6891$as_echo_n "checking for $ac_word... " >&6; }
6892if test "${ac_cv_prog_MAKE+set}" = set; then :
6893 $as_echo_n "(cached) " >&6
6894else
6895 if test -n "$MAKE"; then
6896 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
6897else
6898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899for as_dir in $PATH
6900do
6901 IFS=$as_save_IFS
6902 test -z "$as_dir" && as_dir=.
6903 for ac_exec_ext in '' $ac_executable_extensions; do
6904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6905 ac_cv_prog_MAKE="$ac_prog"
6906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6907 break 2
6908 fi
6909done
6910 done
6911IFS=$as_save_IFS
6912
6913fi
6914fi
6915MAKE=$ac_cv_prog_MAKE
6916if test -n "$MAKE"; then
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
6918$as_echo "$MAKE" >&6; }
6919else
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6921$as_echo "no" >&6; }
6922fi
6923
6924
6925 test -n "$MAKE" && break
6926done
6927
6928MAKE_IS_GNU=
6929case "`$MAKE --version 2>&1 | sed 1q`" in
6930 *GNU*)
6931 MAKE_IS_GNU=yes
6932 ;;
6933esac
6934 if test "$MAKE_IS_GNU" = yes; then
6935 GMAKE_TRUE=
6936 GMAKE_FALSE='#'
6937else
6938 GMAKE_TRUE='#'
6939 GMAKE_FALSE=
6940fi
6941
6942
6943ALL_LINGUAS=
6944# If we haven't got the data from the intl directory,
6945# assume NLS is disabled.
6946USE_NLS=no
6947LIBINTL=
6948LIBINTL_DEP=
6949INCINTL=
6950XGETTEXT=
6951GMSGFMT=
6952POSUB=
6953
6954if test -f ../../intl/config.intl; then
6955 . ../../intl/config.intl
6956fi
6957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6958$as_echo_n "checking whether NLS is requested... " >&6; }
6959if test x"$USE_NLS" != xyes; then
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6961$as_echo "no" >&6; }
6962else
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6964$as_echo "yes" >&6; }
6965
6966$as_echo "#define ENABLE_NLS 1" >>confdefs.h
6967
6968
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6970$as_echo_n "checking for catalogs to be installed... " >&6; }
6971 # Look for .po and .gmo files in the source directory.
6972 CATALOGS=
6973 XLINGUAS=
6974 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
6975 # If there aren't any .gmo files the shell will give us the
6976 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6977 # weeded out.
6978 case "$cat" in *\**)
6979 continue;;
6980 esac
6981 # The quadruple backslash is collapsed to a double backslash
6982 # by the backticks, then collapsed again by the double quotes,
6983 # leaving us with one backslash in the sed expression (right
6984 # before the dot that mustn't act as a wildcard).
6985 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6986 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
6987 # The user is allowed to set LINGUAS to a list of languages to
6988 # install catalogs for. If it's empty that means "all of them."
6989 if test "x$LINGUAS" = x; then
6990 CATALOGS="$CATALOGS $cat"
6991 XLINGUAS="$XLINGUAS $lang"
6992 else
6993 case "$LINGUAS" in *$lang*)
6994 CATALOGS="$CATALOGS $cat"
6995 XLINGUAS="$XLINGUAS $lang"
6996 ;;
6997 esac
6998 fi
6999 done
7000 LINGUAS="$XLINGUAS"
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
7002$as_echo "$LINGUAS" >&6; }
7003
7004
7005 DATADIRNAME=share
7006
7007 INSTOBJEXT=.mo
7008
7009 GENCAT=gencat
7010
7011 CATOBJEXT=.gmo
7012
7013fi
7014
7015# Check for common headers.
7016# FIXME: Seems to me this can cause problems for i386-windows hosts.
7017# At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
7018for ac_header in stdlib.h string.h strings.h unistd.h time.h
7019do :
7020 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7021ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7022eval as_val=\$$as_ac_Header
7023 if test "x$as_val" = x""yes; then :
7024 cat >>confdefs.h <<_ACEOF
7025#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7026_ACEOF
7027
7028fi
7029
7030done
7031
7032for ac_header in sys/time.h sys/resource.h
7033do :
7034 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7035ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7036eval as_val=\$$as_ac_Header
7037 if test "x$as_val" = x""yes; then :
7038 cat >>confdefs.h <<_ACEOF
7039#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7040_ACEOF
7041
7042fi
7043
7044done
7045
7046for ac_header in fcntl.h fpu_control.h
7047do :
7048 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7049ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7050eval as_val=\$$as_ac_Header
7051 if test "x$as_val" = x""yes; then :
7052 cat >>confdefs.h <<_ACEOF
7053#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7054_ACEOF
7055
7056fi
7057
7058done
7059
7060for ac_header in dlfcn.h errno.h sys/stat.h
7061do :
7062 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7063ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7064eval as_val=\$$as_ac_Header
7065 if test "x$as_val" = x""yes; then :
7066 cat >>confdefs.h <<_ACEOF
7067#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7068_ACEOF
7069
7070fi
7071
7072done
7073
7074for ac_func in getrusage time sigaction __setfpucw
7075do :
7076 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7077ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7078eval as_val=\$$as_ac_var
7079 if test "x$as_val" = x""yes; then :
7080 cat >>confdefs.h <<_ACEOF
7081#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7082_ACEOF
7083
7084fi
7085done
7086
7087
7088# Check for socket libraries
7089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
7090$as_echo_n "checking for bind in -lsocket... " >&6; }
7091if test "${ac_cv_lib_socket_bind+set}" = set; then :
7092 $as_echo_n "(cached) " >&6
7093else
7094 ac_check_lib_save_LIBS=$LIBS
7095LIBS="-lsocket $LIBS"
7096cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7097/* end confdefs.h. */
7098
7099/* Override any GCC internal prototype to avoid an error.
7100 Use char because int might match the return type of a GCC
7101 builtin and then its argument prototype would still apply. */
7102#ifdef __cplusplus
7103extern "C"
7104#endif
7105char bind ();
7106int
7107main ()
7108{
7109return bind ();
7110 ;
7111 return 0;
7112}
7113_ACEOF
7114if ac_fn_c_try_link "$LINENO"; then :
7115 ac_cv_lib_socket_bind=yes
7116else
7117 ac_cv_lib_socket_bind=no
7118fi
7119rm -f core conftest.err conftest.$ac_objext \
7120 conftest$ac_exeext conftest.$ac_ext
7121LIBS=$ac_check_lib_save_LIBS
7122fi
7123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
7124$as_echo "$ac_cv_lib_socket_bind" >&6; }
7125if test "x$ac_cv_lib_socket_bind" = x""yes; then :
7126 cat >>confdefs.h <<_ACEOF
7127#define HAVE_LIBSOCKET 1
7128_ACEOF
7129
7130 LIBS="-lsocket $LIBS"
7131
7132fi
7133
7134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7135$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7136if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
7137 $as_echo_n "(cached) " >&6
7138else
7139 ac_check_lib_save_LIBS=$LIBS
7140LIBS="-lnsl $LIBS"
7141cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7142/* end confdefs.h. */
7143
7144/* Override any GCC internal prototype to avoid an error.
7145 Use char because int might match the return type of a GCC
7146 builtin and then its argument prototype would still apply. */
7147#ifdef __cplusplus
7148extern "C"
7149#endif
7150char gethostbyname ();
7151int
7152main ()
7153{
7154return gethostbyname ();
7155 ;
7156 return 0;
7157}
7158_ACEOF
7159if ac_fn_c_try_link "$LINENO"; then :
7160 ac_cv_lib_nsl_gethostbyname=yes
7161else
7162 ac_cv_lib_nsl_gethostbyname=no
7163fi
7164rm -f core conftest.err conftest.$ac_objext \
7165 conftest$ac_exeext conftest.$ac_ext
7166LIBS=$ac_check_lib_save_LIBS
7167fi
7168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7169$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7170if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
7171 cat >>confdefs.h <<_ACEOF
7172#define HAVE_LIBNSL 1
7173_ACEOF
7174
7175 LIBS="-lnsl $LIBS"
7176
7177fi
7178
7179
7180# BFD conditionally uses zlib, so we must link it in if libbfd does, by
7181# using the same condition.
7182
aadc9410 7183 # Use the system's zlib library.
7fed4b0b
L
7184 zlibdir="-L\$(top_builddir)/../zlib"
7185 zlibinc="-I\$(top_srcdir)/../zlib"
6bb11ab3 7186
aadc9410
MF
7187# Check whether --with-system-zlib was given.
7188if test "${with_system_zlib+set}" = set; then :
0ceaf1ec
L
7189 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
7190 zlibdir=
7191 zlibinc=
7192 fi
6bb11ab3 7193
6bb11ab3 7194fi
6bb11ab3 7195
6bb11ab3 7196
6bb11ab3 7197
6bb11ab3
L
7198
7199
7200# BFD uses libdl when when plugins enabled.
7201
faa743bb
RM
7202 maybe_plugins=no
7203 for ac_header in dlfcn.h
7204do :
7205 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7206"
7207if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7208 cat >>confdefs.h <<_ACEOF
7209#define HAVE_DLFCN_H 1
7210_ACEOF
7211 maybe_plugins=yes
7212fi
7213
7214done
7215
7216 for ac_header in windows.h
7217do :
7218 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
7219"
7220if test "x$ac_cv_header_windows_h" = x""yes; then :
7221 cat >>confdefs.h <<_ACEOF
7222#define HAVE_WINDOWS_H 1
7223_ACEOF
7224 maybe_plugins=yes
7225fi
7226
7227done
7228
7229
7230 # Check whether --enable-plugins was given.
6bb11ab3
L
7231if test "${enable_plugins+set}" = set; then :
7232 enableval=$enable_plugins; case "${enableval}" in
faa743bb
RM
7233 no) plugins=no ;;
7234 *) plugins=yes
7235 if test "$maybe_plugins" != "yes" ; then
7236 as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
7237 fi ;;
7238 esac
6bb11ab3 7239else
faa743bb
RM
7240 plugins=$maybe_plugins
7241
6bb11ab3
L
7242fi
7243
2974be62
AM
7244 if test "$plugins" = "yes"; then
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
7246$as_echo_n "checking for library containing dlopen... " >&6; }
7247if test "${ac_cv_search_dlopen+set}" = set; then :
7248 $as_echo_n "(cached) " >&6
7249else
7250 ac_func_search_save_LIBS=$LIBS
7251cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7252/* end confdefs.h. */
7253
7254/* Override any GCC internal prototype to avoid an error.
7255 Use char because int might match the return type of a GCC
7256 builtin and then its argument prototype would still apply. */
7257#ifdef __cplusplus
7258extern "C"
7259#endif
7260char dlopen ();
7261int
7262main ()
7263{
7264return dlopen ();
7265 ;
7266 return 0;
7267}
7268_ACEOF
7269for ac_lib in '' dl; do
7270 if test -z "$ac_lib"; then
7271 ac_res="none required"
7272 else
7273 ac_res=-l$ac_lib
7274 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7275 fi
7276 if ac_fn_c_try_link "$LINENO"; then :
7277 ac_cv_search_dlopen=$ac_res
7278fi
7279rm -f core conftest.err conftest.$ac_objext \
7280 conftest$ac_exeext
7281 if test "${ac_cv_search_dlopen+set}" = set; then :
7282 break
7283fi
7284done
7285if test "${ac_cv_search_dlopen+set}" = set; then :
7286
7287else
7288 ac_cv_search_dlopen=no
7289fi
7290rm conftest.$ac_ext
7291LIBS=$ac_func_search_save_LIBS
7292fi
7293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
7294$as_echo "$ac_cv_search_dlopen" >&6; }
7295ac_res=$ac_cv_search_dlopen
7296if test "$ac_res" != no; then :
7297 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7298
7299fi
7300
7301 fi
6bb11ab3
L
7302
7303 if test "$plugins" = yes; then
7304 PLUGINS_TRUE=
7305 PLUGINS_FALSE='#'
7306else
7307 PLUGINS_TRUE='#'
7308 PLUGINS_FALSE=
7309fi
7310
7311
7312
7313
7314
7315# Set options
7316enable_dlopen=yes
7317
7318
7319
7320
7321 enable_win32_dll=no
7322
7323
7324 # Check whether --enable-shared was given.
7325if test "${enable_shared+set}" = set; then :
7326 enableval=$enable_shared; p=${PACKAGE-default}
7327 case $enableval in
7328 yes) enable_shared=yes ;;
7329 no) enable_shared=no ;;
7330 *)
7331 enable_shared=no
7332 # Look at the argument we got. We use all the common list separators.
7333 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7334 for pkg in $enableval; do
7335 IFS="$lt_save_ifs"
7336 if test "X$pkg" = "X$p"; then
7337 enable_shared=yes
7338 fi
7339 done
7340 IFS="$lt_save_ifs"
7341 ;;
7342 esac
7343else
7344 enable_shared=yes
7345fi
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355 # Check whether --enable-static was given.
7356if test "${enable_static+set}" = set; then :
7357 enableval=$enable_static; p=${PACKAGE-default}
7358 case $enableval in
7359 yes) enable_static=yes ;;
7360 no) enable_static=no ;;
7361 *)
7362 enable_static=no
7363 # Look at the argument we got. We use all the common list separators.
7364 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7365 for pkg in $enableval; do
7366 IFS="$lt_save_ifs"
7367 if test "X$pkg" = "X$p"; then
7368 enable_static=yes
7369 fi
7370 done
7371 IFS="$lt_save_ifs"
7372 ;;
7373 esac
7374else
7375 enable_static=yes
7376fi
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387# Check whether --with-pic was given.
7388if test "${with_pic+set}" = set; then :
7389 withval=$with_pic; pic_mode="$withval"
7390else
7391 pic_mode=default
7392fi
7393
7394
7395test -z "$pic_mode" && pic_mode=default
7396
7397
7398
7399
7400
7401
7402
7403 # Check whether --enable-fast-install was given.
7404if test "${enable_fast_install+set}" = set; then :
7405 enableval=$enable_fast_install; p=${PACKAGE-default}
7406 case $enableval in
7407 yes) enable_fast_install=yes ;;
7408 no) enable_fast_install=no ;;
7409 *)
7410 enable_fast_install=no
7411 # Look at the argument we got. We use all the common list separators.
7412 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7413 for pkg in $enableval; do
7414 IFS="$lt_save_ifs"
7415 if test "X$pkg" = "X$p"; then
7416 enable_fast_install=yes
7417 fi
7418 done
7419 IFS="$lt_save_ifs"
7420 ;;
7421 esac
7422else
7423 enable_fast_install=yes
7424fi
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436# This can be used to rebuild libtool when needed
7437LIBTOOL_DEPS="$ltmain"
7438
7439# Always use our own libtool.
7440LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467test -z "$LN_S" && LN_S="ln -s"
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482if test -n "${ZSH_VERSION+set}" ; then
7483 setopt NO_GLOB_SUBST
7484fi
7485
7486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7487$as_echo_n "checking for objdir... " >&6; }
7488if test "${lt_cv_objdir+set}" = set; then :
7489 $as_echo_n "(cached) " >&6
7490else
7491 rm -f .libs 2>/dev/null
7492mkdir .libs 2>/dev/null
7493if test -d .libs; then
7494 lt_cv_objdir=.libs
7495else
7496 # MS-DOS does not allow filenames that begin with a dot.
7497 lt_cv_objdir=_libs
7498fi
7499rmdir .libs 2>/dev/null
7500fi
7501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7502$as_echo "$lt_cv_objdir" >&6; }
7503objdir=$lt_cv_objdir
7504
7505
7506
7507
7508
7509cat >>confdefs.h <<_ACEOF
7510#define LT_OBJDIR "$lt_cv_objdir/"
7511_ACEOF
7512
7513
7514
7515
7516case $host_os in
7517aix3*)
7518 # AIX sometimes has problems with the GCC collect2 program. For some
7519 # reason, if we set the COLLECT_NAMES environment variable, the problems
7520 # vanish in a puff of smoke.
7521 if test "X${COLLECT_NAMES+set}" != Xset; then
7522 COLLECT_NAMES=
7523 export COLLECT_NAMES
7524 fi
7525 ;;
7526esac
7527
7528# Global variables:
7529ofile=libtool
7530can_build_shared=yes
7531
7532# All known linkers require a `.a' archive for static linking (except MSVC,
7533# which needs '.lib').
7534libext=a
7535
7536with_gnu_ld="$lt_cv_prog_gnu_ld"
7537
7538old_CC="$CC"
7539old_CFLAGS="$CFLAGS"
7540
7541# Set sane defaults for various variables
7542test -z "$CC" && CC=cc
7543test -z "$LTCC" && LTCC=$CC
7544test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7545test -z "$LD" && LD=ld
7546test -z "$ac_objext" && ac_objext=o
7547
7548for cc_temp in $compiler""; do
7549 case $cc_temp in
7550 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7551 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7552 \-*) ;;
7553 *) break;;
7554 esac
7555done
7556cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7557
7558
7559# Only perform the check for file, if the check method requires it
7560test -z "$MAGIC_CMD" && MAGIC_CMD=file
7561case $deplibs_check_method in
7562file_magic*)
7563 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7565$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7566if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7567 $as_echo_n "(cached) " >&6
7568else
7569 case $MAGIC_CMD in
7570[\\/*] | ?:[\\/]*)
7571 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7572 ;;
7573*)
7574 lt_save_MAGIC_CMD="$MAGIC_CMD"
7575 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7576 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7577 for ac_dir in $ac_dummy; do
7578 IFS="$lt_save_ifs"
7579 test -z "$ac_dir" && ac_dir=.
7580 if test -f $ac_dir/${ac_tool_prefix}file; then
7581 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7582 if test -n "$file_magic_test_file"; then
7583 case $deplibs_check_method in
7584 "file_magic "*)
7585 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7586 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7587 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7588 $EGREP "$file_magic_regex" > /dev/null; then
7589 :
7590 else
7591 cat <<_LT_EOF 1>&2
7592
7593*** Warning: the command libtool uses to detect shared libraries,
7594*** $file_magic_cmd, produces output that libtool cannot recognize.
7595*** The result is that libtool may fail to recognize shared libraries
7596*** as such. This will affect the creation of libtool libraries that
7597*** depend on shared libraries, but programs linked with such libtool
7598*** libraries will work regardless of this problem. Nevertheless, you
7599*** may want to report the problem to your system manager and/or to
7600*** bug-libtool@gnu.org
7601
7602_LT_EOF
7603 fi ;;
7604 esac
7605 fi
7606 break
7607 fi
7608 done
7609 IFS="$lt_save_ifs"
7610 MAGIC_CMD="$lt_save_MAGIC_CMD"
7611 ;;
7612esac
7613fi
7614
7615MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7616if test -n "$MAGIC_CMD"; then
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7618$as_echo "$MAGIC_CMD" >&6; }
7619else
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7621$as_echo "no" >&6; }
7622fi
7623
7624
7625
7626
7627
7628if test -z "$lt_cv_path_MAGIC_CMD"; then
7629 if test -n "$ac_tool_prefix"; then
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7631$as_echo_n "checking for file... " >&6; }
7632if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7633 $as_echo_n "(cached) " >&6
7634else
7635 case $MAGIC_CMD in
7636[\\/*] | ?:[\\/]*)
7637 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7638 ;;
7639*)
7640 lt_save_MAGIC_CMD="$MAGIC_CMD"
7641 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7642 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7643 for ac_dir in $ac_dummy; do
7644 IFS="$lt_save_ifs"
7645 test -z "$ac_dir" && ac_dir=.
7646 if test -f $ac_dir/file; then
7647 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7648 if test -n "$file_magic_test_file"; then
7649 case $deplibs_check_method in
7650 "file_magic "*)
7651 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7652 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7653 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7654 $EGREP "$file_magic_regex" > /dev/null; then
7655 :
7656 else
7657 cat <<_LT_EOF 1>&2
7658
7659*** Warning: the command libtool uses to detect shared libraries,
7660*** $file_magic_cmd, produces output that libtool cannot recognize.
7661*** The result is that libtool may fail to recognize shared libraries
7662*** as such. This will affect the creation of libtool libraries that
7663*** depend on shared libraries, but programs linked with such libtool
7664*** libraries will work regardless of this problem. Nevertheless, you
7665*** may want to report the problem to your system manager and/or to
7666*** bug-libtool@gnu.org
7667
7668_LT_EOF
7669 fi ;;
7670 esac
7671 fi
7672 break
7673 fi
7674 done
7675 IFS="$lt_save_ifs"
7676 MAGIC_CMD="$lt_save_MAGIC_CMD"
7677 ;;
7678esac
7679fi
7680
7681MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7682if test -n "$MAGIC_CMD"; then
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7684$as_echo "$MAGIC_CMD" >&6; }
7685else
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7687$as_echo "no" >&6; }
7688fi
7689
7690
7691 else
7692 MAGIC_CMD=:
7693 fi
7694fi
7695
7696 fi
7697 ;;
7698esac
7699
7700# Use C for the default configuration in the libtool script
7701
7702lt_save_CC="$CC"
7703ac_ext=c
7704ac_cpp='$CPP $CPPFLAGS'
7705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7707ac_compiler_gnu=$ac_cv_c_compiler_gnu
7708
7709
7710# Source file extension for C test sources.
7711ac_ext=c
7712
7713# Object file extension for compiled C test sources.
7714objext=o
7715objext=$objext
7716
7717# Code to be used in simple compile tests
7718lt_simple_compile_test_code="int some_variable = 0;"
7719
7720# Code to be used in simple link tests
7721lt_simple_link_test_code='int main(){return(0);}'
7722
7723
7724
7725
7726
7727
7728
7729# If no C compiler was specified, use CC.
7730LTCC=${LTCC-"$CC"}
7731
7732# If no C compiler flags were specified, use CFLAGS.
7733LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7734
7735# Allow CC to be a program name with arguments.
7736compiler=$CC
7737
7738# Save the default compiler, since it gets overwritten when the other
7739# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7740compiler_DEFAULT=$CC
7741
7742# save warnings/boilerplate of simple test code
7743ac_outfile=conftest.$ac_objext
7744echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7745eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7746_lt_compiler_boilerplate=`cat conftest.err`
7747$RM conftest*
7748
7749ac_outfile=conftest.$ac_objext
7750echo "$lt_simple_link_test_code" >conftest.$ac_ext
7751eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7752_lt_linker_boilerplate=`cat conftest.err`
7753$RM -r conftest*
7754
7755
7756## CAVEAT EMPTOR:
7757## There is no encapsulation within the following macros, do not change
7758## the running order or otherwise move them around unless you know exactly
7759## what you are doing...
7760if test -n "$compiler"; then
7761
7762lt_prog_compiler_no_builtin_flag=
7763
7764if test "$GCC" = yes; then
7765 case $cc_basename in
7766 nvcc*)
7767 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7768 *)
7769 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7770 esac
7771
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7773$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7774if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7775 $as_echo_n "(cached) " >&6
7776else
7777 lt_cv_prog_compiler_rtti_exceptions=no
7778 ac_outfile=conftest.$ac_objext
7779 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7780 lt_compiler_flag="-fno-rtti -fno-exceptions"
7781 # Insert the option either (1) after the last *FLAGS variable, or
7782 # (2) before a word containing "conftest.", or (3) at the end.
7783 # Note that $ac_compile itself does not contain backslashes and begins
7784 # with a dollar sign (not a hyphen), so the echo should work correctly.
7785 # The option is referenced via a variable to avoid confusing sed.
7786 lt_compile=`echo "$ac_compile" | $SED \
7787 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7788 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7789 -e 's:$: $lt_compiler_flag:'`
7790 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7791 (eval "$lt_compile" 2>conftest.err)
7792 ac_status=$?
7793 cat conftest.err >&5
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 if (exit $ac_status) && test -s "$ac_outfile"; then
7796 # The compiler can only warn and ignore the option if not recognized
7797 # So say no if there are warnings other than the usual output.
7798 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7799 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7800 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7801 lt_cv_prog_compiler_rtti_exceptions=yes
7802 fi
7803 fi
7804 $RM conftest*
7805
7806fi
7807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7808$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7809
7810if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7811 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7812else
7813 :
7814fi
7815
7816fi
7817
7818
7819
7820
7821
7822
7823 lt_prog_compiler_wl=
7824lt_prog_compiler_pic=
7825lt_prog_compiler_static=
7826
7827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7828$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7829
7830 if test "$GCC" = yes; then
7831 lt_prog_compiler_wl='-Wl,'
7832 lt_prog_compiler_static='-static'
7833
7834 case $host_os in
7835 aix*)
7836 # All AIX code is PIC.
7837 if test "$host_cpu" = ia64; then
7838 # AIX 5 now supports IA64 processor
7839 lt_prog_compiler_static='-Bstatic'
7840 fi
7841 lt_prog_compiler_pic='-fPIC'
7842 ;;
7843
7844 amigaos*)
7845 case $host_cpu in
7846 powerpc)
7847 # see comment about AmigaOS4 .so support
7848 lt_prog_compiler_pic='-fPIC'
7849 ;;
7850 m68k)
7851 # FIXME: we need at least 68020 code to build shared libraries, but
7852 # adding the `-m68020' flag to GCC prevents building anything better,
7853 # like `-m68040'.
7854 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7855 ;;
7856 esac
7857 ;;
7858
7859 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7860 # PIC is the default for these OSes.
7861 ;;
7862
7863 mingw* | cygwin* | pw32* | os2* | cegcc*)
7864 # This hack is so that the source file can tell whether it is being
7865 # built for inclusion in a dll (and should export symbols for example).
7866 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7867 # (--disable-auto-import) libraries
7868 lt_prog_compiler_pic='-DDLL_EXPORT'
7869 ;;
7870
7871 darwin* | rhapsody*)
7872 # PIC is the default on this platform
7873 # Common symbols not allowed in MH_DYLIB files
7874 lt_prog_compiler_pic='-fno-common'
7875 ;;
7876
7877 haiku*)
7878 # PIC is the default for Haiku.
7879 # The "-static" flag exists, but is broken.
7880 lt_prog_compiler_static=
7881 ;;
7882
7883 hpux*)
7884 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7885 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7886 # sets the default TLS model and affects inlining.
7887 case $host_cpu in
7888 hppa*64*)
7889 # +Z the default
7890 ;;
7891 *)
7892 lt_prog_compiler_pic='-fPIC'
7893 ;;
7894 esac
7895 ;;
7896
7897 interix[3-9]*)
7898 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7899 # Instead, we relocate shared libraries at runtime.
7900 ;;
7901
7902 msdosdjgpp*)
7903 # Just because we use GCC doesn't mean we suddenly get shared libraries
7904 # on systems that don't support them.
7905 lt_prog_compiler_can_build_shared=no
7906 enable_shared=no
7907 ;;
7908
7909 *nto* | *qnx*)
7910 # QNX uses GNU C++, but need to define -shared option too, otherwise
7911 # it will coredump.
7912 lt_prog_compiler_pic='-fPIC -shared'
7913 ;;
7914
7915 sysv4*MP*)
7916 if test -d /usr/nec; then
7917 lt_prog_compiler_pic=-Kconform_pic
7918 fi
7919 ;;
7920
7921 *)
7922 lt_prog_compiler_pic='-fPIC'
7923 ;;
7924 esac
7925
7926 case $cc_basename in
7927 nvcc*) # Cuda Compiler Driver 2.2
7928 lt_prog_compiler_wl='-Xlinker '
7929 lt_prog_compiler_pic='-Xcompiler -fPIC'
7930 ;;
7931 esac
7932 else
7933 # PORTME Check for flag to pass linker flags through the system compiler.
7934 case $host_os in
7935 aix*)
7936 lt_prog_compiler_wl='-Wl,'
7937 if test "$host_cpu" = ia64; then
7938 # AIX 5 now supports IA64 processor
7939 lt_prog_compiler_static='-Bstatic'
7940 else
7941 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7942 fi
7943 ;;
7944
7945 mingw* | cygwin* | pw32* | os2* | cegcc*)
7946 # This hack is so that the source file can tell whether it is being
7947 # built for inclusion in a dll (and should export symbols for example).
7948 lt_prog_compiler_pic='-DDLL_EXPORT'
7949 ;;
7950
7951 hpux9* | hpux10* | hpux11*)
7952 lt_prog_compiler_wl='-Wl,'
7953 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7954 # not for PA HP-UX.
7955 case $host_cpu in
7956 hppa*64*|ia64*)
7957 # +Z the default
7958 ;;
7959 *)
7960 lt_prog_compiler_pic='+Z'
7961 ;;
7962 esac
7963 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7964 lt_prog_compiler_static='${wl}-a ${wl}archive'
7965 ;;
7966
7967 irix5* | irix6* | nonstopux*)
7968 lt_prog_compiler_wl='-Wl,'
7969 # PIC (with -KPIC) is the default.
7970 lt_prog_compiler_static='-non_shared'
7971 ;;
7972
7973 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7974 case $cc_basename in
7975 # old Intel for x86_64 which still supported -KPIC.
7976 ecc*)
7977 lt_prog_compiler_wl='-Wl,'
7978 lt_prog_compiler_pic='-KPIC'
7979 lt_prog_compiler_static='-static'
7980 ;;
7981 # icc used to be incompatible with GCC.
7982 # ICC 10 doesn't accept -KPIC any more.
7983 icc* | ifort*)
7984 lt_prog_compiler_wl='-Wl,'
7985 lt_prog_compiler_pic='-fPIC'
7986 lt_prog_compiler_static='-static'
7987 ;;
7988 # Lahey Fortran 8.1.
7989 lf95*)
7990 lt_prog_compiler_wl='-Wl,'
7991 lt_prog_compiler_pic='--shared'
7992 lt_prog_compiler_static='--static'
7993 ;;
7994 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7995 # Portland Group compilers (*not* the Pentium gcc compiler,
7996 # which looks to be a dead project)
7997 lt_prog_compiler_wl='-Wl,'
7998 lt_prog_compiler_pic='-fpic'
7999 lt_prog_compiler_static='-Bstatic'
8000 ;;
8001 ccc*)
8002 lt_prog_compiler_wl='-Wl,'
8003 # All Alpha code is PIC.
8004 lt_prog_compiler_static='-non_shared'
8005 ;;
8006 xl* | bgxl* | bgf* | mpixl*)
8007 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8008 lt_prog_compiler_wl='-Wl,'
8009 lt_prog_compiler_pic='-qpic'
8010 lt_prog_compiler_static='-qstaticlink'
8011 ;;
8012 *)
8013 case `$CC -V 2>&1 | sed 5q` in
8014 *Sun\ F* | *Sun*Fortran*)
8015 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8016 lt_prog_compiler_pic='-KPIC'
8017 lt_prog_compiler_static='-Bstatic'
8018 lt_prog_compiler_wl=''
8019 ;;
8020 *Sun\ C*)
8021 # Sun C 5.9
8022 lt_prog_compiler_pic='-KPIC'
8023 lt_prog_compiler_static='-Bstatic'
8024 lt_prog_compiler_wl='-Wl,'
8025 ;;
8026 esac
8027 ;;
8028 esac
8029 ;;
8030
8031 newsos6)
8032 lt_prog_compiler_pic='-KPIC'
8033 lt_prog_compiler_static='-Bstatic'
8034 ;;
8035
8036 *nto* | *qnx*)
8037 # QNX uses GNU C++, but need to define -shared option too, otherwise
8038 # it will coredump.
8039 lt_prog_compiler_pic='-fPIC -shared'
8040 ;;
8041
8042 osf3* | osf4* | osf5*)
8043 lt_prog_compiler_wl='-Wl,'
8044 # All OSF/1 code is PIC.
8045 lt_prog_compiler_static='-non_shared'
8046 ;;
8047
8048 rdos*)
8049 lt_prog_compiler_static='-non_shared'
8050 ;;
8051
8052 solaris*)
8053 lt_prog_compiler_pic='-KPIC'
8054 lt_prog_compiler_static='-Bstatic'
8055 case $cc_basename in
8056 f77* | f90* | f95*)
8057 lt_prog_compiler_wl='-Qoption ld ';;
8058 *)
8059 lt_prog_compiler_wl='-Wl,';;
8060 esac
8061 ;;
8062
8063 sunos4*)
8064 lt_prog_compiler_wl='-Qoption ld '
8065 lt_prog_compiler_pic='-PIC'
8066 lt_prog_compiler_static='-Bstatic'
8067 ;;
8068
8069 sysv4 | sysv4.2uw2* | sysv4.3*)
8070 lt_prog_compiler_wl='-Wl,'
8071 lt_prog_compiler_pic='-KPIC'
8072 lt_prog_compiler_static='-Bstatic'
8073 ;;
8074
8075 sysv4*MP*)
8076 if test -d /usr/nec ;then
8077 lt_prog_compiler_pic='-Kconform_pic'
8078 lt_prog_compiler_static='-Bstatic'
8079 fi
8080 ;;
8081
8082 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8083 lt_prog_compiler_wl='-Wl,'
8084 lt_prog_compiler_pic='-KPIC'
8085 lt_prog_compiler_static='-Bstatic'
8086 ;;
8087
8088 unicos*)
8089 lt_prog_compiler_wl='-Wl,'
8090 lt_prog_compiler_can_build_shared=no
8091 ;;
8092
8093 uts4*)
8094 lt_prog_compiler_pic='-pic'
8095 lt_prog_compiler_static='-Bstatic'
8096 ;;
8097
8098 *)
8099 lt_prog_compiler_can_build_shared=no
8100 ;;
8101 esac
8102 fi
8103
8104case $host_os in
8105 # For platforms which do not support PIC, -DPIC is meaningless:
8106 *djgpp*)
8107 lt_prog_compiler_pic=
8108 ;;
8109 *)
8110 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8111 ;;
8112esac
8113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8114$as_echo "$lt_prog_compiler_pic" >&6; }
8115
8116
8117
8118
8119
8120
8121#
8122# Check to make sure the PIC flag actually works.
8123#
8124if test -n "$lt_prog_compiler_pic"; then
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8126$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8127if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8128 $as_echo_n "(cached) " >&6
8129else
8130 lt_cv_prog_compiler_pic_works=no
8131 ac_outfile=conftest.$ac_objext
8132 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8133 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8134 # Insert the option either (1) after the last *FLAGS variable, or
8135 # (2) before a word containing "conftest.", or (3) at the end.
8136 # Note that $ac_compile itself does not contain backslashes and begins
8137 # with a dollar sign (not a hyphen), so the echo should work correctly.
8138 # The option is referenced via a variable to avoid confusing sed.
8139 lt_compile=`echo "$ac_compile" | $SED \
8140 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8141 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8142 -e 's:$: $lt_compiler_flag:'`
8143 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8144 (eval "$lt_compile" 2>conftest.err)
8145 ac_status=$?
8146 cat conftest.err >&5
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 if (exit $ac_status) && test -s "$ac_outfile"; then
8149 # The compiler can only warn and ignore the option if not recognized
8150 # So say no if there are warnings other than the usual output.
8151 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8152 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8153 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8154 lt_cv_prog_compiler_pic_works=yes
8155 fi
8156 fi
8157 $RM conftest*
8158
8159fi
8160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8161$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8162
8163if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8164 case $lt_prog_compiler_pic in
8165 "" | " "*) ;;
8166 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8167 esac
8168else
8169 lt_prog_compiler_pic=
8170 lt_prog_compiler_can_build_shared=no
8171fi
8172
8173fi
8174
8175
8176
8177
8178
8179
8180#
8181# Check to make sure the static flag actually works.
8182#
8183wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8185$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8186if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8187 $as_echo_n "(cached) " >&6
8188else
8189 lt_cv_prog_compiler_static_works=no
8190 save_LDFLAGS="$LDFLAGS"
8191 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8192 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8193 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8194 # The linker can only warn and ignore the option if not recognized
8195 # So say no if there are warnings
8196 if test -s conftest.err; then
8197 # Append any errors to the config.log.
8198 cat conftest.err 1>&5
8199 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8200 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8201 if diff conftest.exp conftest.er2 >/dev/null; then
8202 lt_cv_prog_compiler_static_works=yes
8203 fi
8204 else
8205 lt_cv_prog_compiler_static_works=yes
8206 fi
8207 fi
8208 $RM -r conftest*
8209 LDFLAGS="$save_LDFLAGS"
8210
8211fi
8212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8213$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8214
8215if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8216 :
8217else
8218 lt_prog_compiler_static=
8219fi
8220
8221
8222
8223
8224
8225
8226
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8228$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8229if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8230 $as_echo_n "(cached) " >&6
8231else
8232 lt_cv_prog_compiler_c_o=no
8233 $RM -r conftest 2>/dev/null
8234 mkdir conftest
8235 cd conftest
8236 mkdir out
8237 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8238
8239 lt_compiler_flag="-o out/conftest2.$ac_objext"
8240 # Insert the option either (1) after the last *FLAGS variable, or
8241 # (2) before a word containing "conftest.", or (3) at the end.
8242 # Note that $ac_compile itself does not contain backslashes and begins
8243 # with a dollar sign (not a hyphen), so the echo should work correctly.
8244 lt_compile=`echo "$ac_compile" | $SED \
8245 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8246 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8247 -e 's:$: $lt_compiler_flag:'`
8248 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8249 (eval "$lt_compile" 2>out/conftest.err)
8250 ac_status=$?
8251 cat out/conftest.err >&5
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8254 then
8255 # The compiler can only warn and ignore the option if not recognized
8256 # So say no if there are warnings
8257 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8258 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8259 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8260 lt_cv_prog_compiler_c_o=yes
8261 fi
8262 fi
8263 chmod u+w . 2>&5
8264 $RM conftest*
8265 # SGI C++ compiler will create directory out/ii_files/ for
8266 # template instantiation
8267 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8268 $RM out/* && rmdir out
8269 cd ..
8270 $RM -r conftest
8271 $RM conftest*
8272
8273fi
8274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8275$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8276
8277
8278
8279
8280
8281
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8283$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8284if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8285 $as_echo_n "(cached) " >&6
8286else
8287 lt_cv_prog_compiler_c_o=no
8288 $RM -r conftest 2>/dev/null
8289 mkdir conftest
8290 cd conftest
8291 mkdir out
8292 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8293
8294 lt_compiler_flag="-o out/conftest2.$ac_objext"
8295 # Insert the option either (1) after the last *FLAGS variable, or
8296 # (2) before a word containing "conftest.", or (3) at the end.
8297 # Note that $ac_compile itself does not contain backslashes and begins
8298 # with a dollar sign (not a hyphen), so the echo should work correctly.
8299 lt_compile=`echo "$ac_compile" | $SED \
8300 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8301 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8302 -e 's:$: $lt_compiler_flag:'`
8303 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8304 (eval "$lt_compile" 2>out/conftest.err)
8305 ac_status=$?
8306 cat out/conftest.err >&5
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8309 then
8310 # The compiler can only warn and ignore the option if not recognized
8311 # So say no if there are warnings
8312 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8313 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8314 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8315 lt_cv_prog_compiler_c_o=yes
8316 fi
8317 fi
8318 chmod u+w . 2>&5
8319 $RM conftest*
8320 # SGI C++ compiler will create directory out/ii_files/ for
8321 # template instantiation
8322 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8323 $RM out/* && rmdir out
8324 cd ..
8325 $RM -r conftest
8326 $RM conftest*
8327
8328fi
8329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8330$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8331
8332
8333
8334
8335hard_links="nottested"
8336if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8337 # do not overwrite the value of need_locks provided by the user
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8339$as_echo_n "checking if we can lock with hard links... " >&6; }
8340 hard_links=yes
8341 $RM conftest*
8342 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8343 touch conftest.a
8344 ln conftest.a conftest.b 2>&5 || hard_links=no
8345 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8347$as_echo "$hard_links" >&6; }
8348 if test "$hard_links" = no; then
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8350$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8351 need_locks=warn
8352 fi
8353else
8354 need_locks=no
8355fi
8356
8357
8358
8359
8360
8361
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8363$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8364
8365 runpath_var=
8366 allow_undefined_flag=
8367 always_export_symbols=no
8368 archive_cmds=
8369 archive_expsym_cmds=
8370 compiler_needs_object=no
8371 enable_shared_with_static_runtimes=no
8372 export_dynamic_flag_spec=
8373 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8374 hardcode_automatic=no
8375 hardcode_direct=no
8376 hardcode_direct_absolute=no
8377 hardcode_libdir_flag_spec=
8378 hardcode_libdir_flag_spec_ld=
8379 hardcode_libdir_separator=
8380 hardcode_minus_L=no
8381 hardcode_shlibpath_var=unsupported
8382 inherit_rpath=no
8383 link_all_deplibs=unknown
8384 module_cmds=
8385 module_expsym_cmds=
8386 old_archive_from_new_cmds=
8387 old_archive_from_expsyms_cmds=
8388 thread_safe_flag_spec=
8389 whole_archive_flag_spec=
8390 # include_expsyms should be a list of space-separated symbols to be *always*
8391 # included in the symbol list
8392 include_expsyms=
8393 # exclude_expsyms can be an extended regexp of symbols to exclude
8394 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8395 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8396 # as well as any symbol that contains `d'.
8397 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8398 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8399 # platforms (ab)use it in PIC code, but their linkers get confused if
8400 # the symbol is explicitly referenced. Since portable code cannot
8401 # rely on this symbol name, it's probably fine to never include it in
8402 # preloaded symbol tables.
8403 # Exclude shared library initialization/finalization symbols.
8404 extract_expsyms_cmds=
8405
8406 case $host_os in
8407 cygwin* | mingw* | pw32* | cegcc*)
8408 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8409 # When not using gcc, we currently assume that we are using
8410 # Microsoft Visual C++.
8411 if test "$GCC" != yes; then
8412 with_gnu_ld=no
8413 fi
8414 ;;
8415 interix*)
8416 # we just hope/assume this is gcc and not c89 (= MSVC++)
8417 with_gnu_ld=yes
8418 ;;
8419 openbsd*)
8420 with_gnu_ld=no
8421 ;;
8422 esac
8423
8424 ld_shlibs=yes
8425
8426 # On some targets, GNU ld is compatible enough with the native linker
8427 # that we're better off using the native interface for both.
8428 lt_use_gnu_ld_interface=no
8429 if test "$with_gnu_ld" = yes; then
8430 case $host_os in
8431 aix*)
8432 # The AIX port of GNU ld has always aspired to compatibility
8433 # with the native linker. However, as the warning in the GNU ld
8434 # block says, versions before 2.19.5* couldn't really create working
8435 # shared libraries, regardless of the interface used.
8436 case `$LD -v 2>&1` in
8437 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8438 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8439 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8440 *)
8441 lt_use_gnu_ld_interface=yes
8442 ;;
8443 esac
8444 ;;
8445 *)
8446 lt_use_gnu_ld_interface=yes
8447 ;;
8448 esac
8449 fi
8450
8451 if test "$lt_use_gnu_ld_interface" = yes; then
8452 # If archive_cmds runs LD, not CC, wlarc should be empty
8453 wlarc='${wl}'
8454
8455 # Set some defaults for GNU ld with shared library support. These
8456 # are reset later if shared libraries are not supported. Putting them
8457 # here allows them to be overridden if necessary.
8458 runpath_var=LD_RUN_PATH
8459 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8460 export_dynamic_flag_spec='${wl}--export-dynamic'
8461 # ancient GNU ld didn't support --whole-archive et. al.
8462 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8463 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8464 else
8465 whole_archive_flag_spec=
8466 fi
8467 supports_anon_versioning=no
8468 case `$LD -v 2>&1` in
8469 *GNU\ gold*) supports_anon_versioning=yes ;;
8470 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8471 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8472 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8473 *\ 2.11.*) ;; # other 2.11 versions
8474 *) supports_anon_versioning=yes ;;
8475 esac
8476
8477 # See if GNU ld supports shared libraries.
8478 case $host_os in
8479 aix[3-9]*)
8480 # On AIX/PPC, the GNU linker is very broken
8481 if test "$host_cpu" != ia64; then
8482 ld_shlibs=no
8483 cat <<_LT_EOF 1>&2
8484
8485*** Warning: the GNU linker, at least up to release 2.19, is reported
8486*** to be unable to reliably create shared libraries on AIX.
8487*** Therefore, libtool is disabling shared libraries support. If you
8488*** really care for shared libraries, you may want to install binutils
8489*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8490*** You will then need to restart the configuration process.
8491
8492_LT_EOF
8493 fi
8494 ;;
8495
8496 amigaos*)
8497 case $host_cpu in
8498 powerpc)
8499 # see comment about AmigaOS4 .so support
8500 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8501 archive_expsym_cmds=''
8502 ;;
8503 m68k)
8504 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)'
8505 hardcode_libdir_flag_spec='-L$libdir'
8506 hardcode_minus_L=yes
8507 ;;
8508 esac
8509 ;;
8510
8511 beos*)
8512 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8513 allow_undefined_flag=unsupported
8514 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8515 # support --undefined. This deserves some investigation. FIXME
8516 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8517 else
8518 ld_shlibs=no
8519 fi
8520 ;;
8521
8522 cygwin* | mingw* | pw32* | cegcc*)
8523 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8524 # as there is no search path for DLLs.
8525 hardcode_libdir_flag_spec='-L$libdir'
8526 export_dynamic_flag_spec='${wl}--export-all-symbols'
8527 allow_undefined_flag=unsupported
8528 always_export_symbols=no
8529 enable_shared_with_static_runtimes=yes
8530 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8531
8532 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8533 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8534 # If the export-symbols file already is a .def file (1st line
8535 # is EXPORTS), use it as is; otherwise, prepend...
8536 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8537 cp $export_symbols $output_objdir/$soname.def;
8538 else
8539 echo EXPORTS > $output_objdir/$soname.def;
8540 cat $export_symbols >> $output_objdir/$soname.def;
8541 fi~
8542 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8543 else
8544 ld_shlibs=no
8545 fi
8546 ;;
8547
8548 haiku*)
8549 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8550 link_all_deplibs=yes
8551 ;;
8552
8553 interix[3-9]*)
8554 hardcode_direct=no
8555 hardcode_shlibpath_var=no
8556 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8557 export_dynamic_flag_spec='${wl}-E'
8558 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8559 # Instead, shared libraries are loaded at an image base (0x10000000 by
8560 # default) and relocated if they conflict, which is a slow very memory
8561 # consuming and fragmenting process. To avoid this, we pick a random,
8562 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8563 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8564 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8565 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'
8566 ;;
8567
8568 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8569 tmp_diet=no
8570 if test "$host_os" = linux-dietlibc; then
8571 case $cc_basename in
8572 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8573 esac
8574 fi
8575 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8576 && test "$tmp_diet" = no
8577 then
fdbf396f 8578 tmp_addflag=' $pic_flag'
6bb11ab3
L
8579 tmp_sharedflag='-shared'
8580 case $cc_basename,$host_cpu in
8581 pgcc*) # Portland Group C compiler
8582 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'
8583 tmp_addflag=' $pic_flag'
8584 ;;
8585 pgf77* | pgf90* | pgf95* | pgfortran*)
8586 # Portland Group f77 and f90 compilers
8587 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'
8588 tmp_addflag=' $pic_flag -Mnomain' ;;
8589 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8590 tmp_addflag=' -i_dynamic' ;;
8591 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8592 tmp_addflag=' -i_dynamic -nofor_main' ;;
8593 ifc* | ifort*) # Intel Fortran compiler
8594 tmp_addflag=' -nofor_main' ;;
8595 lf95*) # Lahey Fortran 8.1
8596 whole_archive_flag_spec=
8597 tmp_sharedflag='--shared' ;;
8598 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8599 tmp_sharedflag='-qmkshrobj'
8600 tmp_addflag= ;;
8601 nvcc*) # Cuda Compiler Driver 2.2
8602 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'
8603 compiler_needs_object=yes
8604 ;;
8605 esac
8606 case `$CC -V 2>&1 | sed 5q` in
8607 *Sun\ C*) # Sun C 5.9
8608 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'
8609 compiler_needs_object=yes
8610 tmp_sharedflag='-G' ;;
8611 *Sun\ F*) # Sun Fortran 8.3
8612 tmp_sharedflag='-G' ;;
8613 esac
8614 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8615
8616 if test "x$supports_anon_versioning" = xyes; then
8617 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8618 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8619 echo "local: *; };" >> $output_objdir/$libname.ver~
8620 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8621 fi
8622
8623 case $cc_basename in
8624 xlf* | bgf* | bgxlf* | mpixlf*)
8625 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8626 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8627 hardcode_libdir_flag_spec=
8628 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8629 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8630 if test "x$supports_anon_versioning" = xyes; then
8631 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8632 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8633 echo "local: *; };" >> $output_objdir/$libname.ver~
8634 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8635 fi
8636 ;;
8637 esac
8638 else
8639 ld_shlibs=no
8640 fi
8641 ;;
8642
8643 netbsd*)
8644 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8645 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8646 wlarc=
8647 else
8648 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8649 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8650 fi
8651 ;;
8652
8653 solaris*)
8654 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8655 ld_shlibs=no
8656 cat <<_LT_EOF 1>&2
8657
8658*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8659*** create shared libraries on Solaris systems. Therefore, libtool
8660*** is disabling shared libraries support. We urge you to upgrade GNU
8661*** binutils to release 2.9.1 or newer. Another option is to modify
8662*** your PATH or compiler configuration so that the native linker is
8663*** used, and then restart.
8664
8665_LT_EOF
8666 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8667 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8668 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8669 else
8670 ld_shlibs=no
8671 fi
8672 ;;
8673
8674 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8675 case `$LD -v 2>&1` in
8676 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8677 ld_shlibs=no
8678 cat <<_LT_EOF 1>&2
8679
8680*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8681*** reliably create shared libraries on SCO systems. Therefore, libtool
8682*** is disabling shared libraries support. We urge you to upgrade GNU
8683*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8684*** your PATH or compiler configuration so that the native linker is
8685*** used, and then restart.
8686
8687_LT_EOF
8688 ;;
8689 *)
8690 # For security reasons, it is highly recommended that you always
8691 # use absolute paths for naming shared libraries, and exclude the
8692 # DT_RUNPATH tag from executables and libraries. But doing so
8693 # requires that you compile everything twice, which is a pain.
8694 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8695 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8696 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8697 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8698 else
8699 ld_shlibs=no
8700 fi
8701 ;;
8702 esac
8703 ;;
8704
8705 sunos4*)
8706 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8707 wlarc=
8708 hardcode_direct=yes
8709 hardcode_shlibpath_var=no
8710 ;;
8711
8712 *)
8713 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8714 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8715 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8716 else
8717 ld_shlibs=no
8718 fi
8719 ;;
8720 esac
8721
8722 if test "$ld_shlibs" = no; then
8723 runpath_var=
8724 hardcode_libdir_flag_spec=
8725 export_dynamic_flag_spec=
8726 whole_archive_flag_spec=
8727 fi
8728 else
8729 # PORTME fill in a description of your system's linker (not GNU ld)
8730 case $host_os in
8731 aix3*)
8732 allow_undefined_flag=unsupported
8733 always_export_symbols=yes
8734 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'
8735 # Note: this linker hardcodes the directories in LIBPATH if there
8736 # are no directories specified by -L.
8737 hardcode_minus_L=yes
8738 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8739 # Neither direct hardcoding nor static linking is supported with a
8740 # broken collect2.
8741 hardcode_direct=unsupported
8742 fi
8743 ;;
8744
8745 aix[4-9]*)
8746 if test "$host_cpu" = ia64; then
8747 # On IA64, the linker does run time linking by default, so we don't
8748 # have to do anything special.
8749 aix_use_runtimelinking=no
8750 exp_sym_flag='-Bexport'
8751 no_entry_flag=""
8752 else
8753 # If we're using GNU nm, then we don't want the "-C" option.
8754 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8755 # Also, AIX nm treats weak defined symbols like other global
8756 # defined symbols, whereas GNU nm marks them as "W".
8757 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8758 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'
8759 else
8760 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'
8761 fi
8762 aix_use_runtimelinking=no
8763
8764 # Test if we are trying to use run time linking or normal
8765 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8766 # need to do runtime linking.
8767 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8768 for ld_flag in $LDFLAGS; do
8769 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8770 aix_use_runtimelinking=yes
8771 break
8772 fi
8773 done
8774 ;;
8775 esac
8776
8777 exp_sym_flag='-bexport'
8778 no_entry_flag='-bnoentry'
8779 fi
8780
8781 # When large executables or shared objects are built, AIX ld can
8782 # have problems creating the table of contents. If linking a library
8783 # or program results in "error TOC overflow" add -mminimal-toc to
8784 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8785 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8786
8787 archive_cmds=''
8788 hardcode_direct=yes
8789 hardcode_direct_absolute=yes
8790 hardcode_libdir_separator=':'
8791 link_all_deplibs=yes
8792 file_list_spec='${wl}-f,'
8793
8794 if test "$GCC" = yes; then
8795 case $host_os in aix4.[012]|aix4.[012].*)
8796 # We only want to do this on AIX 4.2 and lower, the check
8797 # below for broken collect2 doesn't work under 4.3+
8798 collect2name=`${CC} -print-prog-name=collect2`
8799 if test -f "$collect2name" &&
8800 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8801 then
8802 # We have reworked collect2
8803 :
8804 else
8805 # We have old collect2
8806 hardcode_direct=unsupported
8807 # It fails to find uninstalled libraries when the uninstalled
8808 # path is not listed in the libpath. Setting hardcode_minus_L
8809 # to unsupported forces relinking
8810 hardcode_minus_L=yes
8811 hardcode_libdir_flag_spec='-L$libdir'
8812 hardcode_libdir_separator=
8813 fi
8814 ;;
8815 esac
8816 shared_flag='-shared'
8817 if test "$aix_use_runtimelinking" = yes; then
8818 shared_flag="$shared_flag "'${wl}-G'
8819 fi
8820 else
8821 # not using gcc
8822 if test "$host_cpu" = ia64; then
8823 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8824 # chokes on -Wl,-G. The following line is correct:
8825 shared_flag='-G'
8826 else
8827 if test "$aix_use_runtimelinking" = yes; then
8828 shared_flag='${wl}-G'
8829 else
8830 shared_flag='${wl}-bM:SRE'
8831 fi
8832 fi
8833 fi
8834
8835 export_dynamic_flag_spec='${wl}-bexpall'
8836 # It seems that -bexpall does not export symbols beginning with
8837 # underscore (_), so it is better to generate a list of symbols to export.
8838 always_export_symbols=yes
8839 if test "$aix_use_runtimelinking" = yes; then
8840 # Warning - without using the other runtime loading flags (-brtl),
8841 # -berok will link without error, but may produce a broken library.
8842 allow_undefined_flag='-berok'
8843 # Determine the default libpath from the value encoded in an
8844 # empty executable.
8845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8846/* end confdefs.h. */
8847
8848int
8849main ()
8850{
8851
8852 ;
8853 return 0;
8854}
8855_ACEOF
8856if ac_fn_c_try_link "$LINENO"; then :
8857
8858lt_aix_libpath_sed='
8859 /Import File Strings/,/^$/ {
8860 /^0/ {
8861 s/^0 *\(.*\)$/\1/
8862 p
8863 }
8864 }'
8865aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8866# Check for a 64-bit object if we didn't find anything.
8867if test -z "$aix_libpath"; then
8868 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8869fi
8870fi
8871rm -f core conftest.err conftest.$ac_objext \
8872 conftest$ac_exeext conftest.$ac_ext
8873if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8874
8875 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8876 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"
8877 else
8878 if test "$host_cpu" = ia64; then
8879 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8880 allow_undefined_flag="-z nodefs"
8881 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"
8882 else
8883 # Determine the default libpath from the value encoded in an
8884 # empty executable.
8885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8886/* end confdefs.h. */
8887
8888int
8889main ()
8890{
8891
8892 ;
8893 return 0;
8894}
8895_ACEOF
8896if ac_fn_c_try_link "$LINENO"; then :
8897
8898lt_aix_libpath_sed='
8899 /Import File Strings/,/^$/ {
8900 /^0/ {
8901 s/^0 *\(.*\)$/\1/
8902 p
8903 }
8904 }'
8905aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8906# Check for a 64-bit object if we didn't find anything.
8907if test -z "$aix_libpath"; then
8908 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8909fi
8910fi
8911rm -f core conftest.err conftest.$ac_objext \
8912 conftest$ac_exeext conftest.$ac_ext
8913if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8914
8915 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8916 # Warning - without using the other run time loading flags,
8917 # -berok will link without error, but may produce a broken library.
8918 no_undefined_flag=' ${wl}-bernotok'
8919 allow_undefined_flag=' ${wl}-berok'
8920 if test "$with_gnu_ld" = yes; then
8921 # We only use this code for GNU lds that support --whole-archive.
8922 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8923 else
8924 # Exported symbols can be pulled into shared objects from archives
8925 whole_archive_flag_spec='$convenience'
8926 fi
8927 archive_cmds_need_lc=yes
8928 # This is similar to how AIX traditionally builds its shared libraries.
8929 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'
8930 fi
8931 fi
8932 ;;
8933
8934 amigaos*)
8935 case $host_cpu in
8936 powerpc)
8937 # see comment about AmigaOS4 .so support
8938 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8939 archive_expsym_cmds=''
8940 ;;
8941 m68k)
8942 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)'
8943 hardcode_libdir_flag_spec='-L$libdir'
8944 hardcode_minus_L=yes
8945 ;;
8946 esac
8947 ;;
8948
8949 bsdi[45]*)
8950 export_dynamic_flag_spec=-rdynamic
8951 ;;
8952
8953 cygwin* | mingw* | pw32* | cegcc*)
8954 # When not using gcc, we currently assume that we are using
8955 # Microsoft Visual C++.
8956 # hardcode_libdir_flag_spec is actually meaningless, as there is
8957 # no search path for DLLs.
8958 hardcode_libdir_flag_spec=' '
8959 allow_undefined_flag=unsupported
8960 # Tell ltmain to make .lib files, not .a files.
8961 libext=lib
8962 # Tell ltmain to make .dll files, not .so files.
8963 shrext_cmds=".dll"
8964 # FIXME: Setting linknames here is a bad hack.
8965 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8966 # The linker will automatically build a .lib file if we build a DLL.
8967 old_archive_from_new_cmds='true'
8968 # FIXME: Should let the user specify the lib program.
8969 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8970 fix_srcfile_path='`cygpath -w "$srcfile"`'
8971 enable_shared_with_static_runtimes=yes
8972 ;;
8973
8974 darwin* | rhapsody*)
8975
8976
8977 archive_cmds_need_lc=no
8978 hardcode_direct=no
8979 hardcode_automatic=yes
8980 hardcode_shlibpath_var=unsupported
8981 if test "$lt_cv_ld_force_load" = "yes"; then
8982 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\"`'
8983 else
8984 whole_archive_flag_spec=''
8985 fi
8986 link_all_deplibs=yes
8987 allow_undefined_flag="$_lt_dar_allow_undefined"
8988 case $cc_basename in
8989 ifort*) _lt_dar_can_shared=yes ;;
8990 *) _lt_dar_can_shared=$GCC ;;
8991 esac
8992 if test "$_lt_dar_can_shared" = "yes"; then
8993 output_verbose_link_cmd=func_echo_all
8994 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8995 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8996 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}"
8997 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}"
8998
8999 else
9000 ld_shlibs=no
9001 fi
9002
9003 ;;
9004
9005 dgux*)
9006 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9007 hardcode_libdir_flag_spec='-L$libdir'
9008 hardcode_shlibpath_var=no
9009 ;;
9010
9011 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9012 # support. Future versions do this automatically, but an explicit c++rt0.o
9013 # does not break anything, and helps significantly (at the cost of a little
9014 # extra space).
9015 freebsd2.2*)
9016 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9017 hardcode_libdir_flag_spec='-R$libdir'
9018 hardcode_direct=yes
9019 hardcode_shlibpath_var=no
9020 ;;
9021
9022 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9023 freebsd2.*)
9024 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9025 hardcode_direct=yes
9026 hardcode_minus_L=yes
9027 hardcode_shlibpath_var=no
9028 ;;
9029
9030 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9031 freebsd* | dragonfly*)
9032 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9033 hardcode_libdir_flag_spec='-R$libdir'
9034 hardcode_direct=yes
9035 hardcode_shlibpath_var=no
9036 ;;
9037
9038 hpux9*)
9039 if test "$GCC" = yes; then
9040 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9041 else
9042 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'
9043 fi
9044 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9045 hardcode_libdir_separator=:
9046 hardcode_direct=yes
9047
9048 # hardcode_minus_L: Not really in the search PATH,
9049 # but as the default location of the library.
9050 hardcode_minus_L=yes
9051 export_dynamic_flag_spec='${wl}-E'
9052 ;;
9053
9054 hpux10*)
9055 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9056 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9057 else
9058 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9059 fi
9060 if test "$with_gnu_ld" = no; then
9061 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9062 hardcode_libdir_flag_spec_ld='+b $libdir'
9063 hardcode_libdir_separator=:
9064 hardcode_direct=yes
9065 hardcode_direct_absolute=yes
9066 export_dynamic_flag_spec='${wl}-E'
9067 # hardcode_minus_L: Not really in the search PATH,
9068 # but as the default location of the library.
9069 hardcode_minus_L=yes
9070 fi
9071 ;;
9072
9073 hpux11*)
9074 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9075 case $host_cpu in
9076 hppa*64*)
9077 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9078 ;;
9079 ia64*)
9080 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9081 ;;
9082 *)
9083 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9084 ;;
9085 esac
9086 else
9087 case $host_cpu in
9088 hppa*64*)
9089 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9090 ;;
9091 ia64*)
9092 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9093 ;;
9094 *)
9095
9096 # Older versions of the 11.00 compiler do not understand -b yet
9097 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9099$as_echo_n "checking if $CC understands -b... " >&6; }
9100if test "${lt_cv_prog_compiler__b+set}" = set; then :
9101 $as_echo_n "(cached) " >&6
9102else
9103 lt_cv_prog_compiler__b=no
9104 save_LDFLAGS="$LDFLAGS"
9105 LDFLAGS="$LDFLAGS -b"
9106 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9107 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9108 # The linker can only warn and ignore the option if not recognized
9109 # So say no if there are warnings
9110 if test -s conftest.err; then
9111 # Append any errors to the config.log.
9112 cat conftest.err 1>&5
9113 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9114 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9115 if diff conftest.exp conftest.er2 >/dev/null; then
9116 lt_cv_prog_compiler__b=yes
9117 fi
9118 else
9119 lt_cv_prog_compiler__b=yes
9120 fi
9121 fi
9122 $RM -r conftest*
9123 LDFLAGS="$save_LDFLAGS"
9124
9125fi
9126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9127$as_echo "$lt_cv_prog_compiler__b" >&6; }
9128
9129if test x"$lt_cv_prog_compiler__b" = xyes; then
9130 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9131else
9132 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9133fi
9134
9135 ;;
9136 esac
9137 fi
9138 if test "$with_gnu_ld" = no; then
9139 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9140 hardcode_libdir_separator=:
9141
9142 case $host_cpu in
9143 hppa*64*|ia64*)
9144 hardcode_direct=no
9145 hardcode_shlibpath_var=no
9146 ;;
9147 *)
9148 hardcode_direct=yes
9149 hardcode_direct_absolute=yes
9150 export_dynamic_flag_spec='${wl}-E'
9151
9152 # hardcode_minus_L: Not really in the search PATH,
9153 # but as the default location of the library.
9154 hardcode_minus_L=yes
9155 ;;
9156 esac
9157 fi
9158 ;;
9159
9160 irix5* | irix6* | nonstopux*)
9161 if test "$GCC" = yes; then
9162 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9163 # Try to use the -exported_symbol ld option, if it does not
9164 # work, assume that -exports_file does not work either and
9165 # implicitly export all symbols.
9166 save_LDFLAGS="$LDFLAGS"
9167 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9169/* end confdefs.h. */
9170int foo(void) {}
9171_ACEOF
9172if ac_fn_c_try_link "$LINENO"; then :
9173 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9174
9175fi
9176rm -f core conftest.err conftest.$ac_objext \
9177 conftest$ac_exeext conftest.$ac_ext
9178 LDFLAGS="$save_LDFLAGS"
9179 else
9180 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'
9181 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'
9182 fi
9183 archive_cmds_need_lc='no'
9184 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9185 hardcode_libdir_separator=:
9186 inherit_rpath=yes
9187 link_all_deplibs=yes
9188 ;;
9189
9190 netbsd*)
9191 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9192 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9193 else
9194 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9195 fi
9196 hardcode_libdir_flag_spec='-R$libdir'
9197 hardcode_direct=yes
9198 hardcode_shlibpath_var=no
9199 ;;
9200
9201 newsos6)
9202 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9203 hardcode_direct=yes
9204 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9205 hardcode_libdir_separator=:
9206 hardcode_shlibpath_var=no
9207 ;;
9208
9209 *nto* | *qnx*)
9210 ;;
9211
9212 openbsd*)
9213 if test -f /usr/libexec/ld.so; then
9214 hardcode_direct=yes
9215 hardcode_shlibpath_var=no
9216 hardcode_direct_absolute=yes
9217 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9218 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9219 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9220 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9221 export_dynamic_flag_spec='${wl}-E'
9222 else
9223 case $host_os in
9224 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9225 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9226 hardcode_libdir_flag_spec='-R$libdir'
9227 ;;
9228 *)
9229 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9230 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9231 ;;
9232 esac
9233 fi
9234 else
9235 ld_shlibs=no
9236 fi
9237 ;;
9238
9239 os2*)
9240 hardcode_libdir_flag_spec='-L$libdir'
9241 hardcode_minus_L=yes
9242 allow_undefined_flag=unsupported
9243 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'
9244 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9245 ;;
9246
9247 osf3*)
9248 if test "$GCC" = yes; then
9249 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9250 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'
9251 else
9252 allow_undefined_flag=' -expect_unresolved \*'
9253 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'
9254 fi
9255 archive_cmds_need_lc='no'
9256 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9257 hardcode_libdir_separator=:
9258 ;;
9259
9260 osf4* | osf5*) # as osf3* with the addition of -msym flag
9261 if test "$GCC" = yes; then
9262 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9263 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9264 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9265 else
9266 allow_undefined_flag=' -expect_unresolved \*'
9267 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'
9268 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~
9269 $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'
9270
9271 # Both c and cxx compiler support -rpath directly
9272 hardcode_libdir_flag_spec='-rpath $libdir'
9273 fi
9274 archive_cmds_need_lc='no'
9275 hardcode_libdir_separator=:
9276 ;;
9277
9278 solaris*)
9279 no_undefined_flag=' -z defs'
9280 if test "$GCC" = yes; then
9281 wlarc='${wl}'
9282 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9283 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9284 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9285 else
9286 case `$CC -V 2>&1` in
9287 *"Compilers 5.0"*)
9288 wlarc=''
9289 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9290 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9291 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9292 ;;
9293 *)
9294 wlarc='${wl}'
9295 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9296 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9297 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9298 ;;
9299 esac
9300 fi
9301 hardcode_libdir_flag_spec='-R$libdir'
9302 hardcode_shlibpath_var=no
9303 case $host_os in
9304 solaris2.[0-5] | solaris2.[0-5].*) ;;
9305 *)
9306 # The compiler driver will combine and reorder linker options,
9307 # but understands `-z linker_flag'. GCC discards it without `$wl',
9308 # but is careful enough not to reorder.
9309 # Supported since Solaris 2.6 (maybe 2.5.1?)
9310 if test "$GCC" = yes; then
9311 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9312 else
9313 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9314 fi
9315 ;;
9316 esac
9317 link_all_deplibs=yes
9318 ;;
9319
9320 sunos4*)
9321 if test "x$host_vendor" = xsequent; then
9322 # Use $CC to link under sequent, because it throws in some extra .o
9323 # files that make .init and .fini sections work.
9324 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9325 else
9326 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9327 fi
9328 hardcode_libdir_flag_spec='-L$libdir'
9329 hardcode_direct=yes
9330 hardcode_minus_L=yes
9331 hardcode_shlibpath_var=no
9332 ;;
9333
9334 sysv4)
9335 case $host_vendor in
9336 sni)
9337 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9338 hardcode_direct=yes # is this really true???
9339 ;;
9340 siemens)
9341 ## LD is ld it makes a PLAMLIB
9342 ## CC just makes a GrossModule.
9343 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9344 reload_cmds='$CC -r -o $output$reload_objs'
9345 hardcode_direct=no
9346 ;;
9347 motorola)
9348 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9349 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9350 ;;
9351 esac
9352 runpath_var='LD_RUN_PATH'
9353 hardcode_shlibpath_var=no
9354 ;;
9355
9356 sysv4.3*)
9357 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9358 hardcode_shlibpath_var=no
9359 export_dynamic_flag_spec='-Bexport'
9360 ;;
9361
9362 sysv4*MP*)
9363 if test -d /usr/nec; then
9364 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9365 hardcode_shlibpath_var=no
9366 runpath_var=LD_RUN_PATH
9367 hardcode_runpath_var=yes
9368 ld_shlibs=yes
9369 fi
9370 ;;
9371
9372 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9373 no_undefined_flag='${wl}-z,text'
9374 archive_cmds_need_lc=no
9375 hardcode_shlibpath_var=no
9376 runpath_var='LD_RUN_PATH'
9377
9378 if test "$GCC" = yes; then
9379 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9380 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9381 else
9382 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9383 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9384 fi
9385 ;;
9386
9387 sysv5* | sco3.2v5* | sco5v6*)
9388 # Note: We can NOT use -z defs as we might desire, because we do not
9389 # link with -lc, and that would cause any symbols used from libc to
9390 # always be unresolved, which means just about no library would
9391 # ever link correctly. If we're not using GNU ld we use -z text
9392 # though, which does catch some bad symbols but isn't as heavy-handed
9393 # as -z defs.
9394 no_undefined_flag='${wl}-z,text'
9395 allow_undefined_flag='${wl}-z,nodefs'
9396 archive_cmds_need_lc=no
9397 hardcode_shlibpath_var=no
9398 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9399 hardcode_libdir_separator=':'
9400 link_all_deplibs=yes
9401 export_dynamic_flag_spec='${wl}-Bexport'
9402 runpath_var='LD_RUN_PATH'
9403
9404 if test "$GCC" = yes; then
9405 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9406 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9407 else
9408 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9409 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9410 fi
9411 ;;
9412
9413 uts4*)
9414 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9415 hardcode_libdir_flag_spec='-L$libdir'
9416 hardcode_shlibpath_var=no
9417 ;;
9418
9419 *)
9420 ld_shlibs=no
9421 ;;
9422 esac
9423
9424 if test x$host_vendor = xsni; then
9425 case $host in
9426 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9427 export_dynamic_flag_spec='${wl}-Blargedynsym'
9428 ;;
9429 esac
9430 fi
9431 fi
9432
9433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9434$as_echo "$ld_shlibs" >&6; }
9435test "$ld_shlibs" = no && can_build_shared=no
9436
9437with_gnu_ld=$with_gnu_ld
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453#
9454# Do we need to explicitly link libc?
9455#
9456case "x$archive_cmds_need_lc" in
9457x|xyes)
9458 # Assume -lc should be added
9459 archive_cmds_need_lc=yes
9460
9461 if test "$enable_shared" = yes && test "$GCC" = yes; then
9462 case $archive_cmds in
9463 *'~'*)
9464 # FIXME: we may have to deal with multi-command sequences.
9465 ;;
9466 '$CC '*)
9467 # Test whether the compiler implicitly links with -lc since on some
9468 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9469 # to ld, don't add -lc before -lgcc.
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9471$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9472if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9473 $as_echo_n "(cached) " >&6
9474else
9475 $RM conftest*
9476 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9477
9478 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9479 (eval $ac_compile) 2>&5
9480 ac_status=$?
9481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9482 test $ac_status = 0; } 2>conftest.err; then
9483 soname=conftest
9484 lib=conftest
9485 libobjs=conftest.$ac_objext
9486 deplibs=
9487 wl=$lt_prog_compiler_wl
9488 pic_flag=$lt_prog_compiler_pic
9489 compiler_flags=-v
9490 linker_flags=-v
9491 verstring=
9492 output_objdir=.
9493 libname=conftest
9494 lt_save_allow_undefined_flag=$allow_undefined_flag
9495 allow_undefined_flag=
9496 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9497 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9498 ac_status=$?
9499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9500 test $ac_status = 0; }
9501 then
9502 lt_cv_archive_cmds_need_lc=no
9503 else
9504 lt_cv_archive_cmds_need_lc=yes
9505 fi
9506 allow_undefined_flag=$lt_save_allow_undefined_flag
9507 else
9508 cat conftest.err 1>&5
9509 fi
9510 $RM conftest*
9511
9512fi
9513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9514$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9515 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9516 ;;
9517 esac
9518 fi
9519 ;;
9520esac
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9679$as_echo_n "checking dynamic linker characteristics... " >&6; }
9680
9681if test "$GCC" = yes; then
9682 case $host_os in
9683 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9684 *) lt_awk_arg="/^libraries:/" ;;
9685 esac
9686 case $host_os in
9687 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9688 *) lt_sed_strip_eq="s,=/,/,g" ;;
9689 esac
9690 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9691 case $lt_search_path_spec in
9692 *\;*)
9693 # if the path contains ";" then we assume it to be the separator
9694 # otherwise default to the standard path separator (i.e. ":") - it is
9695 # assumed that no part of a normal pathname contains ";" but that should
9696 # okay in the real world where ";" in dirpaths is itself problematic.
9697 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9698 ;;
9699 *)
9700 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9701 ;;
9702 esac
9703 # Ok, now we have the path, separated by spaces, we can step through it
9704 # and add multilib dir if necessary.
9705 lt_tmp_lt_search_path_spec=
9706 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9707 for lt_sys_path in $lt_search_path_spec; do
9708 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9709 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9710 else
9711 test -d "$lt_sys_path" && \
9712 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9713 fi
9714 done
9715 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9716BEGIN {RS=" "; FS="/|\n";} {
9717 lt_foo="";
9718 lt_count=0;
9719 for (lt_i = NF; lt_i > 0; lt_i--) {
9720 if ($lt_i != "" && $lt_i != ".") {
9721 if ($lt_i == "..") {
9722 lt_count++;
9723 } else {
9724 if (lt_count == 0) {
9725 lt_foo="/" $lt_i lt_foo;
9726 } else {
9727 lt_count--;
9728 }
9729 }
9730 }
9731 }
9732 if (lt_foo != "") { lt_freq[lt_foo]++; }
9733 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9734}'`
9735 # AWK program above erroneously prepends '/' to C:/dos/paths
9736 # for these hosts.
9737 case $host_os in
9738 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9739 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9740 esac
9741 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9742else
9743 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9744fi
9745library_names_spec=
9746libname_spec='lib$name'
9747soname_spec=
9748shrext_cmds=".so"
9749postinstall_cmds=
9750postuninstall_cmds=
9751finish_cmds=
9752finish_eval=
9753shlibpath_var=
9754shlibpath_overrides_runpath=unknown
9755version_type=none
9756dynamic_linker="$host_os ld.so"
9757sys_lib_dlsearch_path_spec="/lib /usr/lib"
9758need_lib_prefix=unknown
9759hardcode_into_libs=no
9760
9761# when you set need_version to no, make sure it does not cause -set_version
9762# flags to be left without arguments
9763need_version=unknown
9764
9765case $host_os in
9766aix3*)
9767 version_type=linux
9768 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9769 shlibpath_var=LIBPATH
9770
9771 # AIX 3 has no versioning support, so we append a major version to the name.
9772 soname_spec='${libname}${release}${shared_ext}$major'
9773 ;;
9774
9775aix[4-9]*)
9776 version_type=linux
9777 need_lib_prefix=no
9778 need_version=no
9779 hardcode_into_libs=yes
9780 if test "$host_cpu" = ia64; then
9781 # AIX 5 supports IA64
9782 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9783 shlibpath_var=LD_LIBRARY_PATH
9784 else
9785 # With GCC up to 2.95.x, collect2 would create an import file
9786 # for dependence libraries. The import file would start with
9787 # the line `#! .'. This would cause the generated library to
9788 # depend on `.', always an invalid library. This was fixed in
9789 # development snapshots of GCC prior to 3.0.
9790 case $host_os in
9791 aix4 | aix4.[01] | aix4.[01].*)
9792 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9793 echo ' yes '
9794 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9795 :
9796 else
9797 can_build_shared=no
9798 fi
9799 ;;
9800 esac
9801 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9802 # soname into executable. Probably we can add versioning support to
9803 # collect2, so additional links can be useful in future.
9804 if test "$aix_use_runtimelinking" = yes; then
9805 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9806 # instead of lib<name>.a to let people know that these are not
9807 # typical AIX shared libraries.
9808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9809 else
9810 # We preserve .a as extension for shared libraries through AIX4.2
9811 # and later when we are not doing run time linking.
9812 library_names_spec='${libname}${release}.a $libname.a'
9813 soname_spec='${libname}${release}${shared_ext}$major'
9814 fi
9815 shlibpath_var=LIBPATH
9816 fi
9817 ;;
9818
9819amigaos*)
9820 case $host_cpu in
9821 powerpc)
9822 # Since July 2007 AmigaOS4 officially supports .so libraries.
9823 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9825 ;;
9826 m68k)
9827 library_names_spec='$libname.ixlibrary $libname.a'
9828 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9829 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'
9830 ;;
9831 esac
9832 ;;
9833
9834beos*)
9835 library_names_spec='${libname}${shared_ext}'
9836 dynamic_linker="$host_os ld.so"
9837 shlibpath_var=LIBRARY_PATH
9838 ;;
9839
9840bsdi[45]*)
9841 version_type=linux
9842 need_version=no
9843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9844 soname_spec='${libname}${release}${shared_ext}$major'
9845 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9846 shlibpath_var=LD_LIBRARY_PATH
9847 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9848 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9849 # the default ld.so.conf also contains /usr/contrib/lib and
9850 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9851 # libtool to hard-code these into programs
9852 ;;
9853
9854cygwin* | mingw* | pw32* | cegcc*)
9855 version_type=windows
9856 shrext_cmds=".dll"
9857 need_version=no
9858 need_lib_prefix=no
9859
9860 case $GCC,$host_os in
9861 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9862 library_names_spec='$libname.dll.a'
9863 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9864 postinstall_cmds='base_file=`basename \${file}`~
9865 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9866 dldir=$destdir/`dirname \$dlpath`~
9867 test -d \$dldir || mkdir -p \$dldir~
9868 $install_prog $dir/$dlname \$dldir/$dlname~
9869 chmod a+x \$dldir/$dlname~
9870 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9871 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9872 fi'
9873 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9874 dlpath=$dir/\$dldll~
9875 $RM \$dlpath'
9876 shlibpath_overrides_runpath=yes
9877
9878 case $host_os in
9879 cygwin*)
9880 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9881 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9882
9883 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9884 ;;
9885 mingw* | cegcc*)
9886 # MinGW DLLs use traditional 'lib' prefix
9887 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9888 ;;
9889 pw32*)
9890 # pw32 DLLs use 'pw' prefix rather than 'lib'
9891 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9892 ;;
9893 esac
9894 ;;
9895
9896 *)
9897 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9898 ;;
9899 esac
9900 dynamic_linker='Win32 ld.exe'
9901 # FIXME: first we should search . and the directory the executable is in
9902 shlibpath_var=PATH
9903 ;;
9904
9905darwin* | rhapsody*)
9906 dynamic_linker="$host_os dyld"
9907 version_type=darwin
9908 need_lib_prefix=no
9909 need_version=no
9910 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9911 soname_spec='${libname}${release}${major}$shared_ext'
9912 shlibpath_overrides_runpath=yes
9913 shlibpath_var=DYLD_LIBRARY_PATH
9914 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9915
9916 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9917 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9918 ;;
9919
9920dgux*)
9921 version_type=linux
9922 need_lib_prefix=no
9923 need_version=no
9924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9925 soname_spec='${libname}${release}${shared_ext}$major'
9926 shlibpath_var=LD_LIBRARY_PATH
9927 ;;
9928
9929freebsd* | dragonfly*)
9930 # DragonFly does not have aout. When/if they implement a new
9931 # versioning mechanism, adjust this.
9932 if test -x /usr/bin/objformat; then
9933 objformat=`/usr/bin/objformat`
9934 else
9935 case $host_os in
9936 freebsd[23].*) objformat=aout ;;
9937 *) objformat=elf ;;
9938 esac
9939 fi
9940 version_type=freebsd-$objformat
9941 case $version_type in
9942 freebsd-elf*)
9943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9944 need_version=no
9945 need_lib_prefix=no
9946 ;;
9947 freebsd-*)
9948 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9949 need_version=yes
9950 ;;
9951 esac
9952 shlibpath_var=LD_LIBRARY_PATH
9953 case $host_os in
9954 freebsd2.*)
9955 shlibpath_overrides_runpath=yes
9956 ;;
9957 freebsd3.[01]* | freebsdelf3.[01]*)
9958 shlibpath_overrides_runpath=yes
9959 hardcode_into_libs=yes
9960 ;;
9961 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9962 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9963 shlibpath_overrides_runpath=no
9964 hardcode_into_libs=yes
9965 ;;
9966 *) # from 4.6 on, and DragonFly
9967 shlibpath_overrides_runpath=yes
9968 hardcode_into_libs=yes
9969 ;;
9970 esac
9971 ;;
9972
9973gnu*)
9974 version_type=linux
9975 need_lib_prefix=no
9976 need_version=no
9977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9978 soname_spec='${libname}${release}${shared_ext}$major'
9979 shlibpath_var=LD_LIBRARY_PATH
9980 hardcode_into_libs=yes
9981 ;;
9982
9983haiku*)
9984 version_type=linux
9985 need_lib_prefix=no
9986 need_version=no
9987 dynamic_linker="$host_os runtime_loader"
9988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9989 soname_spec='${libname}${release}${shared_ext}$major'
9990 shlibpath_var=LIBRARY_PATH
9991 shlibpath_overrides_runpath=yes
9992 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9993 hardcode_into_libs=yes
9994 ;;
9995
9996hpux9* | hpux10* | hpux11*)
9997 # Give a soname corresponding to the major version so that dld.sl refuses to
9998 # link against other versions.
9999 version_type=sunos
10000 need_lib_prefix=no
10001 need_version=no
10002 case $host_cpu in
10003 ia64*)
10004 shrext_cmds='.so'
10005 hardcode_into_libs=yes
10006 dynamic_linker="$host_os dld.so"
10007 shlibpath_var=LD_LIBRARY_PATH
10008 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10010 soname_spec='${libname}${release}${shared_ext}$major'
10011 if test "X$HPUX_IA64_MODE" = X32; then
10012 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10013 else
10014 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10015 fi
10016 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10017 ;;
10018 hppa*64*)
10019 shrext_cmds='.sl'
10020 hardcode_into_libs=yes
10021 dynamic_linker="$host_os dld.sl"
10022 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10023 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10025 soname_spec='${libname}${release}${shared_ext}$major'
10026 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10027 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10028 ;;
10029 *)
10030 shrext_cmds='.sl'
10031 dynamic_linker="$host_os dld.sl"
10032 shlibpath_var=SHLIB_PATH
10033 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10035 soname_spec='${libname}${release}${shared_ext}$major'
10036 ;;
10037 esac
10038 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10039 postinstall_cmds='chmod 555 $lib'
10040 # or fails outright, so override atomically:
10041 install_override_mode=555
10042 ;;
10043
10044interix[3-9]*)
10045 version_type=linux
10046 need_lib_prefix=no
10047 need_version=no
10048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10049 soname_spec='${libname}${release}${shared_ext}$major'
10050 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10051 shlibpath_var=LD_LIBRARY_PATH
10052 shlibpath_overrides_runpath=no
10053 hardcode_into_libs=yes
10054 ;;
10055
10056irix5* | irix6* | nonstopux*)
10057 case $host_os in
10058 nonstopux*) version_type=nonstopux ;;
10059 *)
10060 if test "$lt_cv_prog_gnu_ld" = yes; then
10061 version_type=linux
10062 else
10063 version_type=irix
10064 fi ;;
10065 esac
10066 need_lib_prefix=no
10067 need_version=no
10068 soname_spec='${libname}${release}${shared_ext}$major'
10069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10070 case $host_os in
10071 irix5* | nonstopux*)
10072 libsuff= shlibsuff=
10073 ;;
10074 *)
10075 case $LD in # libtool.m4 will add one of these switches to LD
10076 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10077 libsuff= shlibsuff= libmagic=32-bit;;
10078 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10079 libsuff=32 shlibsuff=N32 libmagic=N32;;
10080 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10081 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10082 *) libsuff= shlibsuff= libmagic=never-match;;
10083 esac
10084 ;;
10085 esac
10086 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10087 shlibpath_overrides_runpath=no
10088 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10089 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10090 hardcode_into_libs=yes
10091 ;;
10092
10093# No shared lib support for Linux oldld, aout, or coff.
10094linux*oldld* | linux*aout* | linux*coff*)
10095 dynamic_linker=no
10096 ;;
10097
10098# This must be Linux ELF.
10099linux* | k*bsd*-gnu | kopensolaris*-gnu)
10100 version_type=linux
10101 need_lib_prefix=no
10102 need_version=no
10103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10104 soname_spec='${libname}${release}${shared_ext}$major'
10105 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10106 shlibpath_var=LD_LIBRARY_PATH
10107 shlibpath_overrides_runpath=no
10108
10109 # Some binutils ld are patched to set DT_RUNPATH
10110 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10111 $as_echo_n "(cached) " >&6
10112else
10113 lt_cv_shlibpath_overrides_runpath=no
10114 save_LDFLAGS=$LDFLAGS
10115 save_libdir=$libdir
10116 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10117 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10119/* end confdefs.h. */
10120
10121int
10122main ()
10123{
10124
10125 ;
10126 return 0;
10127}
10128_ACEOF
10129if ac_fn_c_try_link "$LINENO"; then :
10130 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10131 lt_cv_shlibpath_overrides_runpath=yes
10132fi
10133fi
10134rm -f core conftest.err conftest.$ac_objext \
10135 conftest$ac_exeext conftest.$ac_ext
10136 LDFLAGS=$save_LDFLAGS
10137 libdir=$save_libdir
10138
10139fi
10140
10141 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10142
10143 # This implies no fast_install, which is unacceptable.
10144 # Some rework will be needed to allow for fast_install
10145 # before this can be enabled.
10146 hardcode_into_libs=yes
10147
10148 # Append ld.so.conf contents to the search path
10149 if test -f /etc/ld.so.conf; then
10150 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' ' '`
10151 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10152 fi
10153
10154 # We used to test for /lib/ld.so.1 and disable shared libraries on
10155 # powerpc, because MkLinux only supported shared libraries with the
10156 # GNU dynamic linker. Since this was broken with cross compilers,
10157 # most powerpc-linux boxes support dynamic linking these days and
10158 # people can always --disable-shared, the test was removed, and we
10159 # assume the GNU/Linux dynamic linker is in use.
10160 dynamic_linker='GNU/Linux ld.so'
10161 ;;
10162
10163netbsd*)
10164 version_type=sunos
10165 need_lib_prefix=no
10166 need_version=no
10167 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10169 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10170 dynamic_linker='NetBSD (a.out) ld.so'
10171 else
10172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10173 soname_spec='${libname}${release}${shared_ext}$major'
10174 dynamic_linker='NetBSD ld.elf_so'
10175 fi
10176 shlibpath_var=LD_LIBRARY_PATH
10177 shlibpath_overrides_runpath=yes
10178 hardcode_into_libs=yes
10179 ;;
10180
10181newsos6)
10182 version_type=linux
10183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10184 shlibpath_var=LD_LIBRARY_PATH
10185 shlibpath_overrides_runpath=yes
10186 ;;
10187
10188*nto* | *qnx*)
10189 version_type=qnx
10190 need_lib_prefix=no
10191 need_version=no
10192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10193 soname_spec='${libname}${release}${shared_ext}$major'
10194 shlibpath_var=LD_LIBRARY_PATH
10195 shlibpath_overrides_runpath=no
10196 hardcode_into_libs=yes
10197 dynamic_linker='ldqnx.so'
10198 ;;
10199
10200openbsd*)
10201 version_type=sunos
10202 sys_lib_dlsearch_path_spec="/usr/lib"
10203 need_lib_prefix=no
10204 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10205 case $host_os in
10206 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10207 *) need_version=no ;;
10208 esac
10209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10210 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10211 shlibpath_var=LD_LIBRARY_PATH
10212 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10213 case $host_os in
10214 openbsd2.[89] | openbsd2.[89].*)
10215 shlibpath_overrides_runpath=no
10216 ;;
10217 *)
10218 shlibpath_overrides_runpath=yes
10219 ;;
10220 esac
10221 else
10222 shlibpath_overrides_runpath=yes
10223 fi
10224 ;;
10225
10226os2*)
10227 libname_spec='$name'
10228 shrext_cmds=".dll"
10229 need_lib_prefix=no
10230 library_names_spec='$libname${shared_ext} $libname.a'
10231 dynamic_linker='OS/2 ld.exe'
10232 shlibpath_var=LIBPATH
10233 ;;
10234
10235osf3* | osf4* | osf5*)
10236 version_type=osf
10237 need_lib_prefix=no
10238 need_version=no
10239 soname_spec='${libname}${release}${shared_ext}$major'
10240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10241 shlibpath_var=LD_LIBRARY_PATH
10242 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10243 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10244 ;;
10245
10246rdos*)
10247 dynamic_linker=no
10248 ;;
10249
10250solaris*)
10251 version_type=linux
10252 need_lib_prefix=no
10253 need_version=no
10254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10255 soname_spec='${libname}${release}${shared_ext}$major'
10256 shlibpath_var=LD_LIBRARY_PATH
10257 shlibpath_overrides_runpath=yes
10258 hardcode_into_libs=yes
10259 # ldd complains unless libraries are executable
10260 postinstall_cmds='chmod +x $lib'
10261 ;;
10262
10263sunos4*)
10264 version_type=sunos
10265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10266 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10267 shlibpath_var=LD_LIBRARY_PATH
10268 shlibpath_overrides_runpath=yes
10269 if test "$with_gnu_ld" = yes; then
10270 need_lib_prefix=no
10271 fi
10272 need_version=yes
10273 ;;
10274
10275sysv4 | sysv4.3*)
10276 version_type=linux
10277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10278 soname_spec='${libname}${release}${shared_ext}$major'
10279 shlibpath_var=LD_LIBRARY_PATH
10280 case $host_vendor in
10281 sni)
10282 shlibpath_overrides_runpath=no
10283 need_lib_prefix=no
10284 runpath_var=LD_RUN_PATH
10285 ;;
10286 siemens)
10287 need_lib_prefix=no
10288 ;;
10289 motorola)
10290 need_lib_prefix=no
10291 need_version=no
10292 shlibpath_overrides_runpath=no
10293 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10294 ;;
10295 esac
10296 ;;
10297
10298sysv4*MP*)
10299 if test -d /usr/nec ;then
10300 version_type=linux
10301 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10302 soname_spec='$libname${shared_ext}.$major'
10303 shlibpath_var=LD_LIBRARY_PATH
10304 fi
10305 ;;
10306
10307sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10308 version_type=freebsd-elf
10309 need_lib_prefix=no
10310 need_version=no
10311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10312 soname_spec='${libname}${release}${shared_ext}$major'
10313 shlibpath_var=LD_LIBRARY_PATH
10314 shlibpath_overrides_runpath=yes
10315 hardcode_into_libs=yes
10316 if test "$with_gnu_ld" = yes; then
10317 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10318 else
10319 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10320 case $host_os in
10321 sco3.2v5*)
10322 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10323 ;;
10324 esac
10325 fi
10326 sys_lib_dlsearch_path_spec='/usr/lib'
10327 ;;
10328
10329tpf*)
10330 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10331 version_type=linux
10332 need_lib_prefix=no
10333 need_version=no
10334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10335 shlibpath_var=LD_LIBRARY_PATH
10336 shlibpath_overrides_runpath=no
10337 hardcode_into_libs=yes
10338 ;;
10339
10340uts4*)
10341 version_type=linux
10342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10343 soname_spec='${libname}${release}${shared_ext}$major'
10344 shlibpath_var=LD_LIBRARY_PATH
10345 ;;
10346
10347*)
10348 dynamic_linker=no
10349 ;;
10350esac
10351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10352$as_echo "$dynamic_linker" >&6; }
10353test "$dynamic_linker" = no && can_build_shared=no
10354
10355variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10356if test "$GCC" = yes; then
10357 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10358fi
10359
10360if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10361 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10362fi
10363if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10364 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10365fi
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10459$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10460hardcode_action=
10461if test -n "$hardcode_libdir_flag_spec" ||
10462 test -n "$runpath_var" ||
10463 test "X$hardcode_automatic" = "Xyes" ; then
10464
10465 # We can hardcode non-existent directories.
10466 if test "$hardcode_direct" != no &&
10467 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10468 # have to relink, otherwise we might link with an installed library
10469 # when we should be linking with a yet-to-be-installed one
10470 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10471 test "$hardcode_minus_L" != no; then
10472 # Linking always hardcodes the temporary library directory.
10473 hardcode_action=relink
10474 else
10475 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10476 hardcode_action=immediate
10477 fi
10478else
10479 # We cannot hardcode anything, or else we can only hardcode existing
10480 # directories.
10481 hardcode_action=unsupported
10482fi
10483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10484$as_echo "$hardcode_action" >&6; }
10485
10486if test "$hardcode_action" = relink ||
10487 test "$inherit_rpath" = yes; then
10488 # Fast installation is not supported
10489 enable_fast_install=no
10490elif test "$shlibpath_overrides_runpath" = yes ||
10491 test "$enable_shared" = no; then
10492 # Fast installation is not necessary
10493 enable_fast_install=needless
10494fi
10495
10496
10497
10498
10499
10500
10501 if test "x$enable_dlopen" != xyes; then
10502 enable_dlopen=unknown
10503 enable_dlopen_self=unknown
10504 enable_dlopen_self_static=unknown
10505else
10506 lt_cv_dlopen=no
10507 lt_cv_dlopen_libs=
10508
10509 case $host_os in
10510 beos*)
10511 lt_cv_dlopen="load_add_on"
10512 lt_cv_dlopen_libs=
10513 lt_cv_dlopen_self=yes
10514 ;;
10515
10516 mingw* | pw32* | cegcc*)
10517 lt_cv_dlopen="LoadLibrary"
10518 lt_cv_dlopen_libs=
10519 ;;
10520
10521 cygwin*)
10522 lt_cv_dlopen="dlopen"
10523 lt_cv_dlopen_libs=
10524 ;;
10525
10526 darwin*)
10527 # if libdl is installed we need to link against it
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10529$as_echo_n "checking for dlopen in -ldl... " >&6; }
10530if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10531 $as_echo_n "(cached) " >&6
10532else
10533 ac_check_lib_save_LIBS=$LIBS
10534LIBS="-ldl $LIBS"
10535cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10536/* end confdefs.h. */
10537
10538/* Override any GCC internal prototype to avoid an error.
10539 Use char because int might match the return type of a GCC
10540 builtin and then its argument prototype would still apply. */
10541#ifdef __cplusplus
10542extern "C"
10543#endif
10544char dlopen ();
10545int
10546main ()
10547{
10548return dlopen ();
10549 ;
10550 return 0;
10551}
10552_ACEOF
10553if ac_fn_c_try_link "$LINENO"; then :
10554 ac_cv_lib_dl_dlopen=yes
10555else
10556 ac_cv_lib_dl_dlopen=no
10557fi
10558rm -f core conftest.err conftest.$ac_objext \
10559 conftest$ac_exeext conftest.$ac_ext
10560LIBS=$ac_check_lib_save_LIBS
10561fi
10562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10563$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10564if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10565 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10566else
10567
10568 lt_cv_dlopen="dyld"
10569 lt_cv_dlopen_libs=
10570 lt_cv_dlopen_self=yes
10571
10572fi
10573
10574 ;;
10575
10576 *)
10577 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10578if test "x$ac_cv_func_shl_load" = x""yes; then :
10579 lt_cv_dlopen="shl_load"
10580else
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10582$as_echo_n "checking for shl_load in -ldld... " >&6; }
10583if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10584 $as_echo_n "(cached) " >&6
10585else
10586 ac_check_lib_save_LIBS=$LIBS
10587LIBS="-ldld $LIBS"
10588cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10589/* end confdefs.h. */
10590
10591/* Override any GCC internal prototype to avoid an error.
10592 Use char because int might match the return type of a GCC
10593 builtin and then its argument prototype would still apply. */
10594#ifdef __cplusplus
10595extern "C"
10596#endif
10597char shl_load ();
10598int
10599main ()
10600{
10601return shl_load ();
10602 ;
10603 return 0;
10604}
10605_ACEOF
10606if ac_fn_c_try_link "$LINENO"; then :
10607 ac_cv_lib_dld_shl_load=yes
10608else
10609 ac_cv_lib_dld_shl_load=no
10610fi
10611rm -f core conftest.err conftest.$ac_objext \
10612 conftest$ac_exeext conftest.$ac_ext
10613LIBS=$ac_check_lib_save_LIBS
10614fi
10615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10616$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10617if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10618 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10619else
10620 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10621if test "x$ac_cv_func_dlopen" = x""yes; then :
10622 lt_cv_dlopen="dlopen"
10623else
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10625$as_echo_n "checking for dlopen in -ldl... " >&6; }
10626if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
81ecdfbb 10627 $as_echo_n "(cached) " >&6
b7026657 10628else
81ecdfbb 10629 ac_check_lib_save_LIBS=$LIBS
6bb11ab3 10630LIBS="-ldl $LIBS"
81ecdfbb 10631cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 10632/* end confdefs.h. */
b7026657 10633
81ecdfbb
RW
10634/* Override any GCC internal prototype to avoid an error.
10635 Use char because int might match the return type of a GCC
10636 builtin and then its argument prototype would still apply. */
10637#ifdef __cplusplus
10638extern "C"
10639#endif
6bb11ab3 10640char dlopen ();
81ecdfbb
RW
10641int
10642main ()
10643{
6bb11ab3 10644return dlopen ();
81ecdfbb
RW
10645 ;
10646 return 0;
10647}
b7026657 10648_ACEOF
81ecdfbb 10649if ac_fn_c_try_link "$LINENO"; then :
6bb11ab3 10650 ac_cv_lib_dl_dlopen=yes
c906108c 10651else
6bb11ab3 10652 ac_cv_lib_dl_dlopen=no
b7026657 10653fi
81ecdfbb
RW
10654rm -f core conftest.err conftest.$ac_objext \
10655 conftest$ac_exeext conftest.$ac_ext
10656LIBS=$ac_check_lib_save_LIBS
b7026657 10657fi
6bb11ab3
L
10658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10659$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10660if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10661 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10662else
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10664$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10665if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
81ecdfbb 10666 $as_echo_n "(cached) " >&6
b7026657 10667else
81ecdfbb 10668 ac_check_lib_save_LIBS=$LIBS
6bb11ab3 10669LIBS="-lsvld $LIBS"
81ecdfbb 10670cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 10671/* end confdefs.h. */
b7026657 10672
81ecdfbb
RW
10673/* Override any GCC internal prototype to avoid an error.
10674 Use char because int might match the return type of a GCC
10675 builtin and then its argument prototype would still apply. */
10676#ifdef __cplusplus
10677extern "C"
10678#endif
6bb11ab3 10679char dlopen ();
81ecdfbb
RW
10680int
10681main ()
10682{
6bb11ab3 10683return dlopen ();
81ecdfbb
RW
10684 ;
10685 return 0;
10686}
b7026657 10687_ACEOF
81ecdfbb 10688if ac_fn_c_try_link "$LINENO"; then :
6bb11ab3 10689 ac_cv_lib_svld_dlopen=yes
c906108c 10690else
6bb11ab3 10691 ac_cv_lib_svld_dlopen=no
b7026657 10692fi
81ecdfbb
RW
10693rm -f core conftest.err conftest.$ac_objext \
10694 conftest$ac_exeext conftest.$ac_ext
10695LIBS=$ac_check_lib_save_LIBS
b7026657 10696fi
6bb11ab3
L
10697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10698$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10699if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10700 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
5912fadd 10701else
6bb11ab3
L
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10703$as_echo_n "checking for dld_link in -ldld... " >&6; }
10704if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
81ecdfbb 10705 $as_echo_n "(cached) " >&6
b7026657 10706else
6bb11ab3
L
10707 ac_check_lib_save_LIBS=$LIBS
10708LIBS="-ldld $LIBS"
81ecdfbb 10709cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 10710/* end confdefs.h. */
b7026657 10711
81ecdfbb
RW
10712/* Override any GCC internal prototype to avoid an error.
10713 Use char because int might match the return type of a GCC
10714 builtin and then its argument prototype would still apply. */
10715#ifdef __cplusplus
10716extern "C"
10717#endif
6bb11ab3 10718char dld_link ();
81ecdfbb
RW
10719int
10720main ()
10721{
6bb11ab3 10722return dld_link ();
81ecdfbb
RW
10723 ;
10724 return 0;
10725}
b7026657 10726_ACEOF
6bb11ab3
L
10727if ac_fn_c_try_link "$LINENO"; then :
10728 ac_cv_lib_dld_dld_link=yes
10729else
10730 ac_cv_lib_dld_dld_link=no
10731fi
10732rm -f core conftest.err conftest.$ac_objext \
10733 conftest$ac_exeext conftest.$ac_ext
10734LIBS=$ac_check_lib_save_LIBS
10735fi
10736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10737$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10738if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10739 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10740fi
10741
10742
10743fi
10744
10745
10746fi
10747
10748
10749fi
10750
10751
10752fi
10753
10754
10755fi
10756
10757 ;;
10758 esac
10759
10760 if test "x$lt_cv_dlopen" != xno; then
10761 enable_dlopen=yes
b7026657 10762 else
6bb11ab3
L
10763 enable_dlopen=no
10764 fi
10765
10766 case $lt_cv_dlopen in
10767 dlopen)
10768 save_CPPFLAGS="$CPPFLAGS"
10769 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10770
10771 save_LDFLAGS="$LDFLAGS"
10772 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10773
10774 save_LIBS="$LIBS"
10775 LIBS="$lt_cv_dlopen_libs $LIBS"
10776
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10778$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10779if test "${lt_cv_dlopen_self+set}" = set; then :
10780 $as_echo_n "(cached) " >&6
10781else
10782 if test "$cross_compiling" = yes; then :
10783 lt_cv_dlopen_self=cross
10784else
10785 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10786 lt_status=$lt_dlunknown
10787 cat > conftest.$ac_ext <<_LT_EOF
0cb8d851 10788#line 10788 "configure"
6bb11ab3
L
10789#include "confdefs.h"
10790
10791#if HAVE_DLFCN_H
10792#include <dlfcn.h>
10793#endif
10794
10795#include <stdio.h>
10796
10797#ifdef RTLD_GLOBAL
10798# define LT_DLGLOBAL RTLD_GLOBAL
10799#else
10800# ifdef DL_GLOBAL
10801# define LT_DLGLOBAL DL_GLOBAL
10802# else
10803# define LT_DLGLOBAL 0
10804# endif
10805#endif
10806
10807/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10808 find out it does not work in some platform. */
10809#ifndef LT_DLLAZY_OR_NOW
10810# ifdef RTLD_LAZY
10811# define LT_DLLAZY_OR_NOW RTLD_LAZY
10812# else
10813# ifdef DL_LAZY
10814# define LT_DLLAZY_OR_NOW DL_LAZY
10815# else
10816# ifdef RTLD_NOW
10817# define LT_DLLAZY_OR_NOW RTLD_NOW
10818# else
10819# ifdef DL_NOW
10820# define LT_DLLAZY_OR_NOW DL_NOW
10821# else
10822# define LT_DLLAZY_OR_NOW 0
10823# endif
10824# endif
10825# endif
10826# endif
10827#endif
10828
10829/* When -fvisbility=hidden is used, assume the code has been annotated
10830 correspondingly for the symbols needed. */
10831#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10832void fnord () __attribute__((visibility("default")));
10833#endif
10834
10835void fnord () { int i=42; }
10836int main ()
10837{
10838 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10839 int status = $lt_dlunknown;
10840
10841 if (self)
10842 {
10843 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10844 else
10845 {
10846 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10847 else puts (dlerror ());
10848 }
10849 /* dlclose (self); */
10850 }
10851 else
10852 puts (dlerror ());
10853
10854 return status;
10855}
10856_LT_EOF
10857 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10858 (eval $ac_link) 2>&5
10859 ac_status=$?
10860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10861 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10862 (./conftest; exit; ) >&5 2>/dev/null
10863 lt_status=$?
10864 case x$lt_status in
10865 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10866 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10867 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10868 esac
10869 else :
10870 # compilation failed
10871 lt_cv_dlopen_self=no
b7026657 10872 fi
c906108c 10873fi
6bb11ab3
L
10874rm -fr conftest*
10875
10876
c906108c 10877fi
6bb11ab3
L
10878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10879$as_echo "$lt_cv_dlopen_self" >&6; }
b7026657 10880
6bb11ab3
L
10881 if test "x$lt_cv_dlopen_self" = xyes; then
10882 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10884$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10885if test "${lt_cv_dlopen_self_static+set}" = set; then :
10886 $as_echo_n "(cached) " >&6
c906108c 10887else
6bb11ab3
L
10888 if test "$cross_compiling" = yes; then :
10889 lt_cv_dlopen_self_static=cross
10890else
10891 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10892 lt_status=$lt_dlunknown
10893 cat > conftest.$ac_ext <<_LT_EOF
0cb8d851 10894#line 10894 "configure"
6bb11ab3
L
10895#include "confdefs.h"
10896
10897#if HAVE_DLFCN_H
10898#include <dlfcn.h>
10899#endif
10900
10901#include <stdio.h>
10902
10903#ifdef RTLD_GLOBAL
10904# define LT_DLGLOBAL RTLD_GLOBAL
10905#else
10906# ifdef DL_GLOBAL
10907# define LT_DLGLOBAL DL_GLOBAL
10908# else
10909# define LT_DLGLOBAL 0
10910# endif
10911#endif
10912
10913/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10914 find out it does not work in some platform. */
10915#ifndef LT_DLLAZY_OR_NOW
10916# ifdef RTLD_LAZY
10917# define LT_DLLAZY_OR_NOW RTLD_LAZY
10918# else
10919# ifdef DL_LAZY
10920# define LT_DLLAZY_OR_NOW DL_LAZY
10921# else
10922# ifdef RTLD_NOW
10923# define LT_DLLAZY_OR_NOW RTLD_NOW
10924# else
10925# ifdef DL_NOW
10926# define LT_DLLAZY_OR_NOW DL_NOW
10927# else
10928# define LT_DLLAZY_OR_NOW 0
10929# endif
10930# endif
10931# endif
10932# endif
10933#endif
10934
10935/* When -fvisbility=hidden is used, assume the code has been annotated
10936 correspondingly for the symbols needed. */
10937#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10938void fnord () __attribute__((visibility("default")));
10939#endif
10940
10941void fnord () { int i=42; }
10942int main ()
10943{
10944 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10945 int status = $lt_dlunknown;
10946
10947 if (self)
10948 {
10949 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10950 else
10951 {
10952 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10953 else puts (dlerror ());
10954 }
10955 /* dlclose (self); */
10956 }
10957 else
10958 puts (dlerror ());
10959
10960 return status;
10961}
10962_LT_EOF
10963 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10964 (eval $ac_link) 2>&5
10965 ac_status=$?
10966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10967 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10968 (./conftest; exit; ) >&5 2>/dev/null
10969 lt_status=$?
10970 case x$lt_status in
10971 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10972 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10973 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10974 esac
10975 else :
10976 # compilation failed
10977 lt_cv_dlopen_self_static=no
10978 fi
b7026657 10979fi
6bb11ab3
L
10980rm -fr conftest*
10981
10982
b7026657 10983fi
6bb11ab3
L
10984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10985$as_echo "$lt_cv_dlopen_self_static" >&6; }
10986 fi
10987
10988 CPPFLAGS="$save_CPPFLAGS"
10989 LDFLAGS="$save_LDFLAGS"
10990 LIBS="$save_LIBS"
10991 ;;
10992 esac
10993
10994 case $lt_cv_dlopen_self in
10995 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10996 *) enable_dlopen_self=unknown ;;
10997 esac
10998
10999 case $lt_cv_dlopen_self_static in
11000 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11001 *) enable_dlopen_self_static=unknown ;;
11002 esac
11003fi
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021striplib=
11022old_striplib=
11023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11024$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11025if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11026 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11027 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11029$as_echo "yes" >&6; }
11030else
11031# FIXME - insert some real tests, host_os isn't really good enough
11032 case $host_os in
11033 darwin*)
11034 if test -n "$STRIP" ; then
11035 striplib="$STRIP -x"
11036 old_striplib="$STRIP -S"
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11038$as_echo "yes" >&6; }
11039 else
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11041$as_echo "no" >&6; }
11042 fi
11043 ;;
11044 *)
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11046$as_echo "no" >&6; }
11047 ;;
11048 esac
11049fi
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062 # Report which library types will actually be built
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11064$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11066$as_echo "$can_build_shared" >&6; }
11067
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11069$as_echo_n "checking whether to build shared libraries... " >&6; }
11070 test "$can_build_shared" = "no" && enable_shared=no
11071
11072 # On AIX, shared libraries and static libraries use the same namespace, and
11073 # are all built from PIC.
11074 case $host_os in
11075 aix3*)
11076 test "$enable_shared" = yes && enable_static=no
11077 if test -n "$RANLIB"; then
11078 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11079 postinstall_cmds='$RANLIB $lib'
11080 fi
11081 ;;
11082
11083 aix[4-9]*)
11084 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11085 test "$enable_shared" = yes && enable_static=no
11086 fi
11087 ;;
11088 esac
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11090$as_echo "$enable_shared" >&6; }
11091
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11093$as_echo_n "checking whether to build static libraries... " >&6; }
11094 # Make sure either enable_shared or enable_static is yes.
11095 test "$enable_shared" = yes || enable_static=yes
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11097$as_echo "$enable_static" >&6; }
11098
11099
11100
11101
11102fi
11103ac_ext=c
11104ac_cpp='$CPP $CPPFLAGS'
11105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11107ac_compiler_gnu=$ac_cv_c_compiler_gnu
11108
11109CC="$lt_save_CC"
11110
11111
11112
11113
11114
11115
11116
11117
11118
b7026657 11119
b7026657 11120
c906108c 11121
b7026657 11122
6bb11ab3
L
11123 ac_config_commands="$ac_config_commands libtool"
11124
11125
11126
11127
11128# Only expand once:
11129
11130
5912fadd 11131
b7026657 11132
81ecdfbb 11133. ${srcdir}/../../bfd/configure.host
b7026657 11134
b7026657 11135
b7026657 11136
31e6ad7d
MF
11137
11138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11139$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11140 # Check whether --enable-maintainer-mode was given.
81ecdfbb 11141if test "${enable_maintainer_mode+set}" = set; then :
31e6ad7d
MF
11142 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11143else
11144 USE_MAINTAINER_MODE=no
c906108c 11145fi
31e6ad7d
MF
11146
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11148$as_echo "$USE_MAINTAINER_MODE" >&6; }
11149 if test $USE_MAINTAINER_MODE = yes; then
11150 MAINTAINER_MODE_TRUE=
11151 MAINTAINER_MODE_FALSE='#'
b7026657 11152else
31e6ad7d
MF
11153 MAINTAINER_MODE_TRUE='#'
11154 MAINTAINER_MODE_FALSE=
c906108c 11155fi
b7026657 11156
31e6ad7d
MF
11157 MAINT=$MAINTAINER_MODE_TRUE
11158
11159
b7026657 11160
b7026657 11161
81ecdfbb
RW
11162# Check whether --enable-sim-bswap was given.
11163if test "${enable_sim_bswap+set}" = set; then :
11164 enableval=$enable_sim_bswap; case "${enableval}" in
11165 yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
11166 no) sim_bswap="-DWITH_BSWAP=0";;
11167 *) as_fn_error "\"--enable-sim-bswap does not take a value\"" "$LINENO" 5; sim_bswap="";;
11168esac
11169if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
11170 echo "Setting bswap flags = $sim_bswap" 6>&1
11171fi
11172else
11173 sim_bswap=""
c906108c 11174fi
b7026657
AC
11175
11176
11177
81ecdfbb
RW
11178# Check whether --enable-sim-cflags was given.
11179if test "${enable_sim_cflags+set}" = set; then :
11180 enableval=$enable_sim_cflags; case "${enableval}" in
11181 yes) sim_cflags="-O2 -fomit-frame-pointer";;
11182 trace) as_fn_error "\"Please use --enable-sim-debug instead.\"" "$LINENO" 5; sim_cflags="";;
11183 no) sim_cflags="";;
11184 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11185esac
11186if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
11187 echo "Setting sim cflags = $sim_cflags" 6>&1
11188fi
b7026657 11189else
81ecdfbb
RW
11190 sim_cflags=""
11191fi
c906108c 11192
c906108c 11193
b7026657 11194
81ecdfbb
RW
11195# Check whether --enable-sim-debug was given.
11196if test "${enable_sim_debug+set}" = set; then :
11197 enableval=$enable_sim_debug; case "${enableval}" in
11198 yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
11199 no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
11200 *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
11201esac
11202if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
11203 echo "Setting sim debug = $sim_debug" 6>&1
b7026657 11204fi
81ecdfbb
RW
11205else
11206 sim_debug=""
c906108c 11207fi
b7026657 11208
b7026657 11209
b7026657 11210
81ecdfbb
RW
11211# Check whether --enable-sim-stdio was given.
11212if test "${enable_sim_stdio+set}" = set; then :
11213 enableval=$enable_sim_stdio; case "${enableval}" in
11214 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
11215 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
11216 *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-stdio\"" "$LINENO" 5; sim_stdio="";;
11217esac
11218if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
11219 echo "Setting stdio flags = $sim_stdio" 6>&1
b7026657 11220fi
81ecdfbb
RW
11221else
11222 sim_stdio=""
b7026657 11223fi
c906108c 11224
c906108c 11225
b7026657 11226
81ecdfbb
RW
11227# Check whether --enable-sim-trace was given.
11228if test "${enable_sim_trace+set}" = set; then :
11229 enableval=$enable_sim_trace; case "${enableval}" in
a3487082
MF
11230 yes) sim_trace="-DWITH_TRACE=-1";;
11231 no) sim_trace="-DWITH_TRACE=0";;
81ecdfbb 11232 [-0-9]*)
a3487082 11233 sim_trace="-DWITH_TRACE='(${enableval})'";;
2232061b 11234 [[:lower:]]*)
81ecdfbb
RW
11235 sim_trace=""
11236 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
11237 if test x"$sim_trace" = x; then
11238 sim_trace="-DWITH_TRACE='(TRACE_$x"
11239 else
11240 sim_trace="${sim_trace}|TRACE_$x"
11241 fi
11242 done
11243 sim_trace="$sim_trace)'" ;;
11244esac
11245if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
11246 echo "Setting sim trace = $sim_trace" 6>&1
11247fi
c906108c 11248else
81ecdfbb
RW
11249 sim_trace=""
11250fi
11251
b7026657 11252
b7026657 11253
81ecdfbb
RW
11254# Check whether --enable-sim-profile was given.
11255if test "${enable_sim_profile+set}" = set; then :
11256 enableval=$enable_sim_profile; case "${enableval}" in
11257 yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
11258 no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
11259 [-0-9]*)
11260 sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
11261 [a-z]*)
11262 sim_profile=""
11263 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
11264 if test x"$sim_profile" = x; then
11265 sim_profile="-DWITH_PROFILE='(PROFILE_$x"
11266 else
11267 sim_profile="${sim_profile}|PROFILE_$x"
11268 fi
11269 done
11270 sim_profile="$sim_profile)'" ;;
11271esac
11272if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
11273 echo "Setting sim profile = $sim_profile" 6>&1
b7026657 11274fi
81ecdfbb
RW
11275else
11276 sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"
b7026657 11277fi
c906108c 11278
c906108c
SS
11279
11280
79e1e459 11281
81ecdfbb
RW
11282# Check whether --with-pkgversion was given.
11283if test "${with_pkgversion+set}" = set; then :
11284 withval=$with_pkgversion; case "$withval" in
11285 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
11286 no) PKGVERSION= ;;
11287 *) PKGVERSION="($withval) " ;;
11288 esac
79e1e459 11289else
bf12d44e 11290 PKGVERSION="(SIM) "
79e1e459
HPN
11291
11292fi
79e1e459 11293
79e1e459 11294
79e1e459 11295
79e1e459 11296
79e1e459 11297
81ecdfbb
RW
11298# Check whether --with-bugurl was given.
11299if test "${with_bugurl+set}" = set; then :
11300 withval=$with_bugurl; case "$withval" in
11301 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
11302 no) BUGURL=
11303 ;;
11304 *) BUGURL="$withval"
11305 ;;
11306 esac
79e1e459 11307else
81ecdfbb
RW
11308 BUGURL="http://www.gnu.org/software/gdb/bugs/"
11309
79e1e459 11310fi
c906108c 11311
6efef468
JM
11312 case ${BUGURL} in
11313 "")
11314 REPORT_BUGS_TO=
11315 REPORT_BUGS_TEXI=
11316 ;;
11317 *)
81ecdfbb
RW
11318 REPORT_BUGS_TO="<$BUGURL>"
11319 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
11320 ;;
11321 esac;
11322
11323
11324
b7026657 11325
b7026657 11326cat >>confdefs.h <<_ACEOF
81ecdfbb 11327#define PKGVERSION "$PKGVERSION"
b7026657 11328_ACEOF
697afb65 11329
697afb65 11330
81ecdfbb
RW
11331cat >>confdefs.h <<_ACEOF
11332#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
b7026657 11333_ACEOF
697afb65 11334
b7026657 11335
81ecdfbb
RW
11336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11337$as_echo_n "checking return type of signal handlers... " >&6; }
11338if test "${ac_cv_type_signal+set}" = set; then :
11339 $as_echo_n "(cached) " >&6
11340else
11341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 11342/* end confdefs.h. */
697afb65 11343#include <sys/types.h>
81ecdfbb
RW
11344#include <signal.h>
11345
b7026657
AC
11346int
11347main ()
11348{
81ecdfbb 11349return *(signal (0, 0)) (0) == 1;
b7026657
AC
11350 ;
11351 return 0;
11352}
11353_ACEOF
81ecdfbb
RW
11354if ac_fn_c_try_compile "$LINENO"; then :
11355 ac_cv_type_signal=int
697afb65 11356else
81ecdfbb 11357 ac_cv_type_signal=void
697afb65 11358fi
81ecdfbb 11359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
697afb65 11360fi
81ecdfbb
RW
11361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11362$as_echo "$ac_cv_type_signal" >&6; }
11363
b7026657 11364cat >>confdefs.h <<_ACEOF
81ecdfbb 11365#define RETSIGTYPE $ac_cv_type_signal
b7026657 11366_ACEOF
697afb65 11367
697afb65 11368
697afb65 11369
b7026657 11370
697afb65 11371
81ecdfbb
RW
11372sim_link_files=
11373sim_link_links=
b7026657 11374
81ecdfbb
RW
11375# targ-vals.def points to the libc macro description file.
11376case "${target}" in
11377*-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
11378esac
11379sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
11380sim_link_links="${sim_link_links} targ-vals.def"
11381
11382
6ffe910a 11383
81ecdfbb
RW
11384# Put a useful copy of CPP_FOR_TARGET in Makefile.
11385# This is only used to build the target values header files. These files are
11386# shipped with distributions so CPP_FOR_TARGET only needs to work in
11387# developer's trees. This value is borrowed from ../../Makefile.in.
11388CPP_FOR_TARGET="\` \
11389 if test -f \$\${rootme}/../../gcc/Makefile ; then \
11390 if test -f \$\${rootme}/../../\$(TARGET_SUBDIR)/newlib/Makefile ; then \
11391 echo \$\${rootme}/../../gcc/xgcc -B\$\${rootme}/../../gcc/ -idirafter \$\${rootme}/../../\$(TARGET_SUBDIR)/newlib/targ-include -idirafter \$(srcroot)/newlib/libc/include -nostdinc; \
11392 else \
11393 echo \$\${rootme}/../../gcc/xgcc -B\$\${rootme}/../../gcc/; \
11394 fi; \
11395 else \
11396 if test '\$(host_canonical)' = '\$(target_canonical)' ; then \
11397 echo \$(CC); \
11398 else \
11399 t='\$(program_transform_name)'; echo gcc | sed -e 's/x/x/' \$\$t; \
11400 fi; \
11401 fi\` -E"
11402
11403
11404# Set TARGET_SUBDIR, needed by CPP_FOR_TARGET.
11405if test x"${host}" = x"${target}" ; then
11406 TARGET_SUBDIR="."
11407else
11408 TARGET_SUBDIR=${target_alias}
697afb65 11409fi
81ecdfbb
RW
11410
11411
11412# These aren't all needed yet, but will be eventually.
11413for ac_header in stdlib.h string.h strings.h time.h sys/times.h sys/stat.h sys/mman.h
11414do :
11415 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11416ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11417eval as_val=\$$as_ac_Header
11418 if test "x$as_val" = x""yes; then :
11419 cat >>confdefs.h <<_ACEOF
11420#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b7026657 11421_ACEOF
697afb65 11422
697afb65 11423fi
697afb65 11424
81ecdfbb 11425done
697afb65 11426
a13852d9 11427for ac_func in mmap munmap lstat truncate ftruncate posix_fallocate
81ecdfbb
RW
11428do :
11429 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11430ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11431eval as_val=\$$as_ac_var
11432 if test "x$as_val" = x""yes; then :
11433 cat >>confdefs.h <<_ACEOF
11434#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
b7026657 11435_ACEOF
b7026657 11436
81ecdfbb
RW
11437fi
11438done
11439
11440ac_fn_c_check_member "$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H
697afb65
HPN
11441#include <sys/types.h>
11442#endif
11443#ifdef HAVE_SYS_STAT_H
11444#include <sys/stat.h>
11445#endif
81ecdfbb
RW
11446"
11447if test "x$ac_cv_member_struct_stat_st_dev" = x""yes; then :
b7026657 11448
b7026657 11449cat >>confdefs.h <<_ACEOF
81ecdfbb 11450#define HAVE_STRUCT_STAT_ST_DEV 1
b7026657 11451_ACEOF
697afb65 11452
697afb65 11453
0aec8eb1 11454fi
81ecdfbb 11455ac_fn_c_check_member "$LINENO" "struct stat" "st_ino" "ac_cv_member_struct_stat_st_ino" "#ifdef HAVE_SYS_TYPES_H
697afb65
HPN
11456#include <sys/types.h>
11457#endif
11458#ifdef HAVE_SYS_STAT_H
11459#include <sys/stat.h>
11460#endif
81ecdfbb
RW
11461"
11462if test "x$ac_cv_member_struct_stat_st_ino" = x""yes; then :
697afb65 11463
81ecdfbb
RW
11464cat >>confdefs.h <<_ACEOF
11465#define HAVE_STRUCT_STAT_ST_INO 1
b7026657 11466_ACEOF
b7026657 11467
81ecdfbb 11468
0aec8eb1 11469fi
81ecdfbb 11470ac_fn_c_check_member "$LINENO" "struct stat" "st_mode" "ac_cv_member_struct_stat_st_mode" "#ifdef HAVE_SYS_TYPES_H
697afb65
HPN
11471#include <sys/types.h>
11472#endif
11473#ifdef HAVE_SYS_STAT_H
11474#include <sys/stat.h>
11475#endif
81ecdfbb
RW
11476"
11477if test "x$ac_cv_member_struct_stat_st_mode" = x""yes; then :
b7026657 11478
b7026657 11479cat >>confdefs.h <<_ACEOF
81ecdfbb 11480#define HAVE_STRUCT_STAT_ST_MODE 1
b7026657 11481_ACEOF
697afb65 11482
697afb65 11483
0aec8eb1 11484fi
81ecdfbb 11485ac_fn_c_check_member "$LINENO" "struct stat" "st_nlink" "ac_cv_member_struct_stat_st_nlink" "#ifdef HAVE_SYS_TYPES_H
697afb65
HPN
11486#include <sys/types.h>
11487#endif
11488#ifdef HAVE_SYS_STAT_H
11489#include <sys/stat.h>
11490#endif
81ecdfbb
RW
11491"
11492if test "x$ac_cv_member_struct_stat_st_nlink" = x""yes; then :
697afb65 11493
81ecdfbb
RW
11494cat >>confdefs.h <<_ACEOF
11495#define HAVE_STRUCT_STAT_ST_NLINK 1
b7026657 11496_ACEOF
b7026657 11497
81ecdfbb 11498
0aec8eb1 11499fi
81ecdfbb 11500ac_fn_c_check_member "$LINENO" "struct stat" "st_uid" "ac_cv_member_struct_stat_st_uid" "#ifdef HAVE_SYS_TYPES_H
697afb65
HPN
11501#include <sys/types.h>
11502#endif
11503#ifdef HAVE_SYS_STAT_H
11504#include <sys/stat.h>
11505#endif
81ecdfbb
RW
11506"
11507if test "x$ac_cv_member_struct_stat_st_uid" = x""yes; then :
b7026657 11508
b7026657 11509cat >>confdefs.h <<_ACEOF
81ecdfbb 11510#define HAVE_STRUCT_STAT_ST_UID 1
b7026657 11511_ACEOF
697afb65 11512
697afb65 11513
0aec8eb1 11514fi
81ecdfbb 11515ac_fn_c_check_member "$LINENO" "struct stat" "st_gid" "ac_cv_member_struct_stat_st_gid" "#ifdef HAVE_SYS_TYPES_H
697afb65
HPN
11516#include <sys/types.h>
11517#endif
11518#ifdef HAVE_SYS_STAT_H
11519#include <sys/stat.h>
11520#endif
81ecdfbb
RW
11521"
11522if test "x$ac_cv_member_struct_stat_st_gid" = x""yes; then :
697afb65 11523
81ecdfbb
RW
11524cat >>confdefs.h <<_ACEOF
11525#define HAVE_STRUCT_STAT_ST_GID 1
b7026657 11526_ACEOF
b7026657 11527
81ecdfbb 11528
0aec8eb1 11529fi
81ecdfbb 11530ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "#ifdef HAVE_SYS_TYPES_H
697afb65
HPN
11531#include <sys/types.h>
11532#endif
11533#ifdef HAVE_SYS_STAT_H
11534#include <sys/stat.h>
11535#endif
81ecdfbb
RW
11536"
11537if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
b7026657 11538
b7026657 11539cat >>confdefs.h <<_ACEOF
81ecdfbb 11540#define HAVE_STRUCT_STAT_ST_RDEV 1
b7026657 11541_ACEOF
697afb65 11542
697afb65 11543
0aec8eb1 11544fi
81ecdfbb 11545ac_fn_c_check_member "$LINENO" "struct stat" "st_size" "ac_cv_member_struct_stat_st_size" "#ifdef HAVE_SYS_TYPES_H
697afb65
HPN
11546#include <sys/types.h>
11547#endif
11548#ifdef HAVE_SYS_STAT_H
11549#include <sys/stat.h>
11550#endif
81ecdfbb
RW
11551"
11552if test "x$ac_cv_member_struct_stat_st_size" = x""yes; then :
697afb65 11553
81ecdfbb
RW
11554cat >>confdefs.h <<_ACEOF
11555#define HAVE_STRUCT_STAT_ST_SIZE 1
b7026657 11556_ACEOF
b7026657 11557
81ecdfbb 11558
0aec8eb1 11559fi
81ecdfbb 11560ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#ifdef HAVE_SYS_TYPES_H
697afb65
HPN
11561#include <sys/types.h>
11562#endif
11563#ifdef HAVE_SYS_STAT_H
11564#include <sys/stat.h>
11565#endif
81ecdfbb
RW
11566"
11567if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
697afb65 11568
81ecdfbb
RW
11569cat >>confdefs.h <<_ACEOF
11570#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
b7026657 11571_ACEOF
b7026657 11572
81ecdfbb 11573
0aec8eb1 11574fi
81ecdfbb
RW
11575ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#ifdef HAVE_SYS_TYPES_H
11576#include <sys/types.h>
11577#endif
11578#ifdef HAVE_SYS_STAT_H
11579#include <sys/stat.h>
11580#endif
11581"
11582if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
11583
b7026657 11584cat >>confdefs.h <<_ACEOF
81ecdfbb 11585#define HAVE_STRUCT_STAT_ST_BLOCKS 1
b7026657 11586_ACEOF
697afb65 11587
697afb65 11588
0aec8eb1 11589fi
81ecdfbb 11590ac_fn_c_check_member "$LINENO" "struct stat" "st_atime" "ac_cv_member_struct_stat_st_atime" "#ifdef HAVE_SYS_TYPES_H
697afb65
HPN
11591#include <sys/types.h>
11592#endif
11593#ifdef HAVE_SYS_STAT_H
11594#include <sys/stat.h>
11595#endif
81ecdfbb
RW
11596"
11597if test "x$ac_cv_member_struct_stat_st_atime" = x""yes; then :
697afb65 11598
81ecdfbb
RW
11599cat >>confdefs.h <<_ACEOF
11600#define HAVE_STRUCT_STAT_ST_ATIME 1
b7026657 11601_ACEOF
b7026657 11602
81ecdfbb 11603
0aec8eb1 11604fi
81ecdfbb 11605ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "#ifdef HAVE_SYS_TYPES_H
697afb65
HPN
11606#include <sys/types.h>
11607#endif
11608#ifdef HAVE_SYS_STAT_H
11609#include <sys/stat.h>
11610#endif
81ecdfbb
RW
11611"
11612if test "x$ac_cv_member_struct_stat_st_mtime" = x""yes; then :
697afb65 11613
81ecdfbb
RW
11614cat >>confdefs.h <<_ACEOF
11615#define HAVE_STRUCT_STAT_ST_MTIME 1
b7026657 11616_ACEOF
b7026657 11617
81ecdfbb 11618
0aec8eb1 11619fi
81ecdfbb
RW
11620ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime" "ac_cv_member_struct_stat_st_ctime" "#ifdef HAVE_SYS_TYPES_H
11621#include <sys/types.h>
11622#endif
11623#ifdef HAVE_SYS_STAT_H
11624#include <sys/stat.h>
11625#endif
11626"
11627if test "x$ac_cv_member_struct_stat_st_ctime" = x""yes; then :
11628
b7026657 11629cat >>confdefs.h <<_ACEOF
697afb65 11630#define HAVE_STRUCT_STAT_ST_CTIME 1
b7026657 11631_ACEOF
697afb65 11632
0aec8eb1 11633
697afb65
HPN
11634fi
11635
75005b3a
MF
11636ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
11637#include <sys/socket.h>
11638
11639"
11640if test "x$ac_cv_type_socklen_t" = x""yes; then :
11641
11642cat >>confdefs.h <<_ACEOF
11643#define HAVE_SOCKLEN_T 1
11644_ACEOF
11645
11646
11647fi
11648
11649
81ecdfbb
RW
11650ac_config_files="$ac_config_files Makefile"
11651
11652ac_config_commands="$ac_config_commands default"
11653
b7026657 11654cat >confcache <<\_ACEOF
c906108c
SS
11655# This file is a shell script that caches the results of configure
11656# tests run on this system so they can be shared between configure
b7026657
AC
11657# scripts and configure runs, see configure's option --config-cache.
11658# It is not useful on other systems. If it contains results you don't
11659# want to keep, you may remove or edit it.
c906108c 11660#
b7026657
AC
11661# config.status only pays attention to the cache file if you give it
11662# the --recheck option to rerun configure.
c906108c 11663#
b7026657
AC
11664# `ac_cv_env_foo' variables (set or unset) will be overridden when
11665# loading this file, other *unset* `ac_cv_foo' will be assigned the
11666# following values.
11667
11668_ACEOF
11669
c906108c
SS
11670# The following way of writing the cache mishandles newlines in values,
11671# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 11672# So, we kill variables containing newlines.
c906108c
SS
11673# Ultrix sh set writes to stderr and can't be redirected directly,
11674# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
11675(
11676 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11677 eval ac_val=\$$ac_var
11678 case $ac_val in #(
11679 *${as_nl}*)
11680 case $ac_var in #(
11681 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11682$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11683 esac
11684 case $ac_var in #(
11685 _ | IFS | as_nl) ;; #(
11686 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11687 *) { eval $ac_var=; unset $ac_var;} ;;
11688 esac ;;
11689 esac
11690 done
11691
b7026657 11692 (set) 2>&1 |
81ecdfbb
RW
11693 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11694 *${as_nl}ac_space=\ *)
11695 # `set' does not quote correctly, so add quotes: double-quote
11696 # substitution turns \\\\ into \\, and sed turns \\ into \.
b7026657
AC
11697 sed -n \
11698 "s/'/'\\\\''/g;
11699 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 11700 ;; #(
b7026657
AC
11701 *)
11702 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 11703 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 11704 ;;
81ecdfbb
RW
11705 esac |
11706 sort
11707) |
b7026657 11708 sed '
81ecdfbb 11709 /^ac_cv_env_/b end
b7026657 11710 t clear
81ecdfbb 11711 :clear
b7026657
AC
11712 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11713 t end
81ecdfbb
RW
11714 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11715 :end' >>confcache
11716if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11717 if test -w "$cache_file"; then
11718 test "x$cache_file" != "x/dev/null" &&
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11720$as_echo "$as_me: updating cache $cache_file" >&6;}
b7026657 11721 cat confcache >$cache_file
c906108c 11722 else
81ecdfbb
RW
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11724$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
c906108c
SS
11725 fi
11726fi
11727rm -f confcache
11728
c906108c
SS
11729test "x$prefix" = xNONE && prefix=$ac_default_prefix
11730# Let make expand exec_prefix.
11731test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11732
c906108c
SS
11733DEFS=-DHAVE_CONFIG_H
11734
b7026657
AC
11735ac_libobjs=
11736ac_ltlibobjs=
11737for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11738 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
11739 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11740 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11741 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11742 # will be set to the directory where LIBOBJS objects are built.
11743 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11744 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
b7026657
AC
11745done
11746LIBOBJS=$ac_libobjs
c906108c 11747
b7026657
AC
11748LTLIBOBJS=$ac_ltlibobjs
11749
11750
0cb8d851 11751
db2e4d67
MF
11752if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
11753 as_fn_error "conditional \"GMAKE\" was never defined.
11754Usually this means the macro was only invoked conditionally." "$LINENO" 5
11755fi
6bb11ab3
L
11756if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
11757 as_fn_error "conditional \"PLUGINS\" was never defined.
11758Usually this means the macro was only invoked conditionally." "$LINENO" 5
11759fi
31e6ad7d
MF
11760if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11761 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
11762Usually this means the macro was only invoked conditionally." "$LINENO" 5
11763fi
b7026657
AC
11764
11765: ${CONFIG_STATUS=./config.status}
81ecdfbb 11766ac_write_fail=0
b7026657
AC
11767ac_clean_files_save=$ac_clean_files
11768ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
11769{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11770$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11771as_write_fail=0
11772cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
b7026657
AC
11773#! $SHELL
11774# Generated by $as_me.
c906108c 11775# Run this file to recreate the current configuration.
c906108c 11776# Compiler output produced by configure, useful for debugging
b7026657 11777# configure, is in config.log if it exists.
c906108c 11778
b7026657
AC
11779debug=false
11780ac_cs_recheck=false
11781ac_cs_silent=false
b7026657 11782
81ecdfbb
RW
11783SHELL=\${CONFIG_SHELL-$SHELL}
11784export SHELL
11785_ASEOF
11786cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11787## -------------------- ##
11788## M4sh Initialization. ##
11789## -------------------- ##
11790
11791# Be more Bourne compatible
11792DUALCASE=1; export DUALCASE # for MKS sh
11793if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b7026657
AC
11794 emulate sh
11795 NULLCMD=:
81ecdfbb 11796 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b7026657
AC
11797 # is contrary to our usage. Disable this feature.
11798 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
11799 setopt NO_GLOB_SUBST
11800else
11801 case `(set -o) 2>/dev/null` in #(
11802 *posix*) :
11803 set -o posix ;; #(
11804 *) :
11805 ;;
11806esac
b7026657 11807fi
b7026657 11808
81ecdfbb
RW
11809
11810as_nl='
11811'
11812export as_nl
11813# Printing a long string crashes Solaris 7 /usr/bin/printf.
11814as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11815as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11816as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11817# Prefer a ksh shell builtin over an external printf program on Solaris,
11818# but without wasting forks for bash or zsh.
11819if test -z "$BASH_VERSION$ZSH_VERSION" \
11820 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11821 as_echo='print -r --'
11822 as_echo_n='print -rn --'
11823elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11824 as_echo='printf %s\n'
11825 as_echo_n='printf %s'
11826else
11827 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11828 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11829 as_echo_n='/usr/ucb/echo -n'
11830 else
11831 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11832 as_echo_n_body='eval
11833 arg=$1;
11834 case $arg in #(
11835 *"$as_nl"*)
11836 expr "X$arg" : "X\\(.*\\)$as_nl";
11837 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11838 esac;
11839 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11840 '
11841 export as_echo_n_body
11842 as_echo_n='sh -c $as_echo_n_body as_echo'
11843 fi
11844 export as_echo_body
11845 as_echo='sh -c $as_echo_body as_echo'
11846fi
11847
11848# The user is always right.
11849if test "${PATH_SEPARATOR+set}" != set; then
11850 PATH_SEPARATOR=:
11851 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11852 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11853 PATH_SEPARATOR=';'
11854 }
b7026657
AC
11855fi
11856
11857
81ecdfbb
RW
11858# IFS
11859# We need space, tab and new line, in precisely that order. Quoting is
11860# there to prevent editors from complaining about space-tab.
11861# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11862# splitting by setting IFS to empty value.)
11863IFS=" "" $as_nl"
11864
11865# Find who we are. Look in the path if we contain no directory separator.
11866case $0 in #((
11867 *[\\/]* ) as_myself=$0 ;;
11868 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11869for as_dir in $PATH
11870do
11871 IFS=$as_save_IFS
11872 test -z "$as_dir" && as_dir=.
11873 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11874 done
11875IFS=$as_save_IFS
11876
11877 ;;
11878esac
11879# We did not find ourselves, most probably we were run as `sh COMMAND'
11880# in which case we are not to be found in the path.
11881if test "x$as_myself" = x; then
11882 as_myself=$0
11883fi
11884if test ! -f "$as_myself"; then
11885 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11886 exit 1
11887fi
11888
11889# Unset variables that we do not need and which cause bugs (e.g. in
11890# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11891# suppresses any "Segmentation fault" message there. '((' could
11892# trigger a bug in pdksh 5.2.14.
11893for as_var in BASH_ENV ENV MAIL MAILPATH
11894do eval test x\${$as_var+set} = xset \
11895 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11896done
b7026657
AC
11897PS1='$ '
11898PS2='> '
11899PS4='+ '
11900
11901# NLS nuisances.
81ecdfbb
RW
11902LC_ALL=C
11903export LC_ALL
11904LANGUAGE=C
11905export LANGUAGE
11906
11907# CDPATH.
11908(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11909
11910
11911# as_fn_error ERROR [LINENO LOG_FD]
11912# ---------------------------------
11913# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11914# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11915# script with status $?, using 1 if that was 0.
11916as_fn_error ()
11917{
11918 as_status=$?; test $as_status -eq 0 && as_status=1
11919 if test "$3"; then
11920 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11921 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
b7026657 11922 fi
81ecdfbb
RW
11923 $as_echo "$as_me: error: $1" >&2
11924 as_fn_exit $as_status
11925} # as_fn_error
11926
11927
11928# as_fn_set_status STATUS
11929# -----------------------
11930# Set $? to STATUS, without forking.
11931as_fn_set_status ()
11932{
11933 return $1
11934} # as_fn_set_status
11935
11936# as_fn_exit STATUS
11937# -----------------
11938# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11939as_fn_exit ()
11940{
11941 set +e
11942 as_fn_set_status $1
11943 exit $1
11944} # as_fn_exit
11945
11946# as_fn_unset VAR
11947# ---------------
11948# Portably unset VAR.
11949as_fn_unset ()
11950{
11951 { eval $1=; unset $1;}
11952}
11953as_unset=as_fn_unset
11954# as_fn_append VAR VALUE
11955# ----------------------
11956# Append the text in VALUE to the end of the definition contained in VAR. Take
11957# advantage of any shell optimizations that allow amortized linear growth over
11958# repeated appends, instead of the typical quadratic growth present in naive
11959# implementations.
11960if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11961 eval 'as_fn_append ()
11962 {
11963 eval $1+=\$2
11964 }'
11965else
11966 as_fn_append ()
11967 {
11968 eval $1=\$$1\$2
11969 }
11970fi # as_fn_append
11971
11972# as_fn_arith ARG...
11973# ------------------
11974# Perform arithmetic evaluation on the ARGs, and store the result in the
11975# global $as_val. Take advantage of shells that can avoid forks. The arguments
11976# must be portable across $(()) and expr.
11977if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11978 eval 'as_fn_arith ()
11979 {
11980 as_val=$(( $* ))
11981 }'
11982else
11983 as_fn_arith ()
11984 {
11985 as_val=`expr "$@" || test $? -eq 1`
11986 }
11987fi # as_fn_arith
c906108c 11988
81ecdfbb
RW
11989
11990if expr a : '\(a\)' >/dev/null 2>&1 &&
11991 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b7026657
AC
11992 as_expr=expr
11993else
11994 as_expr=false
11995fi
c906108c 11996
81ecdfbb 11997if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b7026657
AC
11998 as_basename=basename
11999else
12000 as_basename=false
12001fi
c906108c 12002
81ecdfbb
RW
12003if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12004 as_dirname=dirname
12005else
12006 as_dirname=false
12007fi
c906108c 12008
81ecdfbb 12009as_me=`$as_basename -- "$0" ||
b7026657
AC
12010$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12011 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
12012 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12013$as_echo X/"$0" |
12014 sed '/^.*\/\([^/][^/]*\)\/*$/{
12015 s//\1/
12016 q
12017 }
12018 /^X\/\(\/\/\)$/{
12019 s//\1/
12020 q
12021 }
12022 /^X\/\(\/\).*/{
12023 s//\1/
12024 q
12025 }
12026 s/.*/./; q'`
b7026657 12027
b7026657
AC
12028# Avoid depending upon Character Ranges.
12029as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12030as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12031as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12032as_cr_digits='0123456789'
12033as_cr_alnum=$as_cr_Letters$as_cr_digits
12034
81ecdfbb
RW
12035ECHO_C= ECHO_N= ECHO_T=
12036case `echo -n x` in #(((((
12037-n*)
12038 case `echo 'xy\c'` in
12039 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12040 xy) ECHO_C='\c';;
12041 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12042 ECHO_T=' ';;
12043 esac;;
12044*)
12045 ECHO_N='-n';;
b7026657
AC
12046esac
12047
81ecdfbb
RW
12048rm -f conf$$ conf$$.exe conf$$.file
12049if test -d conf$$.dir; then
12050 rm -f conf$$.dir/conf$$.file
b7026657 12051else
81ecdfbb
RW
12052 rm -f conf$$.dir
12053 mkdir conf$$.dir 2>/dev/null
b7026657 12054fi
81ecdfbb
RW
12055if (echo >conf$$.file) 2>/dev/null; then
12056 if ln -s conf$$.file conf$$ 2>/dev/null; then
b7026657 12057 as_ln_s='ln -s'
81ecdfbb
RW
12058 # ... but there are two gotchas:
12059 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12060 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12061 # In both cases, we have to default to `cp -p'.
12062 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12063 as_ln_s='cp -p'
12064 elif ln conf$$.file conf$$ 2>/dev/null; then
12065 as_ln_s=ln
12066 else
12067 as_ln_s='cp -p'
c906108c 12068 fi
b7026657
AC
12069else
12070 as_ln_s='cp -p'
12071fi
81ecdfbb
RW
12072rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12073rmdir conf$$.dir 2>/dev/null
12074
12075
12076# as_fn_mkdir_p
12077# -------------
12078# Create "$as_dir" as a directory, including parents if necessary.
12079as_fn_mkdir_p ()
12080{
12081
12082 case $as_dir in #(
12083 -*) as_dir=./$as_dir;;
12084 esac
12085 test -d "$as_dir" || eval $as_mkdir_p || {
12086 as_dirs=
12087 while :; do
12088 case $as_dir in #(
12089 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12090 *) as_qdir=$as_dir;;
12091 esac
12092 as_dirs="'$as_qdir' $as_dirs"
12093 as_dir=`$as_dirname -- "$as_dir" ||
12094$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12095 X"$as_dir" : 'X\(//\)[^/]' \| \
12096 X"$as_dir" : 'X\(//\)$' \| \
12097 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12098$as_echo X"$as_dir" |
12099 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12100 s//\1/
12101 q
12102 }
12103 /^X\(\/\/\)[^/].*/{
12104 s//\1/
12105 q
12106 }
12107 /^X\(\/\/\)$/{
12108 s//\1/
12109 q
12110 }
12111 /^X\(\/\).*/{
12112 s//\1/
12113 q
12114 }
12115 s/.*/./; q'`
12116 test -d "$as_dir" && break
12117 done
12118 test -z "$as_dirs" || eval "mkdir $as_dirs"
12119 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
12120
b7026657 12121
81ecdfbb 12122} # as_fn_mkdir_p
b7026657 12123if mkdir -p . 2>/dev/null; then
81ecdfbb 12124 as_mkdir_p='mkdir -p "$as_dir"'
b7026657
AC
12125else
12126 test -d ./-p && rmdir ./-p
12127 as_mkdir_p=false
12128fi
12129
81ecdfbb
RW
12130if test -x / >/dev/null 2>&1; then
12131 as_test_x='test -x'
12132else
12133 if ls -dL / >/dev/null 2>&1; then
12134 as_ls_L_option=L
12135 else
12136 as_ls_L_option=
12137 fi
12138 as_test_x='
12139 eval sh -c '\''
12140 if test -d "$1"; then
12141 test -d "$1/.";
12142 else
12143 case $1 in #(
12144 -*)set "./$1";;
12145 esac;
12146 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12147 ???[sx]*):;;*)false;;esac;fi
12148 '\'' sh
12149 '
12150fi
12151as_executable_p=$as_test_x
b7026657
AC
12152
12153# Sed expression to map a string onto a valid CPP name.
12154as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12155
12156# Sed expression to map a string onto a valid variable name.
12157as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12158
12159
b7026657 12160exec 6>&1
81ecdfbb
RW
12161## ----------------------------------- ##
12162## Main body of $CONFIG_STATUS script. ##
12163## ----------------------------------- ##
12164_ASEOF
12165test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12166
12167cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12168# Save the log message, to keep $0 and so on meaningful, and to
b7026657 12169# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
12170# values after options handling.
12171ac_log="
b7026657 12172This file was extended by $as_me, which was
81ecdfbb 12173generated by GNU Autoconf 2.64. Invocation command line was
b7026657
AC
12174
12175 CONFIG_FILES = $CONFIG_FILES
12176 CONFIG_HEADERS = $CONFIG_HEADERS
12177 CONFIG_LINKS = $CONFIG_LINKS
12178 CONFIG_COMMANDS = $CONFIG_COMMANDS
12179 $ $0 $@
12180
81ecdfbb
RW
12181on `(hostname || uname -n) 2>/dev/null | sed 1q`
12182"
12183
b7026657
AC
12184_ACEOF
12185
81ecdfbb
RW
12186case $ac_config_files in *"
12187"*) set x $ac_config_files; shift; ac_config_files=$*;;
12188esac
b7026657 12189
81ecdfbb
RW
12190case $ac_config_headers in *"
12191"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12192esac
b7026657 12193
b7026657 12194
81ecdfbb
RW
12195cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12196# Files that config.status was made for.
12197config_files="$ac_config_files"
12198config_headers="$ac_config_headers"
12199config_commands="$ac_config_commands"
b7026657 12200
81ecdfbb 12201_ACEOF
b7026657 12202
81ecdfbb 12203cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657 12204ac_cs_usage="\
81ecdfbb
RW
12205\`$as_me' instantiates files and other configuration actions
12206from templates according to the current configuration. Unless the files
12207and actions are specified as TAGs, all are instantiated by default.
b7026657 12208
81ecdfbb 12209Usage: $0 [OPTION]... [TAG]...
b7026657
AC
12210
12211 -h, --help print this help, then exit
81ecdfbb
RW
12212 -V, --version print version number and configuration settings, then exit
12213 -q, --quiet, --silent
12214 do not print progress messages
b7026657
AC
12215 -d, --debug don't remove temporary files
12216 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
12217 --file=FILE[:TEMPLATE]
12218 instantiate the configuration file FILE
12219 --header=FILE[:TEMPLATE]
12220 instantiate the configuration header FILE
b7026657
AC
12221
12222Configuration files:
12223$config_files
12224
12225Configuration headers:
12226$config_headers
12227
12228Configuration commands:
12229$config_commands
12230
81ecdfbb 12231Report bugs to the package provider."
b7026657 12232
81ecdfbb
RW
12233_ACEOF
12234cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b7026657
AC
12235ac_cs_version="\\
12236config.status
81ecdfbb
RW
12237configured by $0, generated by GNU Autoconf 2.64,
12238 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
b7026657 12239
81ecdfbb 12240Copyright (C) 2009 Free Software Foundation, Inc.
b7026657
AC
12241This config.status script is free software; the Free Software Foundation
12242gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
12243
12244ac_pwd='$ac_pwd'
12245srcdir='$srcdir'
12246INSTALL='$INSTALL'
6bb11ab3 12247AWK='$AWK'
81ecdfbb 12248test -n "\$AWK" || AWK=awk
b7026657
AC
12249_ACEOF
12250
81ecdfbb
RW
12251cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12252# The default lists apply if the user does not specify any file.
b7026657
AC
12253ac_need_defaults=:
12254while test $# != 0
12255do
12256 case $1 in
12257 --*=*)
81ecdfbb
RW
12258 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12259 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b7026657
AC
12260 ac_shift=:
12261 ;;
81ecdfbb 12262 *)
b7026657
AC
12263 ac_option=$1
12264 ac_optarg=$2
12265 ac_shift=shift
12266 ;;
b7026657
AC
12267 esac
12268
12269 case $ac_option in
12270 # Handling of the options.
b7026657
AC
12271 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12272 ac_cs_recheck=: ;;
81ecdfbb
RW
12273 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12274 $as_echo "$ac_cs_version"; exit ;;
12275 --debug | --debu | --deb | --de | --d | -d )
b7026657
AC
12276 debug=: ;;
12277 --file | --fil | --fi | --f )
12278 $ac_shift
81ecdfbb
RW
12279 case $ac_optarg in
12280 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12281 esac
12282 as_fn_append CONFIG_FILES " '$ac_optarg'"
b7026657
AC
12283 ac_need_defaults=false;;
12284 --header | --heade | --head | --hea )
12285 $ac_shift
81ecdfbb
RW
12286 case $ac_optarg in
12287 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12288 esac
12289 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
b7026657 12290 ac_need_defaults=false;;
81ecdfbb
RW
12291 --he | --h)
12292 # Conflict between --help and --header
12293 as_fn_error "ambiguous option: \`$1'
12294Try \`$0 --help' for more information.";;
12295 --help | --hel | -h )
12296 $as_echo "$ac_cs_usage"; exit ;;
b7026657
AC
12297 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12298 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12299 ac_cs_silent=: ;;
12300
12301 # This is an error.
81ecdfbb
RW
12302 -*) as_fn_error "unrecognized option: \`$1'
12303Try \`$0 --help' for more information." ;;
b7026657 12304
81ecdfbb
RW
12305 *) as_fn_append ac_config_targets " $1"
12306 ac_need_defaults=false ;;
b7026657
AC
12307
12308 esac
12309 shift
c906108c 12310done
b7026657
AC
12311
12312ac_configure_extra_args=
12313
12314if $ac_cs_silent; then
12315 exec 6>/dev/null
12316 ac_configure_extra_args="$ac_configure_extra_args --silent"
12317fi
12318
12319_ACEOF
81ecdfbb 12320cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b7026657 12321if \$ac_cs_recheck; then
81ecdfbb
RW
12322 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12323 shift
12324 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12325 CONFIG_SHELL='$SHELL'
12326 export CONFIG_SHELL
12327 exec "\$@"
c906108c 12328fi
c906108c 12329
b7026657 12330_ACEOF
81ecdfbb
RW
12331cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12332exec 5>>config.log
12333{
12334 echo
12335 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12336## Running $as_me. ##
12337_ASBOX
12338 $as_echo "$ac_log"
12339} >&5
c906108c 12340
81ecdfbb
RW
12341_ACEOF
12342cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
db2e4d67
MF
12343#
12344# INIT-COMMANDS
12345#
12346ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
12347
6bb11ab3
L
12348
12349# The HP-UX ksh and POSIX shell print the target directory to stdout
12350# if CDPATH is set.
12351(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12352
12353sed_quote_subst='$sed_quote_subst'
12354double_quote_subst='$double_quote_subst'
12355delay_variable_subst='$delay_variable_subst'
12356macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12357macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12358enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12359enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12360pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12361enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12362SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12363ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12364host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12365host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12366host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12367build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12368build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12369build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12370SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12371Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12372GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12373EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12374FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12375LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12376NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12377LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12378max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12379ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12380exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12381lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12382lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12383lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12384reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12385reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12386OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12387deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12388file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12389AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12390AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12391STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12392RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12393old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12394old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12395old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12396lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12397CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12398CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12399compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12400GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12401lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12402lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12403lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12404lt_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"`'
12405objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12406MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12407lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12408lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12409lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12410lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12411lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12412need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12413DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12414NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12415LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12416OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12417OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12418libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12419shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12420extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12421archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12422enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12423export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12424whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12425compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12426old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12427old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12428archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12429archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12430module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12431module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12432with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12433allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12434no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12435hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12436hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12437hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12438hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12439hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12440hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12441hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12442hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12443inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12444link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12445fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12446always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12447export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12448exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12449include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12450prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12451file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12452variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12453need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12454need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12455version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12456runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12457shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12458shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12459libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12460library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12461soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12462install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12463postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12464postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12465finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12466finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12467hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12468sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12469sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12470hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12471enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12472enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12473enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12474old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12475striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12476
12477LTCC='$LTCC'
12478LTCFLAGS='$LTCFLAGS'
12479compiler='$compiler_DEFAULT'
12480
12481# A function that is used when there is no print builtin or printf.
12482func_fallback_echo ()
12483{
12484 eval 'cat <<_LTECHO_EOF
12485\$1
12486_LTECHO_EOF'
12487}
12488
12489# Quote evaled strings.
12490for var in SHELL \
12491ECHO \
12492SED \
12493GREP \
12494EGREP \
12495FGREP \
12496LD \
12497NM \
12498LN_S \
12499lt_SP2NL \
12500lt_NL2SP \
12501reload_flag \
12502OBJDUMP \
12503deplibs_check_method \
12504file_magic_cmd \
12505AR \
12506AR_FLAGS \
12507STRIP \
12508RANLIB \
12509CC \
12510CFLAGS \
12511compiler \
12512lt_cv_sys_global_symbol_pipe \
12513lt_cv_sys_global_symbol_to_cdecl \
12514lt_cv_sys_global_symbol_to_c_name_address \
12515lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12516lt_prog_compiler_no_builtin_flag \
12517lt_prog_compiler_wl \
12518lt_prog_compiler_pic \
12519lt_prog_compiler_static \
12520lt_cv_prog_compiler_c_o \
12521need_locks \
12522DSYMUTIL \
12523NMEDIT \
12524LIPO \
12525OTOOL \
12526OTOOL64 \
12527shrext_cmds \
12528export_dynamic_flag_spec \
12529whole_archive_flag_spec \
12530compiler_needs_object \
12531with_gnu_ld \
12532allow_undefined_flag \
12533no_undefined_flag \
12534hardcode_libdir_flag_spec \
12535hardcode_libdir_flag_spec_ld \
12536hardcode_libdir_separator \
12537fix_srcfile_path \
12538exclude_expsyms \
12539include_expsyms \
12540file_list_spec \
12541variables_saved_for_relink \
12542libname_spec \
12543library_names_spec \
12544soname_spec \
12545install_override_mode \
12546finish_eval \
12547old_striplib \
12548striplib; do
12549 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12550 *[\\\\\\\`\\"\\\$]*)
12551 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12552 ;;
12553 *)
12554 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12555 ;;
12556 esac
12557done
12558
12559# Double-quote double-evaled strings.
12560for var in reload_cmds \
12561old_postinstall_cmds \
12562old_postuninstall_cmds \
12563old_archive_cmds \
12564extract_expsyms_cmds \
12565old_archive_from_new_cmds \
12566old_archive_from_expsyms_cmds \
12567archive_cmds \
12568archive_expsym_cmds \
12569module_cmds \
12570module_expsym_cmds \
12571export_symbols_cmds \
12572prelink_cmds \
12573postinstall_cmds \
12574postuninstall_cmds \
12575finish_cmds \
12576sys_lib_search_path_spec \
12577sys_lib_dlsearch_path_spec; do
12578 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12579 *[\\\\\\\`\\"\\\$]*)
12580 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12581 ;;
12582 *)
12583 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12584 ;;
12585 esac
12586done
12587
12588ac_aux_dir='$ac_aux_dir'
12589xsi_shell='$xsi_shell'
12590lt_shell_append='$lt_shell_append'
12591
12592# See if we are running on zsh, and set the options which allow our
12593# commands through without removal of \ escapes INIT.
12594if test -n "\${ZSH_VERSION+set}" ; then
12595 setopt NO_GLOB_SUBST
12596fi
12597
12598
12599 PACKAGE='$PACKAGE'
12600 VERSION='$VERSION'
12601 TIMESTAMP='$TIMESTAMP'
12602 RM='$RM'
12603 ofile='$ofile'
12604
12605
12606
12607
81ecdfbb 12608_ACEOF
b7026657 12609
81ecdfbb 12610cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657 12611
81ecdfbb 12612# Handling of arguments.
b7026657
AC
12613for ac_config_target in $ac_config_targets
12614do
81ecdfbb
RW
12615 case $ac_config_target in
12616 "cconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS cconfig.h:config.in" ;;
db2e4d67 12617 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
6bb11ab3 12618 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
81ecdfbb
RW
12619 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12620 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12621
12622 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c906108c 12623 esac
b7026657 12624done
c906108c 12625
81ecdfbb 12626
b7026657
AC
12627# If the user did not use the arguments to specify the items to instantiate,
12628# then the envvar interface is used. Set only those that are not.
12629# We use the long form for the default assignment because of an extremely
12630# bizarre bug on SunOS 4.1.3.
12631if $ac_need_defaults; then
12632 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12633 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12634 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12635fi
12636
12637# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 12638# simply because there is no reason against having it here, and in addition,
b7026657 12639# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
12640# Hook for its removal unless debugging.
12641# Note that there is a small window in which the directory will not be cleaned:
12642# after its creation but before its name has been assigned to `$tmp'.
b7026657
AC
12643$debug ||
12644{
81ecdfbb
RW
12645 tmp=
12646 trap 'exit_status=$?
12647 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12648' 0
12649 trap 'as_fn_exit 1' 1 2 13 15
b7026657 12650}
b7026657
AC
12651# Create a (secure) tmp directory for tmp files.
12652
12653{
81ecdfbb 12654 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
b7026657
AC
12655 test -n "$tmp" && test -d "$tmp"
12656} ||
12657{
81ecdfbb
RW
12658 tmp=./conf$$-$RANDOM
12659 (umask 077 && mkdir "$tmp")
12660} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12661
12662# Set up the scripts for CONFIG_FILES section.
12663# No need to generate them if there are no CONFIG_FILES.
12664# This happens for instance with `./config.status config.h'.
12665if test -n "$CONFIG_FILES"; then
12666
12667
12668ac_cr=`echo X | tr X '\015'`
12669# On cygwin, bash can eat \r inside `` if the user requested igncr.
12670# But we know of no other shell where ac_cr would be empty at this
12671# point, so we can use a bashism as a fallback.
12672if test "x$ac_cr" = x; then
12673 eval ac_cr=\$\'\\r\'
12674fi
12675ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12676if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12677 ac_cs_awk_cr='\r'
12678else
12679 ac_cs_awk_cr=$ac_cr
12680fi
12681
12682echo 'BEGIN {' >"$tmp/subs1.awk" &&
12683_ACEOF
12684
12685
12686{
12687 echo "cat >conf$$subs.awk <<_ACEOF" &&
12688 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12689 echo "_ACEOF"
12690} >conf$$subs.sh ||
12691 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12692ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12693ac_delim='%!_!# '
12694for ac_last_try in false false false false false :; do
12695 . ./conf$$subs.sh ||
12696 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12697
12698 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12699 if test $ac_delim_n = $ac_delim_num; then
12700 break
12701 elif $ac_last_try; then
12702 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12703 else
12704 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12705 fi
12706done
12707rm -f conf$$subs.sh
12708
12709cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12710cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12711_ACEOF
12712sed -n '
12713h
12714s/^/S["/; s/!.*/"]=/
12715p
12716g
12717s/^[^!]*!//
12718:repl
12719t repl
12720s/'"$ac_delim"'$//
12721t delim
12722:nl
12723h
12724s/\(.\{148\}\).*/\1/
12725t more1
12726s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12727p
12728n
12729b repl
12730:more1
12731s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12732p
12733g
12734s/.\{148\}//
12735t nl
12736:delim
12737h
12738s/\(.\{148\}\).*/\1/
12739t more2
12740s/["\\]/\\&/g; s/^/"/; s/$/"/
12741p
12742b
12743:more2
12744s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12745p
12746g
12747s/.\{148\}//
12748t delim
12749' <conf$$subs.awk | sed '
12750/^[^""]/{
12751 N
12752 s/\n//
12753}
12754' >>$CONFIG_STATUS || ac_write_fail=1
12755rm -f conf$$subs.awk
12756cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12757_ACAWK
12758cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12759 for (key in S) S_is_set[key] = 1
12760 FS = "\a"
12761
12762}
b7026657 12763{
81ecdfbb
RW
12764 line = $ 0
12765 nfields = split(line, field, "@")
12766 substed = 0
12767 len = length(field[1])
12768 for (i = 2; i < nfields; i++) {
12769 key = field[i]
12770 keylen = length(key)
12771 if (S_is_set[key]) {
12772 value = S[key]
12773 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12774 len += length(value) + length(field[++i])
12775 substed = 1
12776 } else
12777 len += 1 + keylen
12778 }
12779
12780 print line
b7026657
AC
12781}
12782
81ecdfbb
RW
12783_ACAWK
12784_ACEOF
12785cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12786if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12787 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12788else
12789 cat
12790fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12791 || as_fn_error "could not setup config files machinery" "$LINENO" 5
b7026657
AC
12792_ACEOF
12793
81ecdfbb
RW
12794# VPATH may cause trouble with some makes, so we remove $(srcdir),
12795# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12796# trailing colons and then remove the whole line if VPATH becomes empty
12797# (actually we leave an empty line to preserve line numbers).
12798if test "x$srcdir" = x.; then
12799 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12800s/:*\$(srcdir):*/:/
12801s/:*\${srcdir}:*/:/
12802s/:*@srcdir@:*/:/
12803s/^\([^=]*=[ ]*\):*/\1/
12804s/:*$//
12805s/^[^=]*=[ ]*$//
12806}'
12807fi
b7026657 12808
81ecdfbb
RW
12809cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12810fi # test -n "$CONFIG_FILES"
b7026657 12811
81ecdfbb
RW
12812# Set up the scripts for CONFIG_HEADERS section.
12813# No need to generate them if there are no CONFIG_HEADERS.
12814# This happens for instance with `./config.status Makefile'.
12815if test -n "$CONFIG_HEADERS"; then
12816cat >"$tmp/defines.awk" <<\_ACAWK ||
12817BEGIN {
b7026657
AC
12818_ACEOF
12819
81ecdfbb
RW
12820# Transform confdefs.h into an awk script `defines.awk', embedded as
12821# here-document in config.status, that substitutes the proper values into
12822# config.h.in to produce config.h.
12823
12824# Create a delimiter string that does not exist in confdefs.h, to ease
12825# handling of long lines.
12826ac_delim='%!_!# '
12827for ac_last_try in false false :; do
12828 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12829 if test -z "$ac_t"; then
12830 break
12831 elif $ac_last_try; then
12832 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12833 else
12834 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
c906108c 12835 fi
81ecdfbb 12836done
c906108c 12837
81ecdfbb
RW
12838# For the awk script, D is an array of macro values keyed by name,
12839# likewise P contains macro parameters if any. Preserve backslash
12840# newline sequences.
12841
12842ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12843sed -n '
12844s/.\{148\}/&'"$ac_delim"'/g
12845t rset
12846:rset
12847s/^[ ]*#[ ]*define[ ][ ]*/ /
12848t def
12849d
12850:def
12851s/\\$//
12852t bsnl
12853s/["\\]/\\&/g
12854s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12855D["\1"]=" \3"/p
12856s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12857d
12858:bsnl
12859s/["\\]/\\&/g
12860s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12861D["\1"]=" \3\\\\\\n"\\/p
12862t cont
12863s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12864t cont
12865d
12866:cont
12867n
12868s/.\{148\}/&'"$ac_delim"'/g
12869t clear
12870:clear
12871s/\\$//
12872t bsnlc
12873s/["\\]/\\&/g; s/^/"/; s/$/"/p
12874d
12875:bsnlc
12876s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12877b cont
12878' <confdefs.h | sed '
12879s/'"$ac_delim"'/"\\\
12880"/g' >>$CONFIG_STATUS || ac_write_fail=1
12881
12882cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12883 for (key in D) D_is_set[key] = 1
12884 FS = "\a"
12885}
12886/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12887 line = \$ 0
12888 split(line, arg, " ")
12889 if (arg[1] == "#") {
12890 defundef = arg[2]
12891 mac1 = arg[3]
12892 } else {
12893 defundef = substr(arg[1], 2)
12894 mac1 = arg[2]
12895 }
12896 split(mac1, mac2, "(") #)
12897 macro = mac2[1]
12898 prefix = substr(line, 1, index(line, defundef) - 1)
12899 if (D_is_set[macro]) {
12900 # Preserve the white space surrounding the "#".
12901 print prefix "define", macro P[macro] D[macro]
12902 next
12903 } else {
12904 # Replace #undef with comments. This is necessary, for example,
12905 # in the case of _POSIX_SOURCE, which is predefined and required
12906 # on some systems where configure will not decide to define it.
12907 if (defundef == "undef") {
12908 print "/*", prefix defundef, macro, "*/"
12909 next
12910 }
12911 }
12912}
12913{ print }
12914_ACAWK
b7026657 12915_ACEOF
81ecdfbb
RW
12916cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12917 as_fn_error "could not setup config headers machinery" "$LINENO" 5
12918fi # test -n "$CONFIG_HEADERS"
12919
12920
12921eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12922shift
12923for ac_tag
12924do
12925 case $ac_tag in
12926 :[FHLC]) ac_mode=$ac_tag; continue;;
12927 esac
12928 case $ac_mode$ac_tag in
12929 :[FHL]*:*);;
12930 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12931 :[FH]-) ac_tag=-:-;;
12932 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12933 esac
12934 ac_save_IFS=$IFS
12935 IFS=:
12936 set x $ac_tag
12937 IFS=$ac_save_IFS
12938 shift
12939 ac_file=$1
12940 shift
12941
12942 case $ac_mode in
12943 :L) ac_source=$1;;
12944 :[FH])
12945 ac_file_inputs=
12946 for ac_f
12947 do
12948 case $ac_f in
12949 -) ac_f="$tmp/stdin";;
12950 *) # Look for the file first in the build tree, then in the source tree
12951 # (if the path is not absolute). The absolute path cannot be DOS-style,
12952 # because $ac_f cannot contain `:'.
12953 test -f "$ac_f" ||
12954 case $ac_f in
12955 [\\/$]*) false;;
12956 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12957 esac ||
12958 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12959 esac
12960 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12961 as_fn_append ac_file_inputs " '$ac_f'"
12962 done
12963
12964 # Let's still pretend it is `configure' which instantiates (i.e., don't
12965 # use $as_me), people would be surprised to read:
12966 # /* config.h. Generated by config.status. */
12967 configure_input='Generated from '`
12968 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12969 `' by configure.'
12970 if test x"$ac_file" != x-; then
12971 configure_input="$ac_file. $configure_input"
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12973$as_echo "$as_me: creating $ac_file" >&6;}
12974 fi
12975 # Neutralize special characters interpreted by sed in replacement strings.
12976 case $configure_input in #(
12977 *\&* | *\|* | *\\* )
12978 ac_sed_conf_input=`$as_echo "$configure_input" |
12979 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12980 *) ac_sed_conf_input=$configure_input;;
12981 esac
12982
12983 case $ac_tag in
12984 *:-:* | *:-) cat >"$tmp/stdin" \
12985 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12986 esac
12987 ;;
c906108c
SS
12988 esac
12989
81ecdfbb 12990 ac_dir=`$as_dirname -- "$ac_file" ||
b7026657
AC
12991$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12992 X"$ac_file" : 'X\(//\)[^/]' \| \
12993 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
12994 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12995$as_echo X"$ac_file" |
12996 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12997 s//\1/
12998 q
12999 }
13000 /^X\(\/\/\)[^/].*/{
13001 s//\1/
13002 q
13003 }
13004 /^X\(\/\/\)$/{
13005 s//\1/
13006 q
13007 }
13008 /^X\(\/\).*/{
13009 s//\1/
13010 q
13011 }
13012 s/.*/./; q'`
13013 as_dir="$ac_dir"; as_fn_mkdir_p
b7026657
AC
13014 ac_builddir=.
13015
81ecdfbb
RW
13016case "$ac_dir" in
13017.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13018*)
13019 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13020 # A ".." for each directory in $ac_dir_suffix.
13021 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13022 case $ac_top_builddir_sub in
13023 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13024 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13025 esac ;;
13026esac
13027ac_abs_top_builddir=$ac_pwd
13028ac_abs_builddir=$ac_pwd$ac_dir_suffix
13029# for backward compatibility:
13030ac_top_builddir=$ac_top_build_prefix
c906108c 13031
b7026657 13032case $srcdir in
81ecdfbb 13033 .) # We are building in place.
b7026657 13034 ac_srcdir=.
81ecdfbb
RW
13035 ac_top_srcdir=$ac_top_builddir_sub
13036 ac_abs_top_srcdir=$ac_pwd ;;
13037 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 13038 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
13039 ac_top_srcdir=$srcdir
13040 ac_abs_top_srcdir=$srcdir ;;
13041 *) # Relative name.
13042 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13043 ac_top_srcdir=$ac_top_build_prefix$srcdir
13044 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 13045esac
81ecdfbb 13046ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b7026657 13047
b7026657 13048
81ecdfbb
RW
13049 case $ac_mode in
13050 :F)
13051 #
13052 # CONFIG_FILE
13053 #
b7026657
AC
13054
13055 case $INSTALL in
13056 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 13057 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
c906108c 13058 esac
81ecdfbb 13059_ACEOF
c906108c 13060
81ecdfbb
RW
13061cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13062# If the template does not know about datarootdir, expand it.
13063# FIXME: This hack should be removed a few years after 2.60.
13064ac_datarootdir_hack=; ac_datarootdir_seen=
13065ac_sed_dataroot='
13066/datarootdir/ {
13067 p
13068 q
13069}
13070/@datadir@/p
13071/@docdir@/p
13072/@infodir@/p
13073/@localedir@/p
13074/@mandir@/p'
13075case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13076*datarootdir*) ac_datarootdir_seen=yes;;
13077*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13079$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13080_ACEOF
13081cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13082 ac_datarootdir_hack='
13083 s&@datadir@&$datadir&g
13084 s&@docdir@&$docdir&g
13085 s&@infodir@&$infodir&g
13086 s&@localedir@&$localedir&g
13087 s&@mandir@&$mandir&g
13088 s&\\\${datarootdir}&$datarootdir&g' ;;
13089esac
b7026657 13090_ACEOF
81ecdfbb
RW
13091
13092# Neutralize VPATH when `$srcdir' = `.'.
13093# Shell code in configure.ac might set extrasub.
13094# FIXME: do we really want to maintain this feature?
13095cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13096ac_sed_extra="$ac_vpsub
b7026657
AC
13097$extrasub
13098_ACEOF
81ecdfbb 13099cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657
AC
13100:t
13101/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
13102s|@configure_input@|$ac_sed_conf_input|;t t
13103s&@top_builddir@&$ac_top_builddir_sub&;t t
13104s&@top_build_prefix@&$ac_top_build_prefix&;t t
13105s&@srcdir@&$ac_srcdir&;t t
13106s&@abs_srcdir@&$ac_abs_srcdir&;t t
13107s&@top_srcdir@&$ac_top_srcdir&;t t
13108s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13109s&@builddir@&$ac_builddir&;t t
13110s&@abs_builddir@&$ac_abs_builddir&;t t
13111s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13112s&@INSTALL@&$ac_INSTALL&;t t
13113$ac_datarootdir_hack
13114"
13115eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13116 || as_fn_error "could not create $ac_file" "$LINENO" 5
13117
13118test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13119 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13120 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13122which seems to be undefined. Please make sure it is defined." >&5
13123$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13124which seems to be undefined. Please make sure it is defined." >&2;}
13125
13126 rm -f "$tmp/stdin"
b7026657 13127 case $ac_file in
81ecdfbb
RW
13128 -) cat "$tmp/out" && rm -f "$tmp/out";;
13129 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13130 esac \
13131 || as_fn_error "could not create $ac_file" "$LINENO" 5
13132 ;;
13133 :H)
13134 #
13135 # CONFIG_HEADER
13136 #
b7026657 13137 if test x"$ac_file" != x-; then
81ecdfbb
RW
13138 {
13139 $as_echo "/* $configure_input */" \
13140 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13141 } >"$tmp/config.h" \
13142 || as_fn_error "could not create $ac_file" "$LINENO" 5
13143 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13145$as_echo "$as_me: $ac_file is unchanged" >&6;}
b7026657 13146 else
81ecdfbb
RW
13147 rm -f "$ac_file"
13148 mv "$tmp/config.h" "$ac_file" \
13149 || as_fn_error "could not create $ac_file" "$LINENO" 5
c906108c 13150 fi
b7026657 13151 else
81ecdfbb
RW
13152 $as_echo "/* $configure_input */" \
13153 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13154 || as_fn_error "could not create -" "$LINENO" 5
c906108c 13155 fi
81ecdfbb 13156 ;;
b7026657 13157
81ecdfbb
RW
13158 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13159$as_echo "$as_me: executing $ac_file commands" >&6;}
13160 ;;
13161 esac
b7026657 13162
b7026657 13163
81ecdfbb 13164 case $ac_file$ac_mode in
db2e4d67 13165 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
6bb11ab3
L
13166 "libtool":C)
13167
13168 # See if we are running on zsh, and set the options which allow our
13169 # commands through without removal of \ escapes.
13170 if test -n "${ZSH_VERSION+set}" ; then
13171 setopt NO_GLOB_SUBST
13172 fi
13173
13174 cfgfile="${ofile}T"
13175 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13176 $RM "$cfgfile"
13177
13178 cat <<_LT_EOF >> "$cfgfile"
13179#! $SHELL
13180
13181# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13182# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13183# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13184# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13185#
13186# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13187# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
13188# Written by Gordon Matzigkeit, 1996
13189#
13190# This file is part of GNU Libtool.
13191#
13192# GNU Libtool is free software; you can redistribute it and/or
13193# modify it under the terms of the GNU General Public License as
13194# published by the Free Software Foundation; either version 2 of
13195# the License, or (at your option) any later version.
13196#
13197# As a special exception to the GNU General Public License,
13198# if you distribute this file as part of a program or library that
13199# is built using GNU Libtool, you may include this file under the
13200# same distribution terms that you use for the rest of that program.
13201#
13202# GNU Libtool is distributed in the hope that it will be useful,
13203# but WITHOUT ANY WARRANTY; without even the implied warranty of
13204# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13205# GNU General Public License for more details.
13206#
13207# You should have received a copy of the GNU General Public License
13208# along with GNU Libtool; see the file COPYING. If not, a copy
13209# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13210# obtained by writing to the Free Software Foundation, Inc.,
13211# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13212
13213
13214# The names of the tagged configurations supported by this script.
13215available_tags=""
13216
13217# ### BEGIN LIBTOOL CONFIG
13218
13219# Which release of libtool.m4 was used?
13220macro_version=$macro_version
13221macro_revision=$macro_revision
13222
13223# Whether or not to build shared libraries.
13224build_libtool_libs=$enable_shared
13225
13226# Whether or not to build static libraries.
13227build_old_libs=$enable_static
13228
13229# What type of objects to build.
13230pic_mode=$pic_mode
13231
13232# Whether or not to optimize for fast installation.
13233fast_install=$enable_fast_install
13234
13235# Shell to use when invoking shell scripts.
13236SHELL=$lt_SHELL
13237
13238# An echo program that protects backslashes.
13239ECHO=$lt_ECHO
13240
13241# The host system.
13242host_alias=$host_alias
13243host=$host
13244host_os=$host_os
13245
13246# The build system.
13247build_alias=$build_alias
13248build=$build
13249build_os=$build_os
13250
13251# A sed program that does not truncate output.
13252SED=$lt_SED
13253
13254# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13255Xsed="\$SED -e 1s/^X//"
13256
13257# A grep program that handles long lines.
13258GREP=$lt_GREP
13259
13260# An ERE matcher.
13261EGREP=$lt_EGREP
13262
13263# A literal string matcher.
13264FGREP=$lt_FGREP
13265
13266# A BSD- or MS-compatible name lister.
13267NM=$lt_NM
13268
13269# Whether we need soft or hard links.
13270LN_S=$lt_LN_S
13271
13272# What is the maximum length of a command?
13273max_cmd_len=$max_cmd_len
13274
13275# Object file suffix (normally "o").
13276objext=$ac_objext
13277
13278# Executable file suffix (normally "").
13279exeext=$exeext
13280
13281# whether the shell understands "unset".
13282lt_unset=$lt_unset
13283
13284# turn spaces into newlines.
13285SP2NL=$lt_lt_SP2NL
13286
13287# turn newlines into spaces.
13288NL2SP=$lt_lt_NL2SP
13289
13290# An object symbol dumper.
13291OBJDUMP=$lt_OBJDUMP
13292
13293# Method to check whether dependent libraries are shared objects.
13294deplibs_check_method=$lt_deplibs_check_method
13295
13296# Command to use when deplibs_check_method == "file_magic".
13297file_magic_cmd=$lt_file_magic_cmd
13298
13299# The archiver.
13300AR=$lt_AR
13301AR_FLAGS=$lt_AR_FLAGS
13302
13303# A symbol stripping program.
13304STRIP=$lt_STRIP
13305
13306# Commands used to install an old-style archive.
13307RANLIB=$lt_RANLIB
13308old_postinstall_cmds=$lt_old_postinstall_cmds
13309old_postuninstall_cmds=$lt_old_postuninstall_cmds
13310
13311# Whether to use a lock for old archive extraction.
13312lock_old_archive_extraction=$lock_old_archive_extraction
13313
13314# A C compiler.
13315LTCC=$lt_CC
13316
13317# LTCC compiler flags.
13318LTCFLAGS=$lt_CFLAGS
13319
13320# Take the output of nm and produce a listing of raw symbols and C names.
13321global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13322
13323# Transform the output of nm in a proper C declaration.
13324global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13325
13326# Transform the output of nm in a C name address pair.
13327global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13328
13329# Transform the output of nm in a C name address pair when lib prefix is needed.
13330global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13331
13332# The name of the directory that contains temporary libtool files.
13333objdir=$objdir
13334
13335# Used to examine libraries when file_magic_cmd begins with "file".
13336MAGIC_CMD=$MAGIC_CMD
13337
13338# Must we lock files when doing compilation?
13339need_locks=$lt_need_locks
13340
13341# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13342DSYMUTIL=$lt_DSYMUTIL
13343
13344# Tool to change global to local symbols on Mac OS X.
13345NMEDIT=$lt_NMEDIT
13346
13347# Tool to manipulate fat objects and archives on Mac OS X.
13348LIPO=$lt_LIPO
13349
13350# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13351OTOOL=$lt_OTOOL
13352
13353# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13354OTOOL64=$lt_OTOOL64
13355
13356# Old archive suffix (normally "a").
13357libext=$libext
13358
13359# Shared library suffix (normally ".so").
13360shrext_cmds=$lt_shrext_cmds
13361
13362# The commands to extract the exported symbol list from a shared archive.
13363extract_expsyms_cmds=$lt_extract_expsyms_cmds
13364
13365# Variables whose values should be saved in libtool wrapper scripts and
13366# restored at link time.
13367variables_saved_for_relink=$lt_variables_saved_for_relink
13368
13369# Do we need the "lib" prefix for modules?
13370need_lib_prefix=$need_lib_prefix
13371
13372# Do we need a version for libraries?
13373need_version=$need_version
13374
13375# Library versioning type.
13376version_type=$version_type
13377
13378# Shared library runtime path variable.
13379runpath_var=$runpath_var
13380
13381# Shared library path variable.
13382shlibpath_var=$shlibpath_var
13383
13384# Is shlibpath searched before the hard-coded library search path?
13385shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13386
13387# Format of library name prefix.
13388libname_spec=$lt_libname_spec
13389
13390# List of archive names. First name is the real one, the rest are links.
13391# The last name is the one that the linker finds with -lNAME
13392library_names_spec=$lt_library_names_spec
13393
13394# The coded name of the library, if different from the real name.
13395soname_spec=$lt_soname_spec
13396
13397# Permission mode override for installation of shared libraries.
13398install_override_mode=$lt_install_override_mode
13399
13400# Command to use after installation of a shared archive.
13401postinstall_cmds=$lt_postinstall_cmds
13402
13403# Command to use after uninstallation of a shared archive.
13404postuninstall_cmds=$lt_postuninstall_cmds
13405
13406# Commands used to finish a libtool library installation in a directory.
13407finish_cmds=$lt_finish_cmds
13408
13409# As "finish_cmds", except a single script fragment to be evaled but
13410# not shown.
13411finish_eval=$lt_finish_eval
13412
13413# Whether we should hardcode library paths into libraries.
13414hardcode_into_libs=$hardcode_into_libs
13415
13416# Compile-time system search path for libraries.
13417sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13418
13419# Run-time system search path for libraries.
13420sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13421
13422# Whether dlopen is supported.
13423dlopen_support=$enable_dlopen
13424
13425# Whether dlopen of programs is supported.
13426dlopen_self=$enable_dlopen_self
13427
13428# Whether dlopen of statically linked programs is supported.
13429dlopen_self_static=$enable_dlopen_self_static
13430
13431# Commands to strip libraries.
13432old_striplib=$lt_old_striplib
13433striplib=$lt_striplib
13434
13435
13436# The linker used to build libraries.
13437LD=$lt_LD
13438
13439# How to create reloadable object files.
13440reload_flag=$lt_reload_flag
13441reload_cmds=$lt_reload_cmds
13442
13443# Commands used to build an old-style archive.
13444old_archive_cmds=$lt_old_archive_cmds
13445
13446# A language specific compiler.
13447CC=$lt_compiler
13448
13449# Is the compiler the GNU compiler?
13450with_gcc=$GCC
13451
13452# Compiler flag to turn off builtin functions.
13453no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13454
13455# How to pass a linker flag through the compiler.
13456wl=$lt_lt_prog_compiler_wl
13457
13458# Additional compiler flags for building library objects.
13459pic_flag=$lt_lt_prog_compiler_pic
13460
13461# Compiler flag to prevent dynamic linking.
13462link_static_flag=$lt_lt_prog_compiler_static
13463
13464# Does compiler simultaneously support -c and -o options?
13465compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13466
13467# Whether or not to add -lc for building shared libraries.
13468build_libtool_need_lc=$archive_cmds_need_lc
13469
13470# Whether or not to disallow shared libs when runtime libs are static.
13471allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13472
13473# Compiler flag to allow reflexive dlopens.
13474export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13475
13476# Compiler flag to generate shared objects directly from archives.
13477whole_archive_flag_spec=$lt_whole_archive_flag_spec
13478
13479# Whether the compiler copes with passing no objects directly.
13480compiler_needs_object=$lt_compiler_needs_object
13481
13482# Create an old-style archive from a shared archive.
13483old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13484
13485# Create a temporary old-style archive to link instead of a shared archive.
13486old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13487
13488# Commands used to build a shared archive.
13489archive_cmds=$lt_archive_cmds
13490archive_expsym_cmds=$lt_archive_expsym_cmds
13491
13492# Commands used to build a loadable module if different from building
13493# a shared archive.
13494module_cmds=$lt_module_cmds
13495module_expsym_cmds=$lt_module_expsym_cmds
13496
13497# Whether we are building with GNU ld or not.
13498with_gnu_ld=$lt_with_gnu_ld
13499
13500# Flag that allows shared libraries with undefined symbols to be built.
13501allow_undefined_flag=$lt_allow_undefined_flag
13502
13503# Flag that enforces no undefined symbols.
13504no_undefined_flag=$lt_no_undefined_flag
13505
13506# Flag to hardcode \$libdir into a binary during linking.
13507# This must work even if \$libdir does not exist
13508hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13509
13510# If ld is used when linking, flag to hardcode \$libdir into a binary
13511# during linking. This must work even if \$libdir does not exist.
13512hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13513
13514# Whether we need a single "-rpath" flag with a separated argument.
13515hardcode_libdir_separator=$lt_hardcode_libdir_separator
13516
13517# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13518# DIR into the resulting binary.
13519hardcode_direct=$hardcode_direct
13520
13521# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13522# DIR into the resulting binary and the resulting library dependency is
13523# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13524# library is relocated.
13525hardcode_direct_absolute=$hardcode_direct_absolute
13526
13527# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13528# into the resulting binary.
13529hardcode_minus_L=$hardcode_minus_L
13530
13531# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13532# into the resulting binary.
13533hardcode_shlibpath_var=$hardcode_shlibpath_var
13534
13535# Set to "yes" if building a shared library automatically hardcodes DIR
13536# into the library and all subsequent libraries and executables linked
13537# against it.
13538hardcode_automatic=$hardcode_automatic
13539
13540# Set to yes if linker adds runtime paths of dependent libraries
13541# to runtime path list.
13542inherit_rpath=$inherit_rpath
13543
13544# Whether libtool must link a program against all its dependency libraries.
13545link_all_deplibs=$link_all_deplibs
13546
13547# Fix the shell variable \$srcfile for the compiler.
13548fix_srcfile_path=$lt_fix_srcfile_path
13549
13550# Set to "yes" if exported symbols are required.
13551always_export_symbols=$always_export_symbols
13552
13553# The commands to list exported symbols.
13554export_symbols_cmds=$lt_export_symbols_cmds
13555
13556# Symbols that should not be listed in the preloaded symbols.
13557exclude_expsyms=$lt_exclude_expsyms
13558
13559# Symbols that must always be exported.
13560include_expsyms=$lt_include_expsyms
13561
13562# Commands necessary for linking programs (against libraries) with templates.
13563prelink_cmds=$lt_prelink_cmds
13564
13565# Specify filename containing input files.
13566file_list_spec=$lt_file_list_spec
13567
13568# How to hardcode a shared library path into an executable.
13569hardcode_action=$hardcode_action
13570
13571# ### END LIBTOOL CONFIG
13572
13573_LT_EOF
13574
13575 case $host_os in
13576 aix3*)
13577 cat <<\_LT_EOF >> "$cfgfile"
13578# AIX sometimes has problems with the GCC collect2 program. For some
13579# reason, if we set the COLLECT_NAMES environment variable, the problems
13580# vanish in a puff of smoke.
13581if test "X${COLLECT_NAMES+set}" != Xset; then
13582 COLLECT_NAMES=
13583 export COLLECT_NAMES
13584fi
13585_LT_EOF
13586 ;;
13587 esac
13588
13589
13590ltmain="$ac_aux_dir/ltmain.sh"
13591
13592
13593 # We use sed instead of cat because bash on DJGPP gets confused if
13594 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13595 # text mode, it properly converts lines to CR/LF. This bash problem
13596 # is reportedly fixed, but why not run on old versions too?
13597 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13598 || (rm -f "$cfgfile"; exit 1)
13599
13600 case $xsi_shell in
13601 yes)
13602 cat << \_LT_EOF >> "$cfgfile"
13603
13604# func_dirname file append nondir_replacement
13605# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13606# otherwise set result to NONDIR_REPLACEMENT.
13607func_dirname ()
13608{
13609 case ${1} in
13610 */*) func_dirname_result="${1%/*}${2}" ;;
13611 * ) func_dirname_result="${3}" ;;
13612 esac
13613}
13614
13615# func_basename file
13616func_basename ()
13617{
13618 func_basename_result="${1##*/}"
13619}
13620
13621# func_dirname_and_basename file append nondir_replacement
13622# perform func_basename and func_dirname in a single function
13623# call:
13624# dirname: Compute the dirname of FILE. If nonempty,
13625# add APPEND to the result, otherwise set result
13626# to NONDIR_REPLACEMENT.
13627# value returned in "$func_dirname_result"
13628# basename: Compute filename of FILE.
13629# value retuned in "$func_basename_result"
13630# Implementation must be kept synchronized with func_dirname
13631# and func_basename. For efficiency, we do not delegate to
13632# those functions but instead duplicate the functionality here.
13633func_dirname_and_basename ()
13634{
13635 case ${1} in
13636 */*) func_dirname_result="${1%/*}${2}" ;;
13637 * ) func_dirname_result="${3}" ;;
13638 esac
13639 func_basename_result="${1##*/}"
13640}
13641
13642# func_stripname prefix suffix name
13643# strip PREFIX and SUFFIX off of NAME.
13644# PREFIX and SUFFIX must not contain globbing or regex special
13645# characters, hashes, percent signs, but SUFFIX may contain a leading
13646# dot (in which case that matches only a dot).
13647func_stripname ()
13648{
13649 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13650 # positional parameters, so assign one to ordinary parameter first.
13651 func_stripname_result=${3}
13652 func_stripname_result=${func_stripname_result#"${1}"}
13653 func_stripname_result=${func_stripname_result%"${2}"}
13654}
13655
13656# func_opt_split
13657func_opt_split ()
13658{
13659 func_opt_split_opt=${1%%=*}
13660 func_opt_split_arg=${1#*=}
13661}
13662
13663# func_lo2o object
13664func_lo2o ()
13665{
13666 case ${1} in
13667 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13668 *) func_lo2o_result=${1} ;;
13669 esac
13670}
13671
13672# func_xform libobj-or-source
13673func_xform ()
13674{
13675 func_xform_result=${1%.*}.lo
13676}
13677
13678# func_arith arithmetic-term...
13679func_arith ()
13680{
13681 func_arith_result=$(( $* ))
13682}
13683
13684# func_len string
13685# STRING may not start with a hyphen.
13686func_len ()
13687{
13688 func_len_result=${#1}
13689}
13690
13691_LT_EOF
13692 ;;
13693 *) # Bourne compatible functions.
13694 cat << \_LT_EOF >> "$cfgfile"
13695
13696# func_dirname file append nondir_replacement
13697# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13698# otherwise set result to NONDIR_REPLACEMENT.
13699func_dirname ()
13700{
13701 # Extract subdirectory from the argument.
13702 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13703 if test "X$func_dirname_result" = "X${1}"; then
13704 func_dirname_result="${3}"
13705 else
13706 func_dirname_result="$func_dirname_result${2}"
13707 fi
13708}
13709
13710# func_basename file
13711func_basename ()
13712{
13713 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
13714}
13715
13716
13717# func_stripname prefix suffix name
13718# strip PREFIX and SUFFIX off of NAME.
13719# PREFIX and SUFFIX must not contain globbing or regex special
13720# characters, hashes, percent signs, but SUFFIX may contain a leading
13721# dot (in which case that matches only a dot).
13722# func_strip_suffix prefix name
13723func_stripname ()
13724{
13725 case ${2} in
13726 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13727 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13728 esac
13729}
13730
13731# sed scripts:
13732my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13733my_sed_long_arg='1s/^-[^=]*=//'
13734
13735# func_opt_split
13736func_opt_split ()
13737{
13738 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13739 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
13740}
13741
13742# func_lo2o object
13743func_lo2o ()
13744{
13745 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
13746}
13747
13748# func_xform libobj-or-source
13749func_xform ()
13750{
13751 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
13752}
13753
13754# func_arith arithmetic-term...
13755func_arith ()
13756{
13757 func_arith_result=`expr "$@"`
13758}
13759
13760# func_len string
13761# STRING may not start with a hyphen.
13762func_len ()
13763{
13764 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13765}
13766
13767_LT_EOF
13768esac
13769
13770case $lt_shell_append in
13771 yes)
13772 cat << \_LT_EOF >> "$cfgfile"
13773
13774# func_append var value
13775# Append VALUE to the end of shell variable VAR.
13776func_append ()
13777{
13778 eval "$1+=\$2"
13779}
13780_LT_EOF
13781 ;;
13782 *)
13783 cat << \_LT_EOF >> "$cfgfile"
13784
13785# func_append var value
13786# Append VALUE to the end of shell variable VAR.
13787func_append ()
13788{
13789 eval "$1=\$$1\$2"
13790}
13791
13792_LT_EOF
13793 ;;
13794 esac
13795
13796
13797 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13798 || (rm -f "$cfgfile"; exit 1)
13799
13800 mv -f "$cfgfile" "$ofile" ||
13801 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13802 chmod +x "$ofile"
13803
13804 ;;
81ecdfbb 13805 "default":C) case x$CONFIG_HEADERS in xcconfig.h:config.in) echo > stamp-h ;; esac ;;
c906108c 13806
b7026657 13807 esac
81ecdfbb 13808done # for ac_tag
c906108c 13809
b7026657 13810
81ecdfbb 13811as_fn_exit 0
b7026657 13812_ACEOF
b7026657
AC
13813ac_clean_files=$ac_clean_files_save
13814
81ecdfbb
RW
13815test $ac_write_fail = 0 ||
13816 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13817
b7026657
AC
13818
13819# configure is writing to config.log, and then calls config.status.
13820# config.status does its own redirection, appending to config.log.
13821# Unfortunately, on DOS this fails, as config.log is still kept open
13822# by configure, so config.status won't be able to write to it; its
13823# output is simply discarded. So we exec the FD to /dev/null,
13824# effectively closing config.log, so it can be properly (re)opened and
13825# appended to by config.status. When coming back to configure, we
13826# need to make the FD available again.
13827if test "$no_create" != yes; then
13828 ac_cs_success=:
13829 ac_config_status_args=
13830 test "$silent" = yes &&
13831 ac_config_status_args="$ac_config_status_args --quiet"
13832 exec 5>/dev/null
13833 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13834 exec 5>>config.log
13835 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13836 # would make configure fail if this is the last instruction.
81ecdfbb
RW
13837 $ac_cs_success || as_fn_exit $?
13838fi
13839if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13841$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
b7026657 13842fi
c906108c 13843
This page took 1.381157 seconds and 4 git commands to generate.