sim: nrun: add local strsignal prototype
[deliverable/binutils-gdb.git] / sim / riscv / configure
CommitLineData
b9249c46
MF
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
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 :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
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 }
79fi
80
81
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.
90as_myself=
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210else
211 as_have_required=no
212fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233fi
234fi
235 done;;
236 esac
237 as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
266fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279 fi
280 exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298 { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307 return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315 set +e
316 as_fn_set_status $1
317 exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366} # as_fn_mkdir_p
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373 test -f "$1" && test -x "$1"
374} # as_fn_executable_p
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408fi # as_fn_arith
409
410
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415# script with STATUS, using 1 if that was 0.
416as_fn_error ()
417{
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430else
431 as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436else
437 as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442else
443 as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517*)
518 ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542else
543 as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
569
570# Name of the host.
571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME=
589PACKAGE_TARNAME=
590PACKAGE_VERSION=
591PACKAGE_STRING=
592PACKAGE_BUGREPORT=
593PACKAGE_URL=
594
595ac_unique_file="Makefile.in"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
599#ifdef HAVE_SYS_TYPES_H
600# include <sys/types.h>
601#endif
602#ifdef HAVE_SYS_STAT_H
603# include <sys/stat.h>
604#endif
605#ifdef STDC_HEADERS
606# include <stdlib.h>
607# include <stddef.h>
608#else
609# ifdef HAVE_STDLIB_H
610# include <stdlib.h>
611# endif
612#endif
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615# include <memory.h>
616# endif
617# include <string.h>
618#endif
619#ifdef HAVE_STRINGS_H
620# include <strings.h>
621#endif
622#ifdef HAVE_INTTYPES_H
623# include <inttypes.h>
624#endif
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
629# include <unistd.h>
630#endif"
631
2c2645d7 632ac_header_list=
37e9f182 633ac_func_list=
b9249c46
MF
634ac_subst_vars='LTLIBOBJS
635LIBOBJS
760b3e8b 636sim_reserved_bits
760b3e8b
MF
637sim_scache
638sim_float
b9249c46
MF
639cgen_breaks
640REPORT_BUGS_TEXI
641REPORT_BUGS_TO
642PKGVERSION
643MAINT
644MAINTAINER_MODE_FALSE
645MAINTAINER_MODE_TRUE
646lt_cv_dlopen_libs
647OTOOL64
648OTOOL
649LIPO
650NMEDIT
651DSYMUTIL
652AWK
653STRIP
654OBJDUMP
655LN_S
656NM
657ac_ct_DUMPBIN
658DUMPBIN
659LD
660FGREP
661SED
662LIBTOOL
663PLUGINS_FALSE
664PLUGINS_TRUE
665zlibinc
666zlibdir
667CATOBJEXT
668GENCAT
669INSTOBJEXT
670DATADIRNAME
671CATALOGS
672POSUB
673GMSGFMT
674XGETTEXT
675INCINTL
676LIBINTL_DEP
677LIBINTL
678USE_NLS
b9249c46
MF
679CCDEPMODE
680DEPDIR
681am__leading_dot
682PACKAGE
683C_DIALECT
684RANLIB
685AR
c2783492 686LDFLAGS_FOR_BUILD
c25ea03d 687CFLAGS_FOR_BUILD
b9249c46
MF
688CC_FOR_BUILD
689INSTALL_DATA
690INSTALL_SCRIPT
691INSTALL_PROGRAM
692EGREP
693GREP
c2783492
MF
694CPP
695OBJEXT
696EXEEXT
697ac_ct_CC
698CPPFLAGS
699LDFLAGS
700CFLAGS
701CC
b9249c46
MF
702target_os
703target_vendor
704target_cpu
705target
706host_os
707host_vendor
708host_cpu
709host
710build_os
711build_vendor
712build_cpu
713build
b9249c46
MF
714target_alias
715host_alias
716build_alias
717LIBS
718ECHO_T
719ECHO_N
720ECHO_C
721DEFS
722mandir
723localedir
724libdir
725psdir
726pdfdir
727dvidir
728htmldir
729infodir
730docdir
731oldincludedir
732includedir
733localstatedir
734sharedstatedir
735sysconfdir
736datadir
737datarootdir
738libexecdir
739sbindir
740bindir
741program_transform_name
742prefix
743exec_prefix
744PACKAGE_URL
745PACKAGE_BUGREPORT
746PACKAGE_STRING
747PACKAGE_VERSION
748PACKAGE_TARNAME
749PACKAGE_NAME
750PATH_SEPARATOR
136da8cd
MF
751SHELL
752WERROR_CFLAGS
753WARN_CFLAGS
136da8cd 754sim_inline
66d055c7
MF
755sim_hw
756sim_hw_objs
757sim_hw_cflags
136da8cd 758sim_endian
760b3e8b 759sim_default_model
136da8cd
MF
760sim_bitsize
761sim_alignment'
b9249c46
MF
762ac_subst_files=''
763ac_user_opts='
764enable_option_checking
765with_system_zlib
766enable_plugins
767enable_shared
768enable_static
769with_pic
770enable_fast_install
771with_gnu_ld
772enable_libtool_lock
773enable_maintainer_mode
774enable_sim_debug
775enable_sim_stdio
776enable_sim_trace
777enable_sim_profile
778enable_sim_assert
779enable_sim_environment
780enable_sim_inline
781with_pkgversion
782with_bugurl
783enable_sim_endian
784enable_sim_alignment
785enable_werror
786enable_build_warnings
787enable_sim_build_warnings
788enable_sim_default_model
789enable_sim_bitsize
66d055c7 790enable_sim_hardware
b9249c46
MF
791'
792 ac_precious_vars='build_alias
793host_alias
794target_alias
795CC
796CFLAGS
797LDFLAGS
798LIBS
799CPPFLAGS
800CPP'
801
802
803# Initialize some variables set by options.
804ac_init_help=
805ac_init_version=false
806ac_unrecognized_opts=
807ac_unrecognized_sep=
808# The variables have the same names as the options, with
809# dashes changed to underlines.
810cache_file=/dev/null
811exec_prefix=NONE
812no_create=
813no_recursion=
814prefix=NONE
815program_prefix=NONE
816program_suffix=NONE
817program_transform_name=s,x,x,
818silent=
819site=
820srcdir=
821verbose=
822x_includes=NONE
823x_libraries=NONE
824
825# Installation directory options.
826# These are left unexpanded so users can "make install exec_prefix=/foo"
827# and all the variables that are supposed to be based on exec_prefix
828# by default will actually change.
829# Use braces instead of parens because sh, perl, etc. also accept them.
830# (The list follows the same order as the GNU Coding Standards.)
831bindir='${exec_prefix}/bin'
832sbindir='${exec_prefix}/sbin'
833libexecdir='${exec_prefix}/libexec'
834datarootdir='${prefix}/share'
835datadir='${datarootdir}'
836sysconfdir='${prefix}/etc'
837sharedstatedir='${prefix}/com'
838localstatedir='${prefix}/var'
839includedir='${prefix}/include'
840oldincludedir='/usr/include'
841docdir='${datarootdir}/doc/${PACKAGE}'
842infodir='${datarootdir}/info'
843htmldir='${docdir}'
844dvidir='${docdir}'
845pdfdir='${docdir}'
846psdir='${docdir}'
847libdir='${exec_prefix}/lib'
848localedir='${datarootdir}/locale'
849mandir='${datarootdir}/man'
850
851ac_prev=
852ac_dashdash=
853for ac_option
854do
855 # If the previous option needs an argument, assign it.
856 if test -n "$ac_prev"; then
857 eval $ac_prev=\$ac_option
858 ac_prev=
859 continue
860 fi
861
862 case $ac_option in
863 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
864 *=) ac_optarg= ;;
865 *) ac_optarg=yes ;;
866 esac
867
868 # Accept the important Cygnus configure options, so we can diagnose typos.
869
870 case $ac_dashdash$ac_option in
871 --)
872 ac_dashdash=yes ;;
873
874 -bindir | --bindir | --bindi | --bind | --bin | --bi)
875 ac_prev=bindir ;;
876 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
877 bindir=$ac_optarg ;;
878
879 -build | --build | --buil | --bui | --bu)
880 ac_prev=build_alias ;;
881 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
882 build_alias=$ac_optarg ;;
883
884 -cache-file | --cache-file | --cache-fil | --cache-fi \
885 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
886 ac_prev=cache_file ;;
887 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
888 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
889 cache_file=$ac_optarg ;;
890
891 --config-cache | -C)
892 cache_file=config.cache ;;
893
894 -datadir | --datadir | --datadi | --datad)
895 ac_prev=datadir ;;
896 -datadir=* | --datadir=* | --datadi=* | --datad=*)
897 datadir=$ac_optarg ;;
898
899 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
900 | --dataroo | --dataro | --datar)
901 ac_prev=datarootdir ;;
902 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
903 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
904 datarootdir=$ac_optarg ;;
905
906 -disable-* | --disable-*)
907 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
908 # Reject names that are not valid shell variable names.
909 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
910 as_fn_error $? "invalid feature name: $ac_useropt"
911 ac_useropt_orig=$ac_useropt
912 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
913 case $ac_user_opts in
914 *"
915"enable_$ac_useropt"
916"*) ;;
917 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
918 ac_unrecognized_sep=', ';;
919 esac
920 eval enable_$ac_useropt=no ;;
921
922 -docdir | --docdir | --docdi | --doc | --do)
923 ac_prev=docdir ;;
924 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
925 docdir=$ac_optarg ;;
926
927 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
928 ac_prev=dvidir ;;
929 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
930 dvidir=$ac_optarg ;;
931
932 -enable-* | --enable-*)
933 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
934 # Reject names that are not valid shell variable names.
935 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
936 as_fn_error $? "invalid feature name: $ac_useropt"
937 ac_useropt_orig=$ac_useropt
938 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
939 case $ac_user_opts in
940 *"
941"enable_$ac_useropt"
942"*) ;;
943 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
944 ac_unrecognized_sep=', ';;
945 esac
946 eval enable_$ac_useropt=\$ac_optarg ;;
947
948 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
949 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
950 | --exec | --exe | --ex)
951 ac_prev=exec_prefix ;;
952 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
953 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
954 | --exec=* | --exe=* | --ex=*)
955 exec_prefix=$ac_optarg ;;
956
957 -gas | --gas | --ga | --g)
958 # Obsolete; use --with-gas.
959 with_gas=yes ;;
960
961 -help | --help | --hel | --he | -h)
962 ac_init_help=long ;;
963 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
964 ac_init_help=recursive ;;
965 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
966 ac_init_help=short ;;
967
968 -host | --host | --hos | --ho)
969 ac_prev=host_alias ;;
970 -host=* | --host=* | --hos=* | --ho=*)
971 host_alias=$ac_optarg ;;
972
973 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
974 ac_prev=htmldir ;;
975 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
976 | --ht=*)
977 htmldir=$ac_optarg ;;
978
979 -includedir | --includedir | --includedi | --included | --include \
980 | --includ | --inclu | --incl | --inc)
981 ac_prev=includedir ;;
982 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
983 | --includ=* | --inclu=* | --incl=* | --inc=*)
984 includedir=$ac_optarg ;;
985
986 -infodir | --infodir | --infodi | --infod | --info | --inf)
987 ac_prev=infodir ;;
988 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
989 infodir=$ac_optarg ;;
990
991 -libdir | --libdir | --libdi | --libd)
992 ac_prev=libdir ;;
993 -libdir=* | --libdir=* | --libdi=* | --libd=*)
994 libdir=$ac_optarg ;;
995
996 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
997 | --libexe | --libex | --libe)
998 ac_prev=libexecdir ;;
999 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1000 | --libexe=* | --libex=* | --libe=*)
1001 libexecdir=$ac_optarg ;;
1002
1003 -localedir | --localedir | --localedi | --localed | --locale)
1004 ac_prev=localedir ;;
1005 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1006 localedir=$ac_optarg ;;
1007
1008 -localstatedir | --localstatedir | --localstatedi | --localstated \
1009 | --localstate | --localstat | --localsta | --localst | --locals)
1010 ac_prev=localstatedir ;;
1011 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1012 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1013 localstatedir=$ac_optarg ;;
1014
1015 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1016 ac_prev=mandir ;;
1017 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1018 mandir=$ac_optarg ;;
1019
1020 -nfp | --nfp | --nf)
1021 # Obsolete; use --without-fp.
1022 with_fp=no ;;
1023
1024 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1025 | --no-cr | --no-c | -n)
1026 no_create=yes ;;
1027
1028 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1029 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1030 no_recursion=yes ;;
1031
1032 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1033 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1034 | --oldin | --oldi | --old | --ol | --o)
1035 ac_prev=oldincludedir ;;
1036 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1037 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1038 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1039 oldincludedir=$ac_optarg ;;
1040
1041 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1042 ac_prev=prefix ;;
1043 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1044 prefix=$ac_optarg ;;
1045
1046 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1047 | --program-pre | --program-pr | --program-p)
1048 ac_prev=program_prefix ;;
1049 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1050 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1051 program_prefix=$ac_optarg ;;
1052
1053 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1054 | --program-suf | --program-su | --program-s)
1055 ac_prev=program_suffix ;;
1056 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1057 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1058 program_suffix=$ac_optarg ;;
1059
1060 -program-transform-name | --program-transform-name \
1061 | --program-transform-nam | --program-transform-na \
1062 | --program-transform-n | --program-transform- \
1063 | --program-transform | --program-transfor \
1064 | --program-transfo | --program-transf \
1065 | --program-trans | --program-tran \
1066 | --progr-tra | --program-tr | --program-t)
1067 ac_prev=program_transform_name ;;
1068 -program-transform-name=* | --program-transform-name=* \
1069 | --program-transform-nam=* | --program-transform-na=* \
1070 | --program-transform-n=* | --program-transform-=* \
1071 | --program-transform=* | --program-transfor=* \
1072 | --program-transfo=* | --program-transf=* \
1073 | --program-trans=* | --program-tran=* \
1074 | --progr-tra=* | --program-tr=* | --program-t=*)
1075 program_transform_name=$ac_optarg ;;
1076
1077 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1078 ac_prev=pdfdir ;;
1079 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1080 pdfdir=$ac_optarg ;;
1081
1082 -psdir | --psdir | --psdi | --psd | --ps)
1083 ac_prev=psdir ;;
1084 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1085 psdir=$ac_optarg ;;
1086
1087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1088 | -silent | --silent | --silen | --sile | --sil)
1089 silent=yes ;;
1090
1091 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1092 ac_prev=sbindir ;;
1093 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1094 | --sbi=* | --sb=*)
1095 sbindir=$ac_optarg ;;
1096
1097 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1098 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1099 | --sharedst | --shareds | --shared | --share | --shar \
1100 | --sha | --sh)
1101 ac_prev=sharedstatedir ;;
1102 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1103 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1104 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1105 | --sha=* | --sh=*)
1106 sharedstatedir=$ac_optarg ;;
1107
1108 -site | --site | --sit)
1109 ac_prev=site ;;
1110 -site=* | --site=* | --sit=*)
1111 site=$ac_optarg ;;
1112
1113 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1114 ac_prev=srcdir ;;
1115 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1116 srcdir=$ac_optarg ;;
1117
1118 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1119 | --syscon | --sysco | --sysc | --sys | --sy)
1120 ac_prev=sysconfdir ;;
1121 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1122 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1123 sysconfdir=$ac_optarg ;;
1124
1125 -target | --target | --targe | --targ | --tar | --ta | --t)
1126 ac_prev=target_alias ;;
1127 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1128 target_alias=$ac_optarg ;;
1129
1130 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1131 verbose=yes ;;
1132
1133 -version | --version | --versio | --versi | --vers | -V)
1134 ac_init_version=: ;;
1135
1136 -with-* | --with-*)
1137 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1138 # Reject names that are not valid shell variable names.
1139 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1140 as_fn_error $? "invalid package name: $ac_useropt"
1141 ac_useropt_orig=$ac_useropt
1142 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1143 case $ac_user_opts in
1144 *"
1145"with_$ac_useropt"
1146"*) ;;
1147 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1148 ac_unrecognized_sep=', ';;
1149 esac
1150 eval with_$ac_useropt=\$ac_optarg ;;
1151
1152 -without-* | --without-*)
1153 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1156 as_fn_error $? "invalid package name: $ac_useropt"
1157 ac_useropt_orig=$ac_useropt
1158 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1159 case $ac_user_opts in
1160 *"
1161"with_$ac_useropt"
1162"*) ;;
1163 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1164 ac_unrecognized_sep=', ';;
1165 esac
1166 eval with_$ac_useropt=no ;;
1167
1168 --x)
1169 # Obsolete; use --with-x.
1170 with_x=yes ;;
1171
1172 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1173 | --x-incl | --x-inc | --x-in | --x-i)
1174 ac_prev=x_includes ;;
1175 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1176 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1177 x_includes=$ac_optarg ;;
1178
1179 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1180 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1181 ac_prev=x_libraries ;;
1182 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1183 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1184 x_libraries=$ac_optarg ;;
1185
1186 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1187Try \`$0 --help' for more information"
1188 ;;
1189
1190 *=*)
1191 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1192 # Reject names that are not valid shell variable names.
1193 case $ac_envvar in #(
1194 '' | [0-9]* | *[!_$as_cr_alnum]* )
1195 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1196 esac
1197 eval $ac_envvar=\$ac_optarg
1198 export $ac_envvar ;;
1199
1200 *)
1201 # FIXME: should be removed in autoconf 3.0.
1202 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1203 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1204 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1205 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1206 ;;
1207
1208 esac
1209done
1210
1211if test -n "$ac_prev"; then
1212 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1213 as_fn_error $? "missing argument to $ac_option"
1214fi
1215
1216if test -n "$ac_unrecognized_opts"; then
1217 case $enable_option_checking in
1218 no) ;;
1219 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1220 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1221 esac
1222fi
1223
1224# Check all directory arguments for consistency.
1225for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1226 datadir sysconfdir sharedstatedir localstatedir includedir \
1227 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1228 libdir localedir mandir
1229do
1230 eval ac_val=\$$ac_var
1231 # Remove trailing slashes.
1232 case $ac_val in
1233 */ )
1234 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1235 eval $ac_var=\$ac_val;;
1236 esac
1237 # Be sure to have absolute directory names.
1238 case $ac_val in
1239 [\\/$]* | ?:[\\/]* ) continue;;
1240 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1241 esac
1242 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1243done
1244
1245# There might be people who depend on the old broken behavior: `$host'
1246# used to hold the argument of --host etc.
1247# FIXME: To remove some day.
1248build=$build_alias
1249host=$host_alias
1250target=$target_alias
1251
1252# FIXME: To remove some day.
1253if test "x$host_alias" != x; then
1254 if test "x$build_alias" = x; then
1255 cross_compiling=maybe
1256 elif test "x$build_alias" != "x$host_alias"; then
1257 cross_compiling=yes
1258 fi
1259fi
1260
1261ac_tool_prefix=
1262test -n "$host_alias" && ac_tool_prefix=$host_alias-
1263
1264test "$silent" = yes && exec 6>/dev/null
1265
1266
1267ac_pwd=`pwd` && test -n "$ac_pwd" &&
1268ac_ls_di=`ls -di .` &&
1269ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1270 as_fn_error $? "working directory cannot be determined"
1271test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1272 as_fn_error $? "pwd does not report name of working directory"
1273
1274
1275# Find the source files, if location was not specified.
1276if test -z "$srcdir"; then
1277 ac_srcdir_defaulted=yes
1278 # Try the directory containing this script, then the parent directory.
1279 ac_confdir=`$as_dirname -- "$as_myself" ||
1280$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1281 X"$as_myself" : 'X\(//\)[^/]' \| \
1282 X"$as_myself" : 'X\(//\)$' \| \
1283 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1284$as_echo X"$as_myself" |
1285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1286 s//\1/
1287 q
1288 }
1289 /^X\(\/\/\)[^/].*/{
1290 s//\1/
1291 q
1292 }
1293 /^X\(\/\/\)$/{
1294 s//\1/
1295 q
1296 }
1297 /^X\(\/\).*/{
1298 s//\1/
1299 q
1300 }
1301 s/.*/./; q'`
1302 srcdir=$ac_confdir
1303 if test ! -r "$srcdir/$ac_unique_file"; then
1304 srcdir=..
1305 fi
1306else
1307 ac_srcdir_defaulted=no
1308fi
1309if test ! -r "$srcdir/$ac_unique_file"; then
1310 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1311 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1312fi
1313ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1314ac_abs_confdir=`(
1315 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1316 pwd)`
1317# When building in place, set srcdir=.
1318if test "$ac_abs_confdir" = "$ac_pwd"; then
1319 srcdir=.
1320fi
1321# Remove unnecessary trailing slashes from srcdir.
1322# Double slashes in file names in object file debugging info
1323# mess up M-x gdb in Emacs.
1324case $srcdir in
1325*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1326esac
1327for ac_var in $ac_precious_vars; do
1328 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1329 eval ac_env_${ac_var}_value=\$${ac_var}
1330 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1331 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1332done
1333
1334#
1335# Report the --help message.
1336#
1337if test "$ac_init_help" = "long"; then
1338 # Omit some internal or obsolete options to make the list less imposing.
1339 # This message is too long to be a string in the A/UX 3.1 sh.
1340 cat <<_ACEOF
1341\`configure' configures this package to adapt to many kinds of systems.
1342
1343Usage: $0 [OPTION]... [VAR=VALUE]...
1344
1345To assign environment variables (e.g., CC, CFLAGS...), specify them as
1346VAR=VALUE. See below for descriptions of some of the useful variables.
1347
1348Defaults for the options are specified in brackets.
1349
1350Configuration:
1351 -h, --help display this help and exit
1352 --help=short display options specific to this package
1353 --help=recursive display the short help of all the included packages
1354 -V, --version display version information and exit
1355 -q, --quiet, --silent do not print \`checking ...' messages
1356 --cache-file=FILE cache test results in FILE [disabled]
1357 -C, --config-cache alias for \`--cache-file=config.cache'
1358 -n, --no-create do not create output files
1359 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1360
1361Installation directories:
1362 --prefix=PREFIX install architecture-independent files in PREFIX
1363 [$ac_default_prefix]
1364 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1365 [PREFIX]
1366
1367By default, \`make install' will install all the files in
1368\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1369an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1370for instance \`--prefix=\$HOME'.
1371
1372For better control, use the options below.
1373
1374Fine tuning of the installation directories:
1375 --bindir=DIR user executables [EPREFIX/bin]
1376 --sbindir=DIR system admin executables [EPREFIX/sbin]
1377 --libexecdir=DIR program executables [EPREFIX/libexec]
1378 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1379 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1380 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1381 --libdir=DIR object code libraries [EPREFIX/lib]
1382 --includedir=DIR C header files [PREFIX/include]
1383 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1384 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1385 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1386 --infodir=DIR info documentation [DATAROOTDIR/info]
1387 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1388 --mandir=DIR man documentation [DATAROOTDIR/man]
1389 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1390 --htmldir=DIR html documentation [DOCDIR]
1391 --dvidir=DIR dvi documentation [DOCDIR]
1392 --pdfdir=DIR pdf documentation [DOCDIR]
1393 --psdir=DIR ps documentation [DOCDIR]
1394_ACEOF
1395
1396 cat <<\_ACEOF
1397
1398Program names:
1399 --program-prefix=PREFIX prepend PREFIX to installed program names
1400 --program-suffix=SUFFIX append SUFFIX to installed program names
1401 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1402
1403System types:
1404 --build=BUILD configure for building on BUILD [guessed]
1405 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1406 --target=TARGET configure for building compilers for TARGET [HOST]
1407_ACEOF
1408fi
1409
1410if test -n "$ac_init_help"; then
1411
1412 cat <<\_ACEOF
1413
1414Optional Features:
1415 --disable-option-checking ignore unrecognized --enable/--with options
1416 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1417 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1418 --enable-plugins Enable support for plugins
1419 --enable-shared[=PKGS] build shared libraries [default=yes]
1420 --enable-static[=PKGS] build static libraries [default=yes]
1421 --enable-fast-install[=PKGS]
1422 optimize for fast installation [default=yes]
1423 --disable-libtool-lock avoid locking (might break parallel builds)
1424 --enable-maintainer-mode
1425 enable make rules and dependencies not useful (and
1426 sometimes confusing) to the casual installer
1427 --enable-sim-debug=opts Enable debugging flags (for developers of the sim
1428 itself)
1429 --enable-sim-stdio Specify whether to use stdio for console
1430 input/output
1431 --enable-sim-trace=opts Enable tracing of simulated programs
1432 --enable-sim-profile=opts
1433 Enable profiling flags
1434 --enable-sim-assert Specify whether to perform random assertions
1435 --enable-sim-environment=environment
1436 Specify mixed, user, virtual or operating
1437 environment
1438 --enable-sim-inline=inlines
1439 Specify which functions should be inlined
1440 --enable-sim-endian=endian
1441 Specify target byte endian orientation
1442 --enable-sim-alignment=align
1443 Specify strict, nonstrict or forced alignment of
1444 memory accesses
1445 --enable-werror treat compile warnings as errors
1446 --enable-build-warnings enable build-time compiler warnings if gcc is used
1447 --enable-sim-build-warnings
1448 enable SIM specific build-time compiler warnings if
1449 gcc is used
1450 --enable-sim-default-model=model
1451 Specify default model to simulate
1452 --enable-sim-bitsize=N Specify target bitsize (32 or 64)
66d055c7
MF
1453 --enable-sim-hardware=LIST
1454 Specify the hardware to be included in the build.
b9249c46
MF
1455
1456Optional Packages:
1457 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1458 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1459 --with-system-zlib use installed libz
1460 --with-pic try to use only PIC/non-PIC objects [default=use
1461 both]
1462 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1463 --with-pkgversion=PKG Use PKG in the version string in place of "SIM"
1464 --with-bugurl=URL Direct users to URL to report a bug
1465
1466Some influential environment variables:
1467 CC C compiler command
1468 CFLAGS C compiler flags
1469 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1470 nonstandard directory <lib dir>
1471 LIBS libraries to pass to the linker, e.g. -l<library>
1472 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1473 you have headers in a nonstandard directory <include dir>
1474 CPP C preprocessor
1475
1476Use these variables to override the choices made by `configure' or to help
1477it to find libraries and programs with nonstandard names/locations.
1478
1479Report bugs to the package provider.
1480_ACEOF
1481ac_status=$?
1482fi
1483
1484if test "$ac_init_help" = "recursive"; then
1485 # If there are subdirs, report their specific --help.
1486 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1487 test -d "$ac_dir" ||
1488 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1489 continue
1490 ac_builddir=.
1491
1492case "$ac_dir" in
1493.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494*)
1495 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1496 # A ".." for each directory in $ac_dir_suffix.
1497 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1498 case $ac_top_builddir_sub in
1499 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1501 esac ;;
1502esac
1503ac_abs_top_builddir=$ac_pwd
1504ac_abs_builddir=$ac_pwd$ac_dir_suffix
1505# for backward compatibility:
1506ac_top_builddir=$ac_top_build_prefix
1507
1508case $srcdir in
1509 .) # We are building in place.
1510 ac_srcdir=.
1511 ac_top_srcdir=$ac_top_builddir_sub
1512 ac_abs_top_srcdir=$ac_pwd ;;
1513 [\\/]* | ?:[\\/]* ) # Absolute name.
1514 ac_srcdir=$srcdir$ac_dir_suffix;
1515 ac_top_srcdir=$srcdir
1516 ac_abs_top_srcdir=$srcdir ;;
1517 *) # Relative name.
1518 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1519 ac_top_srcdir=$ac_top_build_prefix$srcdir
1520 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1521esac
1522ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1523
1524 cd "$ac_dir" || { ac_status=$?; continue; }
1525 # Check for guested configure.
1526 if test -f "$ac_srcdir/configure.gnu"; then
1527 echo &&
1528 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1529 elif test -f "$ac_srcdir/configure"; then
1530 echo &&
1531 $SHELL "$ac_srcdir/configure" --help=recursive
1532 else
1533 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1534 fi || ac_status=$?
1535 cd "$ac_pwd" || { ac_status=$?; break; }
1536 done
1537fi
1538
1539test -n "$ac_init_help" && exit $ac_status
1540if $ac_init_version; then
1541 cat <<\_ACEOF
1542configure
1543generated by GNU Autoconf 2.69
1544
1545Copyright (C) 2012 Free Software Foundation, Inc.
1546This configure script is free software; the Free Software Foundation
1547gives unlimited permission to copy, distribute and modify it.
1548_ACEOF
1549 exit
1550fi
1551
1552## ------------------------ ##
1553## Autoconf initialization. ##
1554## ------------------------ ##
1555
1556# ac_fn_c_try_compile LINENO
1557# --------------------------
1558# Try to compile conftest.$ac_ext, and return whether this succeeded.
1559ac_fn_c_try_compile ()
1560{
1561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1562 rm -f conftest.$ac_objext
1563 if { { ac_try="$ac_compile"
1564case "(($ac_try" in
1565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1566 *) ac_try_echo=$ac_try;;
1567esac
1568eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1569$as_echo "$ac_try_echo"; } >&5
1570 (eval "$ac_compile") 2>conftest.err
1571 ac_status=$?
1572 if test -s conftest.err; then
1573 grep -v '^ *+' conftest.err >conftest.er1
1574 cat conftest.er1 >&5
1575 mv -f conftest.er1 conftest.err
1576 fi
1577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1578 test $ac_status = 0; } && {
1579 test -z "$ac_c_werror_flag" ||
1580 test ! -s conftest.err
1581 } && test -s conftest.$ac_objext; then :
1582 ac_retval=0
1583else
1584 $as_echo "$as_me: failed program was:" >&5
1585sed 's/^/| /' conftest.$ac_ext >&5
1586
1587 ac_retval=1
1588fi
1589 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1590 as_fn_set_status $ac_retval
1591
1592} # ac_fn_c_try_compile
1593
1594# ac_fn_c_try_cpp LINENO
1595# ----------------------
1596# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1597ac_fn_c_try_cpp ()
1598{
1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600 if { { ac_try="$ac_cpp conftest.$ac_ext"
1601case "(($ac_try" in
1602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1603 *) ac_try_echo=$ac_try;;
1604esac
1605eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1606$as_echo "$ac_try_echo"; } >&5
1607 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1608 ac_status=$?
1609 if test -s conftest.err; then
1610 grep -v '^ *+' conftest.err >conftest.er1
1611 cat conftest.er1 >&5
1612 mv -f conftest.er1 conftest.err
1613 fi
1614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615 test $ac_status = 0; } > conftest.i && {
1616 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1617 test ! -s conftest.err
1618 }; then :
1619 ac_retval=0
1620else
1621 $as_echo "$as_me: failed program was:" >&5
1622sed 's/^/| /' conftest.$ac_ext >&5
1623
1624 ac_retval=1
1625fi
1626 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1627 as_fn_set_status $ac_retval
1628
1629} # ac_fn_c_try_cpp
1630
1631# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1632# -------------------------------------------------------
1633# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1634# the include files in INCLUDES and setting the cache variable VAR
1635# accordingly.
1636ac_fn_c_check_header_mongrel ()
1637{
1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639 if eval \${$3+:} false; then :
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1641$as_echo_n "checking for $2... " >&6; }
1642if eval \${$3+:} false; then :
1643 $as_echo_n "(cached) " >&6
1644fi
1645eval ac_res=\$$3
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1647$as_echo "$ac_res" >&6; }
1648else
1649 # Is the header compilable?
1650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1651$as_echo_n "checking $2 usability... " >&6; }
1652cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1653/* end confdefs.h. */
1654$4
1655#include <$2>
1656_ACEOF
1657if ac_fn_c_try_compile "$LINENO"; then :
1658 ac_header_compiler=yes
1659else
1660 ac_header_compiler=no
1661fi
1662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1664$as_echo "$ac_header_compiler" >&6; }
1665
1666# Is the header present?
1667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1668$as_echo_n "checking $2 presence... " >&6; }
1669cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1670/* end confdefs.h. */
1671#include <$2>
1672_ACEOF
1673if ac_fn_c_try_cpp "$LINENO"; then :
1674 ac_header_preproc=yes
1675else
1676 ac_header_preproc=no
1677fi
1678rm -f conftest.err conftest.i conftest.$ac_ext
1679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1680$as_echo "$ac_header_preproc" >&6; }
1681
1682# So? What about this header?
1683case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1684 yes:no: )
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1686$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1688$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1689 ;;
1690 no:yes:* )
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1692$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1694$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1696$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1698$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1700$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1701 ;;
1702esac
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1704$as_echo_n "checking for $2... " >&6; }
1705if eval \${$3+:} false; then :
1706 $as_echo_n "(cached) " >&6
1707else
1708 eval "$3=\$ac_header_compiler"
1709fi
1710eval ac_res=\$$3
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1712$as_echo "$ac_res" >&6; }
1713fi
1714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715
1716} # ac_fn_c_check_header_mongrel
1717
1718# ac_fn_c_try_run LINENO
1719# ----------------------
1720# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1721# that executables *can* be run.
1722ac_fn_c_try_run ()
1723{
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 if { { ac_try="$ac_link"
1726case "(($ac_try" in
1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728 *) ac_try_echo=$ac_try;;
1729esac
1730eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731$as_echo "$ac_try_echo"; } >&5
1732 (eval "$ac_link") 2>&5
1733 ac_status=$?
1734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1736 { { case "(($ac_try" in
1737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1738 *) ac_try_echo=$ac_try;;
1739esac
1740eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1741$as_echo "$ac_try_echo"; } >&5
1742 (eval "$ac_try") 2>&5
1743 ac_status=$?
1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745 test $ac_status = 0; }; }; then :
1746 ac_retval=0
1747else
1748 $as_echo "$as_me: program exited with status $ac_status" >&5
1749 $as_echo "$as_me: failed program was:" >&5
1750sed 's/^/| /' conftest.$ac_ext >&5
1751
1752 ac_retval=$ac_status
1753fi
1754 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1755 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756 as_fn_set_status $ac_retval
1757
1758} # ac_fn_c_try_run
1759
1760# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1761# -------------------------------------------------------
1762# Tests whether HEADER exists and can be compiled using the include files in
1763# INCLUDES, setting the cache variable VAR accordingly.
1764ac_fn_c_check_header_compile ()
1765{
1766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1768$as_echo_n "checking for $2... " >&6; }
1769if eval \${$3+:} false; then :
1770 $as_echo_n "(cached) " >&6
1771else
1772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1773/* end confdefs.h. */
1774$4
1775#include <$2>
1776_ACEOF
1777if ac_fn_c_try_compile "$LINENO"; then :
1778 eval "$3=yes"
1779else
1780 eval "$3=no"
1781fi
1782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1783fi
1784eval ac_res=\$$3
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786$as_echo "$ac_res" >&6; }
1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788
1789} # ac_fn_c_check_header_compile
1790
1791# ac_fn_c_try_link LINENO
1792# -----------------------
1793# Try to link conftest.$ac_ext, and return whether this succeeded.
1794ac_fn_c_try_link ()
1795{
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 rm -f conftest.$ac_objext conftest$ac_exeext
1798 if { { ac_try="$ac_link"
1799case "(($ac_try" in
1800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801 *) ac_try_echo=$ac_try;;
1802esac
1803eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804$as_echo "$ac_try_echo"; } >&5
1805 (eval "$ac_link") 2>conftest.err
1806 ac_status=$?
1807 if test -s conftest.err; then
1808 grep -v '^ *+' conftest.err >conftest.er1
1809 cat conftest.er1 >&5
1810 mv -f conftest.er1 conftest.err
1811 fi
1812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813 test $ac_status = 0; } && {
1814 test -z "$ac_c_werror_flag" ||
1815 test ! -s conftest.err
1816 } && test -s conftest$ac_exeext && {
1817 test "$cross_compiling" = yes ||
1818 test -x conftest$ac_exeext
1819 }; then :
1820 ac_retval=0
1821else
1822 $as_echo "$as_me: failed program was:" >&5
1823sed 's/^/| /' conftest.$ac_ext >&5
1824
1825 ac_retval=1
1826fi
1827 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1828 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1829 # interfere with the next link command; also delete a directory that is
1830 # left behind by Apple's compiler. We do this before executing the actions.
1831 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833 as_fn_set_status $ac_retval
1834
1835} # ac_fn_c_try_link
1836
1837# ac_fn_c_check_func LINENO FUNC VAR
1838# ----------------------------------
1839# Tests whether FUNC exists, setting the cache variable VAR accordingly
1840ac_fn_c_check_func ()
1841{
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1844$as_echo_n "checking for $2... " >&6; }
1845if eval \${$3+:} false; then :
1846 $as_echo_n "(cached) " >&6
1847else
1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849/* end confdefs.h. */
1850/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1852#define $2 innocuous_$2
1853
1854/* System header to define __stub macros and hopefully few prototypes,
1855 which can conflict with char $2 (); below.
1856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1857 <limits.h> exists even on freestanding compilers. */
1858
1859#ifdef __STDC__
1860# include <limits.h>
1861#else
1862# include <assert.h>
1863#endif
1864
1865#undef $2
1866
1867/* Override any GCC internal prototype to avoid an error.
1868 Use char because int might match the return type of a GCC
1869 builtin and then its argument prototype would still apply. */
1870#ifdef __cplusplus
1871extern "C"
1872#endif
1873char $2 ();
1874/* The GNU C library defines this for functions which it implements
1875 to always fail with ENOSYS. Some functions are actually named
1876 something starting with __ and the normal name is an alias. */
1877#if defined __stub_$2 || defined __stub___$2
1878choke me
1879#endif
1880
1881int
1882main ()
1883{
1884return $2 ();
1885 ;
1886 return 0;
1887}
1888_ACEOF
1889if ac_fn_c_try_link "$LINENO"; then :
1890 eval "$3=yes"
1891else
1892 eval "$3=no"
1893fi
1894rm -f core conftest.err conftest.$ac_objext \
1895 conftest$ac_exeext conftest.$ac_ext
1896fi
1897eval ac_res=\$$3
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1899$as_echo "$ac_res" >&6; }
1900 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901
1902} # ac_fn_c_check_func
1903
1904# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1905# ----------------------------------------------------
1906# Tries to find if the field MEMBER exists in type AGGR, after including
1907# INCLUDES, setting cache variable VAR accordingly.
1908ac_fn_c_check_member ()
1909{
1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1912$as_echo_n "checking for $2.$3... " >&6; }
1913if eval \${$4+:} false; then :
1914 $as_echo_n "(cached) " >&6
1915else
1916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917/* end confdefs.h. */
1918$5
1919int
1920main ()
1921{
1922static $2 ac_aggr;
1923if (ac_aggr.$3)
1924return 0;
1925 ;
1926 return 0;
1927}
1928_ACEOF
1929if ac_fn_c_try_compile "$LINENO"; then :
1930 eval "$4=yes"
1931else
1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933/* end confdefs.h. */
1934$5
1935int
1936main ()
1937{
1938static $2 ac_aggr;
1939if (sizeof ac_aggr.$3)
1940return 0;
1941 ;
1942 return 0;
1943}
1944_ACEOF
1945if ac_fn_c_try_compile "$LINENO"; then :
1946 eval "$4=yes"
1947else
1948 eval "$4=no"
1949fi
1950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1951fi
1952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1953fi
1954eval ac_res=\$$4
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956$as_echo "$ac_res" >&6; }
1957 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1958
1959} # ac_fn_c_check_member
1960
1961# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1962# -------------------------------------------
1963# Tests whether TYPE exists after having included INCLUDES, setting cache
1964# variable VAR accordingly.
1965ac_fn_c_check_type ()
1966{
1967 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1969$as_echo_n "checking for $2... " >&6; }
1970if eval \${$3+:} false; then :
1971 $as_echo_n "(cached) " >&6
1972else
1973 eval "$3=no"
1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975/* end confdefs.h. */
1976$4
1977int
1978main ()
1979{
1980if (sizeof ($2))
1981 return 0;
1982 ;
1983 return 0;
1984}
1985_ACEOF
1986if ac_fn_c_try_compile "$LINENO"; then :
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988/* end confdefs.h. */
1989$4
1990int
1991main ()
1992{
1993if (sizeof (($2)))
1994 return 0;
1995 ;
1996 return 0;
1997}
1998_ACEOF
1999if ac_fn_c_try_compile "$LINENO"; then :
2000
2001else
2002 eval "$3=yes"
2003fi
2004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2005fi
2006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2007fi
2008eval ac_res=\$$3
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2010$as_echo "$ac_res" >&6; }
2011 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2012
2013} # ac_fn_c_check_type
2014cat >config.log <<_ACEOF
2015This file contains any messages produced by compilers while
2016running configure, to aid debugging if configure makes a mistake.
2017
2018It was created by $as_me, which was
2019generated by GNU Autoconf 2.69. Invocation command line was
2020
2021 $ $0 $@
2022
2023_ACEOF
2024exec 5>>config.log
2025{
2026cat <<_ASUNAME
2027## --------- ##
2028## Platform. ##
2029## --------- ##
2030
2031hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2032uname -m = `(uname -m) 2>/dev/null || echo unknown`
2033uname -r = `(uname -r) 2>/dev/null || echo unknown`
2034uname -s = `(uname -s) 2>/dev/null || echo unknown`
2035uname -v = `(uname -v) 2>/dev/null || echo unknown`
2036
2037/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2038/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2039
2040/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2041/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2042/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2043/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2044/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2045/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2046/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2047
2048_ASUNAME
2049
2050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051for as_dir in $PATH
2052do
2053 IFS=$as_save_IFS
2054 test -z "$as_dir" && as_dir=.
2055 $as_echo "PATH: $as_dir"
2056 done
2057IFS=$as_save_IFS
2058
2059} >&5
2060
2061cat >&5 <<_ACEOF
2062
2063
2064## ----------- ##
2065## Core tests. ##
2066## ----------- ##
2067
2068_ACEOF
2069
2070
2071# Keep a trace of the command line.
2072# Strip out --no-create and --no-recursion so they do not pile up.
2073# Strip out --silent because we don't want to record it for future runs.
2074# Also quote any args containing shell meta-characters.
2075# Make two passes to allow for proper duplicate-argument suppression.
2076ac_configure_args=
2077ac_configure_args0=
2078ac_configure_args1=
2079ac_must_keep_next=false
2080for ac_pass in 1 2
2081do
2082 for ac_arg
2083 do
2084 case $ac_arg in
2085 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2087 | -silent | --silent | --silen | --sile | --sil)
2088 continue ;;
2089 *\'*)
2090 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2091 esac
2092 case $ac_pass in
2093 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2094 2)
2095 as_fn_append ac_configure_args1 " '$ac_arg'"
2096 if test $ac_must_keep_next = true; then
2097 ac_must_keep_next=false # Got value, back to normal.
2098 else
2099 case $ac_arg in
2100 *=* | --config-cache | -C | -disable-* | --disable-* \
2101 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2102 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2103 | -with-* | --with-* | -without-* | --without-* | --x)
2104 case "$ac_configure_args0 " in
2105 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2106 esac
2107 ;;
2108 -* ) ac_must_keep_next=true ;;
2109 esac
2110 fi
2111 as_fn_append ac_configure_args " '$ac_arg'"
2112 ;;
2113 esac
2114 done
2115done
2116{ ac_configure_args0=; unset ac_configure_args0;}
2117{ ac_configure_args1=; unset ac_configure_args1;}
2118
2119# When interrupted or exit'd, cleanup temporary files, and complete
2120# config.log. We remove comments because anyway the quotes in there
2121# would cause problems or look ugly.
2122# WARNING: Use '\'' to represent an apostrophe within the trap.
2123# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2124trap 'exit_status=$?
2125 # Save into config.log some information that might help in debugging.
2126 {
2127 echo
2128
2129 $as_echo "## ---------------- ##
2130## Cache variables. ##
2131## ---------------- ##"
2132 echo
2133 # The following way of writing the cache mishandles newlines in values,
2134(
2135 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2136 eval ac_val=\$$ac_var
2137 case $ac_val in #(
2138 *${as_nl}*)
2139 case $ac_var in #(
2140 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2141$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2142 esac
2143 case $ac_var in #(
2144 _ | IFS | as_nl) ;; #(
2145 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2146 *) { eval $ac_var=; unset $ac_var;} ;;
2147 esac ;;
2148 esac
2149 done
2150 (set) 2>&1 |
2151 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2152 *${as_nl}ac_space=\ *)
2153 sed -n \
2154 "s/'\''/'\''\\\\'\'''\''/g;
2155 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2156 ;; #(
2157 *)
2158 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2159 ;;
2160 esac |
2161 sort
2162)
2163 echo
2164
2165 $as_echo "## ----------------- ##
2166## Output variables. ##
2167## ----------------- ##"
2168 echo
2169 for ac_var in $ac_subst_vars
2170 do
2171 eval ac_val=\$$ac_var
2172 case $ac_val in
2173 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2174 esac
2175 $as_echo "$ac_var='\''$ac_val'\''"
2176 done | sort
2177 echo
2178
2179 if test -n "$ac_subst_files"; then
2180 $as_echo "## ------------------- ##
2181## File substitutions. ##
2182## ------------------- ##"
2183 echo
2184 for ac_var in $ac_subst_files
2185 do
2186 eval ac_val=\$$ac_var
2187 case $ac_val in
2188 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2189 esac
2190 $as_echo "$ac_var='\''$ac_val'\''"
2191 done | sort
2192 echo
2193 fi
2194
2195 if test -s confdefs.h; then
2196 $as_echo "## ----------- ##
2197## confdefs.h. ##
2198## ----------- ##"
2199 echo
2200 cat confdefs.h
2201 echo
2202 fi
2203 test "$ac_signal" != 0 &&
2204 $as_echo "$as_me: caught signal $ac_signal"
2205 $as_echo "$as_me: exit $exit_status"
2206 } >&5
2207 rm -f core *.core core.conftest.* &&
2208 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2209 exit $exit_status
2210' 0
2211for ac_signal in 1 2 13 15; do
2212 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2213done
2214ac_signal=0
2215
2216# confdefs.h avoids OS command line length limits that DEFS can exceed.
2217rm -f -r conftest* confdefs.h
2218
2219$as_echo "/* confdefs.h */" > confdefs.h
2220
2221# Predefined preprocessor variables.
2222
2223cat >>confdefs.h <<_ACEOF
2224#define PACKAGE_NAME "$PACKAGE_NAME"
2225_ACEOF
2226
2227cat >>confdefs.h <<_ACEOF
2228#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2229_ACEOF
2230
2231cat >>confdefs.h <<_ACEOF
2232#define PACKAGE_VERSION "$PACKAGE_VERSION"
2233_ACEOF
2234
2235cat >>confdefs.h <<_ACEOF
2236#define PACKAGE_STRING "$PACKAGE_STRING"
2237_ACEOF
2238
2239cat >>confdefs.h <<_ACEOF
2240#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2241_ACEOF
2242
2243cat >>confdefs.h <<_ACEOF
2244#define PACKAGE_URL "$PACKAGE_URL"
2245_ACEOF
2246
2247
2248# Let the site file select an alternate cache file if it wants to.
2249# Prefer an explicitly selected file to automatically selected ones.
2250ac_site_file1=NONE
2251ac_site_file2=NONE
2252if test -n "$CONFIG_SITE"; then
2253 # We do not want a PATH search for config.site.
2254 case $CONFIG_SITE in #((
2255 -*) ac_site_file1=./$CONFIG_SITE;;
2256 */*) ac_site_file1=$CONFIG_SITE;;
2257 *) ac_site_file1=./$CONFIG_SITE;;
2258 esac
2259elif test "x$prefix" != xNONE; then
2260 ac_site_file1=$prefix/share/config.site
2261 ac_site_file2=$prefix/etc/config.site
2262else
2263 ac_site_file1=$ac_default_prefix/share/config.site
2264 ac_site_file2=$ac_default_prefix/etc/config.site
2265fi
2266for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2267do
2268 test "x$ac_site_file" = xNONE && continue
2269 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2271$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2272 sed 's/^/| /' "$ac_site_file" >&5
2273 . "$ac_site_file" \
2274 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2275$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2276as_fn_error $? "failed to load site script $ac_site_file
2277See \`config.log' for more details" "$LINENO" 5; }
2278 fi
2279done
2280
2281if test -r "$cache_file"; then
2282 # Some versions of bash will fail to source /dev/null (special files
2283 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2284 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2286$as_echo "$as_me: loading cache $cache_file" >&6;}
2287 case $cache_file in
2288 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2289 *) . "./$cache_file";;
2290 esac
2291 fi
2292else
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2294$as_echo "$as_me: creating cache $cache_file" >&6;}
2295 >$cache_file
2296fi
2297
2c2645d7
MF
2298as_fn_append ac_header_list " dlfcn.h"
2299as_fn_append ac_header_list " fcntl.h"
2300as_fn_append ac_header_list " fpu_control.h"
2301as_fn_append ac_header_list " unistd.h"
2302as_fn_append ac_header_list " sys/mman.h"
2303as_fn_append ac_header_list " sys/resource.h"
2c2645d7 2304as_fn_append ac_header_list " sys/stat.h"
37e9f182
MF
2305as_fn_append ac_func_list " __setfpucw"
2306as_fn_append ac_func_list " ftruncate"
2307as_fn_append ac_func_list " getrusage"
2308as_fn_append ac_func_list " lstat"
2309as_fn_append ac_func_list " mmap"
2310as_fn_append ac_func_list " munmap"
2311as_fn_append ac_func_list " posix_fallocate"
2312as_fn_append ac_func_list " sigaction"
fe348617 2313as_fn_append ac_func_list " strsignal"
37e9f182
MF
2314as_fn_append ac_func_list " time"
2315as_fn_append ac_func_list " truncate"
b9249c46
MF
2316# Check that the precious variables saved in the cache have kept the same
2317# value.
2318ac_cache_corrupted=false
2319for ac_var in $ac_precious_vars; do
2320 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2321 eval ac_new_set=\$ac_env_${ac_var}_set
2322 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2323 eval ac_new_val=\$ac_env_${ac_var}_value
2324 case $ac_old_set,$ac_new_set in
2325 set,)
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2327$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2328 ac_cache_corrupted=: ;;
2329 ,set)
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2331$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2332 ac_cache_corrupted=: ;;
2333 ,);;
2334 *)
2335 if test "x$ac_old_val" != "x$ac_new_val"; then
2336 # differences in whitespace do not lead to failure.
2337 ac_old_val_w=`echo x $ac_old_val`
2338 ac_new_val_w=`echo x $ac_new_val`
2339 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2341$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2342 ac_cache_corrupted=:
2343 else
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2345$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2346 eval $ac_var=\$ac_old_val
2347 fi
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2349$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2351$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2352 fi;;
2353 esac
2354 # Pass precious variables to config.status.
2355 if test "$ac_new_set" = set; then
2356 case $ac_new_val in
2357 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2358 *) ac_arg=$ac_var=$ac_new_val ;;
2359 esac
2360 case " $ac_configure_args " in
2361 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2362 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2363 esac
2364 fi
2365done
2366if $ac_cache_corrupted; then
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2368$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2370$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2371 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2372fi
2373## -------------------- ##
2374## Main body of script. ##
2375## -------------------- ##
2376
2377ac_ext=c
2378ac_cpp='$CPP $CPPFLAGS'
2379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2381ac_compiler_gnu=$ac_cv_c_compiler_gnu
2382
2383
b9249c46
MF
2384
2385
2386
2387
2388
c2783492
MF
2389ac_aux_dir=
2390for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2391 if test -f "$ac_dir/install-sh"; then
2392 ac_aux_dir=$ac_dir
2393 ac_install_sh="$ac_aux_dir/install-sh -c"
2394 break
2395 elif test -f "$ac_dir/install.sh"; then
2396 ac_aux_dir=$ac_dir
2397 ac_install_sh="$ac_aux_dir/install.sh -c"
2398 break
2399 elif test -f "$ac_dir/shtool"; then
2400 ac_aux_dir=$ac_dir
2401 ac_install_sh="$ac_aux_dir/shtool install -c"
2402 break
2403 fi
2404done
2405if test -z "$ac_aux_dir"; then
2406 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2407fi
2408
2409# These three variables are undocumented and unsupported,
2410# and are intended to be withdrawn in a future Autoconf release.
2411# They can cause serious problems if a builder's source tree is in a directory
2412# whose full name contains unusual characters.
2413ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2414ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2415ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2416
2417
2418# Make sure we can run config.sub.
2419$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2420 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2421
2422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2423$as_echo_n "checking build system type... " >&6; }
2424if ${ac_cv_build+:} false; then :
2425 $as_echo_n "(cached) " >&6
2426else
2427 ac_build_alias=$build_alias
2428test "x$ac_build_alias" = x &&
2429 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2430test "x$ac_build_alias" = x &&
2431 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2432ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2433 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2434
2435fi
2436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2437$as_echo "$ac_cv_build" >&6; }
2438case $ac_cv_build in
2439*-*-*) ;;
2440*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2441esac
2442build=$ac_cv_build
2443ac_save_IFS=$IFS; IFS='-'
2444set x $ac_cv_build
2445shift
2446build_cpu=$1
2447build_vendor=$2
2448shift; shift
2449# Remember, the first character of IFS is used to create $*,
2450# except with old shells:
2451build_os=$*
2452IFS=$ac_save_IFS
2453case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2454
2455
2456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2457$as_echo_n "checking host system type... " >&6; }
2458if ${ac_cv_host+:} false; then :
2459 $as_echo_n "(cached) " >&6
2460else
2461 if test "x$host_alias" = x; then
2462 ac_cv_host=$ac_cv_build
2463else
2464 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2465 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2466fi
2467
2468fi
2469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2470$as_echo "$ac_cv_host" >&6; }
2471case $ac_cv_host in
2472*-*-*) ;;
2473*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2474esac
2475host=$ac_cv_host
2476ac_save_IFS=$IFS; IFS='-'
2477set x $ac_cv_host
2478shift
2479host_cpu=$1
2480host_vendor=$2
2481shift; shift
2482# Remember, the first character of IFS is used to create $*,
2483# except with old shells:
2484host_os=$*
2485IFS=$ac_save_IFS
2486case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2487
2488
2489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2490$as_echo_n "checking target system type... " >&6; }
2491if ${ac_cv_target+:} false; then :
2492 $as_echo_n "(cached) " >&6
2493else
2494 if test "x$target_alias" = x; then
2495 ac_cv_target=$ac_cv_host
2496else
2497 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2498 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2499fi
2500
2501fi
2502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2503$as_echo "$ac_cv_target" >&6; }
2504case $ac_cv_target in
2505*-*-*) ;;
2506*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2507esac
2508target=$ac_cv_target
2509ac_save_IFS=$IFS; IFS='-'
2510set x $ac_cv_target
2511shift
2512target_cpu=$1
2513target_vendor=$2
2514shift; shift
2515# Remember, the first character of IFS is used to create $*,
2516# except with old shells:
2517target_os=$*
2518IFS=$ac_save_IFS
2519case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2520
2521
2522# The aliases save the names the user supplied, while $host etc.
2523# will get canonicalized.
2524test -n "$target_alias" &&
2525 test "$program_prefix$program_suffix$program_transform_name" = \
2526 NONENONEs,x,x, &&
2527 program_prefix=${target_alias}-
b9249c46
MF
2528ac_ext=c
2529ac_cpp='$CPP $CPPFLAGS'
2530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2532ac_compiler_gnu=$ac_cv_c_compiler_gnu
2533if test -n "$ac_tool_prefix"; then
2534 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2535set dummy ${ac_tool_prefix}gcc; ac_word=$2
2536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2537$as_echo_n "checking for $ac_word... " >&6; }
2538if ${ac_cv_prog_CC+:} false; then :
2539 $as_echo_n "(cached) " >&6
2540else
2541 if test -n "$CC"; then
2542 ac_cv_prog_CC="$CC" # Let the user override the test.
2543else
2544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2545for as_dir in $PATH
2546do
2547 IFS=$as_save_IFS
2548 test -z "$as_dir" && as_dir=.
2549 for ac_exec_ext in '' $ac_executable_extensions; do
2550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2551 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2553 break 2
2554 fi
2555done
2556 done
2557IFS=$as_save_IFS
2558
2559fi
2560fi
2561CC=$ac_cv_prog_CC
2562if test -n "$CC"; then
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2564$as_echo "$CC" >&6; }
2565else
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2567$as_echo "no" >&6; }
2568fi
2569
2570
2571fi
2572if test -z "$ac_cv_prog_CC"; then
2573 ac_ct_CC=$CC
2574 # Extract the first word of "gcc", so it can be a program name with args.
2575set dummy gcc; ac_word=$2
2576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2577$as_echo_n "checking for $ac_word... " >&6; }
2578if ${ac_cv_prog_ac_ct_CC+:} false; then :
2579 $as_echo_n "(cached) " >&6
2580else
2581 if test -n "$ac_ct_CC"; then
2582 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2583else
2584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585for as_dir in $PATH
2586do
2587 IFS=$as_save_IFS
2588 test -z "$as_dir" && as_dir=.
2589 for ac_exec_ext in '' $ac_executable_extensions; do
2590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2591 ac_cv_prog_ac_ct_CC="gcc"
2592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2593 break 2
2594 fi
2595done
2596 done
2597IFS=$as_save_IFS
2598
2599fi
2600fi
2601ac_ct_CC=$ac_cv_prog_ac_ct_CC
2602if test -n "$ac_ct_CC"; then
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2604$as_echo "$ac_ct_CC" >&6; }
2605else
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2607$as_echo "no" >&6; }
2608fi
2609
2610 if test "x$ac_ct_CC" = x; then
2611 CC=""
2612 else
2613 case $cross_compiling:$ac_tool_warned in
2614yes:)
2615{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2616$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2617ac_tool_warned=yes ;;
2618esac
2619 CC=$ac_ct_CC
2620 fi
2621else
2622 CC="$ac_cv_prog_CC"
2623fi
2624
2625if test -z "$CC"; then
2626 if test -n "$ac_tool_prefix"; then
2627 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2628set dummy ${ac_tool_prefix}cc; ac_word=$2
2629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2630$as_echo_n "checking for $ac_word... " >&6; }
2631if ${ac_cv_prog_CC+:} false; then :
2632 $as_echo_n "(cached) " >&6
2633else
2634 if test -n "$CC"; then
2635 ac_cv_prog_CC="$CC" # Let the user override the test.
2636else
2637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638for as_dir in $PATH
2639do
2640 IFS=$as_save_IFS
2641 test -z "$as_dir" && as_dir=.
2642 for ac_exec_ext in '' $ac_executable_extensions; do
2643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2644 ac_cv_prog_CC="${ac_tool_prefix}cc"
2645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2646 break 2
2647 fi
2648done
2649 done
2650IFS=$as_save_IFS
2651
2652fi
2653fi
2654CC=$ac_cv_prog_CC
2655if test -n "$CC"; then
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2657$as_echo "$CC" >&6; }
2658else
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2660$as_echo "no" >&6; }
2661fi
2662
2663
2664 fi
2665fi
2666if test -z "$CC"; then
2667 # Extract the first word of "cc", so it can be a program name with args.
2668set dummy cc; ac_word=$2
2669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2670$as_echo_n "checking for $ac_word... " >&6; }
2671if ${ac_cv_prog_CC+:} false; then :
2672 $as_echo_n "(cached) " >&6
2673else
2674 if test -n "$CC"; then
2675 ac_cv_prog_CC="$CC" # Let the user override the test.
2676else
2677 ac_prog_rejected=no
2678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679for as_dir in $PATH
2680do
2681 IFS=$as_save_IFS
2682 test -z "$as_dir" && as_dir=.
2683 for ac_exec_ext in '' $ac_executable_extensions; do
2684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2685 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2686 ac_prog_rejected=yes
2687 continue
2688 fi
2689 ac_cv_prog_CC="cc"
2690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2691 break 2
2692 fi
2693done
2694 done
2695IFS=$as_save_IFS
2696
2697if test $ac_prog_rejected = yes; then
2698 # We found a bogon in the path, so make sure we never use it.
2699 set dummy $ac_cv_prog_CC
2700 shift
2701 if test $# != 0; then
2702 # We chose a different compiler from the bogus one.
2703 # However, it has the same basename, so the bogon will be chosen
2704 # first if we set CC to just the basename; use the full file name.
2705 shift
2706 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2707 fi
2708fi
2709fi
2710fi
2711CC=$ac_cv_prog_CC
2712if test -n "$CC"; then
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2714$as_echo "$CC" >&6; }
2715else
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2717$as_echo "no" >&6; }
2718fi
2719
2720
2721fi
2722if test -z "$CC"; then
2723 if test -n "$ac_tool_prefix"; then
2724 for ac_prog in cl.exe
2725 do
2726 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2727set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2729$as_echo_n "checking for $ac_word... " >&6; }
2730if ${ac_cv_prog_CC+:} false; then :
2731 $as_echo_n "(cached) " >&6
2732else
2733 if test -n "$CC"; then
2734 ac_cv_prog_CC="$CC" # Let the user override the test.
2735else
2736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737for as_dir in $PATH
2738do
2739 IFS=$as_save_IFS
2740 test -z "$as_dir" && as_dir=.
2741 for ac_exec_ext in '' $ac_executable_extensions; do
2742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2743 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2745 break 2
2746 fi
2747done
2748 done
2749IFS=$as_save_IFS
2750
2751fi
2752fi
2753CC=$ac_cv_prog_CC
2754if test -n "$CC"; then
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2756$as_echo "$CC" >&6; }
2757else
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2759$as_echo "no" >&6; }
2760fi
2761
2762
2763 test -n "$CC" && break
2764 done
2765fi
2766if test -z "$CC"; then
2767 ac_ct_CC=$CC
2768 for ac_prog in cl.exe
2769do
2770 # Extract the first word of "$ac_prog", so it can be a program name with args.
2771set dummy $ac_prog; ac_word=$2
2772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2773$as_echo_n "checking for $ac_word... " >&6; }
2774if ${ac_cv_prog_ac_ct_CC+:} false; then :
2775 $as_echo_n "(cached) " >&6
2776else
2777 if test -n "$ac_ct_CC"; then
2778 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2779else
2780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781for as_dir in $PATH
2782do
2783 IFS=$as_save_IFS
2784 test -z "$as_dir" && as_dir=.
2785 for ac_exec_ext in '' $ac_executable_extensions; do
2786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2787 ac_cv_prog_ac_ct_CC="$ac_prog"
2788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2789 break 2
2790 fi
2791done
2792 done
2793IFS=$as_save_IFS
2794
2795fi
2796fi
2797ac_ct_CC=$ac_cv_prog_ac_ct_CC
2798if test -n "$ac_ct_CC"; then
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2800$as_echo "$ac_ct_CC" >&6; }
2801else
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2803$as_echo "no" >&6; }
2804fi
2805
2806
2807 test -n "$ac_ct_CC" && break
2808done
2809
2810 if test "x$ac_ct_CC" = x; then
2811 CC=""
2812 else
2813 case $cross_compiling:$ac_tool_warned in
2814yes:)
2815{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2816$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2817ac_tool_warned=yes ;;
2818esac
2819 CC=$ac_ct_CC
2820 fi
2821fi
2822
2823fi
2824
2825
2826test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2827$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2828as_fn_error $? "no acceptable C compiler found in \$PATH
2829See \`config.log' for more details" "$LINENO" 5; }
2830
2831# Provide some information about the compiler.
2832$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2833set X $ac_compile
2834ac_compiler=$2
2835for ac_option in --version -v -V -qversion; do
2836 { { ac_try="$ac_compiler $ac_option >&5"
2837case "(($ac_try" in
2838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2839 *) ac_try_echo=$ac_try;;
2840esac
2841eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2842$as_echo "$ac_try_echo"; } >&5
2843 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2844 ac_status=$?
2845 if test -s conftest.err; then
2846 sed '10a\
2847... rest of stderr output deleted ...
2848 10q' conftest.err >conftest.er1
2849 cat conftest.er1 >&5
2850 fi
2851 rm -f conftest.er1 conftest.err
2852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2853 test $ac_status = 0; }
2854done
2855
2856cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2857/* end confdefs.h. */
2858
2859int
2860main ()
2861{
2862
2863 ;
2864 return 0;
2865}
2866_ACEOF
2867ac_clean_files_save=$ac_clean_files
2868ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2869# Try to create an executable without -o first, disregard a.out.
2870# It will help us diagnose broken compilers, and finding out an intuition
2871# of exeext.
2872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2873$as_echo_n "checking whether the C compiler works... " >&6; }
2874ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2875
2876# The possible output files:
2877ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2878
2879ac_rmfiles=
2880for ac_file in $ac_files
2881do
2882 case $ac_file in
2883 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2884 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2885 esac
2886done
2887rm -f $ac_rmfiles
2888
2889if { { ac_try="$ac_link_default"
2890case "(($ac_try" in
2891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2892 *) ac_try_echo=$ac_try;;
2893esac
2894eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2895$as_echo "$ac_try_echo"; } >&5
2896 (eval "$ac_link_default") 2>&5
2897 ac_status=$?
2898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2899 test $ac_status = 0; }; then :
2900 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2901# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2902# in a Makefile. We should not override ac_cv_exeext if it was cached,
2903# so that the user can short-circuit this test for compilers unknown to
2904# Autoconf.
2905for ac_file in $ac_files ''
2906do
2907 test -f "$ac_file" || continue
2908 case $ac_file in
2909 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2910 ;;
2911 [ab].out )
2912 # We found the default executable, but exeext='' is most
2913 # certainly right.
2914 break;;
2915 *.* )
2916 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2917 then :; else
2918 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2919 fi
2920 # We set ac_cv_exeext here because the later test for it is not
2921 # safe: cross compilers may not add the suffix if given an `-o'
2922 # argument, so we may need to know it at that point already.
2923 # Even if this section looks crufty: it has the advantage of
2924 # actually working.
2925 break;;
2926 * )
2927 break;;
2928 esac
2929done
2930test "$ac_cv_exeext" = no && ac_cv_exeext=
2931
2932else
2933 ac_file=''
2934fi
2935if test -z "$ac_file"; then :
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2937$as_echo "no" >&6; }
2938$as_echo "$as_me: failed program was:" >&5
2939sed 's/^/| /' conftest.$ac_ext >&5
2940
2941{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2942$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2943as_fn_error 77 "C compiler cannot create executables
2944See \`config.log' for more details" "$LINENO" 5; }
2945else
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2947$as_echo "yes" >&6; }
2948fi
2949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2950$as_echo_n "checking for C compiler default output file name... " >&6; }
2951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2952$as_echo "$ac_file" >&6; }
2953ac_exeext=$ac_cv_exeext
2954
2955rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2956ac_clean_files=$ac_clean_files_save
2957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2958$as_echo_n "checking for suffix of executables... " >&6; }
2959if { { ac_try="$ac_link"
2960case "(($ac_try" in
2961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962 *) ac_try_echo=$ac_try;;
2963esac
2964eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2965$as_echo "$ac_try_echo"; } >&5
2966 (eval "$ac_link") 2>&5
2967 ac_status=$?
2968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2969 test $ac_status = 0; }; then :
2970 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2971# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2972# work properly (i.e., refer to `conftest.exe'), while it won't with
2973# `rm'.
2974for ac_file in conftest.exe conftest conftest.*; do
2975 test -f "$ac_file" || continue
2976 case $ac_file in
2977 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2978 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2979 break;;
2980 * ) break;;
2981 esac
2982done
2983else
2984 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2985$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2986as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2987See \`config.log' for more details" "$LINENO" 5; }
2988fi
2989rm -f conftest conftest$ac_cv_exeext
2990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2991$as_echo "$ac_cv_exeext" >&6; }
2992
2993rm -f conftest.$ac_ext
2994EXEEXT=$ac_cv_exeext
2995ac_exeext=$EXEEXT
2996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2997/* end confdefs.h. */
2998#include <stdio.h>
2999int
3000main ()
3001{
3002FILE *f = fopen ("conftest.out", "w");
3003 return ferror (f) || fclose (f) != 0;
3004
3005 ;
3006 return 0;
3007}
3008_ACEOF
3009ac_clean_files="$ac_clean_files conftest.out"
3010# Check that the compiler produces executables we can run. If not, either
3011# the compiler is broken, or we cross compile.
3012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3013$as_echo_n "checking whether we are cross compiling... " >&6; }
3014if test "$cross_compiling" != yes; then
3015 { { ac_try="$ac_link"
3016case "(($ac_try" in
3017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018 *) ac_try_echo=$ac_try;;
3019esac
3020eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3021$as_echo "$ac_try_echo"; } >&5
3022 (eval "$ac_link") 2>&5
3023 ac_status=$?
3024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3025 test $ac_status = 0; }
3026 if { ac_try='./conftest$ac_cv_exeext'
3027 { { case "(($ac_try" in
3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029 *) ac_try_echo=$ac_try;;
3030esac
3031eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3032$as_echo "$ac_try_echo"; } >&5
3033 (eval "$ac_try") 2>&5
3034 ac_status=$?
3035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3036 test $ac_status = 0; }; }; then
3037 cross_compiling=no
3038 else
3039 if test "$cross_compiling" = maybe; then
3040 cross_compiling=yes
3041 else
3042 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3043$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3044as_fn_error $? "cannot run C compiled programs.
3045If you meant to cross compile, use \`--host'.
3046See \`config.log' for more details" "$LINENO" 5; }
3047 fi
3048 fi
3049fi
3050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3051$as_echo "$cross_compiling" >&6; }
3052
3053rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3054ac_clean_files=$ac_clean_files_save
3055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3056$as_echo_n "checking for suffix of object files... " >&6; }
3057if ${ac_cv_objext+:} false; then :
3058 $as_echo_n "(cached) " >&6
3059else
3060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3061/* end confdefs.h. */
3062
3063int
3064main ()
3065{
3066
3067 ;
3068 return 0;
3069}
3070_ACEOF
3071rm -f conftest.o conftest.obj
3072if { { ac_try="$ac_compile"
3073case "(($ac_try" in
3074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3075 *) ac_try_echo=$ac_try;;
3076esac
3077eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3078$as_echo "$ac_try_echo"; } >&5
3079 (eval "$ac_compile") 2>&5
3080 ac_status=$?
3081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3082 test $ac_status = 0; }; then :
3083 for ac_file in conftest.o conftest.obj conftest.*; do
3084 test -f "$ac_file" || continue;
3085 case $ac_file in
3086 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3087 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3088 break;;
3089 esac
3090done
3091else
3092 $as_echo "$as_me: failed program was:" >&5
3093sed 's/^/| /' conftest.$ac_ext >&5
3094
3095{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3096$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3097as_fn_error $? "cannot compute suffix of object files: cannot compile
3098See \`config.log' for more details" "$LINENO" 5; }
3099fi
3100rm -f conftest.$ac_cv_objext conftest.$ac_ext
3101fi
3102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3103$as_echo "$ac_cv_objext" >&6; }
3104OBJEXT=$ac_cv_objext
3105ac_objext=$OBJEXT
3106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3107$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3108if ${ac_cv_c_compiler_gnu+:} false; then :
3109 $as_echo_n "(cached) " >&6
3110else
3111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3112/* end confdefs.h. */
3113
3114int
3115main ()
3116{
3117#ifndef __GNUC__
3118 choke me
3119#endif
3120
3121 ;
3122 return 0;
3123}
3124_ACEOF
3125if ac_fn_c_try_compile "$LINENO"; then :
3126 ac_compiler_gnu=yes
3127else
3128 ac_compiler_gnu=no
3129fi
3130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3131ac_cv_c_compiler_gnu=$ac_compiler_gnu
3132
3133fi
3134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3135$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3136if test $ac_compiler_gnu = yes; then
3137 GCC=yes
3138else
3139 GCC=
3140fi
3141ac_test_CFLAGS=${CFLAGS+set}
3142ac_save_CFLAGS=$CFLAGS
3143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3144$as_echo_n "checking whether $CC accepts -g... " >&6; }
3145if ${ac_cv_prog_cc_g+:} false; then :
3146 $as_echo_n "(cached) " >&6
3147else
3148 ac_save_c_werror_flag=$ac_c_werror_flag
3149 ac_c_werror_flag=yes
3150 ac_cv_prog_cc_g=no
3151 CFLAGS="-g"
3152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3153/* end confdefs.h. */
3154
3155int
3156main ()
3157{
3158
3159 ;
3160 return 0;
3161}
3162_ACEOF
3163if ac_fn_c_try_compile "$LINENO"; then :
3164 ac_cv_prog_cc_g=yes
3165else
3166 CFLAGS=""
3167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3168/* end confdefs.h. */
3169
3170int
3171main ()
3172{
3173
3174 ;
3175 return 0;
3176}
3177_ACEOF
3178if ac_fn_c_try_compile "$LINENO"; then :
3179
3180else
3181 ac_c_werror_flag=$ac_save_c_werror_flag
3182 CFLAGS="-g"
3183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3184/* end confdefs.h. */
3185
3186int
3187main ()
3188{
3189
3190 ;
3191 return 0;
3192}
3193_ACEOF
3194if ac_fn_c_try_compile "$LINENO"; then :
3195 ac_cv_prog_cc_g=yes
3196fi
3197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3198fi
3199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200fi
3201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202 ac_c_werror_flag=$ac_save_c_werror_flag
3203fi
3204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3205$as_echo "$ac_cv_prog_cc_g" >&6; }
3206if test "$ac_test_CFLAGS" = set; then
3207 CFLAGS=$ac_save_CFLAGS
3208elif test $ac_cv_prog_cc_g = yes; then
3209 if test "$GCC" = yes; then
3210 CFLAGS="-g -O2"
3211 else
3212 CFLAGS="-g"
3213 fi
3214else
3215 if test "$GCC" = yes; then
3216 CFLAGS="-O2"
3217 else
3218 CFLAGS=
3219 fi
3220fi
3221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3222$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3223if ${ac_cv_prog_cc_c89+:} false; then :
3224 $as_echo_n "(cached) " >&6
3225else
3226 ac_cv_prog_cc_c89=no
3227ac_save_CC=$CC
3228cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3229/* end confdefs.h. */
3230#include <stdarg.h>
3231#include <stdio.h>
3232struct stat;
3233/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3234struct buf { int x; };
3235FILE * (*rcsopen) (struct buf *, struct stat *, int);
3236static char *e (p, i)
3237 char **p;
3238 int i;
3239{
3240 return p[i];
3241}
3242static char *f (char * (*g) (char **, int), char **p, ...)
3243{
3244 char *s;
3245 va_list v;
3246 va_start (v,p);
3247 s = g (p, va_arg (v,int));
3248 va_end (v);
3249 return s;
3250}
3251
3252/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3253 function prototypes and stuff, but not '\xHH' hex character constants.
3254 These don't provoke an error unfortunately, instead are silently treated
3255 as 'x'. The following induces an error, until -std is added to get
3256 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3257 array size at least. It's necessary to write '\x00'==0 to get something
3258 that's true only with -std. */
3259int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3260
3261/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3262 inside strings and character constants. */
3263#define FOO(x) 'x'
3264int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3265
3266int test (int i, double x);
3267struct s1 {int (*f) (int a);};
3268struct s2 {int (*f) (double a);};
3269int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3270int argc;
3271char **argv;
3272int
3273main ()
3274{
3275return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3276 ;
3277 return 0;
3278}
3279_ACEOF
3280for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3281 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3282do
3283 CC="$ac_save_CC $ac_arg"
3284 if ac_fn_c_try_compile "$LINENO"; then :
3285 ac_cv_prog_cc_c89=$ac_arg
3286fi
3287rm -f core conftest.err conftest.$ac_objext
3288 test "x$ac_cv_prog_cc_c89" != "xno" && break
3289done
3290rm -f conftest.$ac_ext
3291CC=$ac_save_CC
3292
3293fi
3294# AC_CACHE_VAL
3295case "x$ac_cv_prog_cc_c89" in
3296 x)
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3298$as_echo "none needed" >&6; } ;;
3299 xno)
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3301$as_echo "unsupported" >&6; } ;;
3302 *)
3303 CC="$CC $ac_cv_prog_cc_c89"
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3305$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3306esac
3307if test "x$ac_cv_prog_cc_c89" != xno; then :
3308
3309fi
3310
3311ac_ext=c
3312ac_cpp='$CPP $CPPFLAGS'
3313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3315ac_compiler_gnu=$ac_cv_c_compiler_gnu
3316
c2783492 3317
ebe9564b
MF
3318ac_ext=c
3319ac_cpp='$CPP $CPPFLAGS'
3320ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3321ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3322ac_compiler_gnu=$ac_cv_c_compiler_gnu
3323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3324$as_echo_n "checking how to run the C preprocessor... " >&6; }
3325# On Suns, sometimes $CPP names a directory.
3326if test -n "$CPP" && test -d "$CPP"; then
3327 CPP=
3328fi
3329if test -z "$CPP"; then
3330 if ${ac_cv_prog_CPP+:} false; then :
3331 $as_echo_n "(cached) " >&6
3332else
3333 # Double quotes because CPP needs to be expanded
3334 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3335 do
3336 ac_preproc_ok=false
3337for ac_c_preproc_warn_flag in '' yes
3338do
3339 # Use a header file that comes with gcc, so configuring glibc
3340 # with a fresh cross-compiler works.
3341 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3342 # <limits.h> exists even on freestanding compilers.
3343 # On the NeXT, cc -E runs the code through the compiler's parser,
3344 # not just through cpp. "Syntax error" is here to catch this case.
3345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3346/* end confdefs.h. */
3347#ifdef __STDC__
3348# include <limits.h>
3349#else
3350# include <assert.h>
3351#endif
3352 Syntax error
3353_ACEOF
3354if ac_fn_c_try_cpp "$LINENO"; then :
3355
3356else
3357 # Broken: fails on valid input.
3358continue
3359fi
3360rm -f conftest.err conftest.i conftest.$ac_ext
3361
3362 # OK, works on sane cases. Now check whether nonexistent headers
3363 # can be detected and how.
3364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3365/* end confdefs.h. */
3366#include <ac_nonexistent.h>
3367_ACEOF
3368if ac_fn_c_try_cpp "$LINENO"; then :
3369 # Broken: success on invalid input.
3370continue
3371else
3372 # Passes both tests.
3373ac_preproc_ok=:
3374break
3375fi
3376rm -f conftest.err conftest.i conftest.$ac_ext
3377
3378done
3379# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3380rm -f conftest.i conftest.err conftest.$ac_ext
3381if $ac_preproc_ok; then :
3382 break
3383fi
3384
3385 done
3386 ac_cv_prog_CPP=$CPP
3387
3388fi
3389 CPP=$ac_cv_prog_CPP
3390else
3391 ac_cv_prog_CPP=$CPP
3392fi
3393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3394$as_echo "$CPP" >&6; }
3395ac_preproc_ok=false
3396for ac_c_preproc_warn_flag in '' yes
3397do
3398 # Use a header file that comes with gcc, so configuring glibc
3399 # with a fresh cross-compiler works.
3400 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3401 # <limits.h> exists even on freestanding compilers.
3402 # On the NeXT, cc -E runs the code through the compiler's parser,
3403 # not just through cpp. "Syntax error" is here to catch this case.
3404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3405/* end confdefs.h. */
3406#ifdef __STDC__
3407# include <limits.h>
3408#else
3409# include <assert.h>
3410#endif
3411 Syntax error
3412_ACEOF
3413if ac_fn_c_try_cpp "$LINENO"; then :
3414
3415else
3416 # Broken: fails on valid input.
3417continue
3418fi
3419rm -f conftest.err conftest.i conftest.$ac_ext
3420
3421 # OK, works on sane cases. Now check whether nonexistent headers
3422 # can be detected and how.
3423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3424/* end confdefs.h. */
3425#include <ac_nonexistent.h>
3426_ACEOF
3427if ac_fn_c_try_cpp "$LINENO"; then :
3428 # Broken: success on invalid input.
3429continue
3430else
3431 # Passes both tests.
3432ac_preproc_ok=:
3433break
3434fi
3435rm -f conftest.err conftest.i conftest.$ac_ext
3436
3437done
3438# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3439rm -f conftest.i conftest.err conftest.$ac_ext
3440if $ac_preproc_ok; then :
3441
3442else
3443 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3444$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3445as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3446See \`config.log' for more details" "$LINENO" 5; }
3447fi
3448
3449ac_ext=c
3450ac_cpp='$CPP $CPPFLAGS'
3451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3453ac_compiler_gnu=$ac_cv_c_compiler_gnu
3454
b9249c46
MF
3455
3456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3457$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3458if ${ac_cv_path_GREP+:} false; then :
3459 $as_echo_n "(cached) " >&6
3460else
3461 if test -z "$GREP"; then
3462 ac_path_GREP_found=false
3463 # Loop through the user's path and test for each of PROGNAME-LIST
3464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3465for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3466do
3467 IFS=$as_save_IFS
3468 test -z "$as_dir" && as_dir=.
3469 for ac_prog in grep ggrep; do
3470 for ac_exec_ext in '' $ac_executable_extensions; do
3471 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3472 as_fn_executable_p "$ac_path_GREP" || continue
3473# Check for GNU ac_path_GREP and select it if it is found.
3474 # Check for GNU $ac_path_GREP
3475case `"$ac_path_GREP" --version 2>&1` in
3476*GNU*)
3477 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3478*)
3479 ac_count=0
3480 $as_echo_n 0123456789 >"conftest.in"
3481 while :
3482 do
3483 cat "conftest.in" "conftest.in" >"conftest.tmp"
3484 mv "conftest.tmp" "conftest.in"
3485 cp "conftest.in" "conftest.nl"
3486 $as_echo 'GREP' >> "conftest.nl"
3487 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3488 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3489 as_fn_arith $ac_count + 1 && ac_count=$as_val
3490 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3491 # Best one so far, save it but keep looking for a better one
3492 ac_cv_path_GREP="$ac_path_GREP"
3493 ac_path_GREP_max=$ac_count
3494 fi
3495 # 10*(2^10) chars as input seems more than enough
3496 test $ac_count -gt 10 && break
3497 done
3498 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3499esac
3500
3501 $ac_path_GREP_found && break 3
3502 done
3503 done
3504 done
3505IFS=$as_save_IFS
3506 if test -z "$ac_cv_path_GREP"; then
3507 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3508 fi
3509else
3510 ac_cv_path_GREP=$GREP
3511fi
3512
3513fi
3514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3515$as_echo "$ac_cv_path_GREP" >&6; }
3516 GREP="$ac_cv_path_GREP"
3517
3518
3519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3520$as_echo_n "checking for egrep... " >&6; }
3521if ${ac_cv_path_EGREP+:} false; then :
3522 $as_echo_n "(cached) " >&6
3523else
3524 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3525 then ac_cv_path_EGREP="$GREP -E"
3526 else
3527 if test -z "$EGREP"; then
3528 ac_path_EGREP_found=false
3529 # Loop through the user's path and test for each of PROGNAME-LIST
3530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3531for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3532do
3533 IFS=$as_save_IFS
3534 test -z "$as_dir" && as_dir=.
3535 for ac_prog in egrep; do
3536 for ac_exec_ext in '' $ac_executable_extensions; do
3537 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3538 as_fn_executable_p "$ac_path_EGREP" || continue
3539# Check for GNU ac_path_EGREP and select it if it is found.
3540 # Check for GNU $ac_path_EGREP
3541case `"$ac_path_EGREP" --version 2>&1` in
3542*GNU*)
3543 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3544*)
3545 ac_count=0
3546 $as_echo_n 0123456789 >"conftest.in"
3547 while :
3548 do
3549 cat "conftest.in" "conftest.in" >"conftest.tmp"
3550 mv "conftest.tmp" "conftest.in"
3551 cp "conftest.in" "conftest.nl"
3552 $as_echo 'EGREP' >> "conftest.nl"
3553 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3554 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3555 as_fn_arith $ac_count + 1 && ac_count=$as_val
3556 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3557 # Best one so far, save it but keep looking for a better one
3558 ac_cv_path_EGREP="$ac_path_EGREP"
3559 ac_path_EGREP_max=$ac_count
3560 fi
3561 # 10*(2^10) chars as input seems more than enough
3562 test $ac_count -gt 10 && break
3563 done
3564 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3565esac
3566
3567 $ac_path_EGREP_found && break 3
3568 done
3569 done
3570 done
3571IFS=$as_save_IFS
3572 if test -z "$ac_cv_path_EGREP"; then
3573 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3574 fi
3575else
3576 ac_cv_path_EGREP=$EGREP
3577fi
3578
3579 fi
3580fi
3581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3582$as_echo "$ac_cv_path_EGREP" >&6; }
3583 EGREP="$ac_cv_path_EGREP"
3584
3585
3586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3587$as_echo_n "checking for ANSI C header files... " >&6; }
3588if ${ac_cv_header_stdc+:} false; then :
3589 $as_echo_n "(cached) " >&6
3590else
3591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3592/* end confdefs.h. */
3593#include <stdlib.h>
3594#include <stdarg.h>
3595#include <string.h>
3596#include <float.h>
3597
3598int
3599main ()
3600{
3601
3602 ;
3603 return 0;
3604}
3605_ACEOF
3606if ac_fn_c_try_compile "$LINENO"; then :
3607 ac_cv_header_stdc=yes
3608else
3609 ac_cv_header_stdc=no
3610fi
3611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3612
3613if test $ac_cv_header_stdc = yes; then
3614 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3616/* end confdefs.h. */
3617#include <string.h>
3618
3619_ACEOF
3620if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3621 $EGREP "memchr" >/dev/null 2>&1; then :
3622
3623else
3624 ac_cv_header_stdc=no
3625fi
3626rm -f conftest*
3627
3628fi
3629
3630if test $ac_cv_header_stdc = yes; then
3631 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3633/* end confdefs.h. */
3634#include <stdlib.h>
3635
3636_ACEOF
3637if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3638 $EGREP "free" >/dev/null 2>&1; then :
3639
3640else
3641 ac_cv_header_stdc=no
3642fi
3643rm -f conftest*
3644
3645fi
3646
3647if test $ac_cv_header_stdc = yes; then
3648 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3649 if test "$cross_compiling" = yes; then :
3650 :
3651else
3652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3653/* end confdefs.h. */
3654#include <ctype.h>
3655#include <stdlib.h>
3656#if ((' ' & 0x0FF) == 0x020)
3657# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3658# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3659#else
3660# define ISLOWER(c) \
3661 (('a' <= (c) && (c) <= 'i') \
3662 || ('j' <= (c) && (c) <= 'r') \
3663 || ('s' <= (c) && (c) <= 'z'))
3664# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3665#endif
3666
3667#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3668int
3669main ()
3670{
3671 int i;
3672 for (i = 0; i < 256; i++)
3673 if (XOR (islower (i), ISLOWER (i))
3674 || toupper (i) != TOUPPER (i))
3675 return 2;
3676 return 0;
3677}
3678_ACEOF
3679if ac_fn_c_try_run "$LINENO"; then :
3680
3681else
3682 ac_cv_header_stdc=no
3683fi
3684rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3685 conftest.$ac_objext conftest.beam conftest.$ac_ext
3686fi
3687
3688fi
3689fi
3690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3691$as_echo "$ac_cv_header_stdc" >&6; }
3692if test $ac_cv_header_stdc = yes; then
3693
3694$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3695
3696fi
3697
3698# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3699for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3700 inttypes.h stdint.h unistd.h
3701do :
3702 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3703ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3704"
3705if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3706 cat >>confdefs.h <<_ACEOF
3707#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3708_ACEOF
3709
3710fi
3711
3712done
3713
3714
3715
3716 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3717if test "x$ac_cv_header_minix_config_h" = xyes; then :
3718 MINIX=yes
3719else
3720 MINIX=
3721fi
3722
3723
3724 if test "$MINIX" = yes; then
3725
3726$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3727
3728
3729$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3730
3731
3732$as_echo "#define _MINIX 1" >>confdefs.h
3733
3734 fi
3735
3736
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3738$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3739if ${ac_cv_safe_to_define___extensions__+:} false; then :
3740 $as_echo_n "(cached) " >&6
3741else
3742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743/* end confdefs.h. */
3744
3745# define __EXTENSIONS__ 1
3746 $ac_includes_default
3747int
3748main ()
3749{
3750
3751 ;
3752 return 0;
3753}
3754_ACEOF
3755if ac_fn_c_try_compile "$LINENO"; then :
3756 ac_cv_safe_to_define___extensions__=yes
3757else
3758 ac_cv_safe_to_define___extensions__=no
3759fi
3760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3761fi
3762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3763$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3764 test $ac_cv_safe_to_define___extensions__ = yes &&
3765 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3766
3767 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3768
3769 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3770
3771 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3772
3773 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3774
3775
3776test "$program_prefix" != NONE &&
3777 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3778# Use a double $ so make ignores it.
3779test "$program_suffix" != NONE &&
3780 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3781# Double any \ or $.
3782# By default was `s,x,x', remove it if useless.
3783ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3784program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3785
3786# Find a good install program. We prefer a C program (faster),
3787# so one script is as good as another. But avoid the broken or
3788# incompatible versions:
3789# SysV /etc/install, /usr/sbin/install
3790# SunOS /usr/etc/install
3791# IRIX /sbin/install
3792# AIX /bin/install
3793# AmigaOS /C/install, which installs bootblocks on floppy discs
3794# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3795# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3796# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3797# OS/2's system install, which has a completely different semantic
3798# ./install, which can be erroneously created by make from ./install.sh.
3799# Reject install programs that cannot install multiple files.
3800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3801$as_echo_n "checking for a BSD-compatible install... " >&6; }
3802if test -z "$INSTALL"; then
3803if ${ac_cv_path_install+:} false; then :
3804 $as_echo_n "(cached) " >&6
3805else
3806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3807for as_dir in $PATH
3808do
3809 IFS=$as_save_IFS
3810 test -z "$as_dir" && as_dir=.
3811 # Account for people who put trailing slashes in PATH elements.
3812case $as_dir/ in #((
3813 ./ | .// | /[cC]/* | \
3814 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3815 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3816 /usr/ucb/* ) ;;
3817 *)
3818 # OSF1 and SCO ODT 3.0 have their own names for install.
3819 # Don't use installbsd from OSF since it installs stuff as root
3820 # by default.
3821 for ac_prog in ginstall scoinst install; do
3822 for ac_exec_ext in '' $ac_executable_extensions; do
3823 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3824 if test $ac_prog = install &&
3825 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3826 # AIX install. It has an incompatible calling convention.
3827 :
3828 elif test $ac_prog = install &&
3829 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3830 # program-specific install script used by HP pwplus--don't use.
3831 :
3832 else
3833 rm -rf conftest.one conftest.two conftest.dir
3834 echo one > conftest.one
3835 echo two > conftest.two
3836 mkdir conftest.dir
3837 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3838 test -s conftest.one && test -s conftest.two &&
3839 test -s conftest.dir/conftest.one &&
3840 test -s conftest.dir/conftest.two
3841 then
3842 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3843 break 3
3844 fi
3845 fi
3846 fi
3847 done
3848 done
3849 ;;
3850esac
3851
3852 done
3853IFS=$as_save_IFS
3854
3855rm -rf conftest.one conftest.two conftest.dir
3856
3857fi
3858 if test "${ac_cv_path_install+set}" = set; then
3859 INSTALL=$ac_cv_path_install
3860 else
3861 # As a last resort, use the slow shell script. Don't cache a
3862 # value for INSTALL within a source directory, because that will
3863 # break other packages using the cache if that directory is
3864 # removed, or if the value is a relative name.
3865 INSTALL=$ac_install_sh
3866 fi
3867fi
3868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3869$as_echo "$INSTALL" >&6; }
3870
3871# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3872# It thinks the first close brace ends the variable substitution.
3873test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3874
3875test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3876
3877test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3878
3879rm -rf .tst 2>/dev/null
3880mkdir .tst 2>/dev/null
3881if test -d .tst; then
3882 am__leading_dot=.
3883else
3884 am__leading_dot=_
3885fi
3886rmdir .tst 2>/dev/null
3887
3888DEPDIR="${am__leading_dot}deps"
37e9f182
MF
3889
3890
2c2645d7
MF
3891
3892
3893 for ac_header in $ac_header_list
3894do :
3895 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3896ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3897"
3898if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3899 cat >>confdefs.h <<_ACEOF
3900#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3901_ACEOF
3902
3903fi
3904
3905done
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
37e9f182
MF
3922
3923
3924 for ac_func in $ac_func_list
3925do :
3926 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
3927ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
3928if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
3929 cat >>confdefs.h <<_ACEOF
3930#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
3931_ACEOF
3932
3933fi
3934done
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
fe348617
MF
3953
3954
37e9f182
MF
3955
3956
b9249c46
MF
3957
3958case `pwd` in
3959 *\ * | *\ *)
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3961$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3962esac
3963
3964
3965
3966macro_version='2.2.7a'
3967macro_revision='1.3134'
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981ltmain="$ac_aux_dir/ltmain.sh"
3982
3983# Backslashify metacharacters that are still active within
3984# double-quoted strings.
3985sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3986
3987# Same as above, but do not quote variable references.
3988double_quote_subst='s/\(["`\\]\)/\\\1/g'
3989
3990# Sed substitution to delay expansion of an escaped shell variable in a
3991# double_quote_subst'ed string.
3992delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3993
3994# Sed substitution to delay expansion of an escaped single quote.
3995delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3996
3997# Sed substitution to avoid accidental globbing in evaled expressions
3998no_glob_subst='s/\*/\\\*/g'
3999
4000ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4001ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4002ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4003
4004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4005$as_echo_n "checking how to print strings... " >&6; }
4006# Test print first, because it will be a builtin if present.
4007if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4008 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4009 ECHO='print -r --'
4010elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4011 ECHO='printf %s\n'
4012else
4013 # Use this function as a fallback that always works.
4014 func_fallback_echo ()
4015 {
4016 eval 'cat <<_LTECHO_EOF
4017$1
4018_LTECHO_EOF'
4019 }
4020 ECHO='func_fallback_echo'
4021fi
4022
4023# func_echo_all arg...
4024# Invoke $ECHO with all args, space-separated.
4025func_echo_all ()
4026{
4027 $ECHO ""
4028}
4029
4030case "$ECHO" in
4031 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4032$as_echo "printf" >&6; } ;;
4033 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4034$as_echo "print -r" >&6; } ;;
4035 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4036$as_echo "cat" >&6; } ;;
4037esac
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4053$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4054if ${ac_cv_path_SED+:} false; then :
4055 $as_echo_n "(cached) " >&6
4056else
4057 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4058 for ac_i in 1 2 3 4 5 6 7; do
4059 ac_script="$ac_script$as_nl$ac_script"
4060 done
4061 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4062 { ac_script=; unset ac_script;}
4063 if test -z "$SED"; then
4064 ac_path_SED_found=false
4065 # Loop through the user's path and test for each of PROGNAME-LIST
4066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4067for as_dir in $PATH
4068do
4069 IFS=$as_save_IFS
4070 test -z "$as_dir" && as_dir=.
4071 for ac_prog in sed gsed; do
4072 for ac_exec_ext in '' $ac_executable_extensions; do
4073 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4074 as_fn_executable_p "$ac_path_SED" || continue
4075# Check for GNU ac_path_SED and select it if it is found.
4076 # Check for GNU $ac_path_SED
4077case `"$ac_path_SED" --version 2>&1` in
4078*GNU*)
4079 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4080*)
4081 ac_count=0
4082 $as_echo_n 0123456789 >"conftest.in"
4083 while :
4084 do
4085 cat "conftest.in" "conftest.in" >"conftest.tmp"
4086 mv "conftest.tmp" "conftest.in"
4087 cp "conftest.in" "conftest.nl"
4088 $as_echo '' >> "conftest.nl"
4089 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4090 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4091 as_fn_arith $ac_count + 1 && ac_count=$as_val
4092 if test $ac_count -gt ${ac_path_SED_max-0}; then
4093 # Best one so far, save it but keep looking for a better one
4094 ac_cv_path_SED="$ac_path_SED"
4095 ac_path_SED_max=$ac_count
4096 fi
4097 # 10*(2^10) chars as input seems more than enough
4098 test $ac_count -gt 10 && break
4099 done
4100 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4101esac
4102
4103 $ac_path_SED_found && break 3
4104 done
4105 done
4106 done
4107IFS=$as_save_IFS
4108 if test -z "$ac_cv_path_SED"; then
4109 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4110 fi
4111else
4112 ac_cv_path_SED=$SED
4113fi
4114
4115fi
4116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4117$as_echo "$ac_cv_path_SED" >&6; }
4118 SED="$ac_cv_path_SED"
4119 rm -f conftest.sed
4120
4121test -z "$SED" && SED=sed
4122Xsed="$SED -e 1s/^X//"
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4135$as_echo_n "checking for fgrep... " >&6; }
4136if ${ac_cv_path_FGREP+:} false; then :
4137 $as_echo_n "(cached) " >&6
4138else
4139 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4140 then ac_cv_path_FGREP="$GREP -F"
4141 else
4142 if test -z "$FGREP"; then
4143 ac_path_FGREP_found=false
4144 # Loop through the user's path and test for each of PROGNAME-LIST
4145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4146for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4147do
4148 IFS=$as_save_IFS
4149 test -z "$as_dir" && as_dir=.
4150 for ac_prog in fgrep; do
4151 for ac_exec_ext in '' $ac_executable_extensions; do
4152 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4153 as_fn_executable_p "$ac_path_FGREP" || continue
4154# Check for GNU ac_path_FGREP and select it if it is found.
4155 # Check for GNU $ac_path_FGREP
4156case `"$ac_path_FGREP" --version 2>&1` in
4157*GNU*)
4158 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4159*)
4160 ac_count=0
4161 $as_echo_n 0123456789 >"conftest.in"
4162 while :
4163 do
4164 cat "conftest.in" "conftest.in" >"conftest.tmp"
4165 mv "conftest.tmp" "conftest.in"
4166 cp "conftest.in" "conftest.nl"
4167 $as_echo 'FGREP' >> "conftest.nl"
4168 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4169 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4170 as_fn_arith $ac_count + 1 && ac_count=$as_val
4171 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4172 # Best one so far, save it but keep looking for a better one
4173 ac_cv_path_FGREP="$ac_path_FGREP"
4174 ac_path_FGREP_max=$ac_count
4175 fi
4176 # 10*(2^10) chars as input seems more than enough
4177 test $ac_count -gt 10 && break
4178 done
4179 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4180esac
4181
4182 $ac_path_FGREP_found && break 3
4183 done
4184 done
4185 done
4186IFS=$as_save_IFS
4187 if test -z "$ac_cv_path_FGREP"; then
4188 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4189 fi
4190else
4191 ac_cv_path_FGREP=$FGREP
4192fi
4193
4194 fi
4195fi
4196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4197$as_echo "$ac_cv_path_FGREP" >&6; }
4198 FGREP="$ac_cv_path_FGREP"
4199
4200
4201test -z "$GREP" && GREP=grep
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221# Check whether --with-gnu-ld was given.
4222if test "${with_gnu_ld+set}" = set; then :
4223 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4224else
4225 with_gnu_ld=no
4226fi
4227
4228ac_prog=ld
4229if test "$GCC" = yes; then
4230 # Check if gcc -print-prog-name=ld gives a path.
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4232$as_echo_n "checking for ld used by $CC... " >&6; }
4233 case $host in
4234 *-*-mingw*)
4235 # gcc leaves a trailing carriage return which upsets mingw
4236 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4237 *)
4238 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4239 esac
4240 case $ac_prog in
4241 # Accept absolute paths.
4242 [\\/]* | ?:[\\/]*)
4243 re_direlt='/[^/][^/]*/\.\./'
4244 # Canonicalize the pathname of ld
4245 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4246 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4247 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4248 done
4249 test -z "$LD" && LD="$ac_prog"
4250 ;;
4251 "")
4252 # If it fails, then pretend we aren't using GCC.
4253 ac_prog=ld
4254 ;;
4255 *)
4256 # If it is relative, then search for the first ld in PATH.
4257 with_gnu_ld=unknown
4258 ;;
4259 esac
4260elif test "$with_gnu_ld" = yes; then
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4262$as_echo_n "checking for GNU ld... " >&6; }
4263else
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4265$as_echo_n "checking for non-GNU ld... " >&6; }
4266fi
4267if ${lt_cv_path_LD+:} false; then :
4268 $as_echo_n "(cached) " >&6
4269else
4270 if test -z "$LD"; then
4271 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4272 for ac_dir in $PATH; do
4273 IFS="$lt_save_ifs"
4274 test -z "$ac_dir" && ac_dir=.
4275 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4276 lt_cv_path_LD="$ac_dir/$ac_prog"
4277 # Check to see if the program is GNU ld. I'd rather use --version,
4278 # but apparently some variants of GNU ld only accept -v.
4279 # Break only if it was the GNU/non-GNU ld that we prefer.
4280 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4281 *GNU* | *'with BFD'*)
4282 test "$with_gnu_ld" != no && break
4283 ;;
4284 *)
4285 test "$with_gnu_ld" != yes && break
4286 ;;
4287 esac
4288 fi
4289 done
4290 IFS="$lt_save_ifs"
4291else
4292 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4293fi
4294fi
4295
4296LD="$lt_cv_path_LD"
4297if test -n "$LD"; then
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4299$as_echo "$LD" >&6; }
4300else
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4302$as_echo "no" >&6; }
4303fi
4304test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4306$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4307if ${lt_cv_prog_gnu_ld+:} false; then :
4308 $as_echo_n "(cached) " >&6
4309else
4310 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4311case `$LD -v 2>&1 </dev/null` in
4312*GNU* | *'with BFD'*)
4313 lt_cv_prog_gnu_ld=yes
4314 ;;
4315*)
4316 lt_cv_prog_gnu_ld=no
4317 ;;
4318esac
4319fi
4320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4321$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4322with_gnu_ld=$lt_cv_prog_gnu_ld
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4333$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4334if ${lt_cv_path_NM+:} false; then :
4335 $as_echo_n "(cached) " >&6
4336else
4337 if test -n "$NM"; then
4338 # Let the user override the test.
4339 lt_cv_path_NM="$NM"
4340else
4341 lt_nm_to_check="${ac_tool_prefix}nm"
4342 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4343 lt_nm_to_check="$lt_nm_to_check nm"
4344 fi
4345 for lt_tmp_nm in $lt_nm_to_check; do
4346 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4347 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4348 IFS="$lt_save_ifs"
4349 test -z "$ac_dir" && ac_dir=.
4350 tmp_nm="$ac_dir/$lt_tmp_nm"
4351 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4352 # Check to see if the nm accepts a BSD-compat flag.
4353 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4354 # nm: unknown option "B" ignored
4355 # Tru64's nm complains that /dev/null is an invalid object file
4356 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4357 */dev/null* | *'Invalid file or object type'*)
4358 lt_cv_path_NM="$tmp_nm -B"
4359 break
4360 ;;
4361 *)
4362 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4363 */dev/null*)
4364 lt_cv_path_NM="$tmp_nm -p"
4365 break
4366 ;;
4367 *)
4368 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4369 continue # so that we can try to find one that supports BSD flags
4370 ;;
4371 esac
4372 ;;
4373 esac
4374 fi
4375 done
4376 IFS="$lt_save_ifs"
4377 done
4378 : ${lt_cv_path_NM=no}
4379fi
4380fi
4381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4382$as_echo "$lt_cv_path_NM" >&6; }
4383if test "$lt_cv_path_NM" != "no"; then
4384 NM="$lt_cv_path_NM"
4385else
4386 # Didn't find any BSD compatible name lister, look for dumpbin.
4387 if test -n "$DUMPBIN"; then :
4388 # Let the user override the test.
4389 else
4390 if test -n "$ac_tool_prefix"; then
4391 for ac_prog in dumpbin "link -dump"
4392 do
4393 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4394set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4396$as_echo_n "checking for $ac_word... " >&6; }
4397if ${ac_cv_prog_DUMPBIN+:} false; then :
4398 $as_echo_n "(cached) " >&6
4399else
4400 if test -n "$DUMPBIN"; then
4401 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4402else
4403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404for as_dir in $PATH
4405do
4406 IFS=$as_save_IFS
4407 test -z "$as_dir" && as_dir=.
4408 for ac_exec_ext in '' $ac_executable_extensions; do
4409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4410 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4412 break 2
4413 fi
4414done
4415 done
4416IFS=$as_save_IFS
4417
4418fi
4419fi
4420DUMPBIN=$ac_cv_prog_DUMPBIN
4421if test -n "$DUMPBIN"; then
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4423$as_echo "$DUMPBIN" >&6; }
4424else
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4426$as_echo "no" >&6; }
4427fi
4428
4429
4430 test -n "$DUMPBIN" && break
4431 done
4432fi
4433if test -z "$DUMPBIN"; then
4434 ac_ct_DUMPBIN=$DUMPBIN
4435 for ac_prog in dumpbin "link -dump"
4436do
4437 # Extract the first word of "$ac_prog", so it can be a program name with args.
4438set dummy $ac_prog; ac_word=$2
4439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4440$as_echo_n "checking for $ac_word... " >&6; }
4441if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4442 $as_echo_n "(cached) " >&6
4443else
4444 if test -n "$ac_ct_DUMPBIN"; then
4445 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4446else
4447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448for as_dir in $PATH
4449do
4450 IFS=$as_save_IFS
4451 test -z "$as_dir" && as_dir=.
4452 for ac_exec_ext in '' $ac_executable_extensions; do
4453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4454 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4456 break 2
4457 fi
4458done
4459 done
4460IFS=$as_save_IFS
4461
4462fi
4463fi
4464ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4465if test -n "$ac_ct_DUMPBIN"; then
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4467$as_echo "$ac_ct_DUMPBIN" >&6; }
4468else
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4470$as_echo "no" >&6; }
4471fi
4472
4473
4474 test -n "$ac_ct_DUMPBIN" && break
4475done
4476
4477 if test "x$ac_ct_DUMPBIN" = x; then
4478 DUMPBIN=":"
4479 else
4480 case $cross_compiling:$ac_tool_warned in
4481yes:)
4482{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4483$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4484ac_tool_warned=yes ;;
4485esac
4486 DUMPBIN=$ac_ct_DUMPBIN
4487 fi
4488fi
4489
4490 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4491 *COFF*)
4492 DUMPBIN="$DUMPBIN -symbols"
4493 ;;
4494 *)
4495 DUMPBIN=:
4496 ;;
4497 esac
4498 fi
4499
4500 if test "$DUMPBIN" != ":"; then
4501 NM="$DUMPBIN"
4502 fi
4503fi
4504test -z "$NM" && NM=nm
4505
4506
4507
4508
4509
4510
4511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4512$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4513if ${lt_cv_nm_interface+:} false; then :
4514 $as_echo_n "(cached) " >&6
4515else
4516 lt_cv_nm_interface="BSD nm"
4517 echo "int some_variable = 0;" > conftest.$ac_ext
4518 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4519 (eval "$ac_compile" 2>conftest.err)
4520 cat conftest.err >&5
4521 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4522 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4523 cat conftest.err >&5
4524 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4525 cat conftest.out >&5
4526 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4527 lt_cv_nm_interface="MS dumpbin"
4528 fi
4529 rm -f conftest*
4530fi
4531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4532$as_echo "$lt_cv_nm_interface" >&6; }
4533
4534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4535$as_echo_n "checking whether ln -s works... " >&6; }
4536LN_S=$as_ln_s
4537if test "$LN_S" = "ln -s"; then
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4539$as_echo "yes" >&6; }
4540else
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4542$as_echo "no, using $LN_S" >&6; }
4543fi
4544
4545# find the maximum length of command line arguments
4546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4547$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4548if ${lt_cv_sys_max_cmd_len+:} false; then :
4549 $as_echo_n "(cached) " >&6
4550else
4551 i=0
4552 teststring="ABCD"
4553
4554 case $build_os in
4555 msdosdjgpp*)
4556 # On DJGPP, this test can blow up pretty badly due to problems in libc
4557 # (any single argument exceeding 2000 bytes causes a buffer overrun
4558 # during glob expansion). Even if it were fixed, the result of this
4559 # check would be larger than it should be.
4560 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4561 ;;
4562
4563 gnu*)
4564 # Under GNU Hurd, this test is not required because there is
4565 # no limit to the length of command line arguments.
4566 # Libtool will interpret -1 as no limit whatsoever
4567 lt_cv_sys_max_cmd_len=-1;
4568 ;;
4569
4570 cygwin* | mingw* | cegcc*)
4571 # On Win9x/ME, this test blows up -- it succeeds, but takes
4572 # about 5 minutes as the teststring grows exponentially.
4573 # Worse, since 9x/ME are not pre-emptively multitasking,
4574 # you end up with a "frozen" computer, even though with patience
4575 # the test eventually succeeds (with a max line length of 256k).
4576 # Instead, let's just punt: use the minimum linelength reported by
4577 # all of the supported platforms: 8192 (on NT/2K/XP).
4578 lt_cv_sys_max_cmd_len=8192;
4579 ;;
4580
4581 mint*)
4582 # On MiNT this can take a long time and run out of memory.
4583 lt_cv_sys_max_cmd_len=8192;
4584 ;;
4585
4586 amigaos*)
4587 # On AmigaOS with pdksh, this test takes hours, literally.
4588 # So we just punt and use a minimum line length of 8192.
4589 lt_cv_sys_max_cmd_len=8192;
4590 ;;
4591
4592 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4593 # This has been around since 386BSD, at least. Likely further.
4594 if test -x /sbin/sysctl; then
4595 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4596 elif test -x /usr/sbin/sysctl; then
4597 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4598 else
4599 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4600 fi
4601 # And add a safety zone
4602 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4603 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4604 ;;
4605
4606 interix*)
4607 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4608 lt_cv_sys_max_cmd_len=196608
4609 ;;
4610
4611 osf*)
4612 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4613 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4614 # nice to cause kernel panics so lets avoid the loop below.
4615 # First set a reasonable default.
4616 lt_cv_sys_max_cmd_len=16384
4617 #
4618 if test -x /sbin/sysconfig; then
4619 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4620 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4621 esac
4622 fi
4623 ;;
4624 sco3.2v5*)
4625 lt_cv_sys_max_cmd_len=102400
4626 ;;
4627 sysv5* | sco5v6* | sysv4.2uw2*)
4628 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4629 if test -n "$kargmax"; then
4630 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4631 else
4632 lt_cv_sys_max_cmd_len=32768
4633 fi
4634 ;;
4635 *)
4636 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4637 if test -n "$lt_cv_sys_max_cmd_len"; then
4638 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4639 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4640 else
4641 # Make teststring a little bigger before we do anything with it.
4642 # a 1K string should be a reasonable start.
4643 for i in 1 2 3 4 5 6 7 8 ; do
4644 teststring=$teststring$teststring
4645 done
4646 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4647 # If test is not a shell built-in, we'll probably end up computing a
4648 # maximum length that is only half of the actual maximum length, but
4649 # we can't tell.
4650 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4651 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4652 test $i != 17 # 1/2 MB should be enough
4653 do
4654 i=`expr $i + 1`
4655 teststring=$teststring$teststring
4656 done
4657 # Only check the string length outside the loop.
4658 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4659 teststring=
4660 # Add a significant safety factor because C++ compilers can tack on
4661 # massive amounts of additional arguments before passing them to the
4662 # linker. It appears as though 1/2 is a usable value.
4663 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4664 fi
4665 ;;
4666 esac
4667
4668fi
4669
4670if test -n $lt_cv_sys_max_cmd_len ; then
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4672$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4673else
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4675$as_echo "none" >&6; }
4676fi
4677max_cmd_len=$lt_cv_sys_max_cmd_len
4678
4679
4680
4681
4682
4683
4684: ${CP="cp -f"}
4685: ${MV="mv -f"}
4686: ${RM="rm -f"}
4687
4688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4689$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4690# Try some XSI features
4691xsi_shell=no
4692( _lt_dummy="a/b/c"
4693 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4694 = c,a/b,, \
4695 && eval 'test $(( 1 + 1 )) -eq 2 \
4696 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4697 && xsi_shell=yes
4698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4699$as_echo "$xsi_shell" >&6; }
4700
4701
4702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4703$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4704lt_shell_append=no
4705( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4706 >/dev/null 2>&1 \
4707 && lt_shell_append=yes
4708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4709$as_echo "$lt_shell_append" >&6; }
4710
4711
4712if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4713 lt_unset=unset
4714else
4715 lt_unset=false
4716fi
4717
4718
4719
4720
4721
4722# test EBCDIC or ASCII
4723case `echo X|tr X '\101'` in
4724 A) # ASCII based system
4725 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4726 lt_SP2NL='tr \040 \012'
4727 lt_NL2SP='tr \015\012 \040\040'
4728 ;;
4729 *) # EBCDIC based system
4730 lt_SP2NL='tr \100 \n'
4731 lt_NL2SP='tr \r\n \100\100'
4732 ;;
4733esac
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4744$as_echo_n "checking for $LD option to reload object files... " >&6; }
4745if ${lt_cv_ld_reload_flag+:} false; then :
4746 $as_echo_n "(cached) " >&6
4747else
4748 lt_cv_ld_reload_flag='-r'
4749fi
4750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4751$as_echo "$lt_cv_ld_reload_flag" >&6; }
4752reload_flag=$lt_cv_ld_reload_flag
4753case $reload_flag in
4754"" | " "*) ;;
4755*) reload_flag=" $reload_flag" ;;
4756esac
4757reload_cmds='$LD$reload_flag -o $output$reload_objs'
4758case $host_os in
4759 darwin*)
4760 if test "$GCC" = yes; then
4761 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4762 else
4763 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4764 fi
4765 ;;
4766esac
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776if test -n "$ac_tool_prefix"; then
4777 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4778set dummy ${ac_tool_prefix}objdump; ac_word=$2
4779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4780$as_echo_n "checking for $ac_word... " >&6; }
4781if ${ac_cv_prog_OBJDUMP+:} false; then :
4782 $as_echo_n "(cached) " >&6
4783else
4784 if test -n "$OBJDUMP"; then
4785 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4786else
4787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788for as_dir in $PATH
4789do
4790 IFS=$as_save_IFS
4791 test -z "$as_dir" && as_dir=.
4792 for ac_exec_ext in '' $ac_executable_extensions; do
4793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4794 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4796 break 2
4797 fi
4798done
4799 done
4800IFS=$as_save_IFS
4801
4802fi
4803fi
4804OBJDUMP=$ac_cv_prog_OBJDUMP
4805if test -n "$OBJDUMP"; then
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4807$as_echo "$OBJDUMP" >&6; }
4808else
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4810$as_echo "no" >&6; }
4811fi
4812
4813
4814fi
4815if test -z "$ac_cv_prog_OBJDUMP"; then
4816 ac_ct_OBJDUMP=$OBJDUMP
4817 # Extract the first word of "objdump", so it can be a program name with args.
4818set dummy objdump; ac_word=$2
4819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4820$as_echo_n "checking for $ac_word... " >&6; }
4821if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4822 $as_echo_n "(cached) " >&6
4823else
4824 if test -n "$ac_ct_OBJDUMP"; then
4825 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4826else
4827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828for as_dir in $PATH
4829do
4830 IFS=$as_save_IFS
4831 test -z "$as_dir" && as_dir=.
4832 for ac_exec_ext in '' $ac_executable_extensions; do
4833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4834 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4836 break 2
4837 fi
4838done
4839 done
4840IFS=$as_save_IFS
4841
4842fi
4843fi
4844ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4845if test -n "$ac_ct_OBJDUMP"; then
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4847$as_echo "$ac_ct_OBJDUMP" >&6; }
4848else
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4850$as_echo "no" >&6; }
4851fi
4852
4853 if test "x$ac_ct_OBJDUMP" = x; then
4854 OBJDUMP="false"
4855 else
4856 case $cross_compiling:$ac_tool_warned in
4857yes:)
4858{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4859$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4860ac_tool_warned=yes ;;
4861esac
4862 OBJDUMP=$ac_ct_OBJDUMP
4863 fi
4864else
4865 OBJDUMP="$ac_cv_prog_OBJDUMP"
4866fi
4867
4868test -z "$OBJDUMP" && OBJDUMP=objdump
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4879$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4880if ${lt_cv_deplibs_check_method+:} false; then :
4881 $as_echo_n "(cached) " >&6
4882else
4883 lt_cv_file_magic_cmd='$MAGIC_CMD'
4884lt_cv_file_magic_test_file=
4885lt_cv_deplibs_check_method='unknown'
4886# Need to set the preceding variable on all platforms that support
4887# interlibrary dependencies.
4888# 'none' -- dependencies not supported.
4889# `unknown' -- same as none, but documents that we really don't know.
4890# 'pass_all' -- all dependencies passed with no checks.
4891# 'test_compile' -- check by making test program.
4892# 'file_magic [[regex]]' -- check by looking for files in library path
4893# which responds to the $file_magic_cmd with a given extended regex.
4894# If you have `file' or equivalent on your system and you're not sure
4895# whether `pass_all' will *always* work, you probably want this one.
4896
4897case $host_os in
4898aix[4-9]*)
4899 lt_cv_deplibs_check_method=pass_all
4900 ;;
4901
4902beos*)
4903 lt_cv_deplibs_check_method=pass_all
4904 ;;
4905
4906bsdi[45]*)
4907 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4908 lt_cv_file_magic_cmd='/usr/bin/file -L'
4909 lt_cv_file_magic_test_file=/shlib/libc.so
4910 ;;
4911
4912cygwin*)
4913 # func_win32_libid is a shell function defined in ltmain.sh
4914 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4915 lt_cv_file_magic_cmd='func_win32_libid'
4916 ;;
4917
4918mingw* | pw32*)
4919 # Base MSYS/MinGW do not provide the 'file' command needed by
4920 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4921 # unless we find 'file', for example because we are cross-compiling.
4922 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4923 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4924 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4925 lt_cv_file_magic_cmd='func_win32_libid'
4926 else
4927 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4928 lt_cv_file_magic_cmd='$OBJDUMP -f'
4929 fi
4930 ;;
4931
4932cegcc*)
4933 # use the weaker test based on 'objdump'. See mingw*.
4934 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4935 lt_cv_file_magic_cmd='$OBJDUMP -f'
4936 ;;
4937
4938darwin* | rhapsody*)
4939 lt_cv_deplibs_check_method=pass_all
4940 ;;
4941
4942freebsd* | dragonfly*)
4943 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4944 case $host_cpu in
4945 i*86 )
4946 # Not sure whether the presence of OpenBSD here was a mistake.
4947 # Let's accept both of them until this is cleared up.
4948 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4949 lt_cv_file_magic_cmd=/usr/bin/file
4950 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4951 ;;
4952 esac
4953 else
4954 lt_cv_deplibs_check_method=pass_all
4955 fi
4956 ;;
4957
4958gnu*)
4959 lt_cv_deplibs_check_method=pass_all
4960 ;;
4961
4962haiku*)
4963 lt_cv_deplibs_check_method=pass_all
4964 ;;
4965
4966hpux10.20* | hpux11*)
4967 lt_cv_file_magic_cmd=/usr/bin/file
4968 case $host_cpu in
4969 ia64*)
4970 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4971 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4972 ;;
4973 hppa*64*)
4974 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]'
4975 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4976 ;;
4977 *)
4978 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4979 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4980 ;;
4981 esac
4982 ;;
4983
4984interix[3-9]*)
4985 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4986 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4987 ;;
4988
4989irix5* | irix6* | nonstopux*)
4990 case $LD in
4991 *-32|*"-32 ") libmagic=32-bit;;
4992 *-n32|*"-n32 ") libmagic=N32;;
4993 *-64|*"-64 ") libmagic=64-bit;;
4994 *) libmagic=never-match;;
4995 esac
4996 lt_cv_deplibs_check_method=pass_all
4997 ;;
4998
4999# This must be Linux ELF.
5000linux* | k*bsd*-gnu | kopensolaris*-gnu)
5001 lt_cv_deplibs_check_method=pass_all
5002 ;;
5003
5004netbsd*)
5005 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5006 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5007 else
5008 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5009 fi
5010 ;;
5011
5012newos6*)
5013 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5014 lt_cv_file_magic_cmd=/usr/bin/file
5015 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5016 ;;
5017
5018*nto* | *qnx*)
5019 lt_cv_deplibs_check_method=pass_all
5020 ;;
5021
5022openbsd*)
5023 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5024 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5025 else
5026 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5027 fi
5028 ;;
5029
5030osf3* | osf4* | osf5*)
5031 lt_cv_deplibs_check_method=pass_all
5032 ;;
5033
5034rdos*)
5035 lt_cv_deplibs_check_method=pass_all
5036 ;;
5037
5038solaris*)
5039 lt_cv_deplibs_check_method=pass_all
5040 ;;
5041
5042sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5043 lt_cv_deplibs_check_method=pass_all
5044 ;;
5045
5046sysv4 | sysv4.3*)
5047 case $host_vendor in
5048 motorola)
5049 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]'
5050 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5051 ;;
5052 ncr)
5053 lt_cv_deplibs_check_method=pass_all
5054 ;;
5055 sequent)
5056 lt_cv_file_magic_cmd='/bin/file'
5057 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5058 ;;
5059 sni)
5060 lt_cv_file_magic_cmd='/bin/file'
5061 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5062 lt_cv_file_magic_test_file=/lib/libc.so
5063 ;;
5064 siemens)
5065 lt_cv_deplibs_check_method=pass_all
5066 ;;
5067 pc)
5068 lt_cv_deplibs_check_method=pass_all
5069 ;;
5070 esac
5071 ;;
5072
5073tpf*)
5074 lt_cv_deplibs_check_method=pass_all
5075 ;;
5076esac
5077
5078fi
5079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5080$as_echo "$lt_cv_deplibs_check_method" >&6; }
5081file_magic_cmd=$lt_cv_file_magic_cmd
5082deplibs_check_method=$lt_cv_deplibs_check_method
5083test -z "$deplibs_check_method" && deplibs_check_method=unknown
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096plugin_option=
5097plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
5098for plugin in $plugin_names; do
5099 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
5100 if test x$plugin_so = x$plugin; then
5101 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
5102 fi
5103 if test x$plugin_so != x$plugin; then
5104 plugin_option="--plugin $plugin_so"
5105 break
5106 fi
5107done
5108
5109if test -n "$ac_tool_prefix"; then
5110 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5111set dummy ${ac_tool_prefix}ar; ac_word=$2
5112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5113$as_echo_n "checking for $ac_word... " >&6; }
5114if ${ac_cv_prog_AR+:} false; then :
5115 $as_echo_n "(cached) " >&6
5116else
5117 if test -n "$AR"; then
5118 ac_cv_prog_AR="$AR" # Let the user override the test.
5119else
5120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5121for as_dir in $PATH
5122do
5123 IFS=$as_save_IFS
5124 test -z "$as_dir" && as_dir=.
5125 for ac_exec_ext in '' $ac_executable_extensions; do
5126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5127 ac_cv_prog_AR="${ac_tool_prefix}ar"
5128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5129 break 2
5130 fi
5131done
5132 done
5133IFS=$as_save_IFS
5134
5135fi
5136fi
5137AR=$ac_cv_prog_AR
5138if test -n "$AR"; then
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5140$as_echo "$AR" >&6; }
5141else
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5143$as_echo "no" >&6; }
5144fi
5145
5146
5147fi
5148if test -z "$ac_cv_prog_AR"; then
5149 ac_ct_AR=$AR
5150 # Extract the first word of "ar", so it can be a program name with args.
5151set dummy ar; ac_word=$2
5152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5153$as_echo_n "checking for $ac_word... " >&6; }
5154if ${ac_cv_prog_ac_ct_AR+:} false; then :
5155 $as_echo_n "(cached) " >&6
5156else
5157 if test -n "$ac_ct_AR"; then
5158 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5159else
5160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161for as_dir in $PATH
5162do
5163 IFS=$as_save_IFS
5164 test -z "$as_dir" && as_dir=.
5165 for ac_exec_ext in '' $ac_executable_extensions; do
5166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5167 ac_cv_prog_ac_ct_AR="ar"
5168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5169 break 2
5170 fi
5171done
5172 done
5173IFS=$as_save_IFS
5174
5175fi
5176fi
5177ac_ct_AR=$ac_cv_prog_ac_ct_AR
5178if test -n "$ac_ct_AR"; then
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5180$as_echo "$ac_ct_AR" >&6; }
5181else
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5183$as_echo "no" >&6; }
5184fi
5185
5186 if test "x$ac_ct_AR" = x; then
5187 AR="false"
5188 else
5189 case $cross_compiling:$ac_tool_warned in
5190yes:)
5191{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5192$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5193ac_tool_warned=yes ;;
5194esac
5195 AR=$ac_ct_AR
5196 fi
5197else
5198 AR="$ac_cv_prog_AR"
5199fi
5200
5201test -z "$AR" && AR=ar
5202if test -n "$plugin_option"; then
5203 if $AR --help 2>&1 | grep -q "\--plugin"; then
5204 touch conftest.c
5205 $AR $plugin_option rc conftest.a conftest.c
5206 if test "$?" != 0; then
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
5208$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
5209 else
5210 AR="$AR $plugin_option"
5211 fi
5212 rm -f conftest.*
5213 fi
5214fi
5215test -z "$AR_FLAGS" && AR_FLAGS=cru
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227if test -n "$ac_tool_prefix"; then
5228 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5229set dummy ${ac_tool_prefix}strip; ac_word=$2
5230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5231$as_echo_n "checking for $ac_word... " >&6; }
5232if ${ac_cv_prog_STRIP+:} false; then :
5233 $as_echo_n "(cached) " >&6
5234else
5235 if test -n "$STRIP"; then
5236 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5237else
5238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5239for as_dir in $PATH
5240do
5241 IFS=$as_save_IFS
5242 test -z "$as_dir" && as_dir=.
5243 for ac_exec_ext in '' $ac_executable_extensions; do
5244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5245 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5247 break 2
5248 fi
5249done
5250 done
5251IFS=$as_save_IFS
5252
5253fi
5254fi
5255STRIP=$ac_cv_prog_STRIP
5256if test -n "$STRIP"; then
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5258$as_echo "$STRIP" >&6; }
5259else
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5261$as_echo "no" >&6; }
5262fi
5263
5264
5265fi
5266if test -z "$ac_cv_prog_STRIP"; then
5267 ac_ct_STRIP=$STRIP
5268 # Extract the first word of "strip", so it can be a program name with args.
5269set dummy strip; ac_word=$2
5270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5271$as_echo_n "checking for $ac_word... " >&6; }
5272if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5273 $as_echo_n "(cached) " >&6
5274else
5275 if test -n "$ac_ct_STRIP"; then
5276 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5277else
5278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5279for as_dir in $PATH
5280do
5281 IFS=$as_save_IFS
5282 test -z "$as_dir" && as_dir=.
5283 for ac_exec_ext in '' $ac_executable_extensions; do
5284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5285 ac_cv_prog_ac_ct_STRIP="strip"
5286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5287 break 2
5288 fi
5289done
5290 done
5291IFS=$as_save_IFS
5292
5293fi
5294fi
5295ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5296if test -n "$ac_ct_STRIP"; then
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5298$as_echo "$ac_ct_STRIP" >&6; }
5299else
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5301$as_echo "no" >&6; }
5302fi
5303
5304 if test "x$ac_ct_STRIP" = x; then
5305 STRIP=":"
5306 else
5307 case $cross_compiling:$ac_tool_warned in
5308yes:)
5309{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5310$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5311ac_tool_warned=yes ;;
5312esac
5313 STRIP=$ac_ct_STRIP
5314 fi
5315else
5316 STRIP="$ac_cv_prog_STRIP"
5317fi
5318
5319test -z "$STRIP" && STRIP=:
5320
5321
5322
5323
5324
5325
5326if test -n "$ac_tool_prefix"; then
5327 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5328set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5330$as_echo_n "checking for $ac_word... " >&6; }
5331if ${ac_cv_prog_RANLIB+:} false; then :
5332 $as_echo_n "(cached) " >&6
5333else
5334 if test -n "$RANLIB"; then
5335 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5336else
5337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338for as_dir in $PATH
5339do
5340 IFS=$as_save_IFS
5341 test -z "$as_dir" && as_dir=.
5342 for ac_exec_ext in '' $ac_executable_extensions; do
5343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5344 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5346 break 2
5347 fi
5348done
5349 done
5350IFS=$as_save_IFS
5351
5352fi
5353fi
5354RANLIB=$ac_cv_prog_RANLIB
5355if test -n "$RANLIB"; then
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5357$as_echo "$RANLIB" >&6; }
5358else
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5360$as_echo "no" >&6; }
5361fi
5362
5363
5364fi
5365if test -z "$ac_cv_prog_RANLIB"; then
5366 ac_ct_RANLIB=$RANLIB
5367 # Extract the first word of "ranlib", so it can be a program name with args.
5368set dummy ranlib; ac_word=$2
5369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5370$as_echo_n "checking for $ac_word... " >&6; }
5371if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5372 $as_echo_n "(cached) " >&6
5373else
5374 if test -n "$ac_ct_RANLIB"; then
5375 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5376else
5377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5378for as_dir in $PATH
5379do
5380 IFS=$as_save_IFS
5381 test -z "$as_dir" && as_dir=.
5382 for ac_exec_ext in '' $ac_executable_extensions; do
5383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5384 ac_cv_prog_ac_ct_RANLIB="ranlib"
5385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5386 break 2
5387 fi
5388done
5389 done
5390IFS=$as_save_IFS
5391
5392fi
5393fi
5394ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5395if test -n "$ac_ct_RANLIB"; then
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5397$as_echo "$ac_ct_RANLIB" >&6; }
5398else
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5400$as_echo "no" >&6; }
5401fi
5402
5403 if test "x$ac_ct_RANLIB" = x; then
5404 RANLIB=":"
5405 else
5406 case $cross_compiling:$ac_tool_warned in
5407yes:)
5408{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5409$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5410ac_tool_warned=yes ;;
5411esac
5412 RANLIB=$ac_ct_RANLIB
5413 fi
5414else
5415 RANLIB="$ac_cv_prog_RANLIB"
5416fi
5417
5418test -z "$RANLIB" && RANLIB=:
5419if test -n "$plugin_option" && test "$RANLIB" != ":"; then
5420 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
5421 RANLIB="$RANLIB $plugin_option"
5422 fi
5423fi
5424
5425
5426
5427
5428
5429
5430# Determine commands to create old-style static archives.
5431old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5432old_postinstall_cmds='chmod 644 $oldlib'
5433old_postuninstall_cmds=
5434
5435if test -n "$RANLIB"; then
5436 case $host_os in
5437 openbsd*)
5438 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5439 ;;
5440 *)
5441 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5442 ;;
5443 esac
5444 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5445fi
5446
5447case $host_os in
5448 darwin*)
5449 lock_old_archive_extraction=yes ;;
5450 *)
5451 lock_old_archive_extraction=no ;;
5452esac
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474for ac_prog in gawk mawk nawk awk
5475do
5476 # Extract the first word of "$ac_prog", so it can be a program name with args.
5477set dummy $ac_prog; ac_word=$2
5478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5479$as_echo_n "checking for $ac_word... " >&6; }
5480if ${ac_cv_prog_AWK+:} false; then :
5481 $as_echo_n "(cached) " >&6
5482else
5483 if test -n "$AWK"; then
5484 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5485else
5486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5487for as_dir in $PATH
5488do
5489 IFS=$as_save_IFS
5490 test -z "$as_dir" && as_dir=.
5491 for ac_exec_ext in '' $ac_executable_extensions; do
5492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5493 ac_cv_prog_AWK="$ac_prog"
5494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5495 break 2
5496 fi
5497done
5498 done
5499IFS=$as_save_IFS
5500
5501fi
5502fi
5503AWK=$ac_cv_prog_AWK
5504if test -n "$AWK"; then
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5506$as_echo "$AWK" >&6; }
5507else
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5509$as_echo "no" >&6; }
5510fi
5511
5512
5513 test -n "$AWK" && break
5514done
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534# If no C compiler was specified, use CC.
5535LTCC=${LTCC-"$CC"}
5536
5537# If no C compiler flags were specified, use CFLAGS.
5538LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5539
5540# Allow CC to be a program name with arguments.
5541compiler=$CC
5542
5543
5544# Check for command to grab the raw symbol name followed by C symbol from nm.
5545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5546$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5547if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5548 $as_echo_n "(cached) " >&6
5549else
5550
5551# These are sane defaults that work on at least a few old systems.
5552# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5553
5554# Character class describing NM global symbol codes.
5555symcode='[BCDEGRST]'
5556
5557# Regexp to match symbols that can be accessed directly from C.
5558sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5559
5560# Define system-specific variables.
5561case $host_os in
5562aix*)
5563 symcode='[BCDT]'
5564 ;;
5565cygwin* | mingw* | pw32* | cegcc*)
5566 symcode='[ABCDGISTW]'
5567 ;;
5568hpux*)
5569 if test "$host_cpu" = ia64; then
5570 symcode='[ABCDEGRST]'
5571 fi
5572 ;;
5573irix* | nonstopux*)
5574 symcode='[BCDEGRST]'
5575 ;;
5576osf*)
5577 symcode='[BCDEGQRST]'
5578 ;;
5579solaris*)
5580 symcode='[BDRT]'
5581 ;;
5582sco3.2v5*)
5583 symcode='[DT]'
5584 ;;
5585sysv4.2uw2*)
5586 symcode='[DT]'
5587 ;;
5588sysv5* | sco5v6* | unixware* | OpenUNIX*)
5589 symcode='[ABDT]'
5590 ;;
5591sysv4)
5592 symcode='[DFNSTU]'
5593 ;;
5594esac
5595
5596# If we're using GNU nm, then use its standard symbol codes.
5597case `$NM -V 2>&1` in
5598*GNU* | *'with BFD'*)
5599 symcode='[ABCDGIRSTW]' ;;
5600esac
5601
5602# Transform an extracted symbol line into a proper C declaration.
5603# Some systems (esp. on ia64) link data and code symbols differently,
5604# so use this general approach.
5605lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5606
5607# Transform an extracted symbol line into symbol name and symbol address
5608lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5609lt_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'"
5610
5611# Handle CRLF in mingw tool chain
5612opt_cr=
5613case $build_os in
5614mingw*)
5615 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5616 ;;
5617esac
5618
5619# Try without a prefix underscore, then with it.
5620for ac_symprfx in "" "_"; do
5621
5622 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5623 symxfrm="\\1 $ac_symprfx\\2 \\2"
5624
5625 # Write the raw and C identifiers.
5626 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5627 # Fake it for dumpbin and say T for any non-static function
5628 # and D for any global variable.
5629 # Also find C++ and __fastcall symbols from MSVC++,
5630 # which start with @ or ?.
5631 lt_cv_sys_global_symbol_pipe="$AWK '"\
5632" {last_section=section; section=\$ 3};"\
5633" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5634" \$ 0!~/External *\|/{next};"\
5635" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5636" {if(hide[section]) next};"\
5637" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5638" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5639" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5640" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5641" ' prfx=^$ac_symprfx"
5642 else
5643 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5644 fi
5645
5646 # Check to see that the pipe works correctly.
5647 pipe_works=no
5648
5649 rm -f conftest*
5650 cat > conftest.$ac_ext <<_LT_EOF
5651#ifdef __cplusplus
5652extern "C" {
5653#endif
5654char nm_test_var;
5655void nm_test_func(void);
5656void nm_test_func(void){}
5657#ifdef __cplusplus
5658}
5659#endif
5660int main(){nm_test_var='a';nm_test_func();return(0);}
5661_LT_EOF
5662
5663 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5664 (eval $ac_compile) 2>&5
5665 ac_status=$?
5666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5667 test $ac_status = 0; }; then
5668 # Now try to grab the symbols.
5669 nlist=conftest.nm
5670 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5671 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5672 ac_status=$?
5673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5674 test $ac_status = 0; } && test -s "$nlist"; then
5675 # Try sorting and uniquifying the output.
5676 if sort "$nlist" | uniq > "$nlist"T; then
5677 mv -f "$nlist"T "$nlist"
5678 else
5679 rm -f "$nlist"T
5680 fi
5681
5682 # Make sure that we snagged all the symbols we need.
5683 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5684 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5685 cat <<_LT_EOF > conftest.$ac_ext
5686#ifdef __cplusplus
5687extern "C" {
5688#endif
5689
5690_LT_EOF
5691 # Now generate the symbol file.
5692 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5693
5694 cat <<_LT_EOF >> conftest.$ac_ext
5695
5696/* The mapping between symbol names and symbols. */
5697const struct {
5698 const char *name;
5699 void *address;
5700}
5701lt__PROGRAM__LTX_preloaded_symbols[] =
5702{
5703 { "@PROGRAM@", (void *) 0 },
5704_LT_EOF
5705 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5706 cat <<\_LT_EOF >> conftest.$ac_ext
5707 {0, (void *) 0}
5708};
5709
5710/* This works around a problem in FreeBSD linker */
5711#ifdef FREEBSD_WORKAROUND
5712static const void *lt_preloaded_setup() {
5713 return lt__PROGRAM__LTX_preloaded_symbols;
5714}
5715#endif
5716
5717#ifdef __cplusplus
5718}
5719#endif
5720_LT_EOF
5721 # Now try linking the two files.
5722 mv conftest.$ac_objext conftstm.$ac_objext
5723 lt_save_LIBS="$LIBS"
5724 lt_save_CFLAGS="$CFLAGS"
5725 LIBS="conftstm.$ac_objext"
5726 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5727 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5728 (eval $ac_link) 2>&5
5729 ac_status=$?
5730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5731 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5732 pipe_works=yes
5733 fi
5734 LIBS="$lt_save_LIBS"
5735 CFLAGS="$lt_save_CFLAGS"
5736 else
5737 echo "cannot find nm_test_func in $nlist" >&5
5738 fi
5739 else
5740 echo "cannot find nm_test_var in $nlist" >&5
5741 fi
5742 else
5743 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5744 fi
5745 else
5746 echo "$progname: failed program was:" >&5
5747 cat conftest.$ac_ext >&5
5748 fi
5749 rm -rf conftest* conftst*
5750
5751 # Do not use the global_symbol_pipe unless it works.
5752 if test "$pipe_works" = yes; then
5753 break
5754 else
5755 lt_cv_sys_global_symbol_pipe=
5756 fi
5757done
5758
5759fi
5760
5761if test -z "$lt_cv_sys_global_symbol_pipe"; then
5762 lt_cv_sys_global_symbol_to_cdecl=
5763fi
5764if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5766$as_echo "failed" >&6; }
5767else
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5769$as_echo "ok" >&6; }
5770fi
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793# Check whether --enable-libtool-lock was given.
5794if test "${enable_libtool_lock+set}" = set; then :
5795 enableval=$enable_libtool_lock;
5796fi
5797
5798test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5799
5800# Some flags need to be propagated to the compiler or linker for good
5801# libtool support.
5802case $host in
5803ia64-*-hpux*)
5804 # Find out which ABI we are using.
5805 echo 'int i;' > conftest.$ac_ext
5806 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5807 (eval $ac_compile) 2>&5
5808 ac_status=$?
5809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5810 test $ac_status = 0; }; then
5811 case `/usr/bin/file conftest.$ac_objext` in
5812 *ELF-32*)
5813 HPUX_IA64_MODE="32"
5814 ;;
5815 *ELF-64*)
5816 HPUX_IA64_MODE="64"
5817 ;;
5818 esac
5819 fi
5820 rm -rf conftest*
5821 ;;
5822*-*-irix6*)
5823 # Find out which ABI we are using.
5824 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5825 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5826 (eval $ac_compile) 2>&5
5827 ac_status=$?
5828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5829 test $ac_status = 0; }; then
5830 if test "$lt_cv_prog_gnu_ld" = yes; then
5831 case `/usr/bin/file conftest.$ac_objext` in
5832 *32-bit*)
5833 LD="${LD-ld} -melf32bsmip"
5834 ;;
5835 *N32*)
5836 LD="${LD-ld} -melf32bmipn32"
5837 ;;
5838 *64-bit*)
5839 LD="${LD-ld} -melf64bmip"
5840 ;;
5841 esac
5842 else
5843 case `/usr/bin/file conftest.$ac_objext` in
5844 *32-bit*)
5845 LD="${LD-ld} -32"
5846 ;;
5847 *N32*)
5848 LD="${LD-ld} -n32"
5849 ;;
5850 *64-bit*)
5851 LD="${LD-ld} -64"
5852 ;;
5853 esac
5854 fi
5855 fi
5856 rm -rf conftest*
5857 ;;
5858
5859x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
5860s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5861 # Find out which ABI we are using.
5862 echo 'int i;' > conftest.$ac_ext
5863 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5864 (eval $ac_compile) 2>&5
5865 ac_status=$?
5866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5867 test $ac_status = 0; }; then
5868 case `/usr/bin/file conftest.o` in
5869 *32-bit*)
5870 case $host in
5871 x86_64-*kfreebsd*-gnu)
5872 LD="${LD-ld} -m elf_i386_fbsd"
5873 ;;
5874 x86_64-*linux*)
5875 case `/usr/bin/file conftest.o` in
5876 *x86-64*)
5877 LD="${LD-ld} -m elf32_x86_64"
5878 ;;
5879 *)
5880 LD="${LD-ld} -m elf_i386"
5881 ;;
5882 esac
5883 ;;
5884 powerpc64le-*linux*)
5885 LD="${LD-ld} -m elf32lppclinux"
5886 ;;
5887 powerpc64-*linux*)
5888 LD="${LD-ld} -m elf32ppclinux"
5889 ;;
5890 s390x-*linux*)
5891 LD="${LD-ld} -m elf_s390"
5892 ;;
5893 sparc64-*linux*)
5894 LD="${LD-ld} -m elf32_sparc"
5895 ;;
5896 esac
5897 ;;
5898 *64-bit*)
5899 case $host in
5900 x86_64-*kfreebsd*-gnu)
5901 LD="${LD-ld} -m elf_x86_64_fbsd"
5902 ;;
5903 x86_64-*linux*)
5904 LD="${LD-ld} -m elf_x86_64"
5905 ;;
5906 powerpcle-*linux*)
5907 LD="${LD-ld} -m elf64lppc"
5908 ;;
5909 powerpc-*linux*)
5910 LD="${LD-ld} -m elf64ppc"
5911 ;;
5912 s390*-*linux*|s390*-*tpf*)
5913 LD="${LD-ld} -m elf64_s390"
5914 ;;
5915 sparc*-*linux*)
5916 LD="${LD-ld} -m elf64_sparc"
5917 ;;
5918 esac
5919 ;;
5920 esac
5921 fi
5922 rm -rf conftest*
5923 ;;
5924
5925*-*-sco3.2v5*)
5926 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5927 SAVE_CFLAGS="$CFLAGS"
5928 CFLAGS="$CFLAGS -belf"
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5930$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5931if ${lt_cv_cc_needs_belf+:} false; then :
5932 $as_echo_n "(cached) " >&6
5933else
5934 ac_ext=c
5935ac_cpp='$CPP $CPPFLAGS'
5936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5938ac_compiler_gnu=$ac_cv_c_compiler_gnu
5939
5940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5941/* end confdefs.h. */
5942
5943int
5944main ()
5945{
5946
5947 ;
5948 return 0;
5949}
5950_ACEOF
5951if ac_fn_c_try_link "$LINENO"; then :
5952 lt_cv_cc_needs_belf=yes
5953else
5954 lt_cv_cc_needs_belf=no
5955fi
5956rm -f core conftest.err conftest.$ac_objext \
5957 conftest$ac_exeext conftest.$ac_ext
5958 ac_ext=c
5959ac_cpp='$CPP $CPPFLAGS'
5960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5962ac_compiler_gnu=$ac_cv_c_compiler_gnu
5963
5964fi
5965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5966$as_echo "$lt_cv_cc_needs_belf" >&6; }
5967 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5968 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5969 CFLAGS="$SAVE_CFLAGS"
5970 fi
5971 ;;
5972sparc*-*solaris*)
5973 # Find out which ABI we are using.
5974 echo 'int i;' > conftest.$ac_ext
5975 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5976 (eval $ac_compile) 2>&5
5977 ac_status=$?
5978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5979 test $ac_status = 0; }; then
5980 case `/usr/bin/file conftest.o` in
5981 *64-bit*)
5982 case $lt_cv_prog_gnu_ld in
5983 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5984 *)
5985 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5986 LD="${LD-ld} -64"
5987 fi
5988 ;;
5989 esac
5990 ;;
5991 esac
5992 fi
5993 rm -rf conftest*
5994 ;;
5995esac
5996
5997need_locks="$enable_libtool_lock"
5998
5999
6000 case $host_os in
6001 rhapsody* | darwin*)
6002 if test -n "$ac_tool_prefix"; then
6003 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6004set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6006$as_echo_n "checking for $ac_word... " >&6; }
6007if ${ac_cv_prog_DSYMUTIL+:} false; then :
6008 $as_echo_n "(cached) " >&6
6009else
6010 if test -n "$DSYMUTIL"; then
6011 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6012else
6013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6014for as_dir in $PATH
6015do
6016 IFS=$as_save_IFS
6017 test -z "$as_dir" && as_dir=.
6018 for ac_exec_ext in '' $ac_executable_extensions; do
6019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6020 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6022 break 2
6023 fi
6024done
6025 done
6026IFS=$as_save_IFS
6027
6028fi
6029fi
6030DSYMUTIL=$ac_cv_prog_DSYMUTIL
6031if test -n "$DSYMUTIL"; then
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6033$as_echo "$DSYMUTIL" >&6; }
6034else
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6036$as_echo "no" >&6; }
6037fi
6038
6039
6040fi
6041if test -z "$ac_cv_prog_DSYMUTIL"; then
6042 ac_ct_DSYMUTIL=$DSYMUTIL
6043 # Extract the first word of "dsymutil", so it can be a program name with args.
6044set dummy dsymutil; ac_word=$2
6045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6046$as_echo_n "checking for $ac_word... " >&6; }
6047if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6048 $as_echo_n "(cached) " >&6
6049else
6050 if test -n "$ac_ct_DSYMUTIL"; then
6051 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6052else
6053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6054for as_dir in $PATH
6055do
6056 IFS=$as_save_IFS
6057 test -z "$as_dir" && as_dir=.
6058 for ac_exec_ext in '' $ac_executable_extensions; do
6059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6060 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6062 break 2
6063 fi
6064done
6065 done
6066IFS=$as_save_IFS
6067
6068fi
6069fi
6070ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6071if test -n "$ac_ct_DSYMUTIL"; then
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6073$as_echo "$ac_ct_DSYMUTIL" >&6; }
6074else
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6076$as_echo "no" >&6; }
6077fi
6078
6079 if test "x$ac_ct_DSYMUTIL" = x; then
6080 DSYMUTIL=":"
6081 else
6082 case $cross_compiling:$ac_tool_warned in
6083yes:)
6084{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6085$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6086ac_tool_warned=yes ;;
6087esac
6088 DSYMUTIL=$ac_ct_DSYMUTIL
6089 fi
6090else
6091 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6092fi
6093
6094 if test -n "$ac_tool_prefix"; then
6095 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6096set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6098$as_echo_n "checking for $ac_word... " >&6; }
6099if ${ac_cv_prog_NMEDIT+:} false; then :
6100 $as_echo_n "(cached) " >&6
6101else
6102 if test -n "$NMEDIT"; then
6103 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6104else
6105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6106for as_dir in $PATH
6107do
6108 IFS=$as_save_IFS
6109 test -z "$as_dir" && as_dir=.
6110 for ac_exec_ext in '' $ac_executable_extensions; do
6111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6112 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6114 break 2
6115 fi
6116done
6117 done
6118IFS=$as_save_IFS
6119
6120fi
6121fi
6122NMEDIT=$ac_cv_prog_NMEDIT
6123if test -n "$NMEDIT"; then
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6125$as_echo "$NMEDIT" >&6; }
6126else
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6128$as_echo "no" >&6; }
6129fi
6130
6131
6132fi
6133if test -z "$ac_cv_prog_NMEDIT"; then
6134 ac_ct_NMEDIT=$NMEDIT
6135 # Extract the first word of "nmedit", so it can be a program name with args.
6136set dummy nmedit; ac_word=$2
6137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6138$as_echo_n "checking for $ac_word... " >&6; }
6139if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6140 $as_echo_n "(cached) " >&6
6141else
6142 if test -n "$ac_ct_NMEDIT"; then
6143 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6144else
6145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6146for as_dir in $PATH
6147do
6148 IFS=$as_save_IFS
6149 test -z "$as_dir" && as_dir=.
6150 for ac_exec_ext in '' $ac_executable_extensions; do
6151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6152 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6154 break 2
6155 fi
6156done
6157 done
6158IFS=$as_save_IFS
6159
6160fi
6161fi
6162ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6163if test -n "$ac_ct_NMEDIT"; then
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6165$as_echo "$ac_ct_NMEDIT" >&6; }
6166else
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6168$as_echo "no" >&6; }
6169fi
6170
6171 if test "x$ac_ct_NMEDIT" = x; then
6172 NMEDIT=":"
6173 else
6174 case $cross_compiling:$ac_tool_warned in
6175yes:)
6176{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6177$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6178ac_tool_warned=yes ;;
6179esac
6180 NMEDIT=$ac_ct_NMEDIT
6181 fi
6182else
6183 NMEDIT="$ac_cv_prog_NMEDIT"
6184fi
6185
6186 if test -n "$ac_tool_prefix"; then
6187 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6188set dummy ${ac_tool_prefix}lipo; ac_word=$2
6189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6190$as_echo_n "checking for $ac_word... " >&6; }
6191if ${ac_cv_prog_LIPO+:} false; then :
6192 $as_echo_n "(cached) " >&6
6193else
6194 if test -n "$LIPO"; then
6195 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6196else
6197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198for as_dir in $PATH
6199do
6200 IFS=$as_save_IFS
6201 test -z "$as_dir" && as_dir=.
6202 for ac_exec_ext in '' $ac_executable_extensions; do
6203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6204 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6206 break 2
6207 fi
6208done
6209 done
6210IFS=$as_save_IFS
6211
6212fi
6213fi
6214LIPO=$ac_cv_prog_LIPO
6215if test -n "$LIPO"; then
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6217$as_echo "$LIPO" >&6; }
6218else
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6220$as_echo "no" >&6; }
6221fi
6222
6223
6224fi
6225if test -z "$ac_cv_prog_LIPO"; then
6226 ac_ct_LIPO=$LIPO
6227 # Extract the first word of "lipo", so it can be a program name with args.
6228set dummy lipo; ac_word=$2
6229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6230$as_echo_n "checking for $ac_word... " >&6; }
6231if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6232 $as_echo_n "(cached) " >&6
6233else
6234 if test -n "$ac_ct_LIPO"; then
6235 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6236else
6237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6238for as_dir in $PATH
6239do
6240 IFS=$as_save_IFS
6241 test -z "$as_dir" && as_dir=.
6242 for ac_exec_ext in '' $ac_executable_extensions; do
6243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6244 ac_cv_prog_ac_ct_LIPO="lipo"
6245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6246 break 2
6247 fi
6248done
6249 done
6250IFS=$as_save_IFS
6251
6252fi
6253fi
6254ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6255if test -n "$ac_ct_LIPO"; then
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6257$as_echo "$ac_ct_LIPO" >&6; }
6258else
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6260$as_echo "no" >&6; }
6261fi
6262
6263 if test "x$ac_ct_LIPO" = x; then
6264 LIPO=":"
6265 else
6266 case $cross_compiling:$ac_tool_warned in
6267yes:)
6268{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6269$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6270ac_tool_warned=yes ;;
6271esac
6272 LIPO=$ac_ct_LIPO
6273 fi
6274else
6275 LIPO="$ac_cv_prog_LIPO"
6276fi
6277
6278 if test -n "$ac_tool_prefix"; then
6279 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6280set dummy ${ac_tool_prefix}otool; ac_word=$2
6281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6282$as_echo_n "checking for $ac_word... " >&6; }
6283if ${ac_cv_prog_OTOOL+:} false; then :
6284 $as_echo_n "(cached) " >&6
6285else
6286 if test -n "$OTOOL"; then
6287 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6288else
6289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6290for as_dir in $PATH
6291do
6292 IFS=$as_save_IFS
6293 test -z "$as_dir" && as_dir=.
6294 for ac_exec_ext in '' $ac_executable_extensions; do
6295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6296 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6298 break 2
6299 fi
6300done
6301 done
6302IFS=$as_save_IFS
6303
6304fi
6305fi
6306OTOOL=$ac_cv_prog_OTOOL
6307if test -n "$OTOOL"; then
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6309$as_echo "$OTOOL" >&6; }
6310else
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6312$as_echo "no" >&6; }
6313fi
6314
6315
6316fi
6317if test -z "$ac_cv_prog_OTOOL"; then
6318 ac_ct_OTOOL=$OTOOL
6319 # Extract the first word of "otool", so it can be a program name with args.
6320set dummy otool; ac_word=$2
6321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6322$as_echo_n "checking for $ac_word... " >&6; }
6323if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6324 $as_echo_n "(cached) " >&6
6325else
6326 if test -n "$ac_ct_OTOOL"; then
6327 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6328else
6329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6330for as_dir in $PATH
6331do
6332 IFS=$as_save_IFS
6333 test -z "$as_dir" && as_dir=.
6334 for ac_exec_ext in '' $ac_executable_extensions; do
6335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6336 ac_cv_prog_ac_ct_OTOOL="otool"
6337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6338 break 2
6339 fi
6340done
6341 done
6342IFS=$as_save_IFS
6343
6344fi
6345fi
6346ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6347if test -n "$ac_ct_OTOOL"; then
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6349$as_echo "$ac_ct_OTOOL" >&6; }
6350else
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6352$as_echo "no" >&6; }
6353fi
6354
6355 if test "x$ac_ct_OTOOL" = x; then
6356 OTOOL=":"
6357 else
6358 case $cross_compiling:$ac_tool_warned in
6359yes:)
6360{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6361$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6362ac_tool_warned=yes ;;
6363esac
6364 OTOOL=$ac_ct_OTOOL
6365 fi
6366else
6367 OTOOL="$ac_cv_prog_OTOOL"
6368fi
6369
6370 if test -n "$ac_tool_prefix"; then
6371 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6372set dummy ${ac_tool_prefix}otool64; ac_word=$2
6373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6374$as_echo_n "checking for $ac_word... " >&6; }
6375if ${ac_cv_prog_OTOOL64+:} false; then :
6376 $as_echo_n "(cached) " >&6
6377else
6378 if test -n "$OTOOL64"; then
6379 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6380else
6381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6382for as_dir in $PATH
6383do
6384 IFS=$as_save_IFS
6385 test -z "$as_dir" && as_dir=.
6386 for ac_exec_ext in '' $ac_executable_extensions; do
6387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6388 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6390 break 2
6391 fi
6392done
6393 done
6394IFS=$as_save_IFS
6395
6396fi
6397fi
6398OTOOL64=$ac_cv_prog_OTOOL64
6399if test -n "$OTOOL64"; then
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6401$as_echo "$OTOOL64" >&6; }
6402else
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6404$as_echo "no" >&6; }
6405fi
6406
6407
6408fi
6409if test -z "$ac_cv_prog_OTOOL64"; then
6410 ac_ct_OTOOL64=$OTOOL64
6411 # Extract the first word of "otool64", so it can be a program name with args.
6412set dummy otool64; ac_word=$2
6413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6414$as_echo_n "checking for $ac_word... " >&6; }
6415if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6416 $as_echo_n "(cached) " >&6
6417else
6418 if test -n "$ac_ct_OTOOL64"; then
6419 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6420else
6421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6422for as_dir in $PATH
6423do
6424 IFS=$as_save_IFS
6425 test -z "$as_dir" && as_dir=.
6426 for ac_exec_ext in '' $ac_executable_extensions; do
6427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6428 ac_cv_prog_ac_ct_OTOOL64="otool64"
6429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6430 break 2
6431 fi
6432done
6433 done
6434IFS=$as_save_IFS
6435
6436fi
6437fi
6438ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6439if test -n "$ac_ct_OTOOL64"; then
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6441$as_echo "$ac_ct_OTOOL64" >&6; }
6442else
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6444$as_echo "no" >&6; }
6445fi
6446
6447 if test "x$ac_ct_OTOOL64" = x; then
6448 OTOOL64=":"
6449 else
6450 case $cross_compiling:$ac_tool_warned in
6451yes:)
6452{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6453$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6454ac_tool_warned=yes ;;
6455esac
6456 OTOOL64=$ac_ct_OTOOL64
6457 fi
6458else
6459 OTOOL64="$ac_cv_prog_OTOOL64"
6460fi
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6489$as_echo_n "checking for -single_module linker flag... " >&6; }
6490if ${lt_cv_apple_cc_single_mod+:} false; then :
6491 $as_echo_n "(cached) " >&6
6492else
6493 lt_cv_apple_cc_single_mod=no
6494 if test -z "${LT_MULTI_MODULE}"; then
6495 # By default we will add the -single_module flag. You can override
6496 # by either setting the environment variable LT_MULTI_MODULE
6497 # non-empty at configure time, or by adding -multi_module to the
6498 # link flags.
6499 rm -rf libconftest.dylib*
6500 echo "int foo(void){return 1;}" > conftest.c
6501 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6502-dynamiclib -Wl,-single_module conftest.c" >&5
6503 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6504 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6505 _lt_result=$?
6506 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6507 lt_cv_apple_cc_single_mod=yes
6508 else
6509 cat conftest.err >&5
6510 fi
6511 rm -rf libconftest.dylib*
6512 rm -f conftest.*
6513 fi
6514fi
6515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6516$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6518$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6519if ${lt_cv_ld_exported_symbols_list+:} false; then :
6520 $as_echo_n "(cached) " >&6
6521else
6522 lt_cv_ld_exported_symbols_list=no
6523 save_LDFLAGS=$LDFLAGS
6524 echo "_main" > conftest.sym
6525 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6527/* end confdefs.h. */
6528
6529int
6530main ()
6531{
6532
6533 ;
6534 return 0;
6535}
6536_ACEOF
6537if ac_fn_c_try_link "$LINENO"; then :
6538 lt_cv_ld_exported_symbols_list=yes
6539else
6540 lt_cv_ld_exported_symbols_list=no
6541fi
6542rm -f core conftest.err conftest.$ac_objext \
6543 conftest$ac_exeext conftest.$ac_ext
6544 LDFLAGS="$save_LDFLAGS"
6545
6546fi
6547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6548$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6550$as_echo_n "checking for -force_load linker flag... " >&6; }
6551if ${lt_cv_ld_force_load+:} false; then :
6552 $as_echo_n "(cached) " >&6
6553else
6554 lt_cv_ld_force_load=no
6555 cat > conftest.c << _LT_EOF
6556int forced_loaded() { return 2;}
6557_LT_EOF
6558 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6559 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6560 echo "$AR cru libconftest.a conftest.o" >&5
6561 $AR cru libconftest.a conftest.o 2>&5
6562 cat > conftest.c << _LT_EOF
6563int main() { return 0;}
6564_LT_EOF
6565 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6566 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6567 _lt_result=$?
6568 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6569 lt_cv_ld_force_load=yes
6570 else
6571 cat conftest.err >&5
6572 fi
6573 rm -f conftest.err libconftest.a conftest conftest.c
6574 rm -rf conftest.dSYM
6575
6576fi
6577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6578$as_echo "$lt_cv_ld_force_load" >&6; }
6579 case $host_os in
6580 rhapsody* | darwin1.[012])
6581 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6582 darwin1.*)
6583 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6584 darwin*) # darwin 5.x on
6585 # if running on 10.5 or later, the deployment target defaults
6586 # to the OS version, if on x86, and 10.4, the deployment
6587 # target defaults to 10.4. Don't you love it?
6588 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6589 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6590 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6591 10.[012][,.]*)
6592 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6593 10.*)
6594 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6595 esac
6596 ;;
6597 esac
6598 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6599 _lt_dar_single_mod='$single_module'
6600 fi
6601 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6602 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6603 else
6604 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6605 fi
6606 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6607 _lt_dsymutil='~$DSYMUTIL $lib || :'
6608 else
6609 _lt_dsymutil=
6610 fi
6611 ;;
6612 esac
6613
6614for ac_header in dlfcn.h
6615do :
6616 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6617"
6618if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6619 cat >>confdefs.h <<_ACEOF
6620#define HAVE_DLFCN_H 1
6621_ACEOF
6622
6623fi
6624
6625done
6626
6627
6628
ebe9564b 6629
b9249c46
MF
6630
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6632$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6633if ${ac_cv_c_bigendian+:} false; then :
6634 $as_echo_n "(cached) " >&6
6635else
6636 ac_cv_c_bigendian=unknown
6637 # See if we're dealing with a universal compiler.
6638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6639/* end confdefs.h. */
6640#ifndef __APPLE_CC__
6641 not a universal capable compiler
6642 #endif
6643 typedef int dummy;
6644
6645_ACEOF
6646if ac_fn_c_try_compile "$LINENO"; then :
6647
6648 # Check for potential -arch flags. It is not universal unless
6649 # there are at least two -arch flags with different values.
6650 ac_arch=
6651 ac_prev=
6652 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6653 if test -n "$ac_prev"; then
6654 case $ac_word in
6655 i?86 | x86_64 | ppc | ppc64)
6656 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6657 ac_arch=$ac_word
6658 else
6659 ac_cv_c_bigendian=universal
6660 break
6661 fi
6662 ;;
6663 esac
6664 ac_prev=
6665 elif test "x$ac_word" = "x-arch"; then
6666 ac_prev=arch
6667 fi
6668 done
6669fi
6670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6671 if test $ac_cv_c_bigendian = unknown; then
6672 # See if sys/param.h defines the BYTE_ORDER macro.
6673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6674/* end confdefs.h. */
6675#include <sys/types.h>
6676 #include <sys/param.h>
6677
6678int
6679main ()
6680{
6681#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6682 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6683 && LITTLE_ENDIAN)
6684 bogus endian macros
6685 #endif
6686
6687 ;
6688 return 0;
6689}
6690_ACEOF
6691if ac_fn_c_try_compile "$LINENO"; then :
6692 # It does; now see whether it defined to BIG_ENDIAN or not.
6693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6694/* end confdefs.h. */
6695#include <sys/types.h>
6696 #include <sys/param.h>
6697
6698int
6699main ()
6700{
6701#if BYTE_ORDER != BIG_ENDIAN
6702 not big endian
6703 #endif
6704
6705 ;
6706 return 0;
6707}
6708_ACEOF
6709if ac_fn_c_try_compile "$LINENO"; then :
6710 ac_cv_c_bigendian=yes
6711else
6712 ac_cv_c_bigendian=no
6713fi
6714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6715fi
6716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6717 fi
6718 if test $ac_cv_c_bigendian = unknown; then
6719 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6721/* end confdefs.h. */
6722#include <limits.h>
6723
6724int
6725main ()
6726{
6727#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6728 bogus endian macros
6729 #endif
6730
6731 ;
6732 return 0;
6733}
6734_ACEOF
6735if ac_fn_c_try_compile "$LINENO"; then :
6736 # It does; now see whether it defined to _BIG_ENDIAN or not.
6737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6738/* end confdefs.h. */
6739#include <limits.h>
6740
6741int
6742main ()
6743{
6744#ifndef _BIG_ENDIAN
6745 not big endian
6746 #endif
6747
6748 ;
6749 return 0;
6750}
6751_ACEOF
6752if ac_fn_c_try_compile "$LINENO"; then :
6753 ac_cv_c_bigendian=yes
6754else
6755 ac_cv_c_bigendian=no
6756fi
6757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6758fi
6759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6760 fi
6761 if test $ac_cv_c_bigendian = unknown; then
6762 # Compile a test program.
6763 if test "$cross_compiling" = yes; then :
6764 # Try to guess by grepping values from an object file.
6765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6766/* end confdefs.h. */
6767short int ascii_mm[] =
6768 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6769 short int ascii_ii[] =
6770 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6771 int use_ascii (int i) {
6772 return ascii_mm[i] + ascii_ii[i];
6773 }
6774 short int ebcdic_ii[] =
6775 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6776 short int ebcdic_mm[] =
6777 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6778 int use_ebcdic (int i) {
6779 return ebcdic_mm[i] + ebcdic_ii[i];
6780 }
6781 extern int foo;
6782
6783int
6784main ()
6785{
6786return use_ascii (foo) == use_ebcdic (foo);
6787 ;
6788 return 0;
6789}
6790_ACEOF
6791if ac_fn_c_try_compile "$LINENO"; then :
6792 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6793 ac_cv_c_bigendian=yes
6794 fi
6795 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6796 if test "$ac_cv_c_bigendian" = unknown; then
6797 ac_cv_c_bigendian=no
6798 else
6799 # finding both strings is unlikely to happen, but who knows?
6800 ac_cv_c_bigendian=unknown
6801 fi
6802 fi
6803fi
6804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6805else
6806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6807/* end confdefs.h. */
6808$ac_includes_default
6809int
6810main ()
6811{
6812
6813 /* Are we little or big endian? From Harbison&Steele. */
6814 union
6815 {
6816 long int l;
6817 char c[sizeof (long int)];
6818 } u;
6819 u.l = 1;
6820 return u.c[sizeof (long int) - 1] == 1;
6821
6822 ;
6823 return 0;
6824}
6825_ACEOF
6826if ac_fn_c_try_run "$LINENO"; then :
6827 ac_cv_c_bigendian=no
6828else
6829 ac_cv_c_bigendian=yes
6830fi
6831rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6832 conftest.$ac_objext conftest.beam conftest.$ac_ext
6833fi
6834
6835 fi
6836fi
6837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6838$as_echo "$ac_cv_c_bigendian" >&6; }
6839 case $ac_cv_c_bigendian in #(
6840 yes)
6841 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6842;; #(
6843 no)
6844 ;; #(
6845 universal)
6846
6847$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6848
6849 ;; #(
6850 *)
6851 as_fn_error $? "unknown endianness
6852 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6853 esac
6854
6855
6856
6857
c25ea03d
MF
6858if test "x$cross_compiling" = "xno"; then
6859 : "${CC_FOR_BUILD:=\$(CC)}"
6860 : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}"
c2783492 6861 : "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}"
c25ea03d
MF
6862else
6863 : "${CC_FOR_BUILD:=gcc}"
6864 : "${CFLAGS_FOR_BUILD:=-g -O}"
c2783492 6865 : "${LDLFAGS_FOR_BUILD:=}"
b9249c46
MF
6866fi
6867
6868
6869
c25ea03d 6870
c2783492 6871
a3e2cc64
MF
6872if test -n "$ac_tool_prefix"; then
6873 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6874set dummy ${ac_tool_prefix}ar; ac_word=$2
6875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6876$as_echo_n "checking for $ac_word... " >&6; }
6877if ${ac_cv_prog_AR+:} false; then :
6878 $as_echo_n "(cached) " >&6
6879else
6880 if test -n "$AR"; then
6881 ac_cv_prog_AR="$AR" # Let the user override the test.
6882else
6883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6884for as_dir in $PATH
6885do
6886 IFS=$as_save_IFS
6887 test -z "$as_dir" && as_dir=.
6888 for ac_exec_ext in '' $ac_executable_extensions; do
6889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6890 ac_cv_prog_AR="${ac_tool_prefix}ar"
6891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6892 break 2
6893 fi
6894done
6895 done
6896IFS=$as_save_IFS
6897
6898fi
6899fi
6900AR=$ac_cv_prog_AR
6901if test -n "$AR"; then
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6903$as_echo "$AR" >&6; }
6904else
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6906$as_echo "no" >&6; }
6907fi
6908
6909
6910fi
6911if test -z "$ac_cv_prog_AR"; then
6912 ac_ct_AR=$AR
6913 # Extract the first word of "ar", so it can be a program name with args.
6914set dummy ar; ac_word=$2
6915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6916$as_echo_n "checking for $ac_word... " >&6; }
6917if ${ac_cv_prog_ac_ct_AR+:} false; then :
6918 $as_echo_n "(cached) " >&6
6919else
6920 if test -n "$ac_ct_AR"; then
6921 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6922else
6923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924for as_dir in $PATH
6925do
6926 IFS=$as_save_IFS
6927 test -z "$as_dir" && as_dir=.
6928 for ac_exec_ext in '' $ac_executable_extensions; do
6929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6930 ac_cv_prog_ac_ct_AR="ar"
6931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6932 break 2
6933 fi
6934done
6935 done
6936IFS=$as_save_IFS
6937
6938fi
6939fi
6940ac_ct_AR=$ac_cv_prog_ac_ct_AR
6941if test -n "$ac_ct_AR"; then
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6943$as_echo "$ac_ct_AR" >&6; }
6944else
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6946$as_echo "no" >&6; }
6947fi
6948
6949 if test "x$ac_ct_AR" = x; then
6950 AR=""
6951 else
6952 case $cross_compiling:$ac_tool_warned in
6953yes:)
6954{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6955$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6956ac_tool_warned=yes ;;
6957esac
6958 AR=$ac_ct_AR
6959 fi
6960else
6961 AR="$ac_cv_prog_AR"
6962fi
b9249c46
MF
6963
6964if test -n "$ac_tool_prefix"; then
6965 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6966set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6968$as_echo_n "checking for $ac_word... " >&6; }
6969if ${ac_cv_prog_RANLIB+:} false; then :
6970 $as_echo_n "(cached) " >&6
6971else
6972 if test -n "$RANLIB"; then
6973 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6974else
6975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6976for as_dir in $PATH
6977do
6978 IFS=$as_save_IFS
6979 test -z "$as_dir" && as_dir=.
6980 for ac_exec_ext in '' $ac_executable_extensions; do
6981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6982 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6984 break 2
6985 fi
6986done
6987 done
6988IFS=$as_save_IFS
6989
6990fi
6991fi
6992RANLIB=$ac_cv_prog_RANLIB
6993if test -n "$RANLIB"; then
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6995$as_echo "$RANLIB" >&6; }
6996else
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6998$as_echo "no" >&6; }
6999fi
7000
7001
7002fi
7003if test -z "$ac_cv_prog_RANLIB"; then
7004 ac_ct_RANLIB=$RANLIB
7005 # Extract the first word of "ranlib", so it can be a program name with args.
7006set dummy ranlib; ac_word=$2
7007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7008$as_echo_n "checking for $ac_word... " >&6; }
7009if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7010 $as_echo_n "(cached) " >&6
7011else
7012 if test -n "$ac_ct_RANLIB"; then
7013 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7014else
7015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7016for as_dir in $PATH
7017do
7018 IFS=$as_save_IFS
7019 test -z "$as_dir" && as_dir=.
7020 for ac_exec_ext in '' $ac_executable_extensions; do
7021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7022 ac_cv_prog_ac_ct_RANLIB="ranlib"
7023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7024 break 2
7025 fi
7026done
7027 done
7028IFS=$as_save_IFS
7029
7030fi
7031fi
7032ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7033if test -n "$ac_ct_RANLIB"; then
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7035$as_echo "$ac_ct_RANLIB" >&6; }
7036else
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7038$as_echo "no" >&6; }
7039fi
7040
7041 if test "x$ac_ct_RANLIB" = x; then
7042 RANLIB=":"
7043 else
7044 case $cross_compiling:$ac_tool_warned in
7045yes:)
7046{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7047$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7048ac_tool_warned=yes ;;
7049esac
7050 RANLIB=$ac_ct_RANLIB
7051 fi
7052else
7053 RANLIB="$ac_cv_prog_RANLIB"
7054fi
7055
7056
7057# Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using
7058# AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands
7059# is C99. So handle it ourselves.
7060:
7061C_DIALECT=
7062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5
7063$as_echo_n "checking whether C11 is supported by default... " >&6; }
7064cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7065/* end confdefs.h. */
7066
7067#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
7068# error "C11 support not found"
7069#endif
7070
7071_ACEOF
7072if ac_fn_c_try_compile "$LINENO"; then :
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7074$as_echo "yes" >&6; }
7075else
7076
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7078$as_echo "no" >&6; }
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5
7080$as_echo_n "checking for -std=c11 support... " >&6; }
7081 ac_save_CC="$CC"
7082 CC="$CC -std=c11"
7083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7084/* end confdefs.h. */
7085
7086#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
7087# error "C11 support not found"
7088#endif
7089
7090_ACEOF
7091if ac_fn_c_try_compile "$LINENO"; then :
7092
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7094$as_echo "yes" >&6; }
7095 CC="$ac_save_CC"
7096 C_DIALECT="-std=c11"
7097
7098else
7099 as_fn_error $? "C11 is required" "$LINENO" 5
7100fi
7101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7102fi
7103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7104
7105
c2783492
MF
7106ac_config_headers="$ac_config_headers config.h:config.in"
7107
7108
b9249c46
MF
7109# Some of the common include files depend on bfd.h, and bfd.h checks
7110# that config.h is included first by testing that the PACKAGE macro
7111# is defined.
7112PACKAGE=sim
7113
7114cat >>confdefs.h <<_ACEOF
7115#define PACKAGE "$PACKAGE"
7116_ACEOF
7117
7118
7119
7120# Dependency checking.
7121ac_config_commands="$ac_config_commands depdir"
7122
7123
7124depcc="$CC" am_compiler_list=
7125
7126am_depcomp=$ac_aux_dir/depcomp
7127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7128$as_echo_n "checking dependency style of $depcc... " >&6; }
7129if ${am_cv_CC_dependencies_compiler_type+:} false; then :
7130 $as_echo_n "(cached) " >&6
7131else
7132 if test -f "$am_depcomp"; then
7133 # We make a subdir and do the tests there. Otherwise we can end up
7134 # making bogus files that we don't know about and never remove. For
7135 # instance it was reported that on HP-UX the gcc test will end up
7136 # making a dummy file named `D' -- because `-MD' means `put the output
7137 # in D'.
7138 mkdir conftest.dir
7139 # Copy depcomp to subdir because otherwise we won't find it if we're
7140 # using a relative directory.
7141 cp "$am_depcomp" conftest.dir
7142 cd conftest.dir
7143 # We will build objects and dependencies in a subdirectory because
7144 # it helps to detect inapplicable dependency modes. For instance
7145 # both Tru64's cc and ICC support -MD to output dependencies as a
7146 # side effect of compilation, but ICC will put the dependencies in
7147 # the current directory while Tru64 will put them in the object
7148 # directory.
7149 mkdir sub
7150
7151 am_cv_CC_dependencies_compiler_type=none
7152 if test "$am_compiler_list" = ""; then
7153 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7154 fi
7155 for depmode in $am_compiler_list; do
7156 if test $depmode = none; then break; fi
7157
7158 $as_echo "$as_me:$LINENO: trying $depmode" >&5
7159 # Setup a source with many dependencies, because some compilers
7160 # like to wrap large dependency lists on column 80 (with \), and
7161 # we should not choose a depcomp mode which is confused by this.
7162 #
7163 # We need to recreate these files for each test, as the compiler may
7164 # overwrite some of them when testing with obscure command lines.
7165 # This happens at least with the AIX C compiler.
7166 : > sub/conftest.c
7167 for i in 1 2 3 4 5 6; do
7168 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7169 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7170 # Solaris 8's {/usr,}/bin/sh.
7171 touch sub/conftst$i.h
7172 done
7173 echo "include sub/conftest.Po" > confmf
7174
7175 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7176 # mode. It turns out that the SunPro C++ compiler does not properly
7177 # handle `-M -o', and we need to detect this.
7178 depcmd="depmode=$depmode \
7179 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7180 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7181 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
7182 echo "| $depcmd" | sed -e 's/ */ /g' >&5
7183 if env $depcmd > conftest.err 2>&1 &&
7184 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
7185 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
7186 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
7187 # icc doesn't choke on unknown options, it will just issue warnings
7188 # or remarks (even with -Werror). So we grep stderr for any message
7189 # that says an option was ignored or not supported.
7190 # When given -MP, icc 7.0 and 7.1 complain thusly:
7191 # icc: Command line warning: ignoring option '-M'; no argument required
7192 # The diagnosis changed in icc 8.0:
7193 # icc: Command line remark: option '-MP' not supported
7194 if (grep 'ignoring option' conftest.err ||
7195 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7196 am_cv_CC_dependencies_compiler_type=$depmode
7197 $as_echo "$as_me:$LINENO: success" >&5
7198 break
7199 fi
7200 fi
7201 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
7202 sed -e 's/^/| /' < conftest.err >&5
7203 done
7204
7205 cd ..
7206 rm -rf conftest.dir
7207else
7208 am_cv_CC_dependencies_compiler_type=none
7209fi
7210
7211fi
7212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7213$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7214if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
7215then as_fn_error $? "no usable dependency style found" "$LINENO" 5
7216else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7217
7218fi
7219
7220
b9249c46
MF
7221ALL_LINGUAS=
7222# If we haven't got the data from the intl directory,
7223# assume NLS is disabled.
7224USE_NLS=no
7225LIBINTL=
7226LIBINTL_DEP=
7227INCINTL=
7228XGETTEXT=
7229GMSGFMT=
7230POSUB=
7231
7232if test -f ../../intl/config.intl; then
7233 . ../../intl/config.intl
7234fi
7235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7236$as_echo_n "checking whether NLS is requested... " >&6; }
7237if test x"$USE_NLS" != xyes; then
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7239$as_echo "no" >&6; }
7240else
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7242$as_echo "yes" >&6; }
7243
7244$as_echo "#define ENABLE_NLS 1" >>confdefs.h
7245
7246
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
7248$as_echo_n "checking for catalogs to be installed... " >&6; }
7249 # Look for .po and .gmo files in the source directory.
7250 CATALOGS=
7251 XLINGUAS=
7252 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
7253 # If there aren't any .gmo files the shell will give us the
7254 # literal string "../path/to/srcdir/po/*.gmo" which has to be
7255 # weeded out.
7256 case "$cat" in *\**)
7257 continue;;
7258 esac
7259 # The quadruple backslash is collapsed to a double backslash
7260 # by the backticks, then collapsed again by the double quotes,
7261 # leaving us with one backslash in the sed expression (right
7262 # before the dot that mustn't act as a wildcard).
7263 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
7264 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
7265 # The user is allowed to set LINGUAS to a list of languages to
7266 # install catalogs for. If it's empty that means "all of them."
7267 if test "x$LINGUAS" = x; then
7268 CATALOGS="$CATALOGS $cat"
7269 XLINGUAS="$XLINGUAS $lang"
7270 else
7271 case "$LINGUAS" in *$lang*)
7272 CATALOGS="$CATALOGS $cat"
7273 XLINGUAS="$XLINGUAS $lang"
7274 ;;
7275 esac
7276 fi
7277 done
7278 LINGUAS="$XLINGUAS"
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
7280$as_echo "$LINGUAS" >&6; }
7281
7282
7283 DATADIRNAME=share
7284
7285 INSTOBJEXT=.mo
7286
7287 GENCAT=gencat
7288
7289 CATOBJEXT=.gmo
7290
7291fi
7292
7293# Check for common headers.
7294# NB: You can assume C11 headers exist.
b9249c46 7295
b9249c46
MF
7296
7297ac_fn_c_check_member "$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H
7298#include <sys/types.h>
7299#endif
7300#ifdef HAVE_SYS_STAT_H
7301#include <sys/stat.h>
7302#endif
7303"
7304if test "x$ac_cv_member_struct_stat_st_dev" = xyes; then :
7305
7306cat >>confdefs.h <<_ACEOF
7307#define HAVE_STRUCT_STAT_ST_DEV 1
7308_ACEOF
7309
7310
7311fi
7312ac_fn_c_check_member "$LINENO" "struct stat" "st_ino" "ac_cv_member_struct_stat_st_ino" "#ifdef HAVE_SYS_TYPES_H
7313#include <sys/types.h>
7314#endif
7315#ifdef HAVE_SYS_STAT_H
7316#include <sys/stat.h>
7317#endif
7318"
7319if test "x$ac_cv_member_struct_stat_st_ino" = xyes; then :
7320
7321cat >>confdefs.h <<_ACEOF
7322#define HAVE_STRUCT_STAT_ST_INO 1
7323_ACEOF
7324
7325
7326fi
7327ac_fn_c_check_member "$LINENO" "struct stat" "st_mode" "ac_cv_member_struct_stat_st_mode" "#ifdef HAVE_SYS_TYPES_H
7328#include <sys/types.h>
7329#endif
7330#ifdef HAVE_SYS_STAT_H
7331#include <sys/stat.h>
7332#endif
7333"
7334if test "x$ac_cv_member_struct_stat_st_mode" = xyes; then :
7335
7336cat >>confdefs.h <<_ACEOF
7337#define HAVE_STRUCT_STAT_ST_MODE 1
7338_ACEOF
7339
7340
7341fi
7342ac_fn_c_check_member "$LINENO" "struct stat" "st_nlink" "ac_cv_member_struct_stat_st_nlink" "#ifdef HAVE_SYS_TYPES_H
7343#include <sys/types.h>
7344#endif
7345#ifdef HAVE_SYS_STAT_H
7346#include <sys/stat.h>
7347#endif
7348"
7349if test "x$ac_cv_member_struct_stat_st_nlink" = xyes; then :
7350
7351cat >>confdefs.h <<_ACEOF
7352#define HAVE_STRUCT_STAT_ST_NLINK 1
7353_ACEOF
7354
7355
7356fi
7357ac_fn_c_check_member "$LINENO" "struct stat" "st_uid" "ac_cv_member_struct_stat_st_uid" "#ifdef HAVE_SYS_TYPES_H
7358#include <sys/types.h>
7359#endif
7360#ifdef HAVE_SYS_STAT_H
7361#include <sys/stat.h>
7362#endif
7363"
7364if test "x$ac_cv_member_struct_stat_st_uid" = xyes; then :
7365
7366cat >>confdefs.h <<_ACEOF
7367#define HAVE_STRUCT_STAT_ST_UID 1
7368_ACEOF
7369
7370
7371fi
7372ac_fn_c_check_member "$LINENO" "struct stat" "st_gid" "ac_cv_member_struct_stat_st_gid" "#ifdef HAVE_SYS_TYPES_H
7373#include <sys/types.h>
7374#endif
7375#ifdef HAVE_SYS_STAT_H
7376#include <sys/stat.h>
7377#endif
7378"
7379if test "x$ac_cv_member_struct_stat_st_gid" = xyes; then :
7380
7381cat >>confdefs.h <<_ACEOF
7382#define HAVE_STRUCT_STAT_ST_GID 1
7383_ACEOF
7384
7385
7386fi
7387ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "#ifdef HAVE_SYS_TYPES_H
7388#include <sys/types.h>
7389#endif
7390#ifdef HAVE_SYS_STAT_H
7391#include <sys/stat.h>
7392#endif
7393"
7394if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
7395
7396cat >>confdefs.h <<_ACEOF
7397#define HAVE_STRUCT_STAT_ST_RDEV 1
7398_ACEOF
7399
7400
7401fi
7402ac_fn_c_check_member "$LINENO" "struct stat" "st_size" "ac_cv_member_struct_stat_st_size" "#ifdef HAVE_SYS_TYPES_H
7403#include <sys/types.h>
7404#endif
7405#ifdef HAVE_SYS_STAT_H
7406#include <sys/stat.h>
7407#endif
7408"
7409if test "x$ac_cv_member_struct_stat_st_size" = xyes; then :
7410
7411cat >>confdefs.h <<_ACEOF
7412#define HAVE_STRUCT_STAT_ST_SIZE 1
7413_ACEOF
7414
7415
7416fi
7417ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#ifdef HAVE_SYS_TYPES_H
7418#include <sys/types.h>
7419#endif
7420#ifdef HAVE_SYS_STAT_H
7421#include <sys/stat.h>
7422#endif
7423"
7424if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
7425
7426cat >>confdefs.h <<_ACEOF
7427#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
7428_ACEOF
7429
7430
7431fi
7432ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#ifdef HAVE_SYS_TYPES_H
7433#include <sys/types.h>
7434#endif
7435#ifdef HAVE_SYS_STAT_H
7436#include <sys/stat.h>
7437#endif
7438"
7439if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
7440
7441cat >>confdefs.h <<_ACEOF
7442#define HAVE_STRUCT_STAT_ST_BLOCKS 1
7443_ACEOF
7444
7445
7446fi
7447ac_fn_c_check_member "$LINENO" "struct stat" "st_atime" "ac_cv_member_struct_stat_st_atime" "#ifdef HAVE_SYS_TYPES_H
7448#include <sys/types.h>
7449#endif
7450#ifdef HAVE_SYS_STAT_H
7451#include <sys/stat.h>
7452#endif
7453"
7454if test "x$ac_cv_member_struct_stat_st_atime" = xyes; then :
7455
7456cat >>confdefs.h <<_ACEOF
7457#define HAVE_STRUCT_STAT_ST_ATIME 1
7458_ACEOF
7459
7460
7461fi
7462ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "#ifdef HAVE_SYS_TYPES_H
7463#include <sys/types.h>
7464#endif
7465#ifdef HAVE_SYS_STAT_H
7466#include <sys/stat.h>
7467#endif
7468"
7469if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then :
7470
7471cat >>confdefs.h <<_ACEOF
7472#define HAVE_STRUCT_STAT_ST_MTIME 1
7473_ACEOF
7474
7475
7476fi
7477ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime" "ac_cv_member_struct_stat_st_ctime" "#ifdef HAVE_SYS_TYPES_H
7478#include <sys/types.h>
7479#endif
7480#ifdef HAVE_SYS_STAT_H
7481#include <sys/stat.h>
7482#endif
7483"
7484if test "x$ac_cv_member_struct_stat_st_ctime" = xyes; then :
7485
7486cat >>confdefs.h <<_ACEOF
7487#define HAVE_STRUCT_STAT_ST_CTIME 1
7488_ACEOF
7489
7490
7491fi
7492
7493ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
7494#include <sys/socket.h>
7495
7496"
7497if test "x$ac_cv_type_socklen_t" = xyes; then :
7498
7499cat >>confdefs.h <<_ACEOF
7500#define HAVE_SOCKLEN_T 1
7501_ACEOF
7502
7503
7504fi
7505
7506
7507# Check for socket libraries
7508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
7509$as_echo_n "checking for bind in -lsocket... " >&6; }
7510if ${ac_cv_lib_socket_bind+:} false; then :
7511 $as_echo_n "(cached) " >&6
7512else
7513 ac_check_lib_save_LIBS=$LIBS
7514LIBS="-lsocket $LIBS"
7515cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7516/* end confdefs.h. */
7517
7518/* Override any GCC internal prototype to avoid an error.
7519 Use char because int might match the return type of a GCC
7520 builtin and then its argument prototype would still apply. */
7521#ifdef __cplusplus
7522extern "C"
7523#endif
7524char bind ();
7525int
7526main ()
7527{
7528return bind ();
7529 ;
7530 return 0;
7531}
7532_ACEOF
7533if ac_fn_c_try_link "$LINENO"; then :
7534 ac_cv_lib_socket_bind=yes
7535else
7536 ac_cv_lib_socket_bind=no
7537fi
7538rm -f core conftest.err conftest.$ac_objext \
7539 conftest$ac_exeext conftest.$ac_ext
7540LIBS=$ac_check_lib_save_LIBS
7541fi
7542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
7543$as_echo "$ac_cv_lib_socket_bind" >&6; }
7544if test "x$ac_cv_lib_socket_bind" = xyes; then :
7545 cat >>confdefs.h <<_ACEOF
7546#define HAVE_LIBSOCKET 1
7547_ACEOF
7548
7549 LIBS="-lsocket $LIBS"
7550
7551fi
7552
7553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7554$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7555if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
7556 $as_echo_n "(cached) " >&6
7557else
7558 ac_check_lib_save_LIBS=$LIBS
7559LIBS="-lnsl $LIBS"
7560cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7561/* end confdefs.h. */
7562
7563/* Override any GCC internal prototype to avoid an error.
7564 Use char because int might match the return type of a GCC
7565 builtin and then its argument prototype would still apply. */
7566#ifdef __cplusplus
7567extern "C"
7568#endif
7569char gethostbyname ();
7570int
7571main ()
7572{
7573return gethostbyname ();
7574 ;
7575 return 0;
7576}
7577_ACEOF
7578if ac_fn_c_try_link "$LINENO"; then :
7579 ac_cv_lib_nsl_gethostbyname=yes
7580else
7581 ac_cv_lib_nsl_gethostbyname=no
7582fi
7583rm -f core conftest.err conftest.$ac_objext \
7584 conftest$ac_exeext conftest.$ac_ext
7585LIBS=$ac_check_lib_save_LIBS
7586fi
7587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7588$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7589if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
7590 cat >>confdefs.h <<_ACEOF
7591#define HAVE_LIBNSL 1
7592_ACEOF
7593
7594 LIBS="-lnsl $LIBS"
7595
7596fi
7597
7598
7599# BFD conditionally uses zlib, so we must link it in if libbfd does, by
7600# using the same condition.
7601
7602 # Use the system's zlib library.
7603 zlibdir="-L\$(top_builddir)/../zlib"
7604 zlibinc="-I\$(top_srcdir)/../zlib"
7605
7606# Check whether --with-system-zlib was given.
7607if test "${with_system_zlib+set}" = set; then :
7608 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
7609 zlibdir=
7610 zlibinc=
7611 fi
7612
7613fi
7614
7615
7616
7617
7618
7619# BFD uses libdl when when plugins enabled.
7620
7621 maybe_plugins=no
7622 for ac_header in dlfcn.h
7623do :
7624 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7625"
7626if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7627 cat >>confdefs.h <<_ACEOF
7628#define HAVE_DLFCN_H 1
7629_ACEOF
7630 maybe_plugins=yes
7631fi
7632
7633done
7634
7635 for ac_header in windows.h
7636do :
7637 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
7638"
7639if test "x$ac_cv_header_windows_h" = xyes; then :
7640 cat >>confdefs.h <<_ACEOF
7641#define HAVE_WINDOWS_H 1
7642_ACEOF
7643 maybe_plugins=yes
7644fi
7645
7646done
7647
7648
7649 # Check whether --enable-plugins was given.
7650if test "${enable_plugins+set}" = set; then :
7651 enableval=$enable_plugins; case "${enableval}" in
7652 no) plugins=no ;;
7653 *) plugins=yes
7654 if test "$maybe_plugins" != "yes" ; then
7655 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
7656 fi ;;
7657 esac
7658else
7659 plugins=$maybe_plugins
7660
7661fi
7662
7663 if test "$plugins" = "yes"; then
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
7665$as_echo_n "checking for library containing dlsym... " >&6; }
7666if ${ac_cv_search_dlsym+:} false; then :
7667 $as_echo_n "(cached) " >&6
7668else
7669 ac_func_search_save_LIBS=$LIBS
7670cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7671/* end confdefs.h. */
7672
7673/* Override any GCC internal prototype to avoid an error.
7674 Use char because int might match the return type of a GCC
7675 builtin and then its argument prototype would still apply. */
7676#ifdef __cplusplus
7677extern "C"
7678#endif
7679char dlsym ();
7680int
7681main ()
7682{
7683return dlsym ();
7684 ;
7685 return 0;
7686}
7687_ACEOF
7688for ac_lib in '' dl; do
7689 if test -z "$ac_lib"; then
7690 ac_res="none required"
7691 else
7692 ac_res=-l$ac_lib
7693 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7694 fi
7695 if ac_fn_c_try_link "$LINENO"; then :
7696 ac_cv_search_dlsym=$ac_res
7697fi
7698rm -f core conftest.err conftest.$ac_objext \
7699 conftest$ac_exeext
7700 if ${ac_cv_search_dlsym+:} false; then :
7701 break
7702fi
7703done
7704if ${ac_cv_search_dlsym+:} false; then :
7705
7706else
7707 ac_cv_search_dlsym=no
7708fi
7709rm conftest.$ac_ext
7710LIBS=$ac_func_search_save_LIBS
7711fi
7712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
7713$as_echo "$ac_cv_search_dlsym" >&6; }
7714ac_res=$ac_cv_search_dlsym
7715if test "$ac_res" != no; then :
7716 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7717
7718fi
7719
7720 fi
7721
7722 if test "$plugins" = yes; then
7723 PLUGINS_TRUE=
7724 PLUGINS_FALSE='#'
7725else
7726 PLUGINS_TRUE='#'
7727 PLUGINS_FALSE=
7728fi
7729
7730
7731
7732
7733
7734# Set options
7735enable_dlopen=yes
7736
7737
7738
7739
7740 enable_win32_dll=no
7741
7742
7743 # Check whether --enable-shared was given.
7744if test "${enable_shared+set}" = set; then :
7745 enableval=$enable_shared; p=${PACKAGE-default}
7746 case $enableval in
7747 yes) enable_shared=yes ;;
7748 no) enable_shared=no ;;
7749 *)
7750 enable_shared=no
7751 # Look at the argument we got. We use all the common list separators.
7752 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7753 for pkg in $enableval; do
7754 IFS="$lt_save_ifs"
7755 if test "X$pkg" = "X$p"; then
7756 enable_shared=yes
7757 fi
7758 done
7759 IFS="$lt_save_ifs"
7760 ;;
7761 esac
7762else
7763 enable_shared=yes
7764fi
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774 # Check whether --enable-static was given.
7775if test "${enable_static+set}" = set; then :
7776 enableval=$enable_static; p=${PACKAGE-default}
7777 case $enableval in
7778 yes) enable_static=yes ;;
7779 no) enable_static=no ;;
7780 *)
7781 enable_static=no
7782 # Look at the argument we got. We use all the common list separators.
7783 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7784 for pkg in $enableval; do
7785 IFS="$lt_save_ifs"
7786 if test "X$pkg" = "X$p"; then
7787 enable_static=yes
7788 fi
7789 done
7790 IFS="$lt_save_ifs"
7791 ;;
7792 esac
7793else
7794 enable_static=yes
7795fi
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806# Check whether --with-pic was given.
7807if test "${with_pic+set}" = set; then :
7808 withval=$with_pic; pic_mode="$withval"
7809else
7810 pic_mode=default
7811fi
7812
7813
7814test -z "$pic_mode" && pic_mode=default
7815
7816
7817
7818
7819
7820
7821
7822 # Check whether --enable-fast-install was given.
7823if test "${enable_fast_install+set}" = set; then :
7824 enableval=$enable_fast_install; p=${PACKAGE-default}
7825 case $enableval in
7826 yes) enable_fast_install=yes ;;
7827 no) enable_fast_install=no ;;
7828 *)
7829 enable_fast_install=no
7830 # Look at the argument we got. We use all the common list separators.
7831 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7832 for pkg in $enableval; do
7833 IFS="$lt_save_ifs"
7834 if test "X$pkg" = "X$p"; then
7835 enable_fast_install=yes
7836 fi
7837 done
7838 IFS="$lt_save_ifs"
7839 ;;
7840 esac
7841else
7842 enable_fast_install=yes
7843fi
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855# This can be used to rebuild libtool when needed
7856LIBTOOL_DEPS="$ltmain"
7857
7858# Always use our own libtool.
7859LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886test -z "$LN_S" && LN_S="ln -s"
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901if test -n "${ZSH_VERSION+set}" ; then
7902 setopt NO_GLOB_SUBST
7903fi
7904
7905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7906$as_echo_n "checking for objdir... " >&6; }
7907if ${lt_cv_objdir+:} false; then :
7908 $as_echo_n "(cached) " >&6
7909else
7910 rm -f .libs 2>/dev/null
7911mkdir .libs 2>/dev/null
7912if test -d .libs; then
7913 lt_cv_objdir=.libs
7914else
7915 # MS-DOS does not allow filenames that begin with a dot.
7916 lt_cv_objdir=_libs
7917fi
7918rmdir .libs 2>/dev/null
7919fi
7920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7921$as_echo "$lt_cv_objdir" >&6; }
7922objdir=$lt_cv_objdir
7923
7924
7925
7926
7927
7928cat >>confdefs.h <<_ACEOF
7929#define LT_OBJDIR "$lt_cv_objdir/"
7930_ACEOF
7931
7932
7933
7934
7935case $host_os in
7936aix3*)
7937 # AIX sometimes has problems with the GCC collect2 program. For some
7938 # reason, if we set the COLLECT_NAMES environment variable, the problems
7939 # vanish in a puff of smoke.
7940 if test "X${COLLECT_NAMES+set}" != Xset; then
7941 COLLECT_NAMES=
7942 export COLLECT_NAMES
7943 fi
7944 ;;
7945esac
7946
7947# Global variables:
7948ofile=libtool
7949can_build_shared=yes
7950
7951# All known linkers require a `.a' archive for static linking (except MSVC,
7952# which needs '.lib').
7953libext=a
7954
7955with_gnu_ld="$lt_cv_prog_gnu_ld"
7956
7957old_CC="$CC"
7958old_CFLAGS="$CFLAGS"
7959
7960# Set sane defaults for various variables
7961test -z "$CC" && CC=cc
7962test -z "$LTCC" && LTCC=$CC
7963test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7964test -z "$LD" && LD=ld
7965test -z "$ac_objext" && ac_objext=o
7966
7967for cc_temp in $compiler""; do
7968 case $cc_temp in
7969 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7970 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7971 \-*) ;;
7972 *) break;;
7973 esac
7974done
7975cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7976
7977
7978# Only perform the check for file, if the check method requires it
7979test -z "$MAGIC_CMD" && MAGIC_CMD=file
7980case $deplibs_check_method in
7981file_magic*)
7982 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7984$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7985if ${lt_cv_path_MAGIC_CMD+:} false; then :
7986 $as_echo_n "(cached) " >&6
7987else
7988 case $MAGIC_CMD in
7989[\\/*] | ?:[\\/]*)
7990 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7991 ;;
7992*)
7993 lt_save_MAGIC_CMD="$MAGIC_CMD"
7994 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7995 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7996 for ac_dir in $ac_dummy; do
7997 IFS="$lt_save_ifs"
7998 test -z "$ac_dir" && ac_dir=.
7999 if test -f $ac_dir/${ac_tool_prefix}file; then
8000 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8001 if test -n "$file_magic_test_file"; then
8002 case $deplibs_check_method in
8003 "file_magic "*)
8004 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8005 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8006 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8007 $EGREP "$file_magic_regex" > /dev/null; then
8008 :
8009 else
8010 cat <<_LT_EOF 1>&2
8011
8012*** Warning: the command libtool uses to detect shared libraries,
8013*** $file_magic_cmd, produces output that libtool cannot recognize.
8014*** The result is that libtool may fail to recognize shared libraries
8015*** as such. This will affect the creation of libtool libraries that
8016*** depend on shared libraries, but programs linked with such libtool
8017*** libraries will work regardless of this problem. Nevertheless, you
8018*** may want to report the problem to your system manager and/or to
8019*** bug-libtool@gnu.org
8020
8021_LT_EOF
8022 fi ;;
8023 esac
8024 fi
8025 break
8026 fi
8027 done
8028 IFS="$lt_save_ifs"
8029 MAGIC_CMD="$lt_save_MAGIC_CMD"
8030 ;;
8031esac
8032fi
8033
8034MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8035if test -n "$MAGIC_CMD"; then
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8037$as_echo "$MAGIC_CMD" >&6; }
8038else
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8040$as_echo "no" >&6; }
8041fi
8042
8043
8044
8045
8046
8047if test -z "$lt_cv_path_MAGIC_CMD"; then
8048 if test -n "$ac_tool_prefix"; then
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8050$as_echo_n "checking for file... " >&6; }
8051if ${lt_cv_path_MAGIC_CMD+:} false; then :
8052 $as_echo_n "(cached) " >&6
8053else
8054 case $MAGIC_CMD in
8055[\\/*] | ?:[\\/]*)
8056 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8057 ;;
8058*)
8059 lt_save_MAGIC_CMD="$MAGIC_CMD"
8060 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8061 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8062 for ac_dir in $ac_dummy; do
8063 IFS="$lt_save_ifs"
8064 test -z "$ac_dir" && ac_dir=.
8065 if test -f $ac_dir/file; then
8066 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8067 if test -n "$file_magic_test_file"; then
8068 case $deplibs_check_method in
8069 "file_magic "*)
8070 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8071 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8072 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8073 $EGREP "$file_magic_regex" > /dev/null; then
8074 :
8075 else
8076 cat <<_LT_EOF 1>&2
8077
8078*** Warning: the command libtool uses to detect shared libraries,
8079*** $file_magic_cmd, produces output that libtool cannot recognize.
8080*** The result is that libtool may fail to recognize shared libraries
8081*** as such. This will affect the creation of libtool libraries that
8082*** depend on shared libraries, but programs linked with such libtool
8083*** libraries will work regardless of this problem. Nevertheless, you
8084*** may want to report the problem to your system manager and/or to
8085*** bug-libtool@gnu.org
8086
8087_LT_EOF
8088 fi ;;
8089 esac
8090 fi
8091 break
8092 fi
8093 done
8094 IFS="$lt_save_ifs"
8095 MAGIC_CMD="$lt_save_MAGIC_CMD"
8096 ;;
8097esac
8098fi
8099
8100MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8101if test -n "$MAGIC_CMD"; then
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8103$as_echo "$MAGIC_CMD" >&6; }
8104else
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8106$as_echo "no" >&6; }
8107fi
8108
8109
8110 else
8111 MAGIC_CMD=:
8112 fi
8113fi
8114
8115 fi
8116 ;;
8117esac
8118
8119# Use C for the default configuration in the libtool script
8120
8121lt_save_CC="$CC"
8122ac_ext=c
8123ac_cpp='$CPP $CPPFLAGS'
8124ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8125ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8126ac_compiler_gnu=$ac_cv_c_compiler_gnu
8127
8128
8129# Source file extension for C test sources.
8130ac_ext=c
8131
8132# Object file extension for compiled C test sources.
8133objext=o
8134objext=$objext
8135
8136# Code to be used in simple compile tests
8137lt_simple_compile_test_code="int some_variable = 0;"
8138
8139# Code to be used in simple link tests
8140lt_simple_link_test_code='int main(){return(0);}'
8141
8142
8143
8144
8145
8146
8147
8148# If no C compiler was specified, use CC.
8149LTCC=${LTCC-"$CC"}
8150
8151# If no C compiler flags were specified, use CFLAGS.
8152LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8153
8154# Allow CC to be a program name with arguments.
8155compiler=$CC
8156
8157# Save the default compiler, since it gets overwritten when the other
8158# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8159compiler_DEFAULT=$CC
8160
8161# save warnings/boilerplate of simple test code
8162ac_outfile=conftest.$ac_objext
8163echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8164eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8165_lt_compiler_boilerplate=`cat conftest.err`
8166$RM conftest*
8167
8168ac_outfile=conftest.$ac_objext
8169echo "$lt_simple_link_test_code" >conftest.$ac_ext
8170eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8171_lt_linker_boilerplate=`cat conftest.err`
8172$RM -r conftest*
8173
8174
8175## CAVEAT EMPTOR:
8176## There is no encapsulation within the following macros, do not change
8177## the running order or otherwise move them around unless you know exactly
8178## what you are doing...
8179if test -n "$compiler"; then
8180
8181lt_prog_compiler_no_builtin_flag=
8182
8183if test "$GCC" = yes; then
8184 case $cc_basename in
8185 nvcc*)
8186 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8187 *)
8188 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8189 esac
8190
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8192$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8193if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8194 $as_echo_n "(cached) " >&6
8195else
8196 lt_cv_prog_compiler_rtti_exceptions=no
8197 ac_outfile=conftest.$ac_objext
8198 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8199 lt_compiler_flag="-fno-rtti -fno-exceptions"
8200 # Insert the option either (1) after the last *FLAGS variable, or
8201 # (2) before a word containing "conftest.", or (3) at the end.
8202 # Note that $ac_compile itself does not contain backslashes and begins
8203 # with a dollar sign (not a hyphen), so the echo should work correctly.
8204 # The option is referenced via a variable to avoid confusing sed.
8205 lt_compile=`echo "$ac_compile" | $SED \
8206 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8207 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8208 -e 's:$: $lt_compiler_flag:'`
8209 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8210 (eval "$lt_compile" 2>conftest.err)
8211 ac_status=$?
8212 cat conftest.err >&5
8213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214 if (exit $ac_status) && test -s "$ac_outfile"; then
8215 # The compiler can only warn and ignore the option if not recognized
8216 # So say no if there are warnings other than the usual output.
8217 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8218 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8219 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8220 lt_cv_prog_compiler_rtti_exceptions=yes
8221 fi
8222 fi
8223 $RM conftest*
8224
8225fi
8226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8227$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8228
8229if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8230 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8231else
8232 :
8233fi
8234
8235fi
8236
8237
8238
8239
8240
8241
8242 lt_prog_compiler_wl=
8243lt_prog_compiler_pic=
8244lt_prog_compiler_static=
8245
8246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8247$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8248
8249 if test "$GCC" = yes; then
8250 lt_prog_compiler_wl='-Wl,'
8251 lt_prog_compiler_static='-static'
8252
8253 case $host_os in
8254 aix*)
8255 # All AIX code is PIC.
8256 if test "$host_cpu" = ia64; then
8257 # AIX 5 now supports IA64 processor
8258 lt_prog_compiler_static='-Bstatic'
8259 fi
8260 lt_prog_compiler_pic='-fPIC'
8261 ;;
8262
8263 amigaos*)
8264 case $host_cpu in
8265 powerpc)
8266 # see comment about AmigaOS4 .so support
8267 lt_prog_compiler_pic='-fPIC'
8268 ;;
8269 m68k)
8270 # FIXME: we need at least 68020 code to build shared libraries, but
8271 # adding the `-m68020' flag to GCC prevents building anything better,
8272 # like `-m68040'.
8273 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8274 ;;
8275 esac
8276 ;;
8277
8278 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8279 # PIC is the default for these OSes.
8280 ;;
8281
8282 mingw* | cygwin* | pw32* | os2* | cegcc*)
8283 # This hack is so that the source file can tell whether it is being
8284 # built for inclusion in a dll (and should export symbols for example).
8285 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8286 # (--disable-auto-import) libraries
8287 lt_prog_compiler_pic='-DDLL_EXPORT'
8288 ;;
8289
8290 darwin* | rhapsody*)
8291 # PIC is the default on this platform
8292 # Common symbols not allowed in MH_DYLIB files
8293 lt_prog_compiler_pic='-fno-common'
8294 ;;
8295
8296 haiku*)
8297 # PIC is the default for Haiku.
8298 # The "-static" flag exists, but is broken.
8299 lt_prog_compiler_static=
8300 ;;
8301
8302 hpux*)
8303 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8304 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8305 # sets the default TLS model and affects inlining.
8306 case $host_cpu in
8307 hppa*64*)
8308 # +Z the default
8309 ;;
8310 *)
8311 lt_prog_compiler_pic='-fPIC'
8312 ;;
8313 esac
8314 ;;
8315
8316 interix[3-9]*)
8317 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8318 # Instead, we relocate shared libraries at runtime.
8319 ;;
8320
8321 msdosdjgpp*)
8322 # Just because we use GCC doesn't mean we suddenly get shared libraries
8323 # on systems that don't support them.
8324 lt_prog_compiler_can_build_shared=no
8325 enable_shared=no
8326 ;;
8327
8328 *nto* | *qnx*)
8329 # QNX uses GNU C++, but need to define -shared option too, otherwise
8330 # it will coredump.
8331 lt_prog_compiler_pic='-fPIC -shared'
8332 ;;
8333
8334 sysv4*MP*)
8335 if test -d /usr/nec; then
8336 lt_prog_compiler_pic=-Kconform_pic
8337 fi
8338 ;;
8339
8340 *)
8341 lt_prog_compiler_pic='-fPIC'
8342 ;;
8343 esac
8344
8345 case $cc_basename in
8346 nvcc*) # Cuda Compiler Driver 2.2
8347 lt_prog_compiler_wl='-Xlinker '
8348 lt_prog_compiler_pic='-Xcompiler -fPIC'
8349 ;;
8350 esac
8351 else
8352 # PORTME Check for flag to pass linker flags through the system compiler.
8353 case $host_os in
8354 aix*)
8355 lt_prog_compiler_wl='-Wl,'
8356 if test "$host_cpu" = ia64; then
8357 # AIX 5 now supports IA64 processor
8358 lt_prog_compiler_static='-Bstatic'
8359 else
8360 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8361 fi
8362 ;;
8363
8364 mingw* | cygwin* | pw32* | os2* | cegcc*)
8365 # This hack is so that the source file can tell whether it is being
8366 # built for inclusion in a dll (and should export symbols for example).
8367 lt_prog_compiler_pic='-DDLL_EXPORT'
8368 ;;
8369
8370 hpux9* | hpux10* | hpux11*)
8371 lt_prog_compiler_wl='-Wl,'
8372 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8373 # not for PA HP-UX.
8374 case $host_cpu in
8375 hppa*64*|ia64*)
8376 # +Z the default
8377 ;;
8378 *)
8379 lt_prog_compiler_pic='+Z'
8380 ;;
8381 esac
8382 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8383 lt_prog_compiler_static='${wl}-a ${wl}archive'
8384 ;;
8385
8386 irix5* | irix6* | nonstopux*)
8387 lt_prog_compiler_wl='-Wl,'
8388 # PIC (with -KPIC) is the default.
8389 lt_prog_compiler_static='-non_shared'
8390 ;;
8391
8392 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8393 case $cc_basename in
8394 # old Intel for x86_64 which still supported -KPIC.
8395 ecc*)
8396 lt_prog_compiler_wl='-Wl,'
8397 lt_prog_compiler_pic='-KPIC'
8398 lt_prog_compiler_static='-static'
8399 ;;
8400 # icc used to be incompatible with GCC.
8401 # ICC 10 doesn't accept -KPIC any more.
8402 icc* | ifort*)
8403 lt_prog_compiler_wl='-Wl,'
8404 lt_prog_compiler_pic='-fPIC'
8405 lt_prog_compiler_static='-static'
8406 ;;
8407 # Lahey Fortran 8.1.
8408 lf95*)
8409 lt_prog_compiler_wl='-Wl,'
8410 lt_prog_compiler_pic='--shared'
8411 lt_prog_compiler_static='--static'
8412 ;;
8413 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8414 # Portland Group compilers (*not* the Pentium gcc compiler,
8415 # which looks to be a dead project)
8416 lt_prog_compiler_wl='-Wl,'
8417 lt_prog_compiler_pic='-fpic'
8418 lt_prog_compiler_static='-Bstatic'
8419 ;;
8420 ccc*)
8421 lt_prog_compiler_wl='-Wl,'
8422 # All Alpha code is PIC.
8423 lt_prog_compiler_static='-non_shared'
8424 ;;
8425 xl* | bgxl* | bgf* | mpixl*)
8426 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8427 lt_prog_compiler_wl='-Wl,'
8428 lt_prog_compiler_pic='-qpic'
8429 lt_prog_compiler_static='-qstaticlink'
8430 ;;
8431 *)
8432 case `$CC -V 2>&1 | sed 5q` in
8433 *Sun\ F* | *Sun*Fortran*)
8434 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8435 lt_prog_compiler_pic='-KPIC'
8436 lt_prog_compiler_static='-Bstatic'
8437 lt_prog_compiler_wl=''
8438 ;;
8439 *Sun\ C*)
8440 # Sun C 5.9
8441 lt_prog_compiler_pic='-KPIC'
8442 lt_prog_compiler_static='-Bstatic'
8443 lt_prog_compiler_wl='-Wl,'
8444 ;;
8445 esac
8446 ;;
8447 esac
8448 ;;
8449
8450 newsos6)
8451 lt_prog_compiler_pic='-KPIC'
8452 lt_prog_compiler_static='-Bstatic'
8453 ;;
8454
8455 *nto* | *qnx*)
8456 # QNX uses GNU C++, but need to define -shared option too, otherwise
8457 # it will coredump.
8458 lt_prog_compiler_pic='-fPIC -shared'
8459 ;;
8460
8461 osf3* | osf4* | osf5*)
8462 lt_prog_compiler_wl='-Wl,'
8463 # All OSF/1 code is PIC.
8464 lt_prog_compiler_static='-non_shared'
8465 ;;
8466
8467 rdos*)
8468 lt_prog_compiler_static='-non_shared'
8469 ;;
8470
8471 solaris*)
8472 lt_prog_compiler_pic='-KPIC'
8473 lt_prog_compiler_static='-Bstatic'
8474 case $cc_basename in
8475 f77* | f90* | f95*)
8476 lt_prog_compiler_wl='-Qoption ld ';;
8477 *)
8478 lt_prog_compiler_wl='-Wl,';;
8479 esac
8480 ;;
8481
8482 sunos4*)
8483 lt_prog_compiler_wl='-Qoption ld '
8484 lt_prog_compiler_pic='-PIC'
8485 lt_prog_compiler_static='-Bstatic'
8486 ;;
8487
8488 sysv4 | sysv4.2uw2* | sysv4.3*)
8489 lt_prog_compiler_wl='-Wl,'
8490 lt_prog_compiler_pic='-KPIC'
8491 lt_prog_compiler_static='-Bstatic'
8492 ;;
8493
8494 sysv4*MP*)
8495 if test -d /usr/nec ;then
8496 lt_prog_compiler_pic='-Kconform_pic'
8497 lt_prog_compiler_static='-Bstatic'
8498 fi
8499 ;;
8500
8501 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8502 lt_prog_compiler_wl='-Wl,'
8503 lt_prog_compiler_pic='-KPIC'
8504 lt_prog_compiler_static='-Bstatic'
8505 ;;
8506
8507 unicos*)
8508 lt_prog_compiler_wl='-Wl,'
8509 lt_prog_compiler_can_build_shared=no
8510 ;;
8511
8512 uts4*)
8513 lt_prog_compiler_pic='-pic'
8514 lt_prog_compiler_static='-Bstatic'
8515 ;;
8516
8517 *)
8518 lt_prog_compiler_can_build_shared=no
8519 ;;
8520 esac
8521 fi
8522
8523case $host_os in
8524 # For platforms which do not support PIC, -DPIC is meaningless:
8525 *djgpp*)
8526 lt_prog_compiler_pic=
8527 ;;
8528 *)
8529 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8530 ;;
8531esac
8532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8533$as_echo "$lt_prog_compiler_pic" >&6; }
8534
8535
8536
8537
8538
8539
8540#
8541# Check to make sure the PIC flag actually works.
8542#
8543if test -n "$lt_prog_compiler_pic"; then
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8545$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8546if ${lt_cv_prog_compiler_pic_works+:} false; then :
8547 $as_echo_n "(cached) " >&6
8548else
8549 lt_cv_prog_compiler_pic_works=no
8550 ac_outfile=conftest.$ac_objext
8551 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8552 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8553 # Insert the option either (1) after the last *FLAGS variable, or
8554 # (2) before a word containing "conftest.", or (3) at the end.
8555 # Note that $ac_compile itself does not contain backslashes and begins
8556 # with a dollar sign (not a hyphen), so the echo should work correctly.
8557 # The option is referenced via a variable to avoid confusing sed.
8558 lt_compile=`echo "$ac_compile" | $SED \
8559 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8560 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8561 -e 's:$: $lt_compiler_flag:'`
8562 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8563 (eval "$lt_compile" 2>conftest.err)
8564 ac_status=$?
8565 cat conftest.err >&5
8566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567 if (exit $ac_status) && test -s "$ac_outfile"; then
8568 # The compiler can only warn and ignore the option if not recognized
8569 # So say no if there are warnings other than the usual output.
8570 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8571 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8572 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8573 lt_cv_prog_compiler_pic_works=yes
8574 fi
8575 fi
8576 $RM conftest*
8577
8578fi
8579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8580$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8581
8582if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8583 case $lt_prog_compiler_pic in
8584 "" | " "*) ;;
8585 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8586 esac
8587else
8588 lt_prog_compiler_pic=
8589 lt_prog_compiler_can_build_shared=no
8590fi
8591
8592fi
8593
8594
8595
8596
8597
8598
8599#
8600# Check to make sure the static flag actually works.
8601#
8602wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8604$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8605if ${lt_cv_prog_compiler_static_works+:} false; then :
8606 $as_echo_n "(cached) " >&6
8607else
8608 lt_cv_prog_compiler_static_works=no
8609 save_LDFLAGS="$LDFLAGS"
8610 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8611 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8612 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8613 # The linker can only warn and ignore the option if not recognized
8614 # So say no if there are warnings
8615 if test -s conftest.err; then
8616 # Append any errors to the config.log.
8617 cat conftest.err 1>&5
8618 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8619 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8620 if diff conftest.exp conftest.er2 >/dev/null; then
8621 lt_cv_prog_compiler_static_works=yes
8622 fi
8623 else
8624 lt_cv_prog_compiler_static_works=yes
8625 fi
8626 fi
8627 $RM -r conftest*
8628 LDFLAGS="$save_LDFLAGS"
8629
8630fi
8631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8632$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8633
8634if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8635 :
8636else
8637 lt_prog_compiler_static=
8638fi
8639
8640
8641
8642
8643
8644
8645
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8647$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8648if ${lt_cv_prog_compiler_c_o+:} false; then :
8649 $as_echo_n "(cached) " >&6
8650else
8651 lt_cv_prog_compiler_c_o=no
8652 $RM -r conftest 2>/dev/null
8653 mkdir conftest
8654 cd conftest
8655 mkdir out
8656 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8657
8658 lt_compiler_flag="-o out/conftest2.$ac_objext"
8659 # Insert the option either (1) after the last *FLAGS variable, or
8660 # (2) before a word containing "conftest.", or (3) at the end.
8661 # Note that $ac_compile itself does not contain backslashes and begins
8662 # with a dollar sign (not a hyphen), so the echo should work correctly.
8663 lt_compile=`echo "$ac_compile" | $SED \
8664 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8665 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8666 -e 's:$: $lt_compiler_flag:'`
8667 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8668 (eval "$lt_compile" 2>out/conftest.err)
8669 ac_status=$?
8670 cat out/conftest.err >&5
8671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8673 then
8674 # The compiler can only warn and ignore the option if not recognized
8675 # So say no if there are warnings
8676 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8677 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8678 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8679 lt_cv_prog_compiler_c_o=yes
8680 fi
8681 fi
8682 chmod u+w . 2>&5
8683 $RM conftest*
8684 # SGI C++ compiler will create directory out/ii_files/ for
8685 # template instantiation
8686 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8687 $RM out/* && rmdir out
8688 cd ..
8689 $RM -r conftest
8690 $RM conftest*
8691
8692fi
8693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8694$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8695
8696
8697
8698
8699
8700
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8702$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8703if ${lt_cv_prog_compiler_c_o+:} false; then :
8704 $as_echo_n "(cached) " >&6
8705else
8706 lt_cv_prog_compiler_c_o=no
8707 $RM -r conftest 2>/dev/null
8708 mkdir conftest
8709 cd conftest
8710 mkdir out
8711 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8712
8713 lt_compiler_flag="-o out/conftest2.$ac_objext"
8714 # Insert the option either (1) after the last *FLAGS variable, or
8715 # (2) before a word containing "conftest.", or (3) at the end.
8716 # Note that $ac_compile itself does not contain backslashes and begins
8717 # with a dollar sign (not a hyphen), so the echo should work correctly.
8718 lt_compile=`echo "$ac_compile" | $SED \
8719 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8720 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8721 -e 's:$: $lt_compiler_flag:'`
8722 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8723 (eval "$lt_compile" 2>out/conftest.err)
8724 ac_status=$?
8725 cat out/conftest.err >&5
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8728 then
8729 # The compiler can only warn and ignore the option if not recognized
8730 # So say no if there are warnings
8731 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8732 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8733 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8734 lt_cv_prog_compiler_c_o=yes
8735 fi
8736 fi
8737 chmod u+w . 2>&5
8738 $RM conftest*
8739 # SGI C++ compiler will create directory out/ii_files/ for
8740 # template instantiation
8741 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8742 $RM out/* && rmdir out
8743 cd ..
8744 $RM -r conftest
8745 $RM conftest*
8746
8747fi
8748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8749$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8750
8751
8752
8753
8754hard_links="nottested"
8755if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8756 # do not overwrite the value of need_locks provided by the user
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8758$as_echo_n "checking if we can lock with hard links... " >&6; }
8759 hard_links=yes
8760 $RM conftest*
8761 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8762 touch conftest.a
8763 ln conftest.a conftest.b 2>&5 || hard_links=no
8764 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8766$as_echo "$hard_links" >&6; }
8767 if test "$hard_links" = no; then
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8769$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8770 need_locks=warn
8771 fi
8772else
8773 need_locks=no
8774fi
8775
8776
8777
8778
8779
8780
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8782$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8783
8784 runpath_var=
8785 allow_undefined_flag=
8786 always_export_symbols=no
8787 archive_cmds=
8788 archive_expsym_cmds=
8789 compiler_needs_object=no
8790 enable_shared_with_static_runtimes=no
8791 export_dynamic_flag_spec=
8792 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8793 hardcode_automatic=no
8794 hardcode_direct=no
8795 hardcode_direct_absolute=no
8796 hardcode_libdir_flag_spec=
8797 hardcode_libdir_flag_spec_ld=
8798 hardcode_libdir_separator=
8799 hardcode_minus_L=no
8800 hardcode_shlibpath_var=unsupported
8801 inherit_rpath=no
8802 link_all_deplibs=unknown
8803 module_cmds=
8804 module_expsym_cmds=
8805 old_archive_from_new_cmds=
8806 old_archive_from_expsyms_cmds=
8807 thread_safe_flag_spec=
8808 whole_archive_flag_spec=
8809 # include_expsyms should be a list of space-separated symbols to be *always*
8810 # included in the symbol list
8811 include_expsyms=
8812 # exclude_expsyms can be an extended regexp of symbols to exclude
8813 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8814 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8815 # as well as any symbol that contains `d'.
8816 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8817 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8818 # platforms (ab)use it in PIC code, but their linkers get confused if
8819 # the symbol is explicitly referenced. Since portable code cannot
8820 # rely on this symbol name, it's probably fine to never include it in
8821 # preloaded symbol tables.
8822 # Exclude shared library initialization/finalization symbols.
8823 extract_expsyms_cmds=
8824
8825 case $host_os in
8826 cygwin* | mingw* | pw32* | cegcc*)
8827 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8828 # When not using gcc, we currently assume that we are using
8829 # Microsoft Visual C++.
8830 if test "$GCC" != yes; then
8831 with_gnu_ld=no
8832 fi
8833 ;;
8834 interix*)
8835 # we just hope/assume this is gcc and not c89 (= MSVC++)
8836 with_gnu_ld=yes
8837 ;;
8838 openbsd*)
8839 with_gnu_ld=no
8840 ;;
8841 esac
8842
8843 ld_shlibs=yes
8844
8845 # On some targets, GNU ld is compatible enough with the native linker
8846 # that we're better off using the native interface for both.
8847 lt_use_gnu_ld_interface=no
8848 if test "$with_gnu_ld" = yes; then
8849 case $host_os in
8850 aix*)
8851 # The AIX port of GNU ld has always aspired to compatibility
8852 # with the native linker. However, as the warning in the GNU ld
8853 # block says, versions before 2.19.5* couldn't really create working
8854 # shared libraries, regardless of the interface used.
8855 case `$LD -v 2>&1` in
8856 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8857 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8858 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8859 *)
8860 lt_use_gnu_ld_interface=yes
8861 ;;
8862 esac
8863 ;;
8864 *)
8865 lt_use_gnu_ld_interface=yes
8866 ;;
8867 esac
8868 fi
8869
8870 if test "$lt_use_gnu_ld_interface" = yes; then
8871 # If archive_cmds runs LD, not CC, wlarc should be empty
8872 wlarc='${wl}'
8873
8874 # Set some defaults for GNU ld with shared library support. These
8875 # are reset later if shared libraries are not supported. Putting them
8876 # here allows them to be overridden if necessary.
8877 runpath_var=LD_RUN_PATH
8878 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8879 export_dynamic_flag_spec='${wl}--export-dynamic'
8880 # ancient GNU ld didn't support --whole-archive et. al.
8881 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8882 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8883 else
8884 whole_archive_flag_spec=
8885 fi
8886 supports_anon_versioning=no
8887 case `$LD -v 2>&1` in
8888 *GNU\ gold*) supports_anon_versioning=yes ;;
8889 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8890 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8891 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8892 *\ 2.11.*) ;; # other 2.11 versions
8893 *) supports_anon_versioning=yes ;;
8894 esac
8895
8896 # See if GNU ld supports shared libraries.
8897 case $host_os in
8898 aix[3-9]*)
8899 # On AIX/PPC, the GNU linker is very broken
8900 if test "$host_cpu" != ia64; then
8901 ld_shlibs=no
8902 cat <<_LT_EOF 1>&2
8903
8904*** Warning: the GNU linker, at least up to release 2.19, is reported
8905*** to be unable to reliably create shared libraries on AIX.
8906*** Therefore, libtool is disabling shared libraries support. If you
8907*** really care for shared libraries, you may want to install binutils
8908*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8909*** You will then need to restart the configuration process.
8910
8911_LT_EOF
8912 fi
8913 ;;
8914
8915 amigaos*)
8916 case $host_cpu in
8917 powerpc)
8918 # see comment about AmigaOS4 .so support
8919 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8920 archive_expsym_cmds=''
8921 ;;
8922 m68k)
8923 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)'
8924 hardcode_libdir_flag_spec='-L$libdir'
8925 hardcode_minus_L=yes
8926 ;;
8927 esac
8928 ;;
8929
8930 beos*)
8931 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8932 allow_undefined_flag=unsupported
8933 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8934 # support --undefined. This deserves some investigation. FIXME
8935 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8936 else
8937 ld_shlibs=no
8938 fi
8939 ;;
8940
8941 cygwin* | mingw* | pw32* | cegcc*)
8942 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8943 # as there is no search path for DLLs.
8944 hardcode_libdir_flag_spec='-L$libdir'
8945 export_dynamic_flag_spec='${wl}--export-all-symbols'
8946 allow_undefined_flag=unsupported
8947 always_export_symbols=no
8948 enable_shared_with_static_runtimes=yes
8949 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8950
8951 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8952 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8953 # If the export-symbols file already is a .def file (1st line
8954 # is EXPORTS), use it as is; otherwise, prepend...
8955 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8956 cp $export_symbols $output_objdir/$soname.def;
8957 else
8958 echo EXPORTS > $output_objdir/$soname.def;
8959 cat $export_symbols >> $output_objdir/$soname.def;
8960 fi~
8961 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8962 else
8963 ld_shlibs=no
8964 fi
8965 ;;
8966
8967 haiku*)
8968 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8969 link_all_deplibs=yes
8970 ;;
8971
8972 interix[3-9]*)
8973 hardcode_direct=no
8974 hardcode_shlibpath_var=no
8975 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8976 export_dynamic_flag_spec='${wl}-E'
8977 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8978 # Instead, shared libraries are loaded at an image base (0x10000000 by
8979 # default) and relocated if they conflict, which is a slow very memory
8980 # consuming and fragmenting process. To avoid this, we pick a random,
8981 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8982 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8983 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8984 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'
8985 ;;
8986
8987 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8988 tmp_diet=no
8989 if test "$host_os" = linux-dietlibc; then
8990 case $cc_basename in
8991 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8992 esac
8993 fi
8994 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8995 && test "$tmp_diet" = no
8996 then
8997 tmp_addflag=' $pic_flag'
8998 tmp_sharedflag='-shared'
8999 case $cc_basename,$host_cpu in
9000 pgcc*) # Portland Group C compiler
9001 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'
9002 tmp_addflag=' $pic_flag'
9003 ;;
9004 pgf77* | pgf90* | pgf95* | pgfortran*)
9005 # Portland Group f77 and f90 compilers
9006 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'
9007 tmp_addflag=' $pic_flag -Mnomain' ;;
9008 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9009 tmp_addflag=' -i_dynamic' ;;
9010 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9011 tmp_addflag=' -i_dynamic -nofor_main' ;;
9012 ifc* | ifort*) # Intel Fortran compiler
9013 tmp_addflag=' -nofor_main' ;;
9014 lf95*) # Lahey Fortran 8.1
9015 whole_archive_flag_spec=
9016 tmp_sharedflag='--shared' ;;
9017 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9018 tmp_sharedflag='-qmkshrobj'
9019 tmp_addflag= ;;
9020 nvcc*) # Cuda Compiler Driver 2.2
9021 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'
9022 compiler_needs_object=yes
9023 ;;
9024 esac
9025 case `$CC -V 2>&1 | sed 5q` in
9026 *Sun\ C*) # Sun C 5.9
9027 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'
9028 compiler_needs_object=yes
9029 tmp_sharedflag='-G' ;;
9030 *Sun\ F*) # Sun Fortran 8.3
9031 tmp_sharedflag='-G' ;;
9032 esac
9033 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9034
9035 if test "x$supports_anon_versioning" = xyes; then
9036 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9037 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9038 echo "local: *; };" >> $output_objdir/$libname.ver~
9039 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9040 fi
9041
9042 case $cc_basename in
9043 xlf* | bgf* | bgxlf* | mpixlf*)
9044 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9045 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9046 hardcode_libdir_flag_spec=
9047 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9048 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9049 if test "x$supports_anon_versioning" = xyes; then
9050 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9051 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9052 echo "local: *; };" >> $output_objdir/$libname.ver~
9053 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9054 fi
9055 ;;
9056 esac
9057 else
9058 ld_shlibs=no
9059 fi
9060 ;;
9061
9062 netbsd*)
9063 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9064 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9065 wlarc=
9066 else
9067 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9068 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9069 fi
9070 ;;
9071
9072 solaris*)
9073 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9074 ld_shlibs=no
9075 cat <<_LT_EOF 1>&2
9076
9077*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9078*** create shared libraries on Solaris systems. Therefore, libtool
9079*** is disabling shared libraries support. We urge you to upgrade GNU
9080*** binutils to release 2.9.1 or newer. Another option is to modify
9081*** your PATH or compiler configuration so that the native linker is
9082*** used, and then restart.
9083
9084_LT_EOF
9085 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9086 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9087 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9088 else
9089 ld_shlibs=no
9090 fi
9091 ;;
9092
9093 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9094 case `$LD -v 2>&1` in
9095 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9096 ld_shlibs=no
9097 cat <<_LT_EOF 1>&2
9098
9099*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9100*** reliably create shared libraries on SCO systems. Therefore, libtool
9101*** is disabling shared libraries support. We urge you to upgrade GNU
9102*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9103*** your PATH or compiler configuration so that the native linker is
9104*** used, and then restart.
9105
9106_LT_EOF
9107 ;;
9108 *)
9109 # For security reasons, it is highly recommended that you always
9110 # use absolute paths for naming shared libraries, and exclude the
9111 # DT_RUNPATH tag from executables and libraries. But doing so
9112 # requires that you compile everything twice, which is a pain.
9113 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9114 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9115 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9116 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9117 else
9118 ld_shlibs=no
9119 fi
9120 ;;
9121 esac
9122 ;;
9123
9124 sunos4*)
9125 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9126 wlarc=
9127 hardcode_direct=yes
9128 hardcode_shlibpath_var=no
9129 ;;
9130
9131 *)
9132 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9133 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9134 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9135 else
9136 ld_shlibs=no
9137 fi
9138 ;;
9139 esac
9140
9141 if test "$ld_shlibs" = no; then
9142 runpath_var=
9143 hardcode_libdir_flag_spec=
9144 export_dynamic_flag_spec=
9145 whole_archive_flag_spec=
9146 fi
9147 else
9148 # PORTME fill in a description of your system's linker (not GNU ld)
9149 case $host_os in
9150 aix3*)
9151 allow_undefined_flag=unsupported
9152 always_export_symbols=yes
9153 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'
9154 # Note: this linker hardcodes the directories in LIBPATH if there
9155 # are no directories specified by -L.
9156 hardcode_minus_L=yes
9157 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9158 # Neither direct hardcoding nor static linking is supported with a
9159 # broken collect2.
9160 hardcode_direct=unsupported
9161 fi
9162 ;;
9163
9164 aix[4-9]*)
9165 if test "$host_cpu" = ia64; then
9166 # On IA64, the linker does run time linking by default, so we don't
9167 # have to do anything special.
9168 aix_use_runtimelinking=no
9169 exp_sym_flag='-Bexport'
9170 no_entry_flag=""
9171 else
9172 # If we're using GNU nm, then we don't want the "-C" option.
9173 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9174 # Also, AIX nm treats weak defined symbols like other global
9175 # defined symbols, whereas GNU nm marks them as "W".
9176 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9177 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'
9178 else
9179 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9180 fi
9181 aix_use_runtimelinking=no
9182
9183 # Test if we are trying to use run time linking or normal
9184 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9185 # need to do runtime linking.
9186 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9187 for ld_flag in $LDFLAGS; do
9188 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9189 aix_use_runtimelinking=yes
9190 break
9191 fi
9192 done
9193 ;;
9194 esac
9195
9196 exp_sym_flag='-bexport'
9197 no_entry_flag='-bnoentry'
9198 fi
9199
9200 # When large executables or shared objects are built, AIX ld can
9201 # have problems creating the table of contents. If linking a library
9202 # or program results in "error TOC overflow" add -mminimal-toc to
9203 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9204 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9205
9206 archive_cmds=''
9207 hardcode_direct=yes
9208 hardcode_direct_absolute=yes
9209 hardcode_libdir_separator=':'
9210 link_all_deplibs=yes
9211 file_list_spec='${wl}-f,'
9212
9213 if test "$GCC" = yes; then
9214 case $host_os in aix4.[012]|aix4.[012].*)
9215 # We only want to do this on AIX 4.2 and lower, the check
9216 # below for broken collect2 doesn't work under 4.3+
9217 collect2name=`${CC} -print-prog-name=collect2`
9218 if test -f "$collect2name" &&
9219 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9220 then
9221 # We have reworked collect2
9222 :
9223 else
9224 # We have old collect2
9225 hardcode_direct=unsupported
9226 # It fails to find uninstalled libraries when the uninstalled
9227 # path is not listed in the libpath. Setting hardcode_minus_L
9228 # to unsupported forces relinking
9229 hardcode_minus_L=yes
9230 hardcode_libdir_flag_spec='-L$libdir'
9231 hardcode_libdir_separator=
9232 fi
9233 ;;
9234 esac
9235 shared_flag='-shared'
9236 if test "$aix_use_runtimelinking" = yes; then
9237 shared_flag="$shared_flag "'${wl}-G'
9238 fi
9239 else
9240 # not using gcc
9241 if test "$host_cpu" = ia64; then
9242 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9243 # chokes on -Wl,-G. The following line is correct:
9244 shared_flag='-G'
9245 else
9246 if test "$aix_use_runtimelinking" = yes; then
9247 shared_flag='${wl}-G'
9248 else
9249 shared_flag='${wl}-bM:SRE'
9250 fi
9251 fi
9252 fi
9253
9254 export_dynamic_flag_spec='${wl}-bexpall'
9255 # It seems that -bexpall does not export symbols beginning with
9256 # underscore (_), so it is better to generate a list of symbols to export.
9257 always_export_symbols=yes
9258 if test "$aix_use_runtimelinking" = yes; then
9259 # Warning - without using the other runtime loading flags (-brtl),
9260 # -berok will link without error, but may produce a broken library.
9261 allow_undefined_flag='-berok'
9262 # Determine the default libpath from the value encoded in an
9263 # empty executable.
9264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9265/* end confdefs.h. */
9266
9267int
9268main ()
9269{
9270
9271 ;
9272 return 0;
9273}
9274_ACEOF
9275if ac_fn_c_try_link "$LINENO"; then :
9276
9277lt_aix_libpath_sed='
9278 /Import File Strings/,/^$/ {
9279 /^0/ {
9280 s/^0 *\(.*\)$/\1/
9281 p
9282 }
9283 }'
9284aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9285# Check for a 64-bit object if we didn't find anything.
9286if test -z "$aix_libpath"; then
9287 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9288fi
9289fi
9290rm -f core conftest.err conftest.$ac_objext \
9291 conftest$ac_exeext conftest.$ac_ext
9292if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9293
9294 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9295 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"
9296 else
9297 if test "$host_cpu" = ia64; then
9298 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9299 allow_undefined_flag="-z nodefs"
9300 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"
9301 else
9302 # Determine the default libpath from the value encoded in an
9303 # empty executable.
9304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9305/* end confdefs.h. */
9306
9307int
9308main ()
9309{
9310
9311 ;
9312 return 0;
9313}
9314_ACEOF
9315if ac_fn_c_try_link "$LINENO"; then :
9316
9317lt_aix_libpath_sed='
9318 /Import File Strings/,/^$/ {
9319 /^0/ {
9320 s/^0 *\(.*\)$/\1/
9321 p
9322 }
9323 }'
9324aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9325# Check for a 64-bit object if we didn't find anything.
9326if test -z "$aix_libpath"; then
9327 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9328fi
9329fi
9330rm -f core conftest.err conftest.$ac_objext \
9331 conftest$ac_exeext conftest.$ac_ext
9332if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9333
9334 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9335 # Warning - without using the other run time loading flags,
9336 # -berok will link without error, but may produce a broken library.
9337 no_undefined_flag=' ${wl}-bernotok'
9338 allow_undefined_flag=' ${wl}-berok'
9339 if test "$with_gnu_ld" = yes; then
9340 # We only use this code for GNU lds that support --whole-archive.
9341 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9342 else
9343 # Exported symbols can be pulled into shared objects from archives
9344 whole_archive_flag_spec='$convenience'
9345 fi
9346 archive_cmds_need_lc=yes
9347 # This is similar to how AIX traditionally builds its shared libraries.
9348 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'
9349 fi
9350 fi
9351 ;;
9352
9353 amigaos*)
9354 case $host_cpu in
9355 powerpc)
9356 # see comment about AmigaOS4 .so support
9357 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9358 archive_expsym_cmds=''
9359 ;;
9360 m68k)
9361 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)'
9362 hardcode_libdir_flag_spec='-L$libdir'
9363 hardcode_minus_L=yes
9364 ;;
9365 esac
9366 ;;
9367
9368 bsdi[45]*)
9369 export_dynamic_flag_spec=-rdynamic
9370 ;;
9371
9372 cygwin* | mingw* | pw32* | cegcc*)
9373 # When not using gcc, we currently assume that we are using
9374 # Microsoft Visual C++.
9375 # hardcode_libdir_flag_spec is actually meaningless, as there is
9376 # no search path for DLLs.
9377 hardcode_libdir_flag_spec=' '
9378 allow_undefined_flag=unsupported
9379 # Tell ltmain to make .lib files, not .a files.
9380 libext=lib
9381 # Tell ltmain to make .dll files, not .so files.
9382 shrext_cmds=".dll"
9383 # FIXME: Setting linknames here is a bad hack.
9384 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9385 # The linker will automatically build a .lib file if we build a DLL.
9386 old_archive_from_new_cmds='true'
9387 # FIXME: Should let the user specify the lib program.
9388 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9389 fix_srcfile_path='`cygpath -w "$srcfile"`'
9390 enable_shared_with_static_runtimes=yes
9391 ;;
9392
9393 darwin* | rhapsody*)
9394
9395
9396 archive_cmds_need_lc=no
9397 hardcode_direct=no
9398 hardcode_automatic=yes
9399 hardcode_shlibpath_var=unsupported
9400 if test "$lt_cv_ld_force_load" = "yes"; then
9401 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\"`'
9402 else
9403 whole_archive_flag_spec=''
9404 fi
9405 link_all_deplibs=yes
9406 allow_undefined_flag="$_lt_dar_allow_undefined"
9407 case $cc_basename in
9408 ifort*) _lt_dar_can_shared=yes ;;
9409 *) _lt_dar_can_shared=$GCC ;;
9410 esac
9411 if test "$_lt_dar_can_shared" = "yes"; then
9412 output_verbose_link_cmd=func_echo_all
9413 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9414 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9415 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}"
9416 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}"
9417
9418 else
9419 ld_shlibs=no
9420 fi
9421
9422 ;;
9423
9424 dgux*)
9425 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9426 hardcode_libdir_flag_spec='-L$libdir'
9427 hardcode_shlibpath_var=no
9428 ;;
9429
9430 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9431 # support. Future versions do this automatically, but an explicit c++rt0.o
9432 # does not break anything, and helps significantly (at the cost of a little
9433 # extra space).
9434 freebsd2.2*)
9435 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9436 hardcode_libdir_flag_spec='-R$libdir'
9437 hardcode_direct=yes
9438 hardcode_shlibpath_var=no
9439 ;;
9440
9441 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9442 freebsd2.*)
9443 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9444 hardcode_direct=yes
9445 hardcode_minus_L=yes
9446 hardcode_shlibpath_var=no
9447 ;;
9448
9449 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9450 freebsd* | dragonfly*)
9451 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9452 hardcode_libdir_flag_spec='-R$libdir'
9453 hardcode_direct=yes
9454 hardcode_shlibpath_var=no
9455 ;;
9456
9457 hpux9*)
9458 if test "$GCC" = yes; then
9459 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'
9460 else
9461 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'
9462 fi
9463 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9464 hardcode_libdir_separator=:
9465 hardcode_direct=yes
9466
9467 # hardcode_minus_L: Not really in the search PATH,
9468 # but as the default location of the library.
9469 hardcode_minus_L=yes
9470 export_dynamic_flag_spec='${wl}-E'
9471 ;;
9472
9473 hpux10*)
9474 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9475 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9476 else
9477 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9478 fi
9479 if test "$with_gnu_ld" = no; then
9480 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9481 hardcode_libdir_flag_spec_ld='+b $libdir'
9482 hardcode_libdir_separator=:
9483 hardcode_direct=yes
9484 hardcode_direct_absolute=yes
9485 export_dynamic_flag_spec='${wl}-E'
9486 # hardcode_minus_L: Not really in the search PATH,
9487 # but as the default location of the library.
9488 hardcode_minus_L=yes
9489 fi
9490 ;;
9491
9492 hpux11*)
9493 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9494 case $host_cpu in
9495 hppa*64*)
9496 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9497 ;;
9498 ia64*)
9499 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9500 ;;
9501 *)
9502 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9503 ;;
9504 esac
9505 else
9506 case $host_cpu in
9507 hppa*64*)
9508 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9509 ;;
9510 ia64*)
9511 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9512 ;;
9513 *)
9514
9515 # Older versions of the 11.00 compiler do not understand -b yet
9516 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9518$as_echo_n "checking if $CC understands -b... " >&6; }
9519if ${lt_cv_prog_compiler__b+:} false; then :
9520 $as_echo_n "(cached) " >&6
9521else
9522 lt_cv_prog_compiler__b=no
9523 save_LDFLAGS="$LDFLAGS"
9524 LDFLAGS="$LDFLAGS -b"
9525 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9526 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9527 # The linker can only warn and ignore the option if not recognized
9528 # So say no if there are warnings
9529 if test -s conftest.err; then
9530 # Append any errors to the config.log.
9531 cat conftest.err 1>&5
9532 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9533 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9534 if diff conftest.exp conftest.er2 >/dev/null; then
9535 lt_cv_prog_compiler__b=yes
9536 fi
9537 else
9538 lt_cv_prog_compiler__b=yes
9539 fi
9540 fi
9541 $RM -r conftest*
9542 LDFLAGS="$save_LDFLAGS"
9543
9544fi
9545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9546$as_echo "$lt_cv_prog_compiler__b" >&6; }
9547
9548if test x"$lt_cv_prog_compiler__b" = xyes; then
9549 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9550else
9551 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9552fi
9553
9554 ;;
9555 esac
9556 fi
9557 if test "$with_gnu_ld" = no; then
9558 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9559 hardcode_libdir_separator=:
9560
9561 case $host_cpu in
9562 hppa*64*|ia64*)
9563 hardcode_direct=no
9564 hardcode_shlibpath_var=no
9565 ;;
9566 *)
9567 hardcode_direct=yes
9568 hardcode_direct_absolute=yes
9569 export_dynamic_flag_spec='${wl}-E'
9570
9571 # hardcode_minus_L: Not really in the search PATH,
9572 # but as the default location of the library.
9573 hardcode_minus_L=yes
9574 ;;
9575 esac
9576 fi
9577 ;;
9578
9579 irix5* | irix6* | nonstopux*)
9580 if test "$GCC" = yes; then
9581 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'
9582 # Try to use the -exported_symbol ld option, if it does not
9583 # work, assume that -exports_file does not work either and
9584 # implicitly export all symbols.
9585 save_LDFLAGS="$LDFLAGS"
9586 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9588/* end confdefs.h. */
9589int foo(void) {}
9590_ACEOF
9591if ac_fn_c_try_link "$LINENO"; then :
9592 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'
9593
9594fi
9595rm -f core conftest.err conftest.$ac_objext \
9596 conftest$ac_exeext conftest.$ac_ext
9597 LDFLAGS="$save_LDFLAGS"
9598 else
9599 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'
9600 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'
9601 fi
9602 archive_cmds_need_lc='no'
9603 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9604 hardcode_libdir_separator=:
9605 inherit_rpath=yes
9606 link_all_deplibs=yes
9607 ;;
9608
9609 netbsd*)
9610 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9611 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9612 else
9613 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9614 fi
9615 hardcode_libdir_flag_spec='-R$libdir'
9616 hardcode_direct=yes
9617 hardcode_shlibpath_var=no
9618 ;;
9619
9620 newsos6)
9621 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9622 hardcode_direct=yes
9623 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9624 hardcode_libdir_separator=:
9625 hardcode_shlibpath_var=no
9626 ;;
9627
9628 *nto* | *qnx*)
9629 ;;
9630
9631 openbsd*)
9632 if test -f /usr/libexec/ld.so; then
9633 hardcode_direct=yes
9634 hardcode_shlibpath_var=no
9635 hardcode_direct_absolute=yes
9636 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9637 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9638 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9639 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9640 export_dynamic_flag_spec='${wl}-E'
9641 else
9642 case $host_os in
9643 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9644 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9645 hardcode_libdir_flag_spec='-R$libdir'
9646 ;;
9647 *)
9648 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9649 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9650 ;;
9651 esac
9652 fi
9653 else
9654 ld_shlibs=no
9655 fi
9656 ;;
9657
9658 os2*)
9659 hardcode_libdir_flag_spec='-L$libdir'
9660 hardcode_minus_L=yes
9661 allow_undefined_flag=unsupported
9662 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'
9663 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9664 ;;
9665
9666 osf3*)
9667 if test "$GCC" = yes; then
9668 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9669 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'
9670 else
9671 allow_undefined_flag=' -expect_unresolved \*'
9672 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'
9673 fi
9674 archive_cmds_need_lc='no'
9675 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9676 hardcode_libdir_separator=:
9677 ;;
9678
9679 osf4* | osf5*) # as osf3* with the addition of -msym flag
9680 if test "$GCC" = yes; then
9681 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9682 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'
9683 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9684 else
9685 allow_undefined_flag=' -expect_unresolved \*'
9686 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'
9687 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~
9688 $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'
9689
9690 # Both c and cxx compiler support -rpath directly
9691 hardcode_libdir_flag_spec='-rpath $libdir'
9692 fi
9693 archive_cmds_need_lc='no'
9694 hardcode_libdir_separator=:
9695 ;;
9696
9697 solaris*)
9698 no_undefined_flag=' -z defs'
9699 if test "$GCC" = yes; then
9700 wlarc='${wl}'
9701 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9702 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9703 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9704 else
9705 case `$CC -V 2>&1` in
9706 *"Compilers 5.0"*)
9707 wlarc=''
9708 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9709 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9710 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9711 ;;
9712 *)
9713 wlarc='${wl}'
9714 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9715 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9716 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9717 ;;
9718 esac
9719 fi
9720 hardcode_libdir_flag_spec='-R$libdir'
9721 hardcode_shlibpath_var=no
9722 case $host_os in
9723 solaris2.[0-5] | solaris2.[0-5].*) ;;
9724 *)
9725 # The compiler driver will combine and reorder linker options,
9726 # but understands `-z linker_flag'. GCC discards it without `$wl',
9727 # but is careful enough not to reorder.
9728 # Supported since Solaris 2.6 (maybe 2.5.1?)
9729 if test "$GCC" = yes; then
9730 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9731 else
9732 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9733 fi
9734 ;;
9735 esac
9736 link_all_deplibs=yes
9737 ;;
9738
9739 sunos4*)
9740 if test "x$host_vendor" = xsequent; then
9741 # Use $CC to link under sequent, because it throws in some extra .o
9742 # files that make .init and .fini sections work.
9743 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9744 else
9745 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9746 fi
9747 hardcode_libdir_flag_spec='-L$libdir'
9748 hardcode_direct=yes
9749 hardcode_minus_L=yes
9750 hardcode_shlibpath_var=no
9751 ;;
9752
9753 sysv4)
9754 case $host_vendor in
9755 sni)
9756 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9757 hardcode_direct=yes # is this really true???
9758 ;;
9759 siemens)
9760 ## LD is ld it makes a PLAMLIB
9761 ## CC just makes a GrossModule.
9762 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9763 reload_cmds='$CC -r -o $output$reload_objs'
9764 hardcode_direct=no
9765 ;;
9766 motorola)
9767 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9768 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9769 ;;
9770 esac
9771 runpath_var='LD_RUN_PATH'
9772 hardcode_shlibpath_var=no
9773 ;;
9774
9775 sysv4.3*)
9776 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9777 hardcode_shlibpath_var=no
9778 export_dynamic_flag_spec='-Bexport'
9779 ;;
9780
9781 sysv4*MP*)
9782 if test -d /usr/nec; then
9783 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9784 hardcode_shlibpath_var=no
9785 runpath_var=LD_RUN_PATH
9786 hardcode_runpath_var=yes
9787 ld_shlibs=yes
9788 fi
9789 ;;
9790
9791 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9792 no_undefined_flag='${wl}-z,text'
9793 archive_cmds_need_lc=no
9794 hardcode_shlibpath_var=no
9795 runpath_var='LD_RUN_PATH'
9796
9797 if test "$GCC" = yes; then
9798 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9799 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9800 else
9801 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9802 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9803 fi
9804 ;;
9805
9806 sysv5* | sco3.2v5* | sco5v6*)
9807 # Note: We can NOT use -z defs as we might desire, because we do not
9808 # link with -lc, and that would cause any symbols used from libc to
9809 # always be unresolved, which means just about no library would
9810 # ever link correctly. If we're not using GNU ld we use -z text
9811 # though, which does catch some bad symbols but isn't as heavy-handed
9812 # as -z defs.
9813 no_undefined_flag='${wl}-z,text'
9814 allow_undefined_flag='${wl}-z,nodefs'
9815 archive_cmds_need_lc=no
9816 hardcode_shlibpath_var=no
9817 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9818 hardcode_libdir_separator=':'
9819 link_all_deplibs=yes
9820 export_dynamic_flag_spec='${wl}-Bexport'
9821 runpath_var='LD_RUN_PATH'
9822
9823 if test "$GCC" = yes; then
9824 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9825 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9826 else
9827 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9828 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9829 fi
9830 ;;
9831
9832 uts4*)
9833 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9834 hardcode_libdir_flag_spec='-L$libdir'
9835 hardcode_shlibpath_var=no
9836 ;;
9837
9838 *)
9839 ld_shlibs=no
9840 ;;
9841 esac
9842
9843 if test x$host_vendor = xsni; then
9844 case $host in
9845 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9846 export_dynamic_flag_spec='${wl}-Blargedynsym'
9847 ;;
9848 esac
9849 fi
9850 fi
9851
9852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9853$as_echo "$ld_shlibs" >&6; }
9854test "$ld_shlibs" = no && can_build_shared=no
9855
9856with_gnu_ld=$with_gnu_ld
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872#
9873# Do we need to explicitly link libc?
9874#
9875case "x$archive_cmds_need_lc" in
9876x|xyes)
9877 # Assume -lc should be added
9878 archive_cmds_need_lc=yes
9879
9880 if test "$enable_shared" = yes && test "$GCC" = yes; then
9881 case $archive_cmds in
9882 *'~'*)
9883 # FIXME: we may have to deal with multi-command sequences.
9884 ;;
9885 '$CC '*)
9886 # Test whether the compiler implicitly links with -lc since on some
9887 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9888 # to ld, don't add -lc before -lgcc.
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9890$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9891if ${lt_cv_archive_cmds_need_lc+:} false; then :
9892 $as_echo_n "(cached) " >&6
9893else
9894 $RM conftest*
9895 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9896
9897 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9898 (eval $ac_compile) 2>&5
9899 ac_status=$?
9900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9901 test $ac_status = 0; } 2>conftest.err; then
9902 soname=conftest
9903 lib=conftest
9904 libobjs=conftest.$ac_objext
9905 deplibs=
9906 wl=$lt_prog_compiler_wl
9907 pic_flag=$lt_prog_compiler_pic
9908 compiler_flags=-v
9909 linker_flags=-v
9910 verstring=
9911 output_objdir=.
9912 libname=conftest
9913 lt_save_allow_undefined_flag=$allow_undefined_flag
9914 allow_undefined_flag=
9915 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9916 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9917 ac_status=$?
9918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9919 test $ac_status = 0; }
9920 then
9921 lt_cv_archive_cmds_need_lc=no
9922 else
9923 lt_cv_archive_cmds_need_lc=yes
9924 fi
9925 allow_undefined_flag=$lt_save_allow_undefined_flag
9926 else
9927 cat conftest.err 1>&5
9928 fi
9929 $RM conftest*
9930
9931fi
9932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9933$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9934 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9935 ;;
9936 esac
9937 fi
9938 ;;
9939esac
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10098$as_echo_n "checking dynamic linker characteristics... " >&6; }
10099
10100if test "$GCC" = yes; then
10101 case $host_os in
10102 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10103 *) lt_awk_arg="/^libraries:/" ;;
10104 esac
10105 case $host_os in
10106 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10107 *) lt_sed_strip_eq="s,=/,/,g" ;;
10108 esac
10109 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10110 case $lt_search_path_spec in
10111 *\;*)
10112 # if the path contains ";" then we assume it to be the separator
10113 # otherwise default to the standard path separator (i.e. ":") - it is
10114 # assumed that no part of a normal pathname contains ";" but that should
10115 # okay in the real world where ";" in dirpaths is itself problematic.
10116 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10117 ;;
10118 *)
10119 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10120 ;;
10121 esac
10122 # Ok, now we have the path, separated by spaces, we can step through it
10123 # and add multilib dir if necessary.
10124 lt_tmp_lt_search_path_spec=
10125 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10126 for lt_sys_path in $lt_search_path_spec; do
10127 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10128 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10129 else
10130 test -d "$lt_sys_path" && \
10131 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10132 fi
10133 done
10134 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10135BEGIN {RS=" "; FS="/|\n";} {
10136 lt_foo="";
10137 lt_count=0;
10138 for (lt_i = NF; lt_i > 0; lt_i--) {
10139 if ($lt_i != "" && $lt_i != ".") {
10140 if ($lt_i == "..") {
10141 lt_count++;
10142 } else {
10143 if (lt_count == 0) {
10144 lt_foo="/" $lt_i lt_foo;
10145 } else {
10146 lt_count--;
10147 }
10148 }
10149 }
10150 }
10151 if (lt_foo != "") { lt_freq[lt_foo]++; }
10152 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10153}'`
10154 # AWK program above erroneously prepends '/' to C:/dos/paths
10155 # for these hosts.
10156 case $host_os in
10157 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10158 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10159 esac
10160 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10161else
10162 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10163fi
10164library_names_spec=
10165libname_spec='lib$name'
10166soname_spec=
10167shrext_cmds=".so"
10168postinstall_cmds=
10169postuninstall_cmds=
10170finish_cmds=
10171finish_eval=
10172shlibpath_var=
10173shlibpath_overrides_runpath=unknown
10174version_type=none
10175dynamic_linker="$host_os ld.so"
10176sys_lib_dlsearch_path_spec="/lib /usr/lib"
10177need_lib_prefix=unknown
10178hardcode_into_libs=no
10179
10180# when you set need_version to no, make sure it does not cause -set_version
10181# flags to be left without arguments
10182need_version=unknown
10183
10184case $host_os in
10185aix3*)
10186 version_type=linux
10187 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10188 shlibpath_var=LIBPATH
10189
10190 # AIX 3 has no versioning support, so we append a major version to the name.
10191 soname_spec='${libname}${release}${shared_ext}$major'
10192 ;;
10193
10194aix[4-9]*)
10195 version_type=linux
10196 need_lib_prefix=no
10197 need_version=no
10198 hardcode_into_libs=yes
10199 if test "$host_cpu" = ia64; then
10200 # AIX 5 supports IA64
10201 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10202 shlibpath_var=LD_LIBRARY_PATH
10203 else
10204 # With GCC up to 2.95.x, collect2 would create an import file
10205 # for dependence libraries. The import file would start with
10206 # the line `#! .'. This would cause the generated library to
10207 # depend on `.', always an invalid library. This was fixed in
10208 # development snapshots of GCC prior to 3.0.
10209 case $host_os in
10210 aix4 | aix4.[01] | aix4.[01].*)
10211 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10212 echo ' yes '
10213 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10214 :
10215 else
10216 can_build_shared=no
10217 fi
10218 ;;
10219 esac
10220 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10221 # soname into executable. Probably we can add versioning support to
10222 # collect2, so additional links can be useful in future.
10223 if test "$aix_use_runtimelinking" = yes; then
10224 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10225 # instead of lib<name>.a to let people know that these are not
10226 # typical AIX shared libraries.
10227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10228 else
10229 # We preserve .a as extension for shared libraries through AIX4.2
10230 # and later when we are not doing run time linking.
10231 library_names_spec='${libname}${release}.a $libname.a'
10232 soname_spec='${libname}${release}${shared_ext}$major'
10233 fi
10234 shlibpath_var=LIBPATH
10235 fi
10236 ;;
10237
10238amigaos*)
10239 case $host_cpu in
10240 powerpc)
10241 # Since July 2007 AmigaOS4 officially supports .so libraries.
10242 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10244 ;;
10245 m68k)
10246 library_names_spec='$libname.ixlibrary $libname.a'
10247 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10248 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'
10249 ;;
10250 esac
10251 ;;
10252
10253beos*)
10254 library_names_spec='${libname}${shared_ext}'
10255 dynamic_linker="$host_os ld.so"
10256 shlibpath_var=LIBRARY_PATH
10257 ;;
10258
10259bsdi[45]*)
10260 version_type=linux
10261 need_version=no
10262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10263 soname_spec='${libname}${release}${shared_ext}$major'
10264 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10265 shlibpath_var=LD_LIBRARY_PATH
10266 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10267 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10268 # the default ld.so.conf also contains /usr/contrib/lib and
10269 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10270 # libtool to hard-code these into programs
10271 ;;
10272
10273cygwin* | mingw* | pw32* | cegcc*)
10274 version_type=windows
10275 shrext_cmds=".dll"
10276 need_version=no
10277 need_lib_prefix=no
10278
10279 case $GCC,$host_os in
10280 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10281 library_names_spec='$libname.dll.a'
10282 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10283 postinstall_cmds='base_file=`basename \${file}`~
10284 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10285 dldir=$destdir/`dirname \$dlpath`~
10286 test -d \$dldir || mkdir -p \$dldir~
10287 $install_prog $dir/$dlname \$dldir/$dlname~
10288 chmod a+x \$dldir/$dlname~
10289 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10290 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10291 fi'
10292 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10293 dlpath=$dir/\$dldll~
10294 $RM \$dlpath'
10295 shlibpath_overrides_runpath=yes
10296
10297 case $host_os in
10298 cygwin*)
10299 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10300 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10301
10302 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10303 ;;
10304 mingw* | cegcc*)
10305 # MinGW DLLs use traditional 'lib' prefix
10306 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10307 ;;
10308 pw32*)
10309 # pw32 DLLs use 'pw' prefix rather than 'lib'
10310 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10311 ;;
10312 esac
10313 ;;
10314
10315 *)
10316 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10317 ;;
10318 esac
10319 dynamic_linker='Win32 ld.exe'
10320 # FIXME: first we should search . and the directory the executable is in
10321 shlibpath_var=PATH
10322 ;;
10323
10324darwin* | rhapsody*)
10325 dynamic_linker="$host_os dyld"
10326 version_type=darwin
10327 need_lib_prefix=no
10328 need_version=no
10329 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10330 soname_spec='${libname}${release}${major}$shared_ext'
10331 shlibpath_overrides_runpath=yes
10332 shlibpath_var=DYLD_LIBRARY_PATH
10333 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10334
10335 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10336 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10337 ;;
10338
10339dgux*)
10340 version_type=linux
10341 need_lib_prefix=no
10342 need_version=no
10343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10344 soname_spec='${libname}${release}${shared_ext}$major'
10345 shlibpath_var=LD_LIBRARY_PATH
10346 ;;
10347
10348freebsd* | dragonfly*)
10349 # DragonFly does not have aout. When/if they implement a new
10350 # versioning mechanism, adjust this.
10351 if test -x /usr/bin/objformat; then
10352 objformat=`/usr/bin/objformat`
10353 else
10354 case $host_os in
10355 freebsd[23].*) objformat=aout ;;
10356 *) objformat=elf ;;
10357 esac
10358 fi
10359 version_type=freebsd-$objformat
10360 case $version_type in
10361 freebsd-elf*)
10362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10363 need_version=no
10364 need_lib_prefix=no
10365 ;;
10366 freebsd-*)
10367 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10368 need_version=yes
10369 ;;
10370 esac
10371 shlibpath_var=LD_LIBRARY_PATH
10372 case $host_os in
10373 freebsd2.*)
10374 shlibpath_overrides_runpath=yes
10375 ;;
10376 freebsd3.[01]* | freebsdelf3.[01]*)
10377 shlibpath_overrides_runpath=yes
10378 hardcode_into_libs=yes
10379 ;;
10380 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10381 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10382 shlibpath_overrides_runpath=no
10383 hardcode_into_libs=yes
10384 ;;
10385 *) # from 4.6 on, and DragonFly
10386 shlibpath_overrides_runpath=yes
10387 hardcode_into_libs=yes
10388 ;;
10389 esac
10390 ;;
10391
10392haiku*)
10393 version_type=linux
10394 need_lib_prefix=no
10395 need_version=no
10396 dynamic_linker="$host_os runtime_loader"
10397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10398 soname_spec='${libname}${release}${shared_ext}$major'
10399 shlibpath_var=LIBRARY_PATH
10400 shlibpath_overrides_runpath=yes
10401 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10402 hardcode_into_libs=yes
10403 ;;
10404
10405hpux9* | hpux10* | hpux11*)
10406 # Give a soname corresponding to the major version so that dld.sl refuses to
10407 # link against other versions.
10408 version_type=sunos
10409 need_lib_prefix=no
10410 need_version=no
10411 case $host_cpu in
10412 ia64*)
10413 shrext_cmds='.so'
10414 hardcode_into_libs=yes
10415 dynamic_linker="$host_os dld.so"
10416 shlibpath_var=LD_LIBRARY_PATH
10417 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10419 soname_spec='${libname}${release}${shared_ext}$major'
10420 if test "X$HPUX_IA64_MODE" = X32; then
10421 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10422 else
10423 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10424 fi
10425 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10426 ;;
10427 hppa*64*)
10428 shrext_cmds='.sl'
10429 hardcode_into_libs=yes
10430 dynamic_linker="$host_os dld.sl"
10431 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10432 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10434 soname_spec='${libname}${release}${shared_ext}$major'
10435 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10436 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10437 ;;
10438 *)
10439 shrext_cmds='.sl'
10440 dynamic_linker="$host_os dld.sl"
10441 shlibpath_var=SHLIB_PATH
10442 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10444 soname_spec='${libname}${release}${shared_ext}$major'
10445 ;;
10446 esac
10447 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10448 postinstall_cmds='chmod 555 $lib'
10449 # or fails outright, so override atomically:
10450 install_override_mode=555
10451 ;;
10452
10453interix[3-9]*)
10454 version_type=linux
10455 need_lib_prefix=no
10456 need_version=no
10457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10458 soname_spec='${libname}${release}${shared_ext}$major'
10459 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10460 shlibpath_var=LD_LIBRARY_PATH
10461 shlibpath_overrides_runpath=no
10462 hardcode_into_libs=yes
10463 ;;
10464
10465irix5* | irix6* | nonstopux*)
10466 case $host_os in
10467 nonstopux*) version_type=nonstopux ;;
10468 *)
10469 if test "$lt_cv_prog_gnu_ld" = yes; then
10470 version_type=linux
10471 else
10472 version_type=irix
10473 fi ;;
10474 esac
10475 need_lib_prefix=no
10476 need_version=no
10477 soname_spec='${libname}${release}${shared_ext}$major'
10478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10479 case $host_os in
10480 irix5* | nonstopux*)
10481 libsuff= shlibsuff=
10482 ;;
10483 *)
10484 case $LD in # libtool.m4 will add one of these switches to LD
10485 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10486 libsuff= shlibsuff= libmagic=32-bit;;
10487 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10488 libsuff=32 shlibsuff=N32 libmagic=N32;;
10489 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10490 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10491 *) libsuff= shlibsuff= libmagic=never-match;;
10492 esac
10493 ;;
10494 esac
10495 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10496 shlibpath_overrides_runpath=no
10497 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10498 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10499 hardcode_into_libs=yes
10500 ;;
10501
10502# No shared lib support for Linux oldld, aout, or coff.
10503linux*oldld* | linux*aout* | linux*coff*)
10504 dynamic_linker=no
10505 ;;
10506
10507# This must be Linux ELF.
10508linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10509 version_type=linux
10510 need_lib_prefix=no
10511 need_version=no
10512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10513 soname_spec='${libname}${release}${shared_ext}$major'
10514 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10515 shlibpath_var=LD_LIBRARY_PATH
10516 shlibpath_overrides_runpath=no
10517
10518 # Some binutils ld are patched to set DT_RUNPATH
10519 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10520 $as_echo_n "(cached) " >&6
10521else
10522 lt_cv_shlibpath_overrides_runpath=no
10523 save_LDFLAGS=$LDFLAGS
10524 save_libdir=$libdir
10525 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10526 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10528/* end confdefs.h. */
10529
10530int
10531main ()
10532{
10533
10534 ;
10535 return 0;
10536}
10537_ACEOF
10538if ac_fn_c_try_link "$LINENO"; then :
10539 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10540 lt_cv_shlibpath_overrides_runpath=yes
10541fi
10542fi
10543rm -f core conftest.err conftest.$ac_objext \
10544 conftest$ac_exeext conftest.$ac_ext
10545 LDFLAGS=$save_LDFLAGS
10546 libdir=$save_libdir
10547
10548fi
10549
10550 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10551
10552 # This implies no fast_install, which is unacceptable.
10553 # Some rework will be needed to allow for fast_install
10554 # before this can be enabled.
10555 hardcode_into_libs=yes
10556
10557 # Append ld.so.conf contents to the search path
10558 if test -f /etc/ld.so.conf; then
10559 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' ' '`
10560 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10561 fi
10562
10563 # We used to test for /lib/ld.so.1 and disable shared libraries on
10564 # powerpc, because MkLinux only supported shared libraries with the
10565 # GNU dynamic linker. Since this was broken with cross compilers,
10566 # most powerpc-linux boxes support dynamic linking these days and
10567 # people can always --disable-shared, the test was removed, and we
10568 # assume the GNU/Linux dynamic linker is in use.
10569 dynamic_linker='GNU/Linux ld.so'
10570 ;;
10571
10572netbsd*)
10573 version_type=sunos
10574 need_lib_prefix=no
10575 need_version=no
10576 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10578 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10579 dynamic_linker='NetBSD (a.out) ld.so'
10580 else
10581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10582 soname_spec='${libname}${release}${shared_ext}$major'
10583 dynamic_linker='NetBSD ld.elf_so'
10584 fi
10585 shlibpath_var=LD_LIBRARY_PATH
10586 shlibpath_overrides_runpath=yes
10587 hardcode_into_libs=yes
10588 ;;
10589
10590newsos6)
10591 version_type=linux
10592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10593 shlibpath_var=LD_LIBRARY_PATH
10594 shlibpath_overrides_runpath=yes
10595 ;;
10596
10597*nto* | *qnx*)
10598 version_type=qnx
10599 need_lib_prefix=no
10600 need_version=no
10601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10602 soname_spec='${libname}${release}${shared_ext}$major'
10603 shlibpath_var=LD_LIBRARY_PATH
10604 shlibpath_overrides_runpath=no
10605 hardcode_into_libs=yes
10606 dynamic_linker='ldqnx.so'
10607 ;;
10608
10609openbsd*)
10610 version_type=sunos
10611 sys_lib_dlsearch_path_spec="/usr/lib"
10612 need_lib_prefix=no
10613 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10614 case $host_os in
10615 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10616 *) need_version=no ;;
10617 esac
10618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10619 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10620 shlibpath_var=LD_LIBRARY_PATH
10621 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10622 case $host_os in
10623 openbsd2.[89] | openbsd2.[89].*)
10624 shlibpath_overrides_runpath=no
10625 ;;
10626 *)
10627 shlibpath_overrides_runpath=yes
10628 ;;
10629 esac
10630 else
10631 shlibpath_overrides_runpath=yes
10632 fi
10633 ;;
10634
10635os2*)
10636 libname_spec='$name'
10637 shrext_cmds=".dll"
10638 need_lib_prefix=no
10639 library_names_spec='$libname${shared_ext} $libname.a'
10640 dynamic_linker='OS/2 ld.exe'
10641 shlibpath_var=LIBPATH
10642 ;;
10643
10644osf3* | osf4* | osf5*)
10645 version_type=osf
10646 need_lib_prefix=no
10647 need_version=no
10648 soname_spec='${libname}${release}${shared_ext}$major'
10649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10650 shlibpath_var=LD_LIBRARY_PATH
10651 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10652 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10653 ;;
10654
10655rdos*)
10656 dynamic_linker=no
10657 ;;
10658
10659solaris*)
10660 version_type=linux
10661 need_lib_prefix=no
10662 need_version=no
10663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10664 soname_spec='${libname}${release}${shared_ext}$major'
10665 shlibpath_var=LD_LIBRARY_PATH
10666 shlibpath_overrides_runpath=yes
10667 hardcode_into_libs=yes
10668 # ldd complains unless libraries are executable
10669 postinstall_cmds='chmod +x $lib'
10670 ;;
10671
10672sunos4*)
10673 version_type=sunos
10674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10675 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10676 shlibpath_var=LD_LIBRARY_PATH
10677 shlibpath_overrides_runpath=yes
10678 if test "$with_gnu_ld" = yes; then
10679 need_lib_prefix=no
10680 fi
10681 need_version=yes
10682 ;;
10683
10684sysv4 | sysv4.3*)
10685 version_type=linux
10686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10687 soname_spec='${libname}${release}${shared_ext}$major'
10688 shlibpath_var=LD_LIBRARY_PATH
10689 case $host_vendor in
10690 sni)
10691 shlibpath_overrides_runpath=no
10692 need_lib_prefix=no
10693 runpath_var=LD_RUN_PATH
10694 ;;
10695 siemens)
10696 need_lib_prefix=no
10697 ;;
10698 motorola)
10699 need_lib_prefix=no
10700 need_version=no
10701 shlibpath_overrides_runpath=no
10702 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10703 ;;
10704 esac
10705 ;;
10706
10707sysv4*MP*)
10708 if test -d /usr/nec ;then
10709 version_type=linux
10710 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10711 soname_spec='$libname${shared_ext}.$major'
10712 shlibpath_var=LD_LIBRARY_PATH
10713 fi
10714 ;;
10715
10716sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10717 version_type=freebsd-elf
10718 need_lib_prefix=no
10719 need_version=no
10720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10721 soname_spec='${libname}${release}${shared_ext}$major'
10722 shlibpath_var=LD_LIBRARY_PATH
10723 shlibpath_overrides_runpath=yes
10724 hardcode_into_libs=yes
10725 if test "$with_gnu_ld" = yes; then
10726 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10727 else
10728 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10729 case $host_os in
10730 sco3.2v5*)
10731 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10732 ;;
10733 esac
10734 fi
10735 sys_lib_dlsearch_path_spec='/usr/lib'
10736 ;;
10737
10738tpf*)
10739 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10740 version_type=linux
10741 need_lib_prefix=no
10742 need_version=no
10743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10744 shlibpath_var=LD_LIBRARY_PATH
10745 shlibpath_overrides_runpath=no
10746 hardcode_into_libs=yes
10747 ;;
10748
10749uts4*)
10750 version_type=linux
10751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10752 soname_spec='${libname}${release}${shared_ext}$major'
10753 shlibpath_var=LD_LIBRARY_PATH
10754 ;;
10755
10756*)
10757 dynamic_linker=no
10758 ;;
10759esac
10760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10761$as_echo "$dynamic_linker" >&6; }
10762test "$dynamic_linker" = no && can_build_shared=no
10763
10764variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10765if test "$GCC" = yes; then
10766 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10767fi
10768
10769if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10770 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10771fi
10772if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10773 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10774fi
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10868$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10869hardcode_action=
10870if test -n "$hardcode_libdir_flag_spec" ||
10871 test -n "$runpath_var" ||
10872 test "X$hardcode_automatic" = "Xyes" ; then
10873
10874 # We can hardcode non-existent directories.
10875 if test "$hardcode_direct" != no &&
10876 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10877 # have to relink, otherwise we might link with an installed library
10878 # when we should be linking with a yet-to-be-installed one
10879 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10880 test "$hardcode_minus_L" != no; then
10881 # Linking always hardcodes the temporary library directory.
10882 hardcode_action=relink
10883 else
10884 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10885 hardcode_action=immediate
10886 fi
10887else
10888 # We cannot hardcode anything, or else we can only hardcode existing
10889 # directories.
10890 hardcode_action=unsupported
10891fi
10892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10893$as_echo "$hardcode_action" >&6; }
10894
10895if test "$hardcode_action" = relink ||
10896 test "$inherit_rpath" = yes; then
10897 # Fast installation is not supported
10898 enable_fast_install=no
10899elif test "$shlibpath_overrides_runpath" = yes ||
10900 test "$enable_shared" = no; then
10901 # Fast installation is not necessary
10902 enable_fast_install=needless
10903fi
10904
10905
10906
10907
10908
10909
10910 if test "x$enable_dlopen" != xyes; then
10911 enable_dlopen=unknown
10912 enable_dlopen_self=unknown
10913 enable_dlopen_self_static=unknown
10914else
10915 lt_cv_dlopen=no
10916 lt_cv_dlopen_libs=
10917
10918 case $host_os in
10919 beos*)
10920 lt_cv_dlopen="load_add_on"
10921 lt_cv_dlopen_libs=
10922 lt_cv_dlopen_self=yes
10923 ;;
10924
10925 mingw* | pw32* | cegcc*)
10926 lt_cv_dlopen="LoadLibrary"
10927 lt_cv_dlopen_libs=
10928 ;;
10929
10930 cygwin*)
10931 lt_cv_dlopen="dlopen"
10932 lt_cv_dlopen_libs=
10933 ;;
10934
10935 darwin*)
10936 # if libdl is installed we need to link against it
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10938$as_echo_n "checking for dlopen in -ldl... " >&6; }
10939if ${ac_cv_lib_dl_dlopen+:} false; then :
10940 $as_echo_n "(cached) " >&6
10941else
10942 ac_check_lib_save_LIBS=$LIBS
10943LIBS="-ldl $LIBS"
10944cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10945/* end confdefs.h. */
10946
10947/* Override any GCC internal prototype to avoid an error.
10948 Use char because int might match the return type of a GCC
10949 builtin and then its argument prototype would still apply. */
10950#ifdef __cplusplus
10951extern "C"
10952#endif
10953char dlopen ();
10954int
10955main ()
10956{
10957return dlopen ();
10958 ;
10959 return 0;
10960}
10961_ACEOF
10962if ac_fn_c_try_link "$LINENO"; then :
10963 ac_cv_lib_dl_dlopen=yes
10964else
10965 ac_cv_lib_dl_dlopen=no
10966fi
10967rm -f core conftest.err conftest.$ac_objext \
10968 conftest$ac_exeext conftest.$ac_ext
10969LIBS=$ac_check_lib_save_LIBS
10970fi
10971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10972$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10973if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10974 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10975else
10976
10977 lt_cv_dlopen="dyld"
10978 lt_cv_dlopen_libs=
10979 lt_cv_dlopen_self=yes
10980
10981fi
10982
10983 ;;
10984
10985 *)
10986 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10987if test "x$ac_cv_func_shl_load" = xyes; then :
10988 lt_cv_dlopen="shl_load"
10989else
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10991$as_echo_n "checking for shl_load in -ldld... " >&6; }
10992if ${ac_cv_lib_dld_shl_load+:} false; then :
10993 $as_echo_n "(cached) " >&6
10994else
10995 ac_check_lib_save_LIBS=$LIBS
10996LIBS="-ldld $LIBS"
10997cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10998/* end confdefs.h. */
10999
11000/* Override any GCC internal prototype to avoid an error.
11001 Use char because int might match the return type of a GCC
11002 builtin and then its argument prototype would still apply. */
11003#ifdef __cplusplus
11004extern "C"
11005#endif
11006char shl_load ();
11007int
11008main ()
11009{
11010return shl_load ();
11011 ;
11012 return 0;
11013}
11014_ACEOF
11015if ac_fn_c_try_link "$LINENO"; then :
11016 ac_cv_lib_dld_shl_load=yes
11017else
11018 ac_cv_lib_dld_shl_load=no
11019fi
11020rm -f core conftest.err conftest.$ac_objext \
11021 conftest$ac_exeext conftest.$ac_ext
11022LIBS=$ac_check_lib_save_LIBS
11023fi
11024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11025$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11026if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11027 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11028else
11029 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11030if test "x$ac_cv_func_dlopen" = xyes; then :
11031 lt_cv_dlopen="dlopen"
11032else
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11034$as_echo_n "checking for dlopen in -ldl... " >&6; }
11035if ${ac_cv_lib_dl_dlopen+:} false; then :
11036 $as_echo_n "(cached) " >&6
11037else
11038 ac_check_lib_save_LIBS=$LIBS
11039LIBS="-ldl $LIBS"
11040cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11041/* end confdefs.h. */
11042
11043/* Override any GCC internal prototype to avoid an error.
11044 Use char because int might match the return type of a GCC
11045 builtin and then its argument prototype would still apply. */
11046#ifdef __cplusplus
11047extern "C"
11048#endif
11049char dlopen ();
11050int
11051main ()
11052{
11053return dlopen ();
11054 ;
11055 return 0;
11056}
11057_ACEOF
11058if ac_fn_c_try_link "$LINENO"; then :
11059 ac_cv_lib_dl_dlopen=yes
11060else
11061 ac_cv_lib_dl_dlopen=no
11062fi
11063rm -f core conftest.err conftest.$ac_objext \
11064 conftest$ac_exeext conftest.$ac_ext
11065LIBS=$ac_check_lib_save_LIBS
11066fi
11067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11068$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11069if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11070 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11071else
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11073$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11074if ${ac_cv_lib_svld_dlopen+:} false; then :
11075 $as_echo_n "(cached) " >&6
11076else
11077 ac_check_lib_save_LIBS=$LIBS
11078LIBS="-lsvld $LIBS"
11079cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11080/* end confdefs.h. */
11081
11082/* Override any GCC internal prototype to avoid an error.
11083 Use char because int might match the return type of a GCC
11084 builtin and then its argument prototype would still apply. */
11085#ifdef __cplusplus
11086extern "C"
11087#endif
11088char dlopen ();
11089int
11090main ()
11091{
11092return dlopen ();
11093 ;
11094 return 0;
11095}
11096_ACEOF
11097if ac_fn_c_try_link "$LINENO"; then :
11098 ac_cv_lib_svld_dlopen=yes
11099else
11100 ac_cv_lib_svld_dlopen=no
11101fi
11102rm -f core conftest.err conftest.$ac_objext \
11103 conftest$ac_exeext conftest.$ac_ext
11104LIBS=$ac_check_lib_save_LIBS
11105fi
11106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11107$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11108if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11109 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11110else
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11112$as_echo_n "checking for dld_link in -ldld... " >&6; }
11113if ${ac_cv_lib_dld_dld_link+:} false; then :
11114 $as_echo_n "(cached) " >&6
11115else
11116 ac_check_lib_save_LIBS=$LIBS
11117LIBS="-ldld $LIBS"
11118cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11119/* end confdefs.h. */
11120
11121/* Override any GCC internal prototype to avoid an error.
11122 Use char because int might match the return type of a GCC
11123 builtin and then its argument prototype would still apply. */
11124#ifdef __cplusplus
11125extern "C"
11126#endif
11127char dld_link ();
11128int
11129main ()
11130{
11131return dld_link ();
11132 ;
11133 return 0;
11134}
11135_ACEOF
11136if ac_fn_c_try_link "$LINENO"; then :
11137 ac_cv_lib_dld_dld_link=yes
11138else
11139 ac_cv_lib_dld_dld_link=no
11140fi
11141rm -f core conftest.err conftest.$ac_objext \
11142 conftest$ac_exeext conftest.$ac_ext
11143LIBS=$ac_check_lib_save_LIBS
11144fi
11145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11146$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11147if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11148 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11149fi
11150
11151
11152fi
11153
11154
11155fi
11156
11157
11158fi
11159
11160
11161fi
11162
11163
11164fi
11165
11166 ;;
11167 esac
11168
11169 if test "x$lt_cv_dlopen" != xno; then
11170 enable_dlopen=yes
11171 else
11172 enable_dlopen=no
11173 fi
11174
11175 case $lt_cv_dlopen in
11176 dlopen)
11177 save_CPPFLAGS="$CPPFLAGS"
11178 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11179
11180 save_LDFLAGS="$LDFLAGS"
11181 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11182
11183 save_LIBS="$LIBS"
11184 LIBS="$lt_cv_dlopen_libs $LIBS"
11185
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11187$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11188if ${lt_cv_dlopen_self+:} false; then :
11189 $as_echo_n "(cached) " >&6
11190else
11191 if test "$cross_compiling" = yes; then :
11192 lt_cv_dlopen_self=cross
11193else
11194 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11195 lt_status=$lt_dlunknown
11196 cat > conftest.$ac_ext <<_LT_EOF
fe348617 11197#line 11197 "configure"
b9249c46
MF
11198#include "confdefs.h"
11199
11200#if HAVE_DLFCN_H
11201#include <dlfcn.h>
11202#endif
11203
11204#include <stdio.h>
11205
11206#ifdef RTLD_GLOBAL
11207# define LT_DLGLOBAL RTLD_GLOBAL
11208#else
11209# ifdef DL_GLOBAL
11210# define LT_DLGLOBAL DL_GLOBAL
11211# else
11212# define LT_DLGLOBAL 0
11213# endif
11214#endif
11215
11216/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11217 find out it does not work in some platform. */
11218#ifndef LT_DLLAZY_OR_NOW
11219# ifdef RTLD_LAZY
11220# define LT_DLLAZY_OR_NOW RTLD_LAZY
11221# else
11222# ifdef DL_LAZY
11223# define LT_DLLAZY_OR_NOW DL_LAZY
11224# else
11225# ifdef RTLD_NOW
11226# define LT_DLLAZY_OR_NOW RTLD_NOW
11227# else
11228# ifdef DL_NOW
11229# define LT_DLLAZY_OR_NOW DL_NOW
11230# else
11231# define LT_DLLAZY_OR_NOW 0
11232# endif
11233# endif
11234# endif
11235# endif
11236#endif
11237
11238/* When -fvisbility=hidden is used, assume the code has been annotated
11239 correspondingly for the symbols needed. */
11240#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11241void fnord () __attribute__((visibility("default")));
11242#endif
11243
11244void fnord () { int i=42; }
11245int main ()
11246{
11247 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11248 int status = $lt_dlunknown;
11249
11250 if (self)
11251 {
11252 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11253 else
11254 {
11255 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11256 else puts (dlerror ());
11257 }
11258 /* dlclose (self); */
11259 }
11260 else
11261 puts (dlerror ());
11262
11263 return status;
11264}
11265_LT_EOF
11266 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11267 (eval $ac_link) 2>&5
11268 ac_status=$?
11269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11270 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11271 (./conftest; exit; ) >&5 2>/dev/null
11272 lt_status=$?
11273 case x$lt_status in
11274 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11275 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11276 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11277 esac
11278 else :
11279 # compilation failed
11280 lt_cv_dlopen_self=no
11281 fi
11282fi
11283rm -fr conftest*
11284
11285
11286fi
11287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11288$as_echo "$lt_cv_dlopen_self" >&6; }
11289
11290 if test "x$lt_cv_dlopen_self" = xyes; then
11291 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11293$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11294if ${lt_cv_dlopen_self_static+:} false; then :
11295 $as_echo_n "(cached) " >&6
11296else
11297 if test "$cross_compiling" = yes; then :
11298 lt_cv_dlopen_self_static=cross
11299else
11300 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11301 lt_status=$lt_dlunknown
11302 cat > conftest.$ac_ext <<_LT_EOF
fe348617 11303#line 11303 "configure"
b9249c46
MF
11304#include "confdefs.h"
11305
11306#if HAVE_DLFCN_H
11307#include <dlfcn.h>
11308#endif
11309
11310#include <stdio.h>
11311
11312#ifdef RTLD_GLOBAL
11313# define LT_DLGLOBAL RTLD_GLOBAL
11314#else
11315# ifdef DL_GLOBAL
11316# define LT_DLGLOBAL DL_GLOBAL
11317# else
11318# define LT_DLGLOBAL 0
11319# endif
11320#endif
11321
11322/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11323 find out it does not work in some platform. */
11324#ifndef LT_DLLAZY_OR_NOW
11325# ifdef RTLD_LAZY
11326# define LT_DLLAZY_OR_NOW RTLD_LAZY
11327# else
11328# ifdef DL_LAZY
11329# define LT_DLLAZY_OR_NOW DL_LAZY
11330# else
11331# ifdef RTLD_NOW
11332# define LT_DLLAZY_OR_NOW RTLD_NOW
11333# else
11334# ifdef DL_NOW
11335# define LT_DLLAZY_OR_NOW DL_NOW
11336# else
11337# define LT_DLLAZY_OR_NOW 0
11338# endif
11339# endif
11340# endif
11341# endif
11342#endif
11343
11344/* When -fvisbility=hidden is used, assume the code has been annotated
11345 correspondingly for the symbols needed. */
11346#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11347void fnord () __attribute__((visibility("default")));
11348#endif
11349
11350void fnord () { int i=42; }
11351int main ()
11352{
11353 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11354 int status = $lt_dlunknown;
11355
11356 if (self)
11357 {
11358 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11359 else
11360 {
11361 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11362 else puts (dlerror ());
11363 }
11364 /* dlclose (self); */
11365 }
11366 else
11367 puts (dlerror ());
11368
11369 return status;
11370}
11371_LT_EOF
11372 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11373 (eval $ac_link) 2>&5
11374 ac_status=$?
11375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11376 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11377 (./conftest; exit; ) >&5 2>/dev/null
11378 lt_status=$?
11379 case x$lt_status in
11380 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11381 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11382 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11383 esac
11384 else :
11385 # compilation failed
11386 lt_cv_dlopen_self_static=no
11387 fi
11388fi
11389rm -fr conftest*
11390
11391
11392fi
11393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11394$as_echo "$lt_cv_dlopen_self_static" >&6; }
11395 fi
11396
11397 CPPFLAGS="$save_CPPFLAGS"
11398 LDFLAGS="$save_LDFLAGS"
11399 LIBS="$save_LIBS"
11400 ;;
11401 esac
11402
11403 case $lt_cv_dlopen_self in
11404 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11405 *) enable_dlopen_self=unknown ;;
11406 esac
11407
11408 case $lt_cv_dlopen_self_static in
11409 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11410 *) enable_dlopen_self_static=unknown ;;
11411 esac
11412fi
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430striplib=
11431old_striplib=
11432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11433$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11434if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11435 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11436 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11438$as_echo "yes" >&6; }
11439else
11440# FIXME - insert some real tests, host_os isn't really good enough
11441 case $host_os in
11442 darwin*)
11443 if test -n "$STRIP" ; then
11444 striplib="$STRIP -x"
11445 old_striplib="$STRIP -S"
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11447$as_echo "yes" >&6; }
11448 else
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11450$as_echo "no" >&6; }
11451 fi
11452 ;;
11453 *)
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11455$as_echo "no" >&6; }
11456 ;;
11457 esac
11458fi
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471 # Report which library types will actually be built
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11473$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11475$as_echo "$can_build_shared" >&6; }
11476
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11478$as_echo_n "checking whether to build shared libraries... " >&6; }
11479 test "$can_build_shared" = "no" && enable_shared=no
11480
11481 # On AIX, shared libraries and static libraries use the same namespace, and
11482 # are all built from PIC.
11483 case $host_os in
11484 aix3*)
11485 test "$enable_shared" = yes && enable_static=no
11486 if test -n "$RANLIB"; then
11487 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11488 postinstall_cmds='$RANLIB $lib'
11489 fi
11490 ;;
11491
11492 aix[4-9]*)
11493 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11494 test "$enable_shared" = yes && enable_static=no
11495 fi
11496 ;;
11497 esac
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11499$as_echo "$enable_shared" >&6; }
11500
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11502$as_echo_n "checking whether to build static libraries... " >&6; }
11503 # Make sure either enable_shared or enable_static is yes.
11504 test "$enable_shared" = yes || enable_static=yes
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11506$as_echo "$enable_static" >&6; }
11507
11508
11509
11510
11511fi
11512ac_ext=c
11513ac_cpp='$CPP $CPPFLAGS'
11514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11516ac_compiler_gnu=$ac_cv_c_compiler_gnu
11517
11518CC="$lt_save_CC"
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532 ac_config_commands="$ac_config_commands libtool"
11533
11534
11535
11536
11537# Only expand once:
11538
11539
11540
11541
b9249c46
MF
11542
11543
11544
11545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11546$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11547 # Check whether --enable-maintainer-mode was given.
11548if test "${enable_maintainer_mode+set}" = set; then :
11549 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11550else
11551 USE_MAINTAINER_MODE=no
11552fi
11553
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11555$as_echo "$USE_MAINTAINER_MODE" >&6; }
11556 if test $USE_MAINTAINER_MODE = yes; then
11557 MAINTAINER_MODE_TRUE=
11558 MAINTAINER_MODE_FALSE='#'
11559else
11560 MAINTAINER_MODE_TRUE='#'
11561 MAINTAINER_MODE_FALSE=
11562fi
11563
11564 MAINT=$MAINTAINER_MODE_TRUE
11565
11566
11567
11568
11569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5
11570$as_echo_n "checking for sim debug setting... " >&6; }
11571sim_debug="0"
11572# Check whether --enable-sim-debug was given.
11573if test "${enable_sim_debug+set}" = set; then :
11574 enableval=$enable_sim_debug; case "${enableval}" in
11575 yes) sim_debug="7";;
11576 no) sim_debug="0";;
11577 *) sim_debug="($enableval)";;
11578esac
11579fi
11580if test "$sim_debug" != "0"; then
11581
11582cat >>confdefs.h <<_ACEOF
11583#define DEBUG $sim_debug
11584_ACEOF
11585
11586fi
11587
11588cat >>confdefs.h <<_ACEOF
11589#define WITH_DEBUG $sim_debug
11590_ACEOF
11591
11592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5
11593$as_echo "$sim_debug" >&6; }
11594
11595
11596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5
11597$as_echo_n "checking for sim stdio debug behavior... " >&6; }
11598sim_stdio="0"
11599# Check whether --enable-sim-stdio was given.
11600if test "${enable_sim_stdio+set}" = set; then :
11601 enableval=$enable_sim_stdio; case "${enableval}" in
11602 yes) sim_stdio="DO_USE_STDIO";;
11603 no) sim_stdio="DONT_USE_STDIO";;
11604 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;;
11605esac
11606fi
11607
11608cat >>confdefs.h <<_ACEOF
11609#define WITH_STDIO $sim_stdio
11610_ACEOF
11611
11612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5
11613$as_echo "$sim_stdio" >&6; }
11614
11615
11616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5
11617$as_echo_n "checking for sim trace settings... " >&6; }
11618sim_trace="~TRACE_debug"
11619# Check whether --enable-sim-trace was given.
11620if test "${enable_sim_trace+set}" = set; then :
11621 enableval=$enable_sim_trace; case "${enableval}" in
11622 yes) sim_trace="-1";;
11623 no) sim_trace="0";;
11624 [-0-9]*)
11625 sim_trace="'(${enableval})'";;
11626 [[:lower:]]*)
11627 sim_trace=""
11628 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
11629 if test x"$sim_trace" = x; then
11630 sim_trace="(TRACE_$x"
11631 else
11632 sim_trace="${sim_trace}|TRACE_$x"
11633 fi
11634 done
11635 sim_trace="$sim_trace)" ;;
11636esac
11637fi
11638
11639cat >>confdefs.h <<_ACEOF
11640#define WITH_TRACE $sim_trace
11641_ACEOF
11642
11643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5
11644$as_echo "$sim_trace" >&6; }
11645
11646
11647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5
11648$as_echo_n "checking for sim profile settings... " >&6; }
11649profile="1"
11650sim_profile="-1"
11651# Check whether --enable-sim-profile was given.
11652if test "${enable_sim_profile+set}" = set; then :
11653 enableval=$enable_sim_profile; case "${enableval}" in
11654 yes) profile="1" sim_profile="-1";;
11655 no) profile="0" sim_profile="0";;
11656 [-0-9]*)
11657 profile="(${enableval})" sim_profile="(${enableval})";;
11658 [a-z]*)
11659 profile="1"
11660 sim_profile=""
11661 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
11662 if test x"$sim_profile" = x; then
11663 sim_profile="(PROFILE_$x"
11664 else
11665 sim_profile="${sim_profile}|PROFILE_$x"
11666 fi
11667 done
11668 sim_profile="$sim_profile)" ;;
11669esac
11670fi
11671
11672cat >>confdefs.h <<_ACEOF
11673#define PROFILE $profile
11674_ACEOF
11675
11676
11677cat >>confdefs.h <<_ACEOF
11678#define WITH_PROFILE $sim_profile
11679_ACEOF
11680
11681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5
11682$as_echo "$sim_profile" >&6; }
11683
11684
11685
11686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5
11687$as_echo_n "checking whether to enable sim asserts... " >&6; }
11688sim_assert="1"
11689# Check whether --enable-sim-assert was given.
11690if test "${enable_sim_assert+set}" = set; then :
11691 enableval=$enable_sim_assert; case "${enableval}" in
11692 yes) sim_assert="1";;
11693 no) sim_assert="0";;
11694 *) as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;;
11695esac
11696fi
11697
11698cat >>confdefs.h <<_ACEOF
11699#define WITH_ASSERT $sim_assert
11700_ACEOF
11701
11702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5
11703$as_echo "$sim_assert" >&6; }
11704
11705
11706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5
11707$as_echo_n "checking default sim environment setting... " >&6; }
11708sim_environment="ALL_ENVIRONMENT"
11709# Check whether --enable-sim-environment was given.
11710if test "${enable_sim_environment+set}" = set; then :
11711 enableval=$enable_sim_environment; case "${enableval}" in
11712 all | ALL) sim_environment="ALL_ENVIRONMENT";;
11713 user | USER) sim_environment="USER_ENVIRONMENT";;
11714 virtual | VIRTUAL) sim_environment="VIRTUAL_ENVIRONMENT";;
11715 operating | OPERATING) sim_environment="OPERATING_ENVIRONMENT";;
11716 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;;
11717esac
11718fi
11719
11720cat >>confdefs.h <<_ACEOF
11721#define WITH_ENVIRONMENT $sim_environment
11722_ACEOF
11723
11724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5
11725$as_echo "$sim_environment" >&6; }
11726
11727
11728sim_inline="-DDEFAULT_INLINE=0"
11729# Check whether --enable-sim-inline was given.
11730if test "${enable_sim_inline+set}" = set; then :
11731 enableval=$enable_sim_inline; sim_inline=""
11732case "$enableval" in
11733 no) sim_inline="-DDEFAULT_INLINE=0";;
11734 0) sim_inline="-DDEFAULT_INLINE=0";;
11735 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
11736 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
11737 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
11738 new_flag=""
11739 case "$x" in
11740 *_INLINE=*) new_flag="-D$x";;
11741 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
11742 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
11743 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
11744 esac
11745 if test x"$sim_inline" = x""; then
11746 sim_inline="$new_flag"
11747 else
11748 sim_inline="$sim_inline $new_flag"
11749 fi
11750 done;;
11751esac
11752if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
11753 echo "Setting inline flags = $sim_inline" 6>&1
11754fi
11755fi
11756
11757
11758
11759
11760# Check whether --with-pkgversion was given.
11761if test "${with_pkgversion+set}" = set; then :
11762 withval=$with_pkgversion; case "$withval" in
11763 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
11764 no) PKGVERSION= ;;
11765 *) PKGVERSION="($withval) " ;;
11766 esac
11767else
11768 PKGVERSION="(SIM) "
11769
11770fi
11771
11772
11773
11774
11775
11776# Check whether --with-bugurl was given.
11777if test "${with_bugurl+set}" = set; then :
11778 withval=$with_bugurl; case "$withval" in
11779 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
11780 no) BUGURL=
11781 ;;
11782 *) BUGURL="$withval"
11783 ;;
11784 esac
11785else
11786 BUGURL="https://www.gnu.org/software/gdb/bugs/"
11787
11788fi
11789
11790 case ${BUGURL} in
11791 "")
11792 REPORT_BUGS_TO=
11793 REPORT_BUGS_TEXI=
11794 ;;
11795 *)
11796 REPORT_BUGS_TO="<$BUGURL>"
11797 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
11798 ;;
11799 esac;
11800
11801
11802
11803
11804cat >>confdefs.h <<_ACEOF
11805#define PKGVERSION "$PKGVERSION"
11806_ACEOF
11807
11808
11809cat >>confdefs.h <<_ACEOF
11810#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
11811_ACEOF
11812
11813
11814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11815$as_echo_n "checking return type of signal handlers... " >&6; }
11816if ${ac_cv_type_signal+:} false; then :
11817 $as_echo_n "(cached) " >&6
11818else
11819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11820/* end confdefs.h. */
11821#include <sys/types.h>
11822#include <signal.h>
11823
11824int
11825main ()
11826{
11827return *(signal (0, 0)) (0) == 1;
11828 ;
11829 return 0;
11830}
11831_ACEOF
11832if ac_fn_c_try_compile "$LINENO"; then :
11833 ac_cv_type_signal=int
11834else
11835 ac_cv_type_signal=void
11836fi
11837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11838fi
11839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11840$as_echo "$ac_cv_type_signal" >&6; }
11841
11842cat >>confdefs.h <<_ACEOF
11843#define RETSIGTYPE $ac_cv_type_signal
11844_ACEOF
11845
11846
11847
11848
11849
11850
11851
b9249c46
MF
11852wire_endian="LITTLE"
11853default_endian=""
11854# Check whether --enable-sim-endian was given.
11855if test "${enable_sim_endian+set}" = set; then :
11856 enableval=$enable_sim_endian; case "${enableval}" in
11857 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_BIG";;
11858 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_LITTLE";;
11859 yes) if test x"$wire_endian" != x; then
11860 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_${wire_endian}"
11861 else
11862 if test x"$default_endian" != x; then
11863 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_${default_endian}"
11864 else
11865 echo "No hard-wired endian for target $target" 1>&6
11866 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_UNKNOWN"
11867 fi
11868 fi;;
11869 no) if test x"$default_endian" != x; then
11870 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_${default_endian}"
11871 else
11872 if test x"$wire_endian" != x; then
11873 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_${wire_endian}"
11874 else
11875 echo "No default endian for target $target" 1>&6
11876 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_UNKNOWN"
11877 fi
11878 fi;;
11879 *) as_fn_error $? "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5; sim_endian="";;
11880esac
11881if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
11882 echo "Setting endian flags = $sim_endian" 6>&1
11883fi
11884else
11885 if test x"$default_endian" != x; then
11886 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_${default_endian}"
11887else
11888 if test x"$wire_endian" != x; then
11889 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_${wire_endian}"
11890 else
11891 sim_endian=
11892 fi
11893fi
11894fi
11895
11896wire_alignment="NONSTRICT_ALIGNMENT"
11897default_alignment=""
11898
11899# Check whether --enable-sim-alignment was given.
11900if test "${enable_sim_alignment+set}" = set; then :
11901 enableval=$enable_sim_alignment; case "${enableval}" in
11902 strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
11903 nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
11904 forced | FORCED) sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
11905 yes) if test x"$wire_alignment" != x; then
11906 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
11907 else
11908 if test x"$default_alignment" != x; then
11909 sim_alignment="-DWITH_ALIGNMENT=${default_alignment}"
11910 else
11911 echo "No hard-wired alignment for target $target" 1>&6
11912 sim_alignment="-DWITH_ALIGNMENT=0"
11913 fi
11914 fi;;
11915 no) if test x"$default_alignment" != x; then
11916 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
11917 else
11918 if test x"$wire_alignment" != x; then
11919 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
11920 else
11921 echo "No default alignment for target $target" 1>&6
11922 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0"
11923 fi
11924 fi;;
11925 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5; sim_alignment="";;
11926esac
11927if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
11928 echo "Setting alignment flags = $sim_alignment" 6>&1
11929fi
11930else
11931 if test x"$default_alignment" != x; then
11932 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
11933else
11934 if test x"$wire_alignment" != x; then
11935 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
11936 else
11937 sim_alignment=
11938 fi
11939fi
11940fi
11941
11942
11943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5
11944$as_echo_n "checking default sim environment setting... " >&6; }
11945sim_environment="ALL_ENVIRONMENT"
11946# Check whether --enable-sim-environment was given.
11947if test "${enable_sim_environment+set}" = set; then :
11948 enableval=$enable_sim_environment; case "${enableval}" in
11949 all | ALL) sim_environment="ALL_ENVIRONMENT";;
11950 user | USER) sim_environment="USER_ENVIRONMENT";;
11951 virtual | VIRTUAL) sim_environment="VIRTUAL_ENVIRONMENT";;
11952 operating | OPERATING) sim_environment="OPERATING_ENVIRONMENT";;
11953 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;;
11954esac
11955fi
11956
11957cat >>confdefs.h <<_ACEOF
11958#define WITH_ENVIRONMENT $sim_environment
11959_ACEOF
11960
11961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5
11962$as_echo "$sim_environment" >&6; }
11963
11964
11965# Check whether --enable-werror was given.
11966if test "${enable_werror+set}" = set; then :
11967 enableval=$enable_werror; case "${enableval}" in
11968 yes | y) ERROR_ON_WARNING="yes" ;;
11969 no | n) ERROR_ON_WARNING="no" ;;
11970 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
11971 esac
11972fi
11973
11974
11975# Enable -Werror by default when using gcc
11976if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11977 ERROR_ON_WARNING=yes
11978fi
11979
11980WERROR_CFLAGS=""
11981 if test "${ERROR_ON_WARNING}" = yes ; then
11982 WERROR_CFLAGS="-Werror"
11983 fi
11984
11985build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
11986-Wpointer-sign \
11987-Wno-unused -Wunused-value -Wunused-function \
11988-Wno-switch -Wno-char-subscripts -Wmissing-prototypes
11989-Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
11990-Wold-style-declaration -Wold-style-definition"
11991
11992# Enable -Wno-format by default when using gcc on mingw since many
11993# GCC versions complain about %I64.
11994case "${host}" in
11995 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
11996 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
11997esac
11998
11999# Check whether --enable-build-warnings was given.
12000if test "${enable_build_warnings+set}" = set; then :
12001 enableval=$enable_build_warnings; case "${enableval}" in
12002 yes) ;;
12003 no) build_warnings="-w";;
12004 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12005 build_warnings="${build_warnings} ${t}";;
12006 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12007 build_warnings="${t} ${build_warnings}";;
12008 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12009esac
12010if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
12011 echo "Setting compiler warning flags = $build_warnings" 6>&1
12012fi
12013fi
12014# Check whether --enable-sim-build-warnings was given.
12015if test "${enable_sim_build_warnings+set}" = set; then :
12016 enableval=$enable_sim_build_warnings; case "${enableval}" in
12017 yes) ;;
12018 no) build_warnings="-w";;
12019 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12020 build_warnings="${build_warnings} ${t}";;
12021 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12022 build_warnings="${t} ${build_warnings}";;
12023 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12024esac
12025if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
12026 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
12027fi
12028fi
12029WARN_CFLAGS=""
12030if test "x${build_warnings}" != x -a "x$GCC" = xyes
12031then
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
12033$as_echo_n "checking compiler warning flags... " >&6; }
12034 # Separate out the -Werror flag as some files just cannot be
12035 # compiled with it enabled.
12036 for w in ${build_warnings}; do
12037 case $w in
12038 -Werr*) WERROR_CFLAGS=-Werror ;;
12039 *) # Check that GCC accepts it
12040 saved_CFLAGS="$CFLAGS"
1f195bc3 12041 CFLAGS="$CFLAGS -Werror $w"
b9249c46
MF
12042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12043/* end confdefs.h. */
12044
12045int
12046main ()
12047{
12048
12049 ;
12050 return 0;
12051}
12052_ACEOF
12053if ac_fn_c_try_compile "$LINENO"; then :
12054 WARN_CFLAGS="${WARN_CFLAGS} $w"
12055fi
12056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12057 CFLAGS="$saved_CFLAGS"
12058 esac
12059 done
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
12061$as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
12062fi
12063
12064
12065# Select the default model for the target.
12066riscv_model=
12067case "${target}" in
12068riscv32*) riscv_model="RV32G" ;;
12069riscv*) riscv_model="RV64G" ;;
12070esac
12071
12072default_sim_default_model="${riscv_model}"
12073# Check whether --enable-sim-default-model was given.
12074if test "${enable_sim_default_model+set}" = set; then :
12075 enableval=$enable_sim_default_model; case "${enableval}" in
12076 yes|no) as_fn_error $? "\"Missing argument to --enable-sim-default-model\"" "$LINENO" 5;;
12077 *) sim_default_model="-DWITH_DEFAULT_MODEL='\"${enableval}\"'";;
12078esac
12079if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
12080 echo "Setting default model = $sim_default_model" 6>&1
12081fi
12082else
12083 sim_default_model="-DWITH_DEFAULT_MODEL='\"${default_sim_default_model}\"'"
12084fi
12085
12086
12087
12088# Select the bitsize of the target.
12089riscv_addr_bitsize=
12090case "${target}" in
12091riscv32*) riscv_addr_bitsize=32 ;;
12092riscv*) riscv_addr_bitsize=64 ;;
12093esac
12094wire_word_bitsize="$riscv_addr_bitsize"
12095wire_word_msb=""
12096wire_address_bitsize=""
12097wire_cell_bitsize=""
12098# Check whether --enable-sim-bitsize was given.
12099if test "${enable_sim_bitsize+set}" = set; then :
12100 enableval=$enable_sim_bitsize; sim_bitsize=
12101case "${enableval}" in
12102 64,63 | 64,63,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
12103 32,31 | 32,31,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
12104 64,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
12105 32,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
12106 32) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
12107 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
12108 else
12109 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
12110 fi ;;
12111 64) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
12112 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
12113 else
12114 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
12115 fi ;;
12116 *) as_fn_error $? "\"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5 ;;
12117esac
12118# address bitsize
12119tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9]*,*//"`
12120case x"${tmp}" in
12121 x ) ;;
12122 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
12123 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
12124 * ) as_fn_error $? "\"--enable-sim-bitsize was given address size $enableval. Expected 32 or 64\"" "$LINENO" 5 ;;
12125esac
12126# cell bitsize
12127tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9*]*,*[0-9]*,*//"`
12128case x"${tmp}" in
12129 x ) ;;
12130 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
12131 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
12132 * ) as_fn_error $? "\"--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64\"" "$LINENO" 5 ;;
12133esac
12134if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
12135 echo "Setting bitsize flags = $sim_bitsize" 6>&1
12136fi
12137else
12138 sim_bitsize=""
12139if test x"$wire_word_bitsize" != x; then
12140 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
12141fi
12142if test x"$wire_word_msb" != x; then
12143 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
12144fi
12145if test x"$wire_address_bitsize" != x; then
12146 sim_bitsize="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
12147fi
12148if test x"$wire_cell_bitsize" != x; then
12149 sim_bitsize="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
12150fi
12151fi
12152
12153
12154
66d055c7
MF
12155hardware="cfi core pal glue "
12156sim_hw_cflags="-DWITH_HW=1"
12157sim_hw="$hardware"
12158sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
12159
12160# Check whether --enable-sim-hardware was given.
12161if test "${enable_sim_hardware+set}" = set; then :
12162 enableval=$enable_sim_hardware;
12163else
12164 enable_sim_hardware="yes"
12165fi
12166
12167case ${enable_sim_hardware} in
12168 yes|no) ;;
12169 ,*) hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
12170 *,) hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
12171 *) hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
12172esac
12173
12174if test "$enable_sim_hardware" = no; then
12175 sim_hw_objs=
12176 sim_hw_cflags="-DWITH_HW=0"
12177 sim_hw=
12178else
12179 sim_hw_cflags="-DWITH_HW=1"
12180 # remove duplicates
12181 sim_hw=""
12182 sim_hw_objs="\$(SIM_COMMON_HW_OBJS)"
12183 for i in $hardware ; do
12184 case " $sim_hw " in
12185 *" $i "*) ;;
12186 *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";;
12187 esac
12188 done
12189 # mingw does not support sockser
12190 case ${host} in
12191 *mingw*) ;;
12192 *) # TODO: We don't add dv-sockser to sim_hw as it is not a "real" device
12193 # that you instatiate. Instead, other code will call into it directly.
12194 # At some point, we should convert it over.
12195 sim_hw_objs="$sim_hw_objs dv-sockser.o"
12196
12197cat >>confdefs.h <<_ACEOF
12198#define HAVE_DV_SOCKSER 1
12199_ACEOF
12200
12201 ;;
12202 esac
12203 if test x"$silent" != x"yes"; then
12204 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
12205 fi
12206 case " $hardware " in
12207 *" cfi "*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log2 in -lm" >&5
12208$as_echo_n "checking for log2 in -lm... " >&6; }
12209if ${ac_cv_lib_m_log2+:} false; then :
12210 $as_echo_n "(cached) " >&6
12211else
12212 ac_check_lib_save_LIBS=$LIBS
12213LIBS="-lm $LIBS"
12214cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12215/* end confdefs.h. */
12216
12217/* Override any GCC internal prototype to avoid an error.
12218 Use char because int might match the return type of a GCC
12219 builtin and then its argument prototype would still apply. */
12220#ifdef __cplusplus
12221extern "C"
12222#endif
12223char log2 ();
12224int
12225main ()
12226{
12227return log2 ();
12228 ;
12229 return 0;
12230}
12231_ACEOF
12232if ac_fn_c_try_link "$LINENO"; then :
12233 ac_cv_lib_m_log2=yes
12234else
12235 ac_cv_lib_m_log2=no
12236fi
12237rm -f core conftest.err conftest.$ac_objext \
12238 conftest$ac_exeext conftest.$ac_ext
12239LIBS=$ac_check_lib_save_LIBS
12240fi
12241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log2" >&5
12242$as_echo "$ac_cv_lib_m_log2" >&6; }
12243if test "x$ac_cv_lib_m_log2" = xyes; then :
12244 cat >>confdefs.h <<_ACEOF
12245#define HAVE_LIBM 1
12246_ACEOF
12247
12248 LIBS="-lm $LIBS"
12249
12250fi
12251;;
12252 esac
12253fi
12254
12255
b9249c46
MF
12256cgen_breaks=""
12257if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
12258cgen_breaks="break cgen_rtx_error";
12259fi
12260
12261ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
12262
12263ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
12264
12265ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
12266
12267ac_config_commands="$ac_config_commands Makefile"
12268
12269ac_config_commands="$ac_config_commands stamp-h"
12270
760b3e8b
MF
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
b9249c46
MF
12283cat >confcache <<\_ACEOF
12284# This file is a shell script that caches the results of configure
12285# tests run on this system so they can be shared between configure
12286# scripts and configure runs, see configure's option --config-cache.
12287# It is not useful on other systems. If it contains results you don't
12288# want to keep, you may remove or edit it.
12289#
12290# config.status only pays attention to the cache file if you give it
12291# the --recheck option to rerun configure.
12292#
12293# `ac_cv_env_foo' variables (set or unset) will be overridden when
12294# loading this file, other *unset* `ac_cv_foo' will be assigned the
12295# following values.
12296
12297_ACEOF
12298
12299# The following way of writing the cache mishandles newlines in values,
12300# but we know of no workaround that is simple, portable, and efficient.
12301# So, we kill variables containing newlines.
12302# Ultrix sh set writes to stderr and can't be redirected directly,
12303# and sets the high bit in the cache file unless we assign to the vars.
12304(
12305 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12306 eval ac_val=\$$ac_var
12307 case $ac_val in #(
12308 *${as_nl}*)
12309 case $ac_var in #(
12310 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12311$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12312 esac
12313 case $ac_var in #(
12314 _ | IFS | as_nl) ;; #(
12315 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12316 *) { eval $ac_var=; unset $ac_var;} ;;
12317 esac ;;
12318 esac
12319 done
12320
12321 (set) 2>&1 |
12322 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12323 *${as_nl}ac_space=\ *)
12324 # `set' does not quote correctly, so add quotes: double-quote
12325 # substitution turns \\\\ into \\, and sed turns \\ into \.
12326 sed -n \
12327 "s/'/'\\\\''/g;
12328 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12329 ;; #(
12330 *)
12331 # `set' quotes correctly as required by POSIX, so do not add quotes.
12332 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12333 ;;
12334 esac |
12335 sort
12336) |
12337 sed '
12338 /^ac_cv_env_/b end
12339 t clear
12340 :clear
12341 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12342 t end
12343 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12344 :end' >>confcache
12345if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12346 if test -w "$cache_file"; then
12347 if test "x$cache_file" != "x/dev/null"; then
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12349$as_echo "$as_me: updating cache $cache_file" >&6;}
12350 if test ! -f "$cache_file" || test -h "$cache_file"; then
12351 cat confcache >"$cache_file"
12352 else
12353 case $cache_file in #(
12354 */* | ?:*)
12355 mv -f confcache "$cache_file"$$ &&
12356 mv -f "$cache_file"$$ "$cache_file" ;; #(
12357 *)
12358 mv -f confcache "$cache_file" ;;
12359 esac
12360 fi
12361 fi
12362 else
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12364$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12365 fi
12366fi
12367rm -f confcache
12368
12369test "x$prefix" = xNONE && prefix=$ac_default_prefix
12370# Let make expand exec_prefix.
12371test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12372
12373DEFS=-DHAVE_CONFIG_H
12374
12375ac_libobjs=
12376ac_ltlibobjs=
12377U=
12378for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12379 # 1. Remove the extension, and $U if already installed.
12380 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12381 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12382 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12383 # will be set to the directory where LIBOBJS objects are built.
12384 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12385 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12386done
12387LIBOBJS=$ac_libobjs
12388
12389LTLIBOBJS=$ac_ltlibobjs
12390
12391
12392
b9249c46
MF
12393if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
12394 as_fn_error $? "conditional \"PLUGINS\" was never defined.
12395Usually this means the macro was only invoked conditionally." "$LINENO" 5
12396fi
12397if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12398 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12399Usually this means the macro was only invoked conditionally." "$LINENO" 5
12400fi
12401
12402: "${CONFIG_STATUS=./config.status}"
12403ac_write_fail=0
12404ac_clean_files_save=$ac_clean_files
12405ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12406{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12407$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12408as_write_fail=0
12409cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12410#! $SHELL
12411# Generated by $as_me.
12412# Run this file to recreate the current configuration.
12413# Compiler output produced by configure, useful for debugging
12414# configure, is in config.log if it exists.
12415
12416debug=false
12417ac_cs_recheck=false
12418ac_cs_silent=false
12419
12420SHELL=\${CONFIG_SHELL-$SHELL}
12421export SHELL
12422_ASEOF
12423cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12424## -------------------- ##
12425## M4sh Initialization. ##
12426## -------------------- ##
12427
12428# Be more Bourne compatible
12429DUALCASE=1; export DUALCASE # for MKS sh
12430if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12431 emulate sh
12432 NULLCMD=:
12433 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12434 # is contrary to our usage. Disable this feature.
12435 alias -g '${1+"$@"}'='"$@"'
12436 setopt NO_GLOB_SUBST
12437else
12438 case `(set -o) 2>/dev/null` in #(
12439 *posix*) :
12440 set -o posix ;; #(
12441 *) :
12442 ;;
12443esac
12444fi
12445
12446
12447as_nl='
12448'
12449export as_nl
12450# Printing a long string crashes Solaris 7 /usr/bin/printf.
12451as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12452as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12453as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12454# Prefer a ksh shell builtin over an external printf program on Solaris,
12455# but without wasting forks for bash or zsh.
12456if test -z "$BASH_VERSION$ZSH_VERSION" \
12457 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12458 as_echo='print -r --'
12459 as_echo_n='print -rn --'
12460elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12461 as_echo='printf %s\n'
12462 as_echo_n='printf %s'
12463else
12464 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12465 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12466 as_echo_n='/usr/ucb/echo -n'
12467 else
12468 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12469 as_echo_n_body='eval
12470 arg=$1;
12471 case $arg in #(
12472 *"$as_nl"*)
12473 expr "X$arg" : "X\\(.*\\)$as_nl";
12474 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12475 esac;
12476 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12477 '
12478 export as_echo_n_body
12479 as_echo_n='sh -c $as_echo_n_body as_echo'
12480 fi
12481 export as_echo_body
12482 as_echo='sh -c $as_echo_body as_echo'
12483fi
12484
12485# The user is always right.
12486if test "${PATH_SEPARATOR+set}" != set; then
12487 PATH_SEPARATOR=:
12488 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12489 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12490 PATH_SEPARATOR=';'
12491 }
12492fi
12493
12494
12495# IFS
12496# We need space, tab and new line, in precisely that order. Quoting is
12497# there to prevent editors from complaining about space-tab.
12498# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12499# splitting by setting IFS to empty value.)
12500IFS=" "" $as_nl"
12501
12502# Find who we are. Look in the path if we contain no directory separator.
12503as_myself=
12504case $0 in #((
12505 *[\\/]* ) as_myself=$0 ;;
12506 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12507for as_dir in $PATH
12508do
12509 IFS=$as_save_IFS
12510 test -z "$as_dir" && as_dir=.
12511 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12512 done
12513IFS=$as_save_IFS
12514
12515 ;;
12516esac
12517# We did not find ourselves, most probably we were run as `sh COMMAND'
12518# in which case we are not to be found in the path.
12519if test "x$as_myself" = x; then
12520 as_myself=$0
12521fi
12522if test ! -f "$as_myself"; then
12523 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12524 exit 1
12525fi
12526
12527# Unset variables that we do not need and which cause bugs (e.g. in
12528# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12529# suppresses any "Segmentation fault" message there. '((' could
12530# trigger a bug in pdksh 5.2.14.
12531for as_var in BASH_ENV ENV MAIL MAILPATH
12532do eval test x\${$as_var+set} = xset \
12533 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12534done
12535PS1='$ '
12536PS2='> '
12537PS4='+ '
12538
12539# NLS nuisances.
12540LC_ALL=C
12541export LC_ALL
12542LANGUAGE=C
12543export LANGUAGE
12544
12545# CDPATH.
12546(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12547
12548
12549# as_fn_error STATUS ERROR [LINENO LOG_FD]
12550# ----------------------------------------
12551# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12552# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12553# script with STATUS, using 1 if that was 0.
12554as_fn_error ()
12555{
12556 as_status=$1; test $as_status -eq 0 && as_status=1
12557 if test "$4"; then
12558 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12559 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12560 fi
12561 $as_echo "$as_me: error: $2" >&2
12562 as_fn_exit $as_status
12563} # as_fn_error
12564
12565
12566# as_fn_set_status STATUS
12567# -----------------------
12568# Set $? to STATUS, without forking.
12569as_fn_set_status ()
12570{
12571 return $1
12572} # as_fn_set_status
12573
12574# as_fn_exit STATUS
12575# -----------------
12576# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12577as_fn_exit ()
12578{
12579 set +e
12580 as_fn_set_status $1
12581 exit $1
12582} # as_fn_exit
12583
12584# as_fn_unset VAR
12585# ---------------
12586# Portably unset VAR.
12587as_fn_unset ()
12588{
12589 { eval $1=; unset $1;}
12590}
12591as_unset=as_fn_unset
12592# as_fn_append VAR VALUE
12593# ----------------------
12594# Append the text in VALUE to the end of the definition contained in VAR. Take
12595# advantage of any shell optimizations that allow amortized linear growth over
12596# repeated appends, instead of the typical quadratic growth present in naive
12597# implementations.
12598if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12599 eval 'as_fn_append ()
12600 {
12601 eval $1+=\$2
12602 }'
12603else
12604 as_fn_append ()
12605 {
12606 eval $1=\$$1\$2
12607 }
12608fi # as_fn_append
12609
12610# as_fn_arith ARG...
12611# ------------------
12612# Perform arithmetic evaluation on the ARGs, and store the result in the
12613# global $as_val. Take advantage of shells that can avoid forks. The arguments
12614# must be portable across $(()) and expr.
12615if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12616 eval 'as_fn_arith ()
12617 {
12618 as_val=$(( $* ))
12619 }'
12620else
12621 as_fn_arith ()
12622 {
12623 as_val=`expr "$@" || test $? -eq 1`
12624 }
12625fi # as_fn_arith
12626
12627
12628if expr a : '\(a\)' >/dev/null 2>&1 &&
12629 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12630 as_expr=expr
12631else
12632 as_expr=false
12633fi
12634
12635if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12636 as_basename=basename
12637else
12638 as_basename=false
12639fi
12640
12641if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12642 as_dirname=dirname
12643else
12644 as_dirname=false
12645fi
12646
12647as_me=`$as_basename -- "$0" ||
12648$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12649 X"$0" : 'X\(//\)$' \| \
12650 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12651$as_echo X/"$0" |
12652 sed '/^.*\/\([^/][^/]*\)\/*$/{
12653 s//\1/
12654 q
12655 }
12656 /^X\/\(\/\/\)$/{
12657 s//\1/
12658 q
12659 }
12660 /^X\/\(\/\).*/{
12661 s//\1/
12662 q
12663 }
12664 s/.*/./; q'`
12665
12666# Avoid depending upon Character Ranges.
12667as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12668as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12669as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12670as_cr_digits='0123456789'
12671as_cr_alnum=$as_cr_Letters$as_cr_digits
12672
12673ECHO_C= ECHO_N= ECHO_T=
12674case `echo -n x` in #(((((
12675-n*)
12676 case `echo 'xy\c'` in
12677 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12678 xy) ECHO_C='\c';;
12679 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12680 ECHO_T=' ';;
12681 esac;;
12682*)
12683 ECHO_N='-n';;
12684esac
12685
12686rm -f conf$$ conf$$.exe conf$$.file
12687if test -d conf$$.dir; then
12688 rm -f conf$$.dir/conf$$.file
12689else
12690 rm -f conf$$.dir
12691 mkdir conf$$.dir 2>/dev/null
12692fi
12693if (echo >conf$$.file) 2>/dev/null; then
12694 if ln -s conf$$.file conf$$ 2>/dev/null; then
12695 as_ln_s='ln -s'
12696 # ... but there are two gotchas:
12697 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12698 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12699 # In both cases, we have to default to `cp -pR'.
12700 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12701 as_ln_s='cp -pR'
12702 elif ln conf$$.file conf$$ 2>/dev/null; then
12703 as_ln_s=ln
12704 else
12705 as_ln_s='cp -pR'
12706 fi
12707else
12708 as_ln_s='cp -pR'
12709fi
12710rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12711rmdir conf$$.dir 2>/dev/null
12712
12713
12714# as_fn_mkdir_p
12715# -------------
12716# Create "$as_dir" as a directory, including parents if necessary.
12717as_fn_mkdir_p ()
12718{
12719
12720 case $as_dir in #(
12721 -*) as_dir=./$as_dir;;
12722 esac
12723 test -d "$as_dir" || eval $as_mkdir_p || {
12724 as_dirs=
12725 while :; do
12726 case $as_dir in #(
12727 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12728 *) as_qdir=$as_dir;;
12729 esac
12730 as_dirs="'$as_qdir' $as_dirs"
12731 as_dir=`$as_dirname -- "$as_dir" ||
12732$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12733 X"$as_dir" : 'X\(//\)[^/]' \| \
12734 X"$as_dir" : 'X\(//\)$' \| \
12735 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12736$as_echo X"$as_dir" |
12737 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12738 s//\1/
12739 q
12740 }
12741 /^X\(\/\/\)[^/].*/{
12742 s//\1/
12743 q
12744 }
12745 /^X\(\/\/\)$/{
12746 s//\1/
12747 q
12748 }
12749 /^X\(\/\).*/{
12750 s//\1/
12751 q
12752 }
12753 s/.*/./; q'`
12754 test -d "$as_dir" && break
12755 done
12756 test -z "$as_dirs" || eval "mkdir $as_dirs"
12757 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12758
12759
12760} # as_fn_mkdir_p
12761if mkdir -p . 2>/dev/null; then
12762 as_mkdir_p='mkdir -p "$as_dir"'
12763else
12764 test -d ./-p && rmdir ./-p
12765 as_mkdir_p=false
12766fi
12767
12768
12769# as_fn_executable_p FILE
12770# -----------------------
12771# Test if FILE is an executable regular file.
12772as_fn_executable_p ()
12773{
12774 test -f "$1" && test -x "$1"
12775} # as_fn_executable_p
12776as_test_x='test -x'
12777as_executable_p=as_fn_executable_p
12778
12779# Sed expression to map a string onto a valid CPP name.
12780as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12781
12782# Sed expression to map a string onto a valid variable name.
12783as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12784
12785
12786exec 6>&1
12787## ----------------------------------- ##
12788## Main body of $CONFIG_STATUS script. ##
12789## ----------------------------------- ##
12790_ASEOF
12791test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12792
12793cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12794# Save the log message, to keep $0 and so on meaningful, and to
12795# report actual input values of CONFIG_FILES etc. instead of their
12796# values after options handling.
12797ac_log="
12798This file was extended by $as_me, which was
12799generated by GNU Autoconf 2.69. Invocation command line was
12800
12801 CONFIG_FILES = $CONFIG_FILES
12802 CONFIG_HEADERS = $CONFIG_HEADERS
12803 CONFIG_LINKS = $CONFIG_LINKS
12804 CONFIG_COMMANDS = $CONFIG_COMMANDS
12805 $ $0 $@
12806
12807on `(hostname || uname -n) 2>/dev/null | sed 1q`
12808"
12809
12810_ACEOF
12811
12812case $ac_config_files in *"
12813"*) set x $ac_config_files; shift; ac_config_files=$*;;
12814esac
12815
12816case $ac_config_headers in *"
12817"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12818esac
12819
12820
12821cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12822# Files that config.status was made for.
12823config_files="$ac_config_files"
12824config_headers="$ac_config_headers"
12825config_commands="$ac_config_commands"
12826
12827_ACEOF
12828
12829cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12830ac_cs_usage="\
12831\`$as_me' instantiates files and other configuration actions
12832from templates according to the current configuration. Unless the files
12833and actions are specified as TAGs, all are instantiated by default.
12834
12835Usage: $0 [OPTION]... [TAG]...
12836
12837 -h, --help print this help, then exit
12838 -V, --version print version number and configuration settings, then exit
12839 --config print configuration, then exit
12840 -q, --quiet, --silent
12841 do not print progress messages
12842 -d, --debug don't remove temporary files
12843 --recheck update $as_me by reconfiguring in the same conditions
12844 --file=FILE[:TEMPLATE]
12845 instantiate the configuration file FILE
12846 --header=FILE[:TEMPLATE]
12847 instantiate the configuration header FILE
12848
12849Configuration files:
12850$config_files
12851
12852Configuration headers:
12853$config_headers
12854
12855Configuration commands:
12856$config_commands
12857
12858Report bugs to the package provider."
12859
12860_ACEOF
12861cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12862ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12863ac_cs_version="\\
12864config.status
12865configured by $0, generated by GNU Autoconf 2.69,
12866 with options \\"\$ac_cs_config\\"
12867
12868Copyright (C) 2012 Free Software Foundation, Inc.
12869This config.status script is free software; the Free Software Foundation
12870gives unlimited permission to copy, distribute and modify it."
12871
12872ac_pwd='$ac_pwd'
12873srcdir='$srcdir'
12874INSTALL='$INSTALL'
12875AWK='$AWK'
12876test -n "\$AWK" || AWK=awk
12877_ACEOF
12878
12879cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12880# The default lists apply if the user does not specify any file.
12881ac_need_defaults=:
12882while test $# != 0
12883do
12884 case $1 in
12885 --*=?*)
12886 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12887 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12888 ac_shift=:
12889 ;;
12890 --*=)
12891 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12892 ac_optarg=
12893 ac_shift=:
12894 ;;
12895 *)
12896 ac_option=$1
12897 ac_optarg=$2
12898 ac_shift=shift
12899 ;;
12900 esac
12901
12902 case $ac_option in
12903 # Handling of the options.
12904 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12905 ac_cs_recheck=: ;;
12906 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12907 $as_echo "$ac_cs_version"; exit ;;
12908 --config | --confi | --conf | --con | --co | --c )
12909 $as_echo "$ac_cs_config"; exit ;;
12910 --debug | --debu | --deb | --de | --d | -d )
12911 debug=: ;;
12912 --file | --fil | --fi | --f )
12913 $ac_shift
12914 case $ac_optarg in
12915 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12916 '') as_fn_error $? "missing file argument" ;;
12917 esac
12918 as_fn_append CONFIG_FILES " '$ac_optarg'"
12919 ac_need_defaults=false;;
12920 --header | --heade | --head | --hea )
12921 $ac_shift
12922 case $ac_optarg in
12923 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12924 esac
12925 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12926 ac_need_defaults=false;;
12927 --he | --h)
12928 # Conflict between --help and --header
12929 as_fn_error $? "ambiguous option: \`$1'
12930Try \`$0 --help' for more information.";;
12931 --help | --hel | -h )
12932 $as_echo "$ac_cs_usage"; exit ;;
12933 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12934 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12935 ac_cs_silent=: ;;
12936
12937 # This is an error.
12938 -*) as_fn_error $? "unrecognized option: \`$1'
12939Try \`$0 --help' for more information." ;;
12940
12941 *) as_fn_append ac_config_targets " $1"
12942 ac_need_defaults=false ;;
12943
12944 esac
12945 shift
12946done
12947
12948ac_configure_extra_args=
12949
12950if $ac_cs_silent; then
12951 exec 6>/dev/null
12952 ac_configure_extra_args="$ac_configure_extra_args --silent"
12953fi
12954
12955_ACEOF
12956cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12957if \$ac_cs_recheck; then
12958 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12959 shift
12960 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12961 CONFIG_SHELL='$SHELL'
12962 export CONFIG_SHELL
12963 exec "\$@"
12964fi
12965
12966_ACEOF
12967cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12968exec 5>>config.log
12969{
12970 echo
12971 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12972## Running $as_me. ##
12973_ASBOX
12974 $as_echo "$ac_log"
12975} >&5
12976
12977_ACEOF
12978cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12979#
12980# INIT-COMMANDS
12981#
12982ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
12983
12984
12985# The HP-UX ksh and POSIX shell print the target directory to stdout
12986# if CDPATH is set.
12987(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12988
12989sed_quote_subst='$sed_quote_subst'
12990double_quote_subst='$double_quote_subst'
12991delay_variable_subst='$delay_variable_subst'
12992macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12993macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12994enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12995enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12996pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12997enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12998SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12999ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13000host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13001host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13002host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13003build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13004build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13005build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13006SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13007Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13008GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13009EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13010FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13011LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13012NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13013LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13014max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13015ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13016exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13017lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13018lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13019lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13020reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13021reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13022OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13023deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13024file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13025AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13026AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13027STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13028RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13029old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13030old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13031old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13032lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13033CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13034CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13035compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13036GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13037lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13038lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13039lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13040lt_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"`'
13041objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13042MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13043lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13044lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13045lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13046lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13047lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13048need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13049DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13050NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13051LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13052OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13053OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13054libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13055shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13056extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13057archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13058enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13059export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13060whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13061compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13062old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13063old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13064archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13065archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13066module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13067module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13068with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13069allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13070no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13071hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13072hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13073hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13074hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13075hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13076hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13077hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13078hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13079inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13080link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13081fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13082always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13083export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13084exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13085include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13086prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13087file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13088variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13089need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13090need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13091version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13092runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13093shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13094shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13095libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13096library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13097soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13098install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13099postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13100postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13101finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13102finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13103hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13104sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13105sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13106hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13107enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13108enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13109enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13110old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13111striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13112
13113LTCC='$LTCC'
13114LTCFLAGS='$LTCFLAGS'
13115compiler='$compiler_DEFAULT'
13116
13117# A function that is used when there is no print builtin or printf.
13118func_fallback_echo ()
13119{
13120 eval 'cat <<_LTECHO_EOF
13121\$1
13122_LTECHO_EOF'
13123}
13124
13125# Quote evaled strings.
13126for var in SHELL \
13127ECHO \
13128SED \
13129GREP \
13130EGREP \
13131FGREP \
13132LD \
13133NM \
13134LN_S \
13135lt_SP2NL \
13136lt_NL2SP \
13137reload_flag \
13138OBJDUMP \
13139deplibs_check_method \
13140file_magic_cmd \
13141AR \
13142AR_FLAGS \
13143STRIP \
13144RANLIB \
13145CC \
13146CFLAGS \
13147compiler \
13148lt_cv_sys_global_symbol_pipe \
13149lt_cv_sys_global_symbol_to_cdecl \
13150lt_cv_sys_global_symbol_to_c_name_address \
13151lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13152lt_prog_compiler_no_builtin_flag \
13153lt_prog_compiler_wl \
13154lt_prog_compiler_pic \
13155lt_prog_compiler_static \
13156lt_cv_prog_compiler_c_o \
13157need_locks \
13158DSYMUTIL \
13159NMEDIT \
13160LIPO \
13161OTOOL \
13162OTOOL64 \
13163shrext_cmds \
13164export_dynamic_flag_spec \
13165whole_archive_flag_spec \
13166compiler_needs_object \
13167with_gnu_ld \
13168allow_undefined_flag \
13169no_undefined_flag \
13170hardcode_libdir_flag_spec \
13171hardcode_libdir_flag_spec_ld \
13172hardcode_libdir_separator \
13173fix_srcfile_path \
13174exclude_expsyms \
13175include_expsyms \
13176file_list_spec \
13177variables_saved_for_relink \
13178libname_spec \
13179library_names_spec \
13180soname_spec \
13181install_override_mode \
13182finish_eval \
13183old_striplib \
13184striplib; do
13185 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13186 *[\\\\\\\`\\"\\\$]*)
13187 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13188 ;;
13189 *)
13190 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13191 ;;
13192 esac
13193done
13194
13195# Double-quote double-evaled strings.
13196for var in reload_cmds \
13197old_postinstall_cmds \
13198old_postuninstall_cmds \
13199old_archive_cmds \
13200extract_expsyms_cmds \
13201old_archive_from_new_cmds \
13202old_archive_from_expsyms_cmds \
13203archive_cmds \
13204archive_expsym_cmds \
13205module_cmds \
13206module_expsym_cmds \
13207export_symbols_cmds \
13208prelink_cmds \
13209postinstall_cmds \
13210postuninstall_cmds \
13211finish_cmds \
13212sys_lib_search_path_spec \
13213sys_lib_dlsearch_path_spec; do
13214 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13215 *[\\\\\\\`\\"\\\$]*)
13216 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13217 ;;
13218 *)
13219 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13220 ;;
13221 esac
13222done
13223
13224ac_aux_dir='$ac_aux_dir'
13225xsi_shell='$xsi_shell'
13226lt_shell_append='$lt_shell_append'
13227
13228# See if we are running on zsh, and set the options which allow our
13229# commands through without removal of \ escapes INIT.
13230if test -n "\${ZSH_VERSION+set}" ; then
13231 setopt NO_GLOB_SUBST
13232fi
13233
13234
13235 PACKAGE='$PACKAGE'
13236 VERSION='$VERSION'
13237 TIMESTAMP='$TIMESTAMP'
13238 RM='$RM'
13239 ofile='$ofile'
13240
13241
13242
13243
13244_ACEOF
13245
13246cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13247
13248# Handling of arguments.
13249for ac_config_target in $ac_config_targets
13250do
13251 case $ac_config_target in
13252 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
13253 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
13254 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13255 "Makefile.sim") CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
13256 "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
13257 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
13258 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
13259 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
13260
13261 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13262 esac
13263done
13264
13265
13266# If the user did not use the arguments to specify the items to instantiate,
13267# then the envvar interface is used. Set only those that are not.
13268# We use the long form for the default assignment because of an extremely
13269# bizarre bug on SunOS 4.1.3.
13270if $ac_need_defaults; then
13271 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13272 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13273 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13274fi
13275
13276# Have a temporary directory for convenience. Make it in the build tree
13277# simply because there is no reason against having it here, and in addition,
13278# creating and moving files from /tmp can sometimes cause problems.
13279# Hook for its removal unless debugging.
13280# Note that there is a small window in which the directory will not be cleaned:
13281# after its creation but before its name has been assigned to `$tmp'.
13282$debug ||
13283{
13284 tmp= ac_tmp=
13285 trap 'exit_status=$?
13286 : "${ac_tmp:=$tmp}"
13287 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13288' 0
13289 trap 'as_fn_exit 1' 1 2 13 15
13290}
13291# Create a (secure) tmp directory for tmp files.
13292
13293{
13294 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13295 test -d "$tmp"
13296} ||
13297{
13298 tmp=./conf$$-$RANDOM
13299 (umask 077 && mkdir "$tmp")
13300} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13301ac_tmp=$tmp
13302
13303# Set up the scripts for CONFIG_FILES section.
13304# No need to generate them if there are no CONFIG_FILES.
13305# This happens for instance with `./config.status config.h'.
13306if test -n "$CONFIG_FILES"; then
13307
13308
13309ac_cr=`echo X | tr X '\015'`
13310# On cygwin, bash can eat \r inside `` if the user requested igncr.
13311# But we know of no other shell where ac_cr would be empty at this
13312# point, so we can use a bashism as a fallback.
13313if test "x$ac_cr" = x; then
13314 eval ac_cr=\$\'\\r\'
13315fi
13316ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13317if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13318 ac_cs_awk_cr='\\r'
13319else
13320 ac_cs_awk_cr=$ac_cr
13321fi
13322
13323echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13324_ACEOF
13325
13326
13327{
13328 echo "cat >conf$$subs.awk <<_ACEOF" &&
13329 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13330 echo "_ACEOF"
13331} >conf$$subs.sh ||
13332 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13333ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13334ac_delim='%!_!# '
13335for ac_last_try in false false false false false :; do
13336 . ./conf$$subs.sh ||
13337 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13338
13339 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13340 if test $ac_delim_n = $ac_delim_num; then
13341 break
13342 elif $ac_last_try; then
13343 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13344 else
13345 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13346 fi
13347done
13348rm -f conf$$subs.sh
13349
13350cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13351cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13352_ACEOF
13353sed -n '
13354h
13355s/^/S["/; s/!.*/"]=/
13356p
13357g
13358s/^[^!]*!//
13359:repl
13360t repl
13361s/'"$ac_delim"'$//
13362t delim
13363:nl
13364h
13365s/\(.\{148\}\)..*/\1/
13366t more1
13367s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13368p
13369n
13370b repl
13371:more1
13372s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13373p
13374g
13375s/.\{148\}//
13376t nl
13377:delim
13378h
13379s/\(.\{148\}\)..*/\1/
13380t more2
13381s/["\\]/\\&/g; s/^/"/; s/$/"/
13382p
13383b
13384:more2
13385s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13386p
13387g
13388s/.\{148\}//
13389t delim
13390' <conf$$subs.awk | sed '
13391/^[^""]/{
13392 N
13393 s/\n//
13394}
13395' >>$CONFIG_STATUS || ac_write_fail=1
13396rm -f conf$$subs.awk
13397cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13398_ACAWK
13399cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13400 for (key in S) S_is_set[key] = 1
13401 FS = "\a"
13402
13403}
13404{
13405 line = $ 0
13406 nfields = split(line, field, "@")
13407 substed = 0
13408 len = length(field[1])
13409 for (i = 2; i < nfields; i++) {
13410 key = field[i]
13411 keylen = length(key)
13412 if (S_is_set[key]) {
13413 value = S[key]
13414 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13415 len += length(value) + length(field[++i])
13416 substed = 1
13417 } else
13418 len += 1 + keylen
13419 }
13420
13421 print line
13422}
13423
13424_ACAWK
13425_ACEOF
13426cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13427if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13428 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13429else
13430 cat
13431fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13432 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13433_ACEOF
13434
13435# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13436# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13437# trailing colons and then remove the whole line if VPATH becomes empty
13438# (actually we leave an empty line to preserve line numbers).
13439if test "x$srcdir" = x.; then
13440 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13441h
13442s///
13443s/^/:/
13444s/[ ]*$/:/
13445s/:\$(srcdir):/:/g
13446s/:\${srcdir}:/:/g
13447s/:@srcdir@:/:/g
13448s/^:*//
13449s/:*$//
13450x
13451s/\(=[ ]*\).*/\1/
13452G
13453s/\n//
13454s/^[^=]*=[ ]*$//
13455}'
13456fi
13457
13458cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13459fi # test -n "$CONFIG_FILES"
13460
13461# Set up the scripts for CONFIG_HEADERS section.
13462# No need to generate them if there are no CONFIG_HEADERS.
13463# This happens for instance with `./config.status Makefile'.
13464if test -n "$CONFIG_HEADERS"; then
13465cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13466BEGIN {
13467_ACEOF
13468
13469# Transform confdefs.h into an awk script `defines.awk', embedded as
13470# here-document in config.status, that substitutes the proper values into
13471# config.h.in to produce config.h.
13472
13473# Create a delimiter string that does not exist in confdefs.h, to ease
13474# handling of long lines.
13475ac_delim='%!_!# '
13476for ac_last_try in false false :; do
13477 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13478 if test -z "$ac_tt"; then
13479 break
13480 elif $ac_last_try; then
13481 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13482 else
13483 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13484 fi
13485done
13486
13487# For the awk script, D is an array of macro values keyed by name,
13488# likewise P contains macro parameters if any. Preserve backslash
13489# newline sequences.
13490
13491ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13492sed -n '
13493s/.\{148\}/&'"$ac_delim"'/g
13494t rset
13495:rset
13496s/^[ ]*#[ ]*define[ ][ ]*/ /
13497t def
13498d
13499:def
13500s/\\$//
13501t bsnl
13502s/["\\]/\\&/g
13503s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13504D["\1"]=" \3"/p
13505s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13506d
13507:bsnl
13508s/["\\]/\\&/g
13509s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13510D["\1"]=" \3\\\\\\n"\\/p
13511t cont
13512s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13513t cont
13514d
13515:cont
13516n
13517s/.\{148\}/&'"$ac_delim"'/g
13518t clear
13519:clear
13520s/\\$//
13521t bsnlc
13522s/["\\]/\\&/g; s/^/"/; s/$/"/p
13523d
13524:bsnlc
13525s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13526b cont
13527' <confdefs.h | sed '
13528s/'"$ac_delim"'/"\\\
13529"/g' >>$CONFIG_STATUS || ac_write_fail=1
13530
13531cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13532 for (key in D) D_is_set[key] = 1
13533 FS = "\a"
13534}
13535/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13536 line = \$ 0
13537 split(line, arg, " ")
13538 if (arg[1] == "#") {
13539 defundef = arg[2]
13540 mac1 = arg[3]
13541 } else {
13542 defundef = substr(arg[1], 2)
13543 mac1 = arg[2]
13544 }
13545 split(mac1, mac2, "(") #)
13546 macro = mac2[1]
13547 prefix = substr(line, 1, index(line, defundef) - 1)
13548 if (D_is_set[macro]) {
13549 # Preserve the white space surrounding the "#".
13550 print prefix "define", macro P[macro] D[macro]
13551 next
13552 } else {
13553 # Replace #undef with comments. This is necessary, for example,
13554 # in the case of _POSIX_SOURCE, which is predefined and required
13555 # on some systems where configure will not decide to define it.
13556 if (defundef == "undef") {
13557 print "/*", prefix defundef, macro, "*/"
13558 next
13559 }
13560 }
13561}
13562{ print }
13563_ACAWK
13564_ACEOF
13565cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13566 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13567fi # test -n "$CONFIG_HEADERS"
13568
13569
13570eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13571shift
13572for ac_tag
13573do
13574 case $ac_tag in
13575 :[FHLC]) ac_mode=$ac_tag; continue;;
13576 esac
13577 case $ac_mode$ac_tag in
13578 :[FHL]*:*);;
13579 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13580 :[FH]-) ac_tag=-:-;;
13581 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13582 esac
13583 ac_save_IFS=$IFS
13584 IFS=:
13585 set x $ac_tag
13586 IFS=$ac_save_IFS
13587 shift
13588 ac_file=$1
13589 shift
13590
13591 case $ac_mode in
13592 :L) ac_source=$1;;
13593 :[FH])
13594 ac_file_inputs=
13595 for ac_f
13596 do
13597 case $ac_f in
13598 -) ac_f="$ac_tmp/stdin";;
13599 *) # Look for the file first in the build tree, then in the source tree
13600 # (if the path is not absolute). The absolute path cannot be DOS-style,
13601 # because $ac_f cannot contain `:'.
13602 test -f "$ac_f" ||
13603 case $ac_f in
13604 [\\/$]*) false;;
13605 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13606 esac ||
13607 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13608 esac
13609 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13610 as_fn_append ac_file_inputs " '$ac_f'"
13611 done
13612
13613 # Let's still pretend it is `configure' which instantiates (i.e., don't
13614 # use $as_me), people would be surprised to read:
13615 # /* config.h. Generated by config.status. */
13616 configure_input='Generated from '`
13617 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13618 `' by configure.'
13619 if test x"$ac_file" != x-; then
13620 configure_input="$ac_file. $configure_input"
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13622$as_echo "$as_me: creating $ac_file" >&6;}
13623 fi
13624 # Neutralize special characters interpreted by sed in replacement strings.
13625 case $configure_input in #(
13626 *\&* | *\|* | *\\* )
13627 ac_sed_conf_input=`$as_echo "$configure_input" |
13628 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13629 *) ac_sed_conf_input=$configure_input;;
13630 esac
13631
13632 case $ac_tag in
13633 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13634 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13635 esac
13636 ;;
13637 esac
13638
13639 ac_dir=`$as_dirname -- "$ac_file" ||
13640$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13641 X"$ac_file" : 'X\(//\)[^/]' \| \
13642 X"$ac_file" : 'X\(//\)$' \| \
13643 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13644$as_echo X"$ac_file" |
13645 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13646 s//\1/
13647 q
13648 }
13649 /^X\(\/\/\)[^/].*/{
13650 s//\1/
13651 q
13652 }
13653 /^X\(\/\/\)$/{
13654 s//\1/
13655 q
13656 }
13657 /^X\(\/\).*/{
13658 s//\1/
13659 q
13660 }
13661 s/.*/./; q'`
13662 as_dir="$ac_dir"; as_fn_mkdir_p
13663 ac_builddir=.
13664
13665case "$ac_dir" in
13666.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13667*)
13668 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13669 # A ".." for each directory in $ac_dir_suffix.
13670 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13671 case $ac_top_builddir_sub in
13672 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13673 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13674 esac ;;
13675esac
13676ac_abs_top_builddir=$ac_pwd
13677ac_abs_builddir=$ac_pwd$ac_dir_suffix
13678# for backward compatibility:
13679ac_top_builddir=$ac_top_build_prefix
13680
13681case $srcdir in
13682 .) # We are building in place.
13683 ac_srcdir=.
13684 ac_top_srcdir=$ac_top_builddir_sub
13685 ac_abs_top_srcdir=$ac_pwd ;;
13686 [\\/]* | ?:[\\/]* ) # Absolute name.
13687 ac_srcdir=$srcdir$ac_dir_suffix;
13688 ac_top_srcdir=$srcdir
13689 ac_abs_top_srcdir=$srcdir ;;
13690 *) # Relative name.
13691 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13692 ac_top_srcdir=$ac_top_build_prefix$srcdir
13693 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13694esac
13695ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13696
13697
13698 case $ac_mode in
13699 :F)
13700 #
13701 # CONFIG_FILE
13702 #
13703
13704 case $INSTALL in
13705 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13706 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13707 esac
13708_ACEOF
13709
13710cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13711# If the template does not know about datarootdir, expand it.
13712# FIXME: This hack should be removed a few years after 2.60.
13713ac_datarootdir_hack=; ac_datarootdir_seen=
13714ac_sed_dataroot='
13715/datarootdir/ {
13716 p
13717 q
13718}
13719/@datadir@/p
13720/@docdir@/p
13721/@infodir@/p
13722/@localedir@/p
13723/@mandir@/p'
13724case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13725*datarootdir*) ac_datarootdir_seen=yes;;
13726*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13728$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13729_ACEOF
13730cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13731 ac_datarootdir_hack='
13732 s&@datadir@&$datadir&g
13733 s&@docdir@&$docdir&g
13734 s&@infodir@&$infodir&g
13735 s&@localedir@&$localedir&g
13736 s&@mandir@&$mandir&g
13737 s&\\\${datarootdir}&$datarootdir&g' ;;
13738esac
13739_ACEOF
13740
13741# Neutralize VPATH when `$srcdir' = `.'.
13742# Shell code in configure.ac might set extrasub.
13743# FIXME: do we really want to maintain this feature?
13744cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13745ac_sed_extra="$ac_vpsub
13746$extrasub
13747_ACEOF
13748cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13749:t
13750/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13751s|@configure_input@|$ac_sed_conf_input|;t t
13752s&@top_builddir@&$ac_top_builddir_sub&;t t
13753s&@top_build_prefix@&$ac_top_build_prefix&;t t
13754s&@srcdir@&$ac_srcdir&;t t
13755s&@abs_srcdir@&$ac_abs_srcdir&;t t
13756s&@top_srcdir@&$ac_top_srcdir&;t t
13757s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13758s&@builddir@&$ac_builddir&;t t
13759s&@abs_builddir@&$ac_abs_builddir&;t t
13760s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13761s&@INSTALL@&$ac_INSTALL&;t t
13762$ac_datarootdir_hack
13763"
13764eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13765 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13766
13767test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13768 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13769 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13770 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13772which seems to be undefined. Please make sure it is defined" >&5
13773$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13774which seems to be undefined. Please make sure it is defined" >&2;}
13775
13776 rm -f "$ac_tmp/stdin"
13777 case $ac_file in
13778 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13779 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13780 esac \
13781 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13782 ;;
13783 :H)
13784 #
13785 # CONFIG_HEADER
13786 #
13787 if test x"$ac_file" != x-; then
13788 {
13789 $as_echo "/* $configure_input */" \
13790 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13791 } >"$ac_tmp/config.h" \
13792 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13793 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13795$as_echo "$as_me: $ac_file is unchanged" >&6;}
13796 else
13797 rm -f "$ac_file"
13798 mv "$ac_tmp/config.h" "$ac_file" \
13799 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13800 fi
13801 else
13802 $as_echo "/* $configure_input */" \
13803 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13804 || as_fn_error $? "could not create -" "$LINENO" 5
13805 fi
13806 ;;
13807
13808 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13809$as_echo "$as_me: executing $ac_file commands" >&6;}
13810 ;;
13811 esac
13812
13813
13814 case $ac_file$ac_mode in
13815 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
13816 "libtool":C)
13817
13818 # See if we are running on zsh, and set the options which allow our
13819 # commands through without removal of \ escapes.
13820 if test -n "${ZSH_VERSION+set}" ; then
13821 setopt NO_GLOB_SUBST
13822 fi
13823
13824 cfgfile="${ofile}T"
13825 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13826 $RM "$cfgfile"
13827
13828 cat <<_LT_EOF >> "$cfgfile"
13829#! $SHELL
13830
13831# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13832# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13833# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13834# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13835#
13836# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13837# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
13838# Written by Gordon Matzigkeit, 1996
13839#
13840# This file is part of GNU Libtool.
13841#
13842# GNU Libtool is free software; you can redistribute it and/or
13843# modify it under the terms of the GNU General Public License as
13844# published by the Free Software Foundation; either version 2 of
13845# the License, or (at your option) any later version.
13846#
13847# As a special exception to the GNU General Public License,
13848# if you distribute this file as part of a program or library that
13849# is built using GNU Libtool, you may include this file under the
13850# same distribution terms that you use for the rest of that program.
13851#
13852# GNU Libtool is distributed in the hope that it will be useful,
13853# but WITHOUT ANY WARRANTY; without even the implied warranty of
13854# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13855# GNU General Public License for more details.
13856#
13857# You should have received a copy of the GNU General Public License
13858# along with GNU Libtool; see the file COPYING. If not, a copy
13859# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13860# obtained by writing to the Free Software Foundation, Inc.,
13861# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13862
13863
13864# The names of the tagged configurations supported by this script.
13865available_tags=""
13866
13867# ### BEGIN LIBTOOL CONFIG
13868
13869# Which release of libtool.m4 was used?
13870macro_version=$macro_version
13871macro_revision=$macro_revision
13872
13873# Whether or not to build shared libraries.
13874build_libtool_libs=$enable_shared
13875
13876# Whether or not to build static libraries.
13877build_old_libs=$enable_static
13878
13879# What type of objects to build.
13880pic_mode=$pic_mode
13881
13882# Whether or not to optimize for fast installation.
13883fast_install=$enable_fast_install
13884
13885# Shell to use when invoking shell scripts.
13886SHELL=$lt_SHELL
13887
13888# An echo program that protects backslashes.
13889ECHO=$lt_ECHO
13890
13891# The host system.
13892host_alias=$host_alias
13893host=$host
13894host_os=$host_os
13895
13896# The build system.
13897build_alias=$build_alias
13898build=$build
13899build_os=$build_os
13900
13901# A sed program that does not truncate output.
13902SED=$lt_SED
13903
13904# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13905Xsed="\$SED -e 1s/^X//"
13906
13907# A grep program that handles long lines.
13908GREP=$lt_GREP
13909
13910# An ERE matcher.
13911EGREP=$lt_EGREP
13912
13913# A literal string matcher.
13914FGREP=$lt_FGREP
13915
13916# A BSD- or MS-compatible name lister.
13917NM=$lt_NM
13918
13919# Whether we need soft or hard links.
13920LN_S=$lt_LN_S
13921
13922# What is the maximum length of a command?
13923max_cmd_len=$max_cmd_len
13924
13925# Object file suffix (normally "o").
13926objext=$ac_objext
13927
13928# Executable file suffix (normally "").
13929exeext=$exeext
13930
13931# whether the shell understands "unset".
13932lt_unset=$lt_unset
13933
13934# turn spaces into newlines.
13935SP2NL=$lt_lt_SP2NL
13936
13937# turn newlines into spaces.
13938NL2SP=$lt_lt_NL2SP
13939
13940# An object symbol dumper.
13941OBJDUMP=$lt_OBJDUMP
13942
13943# Method to check whether dependent libraries are shared objects.
13944deplibs_check_method=$lt_deplibs_check_method
13945
13946# Command to use when deplibs_check_method == "file_magic".
13947file_magic_cmd=$lt_file_magic_cmd
13948
13949# The archiver.
13950AR=$lt_AR
13951AR_FLAGS=$lt_AR_FLAGS
13952
13953# A symbol stripping program.
13954STRIP=$lt_STRIP
13955
13956# Commands used to install an old-style archive.
13957RANLIB=$lt_RANLIB
13958old_postinstall_cmds=$lt_old_postinstall_cmds
13959old_postuninstall_cmds=$lt_old_postuninstall_cmds
13960
13961# Whether to use a lock for old archive extraction.
13962lock_old_archive_extraction=$lock_old_archive_extraction
13963
13964# A C compiler.
13965LTCC=$lt_CC
13966
13967# LTCC compiler flags.
13968LTCFLAGS=$lt_CFLAGS
13969
13970# Take the output of nm and produce a listing of raw symbols and C names.
13971global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13972
13973# Transform the output of nm in a proper C declaration.
13974global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13975
13976# Transform the output of nm in a C name address pair.
13977global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13978
13979# Transform the output of nm in a C name address pair when lib prefix is needed.
13980global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13981
13982# The name of the directory that contains temporary libtool files.
13983objdir=$objdir
13984
13985# Used to examine libraries when file_magic_cmd begins with "file".
13986MAGIC_CMD=$MAGIC_CMD
13987
13988# Must we lock files when doing compilation?
13989need_locks=$lt_need_locks
13990
13991# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13992DSYMUTIL=$lt_DSYMUTIL
13993
13994# Tool to change global to local symbols on Mac OS X.
13995NMEDIT=$lt_NMEDIT
13996
13997# Tool to manipulate fat objects and archives on Mac OS X.
13998LIPO=$lt_LIPO
13999
14000# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14001OTOOL=$lt_OTOOL
14002
14003# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14004OTOOL64=$lt_OTOOL64
14005
14006# Old archive suffix (normally "a").
14007libext=$libext
14008
14009# Shared library suffix (normally ".so").
14010shrext_cmds=$lt_shrext_cmds
14011
14012# The commands to extract the exported symbol list from a shared archive.
14013extract_expsyms_cmds=$lt_extract_expsyms_cmds
14014
14015# Variables whose values should be saved in libtool wrapper scripts and
14016# restored at link time.
14017variables_saved_for_relink=$lt_variables_saved_for_relink
14018
14019# Do we need the "lib" prefix for modules?
14020need_lib_prefix=$need_lib_prefix
14021
14022# Do we need a version for libraries?
14023need_version=$need_version
14024
14025# Library versioning type.
14026version_type=$version_type
14027
14028# Shared library runtime path variable.
14029runpath_var=$runpath_var
14030
14031# Shared library path variable.
14032shlibpath_var=$shlibpath_var
14033
14034# Is shlibpath searched before the hard-coded library search path?
14035shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14036
14037# Format of library name prefix.
14038libname_spec=$lt_libname_spec
14039
14040# List of archive names. First name is the real one, the rest are links.
14041# The last name is the one that the linker finds with -lNAME
14042library_names_spec=$lt_library_names_spec
14043
14044# The coded name of the library, if different from the real name.
14045soname_spec=$lt_soname_spec
14046
14047# Permission mode override for installation of shared libraries.
14048install_override_mode=$lt_install_override_mode
14049
14050# Command to use after installation of a shared archive.
14051postinstall_cmds=$lt_postinstall_cmds
14052
14053# Command to use after uninstallation of a shared archive.
14054postuninstall_cmds=$lt_postuninstall_cmds
14055
14056# Commands used to finish a libtool library installation in a directory.
14057finish_cmds=$lt_finish_cmds
14058
14059# As "finish_cmds", except a single script fragment to be evaled but
14060# not shown.
14061finish_eval=$lt_finish_eval
14062
14063# Whether we should hardcode library paths into libraries.
14064hardcode_into_libs=$hardcode_into_libs
14065
14066# Compile-time system search path for libraries.
14067sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14068
14069# Run-time system search path for libraries.
14070sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14071
14072# Whether dlopen is supported.
14073dlopen_support=$enable_dlopen
14074
14075# Whether dlopen of programs is supported.
14076dlopen_self=$enable_dlopen_self
14077
14078# Whether dlopen of statically linked programs is supported.
14079dlopen_self_static=$enable_dlopen_self_static
14080
14081# Commands to strip libraries.
14082old_striplib=$lt_old_striplib
14083striplib=$lt_striplib
14084
14085
14086# The linker used to build libraries.
14087LD=$lt_LD
14088
14089# How to create reloadable object files.
14090reload_flag=$lt_reload_flag
14091reload_cmds=$lt_reload_cmds
14092
14093# Commands used to build an old-style archive.
14094old_archive_cmds=$lt_old_archive_cmds
14095
14096# A language specific compiler.
14097CC=$lt_compiler
14098
14099# Is the compiler the GNU compiler?
14100with_gcc=$GCC
14101
14102# Compiler flag to turn off builtin functions.
14103no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14104
14105# How to pass a linker flag through the compiler.
14106wl=$lt_lt_prog_compiler_wl
14107
14108# Additional compiler flags for building library objects.
14109pic_flag=$lt_lt_prog_compiler_pic
14110
14111# Compiler flag to prevent dynamic linking.
14112link_static_flag=$lt_lt_prog_compiler_static
14113
14114# Does compiler simultaneously support -c and -o options?
14115compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14116
14117# Whether or not to add -lc for building shared libraries.
14118build_libtool_need_lc=$archive_cmds_need_lc
14119
14120# Whether or not to disallow shared libs when runtime libs are static.
14121allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14122
14123# Compiler flag to allow reflexive dlopens.
14124export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14125
14126# Compiler flag to generate shared objects directly from archives.
14127whole_archive_flag_spec=$lt_whole_archive_flag_spec
14128
14129# Whether the compiler copes with passing no objects directly.
14130compiler_needs_object=$lt_compiler_needs_object
14131
14132# Create an old-style archive from a shared archive.
14133old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14134
14135# Create a temporary old-style archive to link instead of a shared archive.
14136old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14137
14138# Commands used to build a shared archive.
14139archive_cmds=$lt_archive_cmds
14140archive_expsym_cmds=$lt_archive_expsym_cmds
14141
14142# Commands used to build a loadable module if different from building
14143# a shared archive.
14144module_cmds=$lt_module_cmds
14145module_expsym_cmds=$lt_module_expsym_cmds
14146
14147# Whether we are building with GNU ld or not.
14148with_gnu_ld=$lt_with_gnu_ld
14149
14150# Flag that allows shared libraries with undefined symbols to be built.
14151allow_undefined_flag=$lt_allow_undefined_flag
14152
14153# Flag that enforces no undefined symbols.
14154no_undefined_flag=$lt_no_undefined_flag
14155
14156# Flag to hardcode \$libdir into a binary during linking.
14157# This must work even if \$libdir does not exist
14158hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14159
14160# If ld is used when linking, flag to hardcode \$libdir into a binary
14161# during linking. This must work even if \$libdir does not exist.
14162hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14163
14164# Whether we need a single "-rpath" flag with a separated argument.
14165hardcode_libdir_separator=$lt_hardcode_libdir_separator
14166
14167# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14168# DIR into the resulting binary.
14169hardcode_direct=$hardcode_direct
14170
14171# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14172# DIR into the resulting binary and the resulting library dependency is
14173# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14174# library is relocated.
14175hardcode_direct_absolute=$hardcode_direct_absolute
14176
14177# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14178# into the resulting binary.
14179hardcode_minus_L=$hardcode_minus_L
14180
14181# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14182# into the resulting binary.
14183hardcode_shlibpath_var=$hardcode_shlibpath_var
14184
14185# Set to "yes" if building a shared library automatically hardcodes DIR
14186# into the library and all subsequent libraries and executables linked
14187# against it.
14188hardcode_automatic=$hardcode_automatic
14189
14190# Set to yes if linker adds runtime paths of dependent libraries
14191# to runtime path list.
14192inherit_rpath=$inherit_rpath
14193
14194# Whether libtool must link a program against all its dependency libraries.
14195link_all_deplibs=$link_all_deplibs
14196
14197# Fix the shell variable \$srcfile for the compiler.
14198fix_srcfile_path=$lt_fix_srcfile_path
14199
14200# Set to "yes" if exported symbols are required.
14201always_export_symbols=$always_export_symbols
14202
14203# The commands to list exported symbols.
14204export_symbols_cmds=$lt_export_symbols_cmds
14205
14206# Symbols that should not be listed in the preloaded symbols.
14207exclude_expsyms=$lt_exclude_expsyms
14208
14209# Symbols that must always be exported.
14210include_expsyms=$lt_include_expsyms
14211
14212# Commands necessary for linking programs (against libraries) with templates.
14213prelink_cmds=$lt_prelink_cmds
14214
14215# Specify filename containing input files.
14216file_list_spec=$lt_file_list_spec
14217
14218# How to hardcode a shared library path into an executable.
14219hardcode_action=$hardcode_action
14220
14221# ### END LIBTOOL CONFIG
14222
14223_LT_EOF
14224
14225 case $host_os in
14226 aix3*)
14227 cat <<\_LT_EOF >> "$cfgfile"
14228# AIX sometimes has problems with the GCC collect2 program. For some
14229# reason, if we set the COLLECT_NAMES environment variable, the problems
14230# vanish in a puff of smoke.
14231if test "X${COLLECT_NAMES+set}" != Xset; then
14232 COLLECT_NAMES=
14233 export COLLECT_NAMES
14234fi
14235_LT_EOF
14236 ;;
14237 esac
14238
14239
14240ltmain="$ac_aux_dir/ltmain.sh"
14241
14242
14243 # We use sed instead of cat because bash on DJGPP gets confused if
14244 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14245 # text mode, it properly converts lines to CR/LF. This bash problem
14246 # is reportedly fixed, but why not run on old versions too?
14247 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14248 || (rm -f "$cfgfile"; exit 1)
14249
14250 case $xsi_shell in
14251 yes)
14252 cat << \_LT_EOF >> "$cfgfile"
14253
14254# func_dirname file append nondir_replacement
14255# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14256# otherwise set result to NONDIR_REPLACEMENT.
14257func_dirname ()
14258{
14259 case ${1} in
14260 */*) func_dirname_result="${1%/*}${2}" ;;
14261 * ) func_dirname_result="${3}" ;;
14262 esac
14263}
14264
14265# func_basename file
14266func_basename ()
14267{
14268 func_basename_result="${1##*/}"
14269}
14270
14271# func_dirname_and_basename file append nondir_replacement
14272# perform func_basename and func_dirname in a single function
14273# call:
14274# dirname: Compute the dirname of FILE. If nonempty,
14275# add APPEND to the result, otherwise set result
14276# to NONDIR_REPLACEMENT.
14277# value returned in "$func_dirname_result"
14278# basename: Compute filename of FILE.
14279# value retuned in "$func_basename_result"
14280# Implementation must be kept synchronized with func_dirname
14281# and func_basename. For efficiency, we do not delegate to
14282# those functions but instead duplicate the functionality here.
14283func_dirname_and_basename ()
14284{
14285 case ${1} in
14286 */*) func_dirname_result="${1%/*}${2}" ;;
14287 * ) func_dirname_result="${3}" ;;
14288 esac
14289 func_basename_result="${1##*/}"
14290}
14291
14292# func_stripname prefix suffix name
14293# strip PREFIX and SUFFIX off of NAME.
14294# PREFIX and SUFFIX must not contain globbing or regex special
14295# characters, hashes, percent signs, but SUFFIX may contain a leading
14296# dot (in which case that matches only a dot).
14297func_stripname ()
14298{
14299 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14300 # positional parameters, so assign one to ordinary parameter first.
14301 func_stripname_result=${3}
14302 func_stripname_result=${func_stripname_result#"${1}"}
14303 func_stripname_result=${func_stripname_result%"${2}"}
14304}
14305
14306# func_opt_split
14307func_opt_split ()
14308{
14309 func_opt_split_opt=${1%%=*}
14310 func_opt_split_arg=${1#*=}
14311}
14312
14313# func_lo2o object
14314func_lo2o ()
14315{
14316 case ${1} in
14317 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14318 *) func_lo2o_result=${1} ;;
14319 esac
14320}
14321
14322# func_xform libobj-or-source
14323func_xform ()
14324{
14325 func_xform_result=${1%.*}.lo
14326}
14327
14328# func_arith arithmetic-term...
14329func_arith ()
14330{
14331 func_arith_result=$(( $* ))
14332}
14333
14334# func_len string
14335# STRING may not start with a hyphen.
14336func_len ()
14337{
14338 func_len_result=${#1}
14339}
14340
14341_LT_EOF
14342 ;;
14343 *) # Bourne compatible functions.
14344 cat << \_LT_EOF >> "$cfgfile"
14345
14346# func_dirname file append nondir_replacement
14347# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14348# otherwise set result to NONDIR_REPLACEMENT.
14349func_dirname ()
14350{
14351 # Extract subdirectory from the argument.
14352 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
14353 if test "X$func_dirname_result" = "X${1}"; then
14354 func_dirname_result="${3}"
14355 else
14356 func_dirname_result="$func_dirname_result${2}"
14357 fi
14358}
14359
14360# func_basename file
14361func_basename ()
14362{
14363 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
14364}
14365
14366
14367# func_stripname prefix suffix name
14368# strip PREFIX and SUFFIX off of NAME.
14369# PREFIX and SUFFIX must not contain globbing or regex special
14370# characters, hashes, percent signs, but SUFFIX may contain a leading
14371# dot (in which case that matches only a dot).
14372# func_strip_suffix prefix name
14373func_stripname ()
14374{
14375 case ${2} in
14376 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14377 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14378 esac
14379}
14380
14381# sed scripts:
14382my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14383my_sed_long_arg='1s/^-[^=]*=//'
14384
14385# func_opt_split
14386func_opt_split ()
14387{
14388 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14389 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
14390}
14391
14392# func_lo2o object
14393func_lo2o ()
14394{
14395 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
14396}
14397
14398# func_xform libobj-or-source
14399func_xform ()
14400{
14401 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
14402}
14403
14404# func_arith arithmetic-term...
14405func_arith ()
14406{
14407 func_arith_result=`expr "$@"`
14408}
14409
14410# func_len string
14411# STRING may not start with a hyphen.
14412func_len ()
14413{
14414 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14415}
14416
14417_LT_EOF
14418esac
14419
14420case $lt_shell_append in
14421 yes)
14422 cat << \_LT_EOF >> "$cfgfile"
14423
14424# func_append var value
14425# Append VALUE to the end of shell variable VAR.
14426func_append ()
14427{
14428 eval "$1+=\$2"
14429}
14430_LT_EOF
14431 ;;
14432 *)
14433 cat << \_LT_EOF >> "$cfgfile"
14434
14435# func_append var value
14436# Append VALUE to the end of shell variable VAR.
14437func_append ()
14438{
14439 eval "$1=\$$1\$2"
14440}
14441
14442_LT_EOF
14443 ;;
14444 esac
14445
14446
14447 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14448 || (rm -f "$cfgfile"; exit 1)
14449
14450 mv -f "$cfgfile" "$ofile" ||
14451 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14452 chmod +x "$ofile"
14453
14454 ;;
14455 "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
14456 rm -f Makesim1.tmp Makesim2.tmp Makefile
14457 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
14458 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
14459 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
14460 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
14461 <Makefile.sim >Makefile
14462 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
14463 ;;
14464 "stamp-h":C) echo > stamp-h ;;
14465
14466 esac
14467done # for ac_tag
14468
14469
14470as_fn_exit 0
14471_ACEOF
14472ac_clean_files=$ac_clean_files_save
14473
14474test $ac_write_fail = 0 ||
14475 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14476
14477
14478# configure is writing to config.log, and then calls config.status.
14479# config.status does its own redirection, appending to config.log.
14480# Unfortunately, on DOS this fails, as config.log is still kept open
14481# by configure, so config.status won't be able to write to it; its
14482# output is simply discarded. So we exec the FD to /dev/null,
14483# effectively closing config.log, so it can be properly (re)opened and
14484# appended to by config.status. When coming back to configure, we
14485# need to make the FD available again.
14486if test "$no_create" != yes; then
14487 ac_cs_success=:
14488 ac_config_status_args=
14489 test "$silent" = yes &&
14490 ac_config_status_args="$ac_config_status_args --quiet"
14491 exec 5>/dev/null
14492 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14493 exec 5>>config.log
14494 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14495 # would make configure fail if this is the last instruction.
14496 $ac_cs_success || as_fn_exit 1
14497fi
14498if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14500$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14501fi
14502
14503
This page took 0.606492 seconds and 4 git commands to generate.