]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/configure
Automatic date update in version.in
[thirdparty/binutils-gdb.git] / sim / configure
CommitLineData
c906108c 1#! /bin/sh
c906108c 2# Guess values for system-dependent variables and create Makefiles.
6bddc3e8
MF
3# Generated by GNU Autoconf 2.69 for sim 0.
4#
5# Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
d0ac1c44
SM
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
81ecdfbb 9#
c906108c
SS
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
b7026657 16
81ecdfbb
RW
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b7026657
AC
20 emulate sh
21 NULLCMD=:
81ecdfbb 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b7026657
AC
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
25 setopt NO_GLOB_SUBST
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
b7026657 33fi
b7026657 34
81ecdfbb
RW
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
b7026657 52else
81ecdfbb
RW
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
b7026657
AC
81fi
82
83
81ecdfbb
RW
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 92as_myself=
81ecdfbb
RW
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
b7026657
AC
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
81ecdfbb
RW
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
d0ac1c44
SM
137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
81ecdfbb
RW
162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
d0ac1c44
SM
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
81ecdfbb
RW
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
c2783492 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
b5689863
MF
201test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
81ecdfbb
RW
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212else
213 as_have_required=no
214fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
b7026657 221do
81ecdfbb
RW
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235fi
236fi
237 done;;
238 esac
239 as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
d0ac1c44
SM
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
81ecdfbb
RW
268fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
b7026657 276 else
6bddc3e8
MF
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim
279$0: about your system, including any error possibly output
280$0: before this message. Then install a modern shell, or
281$0: manually run the script under such a shell if you do
282$0: have one."
b7026657 283 fi
81ecdfbb
RW
284 exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302 { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306# as_fn_set_status STATUS
307# -----------------------
308# Set $? to STATUS, without forking.
309as_fn_set_status ()
310{
311 return $1
312} # as_fn_set_status
313
314# as_fn_exit STATUS
315# -----------------
316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317as_fn_exit ()
318{
319 set +e
320 as_fn_set_status $1
321 exit $1
322} # as_fn_exit
323
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
328{
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346$as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb
RW
368
369
370} # as_fn_mkdir_p
d0ac1c44
SM
371
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
376{
377 test -f "$1" && test -x "$1"
378} # as_fn_executable_p
81ecdfbb
RW
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412fi # as_fn_arith
413
414
d0ac1c44
SM
415# as_fn_error STATUS ERROR [LINENO LOG_FD]
416# ----------------------------------------
81ecdfbb
RW
417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 419# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
420as_fn_error ()
421{
d0ac1c44
SM
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
81ecdfbb 426 fi
d0ac1c44 427 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
428 as_fn_exit $as_status
429} # as_fn_error
b7026657 430
81ecdfbb
RW
431if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b7026657
AC
433 as_expr=expr
434else
435 as_expr=false
436fi
437
81ecdfbb 438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b7026657
AC
439 as_basename=basename
440else
441 as_basename=false
442fi
443
81ecdfbb
RW
444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446else
447 as_dirname=false
448fi
b7026657 449
81ecdfbb 450as_me=`$as_basename -- "$0" ||
b7026657
AC
451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454$as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
b7026657 468
fdd6fa61
AG
469# Avoid depending upon Character Ranges.
470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473as_cr_digits='0123456789'
474as_cr_alnum=$as_cr_Letters$as_cr_digits
df1756f4 475
b7026657 476
81ecdfbb
RW
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
b7026657 486 sed '
81ecdfbb
RW
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
b7026657 491 N
81ecdfbb
RW
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
b7026657 494 t loop
81ecdfbb 495 s/-\n.*//
b7026657 496 ' >$as_me.lineno &&
81ecdfbb
RW
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
b7026657 499
d0ac1c44
SM
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
b7026657
AC
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
b7026657
AC
508 # Exit status is that of the last command.
509 exit
510}
511
81ecdfbb
RW
512ECHO_C= ECHO_N= ECHO_T=
513case `echo -n x` in #(((((
514-n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
521*)
522 ECHO_N='-n';;
b7026657
AC
523esac
524
81ecdfbb
RW
525rm -f conf$$ conf$$.exe conf$$.file
526if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
b7026657 528else
81ecdfbb
RW
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
b7026657 531fi
81ecdfbb
RW
532if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
fdd6fa61 534 as_ln_s='ln -s'
81ecdfbb
RW
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 538 # In both cases, we have to default to `cp -pR'.
81ecdfbb 539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 540 as_ln_s='cp -pR'
81ecdfbb
RW
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
d0ac1c44 544 as_ln_s='cp -pR'
fdd6fa61 545 fi
b7026657 546else
d0ac1c44 547 as_ln_s='cp -pR'
b7026657 548fi
81ecdfbb
RW
549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550rmdir conf$$.dir 2>/dev/null
b7026657
AC
551
552if mkdir -p . 2>/dev/null; then
81ecdfbb 553 as_mkdir_p='mkdir -p "$as_dir"'
b7026657
AC
554else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557fi
c906108c 558
d0ac1c44
SM
559as_test_x='test -x'
560as_executable_p=as_fn_executable_p
b7026657
AC
561
562# Sed expression to map a string onto a valid CPP name.
563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565# Sed expression to map a string onto a valid variable name.
566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
b5689863
MF
568SHELL=${CONFIG_SHELL-/bin/sh}
569
b7026657 570
d0ac1c44
SM
571test -n "$DJDIR" || exec 7<&0 </dev/null
572exec 6>&1
b7026657
AC
573
574# Name of the host.
d0ac1c44 575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
b7026657
AC
576# so uname gets run too.
577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
b7026657
AC
579#
580# Initializations.
581#
c906108c 582ac_default_prefix=/usr/local
81ecdfbb 583ac_clean_files=
b7026657 584ac_config_libobj_dir=.
81ecdfbb 585LIBOBJS=
b7026657
AC
586cross_compiling=no
587subdirs=
588MFLAGS=
589MAKEFLAGS=
fdd6fa61 590
b7026657 591# Identity of this package.
6bddc3e8
MF
592PACKAGE_NAME='sim'
593PACKAGE_TARNAME='sim'
594PACKAGE_VERSION='0'
595PACKAGE_STRING='sim 0'
596PACKAGE_BUGREPORT='https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim'
597PACKAGE_URL='https://sourceware.org/gdb/wiki/Sim/'
598
c2783492
MF
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613# include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618# include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
b15c5d7a
MF
635ac_header_list=
636ac_func_list=
81ecdfbb 637enable_option_checking=no
6bddc3e8
MF
638ac_subst_vars='am__EXEEXT_FALSE
639am__EXEEXT_TRUE
640LTLIBOBJS
e173c80f 641SIM_RX_CYCLE_ACCURATE_FLAGS
36bb57e4
MF
642sim_reserved_bits
643sim_default_model
644sim_scache
645sim_float
646sim_bitsize
d73f39ee 647SIM_INLINE
456ef1c1
MF
648sim_hw_sockser
649sim_hw_cflags
650SIM_ENABLE_HW_FALSE
651SIM_ENABLE_HW_TRUE
1bf5c342
MF
652cgen
653cgendir
654CGEN_MAINT
b6b1c790
MF
655SIM_ENABLE_IGEN_FALSE
656SIM_ENABLE_IGEN_TRUE
81ecdfbb 657subdirs
36bb57e4
MF
658SIM_COMMON_BUILD_FALSE
659SIM_COMMON_BUILD_TRUE
660SIM_SUBDIRS
a0e674c1 661SIM_PRIMARY_TARGET
c2783492
MF
662AM_BACKSLASH
663AM_DEFAULT_VERBOSITY
664AM_DEFAULT_V
665AM_V
6bddc3e8
MF
666am__fastdepCC_FALSE
667am__fastdepCC_TRUE
668CCDEPMODE
669am__nodep
670AMDEPBACKSLASH
671AMDEP_FALSE
672AMDEP_TRUE
673am__quote
674am__include
675DEPDIR
6bddc3e8
MF
676am__untar
677am__tar
678AMTAR
679am__leading_dot
680SET_MAKE
6bddc3e8
MF
681mkdir_p
682MKDIR_P
683INSTALL_STRIP_PROGRAM
6bddc3e8
MF
684install_sh
685MAKEINFO
686AUTOHEADER
687AUTOMAKE
688AUTOCONF
689ACLOCAL
690VERSION
691PACKAGE
692CYGPATH_W
693am__isrc
8c379db2
TT
694MAINT
695MAINTAINER_MODE_FALSE
696MAINTAINER_MODE_TRUE
b5689863
MF
697lt_cv_dlopen_libs
698OTOOL64
699OTOOL
700LIPO
701NMEDIT
702DSYMUTIL
703AWK
704STRIP
705OBJDUMP
706LN_S
707NM
708ac_ct_DUMPBIN
709DUMPBIN
710LD
711FGREP
712SED
713LIBTOOL
714PLUGINS_FALSE
715PLUGINS_TRUE
716zlibinc
717zlibdir
ce3ec98a
MF
718CATOBJEXT
719GENCAT
720INSTOBJEXT
721DATADIRNAME
722CATALOGS
723POSUB
724GMSGFMT
725XGETTEXT
726INCINTL
727LIBINTL_DEP
728LIBINTL
729USE_NLS
a48ff3ef 730LIBOBJS
c2783492
MF
731C_DIALECT
732RANLIB
733AR
734LDFLAGS_FOR_BUILD
735CFLAGS_FOR_BUILD
aa0fca16 736RANLIB_FOR_BUILD
c2783492 737CC_FOR_BUILD
aa0fca16 738AR_FOR_BUILD
a979f2a0 739DTC
c2783492
MF
740INSTALL_DATA
741INSTALL_SCRIPT
742INSTALL_PROGRAM
743EGREP
744GREP
745CPP
746OBJEXT
747EXEEXT
748ac_ct_CC
749CPPFLAGS
750LDFLAGS
751CFLAGS
752CC
81ecdfbb
RW
753target_os
754target_vendor
755target_cpu
756target
757host_os
758host_vendor
759host_cpu
760host
761build_os
762build_vendor
763build_cpu
764build
6dd65fc0
MF
765REPORT_BUGS_TEXI
766REPORT_BUGS_TO
767PKGVERSION
81ecdfbb
RW
768target_alias
769host_alias
770build_alias
771LIBS
772ECHO_T
773ECHO_N
774ECHO_C
775DEFS
776mandir
777localedir
778libdir
779psdir
780pdfdir
781dvidir
782htmldir
783infodir
784docdir
785oldincludedir
786includedir
787localstatedir
788sharedstatedir
789sysconfdir
790datadir
791datarootdir
792libexecdir
793sbindir
794bindir
795program_transform_name
796prefix
797exec_prefix
798PACKAGE_URL
799PACKAGE_BUGREPORT
800PACKAGE_STRING
801PACKAGE_VERSION
802PACKAGE_TARNAME
803PACKAGE_NAME
804PATH_SEPARATOR
47ce766a
MF
805SHELL
806WERROR_CFLAGS
807WARN_CFLAGS'
b7026657 808ac_subst_files=''
81ecdfbb
RW
809ac_user_opts='
810enable_option_checking
6dd65fc0
MF
811with_pkgversion
812with_bugurl
b5689863
MF
813with_system_zlib
814enable_plugins
815enable_shared
816enable_static
817with_pic
818enable_fast_install
819with_gnu_ld
820enable_libtool_lock
8c379db2 821enable_maintainer_mode
6bddc3e8 822enable_dependency_tracking
c2783492 823enable_silent_rules
81ecdfbb 824enable_sim
26da232c 825enable_example_sims
a0e674c1 826enable_targets
ba307cdd 827enable_sim_alignment
dba333c1 828enable_sim_assert
1bf5c342 829enable_cgen_maint
04381273 830enable_sim_debug
f9a4d543 831enable_sim_endian
5ea45474 832enable_sim_environment
456ef1c1 833enable_sim_hardware
d73f39ee 834enable_sim_inline
04381273
MF
835enable_sim_profile
836enable_sim_stdio
837enable_sim_trace
47ce766a
MF
838enable_werror
839enable_build_warnings
840enable_sim_build_warnings
e173c80f 841enable_sim_rx_cycle_accurate
81ecdfbb
RW
842'
843 ac_precious_vars='build_alias
844host_alias
845target_alias
846CC
847CFLAGS
848LDFLAGS
849LIBS
5e25901f
MF
850CPPFLAGS
851CPP'
36bb57e4 852ac_subdirs_all='bfin
b26e2ae7 853bpf
81ecdfbb 854cris
81ecdfbb 855frv
81ecdfbb
RW
856iq2000
857lm32
81ecdfbb 858m32r
81ecdfbb
RW
859mips
860mn10300
37f980dc 861or1k
b9249c46 862riscv
81ecdfbb
RW
863erc32
864ppc
36bb57e4 865v850'
c906108c
SS
866
867# Initialize some variables set by options.
b7026657
AC
868ac_init_help=
869ac_init_version=false
81ecdfbb
RW
870ac_unrecognized_opts=
871ac_unrecognized_sep=
c906108c
SS
872# The variables have the same names as the options, with
873# dashes changed to underlines.
b7026657 874cache_file=/dev/null
c906108c 875exec_prefix=NONE
c906108c 876no_create=
c906108c
SS
877no_recursion=
878prefix=NONE
879program_prefix=NONE
880program_suffix=NONE
881program_transform_name=s,x,x,
882silent=
883site=
884srcdir=
c906108c
SS
885verbose=
886x_includes=NONE
887x_libraries=NONE
b7026657
AC
888
889# Installation directory options.
890# These are left unexpanded so users can "make install exec_prefix=/foo"
891# and all the variables that are supposed to be based on exec_prefix
892# by default will actually change.
893# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 894# (The list follows the same order as the GNU Coding Standards.)
c906108c
SS
895bindir='${exec_prefix}/bin'
896sbindir='${exec_prefix}/sbin'
897libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
898datarootdir='${prefix}/share'
899datadir='${datarootdir}'
c906108c
SS
900sysconfdir='${prefix}/etc'
901sharedstatedir='${prefix}/com'
902localstatedir='${prefix}/var'
c906108c
SS
903includedir='${prefix}/include'
904oldincludedir='/usr/include'
6bddc3e8 905docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
81ecdfbb
RW
906infodir='${datarootdir}/info'
907htmldir='${docdir}'
908dvidir='${docdir}'
909pdfdir='${docdir}'
910psdir='${docdir}'
911libdir='${exec_prefix}/lib'
912localedir='${datarootdir}/locale'
913mandir='${datarootdir}/man'
c906108c 914
c906108c 915ac_prev=
81ecdfbb 916ac_dashdash=
c906108c
SS
917for ac_option
918do
c906108c
SS
919 # If the previous option needs an argument, assign it.
920 if test -n "$ac_prev"; then
81ecdfbb 921 eval $ac_prev=\$ac_option
c906108c
SS
922 ac_prev=
923 continue
924 fi
925
81ecdfbb 926 case $ac_option in
d0ac1c44
SM
927 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
928 *=) ac_optarg= ;;
929 *) ac_optarg=yes ;;
81ecdfbb 930 esac
c906108c
SS
931
932 # Accept the important Cygnus configure options, so we can diagnose typos.
933
81ecdfbb
RW
934 case $ac_dashdash$ac_option in
935 --)
936 ac_dashdash=yes ;;
c906108c
SS
937
938 -bindir | --bindir | --bindi | --bind | --bin | --bi)
939 ac_prev=bindir ;;
940 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b7026657 941 bindir=$ac_optarg ;;
c906108c
SS
942
943 -build | --build | --buil | --bui | --bu)
b7026657 944 ac_prev=build_alias ;;
c906108c 945 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b7026657 946 build_alias=$ac_optarg ;;
c906108c
SS
947
948 -cache-file | --cache-file | --cache-fil | --cache-fi \
949 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
950 ac_prev=cache_file ;;
951 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
952 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
b7026657
AC
953 cache_file=$ac_optarg ;;
954
955 --config-cache | -C)
956 cache_file=config.cache ;;
c906108c 957
81ecdfbb 958 -datadir | --datadir | --datadi | --datad)
c906108c 959 ac_prev=datadir ;;
81ecdfbb 960 -datadir=* | --datadir=* | --datadi=* | --datad=*)
b7026657 961 datadir=$ac_optarg ;;
c906108c 962
81ecdfbb
RW
963 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
964 | --dataroo | --dataro | --datar)
965 ac_prev=datarootdir ;;
966 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
967 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
968 datarootdir=$ac_optarg ;;
969
c906108c 970 -disable-* | --disable-*)
81ecdfbb 971 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 972 # Reject names that are not valid shell variable names.
81ecdfbb 973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 974 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
975 ac_useropt_orig=$ac_useropt
976 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
977 case $ac_user_opts in
978 *"
979"enable_$ac_useropt"
980"*) ;;
981 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
982 ac_unrecognized_sep=', ';;
983 esac
984 eval enable_$ac_useropt=no ;;
985
986 -docdir | --docdir | --docdi | --doc | --do)
987 ac_prev=docdir ;;
988 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
989 docdir=$ac_optarg ;;
990
991 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
992 ac_prev=dvidir ;;
993 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
994 dvidir=$ac_optarg ;;
c906108c
SS
995
996 -enable-* | --enable-*)
81ecdfbb 997 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 998 # Reject names that are not valid shell variable names.
81ecdfbb 999 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1000 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
1001 ac_useropt_orig=$ac_useropt
1002 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1003 case $ac_user_opts in
1004 *"
1005"enable_$ac_useropt"
1006"*) ;;
1007 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1008 ac_unrecognized_sep=', ';;
fdd6fa61 1009 esac
81ecdfbb 1010 eval enable_$ac_useropt=\$ac_optarg ;;
c906108c
SS
1011
1012 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1013 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1014 | --exec | --exe | --ex)
1015 ac_prev=exec_prefix ;;
1016 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1017 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1018 | --exec=* | --exe=* | --ex=*)
b7026657 1019 exec_prefix=$ac_optarg ;;
c906108c
SS
1020
1021 -gas | --gas | --ga | --g)
1022 # Obsolete; use --with-gas.
1023 with_gas=yes ;;
1024
b7026657
AC
1025 -help | --help | --hel | --he | -h)
1026 ac_init_help=long ;;
1027 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1028 ac_init_help=recursive ;;
1029 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1030 ac_init_help=short ;;
c906108c
SS
1031
1032 -host | --host | --hos | --ho)
b7026657 1033 ac_prev=host_alias ;;
c906108c 1034 -host=* | --host=* | --hos=* | --ho=*)
b7026657 1035 host_alias=$ac_optarg ;;
c906108c 1036
81ecdfbb
RW
1037 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1038 ac_prev=htmldir ;;
1039 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1040 | --ht=*)
1041 htmldir=$ac_optarg ;;
1042
c906108c
SS
1043 -includedir | --includedir | --includedi | --included | --include \
1044 | --includ | --inclu | --incl | --inc)
1045 ac_prev=includedir ;;
1046 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1047 | --includ=* | --inclu=* | --incl=* | --inc=*)
b7026657 1048 includedir=$ac_optarg ;;
c906108c
SS
1049
1050 -infodir | --infodir | --infodi | --infod | --info | --inf)
1051 ac_prev=infodir ;;
1052 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b7026657 1053 infodir=$ac_optarg ;;
c906108c
SS
1054
1055 -libdir | --libdir | --libdi | --libd)
1056 ac_prev=libdir ;;
1057 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b7026657 1058 libdir=$ac_optarg ;;
c906108c
SS
1059
1060 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1061 | --libexe | --libex | --libe)
1062 ac_prev=libexecdir ;;
1063 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1064 | --libexe=* | --libex=* | --libe=*)
b7026657 1065 libexecdir=$ac_optarg ;;
c906108c 1066
81ecdfbb
RW
1067 -localedir | --localedir | --localedi | --localed | --locale)
1068 ac_prev=localedir ;;
1069 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1070 localedir=$ac_optarg ;;
1071
c906108c 1072 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1073 | --localstate | --localstat | --localsta | --localst | --locals)
c906108c
SS
1074 ac_prev=localstatedir ;;
1075 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1076 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
b7026657 1077 localstatedir=$ac_optarg ;;
c906108c
SS
1078
1079 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1080 ac_prev=mandir ;;
1081 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b7026657 1082 mandir=$ac_optarg ;;
c906108c
SS
1083
1084 -nfp | --nfp | --nf)
1085 # Obsolete; use --without-fp.
1086 with_fp=no ;;
1087
1088 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b7026657 1089 | --no-cr | --no-c | -n)
c906108c
SS
1090 no_create=yes ;;
1091
1092 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1093 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1094 no_recursion=yes ;;
1095
1096 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1097 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1098 | --oldin | --oldi | --old | --ol | --o)
1099 ac_prev=oldincludedir ;;
1100 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1101 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1102 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
b7026657 1103 oldincludedir=$ac_optarg ;;
c906108c
SS
1104
1105 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1106 ac_prev=prefix ;;
1107 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b7026657 1108 prefix=$ac_optarg ;;
c906108c
SS
1109
1110 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1111 | --program-pre | --program-pr | --program-p)
1112 ac_prev=program_prefix ;;
1113 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1114 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
b7026657 1115 program_prefix=$ac_optarg ;;
c906108c
SS
1116
1117 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1118 | --program-suf | --program-su | --program-s)
1119 ac_prev=program_suffix ;;
1120 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1121 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
b7026657 1122 program_suffix=$ac_optarg ;;
c906108c
SS
1123
1124 -program-transform-name | --program-transform-name \
1125 | --program-transform-nam | --program-transform-na \
1126 | --program-transform-n | --program-transform- \
1127 | --program-transform | --program-transfor \
1128 | --program-transfo | --program-transf \
1129 | --program-trans | --program-tran \
1130 | --progr-tra | --program-tr | --program-t)
1131 ac_prev=program_transform_name ;;
1132 -program-transform-name=* | --program-transform-name=* \
1133 | --program-transform-nam=* | --program-transform-na=* \
1134 | --program-transform-n=* | --program-transform-=* \
1135 | --program-transform=* | --program-transfor=* \
1136 | --program-transfo=* | --program-transf=* \
1137 | --program-trans=* | --program-tran=* \
1138 | --progr-tra=* | --program-tr=* | --program-t=*)
b7026657 1139 program_transform_name=$ac_optarg ;;
c906108c 1140
81ecdfbb
RW
1141 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1142 ac_prev=pdfdir ;;
1143 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1144 pdfdir=$ac_optarg ;;
1145
1146 -psdir | --psdir | --psdi | --psd | --ps)
1147 ac_prev=psdir ;;
1148 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1149 psdir=$ac_optarg ;;
1150
c906108c
SS
1151 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1152 | -silent | --silent | --silen | --sile | --sil)
1153 silent=yes ;;
1154
1155 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1156 ac_prev=sbindir ;;
1157 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1158 | --sbi=* | --sb=*)
b7026657 1159 sbindir=$ac_optarg ;;
c906108c
SS
1160
1161 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1162 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1163 | --sharedst | --shareds | --shared | --share | --shar \
1164 | --sha | --sh)
1165 ac_prev=sharedstatedir ;;
1166 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1167 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1168 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1169 | --sha=* | --sh=*)
b7026657 1170 sharedstatedir=$ac_optarg ;;
c906108c
SS
1171
1172 -site | --site | --sit)
1173 ac_prev=site ;;
1174 -site=* | --site=* | --sit=*)
b7026657 1175 site=$ac_optarg ;;
0fda6bd2 1176
c906108c
SS
1177 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1178 ac_prev=srcdir ;;
1179 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b7026657 1180 srcdir=$ac_optarg ;;
c906108c
SS
1181
1182 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1183 | --syscon | --sysco | --sysc | --sys | --sy)
1184 ac_prev=sysconfdir ;;
1185 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1186 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
b7026657 1187 sysconfdir=$ac_optarg ;;
c906108c
SS
1188
1189 -target | --target | --targe | --targ | --tar | --ta | --t)
b7026657 1190 ac_prev=target_alias ;;
c906108c 1191 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b7026657 1192 target_alias=$ac_optarg ;;
c906108c
SS
1193
1194 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1195 verbose=yes ;;
1196
b7026657
AC
1197 -version | --version | --versio | --versi | --vers | -V)
1198 ac_init_version=: ;;
c906108c
SS
1199
1200 -with-* | --with-*)
81ecdfbb 1201 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 1202 # Reject names that are not valid shell variable names.
81ecdfbb 1203 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1204 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1205 ac_useropt_orig=$ac_useropt
1206 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1207 case $ac_user_opts in
1208 *"
1209"with_$ac_useropt"
1210"*) ;;
1211 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1212 ac_unrecognized_sep=', ';;
fdd6fa61 1213 esac
81ecdfbb 1214 eval with_$ac_useropt=\$ac_optarg ;;
c906108c
SS
1215
1216 -without-* | --without-*)
81ecdfbb 1217 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 1218 # Reject names that are not valid shell variable names.
81ecdfbb 1219 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1220 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1221 ac_useropt_orig=$ac_useropt
1222 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1223 case $ac_user_opts in
1224 *"
1225"with_$ac_useropt"
1226"*) ;;
1227 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1228 ac_unrecognized_sep=', ';;
1229 esac
1230 eval with_$ac_useropt=no ;;
c906108c
SS
1231
1232 --x)
1233 # Obsolete; use --with-x.
1234 with_x=yes ;;
1235
1236 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1237 | --x-incl | --x-inc | --x-in | --x-i)
1238 ac_prev=x_includes ;;
1239 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1240 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
b7026657 1241 x_includes=$ac_optarg ;;
c906108c
SS
1242
1243 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1244 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1245 ac_prev=x_libraries ;;
1246 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1247 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
b7026657 1248 x_libraries=$ac_optarg ;;
c906108c 1249
d0ac1c44
SM
1250 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1251Try \`$0 --help' for more information"
c906108c
SS
1252 ;;
1253
b7026657
AC
1254 *=*)
1255 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1256 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1257 case $ac_envvar in #(
1258 '' | [0-9]* | *[!_$as_cr_alnum]* )
d0ac1c44 1259 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
81ecdfbb
RW
1260 esac
1261 eval $ac_envvar=\$ac_optarg
b7026657
AC
1262 export $ac_envvar ;;
1263
c906108c 1264 *)
b7026657 1265 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1266 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
b7026657 1267 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1268 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d0ac1c44 1269 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
c906108c
SS
1270 ;;
1271
1272 esac
1273done
1274
1275if test -n "$ac_prev"; then
b7026657 1276 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d0ac1c44 1277 as_fn_error $? "missing argument to $ac_option"
c906108c 1278fi
c906108c 1279
81ecdfbb
RW
1280if test -n "$ac_unrecognized_opts"; then
1281 case $enable_option_checking in
1282 no) ;;
d0ac1c44 1283 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
81ecdfbb 1284 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
fdd6fa61 1285 esac
81ecdfbb 1286fi
fdd6fa61 1287
81ecdfbb
RW
1288# Check all directory arguments for consistency.
1289for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1290 datadir sysconfdir sharedstatedir localstatedir includedir \
1291 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1292 libdir localedir mandir
c906108c 1293do
81ecdfbb
RW
1294 eval ac_val=\$$ac_var
1295 # Remove trailing slashes.
1296 case $ac_val in
1297 */ )
1298 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1299 eval $ac_var=\$ac_val;;
1300 esac
1301 # Be sure to have absolute directory names.
b7026657 1302 case $ac_val in
81ecdfbb
RW
1303 [\\/$]* | ?:[\\/]* ) continue;;
1304 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
c906108c 1305 esac
d0ac1c44 1306 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
c906108c
SS
1307done
1308
b7026657
AC
1309# There might be people who depend on the old broken behavior: `$host'
1310# used to hold the argument of --host etc.
1311# FIXME: To remove some day.
1312build=$build_alias
1313host=$host_alias
1314target=$target_alias
1315
1316# FIXME: To remove some day.
1317if test "x$host_alias" != x; then
1318 if test "x$build_alias" = x; then
1319 cross_compiling=maybe
b7026657
AC
1320 elif test "x$build_alias" != "x$host_alias"; then
1321 cross_compiling=yes
1322 fi
1323fi
c906108c 1324
b7026657
AC
1325ac_tool_prefix=
1326test -n "$host_alias" && ac_tool_prefix=$host_alias-
1327
1328test "$silent" = yes && exec 6>/dev/null
c906108c 1329
c906108c 1330
81ecdfbb
RW
1331ac_pwd=`pwd` && test -n "$ac_pwd" &&
1332ac_ls_di=`ls -di .` &&
1333ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d0ac1c44 1334 as_fn_error $? "working directory cannot be determined"
81ecdfbb 1335test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d0ac1c44 1336 as_fn_error $? "pwd does not report name of working directory"
81ecdfbb
RW
1337
1338
c906108c
SS
1339# Find the source files, if location was not specified.
1340if test -z "$srcdir"; then
1341 ac_srcdir_defaulted=yes
81ecdfbb
RW
1342 # Try the directory containing this script, then the parent directory.
1343 ac_confdir=`$as_dirname -- "$as_myself" ||
1344$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1345 X"$as_myself" : 'X\(//\)[^/]' \| \
1346 X"$as_myself" : 'X\(//\)$' \| \
1347 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1348$as_echo X"$as_myself" |
1349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1350 s//\1/
1351 q
1352 }
1353 /^X\(\/\/\)[^/].*/{
1354 s//\1/
1355 q
1356 }
1357 /^X\(\/\/\)$/{
1358 s//\1/
1359 q
1360 }
1361 /^X\(\/\).*/{
1362 s//\1/
1363 q
1364 }
1365 s/.*/./; q'`
c906108c 1366 srcdir=$ac_confdir
81ecdfbb 1367 if test ! -r "$srcdir/$ac_unique_file"; then
c906108c
SS
1368 srcdir=..
1369 fi
1370else
1371 ac_srcdir_defaulted=no
1372fi
81ecdfbb
RW
1373if test ! -r "$srcdir/$ac_unique_file"; then
1374 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d0ac1c44 1375 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
81ecdfbb
RW
1376fi
1377ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1378ac_abs_confdir=`(
d0ac1c44 1379 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
81ecdfbb
RW
1380 pwd)`
1381# When building in place, set srcdir=.
1382if test "$ac_abs_confdir" = "$ac_pwd"; then
1383 srcdir=.
1384fi
1385# Remove unnecessary trailing slashes from srcdir.
1386# Double slashes in file names in object file debugging info
1387# mess up M-x gdb in Emacs.
1388case $srcdir in
1389*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1390esac
1391for ac_var in $ac_precious_vars; do
1392 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1393 eval ac_env_${ac_var}_value=\$${ac_var}
1394 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1395 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1396done
df1756f4
TG
1397
1398#
b7026657
AC
1399# Report the --help message.
1400#
1401if test "$ac_init_help" = "long"; then
1402 # Omit some internal or obsolete options to make the list less imposing.
1403 # This message is too long to be a string in the A/UX 3.1 sh.
1404 cat <<_ACEOF
6bddc3e8 1405\`configure' configures sim 0 to adapt to many kinds of systems.
b7026657
AC
1406
1407Usage: $0 [OPTION]... [VAR=VALUE]...
1408
1409To assign environment variables (e.g., CC, CFLAGS...), specify them as
1410VAR=VALUE. See below for descriptions of some of the useful variables.
1411
1412Defaults for the options are specified in brackets.
1413
1414Configuration:
1415 -h, --help display this help and exit
1416 --help=short display options specific to this package
1417 --help=recursive display the short help of all the included packages
1418 -V, --version display version information and exit
d0ac1c44 1419 -q, --quiet, --silent do not print \`checking ...' messages
b7026657
AC
1420 --cache-file=FILE cache test results in FILE [disabled]
1421 -C, --config-cache alias for \`--cache-file=config.cache'
1422 -n, --no-create do not create output files
1423 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1424
b7026657
AC
1425Installation directories:
1426 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1427 [$ac_default_prefix]
b7026657 1428 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1429 [PREFIX]
b7026657
AC
1430
1431By default, \`make install' will install all the files in
1432\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1433an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1434for instance \`--prefix=\$HOME'.
1435
1436For better control, use the options below.
1437
1438Fine tuning of the installation directories:
81ecdfbb
RW
1439 --bindir=DIR user executables [EPREFIX/bin]
1440 --sbindir=DIR system admin executables [EPREFIX/sbin]
1441 --libexecdir=DIR program executables [EPREFIX/libexec]
1442 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1443 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1444 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1445 --libdir=DIR object code libraries [EPREFIX/lib]
1446 --includedir=DIR C header files [PREFIX/include]
1447 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1448 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1449 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1450 --infodir=DIR info documentation [DATAROOTDIR/info]
1451 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1452 --mandir=DIR man documentation [DATAROOTDIR/man]
6bddc3e8 1453 --docdir=DIR documentation root [DATAROOTDIR/doc/sim]
81ecdfbb
RW
1454 --htmldir=DIR html documentation [DOCDIR]
1455 --dvidir=DIR dvi documentation [DOCDIR]
1456 --pdfdir=DIR pdf documentation [DOCDIR]
1457 --psdir=DIR ps documentation [DOCDIR]
b7026657
AC
1458_ACEOF
1459
1460 cat <<\_ACEOF
1461
1462Program names:
1463 --program-prefix=PREFIX prepend PREFIX to installed program names
1464 --program-suffix=SUFFIX append SUFFIX to installed program names
1465 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1466
1467System types:
1468 --build=BUILD configure for building on BUILD [guessed]
1469 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1470 --target=TARGET configure for building compilers for TARGET [HOST]
1471_ACEOF
1472fi
1473
1474if test -n "$ac_init_help"; then
6bddc3e8
MF
1475 case $ac_init_help in
1476 short | recursive ) echo "Configuration of sim 0:";;
1477 esac
b7026657
AC
1478 cat <<\_ACEOF
1479
1480Optional Features:
81ecdfbb 1481 --disable-option-checking ignore unrecognized --enable/--with options
b7026657
AC
1482 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1483 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
b5689863
MF
1484 --enable-plugins Enable support for plugins
1485 --enable-shared[=PKGS] build shared libraries [default=yes]
1486 --enable-static[=PKGS] build static libraries [default=yes]
1487 --enable-fast-install[=PKGS]
1488 optimize for fast installation [default=yes]
1489 --disable-libtool-lock avoid locking (might break parallel builds)
8c379db2
TT
1490 --enable-maintainer-mode
1491 enable make rules and dependencies not useful (and
1492 sometimes confusing) to the casual installer
6bddc3e8
MF
1493 --enable-dependency-tracking
1494 do not reject slow dependency extractors
1495 --disable-dependency-tracking
1496 speeds up one-time build
c2783492
MF
1497 --enable-silent-rules less verbose build output (undo: "make V=1")
1498 --disable-silent-rules verbose build output (undo: "make V=0")
8d0978fb 1499 --enable-sim Enable the GNU simulator
26da232c 1500 --enable-example-sims enable example GNU simulators
a0e674c1 1501 --enable-targets alternative target configurations
ba307cdd
MF
1502 --enable-sim-alignment=align
1503 Specify strict, nonstrict or forced alignment of
1504 memory accesses
dba333c1 1505 --enable-sim-assert Specify whether to perform random assertions
1bf5c342 1506 --enable-cgen-maint=DIR build cgen generated files
04381273
MF
1507 --enable-sim-debug=opts Enable debugging flags (for developers of the sim
1508 itself)
f9a4d543
MF
1509 --enable-sim-endian=endian
1510 Specify target byte endian orientation
5ea45474
MF
1511 --enable-sim-environment=environment
1512 Specify mixed, user, virtual or operating
1513 environment
456ef1c1 1514 --enable-sim-hardware Whether to enable hardware/device simulation
d73f39ee
MF
1515 --enable-sim-inline=inlines
1516 Specify which functions should be inlined
04381273
MF
1517 --enable-sim-profile=opts
1518 Enable profiling flags
1519 --enable-sim-stdio Specify whether to use stdio for console
1520 input/output
1521 --enable-sim-trace=opts Enable tracing of simulated programs
47ce766a
MF
1522 --enable-werror treat compile warnings as errors
1523 --enable-build-warnings enable build-time compiler warnings if gcc is used
1524 --enable-sim-build-warnings
1525 enable SIM specific build-time compiler warnings if
1526 gcc is used
e173c80f
MF
1527 --disable-sim-rx-cycle-accurate
1528 Disable cycle accurate simulation (faster runtime)
b7026657 1529
6dd65fc0
MF
1530Optional Packages:
1531 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1532 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1533 --with-pkgversion=PKG Use PKG in the version string in place of "SIM"
1534 --with-bugurl=URL Direct users to URL to report a bug
b5689863
MF
1535 --with-system-zlib use installed libz
1536 --with-pic try to use only PIC/non-PIC objects [default=use
1537 both]
1538 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
6dd65fc0 1539
b7026657
AC
1540Some influential environment variables:
1541 CC C compiler command
1542 CFLAGS C compiler flags
1543 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1544 nonstandard directory <lib dir>
81ecdfbb 1545 LIBS libraries to pass to the linker, e.g. -l<library>
d0ac1c44 1546 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
81ecdfbb 1547 you have headers in a nonstandard directory <include dir>
5e25901f 1548 CPP C preprocessor
b7026657
AC
1549
1550Use these variables to override the choices made by `configure' or to help
1551it to find libraries and programs with nonstandard names/locations.
1552
6bddc3e8
MF
1553Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
1554sim home page: <https://sourceware.org/gdb/wiki/Sim/>.
b7026657 1555_ACEOF
81ecdfbb 1556ac_status=$?
b7026657
AC
1557fi
1558
1559if test "$ac_init_help" = "recursive"; then
1560 # If there are subdirs, report their specific --help.
b7026657 1561 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1562 test -d "$ac_dir" ||
1563 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1564 continue
b7026657
AC
1565 ac_builddir=.
1566
81ecdfbb
RW
1567case "$ac_dir" in
1568.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1569*)
1570 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1571 # A ".." for each directory in $ac_dir_suffix.
1572 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1573 case $ac_top_builddir_sub in
1574 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1575 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1576 esac ;;
1577esac
1578ac_abs_top_builddir=$ac_pwd
1579ac_abs_builddir=$ac_pwd$ac_dir_suffix
1580# for backward compatibility:
1581ac_top_builddir=$ac_top_build_prefix
b7026657
AC
1582
1583case $srcdir in
81ecdfbb 1584 .) # We are building in place.
b7026657 1585 ac_srcdir=.
81ecdfbb
RW
1586 ac_top_srcdir=$ac_top_builddir_sub
1587 ac_abs_top_srcdir=$ac_pwd ;;
1588 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 1589 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1590 ac_top_srcdir=$srcdir
1591 ac_abs_top_srcdir=$srcdir ;;
1592 *) # Relative name.
1593 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1594 ac_top_srcdir=$ac_top_build_prefix$srcdir
1595 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
fdd6fa61 1596esac
81ecdfbb 1597ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
fdd6fa61 1598
81ecdfbb
RW
1599 cd "$ac_dir" || { ac_status=$?; continue; }
1600 # Check for guested configure.
1601 if test -f "$ac_srcdir/configure.gnu"; then
1602 echo &&
1603 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1604 elif test -f "$ac_srcdir/configure"; then
1605 echo &&
1606 $SHELL "$ac_srcdir/configure" --help=recursive
0fda6bd2 1607 else
81ecdfbb
RW
1608 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1609 fi || ac_status=$?
1610 cd "$ac_pwd" || { ac_status=$?; break; }
b7026657
AC
1611 done
1612fi
1613
81ecdfbb 1614test -n "$ac_init_help" && exit $ac_status
b7026657
AC
1615if $ac_init_version; then
1616 cat <<\_ACEOF
6bddc3e8 1617sim configure 0
d0ac1c44 1618generated by GNU Autoconf 2.69
b7026657 1619
d0ac1c44 1620Copyright (C) 2012 Free Software Foundation, Inc.
b7026657
AC
1621This configure script is free software; the Free Software Foundation
1622gives unlimited permission to copy, distribute and modify it.
1623_ACEOF
81ecdfbb 1624 exit
b7026657 1625fi
81ecdfbb
RW
1626
1627## ------------------------ ##
1628## Autoconf initialization. ##
1629## ------------------------ ##
1630
1631# ac_fn_c_try_compile LINENO
1632# --------------------------
1633# Try to compile conftest.$ac_ext, and return whether this succeeded.
1634ac_fn_c_try_compile ()
1635{
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 rm -f conftest.$ac_objext
1638 if { { ac_try="$ac_compile"
1639case "(($ac_try" in
1640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641 *) ac_try_echo=$ac_try;;
1642esac
1643eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644$as_echo "$ac_try_echo"; } >&5
1645 (eval "$ac_compile") 2>conftest.err
1646 ac_status=$?
1647 if test -s conftest.err; then
1648 grep -v '^ *+' conftest.err >conftest.er1
1649 cat conftest.er1 >&5
1650 mv -f conftest.er1 conftest.err
1651 fi
1652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1653 test $ac_status = 0; } && {
1654 test -z "$ac_c_werror_flag" ||
1655 test ! -s conftest.err
1656 } && test -s conftest.$ac_objext; then :
1657 ac_retval=0
1658else
1659 $as_echo "$as_me: failed program was:" >&5
1660sed 's/^/| /' conftest.$ac_ext >&5
1661
1662 ac_retval=1
1663fi
d0ac1c44
SM
1664 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1665 as_fn_set_status $ac_retval
81ecdfbb
RW
1666
1667} # ac_fn_c_try_compile
5e25901f
MF
1668
1669# ac_fn_c_try_cpp LINENO
1670# ----------------------
1671# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1672ac_fn_c_try_cpp ()
1673{
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 if { { ac_try="$ac_cpp conftest.$ac_ext"
1676case "(($ac_try" in
1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678 *) ac_try_echo=$ac_try;;
1679esac
1680eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681$as_echo "$ac_try_echo"; } >&5
1682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1683 ac_status=$?
1684 if test -s conftest.err; then
1685 grep -v '^ *+' conftest.err >conftest.er1
1686 cat conftest.er1 >&5
1687 mv -f conftest.er1 conftest.err
1688 fi
1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690 test $ac_status = 0; } > conftest.i && {
1691 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1692 test ! -s conftest.err
1693 }; then :
1694 ac_retval=0
1695else
1696 $as_echo "$as_me: failed program was:" >&5
1697sed 's/^/| /' conftest.$ac_ext >&5
1698
1699 ac_retval=1
1700fi
1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702 as_fn_set_status $ac_retval
1703
1704} # ac_fn_c_try_cpp
c2783492
MF
1705
1706# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1707# -------------------------------------------------------
1708# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1709# the include files in INCLUDES and setting the cache variable VAR
1710# accordingly.
1711ac_fn_c_check_header_mongrel ()
1712{
1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714 if eval \${$3+:} false; then :
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1716$as_echo_n "checking for $2... " >&6; }
1717if eval \${$3+:} false; then :
1718 $as_echo_n "(cached) " >&6
1719fi
1720eval ac_res=\$$3
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1722$as_echo "$ac_res" >&6; }
1723else
1724 # Is the header compilable?
1725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1726$as_echo_n "checking $2 usability... " >&6; }
1727cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1728/* end confdefs.h. */
1729$4
1730#include <$2>
1731_ACEOF
1732if ac_fn_c_try_compile "$LINENO"; then :
1733 ac_header_compiler=yes
1734else
1735 ac_header_compiler=no
1736fi
1737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1739$as_echo "$ac_header_compiler" >&6; }
1740
1741# Is the header present?
1742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1743$as_echo_n "checking $2 presence... " >&6; }
1744cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745/* end confdefs.h. */
1746#include <$2>
1747_ACEOF
1748if ac_fn_c_try_cpp "$LINENO"; then :
1749 ac_header_preproc=yes
1750else
1751 ac_header_preproc=no
1752fi
1753rm -f conftest.err conftest.i conftest.$ac_ext
1754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1755$as_echo "$ac_header_preproc" >&6; }
1756
1757# So? What about this header?
1758case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1759 yes:no: )
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1761$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1763$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1764 ;;
1765 no:yes:* )
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1767$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1769$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1771$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1773$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1775$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1776( $as_echo "## -------------------------------------------------------------------------------------- ##
1777## Report this to https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim ##
1778## -------------------------------------------------------------------------------------- ##"
1779 ) | sed "s/^/$as_me: WARNING: /" >&2
1780 ;;
1781esac
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1783$as_echo_n "checking for $2... " >&6; }
1784if eval \${$3+:} false; then :
1785 $as_echo_n "(cached) " >&6
1786else
1787 eval "$3=\$ac_header_compiler"
1788fi
1789eval ac_res=\$$3
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1791$as_echo "$ac_res" >&6; }
1792fi
1793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794
1795} # ac_fn_c_check_header_mongrel
1796
1797# ac_fn_c_try_run LINENO
1798# ----------------------
1799# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1800# that executables *can* be run.
1801ac_fn_c_try_run ()
1802{
1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804 if { { ac_try="$ac_link"
1805case "(($ac_try" in
1806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1807 *) ac_try_echo=$ac_try;;
1808esac
1809eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1810$as_echo "$ac_try_echo"; } >&5
1811 (eval "$ac_link") 2>&5
1812 ac_status=$?
1813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1815 { { case "(($ac_try" in
1816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1817 *) ac_try_echo=$ac_try;;
1818esac
1819eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1820$as_echo "$ac_try_echo"; } >&5
1821 (eval "$ac_try") 2>&5
1822 ac_status=$?
1823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824 test $ac_status = 0; }; }; then :
1825 ac_retval=0
1826else
1827 $as_echo "$as_me: program exited with status $ac_status" >&5
1828 $as_echo "$as_me: failed program was:" >&5
1829sed 's/^/| /' conftest.$ac_ext >&5
1830
1831 ac_retval=$ac_status
1832fi
1833 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1834 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835 as_fn_set_status $ac_retval
1836
1837} # ac_fn_c_try_run
1838
1839# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1840# -------------------------------------------------------
1841# Tests whether HEADER exists and can be compiled using the include files in
1842# INCLUDES, setting the cache variable VAR accordingly.
1843ac_fn_c_check_header_compile ()
1844{
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1847$as_echo_n "checking for $2... " >&6; }
1848if eval \${$3+:} false; then :
1849 $as_echo_n "(cached) " >&6
1850else
1851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852/* end confdefs.h. */
1853$4
1854#include <$2>
1855_ACEOF
1856if ac_fn_c_try_compile "$LINENO"; then :
1857 eval "$3=yes"
1858else
1859 eval "$3=no"
1860fi
1861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1862fi
1863eval ac_res=\$$3
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1865$as_echo "$ac_res" >&6; }
1866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867
1868} # ac_fn_c_check_header_compile
b15c5d7a
MF
1869
1870# ac_fn_c_try_link LINENO
1871# -----------------------
1872# Try to link conftest.$ac_ext, and return whether this succeeded.
1873ac_fn_c_try_link ()
1874{
1875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876 rm -f conftest.$ac_objext conftest$ac_exeext
1877 if { { ac_try="$ac_link"
1878case "(($ac_try" in
1879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880 *) ac_try_echo=$ac_try;;
1881esac
1882eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883$as_echo "$ac_try_echo"; } >&5
1884 (eval "$ac_link") 2>conftest.err
1885 ac_status=$?
1886 if test -s conftest.err; then
1887 grep -v '^ *+' conftest.err >conftest.er1
1888 cat conftest.er1 >&5
1889 mv -f conftest.er1 conftest.err
1890 fi
1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; } && {
1893 test -z "$ac_c_werror_flag" ||
1894 test ! -s conftest.err
1895 } && test -s conftest$ac_exeext && {
1896 test "$cross_compiling" = yes ||
1897 test -x conftest$ac_exeext
1898 }; then :
1899 ac_retval=0
1900else
1901 $as_echo "$as_me: failed program was:" >&5
1902sed 's/^/| /' conftest.$ac_ext >&5
1903
1904 ac_retval=1
1905fi
1906 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1907 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1908 # interfere with the next link command; also delete a directory that is
1909 # left behind by Apple's compiler. We do this before executing the actions.
1910 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1911 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1912 as_fn_set_status $ac_retval
1913
1914} # ac_fn_c_try_link
1915
1916# ac_fn_c_check_func LINENO FUNC VAR
1917# ----------------------------------
1918# Tests whether FUNC exists, setting the cache variable VAR accordingly
1919ac_fn_c_check_func ()
1920{
1921 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1923$as_echo_n "checking for $2... " >&6; }
1924if eval \${$3+:} false; then :
1925 $as_echo_n "(cached) " >&6
1926else
1927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1928/* end confdefs.h. */
1929/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1931#define $2 innocuous_$2
1932
1933/* System header to define __stub macros and hopefully few prototypes,
1934 which can conflict with char $2 (); below.
1935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1936 <limits.h> exists even on freestanding compilers. */
1937
1938#ifdef __STDC__
1939# include <limits.h>
1940#else
1941# include <assert.h>
1942#endif
1943
1944#undef $2
1945
1946/* Override any GCC internal prototype to avoid an error.
1947 Use char because int might match the return type of a GCC
1948 builtin and then its argument prototype would still apply. */
1949#ifdef __cplusplus
1950extern "C"
1951#endif
1952char $2 ();
1953/* The GNU C library defines this for functions which it implements
1954 to always fail with ENOSYS. Some functions are actually named
1955 something starting with __ and the normal name is an alias. */
1956#if defined __stub_$2 || defined __stub___$2
1957choke me
1958#endif
1959
1960int
1961main ()
1962{
1963return $2 ();
1964 ;
1965 return 0;
1966}
1967_ACEOF
1968if ac_fn_c_try_link "$LINENO"; then :
1969 eval "$3=yes"
1970else
1971 eval "$3=no"
1972fi
1973rm -f core conftest.err conftest.$ac_objext \
1974 conftest$ac_exeext conftest.$ac_ext
1975fi
1976eval ac_res=\$$3
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1978$as_echo "$ac_res" >&6; }
1979 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1980
1981} # ac_fn_c_check_func
1982
1983# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1984# ----------------------------------------------------
1985# Tries to find if the field MEMBER exists in type AGGR, after including
1986# INCLUDES, setting cache variable VAR accordingly.
1987ac_fn_c_check_member ()
1988{
1989 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1991$as_echo_n "checking for $2.$3... " >&6; }
1992if eval \${$4+:} false; then :
1993 $as_echo_n "(cached) " >&6
1994else
1995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1996/* end confdefs.h. */
1997$5
1998int
1999main ()
2000{
2001static $2 ac_aggr;
2002if (ac_aggr.$3)
2003return 0;
2004 ;
2005 return 0;
2006}
2007_ACEOF
2008if ac_fn_c_try_compile "$LINENO"; then :
2009 eval "$4=yes"
2010else
2011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012/* end confdefs.h. */
2013$5
2014int
2015main ()
2016{
2017static $2 ac_aggr;
2018if (sizeof ac_aggr.$3)
2019return 0;
2020 ;
2021 return 0;
2022}
2023_ACEOF
2024if ac_fn_c_try_compile "$LINENO"; then :
2025 eval "$4=yes"
2026else
2027 eval "$4=no"
2028fi
2029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2030fi
2031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2032fi
2033eval ac_res=\$$4
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2035$as_echo "$ac_res" >&6; }
2036 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2037
2038} # ac_fn_c_check_member
2039
a48ff3ef
MF
2040# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2041# ---------------------------------------------
2042# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2043# accordingly.
2044ac_fn_c_check_decl ()
2045{
2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047 as_decl_name=`echo $2|sed 's/ *(.*//'`
2048 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2050$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2051if eval \${$3+:} false; then :
2052 $as_echo_n "(cached) " >&6
2053else
2054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2055/* end confdefs.h. */
2056$4
2057int
2058main ()
2059{
2060#ifndef $as_decl_name
2061#ifdef __cplusplus
2062 (void) $as_decl_use;
2063#else
2064 (void) $as_decl_name;
2065#endif
2066#endif
2067
2068 ;
2069 return 0;
2070}
2071_ACEOF
2072if ac_fn_c_try_compile "$LINENO"; then :
2073 eval "$3=yes"
2074else
2075 eval "$3=no"
2076fi
2077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2078fi
2079eval ac_res=\$$3
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2081$as_echo "$ac_res" >&6; }
2082 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2083
2084} # ac_fn_c_check_decl
2085
b15c5d7a
MF
2086# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2087# -------------------------------------------
2088# Tests whether TYPE exists after having included INCLUDES, setting cache
2089# variable VAR accordingly.
2090ac_fn_c_check_type ()
2091{
2092 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2094$as_echo_n "checking for $2... " >&6; }
2095if eval \${$3+:} false; then :
2096 $as_echo_n "(cached) " >&6
2097else
2098 eval "$3=no"
2099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2100/* end confdefs.h. */
2101$4
2102int
2103main ()
2104{
2105if (sizeof ($2))
2106 return 0;
2107 ;
2108 return 0;
2109}
2110_ACEOF
2111if ac_fn_c_try_compile "$LINENO"; then :
2112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2113/* end confdefs.h. */
2114$4
2115int
2116main ()
2117{
2118if (sizeof (($2)))
2119 return 0;
2120 ;
2121 return 0;
2122}
2123_ACEOF
2124if ac_fn_c_try_compile "$LINENO"; then :
2125
2126else
2127 eval "$3=yes"
2128fi
2129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2130fi
2131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2132fi
2133eval ac_res=\$$3
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2135$as_echo "$ac_res" >&6; }
2136 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2137
2138} # ac_fn_c_check_type
81ecdfbb 2139cat >config.log <<_ACEOF
b7026657
AC
2140This file contains any messages produced by compilers while
2141running configure, to aid debugging if configure makes a mistake.
2142
6bddc3e8 2143It was created by sim $as_me 0, which was
d0ac1c44 2144generated by GNU Autoconf 2.69. Invocation command line was
b7026657
AC
2145
2146 $ $0 $@
2147
2148_ACEOF
81ecdfbb 2149exec 5>>config.log
b7026657
AC
2150{
2151cat <<_ASUNAME
2152## --------- ##
2153## Platform. ##
2154## --------- ##
2155
2156hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2157uname -m = `(uname -m) 2>/dev/null || echo unknown`
2158uname -r = `(uname -r) 2>/dev/null || echo unknown`
2159uname -s = `(uname -s) 2>/dev/null || echo unknown`
2160uname -v = `(uname -v) 2>/dev/null || echo unknown`
2161
2162/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2163/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2164
2165/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2166/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2167/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 2168/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
b7026657
AC
2169/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2170/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2171/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2172
2173_ASUNAME
2174
2175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2176for as_dir in $PATH
2177do
2178 IFS=$as_save_IFS
2179 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2180 $as_echo "PATH: $as_dir"
2181 done
2182IFS=$as_save_IFS
b7026657
AC
2183
2184} >&5
2185
2186cat >&5 <<_ACEOF
2187
2188
2189## ----------- ##
2190## Core tests. ##
2191## ----------- ##
2192
2193_ACEOF
2194
2195
2196# Keep a trace of the command line.
2197# Strip out --no-create and --no-recursion so they do not pile up.
2198# Strip out --silent because we don't want to record it for future runs.
2199# Also quote any args containing shell meta-characters.
2200# Make two passes to allow for proper duplicate-argument suppression.
2201ac_configure_args=
2202ac_configure_args0=
2203ac_configure_args1=
b7026657
AC
2204ac_must_keep_next=false
2205for ac_pass in 1 2
2206do
2207 for ac_arg
2208 do
2209 case $ac_arg in
2210 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2211 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2212 | -silent | --silent | --silen | --sile | --sil)
2213 continue ;;
81ecdfbb
RW
2214 *\'*)
2215 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
b7026657
AC
2216 esac
2217 case $ac_pass in
81ecdfbb 2218 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
b7026657 2219 2)
81ecdfbb 2220 as_fn_append ac_configure_args1 " '$ac_arg'"
b7026657
AC
2221 if test $ac_must_keep_next = true; then
2222 ac_must_keep_next=false # Got value, back to normal.
2223 else
2224 case $ac_arg in
2225 *=* | --config-cache | -C | -disable-* | --disable-* \
2226 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2227 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2228 | -with-* | --with-* | -without-* | --without-* | --x)
2229 case "$ac_configure_args0 " in
2230 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2231 esac
2232 ;;
2233 -* ) ac_must_keep_next=true ;;
2234 esac
2235 fi
81ecdfbb 2236 as_fn_append ac_configure_args " '$ac_arg'"
b7026657
AC
2237 ;;
2238 esac
2239 done
2240done
81ecdfbb
RW
2241{ ac_configure_args0=; unset ac_configure_args0;}
2242{ ac_configure_args1=; unset ac_configure_args1;}
b7026657
AC
2243
2244# When interrupted or exit'd, cleanup temporary files, and complete
2245# config.log. We remove comments because anyway the quotes in there
2246# would cause problems or look ugly.
81ecdfbb
RW
2247# WARNING: Use '\'' to represent an apostrophe within the trap.
2248# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
b7026657
AC
2249trap 'exit_status=$?
2250 # Save into config.log some information that might help in debugging.
2251 {
2252 echo
2253
d0ac1c44 2254 $as_echo "## ---------------- ##
b7026657 2255## Cache variables. ##
d0ac1c44 2256## ---------------- ##"
b7026657
AC
2257 echo
2258 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2259(
2260 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2261 eval ac_val=\$$ac_var
2262 case $ac_val in #(
2263 *${as_nl}*)
2264 case $ac_var in #(
2265 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2266$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2267 esac
2268 case $ac_var in #(
2269 _ | IFS | as_nl) ;; #(
2270 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2271 *) { eval $ac_var=; unset $ac_var;} ;;
2272 esac ;;
2273 esac
2274 done
b7026657 2275 (set) 2>&1 |
81ecdfbb
RW
2276 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2277 *${as_nl}ac_space=\ *)
b7026657 2278 sed -n \
81ecdfbb
RW
2279 "s/'\''/'\''\\\\'\'''\''/g;
2280 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2281 ;; #(
b7026657 2282 *)
81ecdfbb 2283 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 2284 ;;
81ecdfbb
RW
2285 esac |
2286 sort
2287)
b7026657
AC
2288 echo
2289
d0ac1c44 2290 $as_echo "## ----------------- ##
b7026657 2291## Output variables. ##
d0ac1c44 2292## ----------------- ##"
b7026657
AC
2293 echo
2294 for ac_var in $ac_subst_vars
2295 do
81ecdfbb
RW
2296 eval ac_val=\$$ac_var
2297 case $ac_val in
2298 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2299 esac
2300 $as_echo "$ac_var='\''$ac_val'\''"
b7026657
AC
2301 done | sort
2302 echo
2303
2304 if test -n "$ac_subst_files"; then
d0ac1c44 2305 $as_echo "## ------------------- ##
81ecdfbb 2306## File substitutions. ##
d0ac1c44 2307## ------------------- ##"
b7026657
AC
2308 echo
2309 for ac_var in $ac_subst_files
2310 do
81ecdfbb
RW
2311 eval ac_val=\$$ac_var
2312 case $ac_val in
2313 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2314 esac
2315 $as_echo "$ac_var='\''$ac_val'\''"
b7026657
AC
2316 done | sort
2317 echo
2318 fi
2319
2320 if test -s confdefs.h; then
d0ac1c44 2321 $as_echo "## ----------- ##
b7026657 2322## confdefs.h. ##
d0ac1c44 2323## ----------- ##"
b7026657 2324 echo
81ecdfbb 2325 cat confdefs.h
b7026657 2326 echo
0fda6bd2 2327 fi
b7026657 2328 test "$ac_signal" != 0 &&
81ecdfbb
RW
2329 $as_echo "$as_me: caught signal $ac_signal"
2330 $as_echo "$as_me: exit $exit_status"
b7026657 2331 } >&5
81ecdfbb
RW
2332 rm -f core *.core core.conftest.* &&
2333 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
b7026657 2334 exit $exit_status
81ecdfbb 2335' 0
b7026657 2336for ac_signal in 1 2 13 15; do
81ecdfbb 2337 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
b7026657
AC
2338done
2339ac_signal=0
2340
2341# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2342rm -f -r conftest* confdefs.h
2343
2344$as_echo "/* confdefs.h */" > confdefs.h
b7026657
AC
2345
2346# Predefined preprocessor variables.
2347
2348cat >>confdefs.h <<_ACEOF
2349#define PACKAGE_NAME "$PACKAGE_NAME"
2350_ACEOF
2351
b7026657
AC
2352cat >>confdefs.h <<_ACEOF
2353#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2354_ACEOF
2355
b7026657
AC
2356cat >>confdefs.h <<_ACEOF
2357#define PACKAGE_VERSION "$PACKAGE_VERSION"
2358_ACEOF
2359
b7026657
AC
2360cat >>confdefs.h <<_ACEOF
2361#define PACKAGE_STRING "$PACKAGE_STRING"
2362_ACEOF
2363
b7026657
AC
2364cat >>confdefs.h <<_ACEOF
2365#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2366_ACEOF
2367
81ecdfbb
RW
2368cat >>confdefs.h <<_ACEOF
2369#define PACKAGE_URL "$PACKAGE_URL"
2370_ACEOF
2371
b7026657
AC
2372
2373# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2374# Prefer an explicitly selected file to automatically selected ones.
2375ac_site_file1=NONE
2376ac_site_file2=NONE
2377if test -n "$CONFIG_SITE"; then
d0ac1c44
SM
2378 # We do not want a PATH search for config.site.
2379 case $CONFIG_SITE in #((
2380 -*) ac_site_file1=./$CONFIG_SITE;;
2381 */*) ac_site_file1=$CONFIG_SITE;;
2382 *) ac_site_file1=./$CONFIG_SITE;;
2383 esac
81ecdfbb
RW
2384elif test "x$prefix" != xNONE; then
2385 ac_site_file1=$prefix/share/config.site
2386 ac_site_file2=$prefix/etc/config.site
2387else
2388 ac_site_file1=$ac_default_prefix/share/config.site
2389 ac_site_file2=$ac_default_prefix/etc/config.site
c906108c 2390fi
81ecdfbb
RW
2391for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2392do
2393 test "x$ac_site_file" = xNONE && continue
d0ac1c44 2394 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
81ecdfbb
RW
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2396$as_echo "$as_me: loading site script $ac_site_file" >&6;}
b7026657 2397 sed 's/^/| /' "$ac_site_file" >&5
d0ac1c44
SM
2398 . "$ac_site_file" \
2399 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2400$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2401as_fn_error $? "failed to load site script $ac_site_file
2402See \`config.log' for more details" "$LINENO" 5; }
c906108c
SS
2403 fi
2404done
2405
2406if test -r "$cache_file"; then
d0ac1c44
SM
2407 # Some versions of bash will fail to source /dev/null (special files
2408 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2409 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
81ecdfbb
RW
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2411$as_echo "$as_me: loading cache $cache_file" >&6;}
b7026657 2412 case $cache_file in
81ecdfbb
RW
2413 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2414 *) . "./$cache_file";;
b7026657
AC
2415 esac
2416 fi
c906108c 2417else
81ecdfbb
RW
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2419$as_echo "$as_me: creating cache $cache_file" >&6;}
b7026657 2420 >$cache_file
c906108c
SS
2421fi
2422
b15c5d7a
MF
2423as_fn_append ac_header_list " dlfcn.h"
2424as_fn_append ac_header_list " fcntl.h"
2425as_fn_append ac_header_list " fpu_control.h"
2426as_fn_append ac_header_list " termios.h"
2427as_fn_append ac_header_list " unistd.h"
2428as_fn_append ac_header_list " utime.h"
2429as_fn_append ac_header_list " linux/if_tun.h"
2430as_fn_append ac_header_list " linux/mii.h"
2431as_fn_append ac_header_list " linux/types.h"
2432as_fn_append ac_header_list " net/if.h"
2433as_fn_append ac_header_list " netinet/in.h"
2434as_fn_append ac_header_list " netinet/tcp.h"
2435as_fn_append ac_header_list " sys/ioctl.h"
2436as_fn_append ac_header_list " sys/mman.h"
a48ff3ef 2437as_fn_append ac_header_list " sys/mount.h"
b15c5d7a
MF
2438as_fn_append ac_header_list " sys/param.h"
2439as_fn_append ac_header_list " sys/resource.h"
b15c5d7a
MF
2440as_fn_append ac_header_list " sys/socket.h"
2441as_fn_append ac_header_list " sys/stat.h"
a48ff3ef
MF
2442as_fn_append ac_header_list " sys/statfs.h"
2443as_fn_append ac_header_list " sys/termio.h"
2444as_fn_append ac_header_list " sys/termios.h"
2445as_fn_append ac_header_list " sys/types.h"
2446as_fn_append ac_header_list " sys/vfs.h"
b15c5d7a 2447as_fn_append ac_func_list " __setfpucw"
a48ff3ef 2448as_fn_append ac_func_list " access"
b15c5d7a
MF
2449as_fn_append ac_func_list " aint"
2450as_fn_append ac_func_list " anint"
a48ff3ef
MF
2451as_fn_append ac_func_list " cfgetispeed"
2452as_fn_append ac_func_list " cfgetospeed"
2453as_fn_append ac_func_list " cfsetispeed"
2454as_fn_append ac_func_list " cfsetospeed"
2455as_fn_append ac_func_list " chdir"
b15c5d7a 2456as_fn_append ac_func_list " chmod"
a48ff3ef
MF
2457as_fn_append ac_func_list " dup"
2458as_fn_append ac_func_list " dup2"
b15c5d7a
MF
2459as_fn_append ac_func_list " execv"
2460as_fn_append ac_func_list " execve"
a48ff3ef 2461as_fn_append ac_func_list " fcntl"
b15c5d7a 2462as_fn_append ac_func_list " fork"
a48ff3ef
MF
2463as_fn_append ac_func_list " fstat"
2464as_fn_append ac_func_list " fstatfs"
b15c5d7a 2465as_fn_append ac_func_list " ftruncate"
a48ff3ef 2466as_fn_append ac_func_list " getdirentries"
b15c5d7a 2467as_fn_append ac_func_list " getegid"
a48ff3ef 2468as_fn_append ac_func_list " geteuid"
b15c5d7a 2469as_fn_append ac_func_list " getgid"
a48ff3ef
MF
2470as_fn_append ac_func_list " getpid"
2471as_fn_append ac_func_list " getppid"
b15c5d7a 2472as_fn_append ac_func_list " getrusage"
a48ff3ef 2473as_fn_append ac_func_list " gettimeofday"
b15c5d7a 2474as_fn_append ac_func_list " getuid"
a48ff3ef 2475as_fn_append ac_func_list " ioctl"
b15c5d7a 2476as_fn_append ac_func_list " kill"
a48ff3ef
MF
2477as_fn_append ac_func_list " link"
2478as_fn_append ac_func_list " lseek"
b15c5d7a
MF
2479as_fn_append ac_func_list " mmap"
2480as_fn_append ac_func_list " munmap"
a48ff3ef 2481as_fn_append ac_func_list " pipe"
b15c5d7a
MF
2482as_fn_append ac_func_list " posix_fallocate"
2483as_fn_append ac_func_list " pread"
a48ff3ef
MF
2484as_fn_append ac_func_list " rmdir"
2485as_fn_append ac_func_list " setregid"
2486as_fn_append ac_func_list " setreuid"
b15c5d7a 2487as_fn_append ac_func_list " setgid"
a48ff3ef 2488as_fn_append ac_func_list " setuid"
b15c5d7a 2489as_fn_append ac_func_list " sigaction"
a48ff3ef 2490as_fn_append ac_func_list " sigprocmask"
b15c5d7a 2491as_fn_append ac_func_list " sqrt"
a48ff3ef 2492as_fn_append ac_func_list " stat"
b15c5d7a 2493as_fn_append ac_func_list " strsignal"
a48ff3ef
MF
2494as_fn_append ac_func_list " symlink"
2495as_fn_append ac_func_list " tcdrain"
2496as_fn_append ac_func_list " tcflow"
2497as_fn_append ac_func_list " tcflush"
2498as_fn_append ac_func_list " tcgetattr"
2499as_fn_append ac_func_list " tcgetpgrp"
2500as_fn_append ac_func_list " tcsendbreak"
2501as_fn_append ac_func_list " tcsetattr"
2502as_fn_append ac_func_list " tcsetpgrp"
b15c5d7a
MF
2503as_fn_append ac_func_list " time"
2504as_fn_append ac_func_list " truncate"
a48ff3ef
MF
2505as_fn_append ac_func_list " umask"
2506as_fn_append ac_func_list " unlink"
b15c5d7a 2507as_fn_append ac_func_list " utime"
b7026657
AC
2508# Check that the precious variables saved in the cache have kept the same
2509# value.
2510ac_cache_corrupted=false
81ecdfbb 2511for ac_var in $ac_precious_vars; do
b7026657
AC
2512 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2513 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2514 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2515 eval ac_new_val=\$ac_env_${ac_var}_value
b7026657
AC
2516 case $ac_old_set,$ac_new_set in
2517 set,)
81ecdfbb
RW
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2519$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
b7026657
AC
2520 ac_cache_corrupted=: ;;
2521 ,set)
81ecdfbb
RW
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2523$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
b7026657
AC
2524 ac_cache_corrupted=: ;;
2525 ,);;
2526 *)
2527 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2528 # differences in whitespace do not lead to failure.
2529 ac_old_val_w=`echo x $ac_old_val`
2530 ac_new_val_w=`echo x $ac_new_val`
2531 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2533$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2534 ac_cache_corrupted=:
2535 else
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2537$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2538 eval $ac_var=\$ac_old_val
2539 fi
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2541$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2543$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
b7026657
AC
2544 fi;;
2545 esac
2546 # Pass precious variables to config.status.
2547 if test "$ac_new_set" = set; then
2548 case $ac_new_val in
81ecdfbb 2549 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b7026657
AC
2550 *) ac_arg=$ac_var=$ac_new_val ;;
2551 esac
2552 case " $ac_configure_args " in
2553 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2554 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
b7026657 2555 esac
c906108c 2556 fi
b7026657
AC
2557done
2558if $ac_cache_corrupted; then
81ecdfbb
RW
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2560$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2562$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d0ac1c44 2563 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
c906108c 2564fi
81ecdfbb
RW
2565## -------------------- ##
2566## Main body of script. ##
2567## -------------------- ##
c906108c 2568
fdd6fa61
AG
2569ac_ext=c
2570ac_cpp='$CPP $CPPFLAGS'
2571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2573ac_compiler_gnu=$ac_cv_c_compiler_gnu
2574
c906108c
SS
2575
2576
8c379db2
TT
2577
2578
2579
6dd65fc0
MF
2580
2581
2582# Check whether --with-pkgversion was given.
2583if test "${with_pkgversion+set}" = set; then :
2584 withval=$with_pkgversion; case "$withval" in
2585 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
2586 no) PKGVERSION= ;;
2587 *) PKGVERSION="($withval) " ;;
2588 esac
2589else
2590 PKGVERSION="(SIM) "
2591
2592fi
2593
2594
2595
2596
2597cat >>confdefs.h <<_ACEOF
2598#define PKGVERSION "$PKGVERSION"
2599_ACEOF
2600
2601
2602
2603# Check whether --with-bugurl was given.
2604if test "${with_bugurl+set}" = set; then :
2605 withval=$with_bugurl; case "$withval" in
2606 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
2607 no) BUGURL=
2608 ;;
2609 *) BUGURL="$withval"
2610 ;;
2611 esac
2612else
2613 BUGURL="$PACKAGE_BUGREPORT"
2614
2615fi
2616
2617 case ${BUGURL} in
2618 "")
2619 REPORT_BUGS_TO=
2620 REPORT_BUGS_TEXI=
2621 ;;
2622 *)
2623 REPORT_BUGS_TO="<$BUGURL>"
2624 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
2625 ;;
2626 esac;
2627
2628
2629
2630
2631cat >>confdefs.h <<_ACEOF
2632#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
2633_ACEOF
2634
2635
b15c5d7a
MF
2636ac_config_headers="$ac_config_headers config.h"
2637
2638
6bddc3e8
MF
2639ac_aux_dir=
2640for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2641 if test -f "$ac_dir/install-sh"; then
2642 ac_aux_dir=$ac_dir
2643 ac_install_sh="$ac_aux_dir/install-sh -c"
2644 break
2645 elif test -f "$ac_dir/install.sh"; then
2646 ac_aux_dir=$ac_dir
2647 ac_install_sh="$ac_aux_dir/install.sh -c"
2648 break
2649 elif test -f "$ac_dir/shtool"; then
2650 ac_aux_dir=$ac_dir
2651 ac_install_sh="$ac_aux_dir/shtool install -c"
2652 break
b7026657
AC
2653 fi
2654done
6bddc3e8
MF
2655if test -z "$ac_aux_dir"; then
2656 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
c906108c
SS
2657fi
2658
6bddc3e8
MF
2659# These three variables are undocumented and unsupported,
2660# and are intended to be withdrawn in a future Autoconf release.
2661# They can cause serious problems if a builder's source tree is in a directory
2662# whose full name contains unusual characters.
2663ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2664ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2665ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
81ecdfbb 2666
6bddc3e8
MF
2667
2668# Make sure we can run config.sub.
2669$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2670 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2671
2672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2673$as_echo_n "checking build system type... " >&6; }
2674if ${ac_cv_build+:} false; then :
81ecdfbb 2675 $as_echo_n "(cached) " >&6
c906108c 2676else
6bddc3e8
MF
2677 ac_build_alias=$build_alias
2678test "x$ac_build_alias" = x &&
2679 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2680test "x$ac_build_alias" = x &&
2681 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2682ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2683 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
b7026657
AC
2684
2685fi
6bddc3e8
MF
2686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2687$as_echo "$ac_cv_build" >&6; }
2688case $ac_cv_build in
2689*-*-*) ;;
2690*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
81ecdfbb 2691esac
6bddc3e8
MF
2692build=$ac_cv_build
2693ac_save_IFS=$IFS; IFS='-'
2694set x $ac_cv_build
2695shift
2696build_cpu=$1
2697build_vendor=$2
2698shift; shift
2699# Remember, the first character of IFS is used to create $*,
2700# except with old shells:
2701build_os=$*
2702IFS=$ac_save_IFS
2703case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
b7026657 2704
6bddc3e8
MF
2705
2706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2707$as_echo_n "checking host system type... " >&6; }
2708if ${ac_cv_host+:} false; then :
81ecdfbb 2709 $as_echo_n "(cached) " >&6
b7026657 2710else
6bddc3e8
MF
2711 if test "x$host_alias" = x; then
2712 ac_cv_host=$ac_cv_build
b7026657 2713else
6bddc3e8
MF
2714 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2715 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
b7026657 2716fi
6bddc3e8 2717
fdd6fa61 2718fi
6bddc3e8
MF
2719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2720$as_echo "$ac_cv_host" >&6; }
2721case $ac_cv_host in
2722*-*-*) ;;
2723*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2724esac
2725host=$ac_cv_host
2726ac_save_IFS=$IFS; IFS='-'
2727set x $ac_cv_host
2728shift
2729host_cpu=$1
2730host_vendor=$2
2731shift; shift
2732# Remember, the first character of IFS is used to create $*,
2733# except with old shells:
2734host_os=$*
2735IFS=$ac_save_IFS
2736case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
fdd6fa61 2737
fdd6fa61 2738
6bddc3e8
MF
2739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2740$as_echo_n "checking target system type... " >&6; }
2741if ${ac_cv_target+:} false; then :
81ecdfbb 2742 $as_echo_n "(cached) " >&6
b7026657 2743else
6bddc3e8
MF
2744 if test "x$target_alias" = x; then
2745 ac_cv_target=$ac_cv_host
c906108c 2746else
6bddc3e8
MF
2747 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2748 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2749fi
2750
2751fi
2752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2753$as_echo "$ac_cv_target" >&6; }
2754case $ac_cv_target in
2755*-*-*) ;;
2756*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2757esac
2758target=$ac_cv_target
2759ac_save_IFS=$IFS; IFS='-'
2760set x $ac_cv_target
2761shift
2762target_cpu=$1
2763target_vendor=$2
2764shift; shift
2765# Remember, the first character of IFS is used to create $*,
2766# except with old shells:
2767target_os=$*
2768IFS=$ac_save_IFS
2769case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2770
2771
2772# The aliases save the names the user supplied, while $host etc.
2773# will get canonicalized.
2774test -n "$target_alias" &&
2775 test "$program_prefix$program_suffix$program_transform_name" = \
2776 NONENONEs,x,x, &&
2777 program_prefix=${target_alias}-
c2783492
MF
2778# Expand $ac_aux_dir to an absolute path.
2779am_aux_dir=`cd "$ac_aux_dir" && pwd`
6bddc3e8 2780
c2783492
MF
2781ac_ext=c
2782ac_cpp='$CPP $CPPFLAGS'
2783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2785ac_compiler_gnu=$ac_cv_c_compiler_gnu
2786if test -n "$ac_tool_prefix"; then
2787 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2788set dummy ${ac_tool_prefix}gcc; ac_word=$2
2789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2790$as_echo_n "checking for $ac_word... " >&6; }
2791if ${ac_cv_prog_CC+:} false; then :
2792 $as_echo_n "(cached) " >&6
8c379db2 2793else
c2783492
MF
2794 if test -n "$CC"; then
2795 ac_cv_prog_CC="$CC" # Let the user override the test.
2796else
2797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798for as_dir in $PATH
2799do
2800 IFS=$as_save_IFS
2801 test -z "$as_dir" && as_dir=.
2802 for ac_exec_ext in '' $ac_executable_extensions; do
2803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2804 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2806 break 2
2807 fi
2808done
2809 done
2810IFS=$as_save_IFS
8c379db2 2811
c2783492
MF
2812fi
2813fi
2814CC=$ac_cv_prog_CC
2815if test -n "$CC"; then
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2817$as_echo "$CC" >&6; }
8c379db2 2818else
c2783492
MF
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2820$as_echo "no" >&6; }
8c379db2
TT
2821fi
2822
6bddc3e8 2823
c2783492
MF
2824fi
2825if test -z "$ac_cv_prog_CC"; then
2826 ac_ct_CC=$CC
2827 # Extract the first word of "gcc", so it can be a program name with args.
2828set dummy gcc; ac_word=$2
2829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2830$as_echo_n "checking for $ac_word... " >&6; }
2831if ${ac_cv_prog_ac_ct_CC+:} false; then :
6bddc3e8
MF
2832 $as_echo_n "(cached) " >&6
2833else
c2783492
MF
2834 if test -n "$ac_ct_CC"; then
2835 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2836else
2837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6bddc3e8
MF
2838for as_dir in $PATH
2839do
2840 IFS=$as_save_IFS
2841 test -z "$as_dir" && as_dir=.
c2783492
MF
2842 for ac_exec_ext in '' $ac_executable_extensions; do
2843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2844 ac_cv_prog_ac_ct_CC="gcc"
2845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2846 break 2
2847 fi
2848done
6bddc3e8
MF
2849 done
2850IFS=$as_save_IFS
2851
6bddc3e8 2852fi
6bddc3e8 2853fi
c2783492
MF
2854ac_ct_CC=$ac_cv_prog_ac_ct_CC
2855if test -n "$ac_ct_CC"; then
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2857$as_echo "$ac_ct_CC" >&6; }
6bddc3e8 2858else
c2783492
MF
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2860$as_echo "no" >&6; }
6bddc3e8
MF
2861fi
2862
c2783492
MF
2863 if test "x$ac_ct_CC" = x; then
2864 CC=""
2865 else
2866 case $cross_compiling:$ac_tool_warned in
2867yes:)
2868{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2869$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2870ac_tool_warned=yes ;;
2871esac
2872 CC=$ac_ct_CC
2873 fi
6bddc3e8 2874else
c2783492 2875 CC="$ac_cv_prog_CC"
6bddc3e8
MF
2876fi
2877
c2783492
MF
2878if test -z "$CC"; then
2879 if test -n "$ac_tool_prefix"; then
2880 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2881set dummy ${ac_tool_prefix}cc; ac_word=$2
6bddc3e8
MF
2882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2883$as_echo_n "checking for $ac_word... " >&6; }
c2783492 2884if ${ac_cv_prog_CC+:} false; then :
6bddc3e8
MF
2885 $as_echo_n "(cached) " >&6
2886else
c2783492
MF
2887 if test -n "$CC"; then
2888 ac_cv_prog_CC="$CC" # Let the user override the test.
6bddc3e8
MF
2889else
2890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891for as_dir in $PATH
2892do
2893 IFS=$as_save_IFS
2894 test -z "$as_dir" && as_dir=.
2895 for ac_exec_ext in '' $ac_executable_extensions; do
2896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c2783492 2897 ac_cv_prog_CC="${ac_tool_prefix}cc"
6bddc3e8
MF
2898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2899 break 2
2900 fi
2901done
2902 done
2903IFS=$as_save_IFS
2904
2905fi
2906fi
c2783492
MF
2907CC=$ac_cv_prog_CC
2908if test -n "$CC"; then
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2910$as_echo "$CC" >&6; }
6bddc3e8
MF
2911else
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2913$as_echo "no" >&6; }
2914fi
2915
2916
c2783492 2917 fi
6bddc3e8 2918fi
c2783492
MF
2919if test -z "$CC"; then
2920 # Extract the first word of "cc", so it can be a program name with args.
2921set dummy cc; ac_word=$2
6bddc3e8
MF
2922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2923$as_echo_n "checking for $ac_word... " >&6; }
c2783492 2924if ${ac_cv_prog_CC+:} false; then :
6bddc3e8
MF
2925 $as_echo_n "(cached) " >&6
2926else
c2783492
MF
2927 if test -n "$CC"; then
2928 ac_cv_prog_CC="$CC" # Let the user override the test.
6bddc3e8 2929else
c2783492 2930 ac_prog_rejected=no
6bddc3e8
MF
2931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2932for as_dir in $PATH
2933do
2934 IFS=$as_save_IFS
2935 test -z "$as_dir" && as_dir=.
2936 for ac_exec_ext in '' $ac_executable_extensions; do
2937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c2783492
MF
2938 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2939 ac_prog_rejected=yes
2940 continue
2941 fi
2942 ac_cv_prog_CC="cc"
6bddc3e8
MF
2943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2944 break 2
2945 fi
2946done
2947 done
2948IFS=$as_save_IFS
2949
c2783492
MF
2950if test $ac_prog_rejected = yes; then
2951 # We found a bogon in the path, so make sure we never use it.
2952 set dummy $ac_cv_prog_CC
2953 shift
2954 if test $# != 0; then
2955 # We chose a different compiler from the bogus one.
2956 # However, it has the same basename, so the bogon will be chosen
2957 # first if we set CC to just the basename; use the full file name.
2958 shift
2959 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2960 fi
6bddc3e8
MF
2961fi
2962fi
c2783492
MF
2963fi
2964CC=$ac_cv_prog_CC
2965if test -n "$CC"; then
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2967$as_echo "$CC" >&6; }
6bddc3e8
MF
2968else
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970$as_echo "no" >&6; }
2971fi
2972
6bddc3e8
MF
2973
2974fi
c2783492
MF
2975if test -z "$CC"; then
2976 if test -n "$ac_tool_prefix"; then
2977 for ac_prog in cl.exe
2978 do
2979 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2980set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2982$as_echo_n "checking for $ac_word... " >&6; }
2983if ${ac_cv_prog_CC+:} false; then :
6bddc3e8
MF
2984 $as_echo_n "(cached) " >&6
2985else
c2783492
MF
2986 if test -n "$CC"; then
2987 ac_cv_prog_CC="$CC" # Let the user override the test.
2988else
2989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990for as_dir in $PATH
6bddc3e8
MF
2991do
2992 IFS=$as_save_IFS
2993 test -z "$as_dir" && as_dir=.
c2783492
MF
2994 for ac_exec_ext in '' $ac_executable_extensions; do
2995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2996 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2998 break 2
2999 fi
3000done
6bddc3e8
MF
3001 done
3002IFS=$as_save_IFS
3003
3004fi
6bddc3e8 3005fi
c2783492
MF
3006CC=$ac_cv_prog_CC
3007if test -n "$CC"; then
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3009$as_echo "$CC" >&6; }
3010else
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3012$as_echo "no" >&6; }
3013fi
6bddc3e8 3014
c2783492
MF
3015
3016 test -n "$CC" && break
3017 done
3018fi
3019if test -z "$CC"; then
3020 ac_ct_CC=$CC
3021 for ac_prog in cl.exe
6bddc3e8
MF
3022do
3023 # Extract the first word of "$ac_prog", so it can be a program name with args.
3024set dummy $ac_prog; ac_word=$2
3025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3026$as_echo_n "checking for $ac_word... " >&6; }
c2783492 3027if ${ac_cv_prog_ac_ct_CC+:} false; then :
6bddc3e8
MF
3028 $as_echo_n "(cached) " >&6
3029else
c2783492
MF
3030 if test -n "$ac_ct_CC"; then
3031 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6bddc3e8
MF
3032else
3033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034for as_dir in $PATH
3035do
3036 IFS=$as_save_IFS
3037 test -z "$as_dir" && as_dir=.
3038 for ac_exec_ext in '' $ac_executable_extensions; do
3039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c2783492 3040 ac_cv_prog_ac_ct_CC="$ac_prog"
6bddc3e8
MF
3041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3042 break 2
3043 fi
3044done
3045 done
3046IFS=$as_save_IFS
3047
3048fi
3049fi
c2783492
MF
3050ac_ct_CC=$ac_cv_prog_ac_ct_CC
3051if test -n "$ac_ct_CC"; then
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3053$as_echo "$ac_ct_CC" >&6; }
6bddc3e8
MF
3054else
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3056$as_echo "no" >&6; }
3057fi
3058
3059
c2783492 3060 test -n "$ac_ct_CC" && break
6bddc3e8
MF
3061done
3062
c2783492
MF
3063 if test "x$ac_ct_CC" = x; then
3064 CC=""
3065 else
3066 case $cross_compiling:$ac_tool_warned in
3067yes:)
3068{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3069$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3070ac_tool_warned=yes ;;
6bddc3e8 3071esac
c2783492 3072 CC=$ac_ct_CC
6bddc3e8
MF
3073 fi
3074fi
3075
6bddc3e8
MF
3076fi
3077
3078
c2783492
MF
3079test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3080$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3081as_fn_error $? "no acceptable C compiler found in \$PATH
3082See \`config.log' for more details" "$LINENO" 5; }
6bddc3e8 3083
c2783492
MF
3084# Provide some information about the compiler.
3085$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3086set X $ac_compile
3087ac_compiler=$2
3088for ac_option in --version -v -V -qversion; do
3089 { { ac_try="$ac_compiler $ac_option >&5"
3090case "(($ac_try" in
3091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092 *) ac_try_echo=$ac_try;;
3093esac
3094eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3095$as_echo "$ac_try_echo"; } >&5
3096 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3097 ac_status=$?
3098 if test -s conftest.err; then
3099 sed '10a\
3100... rest of stderr output deleted ...
3101 10q' conftest.err >conftest.er1
3102 cat conftest.er1 >&5
3103 fi
3104 rm -f conftest.er1 conftest.err
3105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3106 test $ac_status = 0; }
3107done
6bddc3e8 3108
c2783492
MF
3109cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3110/* end confdefs.h. */
6bddc3e8 3111
c2783492
MF
3112int
3113main ()
3114{
6bddc3e8 3115
c2783492
MF
3116 ;
3117 return 0;
3118}
6bddc3e8 3119_ACEOF
c2783492
MF
3120ac_clean_files_save=$ac_clean_files
3121ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3122# Try to create an executable without -o first, disregard a.out.
3123# It will help us diagnose broken compilers, and finding out an intuition
3124# of exeext.
3125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3126$as_echo_n "checking whether the C compiler works... " >&6; }
3127ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
6bddc3e8 3128
c2783492
MF
3129# The possible output files:
3130ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
6bddc3e8 3131
c2783492
MF
3132ac_rmfiles=
3133for ac_file in $ac_files
3134do
3135 case $ac_file in
3136 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3137 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3138 esac
3139done
3140rm -f $ac_rmfiles
81ecdfbb
RW
3141
3142if { { ac_try="$ac_link_default"
3143case "(($ac_try" in
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3146esac
3147eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3148$as_echo "$ac_try_echo"; } >&5
3149 (eval "$ac_link_default") 2>&5
b7026657 3150 ac_status=$?
81ecdfbb
RW
3151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3152 test $ac_status = 0; }; then :
3153 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3154# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3155# in a Makefile. We should not override ac_cv_exeext if it was cached,
3156# so that the user can short-circuit this test for compilers unknown to
3157# Autoconf.
3158for ac_file in $ac_files ''
b7026657
AC
3159do
3160 test -f "$ac_file" || continue
3161 case $ac_file in
81ecdfbb 3162 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
b7026657
AC
3163 ;;
3164 [ab].out )
3165 # We found the default executable, but exeext='' is most
3166 # certainly right.
3167 break;;
3168 *.* )
81ecdfbb
RW
3169 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3170 then :; else
3171 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3172 fi
3173 # We set ac_cv_exeext here because the later test for it is not
3174 # safe: cross compilers may not add the suffix if given an `-o'
3175 # argument, so we may need to know it at that point already.
3176 # Even if this section looks crufty: it has the advantage of
3177 # actually working.
b7026657
AC
3178 break;;
3179 * )
3180 break;;
3181 esac
3182done
81ecdfbb
RW
3183test "$ac_cv_exeext" = no && ac_cv_exeext=
3184
b7026657 3185else
81ecdfbb
RW
3186 ac_file=''
3187fi
81ecdfbb 3188if test -z "$ac_file"; then :
d0ac1c44
SM
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3190$as_echo "no" >&6; }
3191$as_echo "$as_me: failed program was:" >&5
b7026657
AC
3192sed 's/^/| /' conftest.$ac_ext >&5
3193
81ecdfbb
RW
3194{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3195$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
3196as_fn_error 77 "C compiler cannot create executables
3197See \`config.log' for more details" "$LINENO" 5; }
3198else
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3200$as_echo "yes" >&6; }
b7026657 3201fi
d0ac1c44
SM
3202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3203$as_echo_n "checking for C compiler default output file name... " >&6; }
3204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3205$as_echo "$ac_file" >&6; }
b7026657 3206ac_exeext=$ac_cv_exeext
b7026657 3207
d0ac1c44 3208rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
b7026657 3209ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
3210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3211$as_echo_n "checking for suffix of executables... " >&6; }
3212if { { ac_try="$ac_link"
3213case "(($ac_try" in
3214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215 *) ac_try_echo=$ac_try;;
3216esac
3217eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3218$as_echo "$ac_try_echo"; } >&5
3219 (eval "$ac_link") 2>&5
b7026657 3220 ac_status=$?
81ecdfbb
RW
3221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3222 test $ac_status = 0; }; then :
b7026657
AC
3223 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3224# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3225# work properly (i.e., refer to `conftest.exe'), while it won't with
3226# `rm'.
3227for ac_file in conftest.exe conftest conftest.*; do
3228 test -f "$ac_file" || continue
3229 case $ac_file in
81ecdfbb 3230 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
b7026657 3231 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
b7026657
AC
3232 break;;
3233 * ) break;;
3234 esac
3235done
c906108c 3236else
81ecdfbb
RW
3237 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3238$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
3239as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3240See \`config.log' for more details" "$LINENO" 5; }
c906108c 3241fi
d0ac1c44 3242rm -f conftest conftest$ac_cv_exeext
81ecdfbb
RW
3243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3244$as_echo "$ac_cv_exeext" >&6; }
b7026657
AC
3245
3246rm -f conftest.$ac_ext
3247EXEEXT=$ac_cv_exeext
3248ac_exeext=$EXEEXT
d0ac1c44
SM
3249cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3250/* end confdefs.h. */
3251#include <stdio.h>
3252int
3253main ()
3254{
3255FILE *f = fopen ("conftest.out", "w");
3256 return ferror (f) || fclose (f) != 0;
3257
3258 ;
3259 return 0;
3260}
3261_ACEOF
3262ac_clean_files="$ac_clean_files conftest.out"
3263# Check that the compiler produces executables we can run. If not, either
3264# the compiler is broken, or we cross compile.
3265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3266$as_echo_n "checking whether we are cross compiling... " >&6; }
3267if test "$cross_compiling" != yes; then
3268 { { ac_try="$ac_link"
3269case "(($ac_try" in
3270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3271 *) ac_try_echo=$ac_try;;
3272esac
3273eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3274$as_echo "$ac_try_echo"; } >&5
3275 (eval "$ac_link") 2>&5
3276 ac_status=$?
3277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3278 test $ac_status = 0; }
3279 if { ac_try='./conftest$ac_cv_exeext'
3280 { { case "(($ac_try" in
3281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282 *) ac_try_echo=$ac_try;;
3283esac
3284eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3285$as_echo "$ac_try_echo"; } >&5
3286 (eval "$ac_try") 2>&5
3287 ac_status=$?
3288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3289 test $ac_status = 0; }; }; then
3290 cross_compiling=no
3291 else
3292 if test "$cross_compiling" = maybe; then
3293 cross_compiling=yes
3294 else
3295 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3296$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3297as_fn_error $? "cannot run C compiled programs.
3298If you meant to cross compile, use \`--host'.
3299See \`config.log' for more details" "$LINENO" 5; }
3300 fi
3301 fi
3302fi
3303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3304$as_echo "$cross_compiling" >&6; }
3305
3306rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3307ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
3308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3309$as_echo_n "checking for suffix of object files... " >&6; }
d0ac1c44 3310if ${ac_cv_objext+:} false; then :
81ecdfbb 3311 $as_echo_n "(cached) " >&6
b7026657 3312else
81ecdfbb 3313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
3314/* end confdefs.h. */
3315
3316int
3317main ()
3318{
3319
3320 ;
3321 return 0;
3322}
3323_ACEOF
3324rm -f conftest.o conftest.obj
81ecdfbb
RW
3325if { { ac_try="$ac_compile"
3326case "(($ac_try" in
3327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328 *) ac_try_echo=$ac_try;;
3329esac
3330eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3331$as_echo "$ac_try_echo"; } >&5
3332 (eval "$ac_compile") 2>&5
b7026657 3333 ac_status=$?
81ecdfbb
RW
3334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3335 test $ac_status = 0; }; then :
3336 for ac_file in conftest.o conftest.obj conftest.*; do
3337 test -f "$ac_file" || continue;
b7026657 3338 case $ac_file in
81ecdfbb 3339 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
b7026657
AC
3340 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3341 break;;
3342 esac
3343done
3344else
81ecdfbb 3345 $as_echo "$as_me: failed program was:" >&5
b7026657
AC
3346sed 's/^/| /' conftest.$ac_ext >&5
3347
81ecdfbb
RW
3348{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3349$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
3350as_fn_error $? "cannot compute suffix of object files: cannot compile
3351See \`config.log' for more details" "$LINENO" 5; }
c906108c 3352fi
b7026657
AC
3353rm -f conftest.$ac_cv_objext conftest.$ac_ext
3354fi
81ecdfbb
RW
3355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3356$as_echo "$ac_cv_objext" >&6; }
b7026657
AC
3357OBJEXT=$ac_cv_objext
3358ac_objext=$OBJEXT
81ecdfbb
RW
3359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3360$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 3361if ${ac_cv_c_compiler_gnu+:} false; then :
81ecdfbb 3362 $as_echo_n "(cached) " >&6
b7026657 3363else
81ecdfbb 3364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
3365/* end confdefs.h. */
3366
3367int
3368main ()
3369{
3370#ifndef __GNUC__
3371 choke me
3372#endif
c906108c 3373
b7026657
AC
3374 ;
3375 return 0;
3376}
3377_ACEOF
81ecdfbb 3378if ac_fn_c_try_compile "$LINENO"; then :
b7026657 3379 ac_compiler_gnu=yes
c906108c 3380else
81ecdfbb 3381 ac_compiler_gnu=no
c906108c 3382fi
81ecdfbb 3383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 3384ac_cv_c_compiler_gnu=$ac_compiler_gnu
c906108c 3385
b7026657 3386fi
81ecdfbb
RW
3387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3388$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3389if test $ac_compiler_gnu = yes; then
3390 GCC=yes
3391else
3392 GCC=
3393fi
b7026657
AC
3394ac_test_CFLAGS=${CFLAGS+set}
3395ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
3396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3397$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 3398if ${ac_cv_prog_cc_g+:} false; then :
81ecdfbb 3399 $as_echo_n "(cached) " >&6
c906108c 3400else
81ecdfbb
RW
3401 ac_save_c_werror_flag=$ac_c_werror_flag
3402 ac_c_werror_flag=yes
3403 ac_cv_prog_cc_g=no
3404 CFLAGS="-g"
3405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
3406/* end confdefs.h. */
3407
3408int
3409main ()
3410{
3411
3412 ;
3413 return 0;
3414}
3415_ACEOF
81ecdfbb 3416if ac_fn_c_try_compile "$LINENO"; then :
c906108c
SS
3417 ac_cv_prog_cc_g=yes
3418else
81ecdfbb
RW
3419 CFLAGS=""
3420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3421/* end confdefs.h. */
3422
3423int
3424main ()
3425{
3426
3427 ;
3428 return 0;
3429}
3430_ACEOF
3431if ac_fn_c_try_compile "$LINENO"; then :
3432
3433else
3434 ac_c_werror_flag=$ac_save_c_werror_flag
3435 CFLAGS="-g"
3436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3437/* end confdefs.h. */
3438
3439int
3440main ()
3441{
c906108c 3442
81ecdfbb
RW
3443 ;
3444 return 0;
3445}
3446_ACEOF
3447if ac_fn_c_try_compile "$LINENO"; then :
3448 ac_cv_prog_cc_g=yes
3449fi
3450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3451fi
81ecdfbb 3452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 3453fi
81ecdfbb
RW
3454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3455 ac_c_werror_flag=$ac_save_c_werror_flag
3456fi
3457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3458$as_echo "$ac_cv_prog_cc_g" >&6; }
c906108c 3459if test "$ac_test_CFLAGS" = set; then
b7026657 3460 CFLAGS=$ac_save_CFLAGS
c906108c
SS
3461elif test $ac_cv_prog_cc_g = yes; then
3462 if test "$GCC" = yes; then
3463 CFLAGS="-g -O2"
3464 else
3465 CFLAGS="-g"
3466 fi
3467else
3468 if test "$GCC" = yes; then
3469 CFLAGS="-O2"
3470 else
3471 CFLAGS=
3472 fi
3473fi
81ecdfbb
RW
3474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3475$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 3476if ${ac_cv_prog_cc_c89+:} false; then :
81ecdfbb 3477 $as_echo_n "(cached) " >&6
b7026657 3478else
81ecdfbb 3479 ac_cv_prog_cc_c89=no
b7026657 3480ac_save_CC=$CC
81ecdfbb 3481cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
3482/* end confdefs.h. */
3483#include <stdarg.h>
3484#include <stdio.h>
d0ac1c44 3485struct stat;
b7026657
AC
3486/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3487struct buf { int x; };
3488FILE * (*rcsopen) (struct buf *, struct stat *, int);
3489static char *e (p, i)
3490 char **p;
3491 int i;
3492{
3493 return p[i];
3494}
3495static char *f (char * (*g) (char **, int), char **p, ...)
3496{
3497 char *s;
3498 va_list v;
3499 va_start (v,p);
3500 s = g (p, va_arg (v,int));
3501 va_end (v);
3502 return s;
3503}
3504
3505/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3506 function prototypes and stuff, but not '\xHH' hex character constants.
3507 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3508 as 'x'. The following induces an error, until -std is added to get
b7026657
AC
3509 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3510 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3511 that's true only with -std. */
b7026657
AC
3512int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3513
81ecdfbb
RW
3514/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3515 inside strings and character constants. */
3516#define FOO(x) 'x'
3517int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3518
b7026657
AC
3519int test (int i, double x);
3520struct s1 {int (*f) (int a);};
3521struct s2 {int (*f) (double a);};
3522int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3523int argc;
3524char **argv;
3525int
3526main ()
3527{
3528return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3529 ;
3530 return 0;
3531}
3532_ACEOF
81ecdfbb
RW
3533for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3534 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b7026657
AC
3535do
3536 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3537 if ac_fn_c_try_compile "$LINENO"; then :
3538 ac_cv_prog_cc_c89=$ac_arg
b7026657 3539fi
81ecdfbb
RW
3540rm -f core conftest.err conftest.$ac_objext
3541 test "x$ac_cv_prog_cc_c89" != "xno" && break
b7026657 3542done
81ecdfbb 3543rm -f conftest.$ac_ext
b7026657
AC
3544CC=$ac_save_CC
3545
3546fi
81ecdfbb
RW
3547# AC_CACHE_VAL
3548case "x$ac_cv_prog_cc_c89" in
3549 x)
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3551$as_echo "none needed" >&6; } ;;
3552 xno)
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3554$as_echo "unsupported" >&6; } ;;
b7026657 3555 *)
81ecdfbb
RW
3556 CC="$CC $ac_cv_prog_cc_c89"
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3558$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
b7026657 3559esac
81ecdfbb 3560if test "x$ac_cv_prog_cc_c89" != xno; then :
b7026657 3561
fdd6fa61
AG
3562fi
3563
fdd6fa61
AG
3564ac_ext=c
3565ac_cpp='$CPP $CPPFLAGS'
3566ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3567ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3568ac_compiler_gnu=$ac_cv_c_compiler_gnu
3569
c2783492
MF
3570ac_ext=c
3571ac_cpp='$CPP $CPPFLAGS'
3572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3574ac_compiler_gnu=$ac_cv_c_compiler_gnu
3575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3576$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3577if ${am_cv_prog_cc_c_o+:} false; then :
3578 $as_echo_n "(cached) " >&6
3579else
3580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581/* end confdefs.h. */
3582
3583int
3584main ()
3585{
3586
3587 ;
3588 return 0;
3589}
3590_ACEOF
3591 # Make sure it works both with $CC and with simple cc.
3592 # Following AC_PROG_CC_C_O, we do the test twice because some
3593 # compilers refuse to overwrite an existing .o file with -o,
3594 # though they will create one.
3595 am_cv_prog_cc_c_o=yes
3596 for am_i in 1 2; do
3597 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3598 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3599 ac_status=$?
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); } \
3602 && test -f conftest2.$ac_objext; then
3603 : OK
3604 else
3605 am_cv_prog_cc_c_o=no
3606 break
3607 fi
3608 done
3609 rm -f core conftest*
3610 unset am_i
3611fi
3612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3613$as_echo "$am_cv_prog_cc_c_o" >&6; }
3614if test "$am_cv_prog_cc_c_o" != yes; then
3615 # Losing compiler, so override with the script.
3616 # FIXME: It is wrong to rewrite CC.
3617 # But if we don't then we get into trouble of one sort or another.
3618 # A longer-term fix would be to have automake use am__CC in this case,
3619 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3620 CC="$am_aux_dir/compile $CC"
3621fi
3622ac_ext=c
3623ac_cpp='$CPP $CPPFLAGS'
3624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3626ac_compiler_gnu=$ac_cv_c_compiler_gnu
3627
3628
3629
3630ac_ext=c
3631ac_cpp='$CPP $CPPFLAGS'
3632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3634ac_compiler_gnu=$ac_cv_c_compiler_gnu
3635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3636$as_echo_n "checking how to run the C preprocessor... " >&6; }
3637# On Suns, sometimes $CPP names a directory.
3638if test -n "$CPP" && test -d "$CPP"; then
3639 CPP=
3640fi
3641if test -z "$CPP"; then
3642 if ${ac_cv_prog_CPP+:} false; then :
3643 $as_echo_n "(cached) " >&6
3644else
3645 # Double quotes because CPP needs to be expanded
3646 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3647 do
3648 ac_preproc_ok=false
3649for ac_c_preproc_warn_flag in '' yes
3650do
3651 # Use a header file that comes with gcc, so configuring glibc
3652 # with a fresh cross-compiler works.
3653 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3654 # <limits.h> exists even on freestanding compilers.
3655 # On the NeXT, cc -E runs the code through the compiler's parser,
3656 # not just through cpp. "Syntax error" is here to catch this case.
3657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3658/* end confdefs.h. */
3659#ifdef __STDC__
3660# include <limits.h>
3661#else
3662# include <assert.h>
3663#endif
3664 Syntax error
3665_ACEOF
3666if ac_fn_c_try_cpp "$LINENO"; then :
3667
3668else
3669 # Broken: fails on valid input.
3670continue
3671fi
3672rm -f conftest.err conftest.i conftest.$ac_ext
3673
3674 # OK, works on sane cases. Now check whether nonexistent headers
3675 # can be detected and how.
3676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3677/* end confdefs.h. */
3678#include <ac_nonexistent.h>
3679_ACEOF
3680if ac_fn_c_try_cpp "$LINENO"; then :
3681 # Broken: success on invalid input.
3682continue
3683else
3684 # Passes both tests.
3685ac_preproc_ok=:
3686break
3687fi
3688rm -f conftest.err conftest.i conftest.$ac_ext
3689
3690done
3691# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3692rm -f conftest.i conftest.err conftest.$ac_ext
3693if $ac_preproc_ok; then :
3694 break
3695fi
3696
3697 done
3698 ac_cv_prog_CPP=$CPP
3699
3700fi
3701 CPP=$ac_cv_prog_CPP
3702else
3703 ac_cv_prog_CPP=$CPP
3704fi
3705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3706$as_echo "$CPP" >&6; }
3707ac_preproc_ok=false
3708for ac_c_preproc_warn_flag in '' yes
3709do
3710 # Use a header file that comes with gcc, so configuring glibc
3711 # with a fresh cross-compiler works.
3712 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3713 # <limits.h> exists even on freestanding compilers.
3714 # On the NeXT, cc -E runs the code through the compiler's parser,
3715 # not just through cpp. "Syntax error" is here to catch this case.
3716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3717/* end confdefs.h. */
3718#ifdef __STDC__
3719# include <limits.h>
3720#else
3721# include <assert.h>
3722#endif
3723 Syntax error
3724_ACEOF
3725if ac_fn_c_try_cpp "$LINENO"; then :
3726
3727else
3728 # Broken: fails on valid input.
3729continue
3730fi
3731rm -f conftest.err conftest.i conftest.$ac_ext
3732
3733 # OK, works on sane cases. Now check whether nonexistent headers
3734 # can be detected and how.
3735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3736/* end confdefs.h. */
3737#include <ac_nonexistent.h>
3738_ACEOF
3739if ac_fn_c_try_cpp "$LINENO"; then :
3740 # Broken: success on invalid input.
3741continue
3742else
3743 # Passes both tests.
3744ac_preproc_ok=:
3745break
3746fi
3747rm -f conftest.err conftest.i conftest.$ac_ext
3748
3749done
3750# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3751rm -f conftest.i conftest.err conftest.$ac_ext
3752if $ac_preproc_ok; then :
3753
3754else
3755 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3756$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3757as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3758See \`config.log' for more details" "$LINENO" 5; }
3759fi
3760
3761ac_ext=c
3762ac_cpp='$CPP $CPPFLAGS'
3763ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3764ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3765ac_compiler_gnu=$ac_cv_c_compiler_gnu
3766
3767
3768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3769$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3770if ${ac_cv_path_GREP+:} false; then :
3771 $as_echo_n "(cached) " >&6
3772else
3773 if test -z "$GREP"; then
3774 ac_path_GREP_found=false
3775 # Loop through the user's path and test for each of PROGNAME-LIST
3776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3777for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3778do
3779 IFS=$as_save_IFS
3780 test -z "$as_dir" && as_dir=.
3781 for ac_prog in grep ggrep; do
3782 for ac_exec_ext in '' $ac_executable_extensions; do
3783 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3784 as_fn_executable_p "$ac_path_GREP" || continue
3785# Check for GNU ac_path_GREP and select it if it is found.
3786 # Check for GNU $ac_path_GREP
3787case `"$ac_path_GREP" --version 2>&1` in
3788*GNU*)
3789 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3790*)
3791 ac_count=0
3792 $as_echo_n 0123456789 >"conftest.in"
3793 while :
3794 do
3795 cat "conftest.in" "conftest.in" >"conftest.tmp"
3796 mv "conftest.tmp" "conftest.in"
3797 cp "conftest.in" "conftest.nl"
3798 $as_echo 'GREP' >> "conftest.nl"
3799 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3800 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3801 as_fn_arith $ac_count + 1 && ac_count=$as_val
3802 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3803 # Best one so far, save it but keep looking for a better one
3804 ac_cv_path_GREP="$ac_path_GREP"
3805 ac_path_GREP_max=$ac_count
3806 fi
3807 # 10*(2^10) chars as input seems more than enough
3808 test $ac_count -gt 10 && break
3809 done
3810 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3811esac
3812
3813 $ac_path_GREP_found && break 3
3814 done
3815 done
3816 done
3817IFS=$as_save_IFS
3818 if test -z "$ac_cv_path_GREP"; then
3819 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3820 fi
3821else
3822 ac_cv_path_GREP=$GREP
3823fi
3824
3825fi
3826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3827$as_echo "$ac_cv_path_GREP" >&6; }
3828 GREP="$ac_cv_path_GREP"
3829
3830
3831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3832$as_echo_n "checking for egrep... " >&6; }
3833if ${ac_cv_path_EGREP+:} false; then :
3834 $as_echo_n "(cached) " >&6
3835else
3836 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3837 then ac_cv_path_EGREP="$GREP -E"
3838 else
3839 if test -z "$EGREP"; then
3840 ac_path_EGREP_found=false
3841 # Loop through the user's path and test for each of PROGNAME-LIST
3842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3843for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3844do
3845 IFS=$as_save_IFS
3846 test -z "$as_dir" && as_dir=.
3847 for ac_prog in egrep; do
3848 for ac_exec_ext in '' $ac_executable_extensions; do
3849 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3850 as_fn_executable_p "$ac_path_EGREP" || continue
3851# Check for GNU ac_path_EGREP and select it if it is found.
3852 # Check for GNU $ac_path_EGREP
3853case `"$ac_path_EGREP" --version 2>&1` in
3854*GNU*)
3855 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3856*)
3857 ac_count=0
3858 $as_echo_n 0123456789 >"conftest.in"
3859 while :
3860 do
3861 cat "conftest.in" "conftest.in" >"conftest.tmp"
3862 mv "conftest.tmp" "conftest.in"
3863 cp "conftest.in" "conftest.nl"
3864 $as_echo 'EGREP' >> "conftest.nl"
3865 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3866 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3867 as_fn_arith $ac_count + 1 && ac_count=$as_val
3868 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3869 # Best one so far, save it but keep looking for a better one
3870 ac_cv_path_EGREP="$ac_path_EGREP"
3871 ac_path_EGREP_max=$ac_count
3872 fi
3873 # 10*(2^10) chars as input seems more than enough
3874 test $ac_count -gt 10 && break
3875 done
3876 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3877esac
3878
3879 $ac_path_EGREP_found && break 3
3880 done
3881 done
3882 done
3883IFS=$as_save_IFS
3884 if test -z "$ac_cv_path_EGREP"; then
3885 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3886 fi
3887else
3888 ac_cv_path_EGREP=$EGREP
3889fi
3890
3891 fi
3892fi
3893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3894$as_echo "$ac_cv_path_EGREP" >&6; }
3895 EGREP="$ac_cv_path_EGREP"
3896
3897
3898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3899$as_echo_n "checking for ANSI C header files... " >&6; }
3900if ${ac_cv_header_stdc+:} false; then :
6bddc3e8
MF
3901 $as_echo_n "(cached) " >&6
3902else
3903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3904/* end confdefs.h. */
c2783492
MF
3905#include <stdlib.h>
3906#include <stdarg.h>
3907#include <string.h>
3908#include <float.h>
6bddc3e8
MF
3909
3910int
3911main ()
3912{
3913
3914 ;
3915 return 0;
3916}
3917_ACEOF
c2783492
MF
3918if ac_fn_c_try_compile "$LINENO"; then :
3919 ac_cv_header_stdc=yes
3920else
3921 ac_cv_header_stdc=no
fdd6fa61 3922fi
c2783492 3923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
81ecdfbb 3924
c2783492
MF
3925if test $ac_cv_header_stdc = yes; then
3926 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3928/* end confdefs.h. */
3929#include <string.h>
6bddc3e8 3930
c2783492
MF
3931_ACEOF
3932if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3933 $EGREP "memchr" >/dev/null 2>&1; then :
6bddc3e8 3934
c2783492
MF
3935else
3936 ac_cv_header_stdc=no
3937fi
3938rm -f conftest*
6bddc3e8 3939
6bddc3e8 3940fi
81ecdfbb 3941
c2783492
MF
3942if test $ac_cv_header_stdc = yes; then
3943 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3945/* end confdefs.h. */
3946#include <stdlib.h>
fdd6fa61 3947
c2783492
MF
3948_ACEOF
3949if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3950 $EGREP "free" >/dev/null 2>&1; then :
6bddc3e8 3951
c2783492
MF
3952else
3953 ac_cv_header_stdc=no
6bddc3e8 3954fi
c2783492 3955rm -f conftest*
6bddc3e8 3956
6bddc3e8 3957fi
c2783492
MF
3958
3959if test $ac_cv_header_stdc = yes; then
3960 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3961 if test "$cross_compiling" = yes; then :
3962 :
6bddc3e8 3963else
c2783492
MF
3964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965/* end confdefs.h. */
3966#include <ctype.h>
3967#include <stdlib.h>
3968#if ((' ' & 0x0FF) == 0x020)
3969# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3970# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3971#else
3972# define ISLOWER(c) \
3973 (('a' <= (c) && (c) <= 'i') \
3974 || ('j' <= (c) && (c) <= 'r') \
3975 || ('s' <= (c) && (c) <= 'z'))
3976# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3977#endif
3978
3979#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3980int
3981main ()
3982{
3983 int i;
3984 for (i = 0; i < 256; i++)
3985 if (XOR (islower (i), ISLOWER (i))
3986 || toupper (i) != TOUPPER (i))
3987 return 2;
3988 return 0;
3989}
3990_ACEOF
3991if ac_fn_c_try_run "$LINENO"; then :
3992
3993else
3994 ac_cv_header_stdc=no
3995fi
3996rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3997 conftest.$ac_objext conftest.beam conftest.$ac_ext
6bddc3e8
MF
3998fi
3999
c2783492
MF
4000fi
4001fi
4002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4003$as_echo "$ac_cv_header_stdc" >&6; }
4004if test $ac_cv_header_stdc = yes; then
6bddc3e8 4005
c2783492 4006$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6bddc3e8 4007
c2783492 4008fi
6bddc3e8 4009
c2783492
MF
4010# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4011for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4012 inttypes.h stdint.h unistd.h
4013do :
4014 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4015ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4016"
4017if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4018 cat >>confdefs.h <<_ACEOF
4019#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4020_ACEOF
4021
4022fi
4023
4024done
4025
4026
4027
4028 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4029if test "x$ac_cv_header_minix_config_h" = xyes; then :
4030 MINIX=yes
fdd6fa61 4031else
c2783492
MF
4032 MINIX=
4033fi
4034
4035
4036 if test "$MINIX" = yes; then
4037
4038$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4039
4040
4041$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4042
4043
4044$as_echo "#define _MINIX 1" >>confdefs.h
6bddc3e8 4045
6bddc3e8 4046 fi
6bddc3e8 4047
6bddc3e8 4048
c2783492
MF
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4050$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4051if ${ac_cv_safe_to_define___extensions__+:} false; then :
4052 $as_echo_n "(cached) " >&6
4053else
4054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055/* end confdefs.h. */
c906108c 4056
c2783492
MF
4057# define __EXTENSIONS__ 1
4058 $ac_includes_default
4059int
4060main ()
4061{
4062
4063 ;
4064 return 0;
4065}
4066_ACEOF
4067if ac_fn_c_try_compile "$LINENO"; then :
4068 ac_cv_safe_to_define___extensions__=yes
6bddc3e8 4069else
c2783492
MF
4070 ac_cv_safe_to_define___extensions__=no
4071fi
4072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 4073fi
c2783492
MF
4074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4075$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4076 test $ac_cv_safe_to_define___extensions__ = yes &&
4077 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6bddc3e8 4078
c2783492 4079 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
c906108c 4080
c2783492 4081 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
c906108c 4082
c2783492 4083 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
c906108c 4084
c2783492 4085 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
c906108c 4086
c2783492
MF
4087
4088test "$program_prefix" != NONE &&
4089 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4090# Use a double $ so make ignores it.
4091test "$program_suffix" != NONE &&
4092 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4093# Double any \ or $.
4094# By default was `s,x,x', remove it if useless.
4095ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4096program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4097
4098# Find a good install program. We prefer a C program (faster),
4099# so one script is as good as another. But avoid the broken or
4100# incompatible versions:
4101# SysV /etc/install, /usr/sbin/install
4102# SunOS /usr/etc/install
4103# IRIX /sbin/install
4104# AIX /bin/install
4105# AmigaOS /C/install, which installs bootblocks on floppy discs
4106# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4107# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4108# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4109# OS/2's system install, which has a completely different semantic
4110# ./install, which can be erroneously created by make from ./install.sh.
4111# Reject install programs that cannot install multiple files.
4112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4113$as_echo_n "checking for a BSD-compatible install... " >&6; }
4114if test -z "$INSTALL"; then
4115if ${ac_cv_path_install+:} false; then :
81ecdfbb 4116 $as_echo_n "(cached) " >&6
c906108c 4117else
c2783492 4118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
b7026657
AC
4119for as_dir in $PATH
4120do
4121 IFS=$as_save_IFS
4122 test -z "$as_dir" && as_dir=.
c2783492
MF
4123 # Account for people who put trailing slashes in PATH elements.
4124case $as_dir/ in #((
4125 ./ | .// | /[cC]/* | \
4126 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4127 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4128 /usr/ucb/* ) ;;
4129 *)
4130 # OSF1 and SCO ODT 3.0 have their own names for install.
4131 # Don't use installbsd from OSF since it installs stuff as root
4132 # by default.
4133 for ac_prog in ginstall scoinst install; do
4134 for ac_exec_ext in '' $ac_executable_extensions; do
4135 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4136 if test $ac_prog = install &&
4137 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4138 # AIX install. It has an incompatible calling convention.
4139 :
4140 elif test $ac_prog = install &&
4141 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4142 # program-specific install script used by HP pwplus--don't use.
4143 :
4144 else
4145 rm -rf conftest.one conftest.two conftest.dir
4146 echo one > conftest.one
4147 echo two > conftest.two
4148 mkdir conftest.dir
4149 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4150 test -s conftest.one && test -s conftest.two &&
4151 test -s conftest.dir/conftest.one &&
4152 test -s conftest.dir/conftest.two
4153 then
4154 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4155 break 3
4156 fi
4157 fi
4158 fi
4159 done
4160 done
4161 ;;
4162esac
4163
81ecdfbb
RW
4164 done
4165IFS=$as_save_IFS
b7026657 4166
c2783492
MF
4167rm -rf conftest.one conftest.two conftest.dir
4168
c906108c 4169fi
c2783492
MF
4170 if test "${ac_cv_path_install+set}" = set; then
4171 INSTALL=$ac_cv_path_install
4172 else
4173 # As a last resort, use the slow shell script. Don't cache a
4174 # value for INSTALL within a source directory, because that will
4175 # break other packages using the cache if that directory is
4176 # removed, or if the value is a relative name.
4177 INSTALL=$ac_install_sh
4178 fi
c906108c 4179fi
c2783492
MF
4180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4181$as_echo "$INSTALL" >&6; }
b7026657 4182
c2783492
MF
4183# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4184# It thinks the first close brace ends the variable substitution.
4185test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
81ecdfbb 4186
c2783492
MF
4187test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4188
4189test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4190
4191
4192
4193
4194
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4196$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4197if ${ac_cv_c_bigendian+:} false; then :
81ecdfbb 4198 $as_echo_n "(cached) " >&6
b7026657 4199else
c2783492
MF
4200 ac_cv_c_bigendian=unknown
4201 # See if we're dealing with a universal compiler.
4202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4203/* end confdefs.h. */
4204#ifndef __APPLE_CC__
4205 not a universal capable compiler
4206 #endif
4207 typedef int dummy;
c906108c 4208
c2783492
MF
4209_ACEOF
4210if ac_fn_c_try_compile "$LINENO"; then :
4211
4212 # Check for potential -arch flags. It is not universal unless
4213 # there are at least two -arch flags with different values.
4214 ac_arch=
4215 ac_prev=
4216 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4217 if test -n "$ac_prev"; then
4218 case $ac_word in
4219 i?86 | x86_64 | ppc | ppc64)
4220 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4221 ac_arch=$ac_word
4222 else
4223 ac_cv_c_bigendian=universal
4224 break
4225 fi
4226 ;;
4227 esac
4228 ac_prev=
4229 elif test "x$ac_word" = "x-arch"; then
4230 ac_prev=arch
4231 fi
4232 done
b7026657 4233fi
c2783492
MF
4234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4235 if test $ac_cv_c_bigendian = unknown; then
4236 # See if sys/param.h defines the BYTE_ORDER macro.
4237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4238/* end confdefs.h. */
4239#include <sys/types.h>
4240 #include <sys/param.h>
c906108c 4241
c2783492
MF
4242int
4243main ()
4244{
4245#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4246 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4247 && LITTLE_ENDIAN)
4248 bogus endian macros
4249 #endif
4250
4251 ;
4252 return 0;
4253}
4254_ACEOF
4255if ac_fn_c_try_compile "$LINENO"; then :
4256 # It does; now see whether it defined to BIG_ENDIAN or not.
4257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4258/* end confdefs.h. */
4259#include <sys/types.h>
4260 #include <sys/param.h>
4261
4262int
4263main ()
4264{
4265#if BYTE_ORDER != BIG_ENDIAN
4266 not big endian
4267 #endif
4268
4269 ;
4270 return 0;
4271}
4272_ACEOF
4273if ac_fn_c_try_compile "$LINENO"; then :
4274 ac_cv_c_bigendian=yes
b7026657 4275else
c2783492
MF
4276 ac_cv_c_bigendian=no
4277fi
4278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 4279fi
c2783492
MF
4280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4281 fi
4282 if test $ac_cv_c_bigendian = unknown; then
4283 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285/* end confdefs.h. */
4286#include <limits.h>
c906108c 4287
c2783492
MF
4288int
4289main ()
4290{
4291#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4292 bogus endian macros
4293 #endif
4294
4295 ;
4296 return 0;
4297}
4298_ACEOF
4299if ac_fn_c_try_compile "$LINENO"; then :
4300 # It does; now see whether it defined to _BIG_ENDIAN or not.
4301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4302/* end confdefs.h. */
4303#include <limits.h>
4304
4305int
4306main ()
4307{
4308#ifndef _BIG_ENDIAN
4309 not big endian
4310 #endif
b7026657 4311
c2783492
MF
4312 ;
4313 return 0;
4314}
4315_ACEOF
4316if ac_fn_c_try_compile "$LINENO"; then :
4317 ac_cv_c_bigendian=yes
c906108c 4318else
c2783492 4319 ac_cv_c_bigendian=no
c906108c 4320fi
c2783492
MF
4321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4322fi
4323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4324 fi
4325 if test $ac_cv_c_bigendian = unknown; then
4326 # Compile a test program.
4327 if test "$cross_compiling" = yes; then :
4328 # Try to guess by grepping values from an object file.
4329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4330/* end confdefs.h. */
4331short int ascii_mm[] =
4332 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4333 short int ascii_ii[] =
4334 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4335 int use_ascii (int i) {
4336 return ascii_mm[i] + ascii_ii[i];
4337 }
4338 short int ebcdic_ii[] =
4339 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4340 short int ebcdic_mm[] =
4341 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4342 int use_ebcdic (int i) {
4343 return ebcdic_mm[i] + ebcdic_ii[i];
4344 }
4345 extern int foo;
c906108c 4346
c2783492
MF
4347int
4348main ()
4349{
4350return use_ascii (foo) == use_ebcdic (foo);
4351 ;
4352 return 0;
4353}
4354_ACEOF
4355if ac_fn_c_try_compile "$LINENO"; then :
4356 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4357 ac_cv_c_bigendian=yes
4358 fi
4359 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4360 if test "$ac_cv_c_bigendian" = unknown; then
4361 ac_cv_c_bigendian=no
4362 else
4363 # finding both strings is unlikely to happen, but who knows?
4364 ac_cv_c_bigendian=unknown
4365 fi
4366 fi
b7026657 4367fi
c2783492 4368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 4369else
c2783492
MF
4370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4371/* end confdefs.h. */
4372$ac_includes_default
4373int
4374main ()
4375{
4376
4377 /* Are we little or big endian? From Harbison&Steele. */
4378 union
4379 {
4380 long int l;
4381 char c[sizeof (long int)];
4382 } u;
4383 u.l = 1;
4384 return u.c[sizeof (long int) - 1] == 1;
b7026657 4385
c2783492
MF
4386 ;
4387 return 0;
4388}
4389_ACEOF
4390if ac_fn_c_try_run "$LINENO"; then :
4391 ac_cv_c_bigendian=no
4392else
4393 ac_cv_c_bigendian=yes
c906108c 4394fi
c2783492
MF
4395rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4396 conftest.$ac_objext conftest.beam conftest.$ac_ext
c906108c 4397fi
c2783492
MF
4398
4399 fi
c906108c 4400fi
c2783492
MF
4401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4402$as_echo "$ac_cv_c_bigendian" >&6; }
4403 case $ac_cv_c_bigendian in #(
4404 yes)
4405 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4406;; #(
4407 no)
4408 ;; #(
4409 universal)
c906108c 4410
c2783492
MF
4411$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4412
4413 ;; #(
4414 *)
4415 as_fn_error $? "unknown endianness
4416 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4417 esac
4418
4419
4420
4421
a979f2a0
MF
4422if test -n "$ac_tool_prefix"; then
4423 # Extract the first word of "${ac_tool_prefix}dtc", so it can be a program name with args.
4424set dummy ${ac_tool_prefix}dtc; ac_word=$2
4425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4426$as_echo_n "checking for $ac_word... " >&6; }
4427if ${ac_cv_prog_DTC+:} false; then :
4428 $as_echo_n "(cached) " >&6
4429else
4430 if test -n "$DTC"; then
4431 ac_cv_prog_DTC="$DTC" # Let the user override the test.
4432else
4433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434for as_dir in $PATH
4435do
4436 IFS=$as_save_IFS
4437 test -z "$as_dir" && as_dir=.
4438 for ac_exec_ext in '' $ac_executable_extensions; do
4439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4440 ac_cv_prog_DTC="${ac_tool_prefix}dtc"
4441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4442 break 2
4443 fi
4444done
4445 done
4446IFS=$as_save_IFS
4447
4448fi
4449fi
4450DTC=$ac_cv_prog_DTC
4451if test -n "$DTC"; then
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTC" >&5
4453$as_echo "$DTC" >&6; }
4454else
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4456$as_echo "no" >&6; }
4457fi
4458
4459
4460fi
4461if test -z "$ac_cv_prog_DTC"; then
4462 ac_ct_DTC=$DTC
4463 # Extract the first word of "dtc", so it can be a program name with args.
4464set dummy dtc; ac_word=$2
4465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4466$as_echo_n "checking for $ac_word... " >&6; }
4467if ${ac_cv_prog_ac_ct_DTC+:} false; then :
4468 $as_echo_n "(cached) " >&6
4469else
4470 if test -n "$ac_ct_DTC"; then
4471 ac_cv_prog_ac_ct_DTC="$ac_ct_DTC" # Let the user override the test.
4472else
4473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4474for as_dir in $PATH
4475do
4476 IFS=$as_save_IFS
4477 test -z "$as_dir" && as_dir=.
4478 for ac_exec_ext in '' $ac_executable_extensions; do
4479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4480 ac_cv_prog_ac_ct_DTC="dtc"
4481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4482 break 2
4483 fi
4484done
4485 done
4486IFS=$as_save_IFS
4487
4488fi
4489fi
4490ac_ct_DTC=$ac_cv_prog_ac_ct_DTC
4491if test -n "$ac_ct_DTC"; then
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DTC" >&5
4493$as_echo "$ac_ct_DTC" >&6; }
4494else
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4496$as_echo "no" >&6; }
4497fi
4498
4499 if test "x$ac_ct_DTC" = x; then
4500 DTC=""
4501 else
4502 case $cross_compiling:$ac_tool_warned in
4503yes:)
4504{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4505$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4506ac_tool_warned=yes ;;
4507esac
4508 DTC=$ac_ct_DTC
4509 fi
4510else
4511 DTC="$ac_cv_prog_DTC"
4512fi
4513
4514
c2783492 4515if test "x$cross_compiling" = "xno"; then
aa0fca16 4516 : "${AR_FOR_BUILD:=\$(AR)}"
c2783492 4517 : "${CC_FOR_BUILD:=\$(CC)}"
aa0fca16 4518 : "${RANLIB_FOR_BUILD:=\$(RANLIB)}"
c2783492
MF
4519 : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}"
4520 : "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}"
c906108c 4521else
aa0fca16 4522 : "${AR_FOR_BUILD:=ar}"
c2783492 4523 : "${CC_FOR_BUILD:=gcc}"
aa0fca16 4524 : "${RANLIB_FOR_BUILD:=ranlib}"
c2783492
MF
4525 : "${CFLAGS_FOR_BUILD:=-g -O}"
4526 : "${LDLFAGS_FOR_BUILD:=}"
c906108c
SS
4527fi
4528
4529
c906108c 4530
c2783492
MF
4531
4532
aa0fca16
MF
4533
4534
b7026657 4535if test -n "$ac_tool_prefix"; then
c2783492
MF
4536 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4537set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
4538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4539$as_echo_n "checking for $ac_word... " >&6; }
c2783492 4540if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 4541 $as_echo_n "(cached) " >&6
c906108c 4542else
c2783492
MF
4543 if test -n "$AR"; then
4544 ac_cv_prog_AR="$AR" # Let the user override the test.
c906108c 4545else
b7026657
AC
4546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4547for as_dir in $PATH
4548do
4549 IFS=$as_save_IFS
4550 test -z "$as_dir" && as_dir=.
81ecdfbb 4551 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c2783492 4553 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 4554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4555 break 2
4556 fi
4557done
81ecdfbb
RW
4558 done
4559IFS=$as_save_IFS
b7026657
AC
4560
4561fi
4562fi
c2783492
MF
4563AR=$ac_cv_prog_AR
4564if test -n "$AR"; then
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4566$as_echo "$AR" >&6; }
b7026657 4567else
81ecdfbb
RW
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4569$as_echo "no" >&6; }
b7026657
AC
4570fi
4571
81ecdfbb 4572
b7026657 4573fi
c2783492
MF
4574if test -z "$ac_cv_prog_AR"; then
4575 ac_ct_AR=$AR
4576 # Extract the first word of "ar", so it can be a program name with args.
4577set dummy ar; ac_word=$2
81ecdfbb
RW
4578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4579$as_echo_n "checking for $ac_word... " >&6; }
c2783492 4580if ${ac_cv_prog_ac_ct_AR+:} false; then :
81ecdfbb 4581 $as_echo_n "(cached) " >&6
b7026657 4582else
c2783492
MF
4583 if test -n "$ac_ct_AR"; then
4584 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
b7026657
AC
4585else
4586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587for as_dir in $PATH
4588do
4589 IFS=$as_save_IFS
4590 test -z "$as_dir" && as_dir=.
81ecdfbb 4591 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c2783492 4593 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 4594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4595 break 2
4596 fi
4597done
81ecdfbb
RW
4598 done
4599IFS=$as_save_IFS
b7026657
AC
4600
4601fi
4602fi
c2783492
MF
4603ac_ct_AR=$ac_cv_prog_ac_ct_AR
4604if test -n "$ac_ct_AR"; then
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4606$as_echo "$ac_ct_AR" >&6; }
b7026657 4607else
81ecdfbb
RW
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4609$as_echo "no" >&6; }
c906108c 4610fi
b7026657 4611
c2783492
MF
4612 if test "x$ac_ct_AR" = x; then
4613 AR=""
81ecdfbb
RW
4614 else
4615 case $cross_compiling:$ac_tool_warned in
4616yes:)
4617{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4618$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4619ac_tool_warned=yes ;;
4620esac
c2783492 4621 AR=$ac_ct_AR
c906108c 4622 fi
c906108c 4623else
c2783492 4624 AR="$ac_cv_prog_AR"
c906108c
SS
4625fi
4626
c2783492
MF
4627if test -n "$ac_tool_prefix"; then
4628 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4629set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
4630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4631$as_echo_n "checking for $ac_word... " >&6; }
c2783492 4632if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 4633 $as_echo_n "(cached) " >&6
c906108c 4634else
c2783492
MF
4635 if test -n "$RANLIB"; then
4636 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
c906108c 4637else
b7026657
AC
4638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639for as_dir in $PATH
4640do
4641 IFS=$as_save_IFS
4642 test -z "$as_dir" && as_dir=.
81ecdfbb 4643 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c2783492 4645 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 4646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4647 break 2
4648 fi
4649done
81ecdfbb
RW
4650 done
4651IFS=$as_save_IFS
b7026657 4652
c906108c
SS
4653fi
4654fi
c2783492
MF
4655RANLIB=$ac_cv_prog_RANLIB
4656if test -n "$RANLIB"; then
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4658$as_echo "$RANLIB" >&6; }
c906108c 4659else
81ecdfbb
RW
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4661$as_echo "no" >&6; }
c906108c
SS
4662fi
4663
81ecdfbb 4664
b7026657 4665fi
c2783492
MF
4666if test -z "$ac_cv_prog_RANLIB"; then
4667 ac_ct_RANLIB=$RANLIB
4668 # Extract the first word of "ranlib", so it can be a program name with args.
4669set dummy ranlib; ac_word=$2
81ecdfbb
RW
4670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4671$as_echo_n "checking for $ac_word... " >&6; }
c2783492 4672if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
81ecdfbb 4673 $as_echo_n "(cached) " >&6
c906108c 4674else
c2783492
MF
4675 if test -n "$ac_ct_RANLIB"; then
4676 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
b7026657
AC
4677else
4678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679for as_dir in $PATH
4680do
4681 IFS=$as_save_IFS
4682 test -z "$as_dir" && as_dir=.
81ecdfbb 4683 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c2783492 4685 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 4686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4687 break 2
4688 fi
4689done
81ecdfbb
RW
4690 done
4691IFS=$as_save_IFS
b7026657 4692
c906108c 4693fi
b7026657 4694fi
c2783492
MF
4695ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4696if test -n "$ac_ct_RANLIB"; then
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4698$as_echo "$ac_ct_RANLIB" >&6; }
c906108c 4699else
81ecdfbb
RW
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4701$as_echo "no" >&6; }
c906108c 4702fi
b7026657 4703
c2783492
MF
4704 if test "x$ac_ct_RANLIB" = x; then
4705 RANLIB=":"
81ecdfbb
RW
4706 else
4707 case $cross_compiling:$ac_tool_warned in
4708yes:)
4709{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4710$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4711ac_tool_warned=yes ;;
4712esac
c2783492 4713 RANLIB=$ac_ct_RANLIB
81ecdfbb 4714 fi
c2783492
MF
4715else
4716 RANLIB="$ac_cv_prog_RANLIB"
4717fi
4718
4719
4720# Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using
4721# AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands
4722# is C99. So handle it ourselves.
4723:
4724C_DIALECT=
4725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5
4726$as_echo_n "checking whether C11 is supported by default... " >&6; }
4727cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728/* end confdefs.h. */
4729
4730#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
4731# error "C11 support not found"
4732#endif
4733
4734_ACEOF
4735if ac_fn_c_try_compile "$LINENO"; then :
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4737$as_echo "yes" >&6; }
4738else
4739
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4741$as_echo "no" >&6; }
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5
4743$as_echo_n "checking for -std=c11 support... " >&6; }
4744 ac_save_CC="$CC"
4745 CC="$CC -std=c11"
4746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4747/* end confdefs.h. */
4748
4749#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
4750# error "C11 support not found"
4751#endif
4752
4753_ACEOF
4754if ac_fn_c_try_compile "$LINENO"; then :
4755
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4757$as_echo "yes" >&6; }
4758 CC="$ac_save_CC"
4759 C_DIALECT="-std=c11"
4760
4761else
4762 as_fn_error $? "C11 is required" "$LINENO" 5
4763fi
4764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4765fi
4766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4767
4768
4769
4770
c906108c 4771
b15c5d7a
MF
4772 for ac_header in $ac_header_list
4773do :
4774 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4775ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4776"
4777if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4778 cat >>confdefs.h <<_ACEOF
4779#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4780_ACEOF
4781
b7026657
AC
4782fi
4783
b15c5d7a 4784done
b7026657 4785
b7026657 4786
c2783492 4787
c2783492 4788
c2783492 4789
c2783492 4790
c2783492 4791
b15c5d7a
MF
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
a48ff3ef
MF
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
b15c5d7a
MF
4826
4827
4828
4829
4830
4831
4832
4833
b15c5d7a
MF
4834
4835
4836
4837 for ac_func in $ac_func_list
4838do :
4839 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4840ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4841if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4842 cat >>confdefs.h <<_ACEOF
4843#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4844_ACEOF
4845
4846fi
4847done
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
a48ff3ef
MF
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
4972$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
4973if ${ac_cv_struct_tm+:} false; then :
4974 $as_echo_n "(cached) " >&6
4975else
4976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4977/* end confdefs.h. */
4978#include <sys/types.h>
4979#include <time.h>
4980
4981int
4982main ()
4983{
4984struct tm tm;
4985 int *p = &tm.tm_sec;
4986 return !p;
4987 ;
4988 return 0;
4989}
4990_ACEOF
4991if ac_fn_c_try_compile "$LINENO"; then :
4992 ac_cv_struct_tm=time.h
4993else
4994 ac_cv_struct_tm=sys/time.h
4995fi
4996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4997fi
4998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
4999$as_echo "$ac_cv_struct_tm" >&6; }
5000if test $ac_cv_struct_tm = sys/time.h; then
5001
5002$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5003
5004fi
5005
5006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5007$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5008if ${ac_cv_type_uid_t+:} false; then :
5009 $as_echo_n "(cached) " >&6
5010else
5011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5012/* end confdefs.h. */
5013#include <sys/types.h>
5014
5015_ACEOF
5016if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5017 $EGREP "uid_t" >/dev/null 2>&1; then :
5018 ac_cv_type_uid_t=yes
5019else
5020 ac_cv_type_uid_t=no
5021fi
5022rm -f conftest*
5023
5024fi
5025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5026$as_echo "$ac_cv_type_uid_t" >&6; }
5027if test $ac_cv_type_uid_t = no; then
5028
5029$as_echo "#define uid_t int" >>confdefs.h
5030
5031
5032$as_echo "#define gid_t int" >>confdefs.h
5033
5034fi
5035
b5689863
MF
5036case `pwd` in
5037 *\ * | *\ *)
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5039$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5040esac
a48ff3ef 5041
a48ff3ef 5042
a48ff3ef 5043
b5689863
MF
5044macro_version='2.2.7a'
5045macro_revision='1.3134'
a48ff3ef 5046
a48ff3ef 5047
a48ff3ef 5048
a48ff3ef 5049
a48ff3ef 5050
a48ff3ef 5051
a48ff3ef 5052
a48ff3ef 5053
a48ff3ef 5054
a48ff3ef
MF
5055
5056
5057
5058
b5689863 5059ltmain="$ac_aux_dir/ltmain.sh"
a48ff3ef 5060
b5689863
MF
5061# Backslashify metacharacters that are still active within
5062# double-quoted strings.
5063sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
a48ff3ef 5064
b5689863
MF
5065# Same as above, but do not quote variable references.
5066double_quote_subst='s/\(["`\\]\)/\\\1/g'
a48ff3ef 5067
b5689863
MF
5068# Sed substitution to delay expansion of an escaped shell variable in a
5069# double_quote_subst'ed string.
5070delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5071
5072# Sed substitution to delay expansion of an escaped single quote.
5073delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5074
5075# Sed substitution to avoid accidental globbing in evaled expressions
5076no_glob_subst='s/\*/\\\*/g'
5077
5078ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5079ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5080ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
a48ff3ef 5081
b5689863
MF
5082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5083$as_echo_n "checking how to print strings... " >&6; }
5084# Test print first, because it will be a builtin if present.
5085if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5086 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5087 ECHO='print -r --'
5088elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5089 ECHO='printf %s\n'
5090else
5091 # Use this function as a fallback that always works.
5092 func_fallback_echo ()
5093 {
5094 eval 'cat <<_LTECHO_EOF
5095$1
5096_LTECHO_EOF'
5097 }
5098 ECHO='func_fallback_echo'
a48ff3ef
MF
5099fi
5100
b5689863
MF
5101# func_echo_all arg...
5102# Invoke $ECHO with all args, space-separated.
5103func_echo_all ()
5104{
5105 $ECHO ""
5106}
5107
5108case "$ECHO" in
5109 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5110$as_echo "printf" >&6; } ;;
5111 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5112$as_echo "print -r" >&6; } ;;
5113 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5114$as_echo "cat" >&6; } ;;
5115esac
5116
5117
a48ff3ef 5118
a48ff3ef 5119
a48ff3ef
MF
5120
5121
a48ff3ef 5122
a48ff3ef 5123
a48ff3ef
MF
5124
5125
a48ff3ef 5126
a48ff3ef
MF
5127
5128
a48ff3ef 5129
b5689863
MF
5130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5131$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5132if ${ac_cv_path_SED+:} false; then :
5133 $as_echo_n "(cached) " >&6
5134else
5135 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5136 for ac_i in 1 2 3 4 5 6 7; do
5137 ac_script="$ac_script$as_nl$ac_script"
5138 done
5139 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5140 { ac_script=; unset ac_script;}
5141 if test -z "$SED"; then
5142 ac_path_SED_found=false
5143 # Loop through the user's path and test for each of PROGNAME-LIST
5144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5145for as_dir in $PATH
5146do
5147 IFS=$as_save_IFS
5148 test -z "$as_dir" && as_dir=.
5149 for ac_prog in sed gsed; do
5150 for ac_exec_ext in '' $ac_executable_extensions; do
5151 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5152 as_fn_executable_p "$ac_path_SED" || continue
5153# Check for GNU ac_path_SED and select it if it is found.
5154 # Check for GNU $ac_path_SED
5155case `"$ac_path_SED" --version 2>&1` in
5156*GNU*)
5157 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5158*)
5159 ac_count=0
5160 $as_echo_n 0123456789 >"conftest.in"
5161 while :
5162 do
5163 cat "conftest.in" "conftest.in" >"conftest.tmp"
5164 mv "conftest.tmp" "conftest.in"
5165 cp "conftest.in" "conftest.nl"
5166 $as_echo '' >> "conftest.nl"
5167 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5168 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5169 as_fn_arith $ac_count + 1 && ac_count=$as_val
5170 if test $ac_count -gt ${ac_path_SED_max-0}; then
5171 # Best one so far, save it but keep looking for a better one
5172 ac_cv_path_SED="$ac_path_SED"
5173 ac_path_SED_max=$ac_count
5174 fi
5175 # 10*(2^10) chars as input seems more than enough
5176 test $ac_count -gt 10 && break
5177 done
5178 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5179esac
5180
5181 $ac_path_SED_found && break 3
5182 done
5183 done
5184 done
5185IFS=$as_save_IFS
5186 if test -z "$ac_cv_path_SED"; then
5187 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5188 fi
5189else
5190 ac_cv_path_SED=$SED
a48ff3ef
MF
5191fi
5192
b5689863
MF
5193fi
5194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5195$as_echo "$ac_cv_path_SED" >&6; }
5196 SED="$ac_cv_path_SED"
5197 rm -f conftest.sed
a48ff3ef 5198
b5689863
MF
5199test -z "$SED" && SED=sed
5200Xsed="$SED -e 1s/^X//"
a48ff3ef 5201
a48ff3ef 5202
a48ff3ef
MF
5203
5204
a48ff3ef 5205
a48ff3ef 5206
a48ff3ef 5207
a48ff3ef 5208
a48ff3ef 5209
b5689863
MF
5210
5211
5212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5213$as_echo_n "checking for fgrep... " >&6; }
5214if ${ac_cv_path_FGREP+:} false; then :
a48ff3ef
MF
5215 $as_echo_n "(cached) " >&6
5216else
b5689863
MF
5217 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5218 then ac_cv_path_FGREP="$GREP -F"
5219 else
5220 if test -z "$FGREP"; then
5221 ac_path_FGREP_found=false
5222 # Loop through the user's path and test for each of PROGNAME-LIST
5223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5224for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5225do
5226 IFS=$as_save_IFS
5227 test -z "$as_dir" && as_dir=.
5228 for ac_prog in fgrep; do
5229 for ac_exec_ext in '' $ac_executable_extensions; do
5230 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5231 as_fn_executable_p "$ac_path_FGREP" || continue
5232# Check for GNU ac_path_FGREP and select it if it is found.
5233 # Check for GNU $ac_path_FGREP
5234case `"$ac_path_FGREP" --version 2>&1` in
5235*GNU*)
5236 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5237*)
5238 ac_count=0
5239 $as_echo_n 0123456789 >"conftest.in"
5240 while :
5241 do
5242 cat "conftest.in" "conftest.in" >"conftest.tmp"
5243 mv "conftest.tmp" "conftest.in"
5244 cp "conftest.in" "conftest.nl"
5245 $as_echo 'FGREP' >> "conftest.nl"
5246 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5247 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5248 as_fn_arith $ac_count + 1 && ac_count=$as_val
5249 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5250 # Best one so far, save it but keep looking for a better one
5251 ac_cv_path_FGREP="$ac_path_FGREP"
5252 ac_path_FGREP_max=$ac_count
5253 fi
5254 # 10*(2^10) chars as input seems more than enough
5255 test $ac_count -gt 10 && break
5256 done
5257 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5258esac
5259
5260 $ac_path_FGREP_found && break 3
5261 done
5262 done
5263 done
5264IFS=$as_save_IFS
5265 if test -z "$ac_cv_path_FGREP"; then
5266 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5267 fi
5268else
5269 ac_cv_path_FGREP=$FGREP
5270fi
5271
5272 fi
5273fi
5274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5275$as_echo "$ac_cv_path_FGREP" >&6; }
5276 FGREP="$ac_cv_path_FGREP"
5277
5278
5279test -z "$GREP" && GREP=grep
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299# Check whether --with-gnu-ld was given.
5300if test "${with_gnu_ld+set}" = set; then :
5301 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5302else
5303 with_gnu_ld=no
5304fi
5305
5306ac_prog=ld
5307if test "$GCC" = yes; then
5308 # Check if gcc -print-prog-name=ld gives a path.
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5310$as_echo_n "checking for ld used by $CC... " >&6; }
5311 case $host in
5312 *-*-mingw*)
5313 # gcc leaves a trailing carriage return which upsets mingw
5314 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5315 *)
5316 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5317 esac
5318 case $ac_prog in
5319 # Accept absolute paths.
5320 [\\/]* | ?:[\\/]*)
5321 re_direlt='/[^/][^/]*/\.\./'
5322 # Canonicalize the pathname of ld
5323 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5324 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5325 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5326 done
5327 test -z "$LD" && LD="$ac_prog"
5328 ;;
5329 "")
5330 # If it fails, then pretend we aren't using GCC.
5331 ac_prog=ld
5332 ;;
5333 *)
5334 # If it is relative, then search for the first ld in PATH.
5335 with_gnu_ld=unknown
5336 ;;
5337 esac
5338elif test "$with_gnu_ld" = yes; then
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5340$as_echo_n "checking for GNU ld... " >&6; }
5341else
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5343$as_echo_n "checking for non-GNU ld... " >&6; }
5344fi
5345if ${lt_cv_path_LD+:} false; then :
5346 $as_echo_n "(cached) " >&6
5347else
5348 if test -z "$LD"; then
5349 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5350 for ac_dir in $PATH; do
5351 IFS="$lt_save_ifs"
5352 test -z "$ac_dir" && ac_dir=.
5353 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5354 lt_cv_path_LD="$ac_dir/$ac_prog"
5355 # Check to see if the program is GNU ld. I'd rather use --version,
5356 # but apparently some variants of GNU ld only accept -v.
5357 # Break only if it was the GNU/non-GNU ld that we prefer.
5358 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5359 *GNU* | *'with BFD'*)
5360 test "$with_gnu_ld" != no && break
5361 ;;
5362 *)
5363 test "$with_gnu_ld" != yes && break
5364 ;;
5365 esac
5366 fi
5367 done
5368 IFS="$lt_save_ifs"
5369else
5370 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5371fi
5372fi
5373
5374LD="$lt_cv_path_LD"
5375if test -n "$LD"; then
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5377$as_echo "$LD" >&6; }
5378else
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5380$as_echo "no" >&6; }
5381fi
5382test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5384$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5385if ${lt_cv_prog_gnu_ld+:} false; then :
5386 $as_echo_n "(cached) " >&6
5387else
5388 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5389case `$LD -v 2>&1 </dev/null` in
5390*GNU* | *'with BFD'*)
5391 lt_cv_prog_gnu_ld=yes
5392 ;;
5393*)
5394 lt_cv_prog_gnu_ld=no
5395 ;;
5396esac
5397fi
5398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5399$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5400with_gnu_ld=$lt_cv_prog_gnu_ld
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5411$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5412if ${lt_cv_path_NM+:} false; then :
5413 $as_echo_n "(cached) " >&6
5414else
5415 if test -n "$NM"; then
5416 # Let the user override the test.
5417 lt_cv_path_NM="$NM"
5418else
5419 lt_nm_to_check="${ac_tool_prefix}nm"
5420 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5421 lt_nm_to_check="$lt_nm_to_check nm"
5422 fi
5423 for lt_tmp_nm in $lt_nm_to_check; do
5424 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5425 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5426 IFS="$lt_save_ifs"
5427 test -z "$ac_dir" && ac_dir=.
5428 tmp_nm="$ac_dir/$lt_tmp_nm"
5429 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5430 # Check to see if the nm accepts a BSD-compat flag.
5431 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5432 # nm: unknown option "B" ignored
5433 # Tru64's nm complains that /dev/null is an invalid object file
5434 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5435 */dev/null* | *'Invalid file or object type'*)
5436 lt_cv_path_NM="$tmp_nm -B"
5437 break
5438 ;;
5439 *)
5440 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5441 */dev/null*)
5442 lt_cv_path_NM="$tmp_nm -p"
5443 break
5444 ;;
5445 *)
5446 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5447 continue # so that we can try to find one that supports BSD flags
5448 ;;
5449 esac
5450 ;;
5451 esac
5452 fi
5453 done
5454 IFS="$lt_save_ifs"
5455 done
5456 : ${lt_cv_path_NM=no}
5457fi
5458fi
5459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5460$as_echo "$lt_cv_path_NM" >&6; }
5461if test "$lt_cv_path_NM" != "no"; then
5462 NM="$lt_cv_path_NM"
5463else
5464 # Didn't find any BSD compatible name lister, look for dumpbin.
5465 if test -n "$DUMPBIN"; then :
5466 # Let the user override the test.
5467 else
5468 if test -n "$ac_tool_prefix"; then
5469 for ac_prog in dumpbin "link -dump"
5470 do
5471 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5472set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5474$as_echo_n "checking for $ac_word... " >&6; }
5475if ${ac_cv_prog_DUMPBIN+:} false; then :
5476 $as_echo_n "(cached) " >&6
5477else
5478 if test -n "$DUMPBIN"; then
5479 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5480else
5481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5482for as_dir in $PATH
5483do
5484 IFS=$as_save_IFS
5485 test -z "$as_dir" && as_dir=.
5486 for ac_exec_ext in '' $ac_executable_extensions; do
5487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5488 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5490 break 2
5491 fi
5492done
5493 done
5494IFS=$as_save_IFS
5495
5496fi
5497fi
5498DUMPBIN=$ac_cv_prog_DUMPBIN
5499if test -n "$DUMPBIN"; then
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5501$as_echo "$DUMPBIN" >&6; }
5502else
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5504$as_echo "no" >&6; }
5505fi
5506
5507
5508 test -n "$DUMPBIN" && break
5509 done
5510fi
5511if test -z "$DUMPBIN"; then
5512 ac_ct_DUMPBIN=$DUMPBIN
5513 for ac_prog in dumpbin "link -dump"
5514do
5515 # Extract the first word of "$ac_prog", so it can be a program name with args.
5516set dummy $ac_prog; ac_word=$2
5517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5518$as_echo_n "checking for $ac_word... " >&6; }
5519if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5520 $as_echo_n "(cached) " >&6
5521else
5522 if test -n "$ac_ct_DUMPBIN"; then
5523 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5524else
5525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5526for as_dir in $PATH
5527do
5528 IFS=$as_save_IFS
5529 test -z "$as_dir" && as_dir=.
5530 for ac_exec_ext in '' $ac_executable_extensions; do
5531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5532 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5534 break 2
5535 fi
5536done
5537 done
5538IFS=$as_save_IFS
5539
5540fi
5541fi
5542ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5543if test -n "$ac_ct_DUMPBIN"; then
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5545$as_echo "$ac_ct_DUMPBIN" >&6; }
5546else
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5548$as_echo "no" >&6; }
5549fi
5550
5551
5552 test -n "$ac_ct_DUMPBIN" && break
5553done
5554
5555 if test "x$ac_ct_DUMPBIN" = x; then
5556 DUMPBIN=":"
5557 else
5558 case $cross_compiling:$ac_tool_warned in
5559yes:)
5560{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5561$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5562ac_tool_warned=yes ;;
5563esac
5564 DUMPBIN=$ac_ct_DUMPBIN
5565 fi
5566fi
5567
5568 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5569 *COFF*)
5570 DUMPBIN="$DUMPBIN -symbols"
5571 ;;
5572 *)
5573 DUMPBIN=:
5574 ;;
5575 esac
5576 fi
5577
5578 if test "$DUMPBIN" != ":"; then
5579 NM="$DUMPBIN"
5580 fi
5581fi
5582test -z "$NM" && NM=nm
5583
5584
5585
5586
5587
5588
5589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5590$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5591if ${lt_cv_nm_interface+:} false; then :
5592 $as_echo_n "(cached) " >&6
5593else
5594 lt_cv_nm_interface="BSD nm"
5595 echo "int some_variable = 0;" > conftest.$ac_ext
5596 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5597 (eval "$ac_compile" 2>conftest.err)
5598 cat conftest.err >&5
5599 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5600 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5601 cat conftest.err >&5
5602 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5603 cat conftest.out >&5
5604 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5605 lt_cv_nm_interface="MS dumpbin"
5606 fi
5607 rm -f conftest*
5608fi
5609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5610$as_echo "$lt_cv_nm_interface" >&6; }
5611
5612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5613$as_echo_n "checking whether ln -s works... " >&6; }
5614LN_S=$as_ln_s
5615if test "$LN_S" = "ln -s"; then
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5617$as_echo "yes" >&6; }
5618else
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5620$as_echo "no, using $LN_S" >&6; }
5621fi
5622
5623# find the maximum length of command line arguments
5624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5625$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5626if ${lt_cv_sys_max_cmd_len+:} false; then :
5627 $as_echo_n "(cached) " >&6
5628else
5629 i=0
5630 teststring="ABCD"
5631
5632 case $build_os in
5633 msdosdjgpp*)
5634 # On DJGPP, this test can blow up pretty badly due to problems in libc
5635 # (any single argument exceeding 2000 bytes causes a buffer overrun
5636 # during glob expansion). Even if it were fixed, the result of this
5637 # check would be larger than it should be.
5638 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5639 ;;
5640
5641 gnu*)
5642 # Under GNU Hurd, this test is not required because there is
5643 # no limit to the length of command line arguments.
5644 # Libtool will interpret -1 as no limit whatsoever
5645 lt_cv_sys_max_cmd_len=-1;
5646 ;;
5647
5648 cygwin* | mingw* | cegcc*)
5649 # On Win9x/ME, this test blows up -- it succeeds, but takes
5650 # about 5 minutes as the teststring grows exponentially.
5651 # Worse, since 9x/ME are not pre-emptively multitasking,
5652 # you end up with a "frozen" computer, even though with patience
5653 # the test eventually succeeds (with a max line length of 256k).
5654 # Instead, let's just punt: use the minimum linelength reported by
5655 # all of the supported platforms: 8192 (on NT/2K/XP).
5656 lt_cv_sys_max_cmd_len=8192;
5657 ;;
5658
5659 mint*)
5660 # On MiNT this can take a long time and run out of memory.
5661 lt_cv_sys_max_cmd_len=8192;
5662 ;;
5663
5664 amigaos*)
5665 # On AmigaOS with pdksh, this test takes hours, literally.
5666 # So we just punt and use a minimum line length of 8192.
5667 lt_cv_sys_max_cmd_len=8192;
5668 ;;
5669
5670 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5671 # This has been around since 386BSD, at least. Likely further.
5672 if test -x /sbin/sysctl; then
5673 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5674 elif test -x /usr/sbin/sysctl; then
5675 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5676 else
5677 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5678 fi
5679 # And add a safety zone
5680 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5681 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5682 ;;
5683
5684 interix*)
5685 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5686 lt_cv_sys_max_cmd_len=196608
5687 ;;
5688
5689 osf*)
5690 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5691 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5692 # nice to cause kernel panics so lets avoid the loop below.
5693 # First set a reasonable default.
5694 lt_cv_sys_max_cmd_len=16384
5695 #
5696 if test -x /sbin/sysconfig; then
5697 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5698 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5699 esac
5700 fi
5701 ;;
5702 sco3.2v5*)
5703 lt_cv_sys_max_cmd_len=102400
5704 ;;
5705 sysv5* | sco5v6* | sysv4.2uw2*)
5706 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5707 if test -n "$kargmax"; then
5708 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5709 else
5710 lt_cv_sys_max_cmd_len=32768
5711 fi
5712 ;;
5713 *)
5714 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5715 if test -n "$lt_cv_sys_max_cmd_len"; then
5716 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5717 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5718 else
5719 # Make teststring a little bigger before we do anything with it.
5720 # a 1K string should be a reasonable start.
5721 for i in 1 2 3 4 5 6 7 8 ; do
5722 teststring=$teststring$teststring
5723 done
5724 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5725 # If test is not a shell built-in, we'll probably end up computing a
5726 # maximum length that is only half of the actual maximum length, but
5727 # we can't tell.
5728 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5729 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5730 test $i != 17 # 1/2 MB should be enough
5731 do
5732 i=`expr $i + 1`
5733 teststring=$teststring$teststring
5734 done
5735 # Only check the string length outside the loop.
5736 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5737 teststring=
5738 # Add a significant safety factor because C++ compilers can tack on
5739 # massive amounts of additional arguments before passing them to the
5740 # linker. It appears as though 1/2 is a usable value.
5741 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5742 fi
5743 ;;
5744 esac
5745
5746fi
5747
5748if test -n $lt_cv_sys_max_cmd_len ; then
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5750$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5751else
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5753$as_echo "none" >&6; }
5754fi
5755max_cmd_len=$lt_cv_sys_max_cmd_len
5756
5757
5758
5759
5760
5761
5762: ${CP="cp -f"}
5763: ${MV="mv -f"}
5764: ${RM="rm -f"}
5765
5766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5767$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5768# Try some XSI features
5769xsi_shell=no
5770( _lt_dummy="a/b/c"
5771 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5772 = c,a/b,, \
5773 && eval 'test $(( 1 + 1 )) -eq 2 \
5774 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5775 && xsi_shell=yes
5776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5777$as_echo "$xsi_shell" >&6; }
5778
5779
5780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5781$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5782lt_shell_append=no
5783( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5784 >/dev/null 2>&1 \
5785 && lt_shell_append=yes
5786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5787$as_echo "$lt_shell_append" >&6; }
5788
5789
5790if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5791 lt_unset=unset
5792else
5793 lt_unset=false
5794fi
5795
5796
5797
5798
5799
5800# test EBCDIC or ASCII
5801case `echo X|tr X '\101'` in
5802 A) # ASCII based system
5803 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5804 lt_SP2NL='tr \040 \012'
5805 lt_NL2SP='tr \015\012 \040\040'
5806 ;;
5807 *) # EBCDIC based system
5808 lt_SP2NL='tr \100 \n'
5809 lt_NL2SP='tr \r\n \100\100'
5810 ;;
5811esac
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5822$as_echo_n "checking for $LD option to reload object files... " >&6; }
5823if ${lt_cv_ld_reload_flag+:} false; then :
5824 $as_echo_n "(cached) " >&6
5825else
5826 lt_cv_ld_reload_flag='-r'
5827fi
5828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5829$as_echo "$lt_cv_ld_reload_flag" >&6; }
5830reload_flag=$lt_cv_ld_reload_flag
5831case $reload_flag in
5832"" | " "*) ;;
5833*) reload_flag=" $reload_flag" ;;
5834esac
5835reload_cmds='$LD$reload_flag -o $output$reload_objs'
5836case $host_os in
5837 darwin*)
5838 if test "$GCC" = yes; then
5839 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5840 else
5841 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5842 fi
5843 ;;
5844esac
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854if test -n "$ac_tool_prefix"; then
5855 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5856set dummy ${ac_tool_prefix}objdump; ac_word=$2
5857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5858$as_echo_n "checking for $ac_word... " >&6; }
5859if ${ac_cv_prog_OBJDUMP+:} false; then :
5860 $as_echo_n "(cached) " >&6
5861else
5862 if test -n "$OBJDUMP"; then
5863 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5864else
5865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5866for as_dir in $PATH
5867do
5868 IFS=$as_save_IFS
5869 test -z "$as_dir" && as_dir=.
5870 for ac_exec_ext in '' $ac_executable_extensions; do
5871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5872 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5874 break 2
5875 fi
5876done
5877 done
5878IFS=$as_save_IFS
5879
5880fi
5881fi
5882OBJDUMP=$ac_cv_prog_OBJDUMP
5883if test -n "$OBJDUMP"; then
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5885$as_echo "$OBJDUMP" >&6; }
5886else
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5888$as_echo "no" >&6; }
5889fi
5890
5891
5892fi
5893if test -z "$ac_cv_prog_OBJDUMP"; then
5894 ac_ct_OBJDUMP=$OBJDUMP
5895 # Extract the first word of "objdump", so it can be a program name with args.
5896set dummy objdump; ac_word=$2
5897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5898$as_echo_n "checking for $ac_word... " >&6; }
5899if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5900 $as_echo_n "(cached) " >&6
5901else
5902 if test -n "$ac_ct_OBJDUMP"; then
5903 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5904else
5905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5906for as_dir in $PATH
5907do
5908 IFS=$as_save_IFS
5909 test -z "$as_dir" && as_dir=.
5910 for ac_exec_ext in '' $ac_executable_extensions; do
5911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5912 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5914 break 2
5915 fi
5916done
5917 done
5918IFS=$as_save_IFS
5919
5920fi
5921fi
5922ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5923if test -n "$ac_ct_OBJDUMP"; then
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5925$as_echo "$ac_ct_OBJDUMP" >&6; }
5926else
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5928$as_echo "no" >&6; }
5929fi
5930
5931 if test "x$ac_ct_OBJDUMP" = x; then
5932 OBJDUMP="false"
5933 else
5934 case $cross_compiling:$ac_tool_warned in
5935yes:)
5936{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5937$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5938ac_tool_warned=yes ;;
5939esac
5940 OBJDUMP=$ac_ct_OBJDUMP
5941 fi
5942else
5943 OBJDUMP="$ac_cv_prog_OBJDUMP"
5944fi
5945
5946test -z "$OBJDUMP" && OBJDUMP=objdump
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5957$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5958if ${lt_cv_deplibs_check_method+:} false; then :
5959 $as_echo_n "(cached) " >&6
5960else
5961 lt_cv_file_magic_cmd='$MAGIC_CMD'
5962lt_cv_file_magic_test_file=
5963lt_cv_deplibs_check_method='unknown'
5964# Need to set the preceding variable on all platforms that support
5965# interlibrary dependencies.
5966# 'none' -- dependencies not supported.
5967# `unknown' -- same as none, but documents that we really don't know.
5968# 'pass_all' -- all dependencies passed with no checks.
5969# 'test_compile' -- check by making test program.
5970# 'file_magic [[regex]]' -- check by looking for files in library path
5971# which responds to the $file_magic_cmd with a given extended regex.
5972# If you have `file' or equivalent on your system and you're not sure
5973# whether `pass_all' will *always* work, you probably want this one.
5974
5975case $host_os in
5976aix[4-9]*)
5977 lt_cv_deplibs_check_method=pass_all
5978 ;;
5979
5980beos*)
5981 lt_cv_deplibs_check_method=pass_all
5982 ;;
5983
5984bsdi[45]*)
5985 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5986 lt_cv_file_magic_cmd='/usr/bin/file -L'
5987 lt_cv_file_magic_test_file=/shlib/libc.so
5988 ;;
5989
5990cygwin*)
5991 # func_win32_libid is a shell function defined in ltmain.sh
5992 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5993 lt_cv_file_magic_cmd='func_win32_libid'
5994 ;;
5995
5996mingw* | pw32*)
5997 # Base MSYS/MinGW do not provide the 'file' command needed by
5998 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5999 # unless we find 'file', for example because we are cross-compiling.
6000 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6001 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6002 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6003 lt_cv_file_magic_cmd='func_win32_libid'
6004 else
6005 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6006 lt_cv_file_magic_cmd='$OBJDUMP -f'
6007 fi
6008 ;;
6009
6010cegcc*)
6011 # use the weaker test based on 'objdump'. See mingw*.
6012 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6013 lt_cv_file_magic_cmd='$OBJDUMP -f'
6014 ;;
6015
6016darwin* | rhapsody*)
6017 lt_cv_deplibs_check_method=pass_all
6018 ;;
6019
6020freebsd* | dragonfly*)
6021 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6022 case $host_cpu in
6023 i*86 )
6024 # Not sure whether the presence of OpenBSD here was a mistake.
6025 # Let's accept both of them until this is cleared up.
6026 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6027 lt_cv_file_magic_cmd=/usr/bin/file
6028 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6029 ;;
6030 esac
6031 else
6032 lt_cv_deplibs_check_method=pass_all
6033 fi
6034 ;;
6035
6036gnu*)
6037 lt_cv_deplibs_check_method=pass_all
6038 ;;
6039
6040haiku*)
6041 lt_cv_deplibs_check_method=pass_all
6042 ;;
6043
6044hpux10.20* | hpux11*)
6045 lt_cv_file_magic_cmd=/usr/bin/file
6046 case $host_cpu in
6047 ia64*)
6048 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6049 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6050 ;;
6051 hppa*64*)
6052 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]'
6053 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6054 ;;
6055 *)
6056 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6057 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6058 ;;
6059 esac
6060 ;;
6061
6062interix[3-9]*)
6063 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6064 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6065 ;;
6066
6067irix5* | irix6* | nonstopux*)
6068 case $LD in
6069 *-32|*"-32 ") libmagic=32-bit;;
6070 *-n32|*"-n32 ") libmagic=N32;;
6071 *-64|*"-64 ") libmagic=64-bit;;
6072 *) libmagic=never-match;;
6073 esac
6074 lt_cv_deplibs_check_method=pass_all
6075 ;;
6076
6077# This must be Linux ELF.
6078linux* | k*bsd*-gnu | kopensolaris*-gnu)
6079 lt_cv_deplibs_check_method=pass_all
6080 ;;
6081
6082netbsd*)
6083 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6084 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6085 else
6086 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6087 fi
6088 ;;
6089
6090newos6*)
6091 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6092 lt_cv_file_magic_cmd=/usr/bin/file
6093 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6094 ;;
6095
6096*nto* | *qnx*)
6097 lt_cv_deplibs_check_method=pass_all
6098 ;;
6099
6100openbsd*)
6101 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6102 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6103 else
6104 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6105 fi
6106 ;;
6107
6108osf3* | osf4* | osf5*)
6109 lt_cv_deplibs_check_method=pass_all
6110 ;;
6111
6112rdos*)
6113 lt_cv_deplibs_check_method=pass_all
6114 ;;
6115
6116solaris*)
6117 lt_cv_deplibs_check_method=pass_all
6118 ;;
6119
6120sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6121 lt_cv_deplibs_check_method=pass_all
6122 ;;
6123
6124sysv4 | sysv4.3*)
6125 case $host_vendor in
6126 motorola)
6127 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]'
6128 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6129 ;;
6130 ncr)
6131 lt_cv_deplibs_check_method=pass_all
6132 ;;
6133 sequent)
6134 lt_cv_file_magic_cmd='/bin/file'
6135 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6136 ;;
6137 sni)
6138 lt_cv_file_magic_cmd='/bin/file'
6139 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6140 lt_cv_file_magic_test_file=/lib/libc.so
6141 ;;
6142 siemens)
6143 lt_cv_deplibs_check_method=pass_all
6144 ;;
6145 pc)
6146 lt_cv_deplibs_check_method=pass_all
6147 ;;
6148 esac
6149 ;;
6150
6151tpf*)
6152 lt_cv_deplibs_check_method=pass_all
6153 ;;
6154esac
6155
6156fi
6157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6158$as_echo "$lt_cv_deplibs_check_method" >&6; }
6159file_magic_cmd=$lt_cv_file_magic_cmd
6160deplibs_check_method=$lt_cv_deplibs_check_method
6161test -z "$deplibs_check_method" && deplibs_check_method=unknown
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174plugin_option=
6175plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6176for plugin in $plugin_names; do
6177 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6178 if test x$plugin_so = x$plugin; then
6179 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6180 fi
6181 if test x$plugin_so != x$plugin; then
6182 plugin_option="--plugin $plugin_so"
6183 break
6184 fi
6185done
6186
6187if test -n "$ac_tool_prefix"; then
6188 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6189set dummy ${ac_tool_prefix}ar; ac_word=$2
6190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6191$as_echo_n "checking for $ac_word... " >&6; }
6192if ${ac_cv_prog_AR+:} false; then :
6193 $as_echo_n "(cached) " >&6
6194else
6195 if test -n "$AR"; then
6196 ac_cv_prog_AR="$AR" # Let the user override the test.
6197else
6198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199for as_dir in $PATH
6200do
6201 IFS=$as_save_IFS
6202 test -z "$as_dir" && as_dir=.
6203 for ac_exec_ext in '' $ac_executable_extensions; do
6204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6205 ac_cv_prog_AR="${ac_tool_prefix}ar"
6206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6207 break 2
6208 fi
6209done
6210 done
6211IFS=$as_save_IFS
6212
6213fi
6214fi
6215AR=$ac_cv_prog_AR
6216if test -n "$AR"; then
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6218$as_echo "$AR" >&6; }
6219else
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6221$as_echo "no" >&6; }
6222fi
6223
6224
6225fi
6226if test -z "$ac_cv_prog_AR"; then
6227 ac_ct_AR=$AR
6228 # Extract the first word of "ar", so it can be a program name with args.
6229set dummy ar; ac_word=$2
6230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6231$as_echo_n "checking for $ac_word... " >&6; }
6232if ${ac_cv_prog_ac_ct_AR+:} false; then :
6233 $as_echo_n "(cached) " >&6
6234else
6235 if test -n "$ac_ct_AR"; then
6236 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6237else
6238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6239for as_dir in $PATH
6240do
6241 IFS=$as_save_IFS
6242 test -z "$as_dir" && as_dir=.
6243 for ac_exec_ext in '' $ac_executable_extensions; do
6244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6245 ac_cv_prog_ac_ct_AR="ar"
6246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6247 break 2
6248 fi
6249done
6250 done
6251IFS=$as_save_IFS
6252
6253fi
6254fi
6255ac_ct_AR=$ac_cv_prog_ac_ct_AR
6256if test -n "$ac_ct_AR"; then
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6258$as_echo "$ac_ct_AR" >&6; }
6259else
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6261$as_echo "no" >&6; }
6262fi
6263
6264 if test "x$ac_ct_AR" = x; then
6265 AR="false"
6266 else
6267 case $cross_compiling:$ac_tool_warned in
6268yes:)
6269{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6270$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6271ac_tool_warned=yes ;;
6272esac
6273 AR=$ac_ct_AR
6274 fi
6275else
6276 AR="$ac_cv_prog_AR"
6277fi
6278
6279test -z "$AR" && AR=ar
6280if test -n "$plugin_option"; then
6281 if $AR --help 2>&1 | grep -q "\--plugin"; then
6282 touch conftest.c
6283 $AR $plugin_option rc conftest.a conftest.c
6284 if test "$?" != 0; then
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6286$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6287 else
6288 AR="$AR $plugin_option"
6289 fi
6290 rm -f conftest.*
6291 fi
6292fi
6293test -z "$AR_FLAGS" && AR_FLAGS=cru
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305if test -n "$ac_tool_prefix"; then
6306 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6307set dummy ${ac_tool_prefix}strip; ac_word=$2
6308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6309$as_echo_n "checking for $ac_word... " >&6; }
6310if ${ac_cv_prog_STRIP+:} false; then :
6311 $as_echo_n "(cached) " >&6
6312else
6313 if test -n "$STRIP"; then
6314 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6315else
6316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6317for as_dir in $PATH
6318do
6319 IFS=$as_save_IFS
6320 test -z "$as_dir" && as_dir=.
6321 for ac_exec_ext in '' $ac_executable_extensions; do
6322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6323 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6325 break 2
6326 fi
6327done
6328 done
6329IFS=$as_save_IFS
6330
6331fi
6332fi
6333STRIP=$ac_cv_prog_STRIP
6334if test -n "$STRIP"; then
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6336$as_echo "$STRIP" >&6; }
6337else
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6339$as_echo "no" >&6; }
6340fi
6341
6342
6343fi
6344if test -z "$ac_cv_prog_STRIP"; then
6345 ac_ct_STRIP=$STRIP
6346 # Extract the first word of "strip", so it can be a program name with args.
6347set dummy strip; ac_word=$2
6348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6349$as_echo_n "checking for $ac_word... " >&6; }
6350if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6351 $as_echo_n "(cached) " >&6
6352else
6353 if test -n "$ac_ct_STRIP"; then
6354 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6355else
6356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6357for as_dir in $PATH
6358do
6359 IFS=$as_save_IFS
6360 test -z "$as_dir" && as_dir=.
6361 for ac_exec_ext in '' $ac_executable_extensions; do
6362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6363 ac_cv_prog_ac_ct_STRIP="strip"
6364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6365 break 2
6366 fi
6367done
6368 done
6369IFS=$as_save_IFS
6370
6371fi
6372fi
6373ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6374if test -n "$ac_ct_STRIP"; then
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6376$as_echo "$ac_ct_STRIP" >&6; }
6377else
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6379$as_echo "no" >&6; }
6380fi
6381
6382 if test "x$ac_ct_STRIP" = x; then
6383 STRIP=":"
6384 else
6385 case $cross_compiling:$ac_tool_warned in
6386yes:)
6387{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6388$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6389ac_tool_warned=yes ;;
6390esac
6391 STRIP=$ac_ct_STRIP
6392 fi
6393else
6394 STRIP="$ac_cv_prog_STRIP"
6395fi
6396
6397test -z "$STRIP" && STRIP=:
6398
6399
6400
6401
6402
6403
6404if test -n "$ac_tool_prefix"; then
6405 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6406set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6408$as_echo_n "checking for $ac_word... " >&6; }
6409if ${ac_cv_prog_RANLIB+:} false; then :
6410 $as_echo_n "(cached) " >&6
6411else
6412 if test -n "$RANLIB"; then
6413 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6414else
6415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6416for as_dir in $PATH
6417do
6418 IFS=$as_save_IFS
6419 test -z "$as_dir" && as_dir=.
6420 for ac_exec_ext in '' $ac_executable_extensions; do
6421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6422 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6424 break 2
6425 fi
6426done
6427 done
6428IFS=$as_save_IFS
6429
6430fi
6431fi
6432RANLIB=$ac_cv_prog_RANLIB
6433if test -n "$RANLIB"; then
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6435$as_echo "$RANLIB" >&6; }
6436else
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6438$as_echo "no" >&6; }
6439fi
6440
6441
6442fi
6443if test -z "$ac_cv_prog_RANLIB"; then
6444 ac_ct_RANLIB=$RANLIB
6445 # Extract the first word of "ranlib", so it can be a program name with args.
6446set dummy ranlib; ac_word=$2
6447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6448$as_echo_n "checking for $ac_word... " >&6; }
6449if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6450 $as_echo_n "(cached) " >&6
6451else
6452 if test -n "$ac_ct_RANLIB"; then
6453 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6454else
6455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456for as_dir in $PATH
6457do
6458 IFS=$as_save_IFS
6459 test -z "$as_dir" && as_dir=.
6460 for ac_exec_ext in '' $ac_executable_extensions; do
6461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6462 ac_cv_prog_ac_ct_RANLIB="ranlib"
6463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6464 break 2
6465 fi
6466done
6467 done
6468IFS=$as_save_IFS
6469
6470fi
6471fi
6472ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6473if test -n "$ac_ct_RANLIB"; then
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6475$as_echo "$ac_ct_RANLIB" >&6; }
6476else
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6478$as_echo "no" >&6; }
6479fi
6480
6481 if test "x$ac_ct_RANLIB" = x; then
6482 RANLIB=":"
6483 else
6484 case $cross_compiling:$ac_tool_warned in
6485yes:)
6486{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6487$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6488ac_tool_warned=yes ;;
6489esac
6490 RANLIB=$ac_ct_RANLIB
6491 fi
6492else
6493 RANLIB="$ac_cv_prog_RANLIB"
6494fi
6495
6496test -z "$RANLIB" && RANLIB=:
6497if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6498 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6499 RANLIB="$RANLIB $plugin_option"
6500 fi
6501fi
6502
6503
6504
6505
6506
6507
6508# Determine commands to create old-style static archives.
6509old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6510old_postinstall_cmds='chmod 644 $oldlib'
6511old_postuninstall_cmds=
6512
6513if test -n "$RANLIB"; then
6514 case $host_os in
6515 openbsd*)
6516 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6517 ;;
6518 *)
6519 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6520 ;;
6521 esac
6522 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6523fi
6524
6525case $host_os in
6526 darwin*)
6527 lock_old_archive_extraction=yes ;;
6528 *)
6529 lock_old_archive_extraction=no ;;
6530esac
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552for ac_prog in gawk mawk nawk awk
6553do
6554 # Extract the first word of "$ac_prog", so it can be a program name with args.
6555set dummy $ac_prog; ac_word=$2
6556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6557$as_echo_n "checking for $ac_word... " >&6; }
6558if ${ac_cv_prog_AWK+:} false; then :
6559 $as_echo_n "(cached) " >&6
6560else
6561 if test -n "$AWK"; then
6562 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6563else
6564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6565for as_dir in $PATH
6566do
6567 IFS=$as_save_IFS
6568 test -z "$as_dir" && as_dir=.
6569 for ac_exec_ext in '' $ac_executable_extensions; do
6570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6571 ac_cv_prog_AWK="$ac_prog"
6572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6573 break 2
6574 fi
6575done
6576 done
6577IFS=$as_save_IFS
6578
6579fi
6580fi
6581AWK=$ac_cv_prog_AWK
6582if test -n "$AWK"; then
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6584$as_echo "$AWK" >&6; }
6585else
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6587$as_echo "no" >&6; }
6588fi
6589
6590
6591 test -n "$AWK" && break
6592done
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612# If no C compiler was specified, use CC.
6613LTCC=${LTCC-"$CC"}
6614
6615# If no C compiler flags were specified, use CFLAGS.
6616LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6617
6618# Allow CC to be a program name with arguments.
6619compiler=$CC
6620
6621
6622# Check for command to grab the raw symbol name followed by C symbol from nm.
6623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6624$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6625if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6626 $as_echo_n "(cached) " >&6
6627else
6628
6629# These are sane defaults that work on at least a few old systems.
6630# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6631
6632# Character class describing NM global symbol codes.
6633symcode='[BCDEGRST]'
6634
6635# Regexp to match symbols that can be accessed directly from C.
6636sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6637
6638# Define system-specific variables.
6639case $host_os in
6640aix*)
6641 symcode='[BCDT]'
6642 ;;
6643cygwin* | mingw* | pw32* | cegcc*)
6644 symcode='[ABCDGISTW]'
6645 ;;
6646hpux*)
6647 if test "$host_cpu" = ia64; then
6648 symcode='[ABCDEGRST]'
6649 fi
6650 ;;
6651irix* | nonstopux*)
6652 symcode='[BCDEGRST]'
6653 ;;
6654osf*)
6655 symcode='[BCDEGQRST]'
6656 ;;
6657solaris*)
6658 symcode='[BDRT]'
6659 ;;
6660sco3.2v5*)
6661 symcode='[DT]'
6662 ;;
6663sysv4.2uw2*)
6664 symcode='[DT]'
6665 ;;
6666sysv5* | sco5v6* | unixware* | OpenUNIX*)
6667 symcode='[ABDT]'
6668 ;;
6669sysv4)
6670 symcode='[DFNSTU]'
6671 ;;
6672esac
6673
6674# If we're using GNU nm, then use its standard symbol codes.
6675case `$NM -V 2>&1` in
6676*GNU* | *'with BFD'*)
6677 symcode='[ABCDGIRSTW]' ;;
6678esac
6679
6680# Transform an extracted symbol line into a proper C declaration.
6681# Some systems (esp. on ia64) link data and code symbols differently,
6682# so use this general approach.
6683lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6684
6685# Transform an extracted symbol line into symbol name and symbol address
6686lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6687lt_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'"
6688
6689# Handle CRLF in mingw tool chain
6690opt_cr=
6691case $build_os in
6692mingw*)
6693 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6694 ;;
6695esac
6696
6697# Try without a prefix underscore, then with it.
6698for ac_symprfx in "" "_"; do
6699
6700 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6701 symxfrm="\\1 $ac_symprfx\\2 \\2"
6702
6703 # Write the raw and C identifiers.
6704 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6705 # Fake it for dumpbin and say T for any non-static function
6706 # and D for any global variable.
6707 # Also find C++ and __fastcall symbols from MSVC++,
6708 # which start with @ or ?.
6709 lt_cv_sys_global_symbol_pipe="$AWK '"\
6710" {last_section=section; section=\$ 3};"\
6711" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6712" \$ 0!~/External *\|/{next};"\
6713" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6714" {if(hide[section]) next};"\
6715" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6716" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6717" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6718" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6719" ' prfx=^$ac_symprfx"
6720 else
6721 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6722 fi
6723
6724 # Check to see that the pipe works correctly.
6725 pipe_works=no
6726
6727 rm -f conftest*
6728 cat > conftest.$ac_ext <<_LT_EOF
6729#ifdef __cplusplus
6730extern "C" {
6731#endif
6732char nm_test_var;
6733void nm_test_func(void);
6734void nm_test_func(void){}
6735#ifdef __cplusplus
6736}
6737#endif
6738int main(){nm_test_var='a';nm_test_func();return(0);}
6739_LT_EOF
6740
6741 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6742 (eval $ac_compile) 2>&5
6743 ac_status=$?
6744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6745 test $ac_status = 0; }; then
6746 # Now try to grab the symbols.
6747 nlist=conftest.nm
6748 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6749 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6750 ac_status=$?
6751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6752 test $ac_status = 0; } && test -s "$nlist"; then
6753 # Try sorting and uniquifying the output.
6754 if sort "$nlist" | uniq > "$nlist"T; then
6755 mv -f "$nlist"T "$nlist"
6756 else
6757 rm -f "$nlist"T
6758 fi
6759
6760 # Make sure that we snagged all the symbols we need.
6761 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6762 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6763 cat <<_LT_EOF > conftest.$ac_ext
6764#ifdef __cplusplus
6765extern "C" {
6766#endif
6767
6768_LT_EOF
6769 # Now generate the symbol file.
6770 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6771
6772 cat <<_LT_EOF >> conftest.$ac_ext
6773
6774/* The mapping between symbol names and symbols. */
6775const struct {
6776 const char *name;
6777 void *address;
6778}
6779lt__PROGRAM__LTX_preloaded_symbols[] =
6780{
6781 { "@PROGRAM@", (void *) 0 },
6782_LT_EOF
6783 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6784 cat <<\_LT_EOF >> conftest.$ac_ext
6785 {0, (void *) 0}
6786};
6787
6788/* This works around a problem in FreeBSD linker */
6789#ifdef FREEBSD_WORKAROUND
6790static const void *lt_preloaded_setup() {
6791 return lt__PROGRAM__LTX_preloaded_symbols;
6792}
6793#endif
6794
6795#ifdef __cplusplus
6796}
6797#endif
6798_LT_EOF
6799 # Now try linking the two files.
6800 mv conftest.$ac_objext conftstm.$ac_objext
6801 lt_save_LIBS="$LIBS"
6802 lt_save_CFLAGS="$CFLAGS"
6803 LIBS="conftstm.$ac_objext"
6804 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6805 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6806 (eval $ac_link) 2>&5
6807 ac_status=$?
6808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6809 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6810 pipe_works=yes
6811 fi
6812 LIBS="$lt_save_LIBS"
6813 CFLAGS="$lt_save_CFLAGS"
6814 else
6815 echo "cannot find nm_test_func in $nlist" >&5
6816 fi
6817 else
6818 echo "cannot find nm_test_var in $nlist" >&5
6819 fi
6820 else
6821 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6822 fi
6823 else
6824 echo "$progname: failed program was:" >&5
6825 cat conftest.$ac_ext >&5
6826 fi
6827 rm -rf conftest* conftst*
6828
6829 # Do not use the global_symbol_pipe unless it works.
6830 if test "$pipe_works" = yes; then
6831 break
6832 else
6833 lt_cv_sys_global_symbol_pipe=
6834 fi
6835done
6836
6837fi
6838
6839if test -z "$lt_cv_sys_global_symbol_pipe"; then
6840 lt_cv_sys_global_symbol_to_cdecl=
6841fi
6842if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6844$as_echo "failed" >&6; }
6845else
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6847$as_echo "ok" >&6; }
6848fi
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871# Check whether --enable-libtool-lock was given.
6872if test "${enable_libtool_lock+set}" = set; then :
6873 enableval=$enable_libtool_lock;
6874fi
6875
6876test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6877
6878# Some flags need to be propagated to the compiler or linker for good
6879# libtool support.
6880case $host in
6881ia64-*-hpux*)
6882 # Find out which ABI we are using.
6883 echo 'int i;' > conftest.$ac_ext
6884 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6885 (eval $ac_compile) 2>&5
6886 ac_status=$?
6887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6888 test $ac_status = 0; }; then
6889 case `/usr/bin/file conftest.$ac_objext` in
6890 *ELF-32*)
6891 HPUX_IA64_MODE="32"
6892 ;;
6893 *ELF-64*)
6894 HPUX_IA64_MODE="64"
6895 ;;
6896 esac
6897 fi
6898 rm -rf conftest*
6899 ;;
6900*-*-irix6*)
6901 # Find out which ABI we are using.
6902 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6903 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6904 (eval $ac_compile) 2>&5
6905 ac_status=$?
6906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6907 test $ac_status = 0; }; then
6908 if test "$lt_cv_prog_gnu_ld" = yes; then
6909 case `/usr/bin/file conftest.$ac_objext` in
6910 *32-bit*)
6911 LD="${LD-ld} -melf32bsmip"
6912 ;;
6913 *N32*)
6914 LD="${LD-ld} -melf32bmipn32"
6915 ;;
6916 *64-bit*)
6917 LD="${LD-ld} -melf64bmip"
6918 ;;
6919 esac
6920 else
6921 case `/usr/bin/file conftest.$ac_objext` in
6922 *32-bit*)
6923 LD="${LD-ld} -32"
6924 ;;
6925 *N32*)
6926 LD="${LD-ld} -n32"
6927 ;;
6928 *64-bit*)
6929 LD="${LD-ld} -64"
6930 ;;
6931 esac
6932 fi
6933 fi
6934 rm -rf conftest*
6935 ;;
6936
6937x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6938s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6939 # Find out which ABI we are using.
6940 echo 'int i;' > conftest.$ac_ext
6941 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6942 (eval $ac_compile) 2>&5
6943 ac_status=$?
6944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6945 test $ac_status = 0; }; then
6946 case `/usr/bin/file conftest.o` in
6947 *32-bit*)
6948 case $host in
6949 x86_64-*kfreebsd*-gnu)
6950 LD="${LD-ld} -m elf_i386_fbsd"
6951 ;;
6952 x86_64-*linux*)
6953 case `/usr/bin/file conftest.o` in
6954 *x86-64*)
6955 LD="${LD-ld} -m elf32_x86_64"
6956 ;;
6957 *)
6958 LD="${LD-ld} -m elf_i386"
6959 ;;
6960 esac
6961 ;;
6962 powerpc64le-*linux*)
6963 LD="${LD-ld} -m elf32lppclinux"
6964 ;;
6965 powerpc64-*linux*)
6966 LD="${LD-ld} -m elf32ppclinux"
6967 ;;
6968 s390x-*linux*)
6969 LD="${LD-ld} -m elf_s390"
6970 ;;
6971 sparc64-*linux*)
6972 LD="${LD-ld} -m elf32_sparc"
6973 ;;
6974 esac
6975 ;;
6976 *64-bit*)
6977 case $host in
6978 x86_64-*kfreebsd*-gnu)
6979 LD="${LD-ld} -m elf_x86_64_fbsd"
6980 ;;
6981 x86_64-*linux*)
6982 LD="${LD-ld} -m elf_x86_64"
6983 ;;
6984 powerpcle-*linux*)
6985 LD="${LD-ld} -m elf64lppc"
6986 ;;
6987 powerpc-*linux*)
6988 LD="${LD-ld} -m elf64ppc"
6989 ;;
6990 s390*-*linux*|s390*-*tpf*)
6991 LD="${LD-ld} -m elf64_s390"
6992 ;;
6993 sparc*-*linux*)
6994 LD="${LD-ld} -m elf64_sparc"
6995 ;;
6996 esac
6997 ;;
6998 esac
6999 fi
7000 rm -rf conftest*
7001 ;;
7002
7003*-*-sco3.2v5*)
7004 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7005 SAVE_CFLAGS="$CFLAGS"
7006 CFLAGS="$CFLAGS -belf"
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7008$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7009if ${lt_cv_cc_needs_belf+:} false; then :
7010 $as_echo_n "(cached) " >&6
7011else
7012 ac_ext=c
7013ac_cpp='$CPP $CPPFLAGS'
7014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7016ac_compiler_gnu=$ac_cv_c_compiler_gnu
7017
7018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7019/* end confdefs.h. */
7020
7021int
7022main ()
7023{
7024
7025 ;
7026 return 0;
7027}
7028_ACEOF
7029if ac_fn_c_try_link "$LINENO"; then :
7030 lt_cv_cc_needs_belf=yes
7031else
7032 lt_cv_cc_needs_belf=no
7033fi
7034rm -f core conftest.err conftest.$ac_objext \
7035 conftest$ac_exeext conftest.$ac_ext
7036 ac_ext=c
7037ac_cpp='$CPP $CPPFLAGS'
7038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7040ac_compiler_gnu=$ac_cv_c_compiler_gnu
7041
7042fi
7043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7044$as_echo "$lt_cv_cc_needs_belf" >&6; }
7045 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7046 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7047 CFLAGS="$SAVE_CFLAGS"
7048 fi
7049 ;;
7050sparc*-*solaris*)
7051 # Find out which ABI we are using.
7052 echo 'int i;' > conftest.$ac_ext
7053 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7054 (eval $ac_compile) 2>&5
7055 ac_status=$?
7056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7057 test $ac_status = 0; }; then
7058 case `/usr/bin/file conftest.o` in
7059 *64-bit*)
7060 case $lt_cv_prog_gnu_ld in
7061 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7062 *)
7063 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7064 LD="${LD-ld} -64"
7065 fi
7066 ;;
7067 esac
7068 ;;
7069 esac
7070 fi
7071 rm -rf conftest*
7072 ;;
7073esac
7074
7075need_locks="$enable_libtool_lock"
7076
7077
7078 case $host_os in
7079 rhapsody* | darwin*)
7080 if test -n "$ac_tool_prefix"; then
7081 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7082set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7084$as_echo_n "checking for $ac_word... " >&6; }
7085if ${ac_cv_prog_DSYMUTIL+:} false; then :
7086 $as_echo_n "(cached) " >&6
7087else
7088 if test -n "$DSYMUTIL"; then
7089 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7090else
7091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7092for as_dir in $PATH
7093do
7094 IFS=$as_save_IFS
7095 test -z "$as_dir" && as_dir=.
7096 for ac_exec_ext in '' $ac_executable_extensions; do
7097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7098 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7100 break 2
7101 fi
7102done
7103 done
7104IFS=$as_save_IFS
7105
7106fi
7107fi
7108DSYMUTIL=$ac_cv_prog_DSYMUTIL
7109if test -n "$DSYMUTIL"; then
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7111$as_echo "$DSYMUTIL" >&6; }
7112else
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7114$as_echo "no" >&6; }
7115fi
7116
7117
7118fi
7119if test -z "$ac_cv_prog_DSYMUTIL"; then
7120 ac_ct_DSYMUTIL=$DSYMUTIL
7121 # Extract the first word of "dsymutil", so it can be a program name with args.
7122set dummy dsymutil; ac_word=$2
7123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7124$as_echo_n "checking for $ac_word... " >&6; }
7125if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7126 $as_echo_n "(cached) " >&6
7127else
7128 if test -n "$ac_ct_DSYMUTIL"; then
7129 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7130else
7131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7132for as_dir in $PATH
7133do
7134 IFS=$as_save_IFS
7135 test -z "$as_dir" && as_dir=.
7136 for ac_exec_ext in '' $ac_executable_extensions; do
7137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7138 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7140 break 2
7141 fi
7142done
7143 done
7144IFS=$as_save_IFS
7145
7146fi
7147fi
7148ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7149if test -n "$ac_ct_DSYMUTIL"; then
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7151$as_echo "$ac_ct_DSYMUTIL" >&6; }
7152else
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7154$as_echo "no" >&6; }
7155fi
7156
7157 if test "x$ac_ct_DSYMUTIL" = x; then
7158 DSYMUTIL=":"
7159 else
7160 case $cross_compiling:$ac_tool_warned in
7161yes:)
7162{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7163$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7164ac_tool_warned=yes ;;
7165esac
7166 DSYMUTIL=$ac_ct_DSYMUTIL
7167 fi
7168else
7169 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7170fi
7171
7172 if test -n "$ac_tool_prefix"; then
7173 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7174set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7176$as_echo_n "checking for $ac_word... " >&6; }
7177if ${ac_cv_prog_NMEDIT+:} false; then :
7178 $as_echo_n "(cached) " >&6
7179else
7180 if test -n "$NMEDIT"; then
7181 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7182else
7183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184for as_dir in $PATH
7185do
7186 IFS=$as_save_IFS
7187 test -z "$as_dir" && as_dir=.
7188 for ac_exec_ext in '' $ac_executable_extensions; do
7189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7190 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7192 break 2
7193 fi
7194done
7195 done
7196IFS=$as_save_IFS
7197
7198fi
7199fi
7200NMEDIT=$ac_cv_prog_NMEDIT
7201if test -n "$NMEDIT"; then
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7203$as_echo "$NMEDIT" >&6; }
7204else
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7206$as_echo "no" >&6; }
7207fi
7208
7209
7210fi
7211if test -z "$ac_cv_prog_NMEDIT"; then
7212 ac_ct_NMEDIT=$NMEDIT
7213 # Extract the first word of "nmedit", so it can be a program name with args.
7214set dummy nmedit; ac_word=$2
7215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7216$as_echo_n "checking for $ac_word... " >&6; }
7217if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7218 $as_echo_n "(cached) " >&6
7219else
7220 if test -n "$ac_ct_NMEDIT"; then
7221 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7222else
7223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7224for as_dir in $PATH
7225do
7226 IFS=$as_save_IFS
7227 test -z "$as_dir" && as_dir=.
7228 for ac_exec_ext in '' $ac_executable_extensions; do
7229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7230 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7232 break 2
7233 fi
7234done
7235 done
7236IFS=$as_save_IFS
7237
7238fi
7239fi
7240ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7241if test -n "$ac_ct_NMEDIT"; then
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7243$as_echo "$ac_ct_NMEDIT" >&6; }
7244else
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7246$as_echo "no" >&6; }
7247fi
7248
7249 if test "x$ac_ct_NMEDIT" = x; then
7250 NMEDIT=":"
7251 else
7252 case $cross_compiling:$ac_tool_warned in
7253yes:)
7254{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7255$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7256ac_tool_warned=yes ;;
7257esac
7258 NMEDIT=$ac_ct_NMEDIT
7259 fi
7260else
7261 NMEDIT="$ac_cv_prog_NMEDIT"
7262fi
7263
7264 if test -n "$ac_tool_prefix"; then
7265 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7266set dummy ${ac_tool_prefix}lipo; ac_word=$2
7267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7268$as_echo_n "checking for $ac_word... " >&6; }
7269if ${ac_cv_prog_LIPO+:} false; then :
7270 $as_echo_n "(cached) " >&6
7271else
7272 if test -n "$LIPO"; then
7273 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7274else
7275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276for as_dir in $PATH
7277do
7278 IFS=$as_save_IFS
7279 test -z "$as_dir" && as_dir=.
7280 for ac_exec_ext in '' $ac_executable_extensions; do
7281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7282 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7284 break 2
7285 fi
7286done
7287 done
7288IFS=$as_save_IFS
7289
7290fi
7291fi
7292LIPO=$ac_cv_prog_LIPO
7293if test -n "$LIPO"; then
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7295$as_echo "$LIPO" >&6; }
7296else
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7298$as_echo "no" >&6; }
7299fi
7300
7301
7302fi
7303if test -z "$ac_cv_prog_LIPO"; then
7304 ac_ct_LIPO=$LIPO
7305 # Extract the first word of "lipo", so it can be a program name with args.
7306set dummy lipo; ac_word=$2
7307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7308$as_echo_n "checking for $ac_word... " >&6; }
7309if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7310 $as_echo_n "(cached) " >&6
7311else
7312 if test -n "$ac_ct_LIPO"; then
7313 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7314else
7315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316for as_dir in $PATH
7317do
7318 IFS=$as_save_IFS
7319 test -z "$as_dir" && as_dir=.
7320 for ac_exec_ext in '' $ac_executable_extensions; do
7321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7322 ac_cv_prog_ac_ct_LIPO="lipo"
7323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7324 break 2
7325 fi
7326done
7327 done
7328IFS=$as_save_IFS
7329
7330fi
7331fi
7332ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7333if test -n "$ac_ct_LIPO"; then
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7335$as_echo "$ac_ct_LIPO" >&6; }
7336else
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7338$as_echo "no" >&6; }
7339fi
7340
7341 if test "x$ac_ct_LIPO" = x; then
7342 LIPO=":"
7343 else
7344 case $cross_compiling:$ac_tool_warned in
7345yes:)
7346{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7347$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7348ac_tool_warned=yes ;;
7349esac
7350 LIPO=$ac_ct_LIPO
7351 fi
7352else
7353 LIPO="$ac_cv_prog_LIPO"
7354fi
7355
7356 if test -n "$ac_tool_prefix"; then
7357 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7358set dummy ${ac_tool_prefix}otool; ac_word=$2
7359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7360$as_echo_n "checking for $ac_word... " >&6; }
7361if ${ac_cv_prog_OTOOL+:} false; then :
7362 $as_echo_n "(cached) " >&6
7363else
7364 if test -n "$OTOOL"; then
7365 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7366else
7367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7368for as_dir in $PATH
7369do
7370 IFS=$as_save_IFS
7371 test -z "$as_dir" && as_dir=.
7372 for ac_exec_ext in '' $ac_executable_extensions; do
7373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7374 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7376 break 2
7377 fi
7378done
7379 done
7380IFS=$as_save_IFS
7381
7382fi
7383fi
7384OTOOL=$ac_cv_prog_OTOOL
7385if test -n "$OTOOL"; then
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7387$as_echo "$OTOOL" >&6; }
7388else
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7390$as_echo "no" >&6; }
7391fi
7392
7393
7394fi
7395if test -z "$ac_cv_prog_OTOOL"; then
7396 ac_ct_OTOOL=$OTOOL
7397 # Extract the first word of "otool", so it can be a program name with args.
7398set dummy otool; ac_word=$2
7399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7400$as_echo_n "checking for $ac_word... " >&6; }
7401if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7402 $as_echo_n "(cached) " >&6
7403else
7404 if test -n "$ac_ct_OTOOL"; then
7405 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7406else
7407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7408for as_dir in $PATH
7409do
7410 IFS=$as_save_IFS
7411 test -z "$as_dir" && as_dir=.
7412 for ac_exec_ext in '' $ac_executable_extensions; do
7413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7414 ac_cv_prog_ac_ct_OTOOL="otool"
7415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7416 break 2
7417 fi
7418done
7419 done
7420IFS=$as_save_IFS
7421
7422fi
7423fi
7424ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7425if test -n "$ac_ct_OTOOL"; then
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7427$as_echo "$ac_ct_OTOOL" >&6; }
7428else
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7430$as_echo "no" >&6; }
7431fi
7432
7433 if test "x$ac_ct_OTOOL" = x; then
7434 OTOOL=":"
7435 else
7436 case $cross_compiling:$ac_tool_warned in
7437yes:)
7438{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7439$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7440ac_tool_warned=yes ;;
7441esac
7442 OTOOL=$ac_ct_OTOOL
7443 fi
7444else
7445 OTOOL="$ac_cv_prog_OTOOL"
7446fi
7447
7448 if test -n "$ac_tool_prefix"; then
7449 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7450set dummy ${ac_tool_prefix}otool64; ac_word=$2
7451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7452$as_echo_n "checking for $ac_word... " >&6; }
7453if ${ac_cv_prog_OTOOL64+:} false; then :
7454 $as_echo_n "(cached) " >&6
7455else
7456 if test -n "$OTOOL64"; then
7457 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7458else
7459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7460for as_dir in $PATH
7461do
7462 IFS=$as_save_IFS
7463 test -z "$as_dir" && as_dir=.
7464 for ac_exec_ext in '' $ac_executable_extensions; do
7465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7466 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7468 break 2
7469 fi
7470done
7471 done
7472IFS=$as_save_IFS
7473
7474fi
7475fi
7476OTOOL64=$ac_cv_prog_OTOOL64
7477if test -n "$OTOOL64"; then
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7479$as_echo "$OTOOL64" >&6; }
7480else
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7482$as_echo "no" >&6; }
7483fi
7484
7485
7486fi
7487if test -z "$ac_cv_prog_OTOOL64"; then
7488 ac_ct_OTOOL64=$OTOOL64
7489 # Extract the first word of "otool64", so it can be a program name with args.
7490set dummy otool64; ac_word=$2
7491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7492$as_echo_n "checking for $ac_word... " >&6; }
7493if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7494 $as_echo_n "(cached) " >&6
7495else
7496 if test -n "$ac_ct_OTOOL64"; then
7497 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7498else
7499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7500for as_dir in $PATH
7501do
7502 IFS=$as_save_IFS
7503 test -z "$as_dir" && as_dir=.
7504 for ac_exec_ext in '' $ac_executable_extensions; do
7505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7506 ac_cv_prog_ac_ct_OTOOL64="otool64"
7507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7508 break 2
7509 fi
7510done
7511 done
7512IFS=$as_save_IFS
7513
7514fi
7515fi
7516ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7517if test -n "$ac_ct_OTOOL64"; then
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7519$as_echo "$ac_ct_OTOOL64" >&6; }
7520else
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7522$as_echo "no" >&6; }
7523fi
7524
7525 if test "x$ac_ct_OTOOL64" = x; then
7526 OTOOL64=":"
7527 else
7528 case $cross_compiling:$ac_tool_warned in
7529yes:)
7530{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7531$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7532ac_tool_warned=yes ;;
7533esac
7534 OTOOL64=$ac_ct_OTOOL64
7535 fi
7536else
7537 OTOOL64="$ac_cv_prog_OTOOL64"
7538fi
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7567$as_echo_n "checking for -single_module linker flag... " >&6; }
7568if ${lt_cv_apple_cc_single_mod+:} false; then :
7569 $as_echo_n "(cached) " >&6
7570else
7571 lt_cv_apple_cc_single_mod=no
7572 if test -z "${LT_MULTI_MODULE}"; then
7573 # By default we will add the -single_module flag. You can override
7574 # by either setting the environment variable LT_MULTI_MODULE
7575 # non-empty at configure time, or by adding -multi_module to the
7576 # link flags.
7577 rm -rf libconftest.dylib*
7578 echo "int foo(void){return 1;}" > conftest.c
7579 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7580-dynamiclib -Wl,-single_module conftest.c" >&5
7581 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7582 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7583 _lt_result=$?
7584 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7585 lt_cv_apple_cc_single_mod=yes
7586 else
7587 cat conftest.err >&5
7588 fi
7589 rm -rf libconftest.dylib*
7590 rm -f conftest.*
7591 fi
7592fi
7593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7594$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7596$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7597if ${lt_cv_ld_exported_symbols_list+:} false; then :
7598 $as_echo_n "(cached) " >&6
7599else
7600 lt_cv_ld_exported_symbols_list=no
7601 save_LDFLAGS=$LDFLAGS
7602 echo "_main" > conftest.sym
7603 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7605/* end confdefs.h. */
7606
7607int
7608main ()
7609{
7610
7611 ;
7612 return 0;
7613}
7614_ACEOF
7615if ac_fn_c_try_link "$LINENO"; then :
7616 lt_cv_ld_exported_symbols_list=yes
7617else
7618 lt_cv_ld_exported_symbols_list=no
7619fi
7620rm -f core conftest.err conftest.$ac_objext \
7621 conftest$ac_exeext conftest.$ac_ext
7622 LDFLAGS="$save_LDFLAGS"
7623
7624fi
7625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7626$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7628$as_echo_n "checking for -force_load linker flag... " >&6; }
7629if ${lt_cv_ld_force_load+:} false; then :
7630 $as_echo_n "(cached) " >&6
7631else
7632 lt_cv_ld_force_load=no
7633 cat > conftest.c << _LT_EOF
7634int forced_loaded() { return 2;}
7635_LT_EOF
7636 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7637 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7638 echo "$AR cru libconftest.a conftest.o" >&5
7639 $AR cru libconftest.a conftest.o 2>&5
7640 cat > conftest.c << _LT_EOF
7641int main() { return 0;}
7642_LT_EOF
7643 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7644 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7645 _lt_result=$?
7646 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7647 lt_cv_ld_force_load=yes
7648 else
7649 cat conftest.err >&5
7650 fi
7651 rm -f conftest.err libconftest.a conftest conftest.c
7652 rm -rf conftest.dSYM
7653
7654fi
7655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7656$as_echo "$lt_cv_ld_force_load" >&6; }
7657 case $host_os in
7658 rhapsody* | darwin1.[012])
7659 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7660 darwin1.*)
7661 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7662 darwin*) # darwin 5.x on
7663 # if running on 10.5 or later, the deployment target defaults
7664 # to the OS version, if on x86, and 10.4, the deployment
7665 # target defaults to 10.4. Don't you love it?
7666 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7667 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7668 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7669 10.[012][,.]*)
7670 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7671 10.*)
7672 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7673 esac
7674 ;;
7675 esac
7676 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7677 _lt_dar_single_mod='$single_module'
7678 fi
7679 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7680 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7681 else
7682 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7683 fi
7684 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7685 _lt_dsymutil='~$DSYMUTIL $lib || :'
7686 else
7687 _lt_dsymutil=
7688 fi
7689 ;;
7690 esac
7691
7692for ac_header in dlfcn.h
7693do :
7694 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7695"
7696if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7697 cat >>confdefs.h <<_ACEOF
7698#define HAVE_DLFCN_H 1
7699_ACEOF
7700
7701fi
7702
7703done
7704
7705
7706ac_header_dirent=no
7707for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7708 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
7710$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
7711if eval \${$as_ac_Header+:} false; then :
7712 $as_echo_n "(cached) " >&6
7713else
7714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7715/* end confdefs.h. */
7716#include <sys/types.h>
7717#include <$ac_hdr>
7718
7719int
7720main ()
7721{
7722if ((DIR *) 0)
7723return 0;
7724 ;
7725 return 0;
7726}
7727_ACEOF
7728if ac_fn_c_try_compile "$LINENO"; then :
7729 eval "$as_ac_Header=yes"
7730else
7731 eval "$as_ac_Header=no"
7732fi
7733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7734fi
7735eval ac_res=\$$as_ac_Header
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7737$as_echo "$ac_res" >&6; }
7738if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7739 cat >>confdefs.h <<_ACEOF
7740#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7741_ACEOF
7742
7743ac_header_dirent=$ac_hdr; break
7744fi
7745
7746done
7747# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7748if test $ac_header_dirent = dirent.h; then
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7750$as_echo_n "checking for library containing opendir... " >&6; }
7751if ${ac_cv_search_opendir+:} false; then :
7752 $as_echo_n "(cached) " >&6
7753else
7754 ac_func_search_save_LIBS=$LIBS
7755cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7756/* end confdefs.h. */
7757
7758/* Override any GCC internal prototype to avoid an error.
7759 Use char because int might match the return type of a GCC
7760 builtin and then its argument prototype would still apply. */
7761#ifdef __cplusplus
7762extern "C"
7763#endif
7764char opendir ();
7765int
7766main ()
7767{
7768return opendir ();
7769 ;
7770 return 0;
7771}
7772_ACEOF
7773for ac_lib in '' dir; do
7774 if test -z "$ac_lib"; then
7775 ac_res="none required"
7776 else
7777 ac_res=-l$ac_lib
7778 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7779 fi
7780 if ac_fn_c_try_link "$LINENO"; then :
7781 ac_cv_search_opendir=$ac_res
7782fi
7783rm -f core conftest.err conftest.$ac_objext \
7784 conftest$ac_exeext
7785 if ${ac_cv_search_opendir+:} false; then :
7786 break
7787fi
7788done
7789if ${ac_cv_search_opendir+:} false; then :
7790
7791else
7792 ac_cv_search_opendir=no
7793fi
7794rm conftest.$ac_ext
7795LIBS=$ac_func_search_save_LIBS
7796fi
7797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7798$as_echo "$ac_cv_search_opendir" >&6; }
7799ac_res=$ac_cv_search_opendir
7800if test "$ac_res" != no; then :
7801 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7802
7803fi
7804
7805else
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7807$as_echo_n "checking for library containing opendir... " >&6; }
7808if ${ac_cv_search_opendir+:} false; then :
7809 $as_echo_n "(cached) " >&6
7810else
7811 ac_func_search_save_LIBS=$LIBS
7812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7813/* end confdefs.h. */
7814
7815/* Override any GCC internal prototype to avoid an error.
7816 Use char because int might match the return type of a GCC
7817 builtin and then its argument prototype would still apply. */
7818#ifdef __cplusplus
7819extern "C"
7820#endif
7821char opendir ();
7822int
7823main ()
7824{
7825return opendir ();
7826 ;
7827 return 0;
7828}
7829_ACEOF
7830for ac_lib in '' x; do
7831 if test -z "$ac_lib"; then
7832 ac_res="none required"
7833 else
7834 ac_res=-l$ac_lib
7835 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7836 fi
7837 if ac_fn_c_try_link "$LINENO"; then :
7838 ac_cv_search_opendir=$ac_res
7839fi
7840rm -f core conftest.err conftest.$ac_objext \
7841 conftest$ac_exeext
7842 if ${ac_cv_search_opendir+:} false; then :
7843 break
7844fi
7845done
7846if ${ac_cv_search_opendir+:} false; then :
7847
7848else
7849 ac_cv_search_opendir=no
7850fi
7851rm conftest.$ac_ext
7852LIBS=$ac_func_search_save_LIBS
7853fi
7854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7855$as_echo "$ac_cv_search_opendir" >&6; }
7856ac_res=$ac_cv_search_opendir
7857if test "$ac_res" != no; then :
7858 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7859
7860fi
7861
7862fi
7863
7864
7865
7866
7867ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
7868if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
7869
7870cat >>confdefs.h <<_ACEOF
7871#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
7872_ACEOF
7873
7874
7875$as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
7876
7877fi
7878
7879
7880ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
7881if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
7882
7883cat >>confdefs.h <<_ACEOF
7884#define HAVE_STRUCT_STAT_ST_BLOCKS 1
7885_ACEOF
7886
7887
7888$as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
7889
7890else
7891 case " $LIBOBJS " in
7892 *" fileblocks.$ac_objext "* ) ;;
7893 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
7894 ;;
7895esac
7896
7897fi
7898
7899
7900ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
7901if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
7902
7903cat >>confdefs.h <<_ACEOF
7904#define HAVE_STRUCT_STAT_ST_RDEV 1
7905_ACEOF
7906
7907
7908$as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
7909
7910fi
7911
7912
7913ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
7914#include <$ac_cv_struct_tm>
7915
7916"
7917if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
7918
7919cat >>confdefs.h <<_ACEOF
7920#define HAVE_STRUCT_TM_TM_ZONE 1
7921_ACEOF
7922
7923
7924fi
7925
7926if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7927
7928$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7929
7930else
7931 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7932"
7933if test "x$ac_cv_have_decl_tzname" = xyes; then :
7934 ac_have_decl=1
7935else
7936 ac_have_decl=0
7937fi
7938
7939cat >>confdefs.h <<_ACEOF
7940#define HAVE_DECL_TZNAME $ac_have_decl
7941_ACEOF
7942
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7944$as_echo_n "checking for tzname... " >&6; }
7945if ${ac_cv_var_tzname+:} false; then :
7946 $as_echo_n "(cached) " >&6
7947else
7948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7949/* end confdefs.h. */
7950#include <time.h>
a48ff3ef
MF
7951#if !HAVE_DECL_TZNAME
7952extern char *tzname[];
7953#endif
b5689863
MF
7954
7955int
7956main ()
7957{
7958return tzname[0][0];
7959 ;
7960 return 0;
7961}
7962_ACEOF
7963if ac_fn_c_try_link "$LINENO"; then :
7964 ac_cv_var_tzname=yes
7965else
7966 ac_cv_var_tzname=no
7967fi
7968rm -f core conftest.err conftest.$ac_objext \
7969 conftest$ac_exeext conftest.$ac_ext
7970fi
7971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7972$as_echo "$ac_cv_var_tzname" >&6; }
7973 if test $ac_cv_var_tzname = yes; then
7974
7975$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7976
7977 fi
7978fi
7979
7980
7981ac_fn_c_check_member "$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H
7982#include <sys/types.h>
7983#endif
7984#ifdef HAVE_SYS_STAT_H
7985#include <sys/stat.h>
7986#endif
7987"
7988if test "x$ac_cv_member_struct_stat_st_dev" = xyes; then :
7989
7990cat >>confdefs.h <<_ACEOF
7991#define HAVE_STRUCT_STAT_ST_DEV 1
7992_ACEOF
7993
7994
7995fi
7996ac_fn_c_check_member "$LINENO" "struct stat" "st_ino" "ac_cv_member_struct_stat_st_ino" "#ifdef HAVE_SYS_TYPES_H
7997#include <sys/types.h>
7998#endif
7999#ifdef HAVE_SYS_STAT_H
8000#include <sys/stat.h>
8001#endif
8002"
8003if test "x$ac_cv_member_struct_stat_st_ino" = xyes; then :
8004
8005cat >>confdefs.h <<_ACEOF
8006#define HAVE_STRUCT_STAT_ST_INO 1
8007_ACEOF
8008
8009
8010fi
8011ac_fn_c_check_member "$LINENO" "struct stat" "st_mode" "ac_cv_member_struct_stat_st_mode" "#ifdef HAVE_SYS_TYPES_H
8012#include <sys/types.h>
8013#endif
8014#ifdef HAVE_SYS_STAT_H
8015#include <sys/stat.h>
8016#endif
8017"
8018if test "x$ac_cv_member_struct_stat_st_mode" = xyes; then :
8019
8020cat >>confdefs.h <<_ACEOF
8021#define HAVE_STRUCT_STAT_ST_MODE 1
8022_ACEOF
8023
8024
8025fi
8026ac_fn_c_check_member "$LINENO" "struct stat" "st_nlink" "ac_cv_member_struct_stat_st_nlink" "#ifdef HAVE_SYS_TYPES_H
8027#include <sys/types.h>
8028#endif
8029#ifdef HAVE_SYS_STAT_H
8030#include <sys/stat.h>
8031#endif
8032"
8033if test "x$ac_cv_member_struct_stat_st_nlink" = xyes; then :
8034
8035cat >>confdefs.h <<_ACEOF
8036#define HAVE_STRUCT_STAT_ST_NLINK 1
8037_ACEOF
8038
8039
8040fi
8041ac_fn_c_check_member "$LINENO" "struct stat" "st_uid" "ac_cv_member_struct_stat_st_uid" "#ifdef HAVE_SYS_TYPES_H
8042#include <sys/types.h>
8043#endif
8044#ifdef HAVE_SYS_STAT_H
8045#include <sys/stat.h>
8046#endif
8047"
8048if test "x$ac_cv_member_struct_stat_st_uid" = xyes; then :
8049
8050cat >>confdefs.h <<_ACEOF
8051#define HAVE_STRUCT_STAT_ST_UID 1
8052_ACEOF
8053
8054
8055fi
8056ac_fn_c_check_member "$LINENO" "struct stat" "st_gid" "ac_cv_member_struct_stat_st_gid" "#ifdef HAVE_SYS_TYPES_H
8057#include <sys/types.h>
8058#endif
8059#ifdef HAVE_SYS_STAT_H
8060#include <sys/stat.h>
8061#endif
8062"
8063if test "x$ac_cv_member_struct_stat_st_gid" = xyes; then :
8064
8065cat >>confdefs.h <<_ACEOF
8066#define HAVE_STRUCT_STAT_ST_GID 1
8067_ACEOF
8068
8069
8070fi
8071ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "#ifdef HAVE_SYS_TYPES_H
8072#include <sys/types.h>
8073#endif
8074#ifdef HAVE_SYS_STAT_H
8075#include <sys/stat.h>
8076#endif
8077"
8078if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
8079
8080cat >>confdefs.h <<_ACEOF
8081#define HAVE_STRUCT_STAT_ST_RDEV 1
8082_ACEOF
8083
8084
8085fi
8086ac_fn_c_check_member "$LINENO" "struct stat" "st_size" "ac_cv_member_struct_stat_st_size" "#ifdef HAVE_SYS_TYPES_H
8087#include <sys/types.h>
8088#endif
8089#ifdef HAVE_SYS_STAT_H
8090#include <sys/stat.h>
8091#endif
8092"
8093if test "x$ac_cv_member_struct_stat_st_size" = xyes; then :
8094
8095cat >>confdefs.h <<_ACEOF
8096#define HAVE_STRUCT_STAT_ST_SIZE 1
8097_ACEOF
8098
8099
8100fi
8101ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#ifdef HAVE_SYS_TYPES_H
8102#include <sys/types.h>
8103#endif
8104#ifdef HAVE_SYS_STAT_H
8105#include <sys/stat.h>
8106#endif
8107"
8108if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8109
8110cat >>confdefs.h <<_ACEOF
8111#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8112_ACEOF
8113
8114
8115fi
8116ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#ifdef HAVE_SYS_TYPES_H
8117#include <sys/types.h>
8118#endif
8119#ifdef HAVE_SYS_STAT_H
8120#include <sys/stat.h>
8121#endif
8122"
8123if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8124
8125cat >>confdefs.h <<_ACEOF
8126#define HAVE_STRUCT_STAT_ST_BLOCKS 1
8127_ACEOF
8128
8129
8130fi
8131ac_fn_c_check_member "$LINENO" "struct stat" "st_atime" "ac_cv_member_struct_stat_st_atime" "#ifdef HAVE_SYS_TYPES_H
8132#include <sys/types.h>
8133#endif
8134#ifdef HAVE_SYS_STAT_H
8135#include <sys/stat.h>
8136#endif
8137"
8138if test "x$ac_cv_member_struct_stat_st_atime" = xyes; then :
8139
8140cat >>confdefs.h <<_ACEOF
8141#define HAVE_STRUCT_STAT_ST_ATIME 1
8142_ACEOF
8143
8144
8145fi
8146ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "#ifdef HAVE_SYS_TYPES_H
8147#include <sys/types.h>
8148#endif
8149#ifdef HAVE_SYS_STAT_H
8150#include <sys/stat.h>
8151#endif
8152"
8153if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then :
8154
8155cat >>confdefs.h <<_ACEOF
8156#define HAVE_STRUCT_STAT_ST_MTIME 1
8157_ACEOF
8158
8159
8160fi
8161ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime" "ac_cv_member_struct_stat_st_ctime" "#ifdef HAVE_SYS_TYPES_H
8162#include <sys/types.h>
8163#endif
8164#ifdef HAVE_SYS_STAT_H
8165#include <sys/stat.h>
8166#endif
8167"
8168if test "x$ac_cv_member_struct_stat_st_ctime" = xyes; then :
8169
8170cat >>confdefs.h <<_ACEOF
8171#define HAVE_STRUCT_STAT_ST_CTIME 1
8172_ACEOF
8173
8174
8175fi
8176
8177
8178ac_fn_c_check_type "$LINENO" "__int128" "ac_cv_type___int128" "$ac_includes_default"
8179if test "x$ac_cv_type___int128" = xyes; then :
8180
8181cat >>confdefs.h <<_ACEOF
8182#define HAVE___INT128 1
8183_ACEOF
8184
8185
8186fi
8187
8188ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
8189#include <sys/socket.h>
8190
8191"
8192if test "x$ac_cv_type_socklen_t" = xyes; then :
8193
8194cat >>confdefs.h <<_ACEOF
8195#define HAVE_SOCKLEN_T 1
8196_ACEOF
8197
8198
8199fi
8200
8201
8202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
8203$as_echo_n "checking type of array argument to getgroups... " >&6; }
8204if ${ac_cv_type_getgroups+:} false; then :
8205 $as_echo_n "(cached) " >&6
8206else
8207 if test "$cross_compiling" = yes; then :
8208 ac_cv_type_getgroups=cross
8209else
8210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8211/* end confdefs.h. */
8212/* Thanks to Mike Rendell for this test. */
8213$ac_includes_default
8214#define NGID 256
8215#undef MAX
8216#define MAX(x, y) ((x) > (y) ? (x) : (y))
8217
8218int
8219main ()
8220{
8221 gid_t gidset[NGID];
8222 int i, n;
8223 union { gid_t gval; long int lval; } val;
8224
8225 val.lval = -1;
8226 for (i = 0; i < NGID; i++)
8227 gidset[i] = val.gval;
8228 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
8229 gidset);
8230 /* Exit non-zero if getgroups seems to require an array of ints. This
8231 happens when gid_t is short int but getgroups modifies an array
8232 of ints. */
8233 return n > 0 && gidset[n] != val.gval;
8234}
8235_ACEOF
8236if ac_fn_c_try_run "$LINENO"; then :
8237 ac_cv_type_getgroups=gid_t
8238else
8239 ac_cv_type_getgroups=int
8240fi
8241rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8242 conftest.$ac_objext conftest.beam conftest.$ac_ext
8243fi
8244
8245if test $ac_cv_type_getgroups = cross; then
8246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8247/* end confdefs.h. */
8248#include <unistd.h>
8249
8250_ACEOF
8251if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8252 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
8253 ac_cv_type_getgroups=gid_t
8254else
8255 ac_cv_type_getgroups=int
8256fi
8257rm -f conftest*
8258
8259fi
8260fi
8261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
8262$as_echo "$ac_cv_type_getgroups" >&6; }
8263
8264cat >>confdefs.h <<_ACEOF
8265#define GETGROUPS_T $ac_cv_type_getgroups
8266_ACEOF
8267
8268
8269ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
8270if test "x$ac_cv_type_mode_t" = xyes; then :
8271
8272else
8273
8274cat >>confdefs.h <<_ACEOF
8275#define mode_t int
8276_ACEOF
8277
8278fi
8279
8280ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
8281if test "x$ac_cv_type_off_t" = xyes; then :
8282
8283else
8284
8285cat >>confdefs.h <<_ACEOF
8286#define off_t long int
8287_ACEOF
8288
8289fi
8290
8291ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8292if test "x$ac_cv_type_pid_t" = xyes; then :
8293
8294else
8295
8296cat >>confdefs.h <<_ACEOF
8297#define pid_t int
8298_ACEOF
8299
8300fi
8301
8302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8303$as_echo_n "checking return type of signal handlers... " >&6; }
8304if ${ac_cv_type_signal+:} false; then :
8305 $as_echo_n "(cached) " >&6
8306else
8307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8308/* end confdefs.h. */
8309#include <sys/types.h>
8310#include <signal.h>
8311
8312int
8313main ()
8314{
8315return *(signal (0, 0)) (0) == 1;
8316 ;
8317 return 0;
8318}
8319_ACEOF
8320if ac_fn_c_try_compile "$LINENO"; then :
8321 ac_cv_type_signal=int
8322else
8323 ac_cv_type_signal=void
8324fi
8325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8326fi
8327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
8328$as_echo "$ac_cv_type_signal" >&6; }
8329
8330cat >>confdefs.h <<_ACEOF
8331#define RETSIGTYPE $ac_cv_type_signal
8332_ACEOF
8333
8334
8335ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8336if test "x$ac_cv_type_size_t" = xyes; then :
8337
8338else
8339
8340cat >>confdefs.h <<_ACEOF
8341#define size_t unsigned int
8342_ACEOF
8343
8344fi
8345
8346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8347$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8348if ${ac_cv_type_uid_t+:} false; then :
8349 $as_echo_n "(cached) " >&6
8350else
8351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8352/* end confdefs.h. */
8353#include <sys/types.h>
8354
8355_ACEOF
8356if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8357 $EGREP "uid_t" >/dev/null 2>&1; then :
8358 ac_cv_type_uid_t=yes
8359else
8360 ac_cv_type_uid_t=no
8361fi
8362rm -f conftest*
8363
8364fi
8365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8366$as_echo "$ac_cv_type_uid_t" >&6; }
8367if test $ac_cv_type_uid_t = no; then
8368
8369$as_echo "#define uid_t int" >>confdefs.h
8370
8371
8372$as_echo "#define gid_t int" >>confdefs.h
8373
8374fi
8375
8376
ce3ec98a
MF
8377ALL_LINGUAS=
8378# If we haven't got the data from the intl directory,
8379# assume NLS is disabled.
8380USE_NLS=no
8381LIBINTL=
8382LIBINTL_DEP=
8383INCINTL=
8384XGETTEXT=
8385GMSGFMT=
8386POSUB=
8387
8388if test -f ../intl/config.intl; then
8389 . ../intl/config.intl
8390fi
8391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8392$as_echo_n "checking whether NLS is requested... " >&6; }
8393if test x"$USE_NLS" != xyes; then
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8395$as_echo "no" >&6; }
8396else
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8398$as_echo "yes" >&6; }
8399
8400$as_echo "#define ENABLE_NLS 1" >>confdefs.h
8401
8402
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
8404$as_echo_n "checking for catalogs to be installed... " >&6; }
8405 # Look for .po and .gmo files in the source directory.
8406 CATALOGS=
8407 XLINGUAS=
8408 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
8409 # If there aren't any .gmo files the shell will give us the
8410 # literal string "../path/to/srcdir/po/*.gmo" which has to be
8411 # weeded out.
8412 case "$cat" in *\**)
8413 continue;;
8414 esac
8415 # The quadruple backslash is collapsed to a double backslash
8416 # by the backticks, then collapsed again by the double quotes,
8417 # leaving us with one backslash in the sed expression (right
8418 # before the dot that mustn't act as a wildcard).
8419 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
8420 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
8421 # The user is allowed to set LINGUAS to a list of languages to
8422 # install catalogs for. If it's empty that means "all of them."
8423 if test "x$LINGUAS" = x; then
8424 CATALOGS="$CATALOGS $cat"
8425 XLINGUAS="$XLINGUAS $lang"
8426 else
8427 case "$LINGUAS" in *$lang*)
8428 CATALOGS="$CATALOGS $cat"
8429 XLINGUAS="$XLINGUAS $lang"
8430 ;;
8431 esac
8432 fi
8433 done
8434 LINGUAS="$XLINGUAS"
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
8436$as_echo "$LINGUAS" >&6; }
8437
8438
8439 DATADIRNAME=share
8440
8441 INSTOBJEXT=.mo
8442
8443 GENCAT=gencat
8444
8445 CATOBJEXT=.gmo
8446
8447fi
8448
b5689863
MF
8449
8450 # Use the system's zlib library.
8451 zlibdir="-L\$(top_builddir)/../zlib"
8452 zlibinc="-I\$(top_srcdir)/../zlib"
8453
8454# Check whether --with-system-zlib was given.
8455if test "${with_system_zlib+set}" = set; then :
8456 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
8457 zlibdir=
8458 zlibinc=
8459 fi
8460
8461fi
8462
8463
8464
8465
8466
8467
8468 maybe_plugins=no
8469 for ac_header in dlfcn.h
8470do :
8471 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8472"
8473if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8474 cat >>confdefs.h <<_ACEOF
8475#define HAVE_DLFCN_H 1
8476_ACEOF
8477 maybe_plugins=yes
8478fi
8479
8480done
8481
8482 for ac_header in windows.h
8483do :
8484 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
8485"
8486if test "x$ac_cv_header_windows_h" = xyes; then :
8487 cat >>confdefs.h <<_ACEOF
8488#define HAVE_WINDOWS_H 1
8489_ACEOF
8490 maybe_plugins=yes
8491fi
8492
8493done
8494
8495
8496 # Check whether --enable-plugins was given.
8497if test "${enable_plugins+set}" = set; then :
8498 enableval=$enable_plugins; case "${enableval}" in
8499 no) plugins=no ;;
8500 *) plugins=yes
8501 if test "$maybe_plugins" != "yes" ; then
8502 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
8503 fi ;;
8504 esac
8505else
8506 plugins=$maybe_plugins
8507
8508fi
8509
8510 if test "$plugins" = "yes"; then
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
8512$as_echo_n "checking for library containing dlsym... " >&6; }
8513if ${ac_cv_search_dlsym+:} false; then :
8514 $as_echo_n "(cached) " >&6
8515else
8516 ac_func_search_save_LIBS=$LIBS
8517cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8518/* end confdefs.h. */
8519
8520/* Override any GCC internal prototype to avoid an error.
8521 Use char because int might match the return type of a GCC
8522 builtin and then its argument prototype would still apply. */
8523#ifdef __cplusplus
8524extern "C"
8525#endif
8526char dlsym ();
8527int
8528main ()
8529{
8530return dlsym ();
8531 ;
8532 return 0;
8533}
8534_ACEOF
8535for ac_lib in '' dl; do
8536 if test -z "$ac_lib"; then
8537 ac_res="none required"
8538 else
8539 ac_res=-l$ac_lib
8540 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8541 fi
8542 if ac_fn_c_try_link "$LINENO"; then :
8543 ac_cv_search_dlsym=$ac_res
8544fi
8545rm -f core conftest.err conftest.$ac_objext \
8546 conftest$ac_exeext
8547 if ${ac_cv_search_dlsym+:} false; then :
8548 break
8549fi
8550done
8551if ${ac_cv_search_dlsym+:} false; then :
8552
8553else
8554 ac_cv_search_dlsym=no
8555fi
8556rm conftest.$ac_ext
8557LIBS=$ac_func_search_save_LIBS
8558fi
8559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
8560$as_echo "$ac_cv_search_dlsym" >&6; }
8561ac_res=$ac_cv_search_dlsym
8562if test "$ac_res" != no; then :
8563 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8564
8565fi
8566
8567 fi
8568
8569 if test "$plugins" = yes; then
8570 PLUGINS_TRUE=
8571 PLUGINS_FALSE='#'
8572else
8573 PLUGINS_TRUE='#'
8574 PLUGINS_FALSE=
8575fi
8576
8577
8578
8579
8580
8581# Set options
8582enable_dlopen=yes
8583
8584
8585
8586
8587 enable_win32_dll=no
8588
8589
8590 # Check whether --enable-shared was given.
8591if test "${enable_shared+set}" = set; then :
8592 enableval=$enable_shared; p=${PACKAGE-default}
8593 case $enableval in
8594 yes) enable_shared=yes ;;
8595 no) enable_shared=no ;;
8596 *)
8597 enable_shared=no
8598 # Look at the argument we got. We use all the common list separators.
8599 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8600 for pkg in $enableval; do
8601 IFS="$lt_save_ifs"
8602 if test "X$pkg" = "X$p"; then
8603 enable_shared=yes
8604 fi
8605 done
8606 IFS="$lt_save_ifs"
8607 ;;
8608 esac
8609else
8610 enable_shared=yes
8611fi
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621 # Check whether --enable-static was given.
8622if test "${enable_static+set}" = set; then :
8623 enableval=$enable_static; p=${PACKAGE-default}
8624 case $enableval in
8625 yes) enable_static=yes ;;
8626 no) enable_static=no ;;
8627 *)
8628 enable_static=no
8629 # Look at the argument we got. We use all the common list separators.
8630 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8631 for pkg in $enableval; do
8632 IFS="$lt_save_ifs"
8633 if test "X$pkg" = "X$p"; then
8634 enable_static=yes
8635 fi
8636 done
8637 IFS="$lt_save_ifs"
8638 ;;
8639 esac
8640else
8641 enable_static=yes
8642fi
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653# Check whether --with-pic was given.
8654if test "${with_pic+set}" = set; then :
8655 withval=$with_pic; pic_mode="$withval"
8656else
8657 pic_mode=default
8658fi
8659
8660
8661test -z "$pic_mode" && pic_mode=default
8662
8663
8664
8665
8666
8667
8668
8669 # Check whether --enable-fast-install was given.
8670if test "${enable_fast_install+set}" = set; then :
8671 enableval=$enable_fast_install; p=${PACKAGE-default}
8672 case $enableval in
8673 yes) enable_fast_install=yes ;;
8674 no) enable_fast_install=no ;;
8675 *)
8676 enable_fast_install=no
8677 # Look at the argument we got. We use all the common list separators.
8678 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8679 for pkg in $enableval; do
8680 IFS="$lt_save_ifs"
8681 if test "X$pkg" = "X$p"; then
8682 enable_fast_install=yes
8683 fi
8684 done
8685 IFS="$lt_save_ifs"
8686 ;;
8687 esac
8688else
8689 enable_fast_install=yes
8690fi
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702# This can be used to rebuild libtool when needed
8703LIBTOOL_DEPS="$ltmain"
8704
8705# Always use our own libtool.
8706LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733test -z "$LN_S" && LN_S="ln -s"
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748if test -n "${ZSH_VERSION+set}" ; then
8749 setopt NO_GLOB_SUBST
8750fi
8751
8752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8753$as_echo_n "checking for objdir... " >&6; }
8754if ${lt_cv_objdir+:} false; then :
8755 $as_echo_n "(cached) " >&6
8756else
8757 rm -f .libs 2>/dev/null
8758mkdir .libs 2>/dev/null
8759if test -d .libs; then
8760 lt_cv_objdir=.libs
8761else
8762 # MS-DOS does not allow filenames that begin with a dot.
8763 lt_cv_objdir=_libs
8764fi
8765rmdir .libs 2>/dev/null
8766fi
8767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8768$as_echo "$lt_cv_objdir" >&6; }
8769objdir=$lt_cv_objdir
8770
8771
8772
8773
8774
8775cat >>confdefs.h <<_ACEOF
8776#define LT_OBJDIR "$lt_cv_objdir/"
8777_ACEOF
8778
8779
8780
8781
8782case $host_os in
8783aix3*)
8784 # AIX sometimes has problems with the GCC collect2 program. For some
8785 # reason, if we set the COLLECT_NAMES environment variable, the problems
8786 # vanish in a puff of smoke.
8787 if test "X${COLLECT_NAMES+set}" != Xset; then
8788 COLLECT_NAMES=
8789 export COLLECT_NAMES
8790 fi
8791 ;;
8792esac
8793
8794# Global variables:
8795ofile=libtool
8796can_build_shared=yes
8797
8798# All known linkers require a `.a' archive for static linking (except MSVC,
8799# which needs '.lib').
8800libext=a
8801
8802with_gnu_ld="$lt_cv_prog_gnu_ld"
8803
8804old_CC="$CC"
8805old_CFLAGS="$CFLAGS"
8806
8807# Set sane defaults for various variables
8808test -z "$CC" && CC=cc
8809test -z "$LTCC" && LTCC=$CC
8810test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8811test -z "$LD" && LD=ld
8812test -z "$ac_objext" && ac_objext=o
8813
8814for cc_temp in $compiler""; do
8815 case $cc_temp in
8816 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8817 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8818 \-*) ;;
8819 *) break;;
8820 esac
8821done
8822cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8823
8824
8825# Only perform the check for file, if the check method requires it
8826test -z "$MAGIC_CMD" && MAGIC_CMD=file
8827case $deplibs_check_method in
8828file_magic*)
8829 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8831$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8832if ${lt_cv_path_MAGIC_CMD+:} false; then :
8833 $as_echo_n "(cached) " >&6
8834else
8835 case $MAGIC_CMD in
8836[\\/*] | ?:[\\/]*)
8837 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8838 ;;
8839*)
8840 lt_save_MAGIC_CMD="$MAGIC_CMD"
8841 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8842 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8843 for ac_dir in $ac_dummy; do
8844 IFS="$lt_save_ifs"
8845 test -z "$ac_dir" && ac_dir=.
8846 if test -f $ac_dir/${ac_tool_prefix}file; then
8847 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8848 if test -n "$file_magic_test_file"; then
8849 case $deplibs_check_method in
8850 "file_magic "*)
8851 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8852 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8853 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8854 $EGREP "$file_magic_regex" > /dev/null; then
8855 :
8856 else
8857 cat <<_LT_EOF 1>&2
8858
8859*** Warning: the command libtool uses to detect shared libraries,
8860*** $file_magic_cmd, produces output that libtool cannot recognize.
8861*** The result is that libtool may fail to recognize shared libraries
8862*** as such. This will affect the creation of libtool libraries that
8863*** depend on shared libraries, but programs linked with such libtool
8864*** libraries will work regardless of this problem. Nevertheless, you
8865*** may want to report the problem to your system manager and/or to
8866*** bug-libtool@gnu.org
8867
8868_LT_EOF
8869 fi ;;
8870 esac
8871 fi
8872 break
8873 fi
8874 done
8875 IFS="$lt_save_ifs"
8876 MAGIC_CMD="$lt_save_MAGIC_CMD"
8877 ;;
8878esac
8879fi
8880
8881MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8882if test -n "$MAGIC_CMD"; then
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8884$as_echo "$MAGIC_CMD" >&6; }
8885else
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8887$as_echo "no" >&6; }
8888fi
8889
8890
8891
8892
8893
8894if test -z "$lt_cv_path_MAGIC_CMD"; then
8895 if test -n "$ac_tool_prefix"; then
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8897$as_echo_n "checking for file... " >&6; }
8898if ${lt_cv_path_MAGIC_CMD+:} false; then :
8899 $as_echo_n "(cached) " >&6
8900else
8901 case $MAGIC_CMD in
8902[\\/*] | ?:[\\/]*)
8903 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8904 ;;
8905*)
8906 lt_save_MAGIC_CMD="$MAGIC_CMD"
8907 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8908 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8909 for ac_dir in $ac_dummy; do
8910 IFS="$lt_save_ifs"
8911 test -z "$ac_dir" && ac_dir=.
8912 if test -f $ac_dir/file; then
8913 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8914 if test -n "$file_magic_test_file"; then
8915 case $deplibs_check_method in
8916 "file_magic "*)
8917 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8918 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8919 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8920 $EGREP "$file_magic_regex" > /dev/null; then
8921 :
8922 else
8923 cat <<_LT_EOF 1>&2
8924
8925*** Warning: the command libtool uses to detect shared libraries,
8926*** $file_magic_cmd, produces output that libtool cannot recognize.
8927*** The result is that libtool may fail to recognize shared libraries
8928*** as such. This will affect the creation of libtool libraries that
8929*** depend on shared libraries, but programs linked with such libtool
8930*** libraries will work regardless of this problem. Nevertheless, you
8931*** may want to report the problem to your system manager and/or to
8932*** bug-libtool@gnu.org
8933
8934_LT_EOF
8935 fi ;;
8936 esac
8937 fi
8938 break
8939 fi
8940 done
8941 IFS="$lt_save_ifs"
8942 MAGIC_CMD="$lt_save_MAGIC_CMD"
8943 ;;
8944esac
8945fi
8946
8947MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8948if test -n "$MAGIC_CMD"; then
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8950$as_echo "$MAGIC_CMD" >&6; }
8951else
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8953$as_echo "no" >&6; }
8954fi
8955
8956
8957 else
8958 MAGIC_CMD=:
8959 fi
8960fi
8961
8962 fi
8963 ;;
8964esac
8965
8966# Use C for the default configuration in the libtool script
8967
8968lt_save_CC="$CC"
8969ac_ext=c
8970ac_cpp='$CPP $CPPFLAGS'
8971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8973ac_compiler_gnu=$ac_cv_c_compiler_gnu
8974
8975
8976# Source file extension for C test sources.
8977ac_ext=c
8978
8979# Object file extension for compiled C test sources.
8980objext=o
8981objext=$objext
8982
8983# Code to be used in simple compile tests
8984lt_simple_compile_test_code="int some_variable = 0;"
8985
8986# Code to be used in simple link tests
8987lt_simple_link_test_code='int main(){return(0);}'
8988
8989
8990
8991
8992
8993
8994
8995# If no C compiler was specified, use CC.
8996LTCC=${LTCC-"$CC"}
8997
8998# If no C compiler flags were specified, use CFLAGS.
8999LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9000
9001# Allow CC to be a program name with arguments.
9002compiler=$CC
9003
9004# Save the default compiler, since it gets overwritten when the other
9005# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9006compiler_DEFAULT=$CC
9007
9008# save warnings/boilerplate of simple test code
9009ac_outfile=conftest.$ac_objext
9010echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9011eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9012_lt_compiler_boilerplate=`cat conftest.err`
9013$RM conftest*
9014
9015ac_outfile=conftest.$ac_objext
9016echo "$lt_simple_link_test_code" >conftest.$ac_ext
9017eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9018_lt_linker_boilerplate=`cat conftest.err`
9019$RM -r conftest*
9020
9021
9022## CAVEAT EMPTOR:
9023## There is no encapsulation within the following macros, do not change
9024## the running order or otherwise move them around unless you know exactly
9025## what you are doing...
9026if test -n "$compiler"; then
9027
9028lt_prog_compiler_no_builtin_flag=
9029
9030if test "$GCC" = yes; then
9031 case $cc_basename in
9032 nvcc*)
9033 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9034 *)
9035 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9036 esac
9037
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9039$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9040if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9041 $as_echo_n "(cached) " >&6
9042else
9043 lt_cv_prog_compiler_rtti_exceptions=no
9044 ac_outfile=conftest.$ac_objext
9045 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9046 lt_compiler_flag="-fno-rtti -fno-exceptions"
9047 # Insert the option either (1) after the last *FLAGS variable, or
9048 # (2) before a word containing "conftest.", or (3) at the end.
9049 # Note that $ac_compile itself does not contain backslashes and begins
9050 # with a dollar sign (not a hyphen), so the echo should work correctly.
9051 # The option is referenced via a variable to avoid confusing sed.
9052 lt_compile=`echo "$ac_compile" | $SED \
9053 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9054 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9055 -e 's:$: $lt_compiler_flag:'`
9056 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9057 (eval "$lt_compile" 2>conftest.err)
9058 ac_status=$?
9059 cat conftest.err >&5
9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 if (exit $ac_status) && test -s "$ac_outfile"; then
9062 # The compiler can only warn and ignore the option if not recognized
9063 # So say no if there are warnings other than the usual output.
9064 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9065 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9066 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9067 lt_cv_prog_compiler_rtti_exceptions=yes
9068 fi
9069 fi
9070 $RM conftest*
9071
9072fi
9073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9074$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9075
9076if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9077 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9078else
9079 :
9080fi
9081
9082fi
9083
9084
9085
9086
9087
9088
9089 lt_prog_compiler_wl=
9090lt_prog_compiler_pic=
9091lt_prog_compiler_static=
9092
9093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9094$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9095
9096 if test "$GCC" = yes; then
9097 lt_prog_compiler_wl='-Wl,'
9098 lt_prog_compiler_static='-static'
9099
9100 case $host_os in
9101 aix*)
9102 # All AIX code is PIC.
9103 if test "$host_cpu" = ia64; then
9104 # AIX 5 now supports IA64 processor
9105 lt_prog_compiler_static='-Bstatic'
9106 fi
9107 lt_prog_compiler_pic='-fPIC'
9108 ;;
9109
9110 amigaos*)
9111 case $host_cpu in
9112 powerpc)
9113 # see comment about AmigaOS4 .so support
9114 lt_prog_compiler_pic='-fPIC'
9115 ;;
9116 m68k)
9117 # FIXME: we need at least 68020 code to build shared libraries, but
9118 # adding the `-m68020' flag to GCC prevents building anything better,
9119 # like `-m68040'.
9120 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9121 ;;
9122 esac
9123 ;;
9124
9125 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9126 # PIC is the default for these OSes.
9127 ;;
9128
9129 mingw* | cygwin* | pw32* | os2* | cegcc*)
9130 # This hack is so that the source file can tell whether it is being
9131 # built for inclusion in a dll (and should export symbols for example).
9132 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9133 # (--disable-auto-import) libraries
9134 lt_prog_compiler_pic='-DDLL_EXPORT'
9135 ;;
9136
9137 darwin* | rhapsody*)
9138 # PIC is the default on this platform
9139 # Common symbols not allowed in MH_DYLIB files
9140 lt_prog_compiler_pic='-fno-common'
9141 ;;
9142
9143 haiku*)
9144 # PIC is the default for Haiku.
9145 # The "-static" flag exists, but is broken.
9146 lt_prog_compiler_static=
9147 ;;
9148
9149 hpux*)
9150 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9151 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9152 # sets the default TLS model and affects inlining.
9153 case $host_cpu in
9154 hppa*64*)
9155 # +Z the default
9156 ;;
9157 *)
9158 lt_prog_compiler_pic='-fPIC'
9159 ;;
9160 esac
9161 ;;
9162
9163 interix[3-9]*)
9164 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9165 # Instead, we relocate shared libraries at runtime.
9166 ;;
9167
9168 msdosdjgpp*)
9169 # Just because we use GCC doesn't mean we suddenly get shared libraries
9170 # on systems that don't support them.
9171 lt_prog_compiler_can_build_shared=no
9172 enable_shared=no
9173 ;;
9174
9175 *nto* | *qnx*)
9176 # QNX uses GNU C++, but need to define -shared option too, otherwise
9177 # it will coredump.
9178 lt_prog_compiler_pic='-fPIC -shared'
9179 ;;
9180
9181 sysv4*MP*)
9182 if test -d /usr/nec; then
9183 lt_prog_compiler_pic=-Kconform_pic
9184 fi
9185 ;;
9186
9187 *)
9188 lt_prog_compiler_pic='-fPIC'
9189 ;;
9190 esac
9191
9192 case $cc_basename in
9193 nvcc*) # Cuda Compiler Driver 2.2
9194 lt_prog_compiler_wl='-Xlinker '
9195 lt_prog_compiler_pic='-Xcompiler -fPIC'
9196 ;;
9197 esac
9198 else
9199 # PORTME Check for flag to pass linker flags through the system compiler.
9200 case $host_os in
9201 aix*)
9202 lt_prog_compiler_wl='-Wl,'
9203 if test "$host_cpu" = ia64; then
9204 # AIX 5 now supports IA64 processor
9205 lt_prog_compiler_static='-Bstatic'
9206 else
9207 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9208 fi
9209 ;;
9210
9211 mingw* | cygwin* | pw32* | os2* | cegcc*)
9212 # This hack is so that the source file can tell whether it is being
9213 # built for inclusion in a dll (and should export symbols for example).
9214 lt_prog_compiler_pic='-DDLL_EXPORT'
9215 ;;
9216
9217 hpux9* | hpux10* | hpux11*)
9218 lt_prog_compiler_wl='-Wl,'
9219 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9220 # not for PA HP-UX.
9221 case $host_cpu in
9222 hppa*64*|ia64*)
9223 # +Z the default
9224 ;;
9225 *)
9226 lt_prog_compiler_pic='+Z'
9227 ;;
9228 esac
9229 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9230 lt_prog_compiler_static='${wl}-a ${wl}archive'
9231 ;;
9232
9233 irix5* | irix6* | nonstopux*)
9234 lt_prog_compiler_wl='-Wl,'
9235 # PIC (with -KPIC) is the default.
9236 lt_prog_compiler_static='-non_shared'
9237 ;;
9238
9239 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9240 case $cc_basename in
9241 # old Intel for x86_64 which still supported -KPIC.
9242 ecc*)
9243 lt_prog_compiler_wl='-Wl,'
9244 lt_prog_compiler_pic='-KPIC'
9245 lt_prog_compiler_static='-static'
9246 ;;
9247 # icc used to be incompatible with GCC.
9248 # ICC 10 doesn't accept -KPIC any more.
9249 icc* | ifort*)
9250 lt_prog_compiler_wl='-Wl,'
9251 lt_prog_compiler_pic='-fPIC'
9252 lt_prog_compiler_static='-static'
9253 ;;
9254 # Lahey Fortran 8.1.
9255 lf95*)
9256 lt_prog_compiler_wl='-Wl,'
9257 lt_prog_compiler_pic='--shared'
9258 lt_prog_compiler_static='--static'
9259 ;;
9260 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9261 # Portland Group compilers (*not* the Pentium gcc compiler,
9262 # which looks to be a dead project)
9263 lt_prog_compiler_wl='-Wl,'
9264 lt_prog_compiler_pic='-fpic'
9265 lt_prog_compiler_static='-Bstatic'
9266 ;;
9267 ccc*)
9268 lt_prog_compiler_wl='-Wl,'
9269 # All Alpha code is PIC.
9270 lt_prog_compiler_static='-non_shared'
9271 ;;
9272 xl* | bgxl* | bgf* | mpixl*)
9273 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9274 lt_prog_compiler_wl='-Wl,'
9275 lt_prog_compiler_pic='-qpic'
9276 lt_prog_compiler_static='-qstaticlink'
9277 ;;
9278 *)
9279 case `$CC -V 2>&1 | sed 5q` in
9280 *Sun\ F* | *Sun*Fortran*)
9281 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9282 lt_prog_compiler_pic='-KPIC'
9283 lt_prog_compiler_static='-Bstatic'
9284 lt_prog_compiler_wl=''
9285 ;;
9286 *Sun\ C*)
9287 # Sun C 5.9
9288 lt_prog_compiler_pic='-KPIC'
9289 lt_prog_compiler_static='-Bstatic'
9290 lt_prog_compiler_wl='-Wl,'
9291 ;;
9292 esac
9293 ;;
9294 esac
9295 ;;
9296
9297 newsos6)
9298 lt_prog_compiler_pic='-KPIC'
9299 lt_prog_compiler_static='-Bstatic'
9300 ;;
9301
9302 *nto* | *qnx*)
9303 # QNX uses GNU C++, but need to define -shared option too, otherwise
9304 # it will coredump.
9305 lt_prog_compiler_pic='-fPIC -shared'
9306 ;;
9307
9308 osf3* | osf4* | osf5*)
9309 lt_prog_compiler_wl='-Wl,'
9310 # All OSF/1 code is PIC.
9311 lt_prog_compiler_static='-non_shared'
9312 ;;
9313
9314 rdos*)
9315 lt_prog_compiler_static='-non_shared'
9316 ;;
9317
9318 solaris*)
9319 lt_prog_compiler_pic='-KPIC'
9320 lt_prog_compiler_static='-Bstatic'
9321 case $cc_basename in
9322 f77* | f90* | f95*)
9323 lt_prog_compiler_wl='-Qoption ld ';;
9324 *)
9325 lt_prog_compiler_wl='-Wl,';;
9326 esac
9327 ;;
9328
9329 sunos4*)
9330 lt_prog_compiler_wl='-Qoption ld '
9331 lt_prog_compiler_pic='-PIC'
9332 lt_prog_compiler_static='-Bstatic'
9333 ;;
9334
9335 sysv4 | sysv4.2uw2* | sysv4.3*)
9336 lt_prog_compiler_wl='-Wl,'
9337 lt_prog_compiler_pic='-KPIC'
9338 lt_prog_compiler_static='-Bstatic'
9339 ;;
9340
9341 sysv4*MP*)
9342 if test -d /usr/nec ;then
9343 lt_prog_compiler_pic='-Kconform_pic'
9344 lt_prog_compiler_static='-Bstatic'
9345 fi
9346 ;;
9347
9348 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9349 lt_prog_compiler_wl='-Wl,'
9350 lt_prog_compiler_pic='-KPIC'
9351 lt_prog_compiler_static='-Bstatic'
9352 ;;
9353
9354 unicos*)
9355 lt_prog_compiler_wl='-Wl,'
9356 lt_prog_compiler_can_build_shared=no
9357 ;;
9358
9359 uts4*)
9360 lt_prog_compiler_pic='-pic'
9361 lt_prog_compiler_static='-Bstatic'
9362 ;;
9363
9364 *)
9365 lt_prog_compiler_can_build_shared=no
9366 ;;
9367 esac
9368 fi
9369
9370case $host_os in
9371 # For platforms which do not support PIC, -DPIC is meaningless:
9372 *djgpp*)
9373 lt_prog_compiler_pic=
9374 ;;
9375 *)
9376 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9377 ;;
9378esac
9379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9380$as_echo "$lt_prog_compiler_pic" >&6; }
9381
9382
9383
9384
9385
9386
9387#
9388# Check to make sure the PIC flag actually works.
9389#
9390if test -n "$lt_prog_compiler_pic"; then
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9392$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9393if ${lt_cv_prog_compiler_pic_works+:} false; then :
9394 $as_echo_n "(cached) " >&6
9395else
9396 lt_cv_prog_compiler_pic_works=no
9397 ac_outfile=conftest.$ac_objext
9398 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9399 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9400 # Insert the option either (1) after the last *FLAGS variable, or
9401 # (2) before a word containing "conftest.", or (3) at the end.
9402 # Note that $ac_compile itself does not contain backslashes and begins
9403 # with a dollar sign (not a hyphen), so the echo should work correctly.
9404 # The option is referenced via a variable to avoid confusing sed.
9405 lt_compile=`echo "$ac_compile" | $SED \
9406 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9407 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9408 -e 's:$: $lt_compiler_flag:'`
9409 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9410 (eval "$lt_compile" 2>conftest.err)
9411 ac_status=$?
9412 cat conftest.err >&5
9413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414 if (exit $ac_status) && test -s "$ac_outfile"; then
9415 # The compiler can only warn and ignore the option if not recognized
9416 # So say no if there are warnings other than the usual output.
9417 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9418 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9419 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9420 lt_cv_prog_compiler_pic_works=yes
9421 fi
9422 fi
9423 $RM conftest*
9424
9425fi
9426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9427$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9428
9429if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9430 case $lt_prog_compiler_pic in
9431 "" | " "*) ;;
9432 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9433 esac
9434else
9435 lt_prog_compiler_pic=
9436 lt_prog_compiler_can_build_shared=no
9437fi
9438
9439fi
9440
9441
9442
9443
9444
9445
9446#
9447# Check to make sure the static flag actually works.
9448#
9449wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9451$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9452if ${lt_cv_prog_compiler_static_works+:} false; then :
9453 $as_echo_n "(cached) " >&6
9454else
9455 lt_cv_prog_compiler_static_works=no
9456 save_LDFLAGS="$LDFLAGS"
9457 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9458 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9459 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9460 # The linker can only warn and ignore the option if not recognized
9461 # So say no if there are warnings
9462 if test -s conftest.err; then
9463 # Append any errors to the config.log.
9464 cat conftest.err 1>&5
9465 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9466 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9467 if diff conftest.exp conftest.er2 >/dev/null; then
9468 lt_cv_prog_compiler_static_works=yes
9469 fi
9470 else
9471 lt_cv_prog_compiler_static_works=yes
9472 fi
9473 fi
9474 $RM -r conftest*
9475 LDFLAGS="$save_LDFLAGS"
9476
9477fi
9478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9479$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9480
9481if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9482 :
9483else
9484 lt_prog_compiler_static=
9485fi
9486
9487
9488
9489
9490
9491
9492
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9494$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9495if ${lt_cv_prog_compiler_c_o+:} false; then :
9496 $as_echo_n "(cached) " >&6
9497else
9498 lt_cv_prog_compiler_c_o=no
9499 $RM -r conftest 2>/dev/null
9500 mkdir conftest
9501 cd conftest
9502 mkdir out
9503 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9504
9505 lt_compiler_flag="-o out/conftest2.$ac_objext"
9506 # Insert the option either (1) after the last *FLAGS variable, or
9507 # (2) before a word containing "conftest.", or (3) at the end.
9508 # Note that $ac_compile itself does not contain backslashes and begins
9509 # with a dollar sign (not a hyphen), so the echo should work correctly.
9510 lt_compile=`echo "$ac_compile" | $SED \
9511 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9512 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9513 -e 's:$: $lt_compiler_flag:'`
9514 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9515 (eval "$lt_compile" 2>out/conftest.err)
9516 ac_status=$?
9517 cat out/conftest.err >&5
9518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9520 then
9521 # The compiler can only warn and ignore the option if not recognized
9522 # So say no if there are warnings
9523 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9524 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9525 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9526 lt_cv_prog_compiler_c_o=yes
9527 fi
9528 fi
9529 chmod u+w . 2>&5
9530 $RM conftest*
9531 # SGI C++ compiler will create directory out/ii_files/ for
9532 # template instantiation
9533 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9534 $RM out/* && rmdir out
9535 cd ..
9536 $RM -r conftest
9537 $RM conftest*
9538
9539fi
9540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9541$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9542
9543
9544
9545
9546
9547
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9549$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9550if ${lt_cv_prog_compiler_c_o+:} false; then :
9551 $as_echo_n "(cached) " >&6
9552else
9553 lt_cv_prog_compiler_c_o=no
9554 $RM -r conftest 2>/dev/null
9555 mkdir conftest
9556 cd conftest
9557 mkdir out
9558 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9559
9560 lt_compiler_flag="-o out/conftest2.$ac_objext"
9561 # Insert the option either (1) after the last *FLAGS variable, or
9562 # (2) before a word containing "conftest.", or (3) at the end.
9563 # Note that $ac_compile itself does not contain backslashes and begins
9564 # with a dollar sign (not a hyphen), so the echo should work correctly.
9565 lt_compile=`echo "$ac_compile" | $SED \
9566 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9567 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9568 -e 's:$: $lt_compiler_flag:'`
9569 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9570 (eval "$lt_compile" 2>out/conftest.err)
9571 ac_status=$?
9572 cat out/conftest.err >&5
9573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9575 then
9576 # The compiler can only warn and ignore the option if not recognized
9577 # So say no if there are warnings
9578 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9579 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9580 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9581 lt_cv_prog_compiler_c_o=yes
9582 fi
9583 fi
9584 chmod u+w . 2>&5
9585 $RM conftest*
9586 # SGI C++ compiler will create directory out/ii_files/ for
9587 # template instantiation
9588 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9589 $RM out/* && rmdir out
9590 cd ..
9591 $RM -r conftest
9592 $RM conftest*
9593
9594fi
9595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9596$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9597
9598
9599
9600
9601hard_links="nottested"
9602if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9603 # do not overwrite the value of need_locks provided by the user
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9605$as_echo_n "checking if we can lock with hard links... " >&6; }
9606 hard_links=yes
9607 $RM conftest*
9608 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9609 touch conftest.a
9610 ln conftest.a conftest.b 2>&5 || hard_links=no
9611 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9613$as_echo "$hard_links" >&6; }
9614 if test "$hard_links" = no; then
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9616$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9617 need_locks=warn
9618 fi
9619else
9620 need_locks=no
9621fi
9622
9623
9624
9625
9626
9627
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9629$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9630
9631 runpath_var=
9632 allow_undefined_flag=
9633 always_export_symbols=no
9634 archive_cmds=
9635 archive_expsym_cmds=
9636 compiler_needs_object=no
9637 enable_shared_with_static_runtimes=no
9638 export_dynamic_flag_spec=
9639 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9640 hardcode_automatic=no
9641 hardcode_direct=no
9642 hardcode_direct_absolute=no
9643 hardcode_libdir_flag_spec=
9644 hardcode_libdir_flag_spec_ld=
9645 hardcode_libdir_separator=
9646 hardcode_minus_L=no
9647 hardcode_shlibpath_var=unsupported
9648 inherit_rpath=no
9649 link_all_deplibs=unknown
9650 module_cmds=
9651 module_expsym_cmds=
9652 old_archive_from_new_cmds=
9653 old_archive_from_expsyms_cmds=
9654 thread_safe_flag_spec=
9655 whole_archive_flag_spec=
9656 # include_expsyms should be a list of space-separated symbols to be *always*
9657 # included in the symbol list
9658 include_expsyms=
9659 # exclude_expsyms can be an extended regexp of symbols to exclude
9660 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9661 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9662 # as well as any symbol that contains `d'.
9663 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9664 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9665 # platforms (ab)use it in PIC code, but their linkers get confused if
9666 # the symbol is explicitly referenced. Since portable code cannot
9667 # rely on this symbol name, it's probably fine to never include it in
9668 # preloaded symbol tables.
9669 # Exclude shared library initialization/finalization symbols.
9670 extract_expsyms_cmds=
9671
9672 case $host_os in
9673 cygwin* | mingw* | pw32* | cegcc*)
9674 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9675 # When not using gcc, we currently assume that we are using
9676 # Microsoft Visual C++.
9677 if test "$GCC" != yes; then
9678 with_gnu_ld=no
9679 fi
9680 ;;
9681 interix*)
9682 # we just hope/assume this is gcc and not c89 (= MSVC++)
9683 with_gnu_ld=yes
9684 ;;
9685 openbsd*)
9686 with_gnu_ld=no
9687 ;;
9688 esac
9689
9690 ld_shlibs=yes
9691
9692 # On some targets, GNU ld is compatible enough with the native linker
9693 # that we're better off using the native interface for both.
9694 lt_use_gnu_ld_interface=no
9695 if test "$with_gnu_ld" = yes; then
9696 case $host_os in
9697 aix*)
9698 # The AIX port of GNU ld has always aspired to compatibility
9699 # with the native linker. However, as the warning in the GNU ld
9700 # block says, versions before 2.19.5* couldn't really create working
9701 # shared libraries, regardless of the interface used.
9702 case `$LD -v 2>&1` in
9703 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9704 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9705 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9706 *)
9707 lt_use_gnu_ld_interface=yes
9708 ;;
9709 esac
9710 ;;
9711 *)
9712 lt_use_gnu_ld_interface=yes
9713 ;;
9714 esac
9715 fi
9716
9717 if test "$lt_use_gnu_ld_interface" = yes; then
9718 # If archive_cmds runs LD, not CC, wlarc should be empty
9719 wlarc='${wl}'
9720
9721 # Set some defaults for GNU ld with shared library support. These
9722 # are reset later if shared libraries are not supported. Putting them
9723 # here allows them to be overridden if necessary.
9724 runpath_var=LD_RUN_PATH
9725 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9726 export_dynamic_flag_spec='${wl}--export-dynamic'
9727 # ancient GNU ld didn't support --whole-archive et. al.
9728 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9729 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9730 else
9731 whole_archive_flag_spec=
9732 fi
9733 supports_anon_versioning=no
9734 case `$LD -v 2>&1` in
9735 *GNU\ gold*) supports_anon_versioning=yes ;;
9736 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9737 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9738 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9739 *\ 2.11.*) ;; # other 2.11 versions
9740 *) supports_anon_versioning=yes ;;
9741 esac
9742
9743 # See if GNU ld supports shared libraries.
9744 case $host_os in
9745 aix[3-9]*)
9746 # On AIX/PPC, the GNU linker is very broken
9747 if test "$host_cpu" != ia64; then
9748 ld_shlibs=no
9749 cat <<_LT_EOF 1>&2
9750
9751*** Warning: the GNU linker, at least up to release 2.19, is reported
9752*** to be unable to reliably create shared libraries on AIX.
9753*** Therefore, libtool is disabling shared libraries support. If you
9754*** really care for shared libraries, you may want to install binutils
9755*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9756*** You will then need to restart the configuration process.
9757
9758_LT_EOF
9759 fi
9760 ;;
9761
9762 amigaos*)
9763 case $host_cpu in
9764 powerpc)
9765 # see comment about AmigaOS4 .so support
9766 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9767 archive_expsym_cmds=''
9768 ;;
9769 m68k)
9770 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)'
9771 hardcode_libdir_flag_spec='-L$libdir'
9772 hardcode_minus_L=yes
9773 ;;
9774 esac
9775 ;;
9776
9777 beos*)
9778 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9779 allow_undefined_flag=unsupported
9780 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9781 # support --undefined. This deserves some investigation. FIXME
9782 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9783 else
9784 ld_shlibs=no
9785 fi
9786 ;;
9787
9788 cygwin* | mingw* | pw32* | cegcc*)
9789 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9790 # as there is no search path for DLLs.
9791 hardcode_libdir_flag_spec='-L$libdir'
9792 export_dynamic_flag_spec='${wl}--export-all-symbols'
9793 allow_undefined_flag=unsupported
9794 always_export_symbols=no
9795 enable_shared_with_static_runtimes=yes
9796 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9797
9798 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9799 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9800 # If the export-symbols file already is a .def file (1st line
9801 # is EXPORTS), use it as is; otherwise, prepend...
9802 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9803 cp $export_symbols $output_objdir/$soname.def;
9804 else
9805 echo EXPORTS > $output_objdir/$soname.def;
9806 cat $export_symbols >> $output_objdir/$soname.def;
9807 fi~
9808 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9809 else
9810 ld_shlibs=no
9811 fi
9812 ;;
9813
9814 haiku*)
9815 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9816 link_all_deplibs=yes
9817 ;;
9818
9819 interix[3-9]*)
9820 hardcode_direct=no
9821 hardcode_shlibpath_var=no
9822 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9823 export_dynamic_flag_spec='${wl}-E'
9824 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9825 # Instead, shared libraries are loaded at an image base (0x10000000 by
9826 # default) and relocated if they conflict, which is a slow very memory
9827 # consuming and fragmenting process. To avoid this, we pick a random,
9828 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9829 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9830 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9831 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'
9832 ;;
9833
9834 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9835 tmp_diet=no
9836 if test "$host_os" = linux-dietlibc; then
9837 case $cc_basename in
9838 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9839 esac
9840 fi
9841 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9842 && test "$tmp_diet" = no
9843 then
9844 tmp_addflag=' $pic_flag'
9845 tmp_sharedflag='-shared'
9846 case $cc_basename,$host_cpu in
9847 pgcc*) # Portland Group C compiler
9848 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'
9849 tmp_addflag=' $pic_flag'
9850 ;;
9851 pgf77* | pgf90* | pgf95* | pgfortran*)
9852 # Portland Group f77 and f90 compilers
9853 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'
9854 tmp_addflag=' $pic_flag -Mnomain' ;;
9855 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9856 tmp_addflag=' -i_dynamic' ;;
9857 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9858 tmp_addflag=' -i_dynamic -nofor_main' ;;
9859 ifc* | ifort*) # Intel Fortran compiler
9860 tmp_addflag=' -nofor_main' ;;
9861 lf95*) # Lahey Fortran 8.1
9862 whole_archive_flag_spec=
9863 tmp_sharedflag='--shared' ;;
9864 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9865 tmp_sharedflag='-qmkshrobj'
9866 tmp_addflag= ;;
9867 nvcc*) # Cuda Compiler Driver 2.2
9868 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'
9869 compiler_needs_object=yes
9870 ;;
9871 esac
9872 case `$CC -V 2>&1 | sed 5q` in
9873 *Sun\ C*) # Sun C 5.9
9874 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'
9875 compiler_needs_object=yes
9876 tmp_sharedflag='-G' ;;
9877 *Sun\ F*) # Sun Fortran 8.3
9878 tmp_sharedflag='-G' ;;
9879 esac
9880 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9881
9882 if test "x$supports_anon_versioning" = xyes; then
9883 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9884 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9885 echo "local: *; };" >> $output_objdir/$libname.ver~
9886 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9887 fi
9888
9889 case $cc_basename in
9890 xlf* | bgf* | bgxlf* | mpixlf*)
9891 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9892 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9893 hardcode_libdir_flag_spec=
9894 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9895 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9896 if test "x$supports_anon_versioning" = xyes; then
9897 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9898 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9899 echo "local: *; };" >> $output_objdir/$libname.ver~
9900 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9901 fi
9902 ;;
9903 esac
9904 else
9905 ld_shlibs=no
9906 fi
9907 ;;
9908
9909 netbsd*)
9910 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9911 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9912 wlarc=
9913 else
9914 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9915 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9916 fi
9917 ;;
9918
9919 solaris*)
9920 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9921 ld_shlibs=no
9922 cat <<_LT_EOF 1>&2
9923
9924*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9925*** create shared libraries on Solaris systems. Therefore, libtool
9926*** is disabling shared libraries support. We urge you to upgrade GNU
9927*** binutils to release 2.9.1 or newer. Another option is to modify
9928*** your PATH or compiler configuration so that the native linker is
9929*** used, and then restart.
9930
9931_LT_EOF
9932 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9933 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9934 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9935 else
9936 ld_shlibs=no
9937 fi
9938 ;;
9939
9940 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9941 case `$LD -v 2>&1` in
9942 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9943 ld_shlibs=no
9944 cat <<_LT_EOF 1>&2
9945
9946*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9947*** reliably create shared libraries on SCO systems. Therefore, libtool
9948*** is disabling shared libraries support. We urge you to upgrade GNU
9949*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9950*** your PATH or compiler configuration so that the native linker is
9951*** used, and then restart.
9952
9953_LT_EOF
9954 ;;
9955 *)
9956 # For security reasons, it is highly recommended that you always
9957 # use absolute paths for naming shared libraries, and exclude the
9958 # DT_RUNPATH tag from executables and libraries. But doing so
9959 # requires that you compile everything twice, which is a pain.
9960 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9961 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9962 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9963 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9964 else
9965 ld_shlibs=no
9966 fi
9967 ;;
9968 esac
9969 ;;
9970
9971 sunos4*)
9972 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9973 wlarc=
9974 hardcode_direct=yes
9975 hardcode_shlibpath_var=no
9976 ;;
9977
9978 *)
9979 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9980 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9981 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9982 else
9983 ld_shlibs=no
9984 fi
9985 ;;
9986 esac
9987
9988 if test "$ld_shlibs" = no; then
9989 runpath_var=
9990 hardcode_libdir_flag_spec=
9991 export_dynamic_flag_spec=
9992 whole_archive_flag_spec=
9993 fi
9994 else
9995 # PORTME fill in a description of your system's linker (not GNU ld)
9996 case $host_os in
9997 aix3*)
9998 allow_undefined_flag=unsupported
9999 always_export_symbols=yes
10000 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'
10001 # Note: this linker hardcodes the directories in LIBPATH if there
10002 # are no directories specified by -L.
10003 hardcode_minus_L=yes
10004 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10005 # Neither direct hardcoding nor static linking is supported with a
10006 # broken collect2.
10007 hardcode_direct=unsupported
10008 fi
10009 ;;
10010
10011 aix[4-9]*)
10012 if test "$host_cpu" = ia64; then
10013 # On IA64, the linker does run time linking by default, so we don't
10014 # have to do anything special.
10015 aix_use_runtimelinking=no
10016 exp_sym_flag='-Bexport'
10017 no_entry_flag=""
10018 else
10019 # If we're using GNU nm, then we don't want the "-C" option.
10020 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10021 # Also, AIX nm treats weak defined symbols like other global
10022 # defined symbols, whereas GNU nm marks them as "W".
10023 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10024 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'
10025 else
10026 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'
10027 fi
10028 aix_use_runtimelinking=no
10029
10030 # Test if we are trying to use run time linking or normal
10031 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10032 # need to do runtime linking.
10033 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10034 for ld_flag in $LDFLAGS; do
10035 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10036 aix_use_runtimelinking=yes
10037 break
10038 fi
10039 done
10040 ;;
10041 esac
10042
10043 exp_sym_flag='-bexport'
10044 no_entry_flag='-bnoentry'
10045 fi
10046
10047 # When large executables or shared objects are built, AIX ld can
10048 # have problems creating the table of contents. If linking a library
10049 # or program results in "error TOC overflow" add -mminimal-toc to
10050 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10051 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10052
10053 archive_cmds=''
10054 hardcode_direct=yes
10055 hardcode_direct_absolute=yes
10056 hardcode_libdir_separator=':'
10057 link_all_deplibs=yes
10058 file_list_spec='${wl}-f,'
10059
10060 if test "$GCC" = yes; then
10061 case $host_os in aix4.[012]|aix4.[012].*)
10062 # We only want to do this on AIX 4.2 and lower, the check
10063 # below for broken collect2 doesn't work under 4.3+
10064 collect2name=`${CC} -print-prog-name=collect2`
10065 if test -f "$collect2name" &&
10066 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10067 then
10068 # We have reworked collect2
10069 :
10070 else
10071 # We have old collect2
10072 hardcode_direct=unsupported
10073 # It fails to find uninstalled libraries when the uninstalled
10074 # path is not listed in the libpath. Setting hardcode_minus_L
10075 # to unsupported forces relinking
10076 hardcode_minus_L=yes
10077 hardcode_libdir_flag_spec='-L$libdir'
10078 hardcode_libdir_separator=
10079 fi
10080 ;;
10081 esac
10082 shared_flag='-shared'
10083 if test "$aix_use_runtimelinking" = yes; then
10084 shared_flag="$shared_flag "'${wl}-G'
10085 fi
10086 else
10087 # not using gcc
10088 if test "$host_cpu" = ia64; then
10089 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10090 # chokes on -Wl,-G. The following line is correct:
10091 shared_flag='-G'
10092 else
10093 if test "$aix_use_runtimelinking" = yes; then
10094 shared_flag='${wl}-G'
10095 else
10096 shared_flag='${wl}-bM:SRE'
10097 fi
10098 fi
10099 fi
10100
10101 export_dynamic_flag_spec='${wl}-bexpall'
10102 # It seems that -bexpall does not export symbols beginning with
10103 # underscore (_), so it is better to generate a list of symbols to export.
10104 always_export_symbols=yes
10105 if test "$aix_use_runtimelinking" = yes; then
10106 # Warning - without using the other runtime loading flags (-brtl),
10107 # -berok will link without error, but may produce a broken library.
10108 allow_undefined_flag='-berok'
10109 # Determine the default libpath from the value encoded in an
10110 # empty executable.
10111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10112/* end confdefs.h. */
10113
10114int
10115main ()
10116{
10117
10118 ;
10119 return 0;
10120}
10121_ACEOF
10122if ac_fn_c_try_link "$LINENO"; then :
10123
10124lt_aix_libpath_sed='
10125 /Import File Strings/,/^$/ {
10126 /^0/ {
10127 s/^0 *\(.*\)$/\1/
10128 p
10129 }
10130 }'
10131aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10132# Check for a 64-bit object if we didn't find anything.
10133if test -z "$aix_libpath"; then
10134 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10135fi
10136fi
10137rm -f core conftest.err conftest.$ac_objext \
10138 conftest$ac_exeext conftest.$ac_ext
10139if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10140
10141 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10142 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"
10143 else
10144 if test "$host_cpu" = ia64; then
10145 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10146 allow_undefined_flag="-z nodefs"
10147 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"
10148 else
10149 # Determine the default libpath from the value encoded in an
10150 # empty executable.
10151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10152/* end confdefs.h. */
10153
10154int
10155main ()
10156{
10157
10158 ;
10159 return 0;
10160}
10161_ACEOF
10162if ac_fn_c_try_link "$LINENO"; then :
10163
10164lt_aix_libpath_sed='
10165 /Import File Strings/,/^$/ {
10166 /^0/ {
10167 s/^0 *\(.*\)$/\1/
10168 p
10169 }
10170 }'
10171aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10172# Check for a 64-bit object if we didn't find anything.
10173if test -z "$aix_libpath"; then
10174 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10175fi
10176fi
10177rm -f core conftest.err conftest.$ac_objext \
10178 conftest$ac_exeext conftest.$ac_ext
10179if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10180
10181 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10182 # Warning - without using the other run time loading flags,
10183 # -berok will link without error, but may produce a broken library.
10184 no_undefined_flag=' ${wl}-bernotok'
10185 allow_undefined_flag=' ${wl}-berok'
10186 if test "$with_gnu_ld" = yes; then
10187 # We only use this code for GNU lds that support --whole-archive.
10188 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10189 else
10190 # Exported symbols can be pulled into shared objects from archives
10191 whole_archive_flag_spec='$convenience'
10192 fi
10193 archive_cmds_need_lc=yes
10194 # This is similar to how AIX traditionally builds its shared libraries.
10195 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'
10196 fi
10197 fi
10198 ;;
10199
10200 amigaos*)
10201 case $host_cpu in
10202 powerpc)
10203 # see comment about AmigaOS4 .so support
10204 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10205 archive_expsym_cmds=''
10206 ;;
10207 m68k)
10208 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)'
10209 hardcode_libdir_flag_spec='-L$libdir'
10210 hardcode_minus_L=yes
10211 ;;
10212 esac
10213 ;;
10214
10215 bsdi[45]*)
10216 export_dynamic_flag_spec=-rdynamic
10217 ;;
10218
10219 cygwin* | mingw* | pw32* | cegcc*)
10220 # When not using gcc, we currently assume that we are using
10221 # Microsoft Visual C++.
10222 # hardcode_libdir_flag_spec is actually meaningless, as there is
10223 # no search path for DLLs.
10224 hardcode_libdir_flag_spec=' '
10225 allow_undefined_flag=unsupported
10226 # Tell ltmain to make .lib files, not .a files.
10227 libext=lib
10228 # Tell ltmain to make .dll files, not .so files.
10229 shrext_cmds=".dll"
10230 # FIXME: Setting linknames here is a bad hack.
10231 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10232 # The linker will automatically build a .lib file if we build a DLL.
10233 old_archive_from_new_cmds='true'
10234 # FIXME: Should let the user specify the lib program.
10235 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10236 fix_srcfile_path='`cygpath -w "$srcfile"`'
10237 enable_shared_with_static_runtimes=yes
10238 ;;
10239
10240 darwin* | rhapsody*)
10241
10242
10243 archive_cmds_need_lc=no
10244 hardcode_direct=no
10245 hardcode_automatic=yes
10246 hardcode_shlibpath_var=unsupported
10247 if test "$lt_cv_ld_force_load" = "yes"; then
10248 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\"`'
10249 else
10250 whole_archive_flag_spec=''
10251 fi
10252 link_all_deplibs=yes
10253 allow_undefined_flag="$_lt_dar_allow_undefined"
10254 case $cc_basename in
10255 ifort*) _lt_dar_can_shared=yes ;;
10256 *) _lt_dar_can_shared=$GCC ;;
10257 esac
10258 if test "$_lt_dar_can_shared" = "yes"; then
10259 output_verbose_link_cmd=func_echo_all
10260 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10261 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10262 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}"
10263 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}"
10264
10265 else
10266 ld_shlibs=no
10267 fi
10268
10269 ;;
10270
10271 dgux*)
10272 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10273 hardcode_libdir_flag_spec='-L$libdir'
10274 hardcode_shlibpath_var=no
10275 ;;
10276
10277 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10278 # support. Future versions do this automatically, but an explicit c++rt0.o
10279 # does not break anything, and helps significantly (at the cost of a little
10280 # extra space).
10281 freebsd2.2*)
10282 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10283 hardcode_libdir_flag_spec='-R$libdir'
10284 hardcode_direct=yes
10285 hardcode_shlibpath_var=no
10286 ;;
10287
10288 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10289 freebsd2.*)
10290 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10291 hardcode_direct=yes
10292 hardcode_minus_L=yes
10293 hardcode_shlibpath_var=no
10294 ;;
10295
10296 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10297 freebsd* | dragonfly*)
10298 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10299 hardcode_libdir_flag_spec='-R$libdir'
10300 hardcode_direct=yes
10301 hardcode_shlibpath_var=no
10302 ;;
10303
10304 hpux9*)
10305 if test "$GCC" = yes; then
10306 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'
10307 else
10308 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'
10309 fi
10310 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10311 hardcode_libdir_separator=:
10312 hardcode_direct=yes
10313
10314 # hardcode_minus_L: Not really in the search PATH,
10315 # but as the default location of the library.
10316 hardcode_minus_L=yes
10317 export_dynamic_flag_spec='${wl}-E'
10318 ;;
10319
10320 hpux10*)
10321 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10322 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10323 else
10324 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10325 fi
10326 if test "$with_gnu_ld" = no; then
10327 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10328 hardcode_libdir_flag_spec_ld='+b $libdir'
10329 hardcode_libdir_separator=:
10330 hardcode_direct=yes
10331 hardcode_direct_absolute=yes
10332 export_dynamic_flag_spec='${wl}-E'
10333 # hardcode_minus_L: Not really in the search PATH,
10334 # but as the default location of the library.
10335 hardcode_minus_L=yes
10336 fi
10337 ;;
10338
10339 hpux11*)
10340 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10341 case $host_cpu in
10342 hppa*64*)
10343 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10344 ;;
10345 ia64*)
10346 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10347 ;;
10348 *)
10349 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10350 ;;
10351 esac
10352 else
10353 case $host_cpu in
10354 hppa*64*)
10355 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10356 ;;
10357 ia64*)
10358 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10359 ;;
10360 *)
10361
10362 # Older versions of the 11.00 compiler do not understand -b yet
10363 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10365$as_echo_n "checking if $CC understands -b... " >&6; }
10366if ${lt_cv_prog_compiler__b+:} false; then :
10367 $as_echo_n "(cached) " >&6
10368else
10369 lt_cv_prog_compiler__b=no
10370 save_LDFLAGS="$LDFLAGS"
10371 LDFLAGS="$LDFLAGS -b"
10372 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10373 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10374 # The linker can only warn and ignore the option if not recognized
10375 # So say no if there are warnings
10376 if test -s conftest.err; then
10377 # Append any errors to the config.log.
10378 cat conftest.err 1>&5
10379 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10380 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10381 if diff conftest.exp conftest.er2 >/dev/null; then
10382 lt_cv_prog_compiler__b=yes
10383 fi
10384 else
10385 lt_cv_prog_compiler__b=yes
10386 fi
10387 fi
10388 $RM -r conftest*
10389 LDFLAGS="$save_LDFLAGS"
10390
10391fi
10392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10393$as_echo "$lt_cv_prog_compiler__b" >&6; }
10394
10395if test x"$lt_cv_prog_compiler__b" = xyes; then
10396 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10397else
10398 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10399fi
10400
10401 ;;
10402 esac
10403 fi
10404 if test "$with_gnu_ld" = no; then
10405 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10406 hardcode_libdir_separator=:
10407
10408 case $host_cpu in
10409 hppa*64*|ia64*)
10410 hardcode_direct=no
10411 hardcode_shlibpath_var=no
10412 ;;
10413 *)
10414 hardcode_direct=yes
10415 hardcode_direct_absolute=yes
10416 export_dynamic_flag_spec='${wl}-E'
10417
10418 # hardcode_minus_L: Not really in the search PATH,
10419 # but as the default location of the library.
10420 hardcode_minus_L=yes
10421 ;;
10422 esac
10423 fi
10424 ;;
10425
10426 irix5* | irix6* | nonstopux*)
10427 if test "$GCC" = yes; then
10428 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'
10429 # Try to use the -exported_symbol ld option, if it does not
10430 # work, assume that -exports_file does not work either and
10431 # implicitly export all symbols.
10432 save_LDFLAGS="$LDFLAGS"
10433 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10435/* end confdefs.h. */
10436int foo(void) {}
10437_ACEOF
10438if ac_fn_c_try_link "$LINENO"; then :
10439 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'
10440
10441fi
10442rm -f core conftest.err conftest.$ac_objext \
10443 conftest$ac_exeext conftest.$ac_ext
10444 LDFLAGS="$save_LDFLAGS"
10445 else
10446 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'
10447 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'
10448 fi
10449 archive_cmds_need_lc='no'
10450 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10451 hardcode_libdir_separator=:
10452 inherit_rpath=yes
10453 link_all_deplibs=yes
10454 ;;
10455
10456 netbsd*)
10457 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10458 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10459 else
10460 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10461 fi
10462 hardcode_libdir_flag_spec='-R$libdir'
10463 hardcode_direct=yes
10464 hardcode_shlibpath_var=no
10465 ;;
10466
10467 newsos6)
10468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10469 hardcode_direct=yes
10470 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10471 hardcode_libdir_separator=:
10472 hardcode_shlibpath_var=no
10473 ;;
10474
10475 *nto* | *qnx*)
10476 ;;
10477
10478 openbsd*)
10479 if test -f /usr/libexec/ld.so; then
10480 hardcode_direct=yes
10481 hardcode_shlibpath_var=no
10482 hardcode_direct_absolute=yes
10483 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10484 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10485 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10486 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10487 export_dynamic_flag_spec='${wl}-E'
10488 else
10489 case $host_os in
10490 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10491 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10492 hardcode_libdir_flag_spec='-R$libdir'
10493 ;;
10494 *)
10495 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10496 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10497 ;;
10498 esac
10499 fi
10500 else
10501 ld_shlibs=no
10502 fi
10503 ;;
10504
10505 os2*)
10506 hardcode_libdir_flag_spec='-L$libdir'
10507 hardcode_minus_L=yes
10508 allow_undefined_flag=unsupported
10509 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'
10510 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10511 ;;
10512
10513 osf3*)
10514 if test "$GCC" = yes; then
10515 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10516 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'
10517 else
10518 allow_undefined_flag=' -expect_unresolved \*'
10519 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'
10520 fi
10521 archive_cmds_need_lc='no'
10522 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10523 hardcode_libdir_separator=:
10524 ;;
10525
10526 osf4* | osf5*) # as osf3* with the addition of -msym flag
10527 if test "$GCC" = yes; then
10528 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10529 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'
10530 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10531 else
10532 allow_undefined_flag=' -expect_unresolved \*'
10533 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'
10534 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~
10535 $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'
10536
10537 # Both c and cxx compiler support -rpath directly
10538 hardcode_libdir_flag_spec='-rpath $libdir'
10539 fi
10540 archive_cmds_need_lc='no'
10541 hardcode_libdir_separator=:
10542 ;;
10543
10544 solaris*)
10545 no_undefined_flag=' -z defs'
10546 if test "$GCC" = yes; then
10547 wlarc='${wl}'
10548 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10549 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10550 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10551 else
10552 case `$CC -V 2>&1` in
10553 *"Compilers 5.0"*)
10554 wlarc=''
10555 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10556 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10557 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10558 ;;
10559 *)
10560 wlarc='${wl}'
10561 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10562 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10563 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10564 ;;
10565 esac
10566 fi
10567 hardcode_libdir_flag_spec='-R$libdir'
10568 hardcode_shlibpath_var=no
10569 case $host_os in
10570 solaris2.[0-5] | solaris2.[0-5].*) ;;
10571 *)
10572 # The compiler driver will combine and reorder linker options,
10573 # but understands `-z linker_flag'. GCC discards it without `$wl',
10574 # but is careful enough not to reorder.
10575 # Supported since Solaris 2.6 (maybe 2.5.1?)
10576 if test "$GCC" = yes; then
10577 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10578 else
10579 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10580 fi
10581 ;;
10582 esac
10583 link_all_deplibs=yes
10584 ;;
10585
10586 sunos4*)
10587 if test "x$host_vendor" = xsequent; then
10588 # Use $CC to link under sequent, because it throws in some extra .o
10589 # files that make .init and .fini sections work.
10590 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10591 else
10592 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10593 fi
10594 hardcode_libdir_flag_spec='-L$libdir'
10595 hardcode_direct=yes
10596 hardcode_minus_L=yes
10597 hardcode_shlibpath_var=no
10598 ;;
10599
10600 sysv4)
10601 case $host_vendor in
10602 sni)
10603 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10604 hardcode_direct=yes # is this really true???
10605 ;;
10606 siemens)
10607 ## LD is ld it makes a PLAMLIB
10608 ## CC just makes a GrossModule.
10609 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10610 reload_cmds='$CC -r -o $output$reload_objs'
10611 hardcode_direct=no
10612 ;;
10613 motorola)
10614 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10615 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10616 ;;
10617 esac
10618 runpath_var='LD_RUN_PATH'
10619 hardcode_shlibpath_var=no
10620 ;;
10621
10622 sysv4.3*)
10623 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10624 hardcode_shlibpath_var=no
10625 export_dynamic_flag_spec='-Bexport'
10626 ;;
10627
10628 sysv4*MP*)
10629 if test -d /usr/nec; then
10630 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10631 hardcode_shlibpath_var=no
10632 runpath_var=LD_RUN_PATH
10633 hardcode_runpath_var=yes
10634 ld_shlibs=yes
10635 fi
10636 ;;
10637
10638 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10639 no_undefined_flag='${wl}-z,text'
10640 archive_cmds_need_lc=no
10641 hardcode_shlibpath_var=no
10642 runpath_var='LD_RUN_PATH'
10643
10644 if test "$GCC" = yes; then
10645 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10646 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10647 else
10648 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10649 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10650 fi
10651 ;;
10652
10653 sysv5* | sco3.2v5* | sco5v6*)
10654 # Note: We can NOT use -z defs as we might desire, because we do not
10655 # link with -lc, and that would cause any symbols used from libc to
10656 # always be unresolved, which means just about no library would
10657 # ever link correctly. If we're not using GNU ld we use -z text
10658 # though, which does catch some bad symbols but isn't as heavy-handed
10659 # as -z defs.
10660 no_undefined_flag='${wl}-z,text'
10661 allow_undefined_flag='${wl}-z,nodefs'
10662 archive_cmds_need_lc=no
10663 hardcode_shlibpath_var=no
10664 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10665 hardcode_libdir_separator=':'
10666 link_all_deplibs=yes
10667 export_dynamic_flag_spec='${wl}-Bexport'
10668 runpath_var='LD_RUN_PATH'
10669
10670 if test "$GCC" = yes; then
10671 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10672 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10673 else
10674 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10675 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10676 fi
10677 ;;
10678
10679 uts4*)
10680 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10681 hardcode_libdir_flag_spec='-L$libdir'
10682 hardcode_shlibpath_var=no
10683 ;;
10684
10685 *)
10686 ld_shlibs=no
10687 ;;
10688 esac
10689
10690 if test x$host_vendor = xsni; then
10691 case $host in
10692 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10693 export_dynamic_flag_spec='${wl}-Blargedynsym'
10694 ;;
10695 esac
10696 fi
10697 fi
10698
10699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10700$as_echo "$ld_shlibs" >&6; }
10701test "$ld_shlibs" = no && can_build_shared=no
10702
10703with_gnu_ld=$with_gnu_ld
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719#
10720# Do we need to explicitly link libc?
10721#
10722case "x$archive_cmds_need_lc" in
10723x|xyes)
10724 # Assume -lc should be added
10725 archive_cmds_need_lc=yes
10726
10727 if test "$enable_shared" = yes && test "$GCC" = yes; then
10728 case $archive_cmds in
10729 *'~'*)
10730 # FIXME: we may have to deal with multi-command sequences.
10731 ;;
10732 '$CC '*)
10733 # Test whether the compiler implicitly links with -lc since on some
10734 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10735 # to ld, don't add -lc before -lgcc.
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10737$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10738if ${lt_cv_archive_cmds_need_lc+:} false; then :
10739 $as_echo_n "(cached) " >&6
10740else
10741 $RM conftest*
10742 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10743
10744 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10745 (eval $ac_compile) 2>&5
10746 ac_status=$?
10747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10748 test $ac_status = 0; } 2>conftest.err; then
10749 soname=conftest
10750 lib=conftest
10751 libobjs=conftest.$ac_objext
10752 deplibs=
10753 wl=$lt_prog_compiler_wl
10754 pic_flag=$lt_prog_compiler_pic
10755 compiler_flags=-v
10756 linker_flags=-v
10757 verstring=
10758 output_objdir=.
10759 libname=conftest
10760 lt_save_allow_undefined_flag=$allow_undefined_flag
10761 allow_undefined_flag=
10762 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10763 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10764 ac_status=$?
10765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10766 test $ac_status = 0; }
10767 then
10768 lt_cv_archive_cmds_need_lc=no
10769 else
10770 lt_cv_archive_cmds_need_lc=yes
10771 fi
10772 allow_undefined_flag=$lt_save_allow_undefined_flag
10773 else
10774 cat conftest.err 1>&5
10775 fi
10776 $RM conftest*
10777
10778fi
10779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10780$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10781 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10782 ;;
10783 esac
10784 fi
10785 ;;
10786esac
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
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10945$as_echo_n "checking dynamic linker characteristics... " >&6; }
10946
10947if test "$GCC" = yes; then
10948 case $host_os in
10949 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10950 *) lt_awk_arg="/^libraries:/" ;;
10951 esac
10952 case $host_os in
10953 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10954 *) lt_sed_strip_eq="s,=/,/,g" ;;
10955 esac
10956 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10957 case $lt_search_path_spec in
10958 *\;*)
10959 # if the path contains ";" then we assume it to be the separator
10960 # otherwise default to the standard path separator (i.e. ":") - it is
10961 # assumed that no part of a normal pathname contains ";" but that should
10962 # okay in the real world where ";" in dirpaths is itself problematic.
10963 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10964 ;;
10965 *)
10966 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10967 ;;
10968 esac
10969 # Ok, now we have the path, separated by spaces, we can step through it
10970 # and add multilib dir if necessary.
10971 lt_tmp_lt_search_path_spec=
10972 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10973 for lt_sys_path in $lt_search_path_spec; do
10974 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10975 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10976 else
10977 test -d "$lt_sys_path" && \
10978 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10979 fi
10980 done
10981 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10982BEGIN {RS=" "; FS="/|\n";} {
10983 lt_foo="";
10984 lt_count=0;
10985 for (lt_i = NF; lt_i > 0; lt_i--) {
10986 if ($lt_i != "" && $lt_i != ".") {
10987 if ($lt_i == "..") {
10988 lt_count++;
10989 } else {
10990 if (lt_count == 0) {
10991 lt_foo="/" $lt_i lt_foo;
10992 } else {
10993 lt_count--;
10994 }
10995 }
10996 }
10997 }
10998 if (lt_foo != "") { lt_freq[lt_foo]++; }
10999 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11000}'`
11001 # AWK program above erroneously prepends '/' to C:/dos/paths
11002 # for these hosts.
11003 case $host_os in
11004 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11005 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11006 esac
11007 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11008else
11009 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11010fi
11011library_names_spec=
11012libname_spec='lib$name'
11013soname_spec=
11014shrext_cmds=".so"
11015postinstall_cmds=
11016postuninstall_cmds=
11017finish_cmds=
11018finish_eval=
11019shlibpath_var=
11020shlibpath_overrides_runpath=unknown
11021version_type=none
11022dynamic_linker="$host_os ld.so"
11023sys_lib_dlsearch_path_spec="/lib /usr/lib"
11024need_lib_prefix=unknown
11025hardcode_into_libs=no
11026
11027# when you set need_version to no, make sure it does not cause -set_version
11028# flags to be left without arguments
11029need_version=unknown
11030
11031case $host_os in
11032aix3*)
11033 version_type=linux
11034 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11035 shlibpath_var=LIBPATH
11036
11037 # AIX 3 has no versioning support, so we append a major version to the name.
11038 soname_spec='${libname}${release}${shared_ext}$major'
11039 ;;
11040
11041aix[4-9]*)
11042 version_type=linux
11043 need_lib_prefix=no
11044 need_version=no
11045 hardcode_into_libs=yes
11046 if test "$host_cpu" = ia64; then
11047 # AIX 5 supports IA64
11048 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11049 shlibpath_var=LD_LIBRARY_PATH
11050 else
11051 # With GCC up to 2.95.x, collect2 would create an import file
11052 # for dependence libraries. The import file would start with
11053 # the line `#! .'. This would cause the generated library to
11054 # depend on `.', always an invalid library. This was fixed in
11055 # development snapshots of GCC prior to 3.0.
11056 case $host_os in
11057 aix4 | aix4.[01] | aix4.[01].*)
11058 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11059 echo ' yes '
11060 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11061 :
11062 else
11063 can_build_shared=no
11064 fi
11065 ;;
11066 esac
11067 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11068 # soname into executable. Probably we can add versioning support to
11069 # collect2, so additional links can be useful in future.
11070 if test "$aix_use_runtimelinking" = yes; then
11071 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11072 # instead of lib<name>.a to let people know that these are not
11073 # typical AIX shared libraries.
11074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11075 else
11076 # We preserve .a as extension for shared libraries through AIX4.2
11077 # and later when we are not doing run time linking.
11078 library_names_spec='${libname}${release}.a $libname.a'
11079 soname_spec='${libname}${release}${shared_ext}$major'
11080 fi
11081 shlibpath_var=LIBPATH
11082 fi
11083 ;;
11084
11085amigaos*)
11086 case $host_cpu in
11087 powerpc)
11088 # Since July 2007 AmigaOS4 officially supports .so libraries.
11089 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11091 ;;
11092 m68k)
11093 library_names_spec='$libname.ixlibrary $libname.a'
11094 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11095 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'
11096 ;;
11097 esac
11098 ;;
11099
11100beos*)
11101 library_names_spec='${libname}${shared_ext}'
11102 dynamic_linker="$host_os ld.so"
11103 shlibpath_var=LIBRARY_PATH
11104 ;;
11105
11106bsdi[45]*)
11107 version_type=linux
11108 need_version=no
11109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11110 soname_spec='${libname}${release}${shared_ext}$major'
11111 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11112 shlibpath_var=LD_LIBRARY_PATH
11113 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11114 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11115 # the default ld.so.conf also contains /usr/contrib/lib and
11116 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11117 # libtool to hard-code these into programs
11118 ;;
11119
11120cygwin* | mingw* | pw32* | cegcc*)
11121 version_type=windows
11122 shrext_cmds=".dll"
11123 need_version=no
11124 need_lib_prefix=no
11125
11126 case $GCC,$host_os in
11127 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11128 library_names_spec='$libname.dll.a'
11129 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11130 postinstall_cmds='base_file=`basename \${file}`~
11131 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11132 dldir=$destdir/`dirname \$dlpath`~
11133 test -d \$dldir || mkdir -p \$dldir~
11134 $install_prog $dir/$dlname \$dldir/$dlname~
11135 chmod a+x \$dldir/$dlname~
11136 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11137 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11138 fi'
11139 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11140 dlpath=$dir/\$dldll~
11141 $RM \$dlpath'
11142 shlibpath_overrides_runpath=yes
11143
11144 case $host_os in
11145 cygwin*)
11146 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11147 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11148
11149 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11150 ;;
11151 mingw* | cegcc*)
11152 # MinGW DLLs use traditional 'lib' prefix
11153 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11154 ;;
11155 pw32*)
11156 # pw32 DLLs use 'pw' prefix rather than 'lib'
11157 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11158 ;;
11159 esac
11160 ;;
11161
11162 *)
11163 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11164 ;;
11165 esac
11166 dynamic_linker='Win32 ld.exe'
11167 # FIXME: first we should search . and the directory the executable is in
11168 shlibpath_var=PATH
11169 ;;
11170
11171darwin* | rhapsody*)
11172 dynamic_linker="$host_os dyld"
11173 version_type=darwin
11174 need_lib_prefix=no
11175 need_version=no
11176 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11177 soname_spec='${libname}${release}${major}$shared_ext'
11178 shlibpath_overrides_runpath=yes
11179 shlibpath_var=DYLD_LIBRARY_PATH
11180 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11181
11182 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11183 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11184 ;;
11185
11186dgux*)
11187 version_type=linux
11188 need_lib_prefix=no
11189 need_version=no
11190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11191 soname_spec='${libname}${release}${shared_ext}$major'
11192 shlibpath_var=LD_LIBRARY_PATH
11193 ;;
11194
11195freebsd* | dragonfly*)
11196 # DragonFly does not have aout. When/if they implement a new
11197 # versioning mechanism, adjust this.
11198 if test -x /usr/bin/objformat; then
11199 objformat=`/usr/bin/objformat`
11200 else
11201 case $host_os in
11202 freebsd[23].*) objformat=aout ;;
11203 *) objformat=elf ;;
11204 esac
11205 fi
11206 version_type=freebsd-$objformat
11207 case $version_type in
11208 freebsd-elf*)
11209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11210 need_version=no
11211 need_lib_prefix=no
11212 ;;
11213 freebsd-*)
11214 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11215 need_version=yes
11216 ;;
11217 esac
11218 shlibpath_var=LD_LIBRARY_PATH
11219 case $host_os in
11220 freebsd2.*)
11221 shlibpath_overrides_runpath=yes
11222 ;;
11223 freebsd3.[01]* | freebsdelf3.[01]*)
11224 shlibpath_overrides_runpath=yes
11225 hardcode_into_libs=yes
11226 ;;
11227 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11228 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11229 shlibpath_overrides_runpath=no
11230 hardcode_into_libs=yes
11231 ;;
11232 *) # from 4.6 on, and DragonFly
11233 shlibpath_overrides_runpath=yes
11234 hardcode_into_libs=yes
11235 ;;
11236 esac
11237 ;;
11238
11239haiku*)
11240 version_type=linux
11241 need_lib_prefix=no
11242 need_version=no
11243 dynamic_linker="$host_os runtime_loader"
11244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11245 soname_spec='${libname}${release}${shared_ext}$major'
11246 shlibpath_var=LIBRARY_PATH
11247 shlibpath_overrides_runpath=yes
11248 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11249 hardcode_into_libs=yes
11250 ;;
11251
11252hpux9* | hpux10* | hpux11*)
11253 # Give a soname corresponding to the major version so that dld.sl refuses to
11254 # link against other versions.
11255 version_type=sunos
11256 need_lib_prefix=no
11257 need_version=no
11258 case $host_cpu in
11259 ia64*)
11260 shrext_cmds='.so'
11261 hardcode_into_libs=yes
11262 dynamic_linker="$host_os dld.so"
11263 shlibpath_var=LD_LIBRARY_PATH
11264 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11266 soname_spec='${libname}${release}${shared_ext}$major'
11267 if test "X$HPUX_IA64_MODE" = X32; then
11268 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11269 else
11270 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11271 fi
11272 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11273 ;;
11274 hppa*64*)
11275 shrext_cmds='.sl'
11276 hardcode_into_libs=yes
11277 dynamic_linker="$host_os dld.sl"
11278 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11279 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11281 soname_spec='${libname}${release}${shared_ext}$major'
11282 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11283 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11284 ;;
11285 *)
11286 shrext_cmds='.sl'
11287 dynamic_linker="$host_os dld.sl"
11288 shlibpath_var=SHLIB_PATH
11289 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11291 soname_spec='${libname}${release}${shared_ext}$major'
11292 ;;
11293 esac
11294 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11295 postinstall_cmds='chmod 555 $lib'
11296 # or fails outright, so override atomically:
11297 install_override_mode=555
11298 ;;
11299
11300interix[3-9]*)
11301 version_type=linux
11302 need_lib_prefix=no
11303 need_version=no
11304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11305 soname_spec='${libname}${release}${shared_ext}$major'
11306 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11307 shlibpath_var=LD_LIBRARY_PATH
11308 shlibpath_overrides_runpath=no
11309 hardcode_into_libs=yes
11310 ;;
11311
11312irix5* | irix6* | nonstopux*)
11313 case $host_os in
11314 nonstopux*) version_type=nonstopux ;;
11315 *)
11316 if test "$lt_cv_prog_gnu_ld" = yes; then
11317 version_type=linux
11318 else
11319 version_type=irix
11320 fi ;;
11321 esac
11322 need_lib_prefix=no
11323 need_version=no
11324 soname_spec='${libname}${release}${shared_ext}$major'
11325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11326 case $host_os in
11327 irix5* | nonstopux*)
11328 libsuff= shlibsuff=
11329 ;;
11330 *)
11331 case $LD in # libtool.m4 will add one of these switches to LD
11332 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11333 libsuff= shlibsuff= libmagic=32-bit;;
11334 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11335 libsuff=32 shlibsuff=N32 libmagic=N32;;
11336 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11337 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11338 *) libsuff= shlibsuff= libmagic=never-match;;
11339 esac
11340 ;;
11341 esac
11342 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11343 shlibpath_overrides_runpath=no
11344 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11345 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11346 hardcode_into_libs=yes
11347 ;;
11348
11349# No shared lib support for Linux oldld, aout, or coff.
11350linux*oldld* | linux*aout* | linux*coff*)
11351 dynamic_linker=no
11352 ;;
11353
11354# This must be Linux ELF.
11355linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11356 version_type=linux
11357 need_lib_prefix=no
11358 need_version=no
11359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11360 soname_spec='${libname}${release}${shared_ext}$major'
11361 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11362 shlibpath_var=LD_LIBRARY_PATH
11363 shlibpath_overrides_runpath=no
11364
11365 # Some binutils ld are patched to set DT_RUNPATH
11366 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11367 $as_echo_n "(cached) " >&6
11368else
11369 lt_cv_shlibpath_overrides_runpath=no
11370 save_LDFLAGS=$LDFLAGS
11371 save_libdir=$libdir
11372 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11373 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11375/* end confdefs.h. */
11376
11377int
11378main ()
11379{
11380
11381 ;
11382 return 0;
11383}
11384_ACEOF
11385if ac_fn_c_try_link "$LINENO"; then :
11386 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11387 lt_cv_shlibpath_overrides_runpath=yes
11388fi
11389fi
11390rm -f core conftest.err conftest.$ac_objext \
11391 conftest$ac_exeext conftest.$ac_ext
11392 LDFLAGS=$save_LDFLAGS
11393 libdir=$save_libdir
11394
11395fi
11396
11397 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11398
11399 # This implies no fast_install, which is unacceptable.
11400 # Some rework will be needed to allow for fast_install
11401 # before this can be enabled.
11402 hardcode_into_libs=yes
11403
11404 # Append ld.so.conf contents to the search path
11405 if test -f /etc/ld.so.conf; then
11406 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' ' '`
11407 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11408 fi
11409
11410 # We used to test for /lib/ld.so.1 and disable shared libraries on
11411 # powerpc, because MkLinux only supported shared libraries with the
11412 # GNU dynamic linker. Since this was broken with cross compilers,
11413 # most powerpc-linux boxes support dynamic linking these days and
11414 # people can always --disable-shared, the test was removed, and we
11415 # assume the GNU/Linux dynamic linker is in use.
11416 dynamic_linker='GNU/Linux ld.so'
11417 ;;
11418
11419netbsd*)
11420 version_type=sunos
11421 need_lib_prefix=no
11422 need_version=no
11423 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11425 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11426 dynamic_linker='NetBSD (a.out) ld.so'
11427 else
11428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11429 soname_spec='${libname}${release}${shared_ext}$major'
11430 dynamic_linker='NetBSD ld.elf_so'
11431 fi
11432 shlibpath_var=LD_LIBRARY_PATH
11433 shlibpath_overrides_runpath=yes
11434 hardcode_into_libs=yes
11435 ;;
11436
11437newsos6)
11438 version_type=linux
11439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11440 shlibpath_var=LD_LIBRARY_PATH
11441 shlibpath_overrides_runpath=yes
11442 ;;
11443
11444*nto* | *qnx*)
11445 version_type=qnx
11446 need_lib_prefix=no
11447 need_version=no
11448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11449 soname_spec='${libname}${release}${shared_ext}$major'
11450 shlibpath_var=LD_LIBRARY_PATH
11451 shlibpath_overrides_runpath=no
11452 hardcode_into_libs=yes
11453 dynamic_linker='ldqnx.so'
11454 ;;
11455
11456openbsd*)
11457 version_type=sunos
11458 sys_lib_dlsearch_path_spec="/usr/lib"
11459 need_lib_prefix=no
11460 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11461 case $host_os in
11462 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11463 *) need_version=no ;;
11464 esac
11465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11466 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11467 shlibpath_var=LD_LIBRARY_PATH
11468 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11469 case $host_os in
11470 openbsd2.[89] | openbsd2.[89].*)
11471 shlibpath_overrides_runpath=no
11472 ;;
11473 *)
11474 shlibpath_overrides_runpath=yes
11475 ;;
11476 esac
11477 else
11478 shlibpath_overrides_runpath=yes
11479 fi
11480 ;;
11481
11482os2*)
11483 libname_spec='$name'
11484 shrext_cmds=".dll"
11485 need_lib_prefix=no
11486 library_names_spec='$libname${shared_ext} $libname.a'
11487 dynamic_linker='OS/2 ld.exe'
11488 shlibpath_var=LIBPATH
11489 ;;
11490
11491osf3* | osf4* | osf5*)
11492 version_type=osf
11493 need_lib_prefix=no
11494 need_version=no
11495 soname_spec='${libname}${release}${shared_ext}$major'
11496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11497 shlibpath_var=LD_LIBRARY_PATH
11498 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11499 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11500 ;;
11501
11502rdos*)
11503 dynamic_linker=no
11504 ;;
11505
11506solaris*)
11507 version_type=linux
11508 need_lib_prefix=no
11509 need_version=no
11510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11511 soname_spec='${libname}${release}${shared_ext}$major'
11512 shlibpath_var=LD_LIBRARY_PATH
11513 shlibpath_overrides_runpath=yes
11514 hardcode_into_libs=yes
11515 # ldd complains unless libraries are executable
11516 postinstall_cmds='chmod +x $lib'
11517 ;;
11518
11519sunos4*)
11520 version_type=sunos
11521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11522 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11523 shlibpath_var=LD_LIBRARY_PATH
11524 shlibpath_overrides_runpath=yes
11525 if test "$with_gnu_ld" = yes; then
11526 need_lib_prefix=no
11527 fi
11528 need_version=yes
11529 ;;
11530
11531sysv4 | sysv4.3*)
11532 version_type=linux
11533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11534 soname_spec='${libname}${release}${shared_ext}$major'
11535 shlibpath_var=LD_LIBRARY_PATH
11536 case $host_vendor in
11537 sni)
11538 shlibpath_overrides_runpath=no
11539 need_lib_prefix=no
11540 runpath_var=LD_RUN_PATH
11541 ;;
11542 siemens)
11543 need_lib_prefix=no
11544 ;;
11545 motorola)
11546 need_lib_prefix=no
11547 need_version=no
11548 shlibpath_overrides_runpath=no
11549 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11550 ;;
11551 esac
11552 ;;
11553
11554sysv4*MP*)
11555 if test -d /usr/nec ;then
11556 version_type=linux
11557 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11558 soname_spec='$libname${shared_ext}.$major'
11559 shlibpath_var=LD_LIBRARY_PATH
11560 fi
11561 ;;
11562
11563sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11564 version_type=freebsd-elf
11565 need_lib_prefix=no
11566 need_version=no
11567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11568 soname_spec='${libname}${release}${shared_ext}$major'
11569 shlibpath_var=LD_LIBRARY_PATH
11570 shlibpath_overrides_runpath=yes
11571 hardcode_into_libs=yes
11572 if test "$with_gnu_ld" = yes; then
11573 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11574 else
11575 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11576 case $host_os in
11577 sco3.2v5*)
11578 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11579 ;;
11580 esac
11581 fi
11582 sys_lib_dlsearch_path_spec='/usr/lib'
11583 ;;
11584
11585tpf*)
11586 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11587 version_type=linux
11588 need_lib_prefix=no
11589 need_version=no
11590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11591 shlibpath_var=LD_LIBRARY_PATH
11592 shlibpath_overrides_runpath=no
11593 hardcode_into_libs=yes
11594 ;;
11595
11596uts4*)
11597 version_type=linux
11598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11599 soname_spec='${libname}${release}${shared_ext}$major'
11600 shlibpath_var=LD_LIBRARY_PATH
11601 ;;
11602
11603*)
11604 dynamic_linker=no
11605 ;;
11606esac
11607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11608$as_echo "$dynamic_linker" >&6; }
11609test "$dynamic_linker" = no && can_build_shared=no
11610
11611variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11612if test "$GCC" = yes; then
11613 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11614fi
11615
11616if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11617 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11618fi
11619if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11620 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11621fi
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11715$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11716hardcode_action=
11717if test -n "$hardcode_libdir_flag_spec" ||
11718 test -n "$runpath_var" ||
11719 test "X$hardcode_automatic" = "Xyes" ; then
11720
11721 # We can hardcode non-existent directories.
11722 if test "$hardcode_direct" != no &&
11723 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11724 # have to relink, otherwise we might link with an installed library
11725 # when we should be linking with a yet-to-be-installed one
11726 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11727 test "$hardcode_minus_L" != no; then
11728 # Linking always hardcodes the temporary library directory.
11729 hardcode_action=relink
11730 else
11731 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11732 hardcode_action=immediate
11733 fi
11734else
11735 # We cannot hardcode anything, or else we can only hardcode existing
11736 # directories.
11737 hardcode_action=unsupported
11738fi
11739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11740$as_echo "$hardcode_action" >&6; }
11741
11742if test "$hardcode_action" = relink ||
11743 test "$inherit_rpath" = yes; then
11744 # Fast installation is not supported
11745 enable_fast_install=no
11746elif test "$shlibpath_overrides_runpath" = yes ||
11747 test "$enable_shared" = no; then
11748 # Fast installation is not necessary
11749 enable_fast_install=needless
11750fi
11751
11752
11753
11754
11755
11756
11757 if test "x$enable_dlopen" != xyes; then
11758 enable_dlopen=unknown
11759 enable_dlopen_self=unknown
11760 enable_dlopen_self_static=unknown
11761else
11762 lt_cv_dlopen=no
11763 lt_cv_dlopen_libs=
11764
11765 case $host_os in
11766 beos*)
11767 lt_cv_dlopen="load_add_on"
11768 lt_cv_dlopen_libs=
11769 lt_cv_dlopen_self=yes
11770 ;;
11771
11772 mingw* | pw32* | cegcc*)
11773 lt_cv_dlopen="LoadLibrary"
11774 lt_cv_dlopen_libs=
11775 ;;
11776
11777 cygwin*)
11778 lt_cv_dlopen="dlopen"
11779 lt_cv_dlopen_libs=
11780 ;;
11781
11782 darwin*)
11783 # if libdl is installed we need to link against it
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11785$as_echo_n "checking for dlopen in -ldl... " >&6; }
11786if ${ac_cv_lib_dl_dlopen+:} false; then :
11787 $as_echo_n "(cached) " >&6
11788else
11789 ac_check_lib_save_LIBS=$LIBS
11790LIBS="-ldl $LIBS"
11791cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11792/* end confdefs.h. */
11793
11794/* Override any GCC internal prototype to avoid an error.
11795 Use char because int might match the return type of a GCC
11796 builtin and then its argument prototype would still apply. */
11797#ifdef __cplusplus
11798extern "C"
11799#endif
11800char dlopen ();
11801int
11802main ()
11803{
11804return dlopen ();
11805 ;
11806 return 0;
11807}
11808_ACEOF
11809if ac_fn_c_try_link "$LINENO"; then :
11810 ac_cv_lib_dl_dlopen=yes
11811else
11812 ac_cv_lib_dl_dlopen=no
11813fi
11814rm -f core conftest.err conftest.$ac_objext \
11815 conftest$ac_exeext conftest.$ac_ext
11816LIBS=$ac_check_lib_save_LIBS
11817fi
11818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11819$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11820if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11821 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11822else
11823
11824 lt_cv_dlopen="dyld"
11825 lt_cv_dlopen_libs=
11826 lt_cv_dlopen_self=yes
11827
11828fi
11829
11830 ;;
11831
11832 *)
11833 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11834if test "x$ac_cv_func_shl_load" = xyes; then :
11835 lt_cv_dlopen="shl_load"
11836else
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11838$as_echo_n "checking for shl_load in -ldld... " >&6; }
11839if ${ac_cv_lib_dld_shl_load+:} false; then :
11840 $as_echo_n "(cached) " >&6
11841else
11842 ac_check_lib_save_LIBS=$LIBS
11843LIBS="-ldld $LIBS"
11844cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11845/* end confdefs.h. */
11846
11847/* Override any GCC internal prototype to avoid an error.
11848 Use char because int might match the return type of a GCC
11849 builtin and then its argument prototype would still apply. */
11850#ifdef __cplusplus
11851extern "C"
11852#endif
11853char shl_load ();
a48ff3ef
MF
11854int
11855main ()
11856{
b5689863 11857return shl_load ();
a48ff3ef
MF
11858 ;
11859 return 0;
11860}
11861_ACEOF
11862if ac_fn_c_try_link "$LINENO"; then :
b5689863 11863 ac_cv_lib_dld_shl_load=yes
a48ff3ef 11864else
b5689863 11865 ac_cv_lib_dld_shl_load=no
a48ff3ef
MF
11866fi
11867rm -f core conftest.err conftest.$ac_objext \
11868 conftest$ac_exeext conftest.$ac_ext
b5689863 11869LIBS=$ac_check_lib_save_LIBS
a48ff3ef 11870fi
b5689863
MF
11871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11872$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11873if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11874 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11875else
11876 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11877if test "x$ac_cv_func_dlopen" = xyes; then :
11878 lt_cv_dlopen="dlopen"
11879else
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11881$as_echo_n "checking for dlopen in -ldl... " >&6; }
11882if ${ac_cv_lib_dl_dlopen+:} false; then :
11883 $as_echo_n "(cached) " >&6
11884else
11885 ac_check_lib_save_LIBS=$LIBS
11886LIBS="-ldl $LIBS"
11887cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11888/* end confdefs.h. */
a48ff3ef 11889
b5689863
MF
11890/* Override any GCC internal prototype to avoid an error.
11891 Use char because int might match the return type of a GCC
11892 builtin and then its argument prototype would still apply. */
11893#ifdef __cplusplus
11894extern "C"
11895#endif
11896char dlopen ();
11897int
11898main ()
11899{
11900return dlopen ();
11901 ;
11902 return 0;
11903}
11904_ACEOF
11905if ac_fn_c_try_link "$LINENO"; then :
11906 ac_cv_lib_dl_dlopen=yes
11907else
11908 ac_cv_lib_dl_dlopen=no
a48ff3ef 11909fi
b5689863
MF
11910rm -f core conftest.err conftest.$ac_objext \
11911 conftest$ac_exeext conftest.$ac_ext
11912LIBS=$ac_check_lib_save_LIBS
11913fi
11914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11915$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11916if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11917 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11918else
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11920$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11921if ${ac_cv_lib_svld_dlopen+:} false; then :
11922 $as_echo_n "(cached) " >&6
11923else
11924 ac_check_lib_save_LIBS=$LIBS
11925LIBS="-lsvld $LIBS"
11926cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11927/* end confdefs.h. */
a48ff3ef 11928
b5689863
MF
11929/* Override any GCC internal prototype to avoid an error.
11930 Use char because int might match the return type of a GCC
11931 builtin and then its argument prototype would still apply. */
11932#ifdef __cplusplus
11933extern "C"
b15c5d7a 11934#endif
b5689863
MF
11935char dlopen ();
11936int
11937main ()
11938{
11939return dlopen ();
11940 ;
11941 return 0;
11942}
b15c5d7a 11943_ACEOF
b5689863
MF
11944if ac_fn_c_try_link "$LINENO"; then :
11945 ac_cv_lib_svld_dlopen=yes
11946else
11947 ac_cv_lib_svld_dlopen=no
b15c5d7a 11948fi
b5689863
MF
11949rm -f core conftest.err conftest.$ac_objext \
11950 conftest$ac_exeext conftest.$ac_ext
11951LIBS=$ac_check_lib_save_LIBS
11952fi
11953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11954$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11955if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11956 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11957else
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11959$as_echo_n "checking for dld_link in -ldld... " >&6; }
11960if ${ac_cv_lib_dld_dld_link+:} false; then :
11961 $as_echo_n "(cached) " >&6
11962else
11963 ac_check_lib_save_LIBS=$LIBS
11964LIBS="-ldld $LIBS"
11965cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11966/* end confdefs.h. */
b15c5d7a 11967
b5689863
MF
11968/* Override any GCC internal prototype to avoid an error.
11969 Use char because int might match the return type of a GCC
11970 builtin and then its argument prototype would still apply. */
11971#ifdef __cplusplus
11972extern "C"
11973#endif
11974char dld_link ();
11975int
11976main ()
11977{
11978return dld_link ();
11979 ;
11980 return 0;
11981}
b15c5d7a 11982_ACEOF
b5689863
MF
11983if ac_fn_c_try_link "$LINENO"; then :
11984 ac_cv_lib_dld_dld_link=yes
11985else
11986 ac_cv_lib_dld_dld_link=no
11987fi
11988rm -f core conftest.err conftest.$ac_objext \
11989 conftest$ac_exeext conftest.$ac_ext
11990LIBS=$ac_check_lib_save_LIBS
11991fi
11992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11993$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11994if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11995 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11996fi
b15c5d7a
MF
11997
11998
11999fi
b15c5d7a 12000
b5689863
MF
12001
12002fi
b15c5d7a
MF
12003
12004
12005fi
b15c5d7a 12006
b5689863
MF
12007
12008fi
b15c5d7a
MF
12009
12010
12011fi
b15c5d7a 12012
b5689863
MF
12013 ;;
12014 esac
b15c5d7a 12015
b5689863
MF
12016 if test "x$lt_cv_dlopen" != xno; then
12017 enable_dlopen=yes
12018 else
12019 enable_dlopen=no
12020 fi
b15c5d7a 12021
b5689863
MF
12022 case $lt_cv_dlopen in
12023 dlopen)
12024 save_CPPFLAGS="$CPPFLAGS"
12025 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
b15c5d7a 12026
b5689863
MF
12027 save_LDFLAGS="$LDFLAGS"
12028 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
b15c5d7a 12029
b5689863
MF
12030 save_LIBS="$LIBS"
12031 LIBS="$lt_cv_dlopen_libs $LIBS"
b15c5d7a 12032
b5689863
MF
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12034$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12035if ${lt_cv_dlopen_self+:} false; then :
12036 $as_echo_n "(cached) " >&6
12037else
12038 if test "$cross_compiling" = yes; then :
12039 lt_cv_dlopen_self=cross
12040else
12041 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12042 lt_status=$lt_dlunknown
12043 cat > conftest.$ac_ext <<_LT_EOF
e173c80f 12044#line 12044 "configure"
b5689863
MF
12045#include "confdefs.h"
12046
12047#if HAVE_DLFCN_H
12048#include <dlfcn.h>
b15c5d7a 12049#endif
b15c5d7a 12050
b5689863 12051#include <stdio.h>
b15c5d7a 12052
b5689863
MF
12053#ifdef RTLD_GLOBAL
12054# define LT_DLGLOBAL RTLD_GLOBAL
12055#else
12056# ifdef DL_GLOBAL
12057# define LT_DLGLOBAL DL_GLOBAL
12058# else
12059# define LT_DLGLOBAL 0
12060# endif
12061#endif
b15c5d7a 12062
b5689863
MF
12063/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12064 find out it does not work in some platform. */
12065#ifndef LT_DLLAZY_OR_NOW
12066# ifdef RTLD_LAZY
12067# define LT_DLLAZY_OR_NOW RTLD_LAZY
12068# else
12069# ifdef DL_LAZY
12070# define LT_DLLAZY_OR_NOW DL_LAZY
12071# else
12072# ifdef RTLD_NOW
12073# define LT_DLLAZY_OR_NOW RTLD_NOW
12074# else
12075# ifdef DL_NOW
12076# define LT_DLLAZY_OR_NOW DL_NOW
12077# else
12078# define LT_DLLAZY_OR_NOW 0
12079# endif
12080# endif
12081# endif
12082# endif
b15c5d7a 12083#endif
b5689863
MF
12084
12085/* When -fvisbility=hidden is used, assume the code has been annotated
12086 correspondingly for the symbols needed. */
12087#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12088void fnord () __attribute__((visibility("default")));
b15c5d7a 12089#endif
b15c5d7a 12090
b5689863
MF
12091void fnord () { int i=42; }
12092int main ()
12093{
12094 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12095 int status = $lt_dlunknown;
b15c5d7a 12096
b5689863
MF
12097 if (self)
12098 {
12099 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12100 else
12101 {
12102 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12103 else puts (dlerror ());
12104 }
12105 /* dlclose (self); */
12106 }
12107 else
12108 puts (dlerror ());
b15c5d7a 12109
b5689863
MF
12110 return status;
12111}
12112_LT_EOF
12113 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12114 (eval $ac_link) 2>&5
12115 ac_status=$?
12116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12117 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12118 (./conftest; exit; ) >&5 2>/dev/null
12119 lt_status=$?
12120 case x$lt_status in
12121 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12122 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12123 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12124 esac
12125 else :
12126 # compilation failed
12127 lt_cv_dlopen_self=no
12128 fi
b15c5d7a 12129fi
b5689863 12130rm -fr conftest*
b15c5d7a
MF
12131
12132
12133fi
b5689863
MF
12134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12135$as_echo "$lt_cv_dlopen_self" >&6; }
12136
12137 if test "x$lt_cv_dlopen_self" = xyes; then
12138 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12140$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12141if ${lt_cv_dlopen_self_static+:} false; then :
12142 $as_echo_n "(cached) " >&6
12143else
12144 if test "$cross_compiling" = yes; then :
12145 lt_cv_dlopen_self_static=cross
12146else
12147 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12148 lt_status=$lt_dlunknown
12149 cat > conftest.$ac_ext <<_LT_EOF
e173c80f 12150#line 12150 "configure"
b5689863
MF
12151#include "confdefs.h"
12152
12153#if HAVE_DLFCN_H
12154#include <dlfcn.h>
b15c5d7a 12155#endif
b15c5d7a 12156
b5689863 12157#include <stdio.h>
b15c5d7a 12158
b5689863
MF
12159#ifdef RTLD_GLOBAL
12160# define LT_DLGLOBAL RTLD_GLOBAL
12161#else
12162# ifdef DL_GLOBAL
12163# define LT_DLGLOBAL DL_GLOBAL
12164# else
12165# define LT_DLGLOBAL 0
12166# endif
12167#endif
b15c5d7a 12168
b5689863
MF
12169/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12170 find out it does not work in some platform. */
12171#ifndef LT_DLLAZY_OR_NOW
12172# ifdef RTLD_LAZY
12173# define LT_DLLAZY_OR_NOW RTLD_LAZY
12174# else
12175# ifdef DL_LAZY
12176# define LT_DLLAZY_OR_NOW DL_LAZY
12177# else
12178# ifdef RTLD_NOW
12179# define LT_DLLAZY_OR_NOW RTLD_NOW
12180# else
12181# ifdef DL_NOW
12182# define LT_DLLAZY_OR_NOW DL_NOW
12183# else
12184# define LT_DLLAZY_OR_NOW 0
12185# endif
12186# endif
12187# endif
12188# endif
b15c5d7a 12189#endif
b5689863
MF
12190
12191/* When -fvisbility=hidden is used, assume the code has been annotated
12192 correspondingly for the symbols needed. */
12193#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12194void fnord () __attribute__((visibility("default")));
b15c5d7a 12195#endif
b15c5d7a 12196
b5689863
MF
12197void fnord () { int i=42; }
12198int main ()
12199{
12200 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12201 int status = $lt_dlunknown;
12202
12203 if (self)
12204 {
12205 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12206 else
12207 {
12208 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12209 else puts (dlerror ());
12210 }
12211 /* dlclose (self); */
12212 }
12213 else
12214 puts (dlerror ());
12215
12216 return status;
12217}
12218_LT_EOF
12219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12220 (eval $ac_link) 2>&5
12221 ac_status=$?
12222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12223 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12224 (./conftest; exit; ) >&5 2>/dev/null
12225 lt_status=$?
12226 case x$lt_status in
12227 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12228 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12229 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12230 esac
12231 else :
12232 # compilation failed
12233 lt_cv_dlopen_self_static=no
12234 fi
12235fi
12236rm -fr conftest*
b15c5d7a
MF
12237
12238
12239fi
b5689863
MF
12240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12241$as_echo "$lt_cv_dlopen_self_static" >&6; }
12242 fi
b15c5d7a 12243
b5689863
MF
12244 CPPFLAGS="$save_CPPFLAGS"
12245 LDFLAGS="$save_LDFLAGS"
12246 LIBS="$save_LIBS"
12247 ;;
12248 esac
b15c5d7a 12249
b5689863
MF
12250 case $lt_cv_dlopen_self in
12251 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12252 *) enable_dlopen_self=unknown ;;
12253 esac
b15c5d7a 12254
b5689863
MF
12255 case $lt_cv_dlopen_self_static in
12256 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12257 *) enable_dlopen_self_static=unknown ;;
12258 esac
b15c5d7a 12259fi
b15c5d7a 12260
b15c5d7a
MF
12261
12262
b15c5d7a
MF
12263
12264
b15c5d7a 12265
b15c5d7a
MF
12266
12267
b15c5d7a 12268
b15c5d7a 12269
b15c5d7a 12270
b15c5d7a
MF
12271
12272
b15c5d7a
MF
12273
12274
a48ff3ef 12275
a48ff3ef 12276
b5689863
MF
12277striplib=
12278old_striplib=
12279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12280$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12281if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12282 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12283 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12285$as_echo "yes" >&6; }
a48ff3ef 12286else
b5689863
MF
12287# FIXME - insert some real tests, host_os isn't really good enough
12288 case $host_os in
12289 darwin*)
12290 if test -n "$STRIP" ; then
12291 striplib="$STRIP -x"
12292 old_striplib="$STRIP -S"
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12294$as_echo "yes" >&6; }
12295 else
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12297$as_echo "no" >&6; }
12298 fi
12299 ;;
12300 *)
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12302$as_echo "no" >&6; }
12303 ;;
12304 esac
a48ff3ef
MF
12305fi
12306
a48ff3ef 12307
a48ff3ef 12308
a48ff3ef 12309
a48ff3ef
MF
12310
12311
a48ff3ef 12312
a48ff3ef 12313
a48ff3ef 12314
a48ff3ef 12315
a48ff3ef 12316
a48ff3ef 12317
b5689863
MF
12318 # Report which library types will actually be built
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12320$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12322$as_echo "$can_build_shared" >&6; }
a48ff3ef 12323
b5689863
MF
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12325$as_echo_n "checking whether to build shared libraries... " >&6; }
12326 test "$can_build_shared" = "no" && enable_shared=no
a48ff3ef 12327
b5689863
MF
12328 # On AIX, shared libraries and static libraries use the same namespace, and
12329 # are all built from PIC.
12330 case $host_os in
12331 aix3*)
12332 test "$enable_shared" = yes && enable_static=no
12333 if test -n "$RANLIB"; then
12334 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12335 postinstall_cmds='$RANLIB $lib'
12336 fi
12337 ;;
a48ff3ef 12338
b5689863
MF
12339 aix[4-9]*)
12340 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12341 test "$enable_shared" = yes && enable_static=no
12342 fi
12343 ;;
12344 esac
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12346$as_echo "$enable_shared" >&6; }
12347
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12349$as_echo_n "checking whether to build static libraries... " >&6; }
12350 # Make sure either enable_shared or enable_static is yes.
12351 test "$enable_shared" = yes || enable_static=yes
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12353$as_echo "$enable_static" >&6; }
a48ff3ef 12354
a48ff3ef 12355
a48ff3ef 12356
b15c5d7a 12357
b15c5d7a 12358fi
b5689863
MF
12359ac_ext=c
12360ac_cpp='$CPP $CPPFLAGS'
12361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12363ac_compiler_gnu=$ac_cv_c_compiler_gnu
b15c5d7a 12364
b5689863 12365CC="$lt_save_CC"
b15c5d7a
MF
12366
12367
a48ff3ef 12368
a48ff3ef 12369
a48ff3ef 12370
a48ff3ef 12371
a48ff3ef 12372
a48ff3ef 12373
a48ff3ef 12374
a48ff3ef
MF
12375
12376
a48ff3ef 12377
b5689863
MF
12378
12379 ac_config_commands="$ac_config_commands libtool"
12380
12381
12382
12383
12384# Only expand once:
12385
12386
a48ff3ef 12387
b15c5d7a 12388
07490bf8
MF
12389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
12390$as_echo_n "checking for bind in -lsocket... " >&6; }
12391if ${ac_cv_lib_socket_bind+:} false; then :
12392 $as_echo_n "(cached) " >&6
12393else
12394 ac_check_lib_save_LIBS=$LIBS
12395LIBS="-lsocket $LIBS"
12396cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12397/* end confdefs.h. */
12398
12399/* Override any GCC internal prototype to avoid an error.
12400 Use char because int might match the return type of a GCC
12401 builtin and then its argument prototype would still apply. */
12402#ifdef __cplusplus
12403extern "C"
12404#endif
12405char bind ();
12406int
12407main ()
12408{
12409return bind ();
12410 ;
12411 return 0;
12412}
12413_ACEOF
12414if ac_fn_c_try_link "$LINENO"; then :
12415 ac_cv_lib_socket_bind=yes
12416else
12417 ac_cv_lib_socket_bind=no
12418fi
12419rm -f core conftest.err conftest.$ac_objext \
12420 conftest$ac_exeext conftest.$ac_ext
12421LIBS=$ac_check_lib_save_LIBS
12422fi
12423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
12424$as_echo "$ac_cv_lib_socket_bind" >&6; }
12425if test "x$ac_cv_lib_socket_bind" = xyes; then :
12426 cat >>confdefs.h <<_ACEOF
12427#define HAVE_LIBSOCKET 1
12428_ACEOF
12429
12430 LIBS="-lsocket $LIBS"
12431
12432fi
12433
12434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
12435$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
12436if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
12437 $as_echo_n "(cached) " >&6
12438else
12439 ac_check_lib_save_LIBS=$LIBS
12440LIBS="-lnsl $LIBS"
12441cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12442/* end confdefs.h. */
12443
12444/* Override any GCC internal prototype to avoid an error.
12445 Use char because int might match the return type of a GCC
12446 builtin and then its argument prototype would still apply. */
12447#ifdef __cplusplus
12448extern "C"
12449#endif
12450char gethostbyname ();
12451int
12452main ()
12453{
12454return gethostbyname ();
12455 ;
12456 return 0;
12457}
12458_ACEOF
12459if ac_fn_c_try_link "$LINENO"; then :
12460 ac_cv_lib_nsl_gethostbyname=yes
12461else
12462 ac_cv_lib_nsl_gethostbyname=no
12463fi
12464rm -f core conftest.err conftest.$ac_objext \
12465 conftest$ac_exeext conftest.$ac_ext
12466LIBS=$ac_check_lib_save_LIBS
12467fi
12468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
12469$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
12470if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
12471 cat >>confdefs.h <<_ACEOF
12472#define HAVE_LIBNSL 1
12473_ACEOF
12474
12475 LIBS="-lnsl $LIBS"
12476
12477fi
12478
12479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs in -lm" >&5
12480$as_echo_n "checking for fabs in -lm... " >&6; }
12481if ${ac_cv_lib_m_fabs+:} false; then :
12482 $as_echo_n "(cached) " >&6
12483else
12484 ac_check_lib_save_LIBS=$LIBS
12485LIBS="-lm $LIBS"
12486cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12487/* end confdefs.h. */
12488
12489/* Override any GCC internal prototype to avoid an error.
12490 Use char because int might match the return type of a GCC
12491 builtin and then its argument prototype would still apply. */
12492#ifdef __cplusplus
12493extern "C"
12494#endif
12495char fabs ();
12496int
12497main ()
12498{
12499return fabs ();
12500 ;
12501 return 0;
12502}
12503_ACEOF
12504if ac_fn_c_try_link "$LINENO"; then :
12505 ac_cv_lib_m_fabs=yes
12506else
12507 ac_cv_lib_m_fabs=no
12508fi
12509rm -f core conftest.err conftest.$ac_objext \
12510 conftest$ac_exeext conftest.$ac_ext
12511LIBS=$ac_check_lib_save_LIBS
12512fi
12513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fabs" >&5
12514$as_echo "$ac_cv_lib_m_fabs" >&6; }
12515if test "x$ac_cv_lib_m_fabs" = xyes; then :
12516 cat >>confdefs.h <<_ACEOF
12517#define HAVE_LIBM 1
12518_ACEOF
12519
12520 LIBS="-lm $LIBS"
12521
12522fi
12523
12524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for log2 in -lm" >&5
12525$as_echo_n "checking for log2 in -lm... " >&6; }
12526if ${ac_cv_lib_m_log2+:} false; then :
12527 $as_echo_n "(cached) " >&6
12528else
12529 ac_check_lib_save_LIBS=$LIBS
12530LIBS="-lm $LIBS"
12531cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12532/* end confdefs.h. */
12533
12534/* Override any GCC internal prototype to avoid an error.
12535 Use char because int might match the return type of a GCC
12536 builtin and then its argument prototype would still apply. */
12537#ifdef __cplusplus
12538extern "C"
12539#endif
12540char log2 ();
12541int
12542main ()
12543{
12544return log2 ();
12545 ;
12546 return 0;
12547}
12548_ACEOF
12549if ac_fn_c_try_link "$LINENO"; then :
12550 ac_cv_lib_m_log2=yes
12551else
12552 ac_cv_lib_m_log2=no
12553fi
12554rm -f core conftest.err conftest.$ac_objext \
12555 conftest$ac_exeext conftest.$ac_ext
12556LIBS=$ac_check_lib_save_LIBS
12557fi
12558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log2" >&5
12559$as_echo "$ac_cv_lib_m_log2" >&6; }
12560if test "x$ac_cv_lib_m_log2" = xyes; then :
12561 cat >>confdefs.h <<_ACEOF
12562#define HAVE_LIBM 1
12563_ACEOF
12564
12565 LIBS="-lm $LIBS"
12566
12567fi
12568
12569
b15c5d7a
MF
12570
12571
12572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12573$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12574 # Check whether --enable-maintainer-mode was given.
12575if test "${enable_maintainer_mode+set}" = set; then :
12576 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12577else
12578 USE_MAINTAINER_MODE=no
12579fi
12580
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12582$as_echo "$USE_MAINTAINER_MODE" >&6; }
12583 if test $USE_MAINTAINER_MODE = yes; then
12584 MAINTAINER_MODE_TRUE=
12585 MAINTAINER_MODE_FALSE='#'
12586else
12587 MAINTAINER_MODE_TRUE='#'
12588 MAINTAINER_MODE_FALSE=
12589fi
12590
12591 MAINT=$MAINTAINER_MODE_TRUE
12592
12593
12594am__api_version='1.15'
12595
12596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
12597$as_echo_n "checking whether build environment is sane... " >&6; }
12598# Reject unsafe characters in $srcdir or the absolute working directory
12599# name. Accept space and tab only in the latter.
12600am_lf='
12601'
12602case `pwd` in
12603 *[\\\"\#\$\&\'\`$am_lf]*)
12604 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
12605esac
12606case $srcdir in
12607 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
12608 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
12609esac
12610
12611# Do 'set' in a subshell so we don't clobber the current shell's
12612# arguments. Must try -L first in case configure is actually a
12613# symlink; some systems play weird games with the mod time of symlinks
12614# (eg FreeBSD returns the mod time of the symlink's containing
12615# directory).
12616if (
12617 am_has_slept=no
12618 for am_try in 1 2; do
12619 echo "timestamp, slept: $am_has_slept" > conftest.file
12620 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
12621 if test "$*" = "X"; then
12622 # -L didn't work.
12623 set X `ls -t "$srcdir/configure" conftest.file`
12624 fi
12625 if test "$*" != "X $srcdir/configure conftest.file" \
12626 && test "$*" != "X conftest.file $srcdir/configure"; then
12627
12628 # If neither matched, then we have a broken ls. This can happen
12629 # if, for instance, CONFIG_SHELL is bash and it inherits a
12630 # broken ls alias from the environment. This has actually
12631 # happened. Such a system could not be considered "sane".
12632 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
12633 alias in your environment" "$LINENO" 5
12634 fi
12635 if test "$2" = conftest.file || test $am_try -eq 2; then
12636 break
12637 fi
12638 # Just in case.
12639 sleep 1
12640 am_has_slept=yes
12641 done
12642 test "$2" = conftest.file
12643 )
12644then
12645 # Ok.
12646 :
12647else
12648 as_fn_error $? "newly created file is older than distributed files!
12649Check your system clock" "$LINENO" 5
12650fi
12651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12652$as_echo "yes" >&6; }
12653# If we didn't sleep, we still need to ensure time stamps of config.status and
12654# generated files are strictly newer.
12655am_sleep_pid=
12656if grep 'slept: no' conftest.file >/dev/null 2>&1; then
12657 ( sleep 1 ) &
12658 am_sleep_pid=$!
12659fi
12660
12661rm -f conftest.file
12662
12663if test x"${MISSING+set}" != xset; then
12664 case $am_aux_dir in
12665 *\ * | *\ *)
12666 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
12667 *)
12668 MISSING="\${SHELL} $am_aux_dir/missing" ;;
12669 esac
12670fi
12671# Use eval to expand $SHELL
12672if eval "$MISSING --is-lightweight"; then
12673 am_missing_run="$MISSING "
c2783492
MF
12674else
12675 am_missing_run=
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
12677$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
12678fi
12679
12680if test x"${install_sh+set}" != xset; then
12681 case $am_aux_dir in
12682 *\ * | *\ *)
12683 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
12684 *)
12685 install_sh="\${SHELL} $am_aux_dir/install-sh"
12686 esac
12687fi
12688
12689# Installed binaries are usually stripped using 'strip' when the user
12690# run "make install-strip". However 'strip' might not be the right
12691# tool to use in cross-compilation environments, therefore Automake
12692# will honor the 'STRIP' environment variable to overrule this program.
12693if test "$cross_compiling" != no; then
12694 if test -n "$ac_tool_prefix"; then
12695 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12696set dummy ${ac_tool_prefix}strip; ac_word=$2
12697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12698$as_echo_n "checking for $ac_word... " >&6; }
12699if ${ac_cv_prog_STRIP+:} false; then :
12700 $as_echo_n "(cached) " >&6
12701else
12702 if test -n "$STRIP"; then
12703 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12704else
12705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12706for as_dir in $PATH
12707do
12708 IFS=$as_save_IFS
12709 test -z "$as_dir" && as_dir=.
12710 for ac_exec_ext in '' $ac_executable_extensions; do
12711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12712 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12714 break 2
81ecdfbb 12715 fi
81ecdfbb 12716done
c2783492
MF
12717 done
12718IFS=$as_save_IFS
b7026657 12719
c906108c 12720fi
b7026657 12721fi
c2783492
MF
12722STRIP=$ac_cv_prog_STRIP
12723if test -n "$STRIP"; then
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12725$as_echo "$STRIP" >&6; }
81ecdfbb 12726else
c2783492
MF
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12728$as_echo "no" >&6; }
81ecdfbb 12729fi
b7026657 12730
b7026657 12731
c2783492
MF
12732fi
12733if test -z "$ac_cv_prog_STRIP"; then
12734 ac_ct_STRIP=$STRIP
12735 # Extract the first word of "strip", so it can be a program name with args.
12736set dummy strip; ac_word=$2
12737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12738$as_echo_n "checking for $ac_word... " >&6; }
12739if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12740 $as_echo_n "(cached) " >&6
c906108c 12741else
c2783492
MF
12742 if test -n "$ac_ct_STRIP"; then
12743 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
81ecdfbb 12744else
c2783492
MF
12745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12746for as_dir in $PATH
12747do
12748 IFS=$as_save_IFS
12749 test -z "$as_dir" && as_dir=.
12750 for ac_exec_ext in '' $ac_executable_extensions; do
12751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12752 ac_cv_prog_ac_ct_STRIP="strip"
12753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12754 break 2
12755 fi
12756done
12757 done
12758IFS=$as_save_IFS
81ecdfbb 12759
81ecdfbb 12760fi
df1756f4 12761fi
c2783492
MF
12762ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12763if test -n "$ac_ct_STRIP"; then
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12765$as_echo "$ac_ct_STRIP" >&6; }
12766else
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12768$as_echo "no" >&6; }
b7026657 12769fi
c2783492
MF
12770
12771 if test "x$ac_ct_STRIP" = x; then
12772 STRIP=":"
c906108c 12773 else
c2783492
MF
12774 case $cross_compiling:$ac_tool_warned in
12775yes:)
12776{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12777$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12778ac_tool_warned=yes ;;
12779esac
12780 STRIP=$ac_ct_STRIP
c906108c
SS
12781 fi
12782else
c2783492 12783 STRIP="$ac_cv_prog_STRIP"
c906108c 12784fi
81ecdfbb 12785
b7026657 12786fi
c2783492 12787INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
b7026657 12788
c2783492
MF
12789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
12790$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
12791if test -z "$MKDIR_P"; then
12792 if ${ac_cv_path_mkdir+:} false; then :
12793 $as_echo_n "(cached) " >&6
12794else
12795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12796for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
12797do
12798 IFS=$as_save_IFS
12799 test -z "$as_dir" && as_dir=.
12800 for ac_prog in mkdir gmkdir; do
12801 for ac_exec_ext in '' $ac_executable_extensions; do
12802 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
12803 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
12804 'mkdir (GNU coreutils) '* | \
12805 'mkdir (coreutils) '* | \
12806 'mkdir (fileutils) '4.1*)
12807 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
12808 break 3;;
12809 esac
12810 done
12811 done
12812 done
12813IFS=$as_save_IFS
b7026657 12814
fdd6fa61
AG
12815fi
12816
c2783492
MF
12817 test -d ./--version && rmdir ./--version
12818 if test "${ac_cv_path_mkdir+set}" = set; then
12819 MKDIR_P="$ac_cv_path_mkdir -p"
b5689863
MF
12820 else
12821 # As a last resort, use the slow shell script. Don't cache a
12822 # value for MKDIR_P within a source directory, because that will
12823 # break other packages using the cache if that directory is
12824 # removed, or if the value is a relative name.
12825 MKDIR_P="$ac_install_sh -d"
12826 fi
c2783492 12827fi
b5689863
MF
12828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
12829$as_echo "$MKDIR_P" >&6; }
6bddc3e8 12830
c2783492
MF
12831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12832$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12833set x ${MAKE-make}
12834ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12835if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6bddc3e8
MF
12836 $as_echo_n "(cached) " >&6
12837else
c2783492
MF
12838 cat >conftest.make <<\_ACEOF
12839SHELL = /bin/sh
12840all:
12841 @echo '@@@%%%=$(MAKE)=@@@%%%'
12842_ACEOF
12843# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
12844case `${MAKE-make} -f conftest.make 2>/dev/null` in
12845 *@@@%%%=?*=@@@%%%*)
12846 eval ac_cv_prog_make_${ac_make}_set=yes;;
12847 *)
12848 eval ac_cv_prog_make_${ac_make}_set=no;;
12849esac
12850rm -f conftest.make
12851fi
12852if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12854$as_echo "yes" >&6; }
12855 SET_MAKE=
12856else
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12858$as_echo "no" >&6; }
12859 SET_MAKE="MAKE=${MAKE-make}"
12860fi
6bddc3e8 12861
c2783492
MF
12862rm -rf .tst 2>/dev/null
12863mkdir .tst 2>/dev/null
12864if test -d .tst; then
12865 am__leading_dot=.
12866else
12867 am__leading_dot=_
12868fi
12869rmdir .tst 2>/dev/null
6bddc3e8 12870
c2783492 12871DEPDIR="${am__leading_dot}deps"
6bddc3e8 12872
c2783492 12873ac_config_commands="$ac_config_commands depfiles"
6bddc3e8 12874
c2783492
MF
12875
12876am_make=${MAKE-make}
12877cat > confinc << 'END'
12878am__doit:
12879 @echo this is the am__doit target
12880.PHONY: am__doit
12881END
12882# If we don't find an include directive, just comment out the code.
12883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
12884$as_echo_n "checking for style of include used by $am_make... " >&6; }
12885am__include="#"
12886am__quote=
12887_am_result=none
12888# First try GNU make style include.
12889echo "include confinc" > confmf
12890# Ignore all kinds of additional output from 'make'.
12891case `$am_make -s -f confmf 2> /dev/null` in #(
12892*the\ am__doit\ target*)
12893 am__include=include
12894 am__quote=
12895 _am_result=GNU
12896 ;;
12897esac
12898# Now try BSD make style include.
12899if test "$am__include" = "#"; then
12900 echo '.include "confinc"' > confmf
12901 case `$am_make -s -f confmf 2> /dev/null` in #(
12902 *the\ am__doit\ target*)
12903 am__include=.include
12904 am__quote="\""
12905 _am_result=BSD
12906 ;;
12907 esac
6bddc3e8
MF
12908fi
12909
c2783492
MF
12910
12911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
12912$as_echo "$_am_result" >&6; }
12913rm -f confinc confmf
12914
12915# Check whether --enable-dependency-tracking was given.
12916if test "${enable_dependency_tracking+set}" = set; then :
12917 enableval=$enable_dependency_tracking;
6bddc3e8 12918fi
6bddc3e8 12919
c2783492
MF
12920if test "x$enable_dependency_tracking" != xno; then
12921 am_depcomp="$ac_aux_dir/depcomp"
12922 AMDEPBACKSLASH='\'
12923 am__nodep='_no'
12924fi
12925 if test "x$enable_dependency_tracking" != xno; then
12926 AMDEP_TRUE=
12927 AMDEP_FALSE='#'
6bddc3e8 12928else
c2783492
MF
12929 AMDEP_TRUE='#'
12930 AMDEP_FALSE=
6bddc3e8
MF
12931fi
12932
12933
c2783492
MF
12934# Check whether --enable-silent-rules was given.
12935if test "${enable_silent_rules+set}" = set; then :
12936 enableval=$enable_silent_rules;
5e25901f 12937fi
c2783492
MF
12938
12939case $enable_silent_rules in # (((
12940 yes) AM_DEFAULT_VERBOSITY=0;;
12941 no) AM_DEFAULT_VERBOSITY=1;;
12942 *) AM_DEFAULT_VERBOSITY=1;;
12943esac
12944am_make=${MAKE-make}
12945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
12946$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
12947if ${am_cv_make_support_nested_variables+:} false; then :
5e25901f
MF
12948 $as_echo_n "(cached) " >&6
12949else
c2783492
MF
12950 if $as_echo 'TRUE=$(BAR$(V))
12951BAR0=false
12952BAR1=true
12953V=1
12954am__doit:
12955 @$(TRUE)
12956.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
12957 am_cv_make_support_nested_variables=yes
5e25901f 12958else
c2783492 12959 am_cv_make_support_nested_variables=no
5e25901f 12960fi
c2783492
MF
12961fi
12962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
12963$as_echo "$am_cv_make_support_nested_variables" >&6; }
12964if test $am_cv_make_support_nested_variables = yes; then
12965 AM_V='$(V)'
12966 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
5e25901f 12967else
c2783492
MF
12968 AM_V=$AM_DEFAULT_VERBOSITY
12969 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
5e25901f 12970fi
c2783492 12971AM_BACKSLASH='\'
5e25901f 12972
c2783492
MF
12973if test "`cd $srcdir && pwd`" != "`pwd`"; then
12974 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
12975 # is not polluted with repeated "-I."
12976 am__isrc=' -I$(srcdir)'
12977 # test to see if srcdir already configured
12978 if test -f $srcdir/config.status; then
12979 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
12980 fi
5e25901f
MF
12981fi
12982
c2783492
MF
12983# test whether we have cygpath
12984if test -z "$CYGPATH_W"; then
12985 if (cygpath --version) >/dev/null 2>/dev/null; then
12986 CYGPATH_W='cygpath -w'
12987 else
12988 CYGPATH_W=echo
12989 fi
5e25901f 12990fi
c2783492
MF
12991
12992
12993# Define the identity of the package.
12994 PACKAGE='sim'
12995 VERSION='0'
12996
12997
12998cat >>confdefs.h <<_ACEOF
12999#define PACKAGE "$PACKAGE"
5e25901f 13000_ACEOF
5e25901f 13001
5e25901f 13002
c2783492
MF
13003cat >>confdefs.h <<_ACEOF
13004#define VERSION "$VERSION"
5e25901f 13005_ACEOF
5e25901f 13006
c2783492 13007# Some tools Automake needs.
5e25901f 13008
c2783492
MF
13009ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
13010
13011
13012AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
13013
13014
13015AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
13016
13017
13018AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
13019
13020
13021MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
13022
13023# For better backward compatibility. To be removed once Automake 1.9.x
13024# dies out for good. For more background, see:
13025# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
13026# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
13027mkdir_p='$(MKDIR_P)'
13028
13029# We need awk for the "check" target (and possibly the TAP driver). The
13030# system "awk" is bad on some platforms.
13031# Always define AMTAR for backward compatibility. Yes, it's still used
13032# in the wild :-( We should find a proper way to deprecate it ...
13033AMTAR='$${TAR-tar}'
13034
13035
13036# We'll loop over all known methods to create a tar archive until one works.
13037_am_tools='gnutar pax cpio none'
13038
13039am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5e25901f 13040
5e25901f 13041
c906108c 13042
c906108c 13043
c2783492
MF
13044
13045depcc="$CC" am_compiler_list=
13046
13047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13048$as_echo_n "checking dependency style of $depcc... " >&6; }
13049if ${am_cv_CC_dependencies_compiler_type+:} false; then :
81ecdfbb 13050 $as_echo_n "(cached) " >&6
c906108c 13051else
c2783492
MF
13052 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13053 # We make a subdir and do the tests there. Otherwise we can end up
13054 # making bogus files that we don't know about and never remove. For
13055 # instance it was reported that on HP-UX the gcc test will end up
13056 # making a dummy file named 'D' -- because '-MD' means "put the output
13057 # in D".
13058 rm -rf conftest.dir
13059 mkdir conftest.dir
13060 # Copy depcomp to subdir because otherwise we won't find it if we're
13061 # using a relative directory.
13062 cp "$am_depcomp" conftest.dir
13063 cd conftest.dir
13064 # We will build objects and dependencies in a subdirectory because
13065 # it helps to detect inapplicable dependency modes. For instance
13066 # both Tru64's cc and ICC support -MD to output dependencies as a
13067 # side effect of compilation, but ICC will put the dependencies in
13068 # the current directory while Tru64 will put them in the object
13069 # directory.
13070 mkdir sub
13071
13072 am_cv_CC_dependencies_compiler_type=none
13073 if test "$am_compiler_list" = ""; then
13074 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
b7026657 13075 fi
c2783492
MF
13076 am__universal=false
13077 case " $depcc " in #(
13078 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13079 esac
13080
13081 for depmode in $am_compiler_list; do
13082 # Setup a source with many dependencies, because some compilers
13083 # like to wrap large dependency lists on column 80 (with \), and
13084 # we should not choose a depcomp mode which is confused by this.
13085 #
13086 # We need to recreate these files for each test, as the compiler may
13087 # overwrite some of them when testing with obscure command lines.
13088 # This happens at least with the AIX C compiler.
13089 : > sub/conftest.c
13090 for i in 1 2 3 4 5 6; do
13091 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13092 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13093 # Solaris 10 /bin/sh.
13094 echo '/* dummy */' > sub/conftst$i.h
13095 done
13096 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13097
13098 # We check with '-c' and '-o' for the sake of the "dashmstdout"
13099 # mode. It turns out that the SunPro C++ compiler does not properly
13100 # handle '-M -o', and we need to detect this. Also, some Intel
13101 # versions had trouble with output in subdirs.
13102 am__obj=sub/conftest.${OBJEXT-o}
13103 am__minus_obj="-o $am__obj"
13104 case $depmode in
13105 gcc)
13106 # This depmode causes a compiler race in universal mode.
13107 test "$am__universal" = false || continue
13108 ;;
13109 nosideeffect)
13110 # After this tag, mechanisms are not by side-effect, so they'll
13111 # only be used when explicitly requested.
13112 if test "x$enable_dependency_tracking" = xyes; then
13113 continue
13114 else
13115 break
13116 fi
13117 ;;
13118 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13119 # This compiler won't grok '-c -o', but also, the minuso test has
13120 # not run yet. These depmodes are late enough in the game, and
13121 # so weak that their functioning should not be impacted.
13122 am__obj=conftest.${OBJEXT-o}
13123 am__minus_obj=
13124 ;;
13125 none) break ;;
13126 esac
13127 if depmode=$depmode \
13128 source=sub/conftest.c object=$am__obj \
13129 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13130 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13131 >/dev/null 2>conftest.err &&
13132 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13133 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13134 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13135 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13136 # icc doesn't choke on unknown options, it will just issue warnings
13137 # or remarks (even with -Werror). So we grep stderr for any message
13138 # that says an option was ignored or not supported.
13139 # When given -MP, icc 7.0 and 7.1 complain thusly:
13140 # icc: Command line warning: ignoring option '-M'; no argument required
13141 # The diagnosis changed in icc 8.0:
13142 # icc: Command line remark: option '-MP' not supported
13143 if (grep 'ignoring option' conftest.err ||
13144 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13145 am_cv_CC_dependencies_compiler_type=$depmode
13146 break
13147 fi
13148 fi
81ecdfbb 13149 done
b7026657 13150
c2783492
MF
13151 cd ..
13152 rm -rf conftest.dir
b7026657 13153else
c2783492 13154 am_cv_CC_dependencies_compiler_type=none
b7026657
AC
13155fi
13156
13157fi
c2783492
MF
13158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13159$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13160CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
b7026657 13161
c2783492
MF
13162 if
13163 test "x$enable_dependency_tracking" != xno \
13164 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13165 am__fastdepCC_TRUE=
13166 am__fastdepCC_FALSE='#'
c906108c 13167else
c2783492
MF
13168 am__fastdepCC_TRUE='#'
13169 am__fastdepCC_FALSE=
b7026657
AC
13170fi
13171
c906108c
SS
13172
13173
c2783492
MF
13174# POSIX will say in a future version that running "rm -f" with no argument
13175# is OK; and we want to be able to make that assumption in our Makefile
13176# recipes. So use an aggressive probe to check that the usage we want is
13177# actually supported "in the wild" to an acceptable degree.
13178# See automake bug#10828.
13179# To make any issue more visible, cause the running configure to be aborted
13180# by default if the 'rm' program in use doesn't match our expectations; the
13181# user can still override this though.
13182if rm -f && rm -fr && rm -rf; then : OK; else
13183 cat >&2 <<'END'
13184Oops!
13185
13186Your 'rm' program seems unable to run without file operands specified
13187on the command line, even when the '-f' option is present. This is contrary
13188to the behaviour of most rm programs out there, and not conforming with
13189the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
13190
13191Please tell bug-automake@gnu.org about your system, including the value
13192of your $PATH and any error possibly output before this message. This
13193can help us improve future automake versions.
13194
13195END
13196 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
13197 echo 'Configuration will proceed anyway, since you have set the' >&2
13198 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
13199 echo >&2
5c887dd5 13200 else
c2783492
MF
13201 cat >&2 <<'END'
13202Aborting the configuration process, to ensure you take notice of the issue.
13203
13204You can download and install GNU coreutils to get an 'rm' implementation
13205that behaves properly: <http://www.gnu.org/software/coreutils/>.
13206
13207If you want to complete the configuration process using your problematic
13208'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
13209to "yes", and re-run configure.
13210
13211END
13212 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5c887dd5 13213 fi
c906108c
SS
13214fi
13215
fbe8d1cf
MF
13216# Check whether --enable-silent-rules was given.
13217if test "${enable_silent_rules+set}" = set; then :
13218 enableval=$enable_silent_rules;
13219fi
13220
13221case $enable_silent_rules in # (((
13222 yes) AM_DEFAULT_VERBOSITY=0;;
13223 no) AM_DEFAULT_VERBOSITY=1;;
13224 *) AM_DEFAULT_VERBOSITY=0;;
13225esac
13226am_make=${MAKE-make}
13227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
13228$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
13229if ${am_cv_make_support_nested_variables+:} false; then :
13230 $as_echo_n "(cached) " >&6
13231else
13232 if $as_echo 'TRUE=$(BAR$(V))
13233BAR0=false
13234BAR1=true
13235V=1
13236am__doit:
13237 @$(TRUE)
13238.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
13239 am_cv_make_support_nested_variables=yes
13240else
13241 am_cv_make_support_nested_variables=no
13242fi
13243fi
13244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
13245$as_echo "$am_cv_make_support_nested_variables" >&6; }
13246if test $am_cv_make_support_nested_variables = yes; then
13247 AM_V='$(V)'
13248 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
13249else
13250 AM_V=$AM_DEFAULT_VERBOSITY
13251 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
13252fi
13253AM_BACKSLASH='\'
13254
c906108c
SS
13255
13256# If a cpu ever has more than one simulator to choose from, use
13257# --enable-sim=... to choose.
81ecdfbb
RW
13258# Check whether --enable-sim was given.
13259if test "${enable_sim+set}" = set; then :
13260 enableval=$enable_sim; case "${enableval}" in
c906108c 13261yes | no) ;;
d0ac1c44 13262*) as_fn_error $? "bad value ${enableval} given for --enable-sim option" "$LINENO" 5 ;;
c906108c 13263esac
81ecdfbb
RW
13264fi
13265
c906108c 13266
26da232c
MF
13267# Check whether --enable-example-sims was given.
13268if test "${enable_example_sims+set}" = set; then :
13269 enableval=$enable_example_sims;
13270fi
13271
13272
a0e674c1
MF
13273# Check whether --enable-targets was given.
13274if test "${enable_targets+set}" = set; then :
13275 enableval=$enable_targets; case "${enableval}" in
13276 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
13277 ;;
13278 no) enable_targets= ;;
13279 *) enable_targets=$enableval ;;
13280esac
13281fi
13282
13283
13284SIM_PRIMARY_TARGET=
13285
13286
36bb57e4
MF
13287SIM_SUBDIRS=
13288
13289
13290SIM_COMMON_BUILD_TRUE=
13291SIM_COMMON_BUILD_FALSE='#'
13292
13293
13294
13295ac_config_files="$ac_config_files Make-common.sim:common/Make-common.in"
13296
a0e674c1
MF
13297
13298
bc56166f 13299
119da465 13300if test "${enable_sim}" != no; then
3e8bb3e9 13301 sim_igen=no
a0e674c1
MF
13302 for targ in `echo $target $enable_targets | sed 's/,/ /g'`
13303 do
bc56166f 13304 case "${targ}" in
a0e674c1
MF
13305 all|aarch64*-*-*)
13306 if test "${targ}" = "${target}"; then
13307 SIM_PRIMARY_TARGET=aarch64
13308 fi
36bb57e4 13309 ac_config_files="$ac_config_files aarch64/Makefile.sim:aarch64/Makefile.in"
2e8cf49e 13310
36bb57e4 13311 ac_config_commands="$ac_config_commands aarch64/Makefile"
2e8cf49e 13312
36bb57e4 13313 as_fn_append SIM_SUBDIRS " aarch64"
fdd6fa61 13314
bc56166f
MF
13315 ac_config_commands="$ac_config_commands depdir-aarch64"
13316
13317
a0e674c1 13318
3e8bb3e9 13319 ;;
a0e674c1
MF
13320 esac
13321
bc56166f 13322 case "${targ}" in
a0e674c1
MF
13323 all|arm*-*-*)
13324 if test "${targ}" = "${target}"; then
13325 SIM_PRIMARY_TARGET=arm
13326 fi
36bb57e4
MF
13327 ac_config_files="$ac_config_files arm/Makefile.sim:arm/Makefile.in"
13328
13329 ac_config_commands="$ac_config_commands arm/Makefile"
13330
13331 as_fn_append SIM_SUBDIRS " arm"
bc56166f
MF
13332
13333 ac_config_commands="$ac_config_commands depdir-arm"
13334
fdd6fa61 13335
a0e674c1 13336
3e8bb3e9 13337 ;;
a0e674c1
MF
13338 esac
13339
bc56166f 13340 case "${targ}" in
a0e674c1
MF
13341 all|avr*-*-*)
13342 if test "${targ}" = "${target}"; then
13343 SIM_PRIMARY_TARGET=avr
13344 fi
36bb57e4
MF
13345 ac_config_files="$ac_config_files avr/Makefile.sim:avr/Makefile.in"
13346
13347 ac_config_commands="$ac_config_commands avr/Makefile"
13348
13349 as_fn_append SIM_SUBDIRS " avr"
bc56166f
MF
13350
13351 ac_config_commands="$ac_config_commands depdir-avr"
13352
0cd79707 13353
a0e674c1 13354
3e8bb3e9 13355 ;;
a0e674c1
MF
13356 esac
13357
bc56166f 13358 case "${targ}" in
a0e674c1
MF
13359 all|bfin-*-*)
13360 if test "${targ}" = "${target}"; then
13361 SIM_PRIMARY_TARGET=bfin
13362 fi
36bb57e4
MF
13363
13364
13365subdirs="$subdirs bfin"
13366
bc56166f
MF
13367
13368 ac_config_commands="$ac_config_commands depdir-bfin"
13369
ddd44b70 13370
a0e674c1 13371
3e8bb3e9 13372 ;;
a0e674c1
MF
13373 esac
13374
bc56166f 13375 case "${targ}" in
a0e674c1
MF
13376 all|bpf-*-*)
13377 if test "${targ}" = "${target}"; then
13378 SIM_PRIMARY_TARGET=bpf
13379 fi
36bb57e4
MF
13380 subdirs="$subdirs bpf"
13381
bc56166f
MF
13382
13383 ac_config_commands="$ac_config_commands depdir-bpf"
13384
ddd44b70 13385
a0e674c1 13386
3e8bb3e9 13387 ;;
a0e674c1
MF
13388 esac
13389
bc56166f 13390 case "${targ}" in
a0e674c1
MF
13391 all|cr16*-*-*)
13392 if test "${targ}" = "${target}"; then
13393 SIM_PRIMARY_TARGET=cr16
13394 fi
36bb57e4
MF
13395 ac_config_files="$ac_config_files cr16/Makefile.sim:cr16/Makefile.in"
13396
13397 ac_config_commands="$ac_config_commands cr16/Makefile"
13398
13399 as_fn_append SIM_SUBDIRS " cr16"
bc56166f
MF
13400
13401 ac_config_commands="$ac_config_commands depdir-cr16"
13402
ddd44b70 13403
a0e674c1 13404
3e8bb3e9 13405 ;;
a0e674c1
MF
13406 esac
13407
bc56166f 13408 case "${targ}" in
a0e674c1
MF
13409 all|cris-*-* | crisv32-*-*)
13410 if test "${targ}" = "${target}"; then
13411 SIM_PRIMARY_TARGET=cris
13412 fi
36bb57e4
MF
13413 subdirs="$subdirs cris"
13414
bc56166f
MF
13415
13416 ac_config_commands="$ac_config_commands depdir-cris"
13417
b9249c46 13418
a0e674c1 13419
3e8bb3e9 13420 ;;
a0e674c1
MF
13421 esac
13422
bc56166f 13423 case "${targ}" in
a0e674c1
MF
13424 all|d10v-*-*)
13425 if test "${targ}" = "${target}"; then
13426 SIM_PRIMARY_TARGET=d10v
13427 fi
36bb57e4
MF
13428 ac_config_files="$ac_config_files d10v/Makefile.sim:d10v/Makefile.in"
13429
13430 ac_config_commands="$ac_config_commands d10v/Makefile"
13431
13432 as_fn_append SIM_SUBDIRS " d10v"
bc56166f
MF
13433
13434 ac_config_commands="$ac_config_commands depdir-d10v"
13435
b9249c46 13436
a0e674c1 13437
3e8bb3e9 13438 ;;
a0e674c1
MF
13439 esac
13440
bc56166f 13441 case "${targ}" in
a0e674c1
MF
13442 all|frv-*-*)
13443 if test "${targ}" = "${target}"; then
13444 SIM_PRIMARY_TARGET=frv
13445 fi
36bb57e4
MF
13446 subdirs="$subdirs frv"
13447
bc56166f
MF
13448
13449 ac_config_commands="$ac_config_commands depdir-frv"
13450
b9249c46 13451
a0e674c1 13452
36bb57e4
MF
13453 ;;
13454 esac
13455
13456 case "${targ}" in
13457 all|ft32-*-*)
13458 if test "${targ}" = "${target}"; then
13459 SIM_PRIMARY_TARGET=ft32
13460 fi
13461 ac_config_files="$ac_config_files ft32/Makefile.sim:ft32/Makefile.in"
13462
13463 ac_config_commands="$ac_config_commands ft32/Makefile"
13464
13465 as_fn_append SIM_SUBDIRS " ft32"
13466
13467 ac_config_commands="$ac_config_commands depdir-ft32"
13468
13469
13470
3e8bb3e9 13471 ;;
a0e674c1
MF
13472 esac
13473
bc56166f 13474 case "${targ}" in
a0e674c1
MF
13475 all|h8300*-*-*)
13476 if test "${targ}" = "${target}"; then
13477 SIM_PRIMARY_TARGET=h8300
13478 fi
36bb57e4
MF
13479 ac_config_files="$ac_config_files h8300/Makefile.sim:h8300/Makefile.in"
13480
13481 ac_config_commands="$ac_config_commands h8300/Makefile"
13482
13483 as_fn_append SIM_SUBDIRS " h8300"
bc56166f
MF
13484
13485 ac_config_commands="$ac_config_commands depdir-h8300"
13486
119da465 13487
a0e674c1 13488
3e8bb3e9 13489 ;;
a0e674c1
MF
13490 esac
13491
bc56166f 13492 case "${targ}" in
a0e674c1
MF
13493 all|iq2000-*-*)
13494 if test "${targ}" = "${target}"; then
13495 SIM_PRIMARY_TARGET=iq2000
13496 fi
36bb57e4
MF
13497 subdirs="$subdirs iq2000"
13498
bc56166f
MF
13499
13500 ac_config_commands="$ac_config_commands depdir-iq2000"
13501
119da465 13502
a0e674c1 13503
3e8bb3e9 13504 ;;
a0e674c1
MF
13505 esac
13506
bc56166f 13507 case "${targ}" in
a0e674c1
MF
13508 all|lm32-*-*)
13509 if test "${targ}" = "${target}"; then
13510 SIM_PRIMARY_TARGET=lm32
13511 fi
36bb57e4
MF
13512 subdirs="$subdirs lm32"
13513
bc56166f
MF
13514
13515 ac_config_commands="$ac_config_commands depdir-lm32"
13516
119da465 13517
a0e674c1 13518
3e8bb3e9 13519 ;;
a0e674c1
MF
13520 esac
13521
bc56166f 13522 case "${targ}" in
a0e674c1
MF
13523 all|m32c-*-*)
13524 if test "${targ}" = "${target}"; then
13525 SIM_PRIMARY_TARGET=m32c
13526 fi
36bb57e4
MF
13527 ac_config_files="$ac_config_files m32c/Makefile.sim:m32c/Makefile.in"
13528
13529 ac_config_commands="$ac_config_commands m32c/Makefile"
13530
13531 as_fn_append SIM_SUBDIRS " m32c"
bc56166f
MF
13532
13533 ac_config_commands="$ac_config_commands depdir-m32c"
13534
87326c78 13535
a0e674c1 13536
3e8bb3e9 13537 ;;
a0e674c1
MF
13538 esac
13539
bc56166f 13540 case "${targ}" in
a0e674c1
MF
13541 all|m32r-*-*)
13542 if test "${targ}" = "${target}"; then
13543 SIM_PRIMARY_TARGET=m32r
13544 fi
36bb57e4
MF
13545 subdirs="$subdirs m32r"
13546
bc56166f
MF
13547
13548 ac_config_commands="$ac_config_commands depdir-m32r"
13549
87326c78 13550
a0e674c1 13551
3e8bb3e9 13552 ;;
a0e674c1
MF
13553 esac
13554
bc56166f 13555 case "${targ}" in
a0e674c1
MF
13556 all|m68hc11-*-*|m6811-*-*)
13557 if test "${targ}" = "${target}"; then
13558 SIM_PRIMARY_TARGET=m68hc11
13559 fi
36bb57e4
MF
13560 ac_config_files="$ac_config_files m68hc11/Makefile.sim:m68hc11/Makefile.in"
13561
13562 ac_config_commands="$ac_config_commands m68hc11/Makefile"
13563
13564 as_fn_append SIM_SUBDIRS " m68hc11"
bc56166f
MF
13565
13566 ac_config_commands="$ac_config_commands depdir-m68hc11"
13567
87326c78 13568
a0e674c1 13569
3e8bb3e9 13570 ;;
a0e674c1
MF
13571 esac
13572
bc56166f 13573 case "${targ}" in
a0e674c1
MF
13574 all|mcore-*-*)
13575 if test "${targ}" = "${target}"; then
13576 SIM_PRIMARY_TARGET=mcore
13577 fi
36bb57e4
MF
13578 ac_config_files="$ac_config_files mcore/Makefile.sim:mcore/Makefile.in"
13579
13580 ac_config_commands="$ac_config_commands mcore/Makefile"
13581
13582 as_fn_append SIM_SUBDIRS " mcore"
bc56166f
MF
13583
13584 ac_config_commands="$ac_config_commands depdir-mcore"
13585
119da465 13586
a0e674c1 13587
3e8bb3e9 13588 ;;
a0e674c1
MF
13589 esac
13590
bc56166f 13591 case "${targ}" in
a0e674c1
MF
13592 all|microblaze-*-*)
13593 if test "${targ}" = "${target}"; then
13594 SIM_PRIMARY_TARGET=microblaze
13595 fi
36bb57e4
MF
13596 ac_config_files="$ac_config_files microblaze/Makefile.sim:microblaze/Makefile.in"
13597
13598 ac_config_commands="$ac_config_commands microblaze/Makefile"
13599
13600 as_fn_append SIM_SUBDIRS " microblaze"
bc56166f
MF
13601
13602 ac_config_commands="$ac_config_commands depdir-microblaze"
13603
119da465 13604
a0e674c1 13605
3e8bb3e9 13606 ;;
a0e674c1
MF
13607 esac
13608
bc56166f 13609 case "${targ}" in
a0e674c1
MF
13610 all|mips*-*-*)
13611 if test "${targ}" = "${target}"; then
13612 SIM_PRIMARY_TARGET=mips
13613 fi
36bb57e4
MF
13614 subdirs="$subdirs mips"
13615
bc56166f
MF
13616
13617 ac_config_commands="$ac_config_commands depdir-mips"
13618
119da465 13619
3e8bb3e9
MF
13620 sim_igen=yes
13621 ;;
a0e674c1
MF
13622 esac
13623
bc56166f 13624 case "${targ}" in
a0e674c1
MF
13625 all|mn10300*-*-*)
13626 if test "${targ}" = "${target}"; then
13627 SIM_PRIMARY_TARGET=mn10300
13628 fi
36bb57e4
MF
13629 subdirs="$subdirs mn10300"
13630
bc56166f
MF
13631
13632 ac_config_commands="$ac_config_commands depdir-mn10300"
13633
119da465 13634
3e8bb3e9
MF
13635 sim_igen=yes
13636 ;;
a0e674c1
MF
13637 esac
13638
bc56166f 13639 case "${targ}" in
a0e674c1
MF
13640 all|moxie-*-*)
13641 if test "${targ}" = "${target}"; then
13642 SIM_PRIMARY_TARGET=moxie
13643 fi
36bb57e4
MF
13644 ac_config_files="$ac_config_files moxie/Makefile.sim:moxie/Makefile.in"
13645
13646 ac_config_commands="$ac_config_commands moxie/Makefile"
13647
13648 as_fn_append SIM_SUBDIRS " moxie"
bc56166f
MF
13649
13650 ac_config_commands="$ac_config_commands depdir-moxie"
13651
119da465 13652
a0e674c1 13653
3e8bb3e9 13654 ;;
a0e674c1
MF
13655 esac
13656
bc56166f 13657 case "${targ}" in
a0e674c1
MF
13658 all|msp430*-*-*)
13659 if test "${targ}" = "${target}"; then
13660 SIM_PRIMARY_TARGET=msp430
13661 fi
36bb57e4
MF
13662 ac_config_files="$ac_config_files msp430/Makefile.sim:msp430/Makefile.in"
13663
13664 ac_config_commands="$ac_config_commands msp430/Makefile"
13665
13666 as_fn_append SIM_SUBDIRS " msp430"
bc56166f
MF
13667
13668 ac_config_commands="$ac_config_commands depdir-msp430"
13669
119da465 13670
a0e674c1 13671
3e8bb3e9 13672 ;;
a0e674c1
MF
13673 esac
13674
bc56166f 13675 case "${targ}" in
a0e674c1
MF
13676 all|or1k-*-* | or1knd-*-*)
13677 if test "${targ}" = "${target}"; then
13678 SIM_PRIMARY_TARGET=or1k
13679 fi
36bb57e4
MF
13680 subdirs="$subdirs or1k"
13681
bc56166f
MF
13682
13683 ac_config_commands="$ac_config_commands depdir-or1k"
13684
119da465 13685
a0e674c1 13686
3e8bb3e9 13687 ;;
a0e674c1
MF
13688 esac
13689
bc56166f 13690 case "${targ}" in
a0e674c1
MF
13691 all|pru*-*-*)
13692 if test "${targ}" = "${target}"; then
13693 SIM_PRIMARY_TARGET=pru
13694 fi
36bb57e4
MF
13695 ac_config_files="$ac_config_files pru/Makefile.sim:pru/Makefile.in"
13696
13697 ac_config_commands="$ac_config_commands pru/Makefile"
13698
13699 as_fn_append SIM_SUBDIRS " pru"
bc56166f
MF
13700
13701 ac_config_commands="$ac_config_commands depdir-pru"
13702
119da465 13703
a0e674c1 13704
3e8bb3e9 13705 ;;
a0e674c1
MF
13706 esac
13707
bc56166f 13708 case "${targ}" in
a0e674c1
MF
13709 all|riscv*-*-*)
13710 if test "${targ}" = "${target}"; then
13711 SIM_PRIMARY_TARGET=riscv
13712 fi
36bb57e4
MF
13713 subdirs="$subdirs riscv"
13714
bc56166f
MF
13715
13716 ac_config_commands="$ac_config_commands depdir-riscv"
13717
119da465 13718
a0e674c1 13719
3e8bb3e9 13720 ;;
a0e674c1
MF
13721 esac
13722
bc56166f 13723 case "${targ}" in
a0e674c1
MF
13724 all|rl78-*-*)
13725 if test "${targ}" = "${target}"; then
13726 SIM_PRIMARY_TARGET=rl78
13727 fi
36bb57e4
MF
13728 ac_config_files="$ac_config_files rl78/Makefile.sim:rl78/Makefile.in"
13729
13730 ac_config_commands="$ac_config_commands rl78/Makefile"
13731
13732 as_fn_append SIM_SUBDIRS " rl78"
bc56166f
MF
13733
13734 ac_config_commands="$ac_config_commands depdir-rl78"
13735
f46e4eb7 13736
a0e674c1 13737
3e8bb3e9 13738 ;;
a0e674c1
MF
13739 esac
13740
bc56166f 13741 case "${targ}" in
a0e674c1
MF
13742 all|rx-*-*)
13743 if test "${targ}" = "${target}"; then
13744 SIM_PRIMARY_TARGET=rx
13745 fi
e173c80f 13746 ac_config_files="$ac_config_files rx/Makefile.sim:rx/Makefile.in"
36bb57e4 13747
e173c80f
MF
13748 ac_config_commands="$ac_config_commands rx/Makefile"
13749
13750 as_fn_append SIM_SUBDIRS " rx"
bc56166f
MF
13751
13752 ac_config_commands="$ac_config_commands depdir-rx"
13753
f46e4eb7 13754
a0e674c1 13755
3e8bb3e9 13756 ;;
a0e674c1
MF
13757 esac
13758
bc56166f 13759 case "${targ}" in
a0e674c1
MF
13760 all|sh*-*-*)
13761 if test "${targ}" = "${target}"; then
13762 SIM_PRIMARY_TARGET=sh
13763 fi
36bb57e4
MF
13764 ac_config_files="$ac_config_files sh/Makefile.sim:sh/Makefile.in"
13765
13766 ac_config_commands="$ac_config_commands sh/Makefile"
13767
13768 as_fn_append SIM_SUBDIRS " sh"
bc56166f
MF
13769
13770 ac_config_commands="$ac_config_commands depdir-sh"
13771
f46e4eb7 13772
a0e674c1 13773
3e8bb3e9 13774 ;;
a0e674c1
MF
13775 esac
13776
bc56166f 13777 case "${targ}" in
a0e674c1
MF
13778 all|sparc-*-rtems*|sparc-*-elf*)
13779 if test "${targ}" = "${target}"; then
13780 SIM_PRIMARY_TARGET=erc32
13781 fi
36bb57e4
MF
13782 subdirs="$subdirs erc32"
13783
bc56166f
MF
13784
13785 ac_config_commands="$ac_config_commands depdir-erc32"
13786
119da465 13787
a0e674c1 13788
3e8bb3e9 13789 ;;
a0e674c1
MF
13790 esac
13791
bc56166f 13792 case "${targ}" in
a0e674c1
MF
13793 all|powerpc*-*-*)
13794 if test "${targ}" = "${target}"; then
13795 SIM_PRIMARY_TARGET=ppc
13796 fi
36bb57e4 13797 subdirs="$subdirs ppc"
bc56166f 13798
bc56166f 13799
36bb57e4 13800 ac_config_commands="$ac_config_commands depdir-ppc"
bc56166f 13801
119da465 13802
a0e674c1 13803
3e8bb3e9 13804 ;;
a0e674c1
MF
13805 esac
13806
bc56166f 13807 case "${targ}" in
a0e674c1
MF
13808 all|v850*-*-*)
13809 if test "${targ}" = "${target}"; then
13810 SIM_PRIMARY_TARGET=v850
13811 fi
36bb57e4
MF
13812 subdirs="$subdirs v850"
13813
bc56166f
MF
13814
13815 ac_config_commands="$ac_config_commands depdir-v850"
13816
119da465 13817
3e8bb3e9
MF
13818 sim_igen=yes
13819 ;;
13820 esac
a0e674c1
MF
13821
13822 done
26da232c
MF
13823
13824 if test "x${enable_example_sims}" = xyes; then
36bb57e4
MF
13825 ac_config_files="$ac_config_files example-synacor/Makefile.sim:example-synacor/Makefile.in"
13826
13827 ac_config_commands="$ac_config_commands example-synacor/Makefile"
13828
13829 as_fn_append SIM_SUBDIRS " example-synacor"
bc56166f
MF
13830
13831 ac_config_commands="$ac_config_commands depdir-example-synacor"
13832
26da232c
MF
13833
13834 fi
b6b1c790
MF
13835fi
13836 if test "$sim_igen" = "yes"; then
13837 SIM_ENABLE_IGEN_TRUE=
13838 SIM_ENABLE_IGEN_FALSE='#'
13839else
13840 SIM_ENABLE_IGEN_TRUE='#'
13841 SIM_ENABLE_IGEN_FALSE=
c906108c
SS
13842fi
13843
b6b1c790 13844
ba307cdd
MF
13845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim alignment" >&5
13846$as_echo_n "checking whether to force sim alignment... " >&6; }
13847sim_alignment=
13848# Check whether --enable-sim-alignment was given.
13849if test "${enable_sim_alignment+set}" = set; then :
13850 enableval=$enable_sim_alignment; case "${enableval}" in
13851 yes | strict | STRICT) sim_alignment="STRICT_ALIGNMENT";;
13852 no | nonstrict | NONSTRICT) sim_alignment="NONSTRICT_ALIGNMENT";;
13853 forced | FORCED) sim_alignment="FORCED_ALIGNMENT";;
13854 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5;;
13855esac
13856fi
13857
13858cat >>confdefs.h <<_ACEOF
13859#define WITH_ALIGNMENT ${sim_alignment:-0}
13860_ACEOF
13861
13862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
13863$as_echo "${sim_alignment:-no}" >&6; }
13864
dba333c1
MF
13865
13866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5
13867$as_echo_n "checking whether to enable sim asserts... " >&6; }
13868sim_assert="1"
13869# Check whether --enable-sim-assert was given.
13870if test "${enable_sim_assert+set}" = set; then :
13871 enableval=$enable_sim_assert; case "${enableval}" in
13872 yes) sim_assert="1";;
13873 no) sim_assert="0";;
13874 *) as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;;
13875esac
13876fi
13877
13878cat >>confdefs.h <<_ACEOF
13879#define WITH_ASSERT $sim_assert
13880_ACEOF
13881
13882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5
13883$as_echo "$sim_assert" >&6; }
13884
1bf5c342
MF
13885
13886cgen_maint=no
13887cgen=guile
13888cgendir='$(srcdir)/../../cgen'
13889# Check whether --enable-cgen-maint was given.
13890if test "${enable_cgen_maint+set}" = set; then :
13891 enableval=$enable_cgen_maint; case "${enableval}" in
13892 yes) cgen_maint=yes ;;
13893 no) cgen_maint=no ;;
13894 *)
13895 # Argument is a directory where cgen can be found. In some
13896 # future world cgen could be installable, but right now this
13897 # is not the case. Instead we assume the directory is a path
13898 # to the cgen source tree.
13899 cgen_maint=yes
13900 if test -r ${enableval}/iformat.scm; then
13901 # This looks like a cgen source tree.
13902 cgendir=${enableval}
13903 else
13904 as_fn_error $? "${enableval} doesn't look like a cgen source tree" "$LINENO" 5
13905 fi
13906 ;;
13907esac
13908fi
13909if test x${cgen_maint} != xno ; then
13910 CGEN_MAINT=''
13911else
13912 CGEN_MAINT='#'
13913fi
13914
13915
13916
13917
04381273
MF
13918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5
13919$as_echo_n "checking for sim debug setting... " >&6; }
13920sim_debug="0"
13921# Check whether --enable-sim-debug was given.
13922if test "${enable_sim_debug+set}" = set; then :
13923 enableval=$enable_sim_debug; case "${enableval}" in
13924 yes) sim_debug="7";;
13925 no) sim_debug="0";;
13926 *) sim_debug="($enableval)";;
13927esac
13928fi
13929if test "$sim_debug" != "0"; then
13930
13931cat >>confdefs.h <<_ACEOF
13932#define DEBUG $sim_debug
13933_ACEOF
13934
13935fi
13936
13937cat >>confdefs.h <<_ACEOF
13938#define WITH_DEBUG $sim_debug
13939_ACEOF
13940
13941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5
13942$as_echo "$sim_debug" >&6; }
f9a4d543
MF
13943
13944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim endianness" >&5
13945$as_echo_n "checking whether to force sim endianness... " >&6; }
13946sim_endian=
13947# Check whether --enable-sim-endian was given.
13948if test "${enable_sim_endian+set}" = set; then :
13949 enableval=$enable_sim_endian; case "${enableval}" in
13950 b*|B*) sim_endian="BFD_ENDIAN_BIG";;
13951 l*|L*) sim_endian="BFD_ENDIAN_LITTLE";;
13952 yes | no) ;;
13953 *) as_fn_error $? "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5;;
13954esac
13955fi
13956
13957cat >>confdefs.h <<_ACEOF
13958#define WITH_TARGET_BYTE_ORDER ${sim_endian:-BFD_ENDIAN_UNKNOWN}
13959_ACEOF
13960
13961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
13962$as_echo "${sim_alignment:-no}" >&6; }
04381273 13963
dba333c1 13964
5ea45474
MF
13965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5
13966$as_echo_n "checking default sim environment setting... " >&6; }
13967sim_environment="ALL_ENVIRONMENT"
13968# Check whether --enable-sim-environment was given.
13969if test "${enable_sim_environment+set}" = set; then :
13970 enableval=$enable_sim_environment; case "${enableval}" in
13971 all | ALL) sim_environment="ALL_ENVIRONMENT";;
13972 user | USER) sim_environment="USER_ENVIRONMENT";;
13973 virtual | VIRTUAL) sim_environment="VIRTUAL_ENVIRONMENT";;
13974 operating | OPERATING) sim_environment="OPERATING_ENVIRONMENT";;
13975 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;;
13976esac
13977fi
13978
13979cat >>confdefs.h <<_ACEOF
13980#define WITH_ENVIRONMENT $sim_environment
13981_ACEOF
13982
13983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5
13984$as_echo "$sim_environment" >&6; }
13985
456ef1c1
MF
13986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim hardware settings" >&5
13987$as_echo_n "checking for sim hardware settings... " >&6; }
13988# Check whether --enable-sim-hardware was given.
13989if test "${enable_sim_hardware+set}" = set; then :
13990 enableval=$enable_sim_hardware;
13991else
13992 enable_sim_hardware="yes"
13993fi
13994
13995sim_hw_sockser=
13996if test "$enable_sim_hardware" = no; then
13997 sim_hw_cflags="-DWITH_HW=0"
13998elif test "$enable_sim_hardware" = yes; then
13999 sim_hw_cflags="-DWITH_HW=1"
14000 # mingw does not support sockser
14001 case ${host} in
14002 *mingw*) ;;
14003 *) # TODO: We don't add dv-sockser to sim_hw as it is not a "real" device
14004 # that you instatiate. Instead, other code will call into it directly.
14005 # At some point, we should convert it over.
14006 sim_hw_sockser="dv-sockser.o"
14007 sim_hw_cflags="$sim_hw_cflags -DHAVE_DV_SOCKSER"
14008 ;;
14009 esac
14010else
14011 as_fn_error $? "unknown argument \"$enable_sim_hardware\"" "$LINENO" 5
14012fi
14013 if test "$enable_sim_hardware" = "yes"; then
14014 SIM_ENABLE_HW_TRUE=
14015 SIM_ENABLE_HW_FALSE='#'
14016else
14017 SIM_ENABLE_HW_TRUE='#'
14018 SIM_ENABLE_HW_FALSE=
14019fi
14020
14021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_sim_hardware}" >&5
14022$as_echo "${enable_sim_hardware}" >&6; }
14023
14024
14025
d73f39ee
MF
14026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking sim inline settings" >&5
14027$as_echo_n "checking sim inline settings... " >&6; }
14028sim_inline="-DDEFAULT_INLINE=0"
14029# Check whether --enable-sim-inline was given.
14030if test "${enable_sim_inline+set}" = set; then :
14031 enableval=$enable_sim_inline; sim_inline=""
14032case "$enableval" in
14033 no) sim_inline="-DDEFAULT_INLINE=0";;
14034 0) sim_inline="-DDEFAULT_INLINE=0";;
14035 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
14036 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
14037 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
14038 new_flag=""
14039 case "$x" in
14040 *_INLINE=*) new_flag="-D$x";;
14041 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
14042 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
14043 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
14044 esac
14045 if test x"$sim_inline" = x""; then
14046 sim_inline="$new_flag"
14047 else
14048 sim_inline="$sim_inline $new_flag"
14049 fi
14050 done;;
14051esac
14052
14053fi
14054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_inline" >&5
14055$as_echo "$sim_inline" >&6; }
14056SIM_INLINE=$sim_inline
14057
14058
04381273
MF
14059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5
14060$as_echo_n "checking for sim profile settings... " >&6; }
14061profile="1"
14062sim_profile="-1"
14063# Check whether --enable-sim-profile was given.
14064if test "${enable_sim_profile+set}" = set; then :
14065 enableval=$enable_sim_profile; case "${enableval}" in
14066 yes) profile="1" sim_profile="-1";;
14067 no) profile="0" sim_profile="0";;
14068 [-0-9]*)
14069 profile="(${enableval})" sim_profile="(${enableval})";;
14070 [a-z]*)
14071 profile="1"
14072 sim_profile=""
14073 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
14074 if test x"$sim_profile" = x; then
14075 sim_profile="(PROFILE_$x"
14076 else
14077 sim_profile="${sim_profile}|PROFILE_$x"
14078 fi
14079 done
14080 sim_profile="$sim_profile)" ;;
14081esac
14082fi
14083
14084cat >>confdefs.h <<_ACEOF
14085#define PROFILE $profile
14086_ACEOF
14087
14088
14089cat >>confdefs.h <<_ACEOF
14090#define WITH_PROFILE $sim_profile
14091_ACEOF
14092
14093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5
14094$as_echo "$sim_profile" >&6; }
14095
14096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5
14097$as_echo_n "checking for sim stdio debug behavior... " >&6; }
14098sim_stdio="0"
14099# Check whether --enable-sim-stdio was given.
14100if test "${enable_sim_stdio+set}" = set; then :
14101 enableval=$enable_sim_stdio; case "${enableval}" in
14102 yes) sim_stdio="DO_USE_STDIO";;
14103 no) sim_stdio="DONT_USE_STDIO";;
14104 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;;
14105esac
14106fi
14107
14108cat >>confdefs.h <<_ACEOF
14109#define WITH_STDIO $sim_stdio
14110_ACEOF
14111
14112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5
14113$as_echo "$sim_stdio" >&6; }
14114
14115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5
14116$as_echo_n "checking for sim trace settings... " >&6; }
14117sim_trace="~TRACE_debug"
14118# Check whether --enable-sim-trace was given.
14119if test "${enable_sim_trace+set}" = set; then :
14120 enableval=$enable_sim_trace; case "${enableval}" in
14121 yes) sim_trace="-1";;
14122 no) sim_trace="0";;
14123 [-0-9]*)
14124 sim_trace="'(${enableval})'";;
14125 [[:lower:]]*)
14126 sim_trace=""
14127 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
14128 if test x"$sim_trace" = x; then
14129 sim_trace="(TRACE_$x"
14130 else
14131 sim_trace="${sim_trace}|TRACE_$x"
14132 fi
14133 done
14134 sim_trace="$sim_trace)" ;;
14135esac
14136fi
14137
14138cat >>confdefs.h <<_ACEOF
14139#define WITH_TRACE $sim_trace
14140_ACEOF
14141
14142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5
14143$as_echo "$sim_trace" >&6; }
14144
5ea45474 14145
47ce766a
MF
14146# Check whether --enable-werror was given.
14147if test "${enable_werror+set}" = set; then :
14148 enableval=$enable_werror; case "${enableval}" in
14149 yes | y) ERROR_ON_WARNING="yes" ;;
14150 no | n) ERROR_ON_WARNING="no" ;;
14151 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
14152 esac
14153fi
14154
14155
14156if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
14157 ERROR_ON_WARNING=yes
14158fi
14159
14160WERROR_CFLAGS=""
14161if test "${ERROR_ON_WARNING}" = yes ; then
14162 WERROR_CFLAGS="-Werror"
14163fi
14164
14165build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
14166-Wpointer-sign \
14167-Wno-unused -Wunused-value -Wunused-function \
14168-Wno-switch -Wno-char-subscripts -Wmissing-prototypes
14169-Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
14170-Wold-style-declaration -Wold-style-definition"
14171
14172# Enable -Wno-format by default when using gcc on mingw since many
14173# GCC versions complain about %I64.
14174case "${host}" in
14175 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
14176 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
14177esac
14178
14179# Check whether --enable-build-warnings was given.
14180if test "${enable_build_warnings+set}" = set; then :
14181 enableval=$enable_build_warnings; case "${enableval}" in
14182 yes) ;;
14183 no) build_warnings="-w";;
14184 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14185 build_warnings="${build_warnings} ${t}";;
14186 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14187 build_warnings="${t} ${build_warnings}";;
14188 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14189esac
14190if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
14191 echo "Setting compiler warning flags = $build_warnings" 6>&1
14192fi
14193fi
14194# Check whether --enable-sim-build-warnings was given.
14195if test "${enable_sim_build_warnings+set}" = set; then :
14196 enableval=$enable_sim_build_warnings; case "${enableval}" in
14197 yes) ;;
14198 no) build_warnings="-w";;
14199 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14200 build_warnings="${build_warnings} ${t}";;
14201 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14202 build_warnings="${t} ${build_warnings}";;
14203 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14204esac
14205if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
14206 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
14207fi
14208fi
14209WARN_CFLAGS=""
14210if test "x${build_warnings}" != x -a "x$GCC" = xyes
14211then
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
14213$as_echo_n "checking compiler warning flags... " >&6; }
14214 # Separate out the -Werror flag as some files just cannot be
14215 # compiled with it enabled.
14216 for w in ${build_warnings}; do
14217 case $w in
14218 -Werr*) WERROR_CFLAGS=-Werror ;;
14219 *) # Check that GCC accepts it
14220 saved_CFLAGS="$CFLAGS"
14221 CFLAGS="$CFLAGS -Werror $w"
14222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14223/* end confdefs.h. */
14224
14225int
14226main ()
14227{
14228
14229 ;
14230 return 0;
14231}
14232_ACEOF
14233if ac_fn_c_try_compile "$LINENO"; then :
14234 WARN_CFLAGS="${WARN_CFLAGS} $w"
14235fi
14236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14237 CFLAGS="$saved_CFLAGS"
14238 esac
14239 done
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
14241$as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
14242fi
14243
14244
36bb57e4
MF
14245
14246
14247
14248
14249
14250
e173c80f
MF
14251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim rx should be cycle accurate" >&5
14252$as_echo_n "checking whether sim rx should be cycle accurate... " >&6; }
14253# Check whether --enable-sim-rx-cycle-accurate was given.
14254if test "${enable_sim_rx_cycle_accurate+set}" = set; then :
14255 enableval=$enable_sim_rx_cycle_accurate; case "${enableval}" in
14256yes | no) ;;
14257*) as_fn_error $? "bad value ${enableval} given for --enable-sim-rx-cycle-accurate option" "$LINENO" 5 ;;
14258esac
14259fi
14260
14261if test "x${enable_sim_rx_cycle_accurate}" != xno; then
14262 SIM_RX_CYCLE_ACCURATE_FLAGS="-DCYCLE_ACCURATE"
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14264$as_echo "yes" >&6; }
14265else
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14267$as_echo "no" >&6; }
14268fi
14269
14270
14271
3f8414df 14272ac_config_files="$ac_config_files arch-subdir.mk Makefile"
81ecdfbb 14273
b7026657 14274cat >confcache <<\_ACEOF
c906108c
SS
14275# This file is a shell script that caches the results of configure
14276# tests run on this system so they can be shared between configure
b7026657
AC
14277# scripts and configure runs, see configure's option --config-cache.
14278# It is not useful on other systems. If it contains results you don't
14279# want to keep, you may remove or edit it.
c906108c 14280#
b7026657
AC
14281# config.status only pays attention to the cache file if you give it
14282# the --recheck option to rerun configure.
c906108c 14283#
b7026657
AC
14284# `ac_cv_env_foo' variables (set or unset) will be overridden when
14285# loading this file, other *unset* `ac_cv_foo' will be assigned the
14286# following values.
14287
14288_ACEOF
14289
c906108c
SS
14290# The following way of writing the cache mishandles newlines in values,
14291# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 14292# So, we kill variables containing newlines.
c906108c
SS
14293# Ultrix sh set writes to stderr and can't be redirected directly,
14294# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
14295(
14296 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14297 eval ac_val=\$$ac_var
14298 case $ac_val in #(
14299 *${as_nl}*)
14300 case $ac_var in #(
14301 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14302$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14303 esac
14304 case $ac_var in #(
14305 _ | IFS | as_nl) ;; #(
14306 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14307 *) { eval $ac_var=; unset $ac_var;} ;;
14308 esac ;;
14309 esac
14310 done
14311
b7026657 14312 (set) 2>&1 |
81ecdfbb
RW
14313 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14314 *${as_nl}ac_space=\ *)
14315 # `set' does not quote correctly, so add quotes: double-quote
14316 # substitution turns \\\\ into \\, and sed turns \\ into \.
b7026657
AC
14317 sed -n \
14318 "s/'/'\\\\''/g;
14319 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 14320 ;; #(
b7026657
AC
14321 *)
14322 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 14323 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 14324 ;;
81ecdfbb
RW
14325 esac |
14326 sort
14327) |
b7026657 14328 sed '
81ecdfbb 14329 /^ac_cv_env_/b end
b7026657 14330 t clear
81ecdfbb 14331 :clear
b7026657
AC
14332 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14333 t end
81ecdfbb
RW
14334 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14335 :end' >>confcache
14336if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14337 if test -w "$cache_file"; then
d0ac1c44 14338 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14340$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
14341 if test ! -f "$cache_file" || test -h "$cache_file"; then
14342 cat confcache >"$cache_file"
14343 else
14344 case $cache_file in #(
14345 */* | ?:*)
14346 mv -f confcache "$cache_file"$$ &&
14347 mv -f "$cache_file"$$ "$cache_file" ;; #(
14348 *)
14349 mv -f confcache "$cache_file" ;;
14350 esac
14351 fi
14352 fi
c906108c 14353 else
81ecdfbb
RW
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14355$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
c906108c
SS
14356 fi
14357fi
14358rm -f confcache
14359
c906108c
SS
14360test "x$prefix" = xNONE && prefix=$ac_default_prefix
14361# Let make expand exec_prefix.
14362test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14363
b15c5d7a 14364DEFS=-DHAVE_CONFIG_H
b7026657
AC
14365
14366ac_libobjs=
14367ac_ltlibobjs=
d0ac1c44 14368U=
b7026657
AC
14369for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14370 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
14371 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14372 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14373 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14374 # will be set to the directory where LIBOBJS objects are built.
14375 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14376 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
b7026657
AC
14377done
14378LIBOBJS=$ac_libobjs
c906108c 14379
b7026657
AC
14380LTLIBOBJS=$ac_ltlibobjs
14381
14382
c2783492 14383
b5689863
MF
14384if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
14385 as_fn_error $? "conditional \"PLUGINS\" was never defined.
14386Usually this means the macro was only invoked conditionally." "$LINENO" 5
14387fi
8c379db2
TT
14388if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14389 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14390Usually this means the macro was only invoked conditionally." "$LINENO" 5
14391fi
6bddc3e8
MF
14392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14393$as_echo_n "checking that generated files are newer than configure... " >&6; }
14394 if test -n "$am_sleep_pid"; then
14395 # Hide warnings about reused PIDs.
14396 wait $am_sleep_pid 2>/dev/null
14397 fi
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14399$as_echo "done" >&6; }
6bddc3e8
MF
14400if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14401 as_fn_error $? "conditional \"AMDEP\" was never defined.
14402Usually this means the macro was only invoked conditionally." "$LINENO" 5
14403fi
14404if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14405 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14406Usually this means the macro was only invoked conditionally." "$LINENO" 5
14407fi
c2783492
MF
14408 if test -n "$EXEEXT"; then
14409 am__EXEEXT_TRUE=
14410 am__EXEEXT_FALSE='#'
14411else
14412 am__EXEEXT_TRUE='#'
14413 am__EXEEXT_FALSE=
6bddc3e8 14414fi
b7026657 14415
b6b1c790
MF
14416if test -z "${SIM_ENABLE_IGEN_TRUE}" && test -z "${SIM_ENABLE_IGEN_FALSE}"; then
14417 as_fn_error $? "conditional \"SIM_ENABLE_IGEN\" was never defined.
14418Usually this means the macro was only invoked conditionally." "$LINENO" 5
14419fi
456ef1c1
MF
14420if test -z "${SIM_ENABLE_HW_TRUE}" && test -z "${SIM_ENABLE_HW_FALSE}"; then
14421 as_fn_error $? "conditional \"SIM_ENABLE_HW\" was never defined.
14422Usually this means the macro was only invoked conditionally." "$LINENO" 5
14423fi
c2783492 14424
d0ac1c44 14425: "${CONFIG_STATUS=./config.status}"
81ecdfbb 14426ac_write_fail=0
b7026657
AC
14427ac_clean_files_save=$ac_clean_files
14428ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
14429{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14430$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14431as_write_fail=0
14432cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
b7026657
AC
14433#! $SHELL
14434# Generated by $as_me.
c906108c 14435# Run this file to recreate the current configuration.
c906108c 14436# Compiler output produced by configure, useful for debugging
b7026657
AC
14437# configure, is in config.log if it exists.
14438
14439debug=false
14440ac_cs_recheck=false
14441ac_cs_silent=false
b7026657 14442
81ecdfbb
RW
14443SHELL=\${CONFIG_SHELL-$SHELL}
14444export SHELL
14445_ASEOF
14446cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14447## -------------------- ##
14448## M4sh Initialization. ##
14449## -------------------- ##
14450
14451# Be more Bourne compatible
14452DUALCASE=1; export DUALCASE # for MKS sh
14453if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b7026657
AC
14454 emulate sh
14455 NULLCMD=:
81ecdfbb 14456 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b7026657
AC
14457 # is contrary to our usage. Disable this feature.
14458 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
14459 setopt NO_GLOB_SUBST
14460else
14461 case `(set -o) 2>/dev/null` in #(
14462 *posix*) :
14463 set -o posix ;; #(
14464 *) :
14465 ;;
14466esac
b7026657 14467fi
c906108c 14468
81ecdfbb
RW
14469
14470as_nl='
14471'
14472export as_nl
14473# Printing a long string crashes Solaris 7 /usr/bin/printf.
14474as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14475as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14476as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14477# Prefer a ksh shell builtin over an external printf program on Solaris,
14478# but without wasting forks for bash or zsh.
14479if test -z "$BASH_VERSION$ZSH_VERSION" \
14480 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14481 as_echo='print -r --'
14482 as_echo_n='print -rn --'
14483elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14484 as_echo='printf %s\n'
14485 as_echo_n='printf %s'
b7026657 14486else
81ecdfbb
RW
14487 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14488 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14489 as_echo_n='/usr/ucb/echo -n'
14490 else
14491 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14492 as_echo_n_body='eval
14493 arg=$1;
14494 case $arg in #(
14495 *"$as_nl"*)
14496 expr "X$arg" : "X\\(.*\\)$as_nl";
14497 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14498 esac;
14499 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14500 '
14501 export as_echo_n_body
14502 as_echo_n='sh -c $as_echo_n_body as_echo'
14503 fi
14504 export as_echo_body
14505 as_echo='sh -c $as_echo_body as_echo'
14506fi
14507
14508# The user is always right.
14509if test "${PATH_SEPARATOR+set}" != set; then
14510 PATH_SEPARATOR=:
14511 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14512 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14513 PATH_SEPARATOR=';'
14514 }
b7026657
AC
14515fi
14516
14517
81ecdfbb
RW
14518# IFS
14519# We need space, tab and new line, in precisely that order. Quoting is
14520# there to prevent editors from complaining about space-tab.
14521# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14522# splitting by setting IFS to empty value.)
14523IFS=" "" $as_nl"
14524
14525# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 14526as_myself=
81ecdfbb
RW
14527case $0 in #((
14528 *[\\/]* ) as_myself=$0 ;;
14529 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14530for as_dir in $PATH
14531do
14532 IFS=$as_save_IFS
14533 test -z "$as_dir" && as_dir=.
14534 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14535 done
14536IFS=$as_save_IFS
14537
14538 ;;
14539esac
14540# We did not find ourselves, most probably we were run as `sh COMMAND'
14541# in which case we are not to be found in the path.
14542if test "x$as_myself" = x; then
14543 as_myself=$0
14544fi
14545if test ! -f "$as_myself"; then
14546 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14547 exit 1
14548fi
14549
14550# Unset variables that we do not need and which cause bugs (e.g. in
14551# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14552# suppresses any "Segmentation fault" message there. '((' could
14553# trigger a bug in pdksh 5.2.14.
14554for as_var in BASH_ENV ENV MAIL MAILPATH
14555do eval test x\${$as_var+set} = xset \
14556 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14557done
b7026657
AC
14558PS1='$ '
14559PS2='> '
14560PS4='+ '
14561
14562# NLS nuisances.
81ecdfbb
RW
14563LC_ALL=C
14564export LC_ALL
14565LANGUAGE=C
14566export LANGUAGE
14567
14568# CDPATH.
14569(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14570
14571
d0ac1c44
SM
14572# as_fn_error STATUS ERROR [LINENO LOG_FD]
14573# ----------------------------------------
81ecdfbb
RW
14574# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14575# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 14576# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
14577as_fn_error ()
14578{
d0ac1c44
SM
14579 as_status=$1; test $as_status -eq 0 && as_status=1
14580 if test "$4"; then
14581 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14582 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
b7026657 14583 fi
d0ac1c44 14584 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
14585 as_fn_exit $as_status
14586} # as_fn_error
c906108c 14587
81ecdfbb
RW
14588
14589# as_fn_set_status STATUS
14590# -----------------------
14591# Set $? to STATUS, without forking.
14592as_fn_set_status ()
14593{
14594 return $1
14595} # as_fn_set_status
14596
14597# as_fn_exit STATUS
14598# -----------------
14599# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14600as_fn_exit ()
14601{
14602 set +e
14603 as_fn_set_status $1
14604 exit $1
14605} # as_fn_exit
14606
14607# as_fn_unset VAR
14608# ---------------
14609# Portably unset VAR.
14610as_fn_unset ()
14611{
14612 { eval $1=; unset $1;}
14613}
14614as_unset=as_fn_unset
14615# as_fn_append VAR VALUE
14616# ----------------------
14617# Append the text in VALUE to the end of the definition contained in VAR. Take
14618# advantage of any shell optimizations that allow amortized linear growth over
14619# repeated appends, instead of the typical quadratic growth present in naive
14620# implementations.
14621if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14622 eval 'as_fn_append ()
14623 {
14624 eval $1+=\$2
14625 }'
14626else
14627 as_fn_append ()
14628 {
14629 eval $1=\$$1\$2
14630 }
14631fi # as_fn_append
14632
14633# as_fn_arith ARG...
14634# ------------------
14635# Perform arithmetic evaluation on the ARGs, and store the result in the
14636# global $as_val. Take advantage of shells that can avoid forks. The arguments
14637# must be portable across $(()) and expr.
14638if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14639 eval 'as_fn_arith ()
14640 {
14641 as_val=$(( $* ))
14642 }'
14643else
14644 as_fn_arith ()
14645 {
14646 as_val=`expr "$@" || test $? -eq 1`
14647 }
14648fi # as_fn_arith
14649
14650
14651if expr a : '\(a\)' >/dev/null 2>&1 &&
14652 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b7026657
AC
14653 as_expr=expr
14654else
14655 as_expr=false
14656fi
c906108c 14657
81ecdfbb 14658if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b7026657
AC
14659 as_basename=basename
14660else
14661 as_basename=false
14662fi
c906108c 14663
81ecdfbb
RW
14664if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14665 as_dirname=dirname
14666else
14667 as_dirname=false
14668fi
c906108c 14669
81ecdfbb 14670as_me=`$as_basename -- "$0" ||
b7026657
AC
14671$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14672 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
14673 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14674$as_echo X/"$0" |
14675 sed '/^.*\/\([^/][^/]*\)\/*$/{
14676 s//\1/
14677 q
14678 }
14679 /^X\/\(\/\/\)$/{
14680 s//\1/
14681 q
14682 }
14683 /^X\/\(\/\).*/{
14684 s//\1/
14685 q
14686 }
14687 s/.*/./; q'`
b7026657 14688
fdd6fa61
AG
14689# Avoid depending upon Character Ranges.
14690as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14691as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14692as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14693as_cr_digits='0123456789'
14694as_cr_alnum=$as_cr_Letters$as_cr_digits
14695
81ecdfbb
RW
14696ECHO_C= ECHO_N= ECHO_T=
14697case `echo -n x` in #(((((
14698-n*)
14699 case `echo 'xy\c'` in
14700 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14701 xy) ECHO_C='\c';;
14702 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14703 ECHO_T=' ';;
14704 esac;;
14705*)
14706 ECHO_N='-n';;
b7026657
AC
14707esac
14708
81ecdfbb
RW
14709rm -f conf$$ conf$$.exe conf$$.file
14710if test -d conf$$.dir; then
14711 rm -f conf$$.dir/conf$$.file
b7026657 14712else
81ecdfbb
RW
14713 rm -f conf$$.dir
14714 mkdir conf$$.dir 2>/dev/null
b7026657 14715fi
81ecdfbb
RW
14716if (echo >conf$$.file) 2>/dev/null; then
14717 if ln -s conf$$.file conf$$ 2>/dev/null; then
fdd6fa61 14718 as_ln_s='ln -s'
81ecdfbb
RW
14719 # ... but there are two gotchas:
14720 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14721 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 14722 # In both cases, we have to default to `cp -pR'.
81ecdfbb 14723 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 14724 as_ln_s='cp -pR'
81ecdfbb
RW
14725 elif ln conf$$.file conf$$ 2>/dev/null; then
14726 as_ln_s=ln
14727 else
d0ac1c44 14728 as_ln_s='cp -pR'
fdd6fa61 14729 fi
b7026657 14730else
d0ac1c44 14731 as_ln_s='cp -pR'
b7026657 14732fi
81ecdfbb
RW
14733rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14734rmdir conf$$.dir 2>/dev/null
14735
14736
14737# as_fn_mkdir_p
14738# -------------
14739# Create "$as_dir" as a directory, including parents if necessary.
14740as_fn_mkdir_p ()
14741{
b7026657 14742
81ecdfbb
RW
14743 case $as_dir in #(
14744 -*) as_dir=./$as_dir;;
14745 esac
14746 test -d "$as_dir" || eval $as_mkdir_p || {
14747 as_dirs=
14748 while :; do
14749 case $as_dir in #(
14750 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14751 *) as_qdir=$as_dir;;
14752 esac
14753 as_dirs="'$as_qdir' $as_dirs"
14754 as_dir=`$as_dirname -- "$as_dir" ||
14755$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14756 X"$as_dir" : 'X\(//\)[^/]' \| \
14757 X"$as_dir" : 'X\(//\)$' \| \
14758 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14759$as_echo X"$as_dir" |
14760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14761 s//\1/
14762 q
14763 }
14764 /^X\(\/\/\)[^/].*/{
14765 s//\1/
14766 q
14767 }
14768 /^X\(\/\/\)$/{
14769 s//\1/
14770 q
14771 }
14772 /^X\(\/\).*/{
14773 s//\1/
14774 q
14775 }
14776 s/.*/./; q'`
14777 test -d "$as_dir" && break
14778 done
14779 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 14780 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb
RW
14781
14782
14783} # as_fn_mkdir_p
b7026657 14784if mkdir -p . 2>/dev/null; then
81ecdfbb 14785 as_mkdir_p='mkdir -p "$as_dir"'
b7026657
AC
14786else
14787 test -d ./-p && rmdir ./-p
14788 as_mkdir_p=false
14789fi
14790
d0ac1c44
SM
14791
14792# as_fn_executable_p FILE
14793# -----------------------
14794# Test if FILE is an executable regular file.
14795as_fn_executable_p ()
14796{
14797 test -f "$1" && test -x "$1"
14798} # as_fn_executable_p
14799as_test_x='test -x'
14800as_executable_p=as_fn_executable_p
b7026657
AC
14801
14802# Sed expression to map a string onto a valid CPP name.
14803as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14804
14805# Sed expression to map a string onto a valid variable name.
14806as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14807
14808
b7026657 14809exec 6>&1
81ecdfbb
RW
14810## ----------------------------------- ##
14811## Main body of $CONFIG_STATUS script. ##
14812## ----------------------------------- ##
14813_ASEOF
14814test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14815
14816cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14817# Save the log message, to keep $0 and so on meaningful, and to
b7026657 14818# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
14819# values after options handling.
14820ac_log="
6bddc3e8 14821This file was extended by sim $as_me 0, which was
d0ac1c44 14822generated by GNU Autoconf 2.69. Invocation command line was
b7026657
AC
14823
14824 CONFIG_FILES = $CONFIG_FILES
14825 CONFIG_HEADERS = $CONFIG_HEADERS
14826 CONFIG_LINKS = $CONFIG_LINKS
14827 CONFIG_COMMANDS = $CONFIG_COMMANDS
14828 $ $0 $@
14829
81ecdfbb
RW
14830on `(hostname || uname -n) 2>/dev/null | sed 1q`
14831"
14832
b7026657
AC
14833_ACEOF
14834
81ecdfbb
RW
14835case $ac_config_files in *"
14836"*) set x $ac_config_files; shift; ac_config_files=$*;;
14837esac
b7026657 14838
b15c5d7a
MF
14839case $ac_config_headers in *"
14840"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14841esac
fdd6fa61 14842
fdd6fa61 14843
81ecdfbb
RW
14844cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14845# Files that config.status was made for.
14846config_files="$ac_config_files"
b15c5d7a 14847config_headers="$ac_config_headers"
6bddc3e8 14848config_commands="$ac_config_commands"
b7026657 14849
81ecdfbb 14850_ACEOF
fdd6fa61 14851
81ecdfbb 14852cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657 14853ac_cs_usage="\
81ecdfbb
RW
14854\`$as_me' instantiates files and other configuration actions
14855from templates according to the current configuration. Unless the files
14856and actions are specified as TAGs, all are instantiated by default.
b7026657 14857
81ecdfbb 14858Usage: $0 [OPTION]... [TAG]...
b7026657
AC
14859
14860 -h, --help print this help, then exit
81ecdfbb 14861 -V, --version print version number and configuration settings, then exit
d0ac1c44 14862 --config print configuration, then exit
81ecdfbb
RW
14863 -q, --quiet, --silent
14864 do not print progress messages
b7026657
AC
14865 -d, --debug don't remove temporary files
14866 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
14867 --file=FILE[:TEMPLATE]
14868 instantiate the configuration file FILE
b15c5d7a
MF
14869 --header=FILE[:TEMPLATE]
14870 instantiate the configuration header FILE
b7026657
AC
14871
14872Configuration files:
14873$config_files
14874
b15c5d7a
MF
14875Configuration headers:
14876$config_headers
14877
6bddc3e8
MF
14878Configuration commands:
14879$config_commands
14880
14881Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
14882sim home page: <https://sourceware.org/gdb/wiki/Sim/>."
fdd6fa61 14883
81ecdfbb
RW
14884_ACEOF
14885cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 14886ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
b7026657 14887ac_cs_version="\\
6bddc3e8 14888sim config.status 0
d0ac1c44
SM
14889configured by $0, generated by GNU Autoconf 2.69,
14890 with options \\"\$ac_cs_config\\"
b7026657 14891
d0ac1c44 14892Copyright (C) 2012 Free Software Foundation, Inc.
b7026657
AC
14893This config.status script is free software; the Free Software Foundation
14894gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
14895
14896ac_pwd='$ac_pwd'
14897srcdir='$srcdir'
14898INSTALL='$INSTALL'
6bddc3e8
MF
14899MKDIR_P='$MKDIR_P'
14900AWK='$AWK'
81ecdfbb 14901test -n "\$AWK" || AWK=awk
b7026657
AC
14902_ACEOF
14903
81ecdfbb
RW
14904cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14905# The default lists apply if the user does not specify any file.
b7026657
AC
14906ac_need_defaults=:
14907while test $# != 0
14908do
14909 case $1 in
d0ac1c44 14910 --*=?*)
81ecdfbb
RW
14911 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14912 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b7026657
AC
14913 ac_shift=:
14914 ;;
d0ac1c44
SM
14915 --*=)
14916 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14917 ac_optarg=
14918 ac_shift=:
14919 ;;
81ecdfbb 14920 *)
b7026657
AC
14921 ac_option=$1
14922 ac_optarg=$2
14923 ac_shift=shift
14924 ;;
b7026657
AC
14925 esac
14926
14927 case $ac_option in
14928 # Handling of the options.
b7026657
AC
14929 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14930 ac_cs_recheck=: ;;
81ecdfbb
RW
14931 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14932 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
14933 --config | --confi | --conf | --con | --co | --c )
14934 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 14935 --debug | --debu | --deb | --de | --d | -d )
b7026657
AC
14936 debug=: ;;
14937 --file | --fil | --fi | --f )
14938 $ac_shift
81ecdfbb
RW
14939 case $ac_optarg in
14940 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 14941 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
14942 esac
14943 as_fn_append CONFIG_FILES " '$ac_optarg'"
fdd6fa61 14944 ac_need_defaults=false;;
b15c5d7a
MF
14945 --header | --heade | --head | --hea )
14946 $ac_shift
14947 case $ac_optarg in
14948 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14949 esac
14950 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14951 ac_need_defaults=false;;
14952 --he | --h)
14953 # Conflict between --help and --header
14954 as_fn_error $? "ambiguous option: \`$1'
14955Try \`$0 --help' for more information.";;
14956 --help | --hel | -h )
81ecdfbb 14957 $as_echo "$ac_cs_usage"; exit ;;
b7026657
AC
14958 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14959 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14960 ac_cs_silent=: ;;
14961
14962 # This is an error.
d0ac1c44 14963 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 14964Try \`$0 --help' for more information." ;;
b7026657 14965
81ecdfbb
RW
14966 *) as_fn_append ac_config_targets " $1"
14967 ac_need_defaults=false ;;
b7026657
AC
14968
14969 esac
14970 shift
c906108c 14971done
b7026657
AC
14972
14973ac_configure_extra_args=
14974
14975if $ac_cs_silent; then
14976 exec 6>/dev/null
14977 ac_configure_extra_args="$ac_configure_extra_args --silent"
c906108c 14978fi
c906108c 14979
b7026657 14980_ACEOF
81ecdfbb 14981cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b7026657 14982if \$ac_cs_recheck; then
d0ac1c44 14983 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
14984 shift
14985 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14986 CONFIG_SHELL='$SHELL'
14987 export CONFIG_SHELL
14988 exec "\$@"
b7026657 14989fi
c906108c 14990
b7026657 14991_ACEOF
81ecdfbb
RW
14992cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14993exec 5>>config.log
14994{
14995 echo
14996 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14997## Running $as_me. ##
14998_ASBOX
14999 $as_echo "$ac_log"
15000} >&5
b7026657 15001
81ecdfbb
RW
15002_ACEOF
15003cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6bddc3e8
MF
15004#
15005# INIT-COMMANDS
15006#
b5689863
MF
15007
15008
15009# The HP-UX ksh and POSIX shell print the target directory to stdout
15010# if CDPATH is set.
15011(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15012
15013sed_quote_subst='$sed_quote_subst'
15014double_quote_subst='$double_quote_subst'
15015delay_variable_subst='$delay_variable_subst'
15016macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15017macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15018enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15019enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15020pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15021enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15022SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15023ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15024host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15025host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15026host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15027build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15028build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15029build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15030SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15031Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15032GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15033EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15034FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15035LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15036NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15037LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15038max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15039ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15040exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15041lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15042lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15043lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15044reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15045reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15046OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15047deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15048file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15049AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15050AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15051STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15052RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15053old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15054old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15055old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15056lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15057CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15058CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15059compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15060GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15061lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15062lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15063lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15064lt_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"`'
15065objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15066MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15067lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15068lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15069lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15070lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15071lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15072need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15073DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15074NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15075LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15076OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15077OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15078libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15079shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15080extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15081archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15082enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15083export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15084whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15085compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15086old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15087old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15088archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15089archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15090module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15091module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15092with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15093allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15094no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15095hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15096hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15097hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15098hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15099hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15100hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15101hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15102hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15103inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15104link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15105fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15106always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15107export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15108exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15109include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15110prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15111file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15112variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15113need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15114need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15115version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15116runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15117shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15118shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15119libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15120library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15121soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15122install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15123postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15124postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15125finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15126finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15127hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15128sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15129sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15130hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15131enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15132enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15133enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15134old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15135striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15136
15137LTCC='$LTCC'
15138LTCFLAGS='$LTCFLAGS'
15139compiler='$compiler_DEFAULT'
15140
15141# A function that is used when there is no print builtin or printf.
15142func_fallback_echo ()
15143{
15144 eval 'cat <<_LTECHO_EOF
15145\$1
15146_LTECHO_EOF'
15147}
15148
15149# Quote evaled strings.
15150for var in SHELL \
15151ECHO \
15152SED \
15153GREP \
15154EGREP \
15155FGREP \
15156LD \
15157NM \
15158LN_S \
15159lt_SP2NL \
15160lt_NL2SP \
15161reload_flag \
15162OBJDUMP \
15163deplibs_check_method \
15164file_magic_cmd \
15165AR \
15166AR_FLAGS \
15167STRIP \
15168RANLIB \
15169CC \
15170CFLAGS \
15171compiler \
15172lt_cv_sys_global_symbol_pipe \
15173lt_cv_sys_global_symbol_to_cdecl \
15174lt_cv_sys_global_symbol_to_c_name_address \
15175lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15176lt_prog_compiler_no_builtin_flag \
15177lt_prog_compiler_wl \
15178lt_prog_compiler_pic \
15179lt_prog_compiler_static \
15180lt_cv_prog_compiler_c_o \
15181need_locks \
15182DSYMUTIL \
15183NMEDIT \
15184LIPO \
15185OTOOL \
15186OTOOL64 \
15187shrext_cmds \
15188export_dynamic_flag_spec \
15189whole_archive_flag_spec \
15190compiler_needs_object \
15191with_gnu_ld \
15192allow_undefined_flag \
15193no_undefined_flag \
15194hardcode_libdir_flag_spec \
15195hardcode_libdir_flag_spec_ld \
15196hardcode_libdir_separator \
15197fix_srcfile_path \
15198exclude_expsyms \
15199include_expsyms \
15200file_list_spec \
15201variables_saved_for_relink \
15202libname_spec \
15203library_names_spec \
15204soname_spec \
15205install_override_mode \
15206finish_eval \
15207old_striplib \
15208striplib; do
15209 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15210 *[\\\\\\\`\\"\\\$]*)
15211 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15212 ;;
15213 *)
15214 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15215 ;;
15216 esac
15217done
15218
15219# Double-quote double-evaled strings.
15220for var in reload_cmds \
15221old_postinstall_cmds \
15222old_postuninstall_cmds \
15223old_archive_cmds \
15224extract_expsyms_cmds \
15225old_archive_from_new_cmds \
15226old_archive_from_expsyms_cmds \
15227archive_cmds \
15228archive_expsym_cmds \
15229module_cmds \
15230module_expsym_cmds \
15231export_symbols_cmds \
15232prelink_cmds \
15233postinstall_cmds \
15234postuninstall_cmds \
15235finish_cmds \
15236sys_lib_search_path_spec \
15237sys_lib_dlsearch_path_spec; do
15238 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15239 *[\\\\\\\`\\"\\\$]*)
15240 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15241 ;;
15242 *)
15243 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15244 ;;
15245 esac
15246done
15247
15248ac_aux_dir='$ac_aux_dir'
15249xsi_shell='$xsi_shell'
15250lt_shell_append='$lt_shell_append'
15251
15252# See if we are running on zsh, and set the options which allow our
15253# commands through without removal of \ escapes INIT.
15254if test -n "\${ZSH_VERSION+set}" ; then
15255 setopt NO_GLOB_SUBST
15256fi
15257
15258
15259 PACKAGE='$PACKAGE'
15260 VERSION='$VERSION'
15261 TIMESTAMP='$TIMESTAMP'
15262 RM='$RM'
15263 ofile='$ofile'
15264
15265
15266
6bddc3e8 15267AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
bc56166f
MF
15268ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15269ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15270ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15271ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15272ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15273ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15274ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15275ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15276ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15277ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15278ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15279ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15280ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15281ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15282ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15283ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15284ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15285ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15286ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15287ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15288ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15289ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15290ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15291ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15292ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15293ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15294ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15295ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15296ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15297ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15298ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15299ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
6bddc3e8 15300
81ecdfbb 15301_ACEOF
b7026657 15302
81ecdfbb 15303cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
df1756f4 15304
81ecdfbb 15305# Handling of arguments.
b7026657
AC
15306for ac_config_target in $ac_config_targets
15307do
81ecdfbb 15308 case $ac_config_target in
b15c5d7a 15309 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
b5689863 15310 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
6bddc3e8 15311 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
36bb57e4
MF
15312 "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:common/Make-common.in" ;;
15313 "aarch64/Makefile.sim") CONFIG_FILES="$CONFIG_FILES aarch64/Makefile.sim:aarch64/Makefile.in" ;;
15314 "aarch64/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS aarch64/Makefile" ;;
bc56166f 15315 "depdir-aarch64") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-aarch64" ;;
36bb57e4
MF
15316 "arm/Makefile.sim") CONFIG_FILES="$CONFIG_FILES arm/Makefile.sim:arm/Makefile.in" ;;
15317 "arm/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS arm/Makefile" ;;
bc56166f 15318 "depdir-arm") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-arm" ;;
36bb57e4
MF
15319 "avr/Makefile.sim") CONFIG_FILES="$CONFIG_FILES avr/Makefile.sim:avr/Makefile.in" ;;
15320 "avr/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS avr/Makefile" ;;
bc56166f
MF
15321 "depdir-avr") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-avr" ;;
15322 "depdir-bfin") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-bfin" ;;
15323 "depdir-bpf") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-bpf" ;;
36bb57e4
MF
15324 "cr16/Makefile.sim") CONFIG_FILES="$CONFIG_FILES cr16/Makefile.sim:cr16/Makefile.in" ;;
15325 "cr16/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS cr16/Makefile" ;;
bc56166f
MF
15326 "depdir-cr16") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-cr16" ;;
15327 "depdir-cris") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-cris" ;;
36bb57e4
MF
15328 "d10v/Makefile.sim") CONFIG_FILES="$CONFIG_FILES d10v/Makefile.sim:d10v/Makefile.in" ;;
15329 "d10v/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS d10v/Makefile" ;;
bc56166f
MF
15330 "depdir-d10v") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-d10v" ;;
15331 "depdir-frv") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-frv" ;;
36bb57e4
MF
15332 "ft32/Makefile.sim") CONFIG_FILES="$CONFIG_FILES ft32/Makefile.sim:ft32/Makefile.in" ;;
15333 "ft32/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS ft32/Makefile" ;;
15334 "depdir-ft32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-ft32" ;;
15335 "h8300/Makefile.sim") CONFIG_FILES="$CONFIG_FILES h8300/Makefile.sim:h8300/Makefile.in" ;;
15336 "h8300/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS h8300/Makefile" ;;
bc56166f
MF
15337 "depdir-h8300") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-h8300" ;;
15338 "depdir-iq2000") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-iq2000" ;;
15339 "depdir-lm32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-lm32" ;;
36bb57e4
MF
15340 "m32c/Makefile.sim") CONFIG_FILES="$CONFIG_FILES m32c/Makefile.sim:m32c/Makefile.in" ;;
15341 "m32c/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS m32c/Makefile" ;;
bc56166f
MF
15342 "depdir-m32c") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m32c" ;;
15343 "depdir-m32r") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m32r" ;;
36bb57e4
MF
15344 "m68hc11/Makefile.sim") CONFIG_FILES="$CONFIG_FILES m68hc11/Makefile.sim:m68hc11/Makefile.in" ;;
15345 "m68hc11/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS m68hc11/Makefile" ;;
bc56166f 15346 "depdir-m68hc11") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m68hc11" ;;
36bb57e4
MF
15347 "mcore/Makefile.sim") CONFIG_FILES="$CONFIG_FILES mcore/Makefile.sim:mcore/Makefile.in" ;;
15348 "mcore/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS mcore/Makefile" ;;
bc56166f 15349 "depdir-mcore") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mcore" ;;
36bb57e4
MF
15350 "microblaze/Makefile.sim") CONFIG_FILES="$CONFIG_FILES microblaze/Makefile.sim:microblaze/Makefile.in" ;;
15351 "microblaze/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS microblaze/Makefile" ;;
bc56166f
MF
15352 "depdir-microblaze") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-microblaze" ;;
15353 "depdir-mips") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mips" ;;
15354 "depdir-mn10300") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mn10300" ;;
36bb57e4
MF
15355 "moxie/Makefile.sim") CONFIG_FILES="$CONFIG_FILES moxie/Makefile.sim:moxie/Makefile.in" ;;
15356 "moxie/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS moxie/Makefile" ;;
bc56166f 15357 "depdir-moxie") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-moxie" ;;
36bb57e4
MF
15358 "msp430/Makefile.sim") CONFIG_FILES="$CONFIG_FILES msp430/Makefile.sim:msp430/Makefile.in" ;;
15359 "msp430/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS msp430/Makefile" ;;
bc56166f
MF
15360 "depdir-msp430") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-msp430" ;;
15361 "depdir-or1k") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-or1k" ;;
36bb57e4
MF
15362 "pru/Makefile.sim") CONFIG_FILES="$CONFIG_FILES pru/Makefile.sim:pru/Makefile.in" ;;
15363 "pru/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS pru/Makefile" ;;
bc56166f
MF
15364 "depdir-pru") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-pru" ;;
15365 "depdir-riscv") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-riscv" ;;
36bb57e4
MF
15366 "rl78/Makefile.sim") CONFIG_FILES="$CONFIG_FILES rl78/Makefile.sim:rl78/Makefile.in" ;;
15367 "rl78/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS rl78/Makefile" ;;
bc56166f 15368 "depdir-rl78") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-rl78" ;;
e173c80f
MF
15369 "rx/Makefile.sim") CONFIG_FILES="$CONFIG_FILES rx/Makefile.sim:rx/Makefile.in" ;;
15370 "rx/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS rx/Makefile" ;;
bc56166f 15371 "depdir-rx") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-rx" ;;
36bb57e4
MF
15372 "sh/Makefile.sim") CONFIG_FILES="$CONFIG_FILES sh/Makefile.sim:sh/Makefile.in" ;;
15373 "sh/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS sh/Makefile" ;;
bc56166f
MF
15374 "depdir-sh") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-sh" ;;
15375 "depdir-erc32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-erc32" ;;
15376 "depdir-ppc") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-ppc" ;;
bc56166f 15377 "depdir-v850") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-v850" ;;
36bb57e4
MF
15378 "example-synacor/Makefile.sim") CONFIG_FILES="$CONFIG_FILES example-synacor/Makefile.sim:example-synacor/Makefile.in" ;;
15379 "example-synacor/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS example-synacor/Makefile" ;;
bc56166f 15380 "depdir-example-synacor") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-example-synacor" ;;
3f8414df 15381 "arch-subdir.mk") CONFIG_FILES="$CONFIG_FILES arch-subdir.mk" ;;
81ecdfbb
RW
15382 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15383
d0ac1c44 15384 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c906108c 15385 esac
b7026657 15386done
c906108c 15387
81ecdfbb 15388
b7026657
AC
15389# If the user did not use the arguments to specify the items to instantiate,
15390# then the envvar interface is used. Set only those that are not.
15391# We use the long form for the default assignment because of an extremely
15392# bizarre bug on SunOS 4.1.3.
15393if $ac_need_defaults; then
15394 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
b15c5d7a 15395 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6bddc3e8 15396 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
b7026657 15397fi
c906108c 15398
b7026657 15399# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 15400# simply because there is no reason against having it here, and in addition,
b7026657 15401# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
15402# Hook for its removal unless debugging.
15403# Note that there is a small window in which the directory will not be cleaned:
15404# after its creation but before its name has been assigned to `$tmp'.
b7026657
AC
15405$debug ||
15406{
d0ac1c44 15407 tmp= ac_tmp=
81ecdfbb 15408 trap 'exit_status=$?
d0ac1c44
SM
15409 : "${ac_tmp:=$tmp}"
15410 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
15411' 0
15412 trap 'as_fn_exit 1' 1 2 13 15
b7026657 15413}
b7026657
AC
15414# Create a (secure) tmp directory for tmp files.
15415
15416{
81ecdfbb 15417 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 15418 test -d "$tmp"
b7026657
AC
15419} ||
15420{
81ecdfbb
RW
15421 tmp=./conf$$-$RANDOM
15422 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
15423} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15424ac_tmp=$tmp
81ecdfbb
RW
15425
15426# Set up the scripts for CONFIG_FILES section.
15427# No need to generate them if there are no CONFIG_FILES.
15428# This happens for instance with `./config.status config.h'.
15429if test -n "$CONFIG_FILES"; then
15430
15431
15432ac_cr=`echo X | tr X '\015'`
15433# On cygwin, bash can eat \r inside `` if the user requested igncr.
15434# But we know of no other shell where ac_cr would be empty at this
15435# point, so we can use a bashism as a fallback.
15436if test "x$ac_cr" = x; then
15437 eval ac_cr=\$\'\\r\'
15438fi
15439ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15440if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 15441 ac_cs_awk_cr='\\r'
81ecdfbb
RW
15442else
15443 ac_cs_awk_cr=$ac_cr
15444fi
15445
d0ac1c44 15446echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
81ecdfbb
RW
15447_ACEOF
15448
15449
15450{
15451 echo "cat >conf$$subs.awk <<_ACEOF" &&
15452 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15453 echo "_ACEOF"
15454} >conf$$subs.sh ||
d0ac1c44
SM
15455 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15456ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
15457ac_delim='%!_!# '
15458for ac_last_try in false false false false false :; do
15459 . ./conf$$subs.sh ||
d0ac1c44 15460 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
15461
15462 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15463 if test $ac_delim_n = $ac_delim_num; then
15464 break
15465 elif $ac_last_try; then
d0ac1c44 15466 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
15467 else
15468 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15469 fi
15470done
15471rm -f conf$$subs.sh
15472
15473cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 15474cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
81ecdfbb
RW
15475_ACEOF
15476sed -n '
15477h
15478s/^/S["/; s/!.*/"]=/
15479p
15480g
15481s/^[^!]*!//
15482:repl
15483t repl
15484s/'"$ac_delim"'$//
15485t delim
15486:nl
15487h
d0ac1c44 15488s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
15489t more1
15490s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15491p
15492n
15493b repl
15494:more1
15495s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15496p
15497g
15498s/.\{148\}//
15499t nl
15500:delim
15501h
d0ac1c44 15502s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
15503t more2
15504s/["\\]/\\&/g; s/^/"/; s/$/"/
15505p
15506b
15507:more2
15508s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15509p
15510g
15511s/.\{148\}//
15512t delim
15513' <conf$$subs.awk | sed '
15514/^[^""]/{
15515 N
15516 s/\n//
15517}
15518' >>$CONFIG_STATUS || ac_write_fail=1
15519rm -f conf$$subs.awk
15520cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15521_ACAWK
d0ac1c44 15522cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
15523 for (key in S) S_is_set[key] = 1
15524 FS = "\a"
15525
15526}
b7026657 15527{
81ecdfbb
RW
15528 line = $ 0
15529 nfields = split(line, field, "@")
15530 substed = 0
15531 len = length(field[1])
15532 for (i = 2; i < nfields; i++) {
15533 key = field[i]
15534 keylen = length(key)
15535 if (S_is_set[key]) {
15536 value = S[key]
15537 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15538 len += length(value) + length(field[++i])
15539 substed = 1
15540 } else
15541 len += 1 + keylen
15542 }
15543
15544 print line
b7026657
AC
15545}
15546
81ecdfbb
RW
15547_ACAWK
15548_ACEOF
15549cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15550if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15551 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15552else
15553 cat
d0ac1c44
SM
15554fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15555 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
fdd6fa61
AG
15556_ACEOF
15557
d0ac1c44
SM
15558# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15559# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
15560# trailing colons and then remove the whole line if VPATH becomes empty
15561# (actually we leave an empty line to preserve line numbers).
15562if test "x$srcdir" = x.; then
d0ac1c44
SM
15563 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15564h
15565s///
15566s/^/:/
15567s/[ ]*$/:/
15568s/:\$(srcdir):/:/g
15569s/:\${srcdir}:/:/g
15570s/:@srcdir@:/:/g
15571s/^:*//
81ecdfbb 15572s/:*$//
d0ac1c44
SM
15573x
15574s/\(=[ ]*\).*/\1/
15575G
15576s/\n//
81ecdfbb
RW
15577s/^[^=]*=[ ]*$//
15578}'
15579fi
fdd6fa61 15580
81ecdfbb
RW
15581cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15582fi # test -n "$CONFIG_FILES"
b7026657 15583
b15c5d7a
MF
15584# Set up the scripts for CONFIG_HEADERS section.
15585# No need to generate them if there are no CONFIG_HEADERS.
15586# This happens for instance with `./config.status Makefile'.
15587if test -n "$CONFIG_HEADERS"; then
15588cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15589BEGIN {
15590_ACEOF
15591
15592# Transform confdefs.h into an awk script `defines.awk', embedded as
15593# here-document in config.status, that substitutes the proper values into
15594# config.h.in to produce config.h.
15595
15596# Create a delimiter string that does not exist in confdefs.h, to ease
15597# handling of long lines.
15598ac_delim='%!_!# '
15599for ac_last_try in false false :; do
15600 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15601 if test -z "$ac_tt"; then
15602 break
15603 elif $ac_last_try; then
15604 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15605 else
15606 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15607 fi
15608done
15609
15610# For the awk script, D is an array of macro values keyed by name,
15611# likewise P contains macro parameters if any. Preserve backslash
15612# newline sequences.
15613
15614ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15615sed -n '
15616s/.\{148\}/&'"$ac_delim"'/g
15617t rset
15618:rset
15619s/^[ ]*#[ ]*define[ ][ ]*/ /
15620t def
15621d
15622:def
15623s/\\$//
15624t bsnl
15625s/["\\]/\\&/g
15626s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15627D["\1"]=" \3"/p
15628s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15629d
15630:bsnl
15631s/["\\]/\\&/g
15632s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15633D["\1"]=" \3\\\\\\n"\\/p
15634t cont
15635s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15636t cont
15637d
15638:cont
15639n
15640s/.\{148\}/&'"$ac_delim"'/g
15641t clear
15642:clear
15643s/\\$//
15644t bsnlc
15645s/["\\]/\\&/g; s/^/"/; s/$/"/p
15646d
15647:bsnlc
15648s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15649b cont
15650' <confdefs.h | sed '
15651s/'"$ac_delim"'/"\\\
15652"/g' >>$CONFIG_STATUS || ac_write_fail=1
15653
15654cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15655 for (key in D) D_is_set[key] = 1
15656 FS = "\a"
15657}
15658/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15659 line = \$ 0
15660 split(line, arg, " ")
15661 if (arg[1] == "#") {
15662 defundef = arg[2]
15663 mac1 = arg[3]
15664 } else {
15665 defundef = substr(arg[1], 2)
15666 mac1 = arg[2]
15667 }
15668 split(mac1, mac2, "(") #)
15669 macro = mac2[1]
15670 prefix = substr(line, 1, index(line, defundef) - 1)
15671 if (D_is_set[macro]) {
15672 # Preserve the white space surrounding the "#".
15673 print prefix "define", macro P[macro] D[macro]
15674 next
15675 } else {
15676 # Replace #undef with comments. This is necessary, for example,
15677 # in the case of _POSIX_SOURCE, which is predefined and required
15678 # on some systems where configure will not decide to define it.
15679 if (defundef == "undef") {
15680 print "/*", prefix defundef, macro, "*/"
15681 next
15682 }
15683 }
15684}
15685{ print }
15686_ACAWK
15687_ACEOF
15688cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15689 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15690fi # test -n "$CONFIG_HEADERS"
b7026657 15691
b15c5d7a
MF
15692
15693eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
81ecdfbb
RW
15694shift
15695for ac_tag
15696do
15697 case $ac_tag in
15698 :[FHLC]) ac_mode=$ac_tag; continue;;
15699 esac
15700 case $ac_mode$ac_tag in
15701 :[FHL]*:*);;
d0ac1c44 15702 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
15703 :[FH]-) ac_tag=-:-;;
15704 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15705 esac
15706 ac_save_IFS=$IFS
15707 IFS=:
15708 set x $ac_tag
15709 IFS=$ac_save_IFS
15710 shift
15711 ac_file=$1
15712 shift
b7026657 15713
81ecdfbb
RW
15714 case $ac_mode in
15715 :L) ac_source=$1;;
15716 :[FH])
15717 ac_file_inputs=
15718 for ac_f
15719 do
15720 case $ac_f in
d0ac1c44 15721 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
15722 *) # Look for the file first in the build tree, then in the source tree
15723 # (if the path is not absolute). The absolute path cannot be DOS-style,
15724 # because $ac_f cannot contain `:'.
15725 test -f "$ac_f" ||
15726 case $ac_f in
15727 [\\/$]*) false;;
15728 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15729 esac ||
d0ac1c44 15730 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
81ecdfbb
RW
15731 esac
15732 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15733 as_fn_append ac_file_inputs " '$ac_f'"
15734 done
15735
15736 # Let's still pretend it is `configure' which instantiates (i.e., don't
15737 # use $as_me), people would be surprised to read:
15738 # /* config.h. Generated by config.status. */
15739 configure_input='Generated from '`
15740 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15741 `' by configure.'
15742 if test x"$ac_file" != x-; then
15743 configure_input="$ac_file. $configure_input"
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15745$as_echo "$as_me: creating $ac_file" >&6;}
fdd6fa61 15746 fi
81ecdfbb
RW
15747 # Neutralize special characters interpreted by sed in replacement strings.
15748 case $configure_input in #(
15749 *\&* | *\|* | *\\* )
15750 ac_sed_conf_input=`$as_echo "$configure_input" |
15751 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15752 *) ac_sed_conf_input=$configure_input;;
15753 esac
df1756f4 15754
81ecdfbb 15755 case $ac_tag in
d0ac1c44
SM
15756 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15757 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
15758 esac
15759 ;;
df1756f4
TG
15760 esac
15761
81ecdfbb 15762 ac_dir=`$as_dirname -- "$ac_file" ||
b7026657
AC
15763$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15764 X"$ac_file" : 'X\(//\)[^/]' \| \
15765 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
15766 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15767$as_echo X"$ac_file" |
15768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15769 s//\1/
15770 q
15771 }
15772 /^X\(\/\/\)[^/].*/{
15773 s//\1/
15774 q
15775 }
15776 /^X\(\/\/\)$/{
15777 s//\1/
15778 q
15779 }
15780 /^X\(\/\).*/{
15781 s//\1/
15782 q
15783 }
15784 s/.*/./; q'`
15785 as_dir="$ac_dir"; as_fn_mkdir_p
b7026657
AC
15786 ac_builddir=.
15787
81ecdfbb
RW
15788case "$ac_dir" in
15789.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15790*)
15791 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15792 # A ".." for each directory in $ac_dir_suffix.
15793 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15794 case $ac_top_builddir_sub in
15795 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15796 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15797 esac ;;
15798esac
15799ac_abs_top_builddir=$ac_pwd
15800ac_abs_builddir=$ac_pwd$ac_dir_suffix
15801# for backward compatibility:
15802ac_top_builddir=$ac_top_build_prefix
b7026657
AC
15803
15804case $srcdir in
81ecdfbb 15805 .) # We are building in place.
b7026657 15806 ac_srcdir=.
81ecdfbb
RW
15807 ac_top_srcdir=$ac_top_builddir_sub
15808 ac_abs_top_srcdir=$ac_pwd ;;
15809 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 15810 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
15811 ac_top_srcdir=$srcdir
15812 ac_abs_top_srcdir=$srcdir ;;
15813 *) # Relative name.
15814 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15815 ac_top_srcdir=$ac_top_build_prefix$srcdir
15816 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 15817esac
81ecdfbb 15818ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b7026657 15819
b7026657 15820
81ecdfbb
RW
15821 case $ac_mode in
15822 :F)
15823 #
15824 # CONFIG_FILE
15825 #
c906108c 15826
b7026657
AC
15827 case $INSTALL in
15828 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 15829 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
c906108c 15830 esac
6bddc3e8
MF
15831 ac_MKDIR_P=$MKDIR_P
15832 case $MKDIR_P in
15833 [\\/$]* | ?:[\\/]* ) ;;
15834 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15835 esac
81ecdfbb 15836_ACEOF
c906108c 15837
81ecdfbb
RW
15838cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15839# If the template does not know about datarootdir, expand it.
15840# FIXME: This hack should be removed a few years after 2.60.
15841ac_datarootdir_hack=; ac_datarootdir_seen=
15842ac_sed_dataroot='
15843/datarootdir/ {
15844 p
15845 q
15846}
15847/@datadir@/p
15848/@docdir@/p
15849/@infodir@/p
15850/@localedir@/p
15851/@mandir@/p'
15852case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15853*datarootdir*) ac_datarootdir_seen=yes;;
15854*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15856$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15857_ACEOF
15858cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15859 ac_datarootdir_hack='
15860 s&@datadir@&$datadir&g
15861 s&@docdir@&$docdir&g
15862 s&@infodir@&$infodir&g
15863 s&@localedir@&$localedir&g
15864 s&@mandir@&$mandir&g
15865 s&\\\${datarootdir}&$datarootdir&g' ;;
15866esac
b7026657 15867_ACEOF
81ecdfbb
RW
15868
15869# Neutralize VPATH when `$srcdir' = `.'.
15870# Shell code in configure.ac might set extrasub.
15871# FIXME: do we really want to maintain this feature?
15872cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15873ac_sed_extra="$ac_vpsub
b7026657
AC
15874$extrasub
15875_ACEOF
81ecdfbb 15876cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657
AC
15877:t
15878/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
15879s|@configure_input@|$ac_sed_conf_input|;t t
15880s&@top_builddir@&$ac_top_builddir_sub&;t t
15881s&@top_build_prefix@&$ac_top_build_prefix&;t t
15882s&@srcdir@&$ac_srcdir&;t t
15883s&@abs_srcdir@&$ac_abs_srcdir&;t t
15884s&@top_srcdir@&$ac_top_srcdir&;t t
15885s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15886s&@builddir@&$ac_builddir&;t t
15887s&@abs_builddir@&$ac_abs_builddir&;t t
15888s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15889s&@INSTALL@&$ac_INSTALL&;t t
6bddc3e8 15890s&@MKDIR_P@&$ac_MKDIR_P&;t t
81ecdfbb
RW
15891$ac_datarootdir_hack
15892"
d0ac1c44
SM
15893eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15894 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
15895
15896test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
15897 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15898 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15899 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 15900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 15901which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 15902$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 15903which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 15904
d0ac1c44 15905 rm -f "$ac_tmp/stdin"
81ecdfbb 15906 case $ac_file in
d0ac1c44
SM
15907 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15908 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 15909 esac \
d0ac1c44 15910 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb 15911 ;;
b15c5d7a
MF
15912 :H)
15913 #
15914 # CONFIG_HEADER
15915 #
15916 if test x"$ac_file" != x-; then
15917 {
15918 $as_echo "/* $configure_input */" \
15919 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15920 } >"$ac_tmp/config.h" \
15921 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15922 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15923 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15924$as_echo "$as_me: $ac_file is unchanged" >&6;}
15925 else
15926 rm -f "$ac_file"
15927 mv "$ac_tmp/config.h" "$ac_file" \
15928 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15929 fi
15930 else
15931 $as_echo "/* $configure_input */" \
15932 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15933 || as_fn_error $? "could not create -" "$LINENO" 5
15934 fi
15935# Compute "$ac_file"'s index in $config_headers.
15936_am_arg="$ac_file"
15937_am_stamp_count=1
15938for _am_header in $config_headers :; do
15939 case $_am_header in
15940 $_am_arg | $_am_arg:* )
15941 break ;;
15942 * )
15943 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15944 esac
15945done
15946echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15947$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15948 X"$_am_arg" : 'X\(//\)[^/]' \| \
15949 X"$_am_arg" : 'X\(//\)$' \| \
15950 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15951$as_echo X"$_am_arg" |
15952 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15953 s//\1/
15954 q
15955 }
15956 /^X\(\/\/\)[^/].*/{
15957 s//\1/
15958 q
15959 }
15960 /^X\(\/\/\)$/{
15961 s//\1/
15962 q
15963 }
15964 /^X\(\/\).*/{
15965 s//\1/
15966 q
15967 }
15968 s/.*/./; q'`/stamp-h$_am_stamp_count
15969 ;;
df1756f4 15970
6bddc3e8
MF
15971 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15972$as_echo "$as_me: executing $ac_file commands" >&6;}
15973 ;;
15974 esac
15975
c906108c 15976
6bddc3e8 15977 case $ac_file$ac_mode in
b5689863
MF
15978 "libtool":C)
15979
15980 # See if we are running on zsh, and set the options which allow our
15981 # commands through without removal of \ escapes.
15982 if test -n "${ZSH_VERSION+set}" ; then
15983 setopt NO_GLOB_SUBST
15984 fi
15985
15986 cfgfile="${ofile}T"
15987 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15988 $RM "$cfgfile"
15989
15990 cat <<_LT_EOF >> "$cfgfile"
15991#! $SHELL
15992
15993# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15994# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15995# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15996# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15997#
15998# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15999# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16000# Written by Gordon Matzigkeit, 1996
16001#
16002# This file is part of GNU Libtool.
16003#
16004# GNU Libtool is free software; you can redistribute it and/or
16005# modify it under the terms of the GNU General Public License as
16006# published by the Free Software Foundation; either version 2 of
16007# the License, or (at your option) any later version.
16008#
16009# As a special exception to the GNU General Public License,
16010# if you distribute this file as part of a program or library that
16011# is built using GNU Libtool, you may include this file under the
16012# same distribution terms that you use for the rest of that program.
16013#
16014# GNU Libtool is distributed in the hope that it will be useful,
16015# but WITHOUT ANY WARRANTY; without even the implied warranty of
16016# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16017# GNU General Public License for more details.
16018#
16019# You should have received a copy of the GNU General Public License
16020# along with GNU Libtool; see the file COPYING. If not, a copy
16021# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16022# obtained by writing to the Free Software Foundation, Inc.,
16023# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16024
16025
16026# The names of the tagged configurations supported by this script.
16027available_tags=""
16028
16029# ### BEGIN LIBTOOL CONFIG
16030
16031# Which release of libtool.m4 was used?
16032macro_version=$macro_version
16033macro_revision=$macro_revision
16034
16035# Whether or not to build shared libraries.
16036build_libtool_libs=$enable_shared
16037
16038# Whether or not to build static libraries.
16039build_old_libs=$enable_static
16040
16041# What type of objects to build.
16042pic_mode=$pic_mode
16043
16044# Whether or not to optimize for fast installation.
16045fast_install=$enable_fast_install
16046
16047# Shell to use when invoking shell scripts.
16048SHELL=$lt_SHELL
16049
16050# An echo program that protects backslashes.
16051ECHO=$lt_ECHO
16052
16053# The host system.
16054host_alias=$host_alias
16055host=$host
16056host_os=$host_os
16057
16058# The build system.
16059build_alias=$build_alias
16060build=$build
16061build_os=$build_os
16062
16063# A sed program that does not truncate output.
16064SED=$lt_SED
16065
16066# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16067Xsed="\$SED -e 1s/^X//"
16068
16069# A grep program that handles long lines.
16070GREP=$lt_GREP
16071
16072# An ERE matcher.
16073EGREP=$lt_EGREP
16074
16075# A literal string matcher.
16076FGREP=$lt_FGREP
16077
16078# A BSD- or MS-compatible name lister.
16079NM=$lt_NM
16080
16081# Whether we need soft or hard links.
16082LN_S=$lt_LN_S
16083
16084# What is the maximum length of a command?
16085max_cmd_len=$max_cmd_len
16086
16087# Object file suffix (normally "o").
16088objext=$ac_objext
16089
16090# Executable file suffix (normally "").
16091exeext=$exeext
16092
16093# whether the shell understands "unset".
16094lt_unset=$lt_unset
16095
16096# turn spaces into newlines.
16097SP2NL=$lt_lt_SP2NL
16098
16099# turn newlines into spaces.
16100NL2SP=$lt_lt_NL2SP
16101
16102# An object symbol dumper.
16103OBJDUMP=$lt_OBJDUMP
16104
16105# Method to check whether dependent libraries are shared objects.
16106deplibs_check_method=$lt_deplibs_check_method
16107
16108# Command to use when deplibs_check_method == "file_magic".
16109file_magic_cmd=$lt_file_magic_cmd
16110
16111# The archiver.
16112AR=$lt_AR
16113AR_FLAGS=$lt_AR_FLAGS
16114
16115# A symbol stripping program.
16116STRIP=$lt_STRIP
16117
16118# Commands used to install an old-style archive.
16119RANLIB=$lt_RANLIB
16120old_postinstall_cmds=$lt_old_postinstall_cmds
16121old_postuninstall_cmds=$lt_old_postuninstall_cmds
16122
16123# Whether to use a lock for old archive extraction.
16124lock_old_archive_extraction=$lock_old_archive_extraction
16125
16126# A C compiler.
16127LTCC=$lt_CC
16128
16129# LTCC compiler flags.
16130LTCFLAGS=$lt_CFLAGS
16131
16132# Take the output of nm and produce a listing of raw symbols and C names.
16133global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16134
16135# Transform the output of nm in a proper C declaration.
16136global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16137
16138# Transform the output of nm in a C name address pair.
16139global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16140
16141# Transform the output of nm in a C name address pair when lib prefix is needed.
16142global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16143
16144# The name of the directory that contains temporary libtool files.
16145objdir=$objdir
16146
16147# Used to examine libraries when file_magic_cmd begins with "file".
16148MAGIC_CMD=$MAGIC_CMD
16149
16150# Must we lock files when doing compilation?
16151need_locks=$lt_need_locks
16152
16153# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16154DSYMUTIL=$lt_DSYMUTIL
16155
16156# Tool to change global to local symbols on Mac OS X.
16157NMEDIT=$lt_NMEDIT
16158
16159# Tool to manipulate fat objects and archives on Mac OS X.
16160LIPO=$lt_LIPO
16161
16162# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16163OTOOL=$lt_OTOOL
16164
16165# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16166OTOOL64=$lt_OTOOL64
16167
16168# Old archive suffix (normally "a").
16169libext=$libext
16170
16171# Shared library suffix (normally ".so").
16172shrext_cmds=$lt_shrext_cmds
16173
16174# The commands to extract the exported symbol list from a shared archive.
16175extract_expsyms_cmds=$lt_extract_expsyms_cmds
16176
16177# Variables whose values should be saved in libtool wrapper scripts and
16178# restored at link time.
16179variables_saved_for_relink=$lt_variables_saved_for_relink
16180
16181# Do we need the "lib" prefix for modules?
16182need_lib_prefix=$need_lib_prefix
16183
16184# Do we need a version for libraries?
16185need_version=$need_version
16186
16187# Library versioning type.
16188version_type=$version_type
16189
16190# Shared library runtime path variable.
16191runpath_var=$runpath_var
16192
16193# Shared library path variable.
16194shlibpath_var=$shlibpath_var
16195
16196# Is shlibpath searched before the hard-coded library search path?
16197shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16198
16199# Format of library name prefix.
16200libname_spec=$lt_libname_spec
16201
16202# List of archive names. First name is the real one, the rest are links.
16203# The last name is the one that the linker finds with -lNAME
16204library_names_spec=$lt_library_names_spec
16205
16206# The coded name of the library, if different from the real name.
16207soname_spec=$lt_soname_spec
16208
16209# Permission mode override for installation of shared libraries.
16210install_override_mode=$lt_install_override_mode
16211
16212# Command to use after installation of a shared archive.
16213postinstall_cmds=$lt_postinstall_cmds
16214
16215# Command to use after uninstallation of a shared archive.
16216postuninstall_cmds=$lt_postuninstall_cmds
16217
16218# Commands used to finish a libtool library installation in a directory.
16219finish_cmds=$lt_finish_cmds
16220
16221# As "finish_cmds", except a single script fragment to be evaled but
16222# not shown.
16223finish_eval=$lt_finish_eval
16224
16225# Whether we should hardcode library paths into libraries.
16226hardcode_into_libs=$hardcode_into_libs
16227
16228# Compile-time system search path for libraries.
16229sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16230
16231# Run-time system search path for libraries.
16232sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16233
16234# Whether dlopen is supported.
16235dlopen_support=$enable_dlopen
16236
16237# Whether dlopen of programs is supported.
16238dlopen_self=$enable_dlopen_self
16239
16240# Whether dlopen of statically linked programs is supported.
16241dlopen_self_static=$enable_dlopen_self_static
16242
16243# Commands to strip libraries.
16244old_striplib=$lt_old_striplib
16245striplib=$lt_striplib
16246
16247
16248# The linker used to build libraries.
16249LD=$lt_LD
16250
16251# How to create reloadable object files.
16252reload_flag=$lt_reload_flag
16253reload_cmds=$lt_reload_cmds
16254
16255# Commands used to build an old-style archive.
16256old_archive_cmds=$lt_old_archive_cmds
16257
16258# A language specific compiler.
16259CC=$lt_compiler
16260
16261# Is the compiler the GNU compiler?
16262with_gcc=$GCC
16263
16264# Compiler flag to turn off builtin functions.
16265no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16266
16267# How to pass a linker flag through the compiler.
16268wl=$lt_lt_prog_compiler_wl
16269
16270# Additional compiler flags for building library objects.
16271pic_flag=$lt_lt_prog_compiler_pic
16272
16273# Compiler flag to prevent dynamic linking.
16274link_static_flag=$lt_lt_prog_compiler_static
16275
16276# Does compiler simultaneously support -c and -o options?
16277compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16278
16279# Whether or not to add -lc for building shared libraries.
16280build_libtool_need_lc=$archive_cmds_need_lc
16281
16282# Whether or not to disallow shared libs when runtime libs are static.
16283allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16284
16285# Compiler flag to allow reflexive dlopens.
16286export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16287
16288# Compiler flag to generate shared objects directly from archives.
16289whole_archive_flag_spec=$lt_whole_archive_flag_spec
16290
16291# Whether the compiler copes with passing no objects directly.
16292compiler_needs_object=$lt_compiler_needs_object
16293
16294# Create an old-style archive from a shared archive.
16295old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16296
16297# Create a temporary old-style archive to link instead of a shared archive.
16298old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16299
16300# Commands used to build a shared archive.
16301archive_cmds=$lt_archive_cmds
16302archive_expsym_cmds=$lt_archive_expsym_cmds
16303
16304# Commands used to build a loadable module if different from building
16305# a shared archive.
16306module_cmds=$lt_module_cmds
16307module_expsym_cmds=$lt_module_expsym_cmds
16308
16309# Whether we are building with GNU ld or not.
16310with_gnu_ld=$lt_with_gnu_ld
16311
16312# Flag that allows shared libraries with undefined symbols to be built.
16313allow_undefined_flag=$lt_allow_undefined_flag
16314
16315# Flag that enforces no undefined symbols.
16316no_undefined_flag=$lt_no_undefined_flag
16317
16318# Flag to hardcode \$libdir into a binary during linking.
16319# This must work even if \$libdir does not exist
16320hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16321
16322# If ld is used when linking, flag to hardcode \$libdir into a binary
16323# during linking. This must work even if \$libdir does not exist.
16324hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16325
16326# Whether we need a single "-rpath" flag with a separated argument.
16327hardcode_libdir_separator=$lt_hardcode_libdir_separator
16328
16329# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16330# DIR into the resulting binary.
16331hardcode_direct=$hardcode_direct
16332
16333# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16334# DIR into the resulting binary and the resulting library dependency is
16335# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16336# library is relocated.
16337hardcode_direct_absolute=$hardcode_direct_absolute
16338
16339# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16340# into the resulting binary.
16341hardcode_minus_L=$hardcode_minus_L
16342
16343# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16344# into the resulting binary.
16345hardcode_shlibpath_var=$hardcode_shlibpath_var
16346
16347# Set to "yes" if building a shared library automatically hardcodes DIR
16348# into the library and all subsequent libraries and executables linked
16349# against it.
16350hardcode_automatic=$hardcode_automatic
16351
16352# Set to yes if linker adds runtime paths of dependent libraries
16353# to runtime path list.
16354inherit_rpath=$inherit_rpath
16355
16356# Whether libtool must link a program against all its dependency libraries.
16357link_all_deplibs=$link_all_deplibs
16358
16359# Fix the shell variable \$srcfile for the compiler.
16360fix_srcfile_path=$lt_fix_srcfile_path
16361
16362# Set to "yes" if exported symbols are required.
16363always_export_symbols=$always_export_symbols
16364
16365# The commands to list exported symbols.
16366export_symbols_cmds=$lt_export_symbols_cmds
16367
16368# Symbols that should not be listed in the preloaded symbols.
16369exclude_expsyms=$lt_exclude_expsyms
16370
16371# Symbols that must always be exported.
16372include_expsyms=$lt_include_expsyms
16373
16374# Commands necessary for linking programs (against libraries) with templates.
16375prelink_cmds=$lt_prelink_cmds
16376
16377# Specify filename containing input files.
16378file_list_spec=$lt_file_list_spec
16379
16380# How to hardcode a shared library path into an executable.
16381hardcode_action=$hardcode_action
16382
16383# ### END LIBTOOL CONFIG
16384
16385_LT_EOF
16386
16387 case $host_os in
16388 aix3*)
16389 cat <<\_LT_EOF >> "$cfgfile"
16390# AIX sometimes has problems with the GCC collect2 program. For some
16391# reason, if we set the COLLECT_NAMES environment variable, the problems
16392# vanish in a puff of smoke.
16393if test "X${COLLECT_NAMES+set}" != Xset; then
16394 COLLECT_NAMES=
16395 export COLLECT_NAMES
16396fi
16397_LT_EOF
16398 ;;
16399 esac
16400
16401
16402ltmain="$ac_aux_dir/ltmain.sh"
16403
16404
16405 # We use sed instead of cat because bash on DJGPP gets confused if
16406 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16407 # text mode, it properly converts lines to CR/LF. This bash problem
16408 # is reportedly fixed, but why not run on old versions too?
16409 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16410 || (rm -f "$cfgfile"; exit 1)
16411
16412 case $xsi_shell in
16413 yes)
16414 cat << \_LT_EOF >> "$cfgfile"
16415
16416# func_dirname file append nondir_replacement
16417# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16418# otherwise set result to NONDIR_REPLACEMENT.
16419func_dirname ()
16420{
16421 case ${1} in
16422 */*) func_dirname_result="${1%/*}${2}" ;;
16423 * ) func_dirname_result="${3}" ;;
16424 esac
16425}
16426
16427# func_basename file
16428func_basename ()
16429{
16430 func_basename_result="${1##*/}"
16431}
16432
16433# func_dirname_and_basename file append nondir_replacement
16434# perform func_basename and func_dirname in a single function
16435# call:
16436# dirname: Compute the dirname of FILE. If nonempty,
16437# add APPEND to the result, otherwise set result
16438# to NONDIR_REPLACEMENT.
16439# value returned in "$func_dirname_result"
16440# basename: Compute filename of FILE.
16441# value retuned in "$func_basename_result"
16442# Implementation must be kept synchronized with func_dirname
16443# and func_basename. For efficiency, we do not delegate to
16444# those functions but instead duplicate the functionality here.
16445func_dirname_and_basename ()
16446{
16447 case ${1} in
16448 */*) func_dirname_result="${1%/*}${2}" ;;
16449 * ) func_dirname_result="${3}" ;;
16450 esac
16451 func_basename_result="${1##*/}"
16452}
16453
16454# func_stripname prefix suffix name
16455# strip PREFIX and SUFFIX off of NAME.
16456# PREFIX and SUFFIX must not contain globbing or regex special
16457# characters, hashes, percent signs, but SUFFIX may contain a leading
16458# dot (in which case that matches only a dot).
16459func_stripname ()
16460{
16461 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16462 # positional parameters, so assign one to ordinary parameter first.
16463 func_stripname_result=${3}
16464 func_stripname_result=${func_stripname_result#"${1}"}
16465 func_stripname_result=${func_stripname_result%"${2}"}
16466}
16467
16468# func_opt_split
16469func_opt_split ()
16470{
16471 func_opt_split_opt=${1%%=*}
16472 func_opt_split_arg=${1#*=}
16473}
16474
16475# func_lo2o object
16476func_lo2o ()
16477{
16478 case ${1} in
16479 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16480 *) func_lo2o_result=${1} ;;
16481 esac
16482}
16483
16484# func_xform libobj-or-source
16485func_xform ()
16486{
16487 func_xform_result=${1%.*}.lo
16488}
16489
16490# func_arith arithmetic-term...
16491func_arith ()
16492{
16493 func_arith_result=$(( $* ))
16494}
16495
16496# func_len string
16497# STRING may not start with a hyphen.
16498func_len ()
16499{
16500 func_len_result=${#1}
16501}
16502
16503_LT_EOF
16504 ;;
16505 *) # Bourne compatible functions.
16506 cat << \_LT_EOF >> "$cfgfile"
16507
16508# func_dirname file append nondir_replacement
16509# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16510# otherwise set result to NONDIR_REPLACEMENT.
16511func_dirname ()
16512{
16513 # Extract subdirectory from the argument.
16514 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16515 if test "X$func_dirname_result" = "X${1}"; then
16516 func_dirname_result="${3}"
16517 else
16518 func_dirname_result="$func_dirname_result${2}"
16519 fi
16520}
16521
16522# func_basename file
16523func_basename ()
16524{
16525 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16526}
16527
16528
16529# func_stripname prefix suffix name
16530# strip PREFIX and SUFFIX off of NAME.
16531# PREFIX and SUFFIX must not contain globbing or regex special
16532# characters, hashes, percent signs, but SUFFIX may contain a leading
16533# dot (in which case that matches only a dot).
16534# func_strip_suffix prefix name
16535func_stripname ()
16536{
16537 case ${2} in
16538 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16539 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16540 esac
16541}
16542
16543# sed scripts:
16544my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16545my_sed_long_arg='1s/^-[^=]*=//'
16546
16547# func_opt_split
16548func_opt_split ()
16549{
16550 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16551 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16552}
16553
16554# func_lo2o object
16555func_lo2o ()
16556{
16557 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16558}
16559
16560# func_xform libobj-or-source
16561func_xform ()
16562{
16563 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16564}
16565
16566# func_arith arithmetic-term...
16567func_arith ()
16568{
16569 func_arith_result=`expr "$@"`
16570}
16571
16572# func_len string
16573# STRING may not start with a hyphen.
16574func_len ()
16575{
16576 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16577}
16578
16579_LT_EOF
16580esac
16581
16582case $lt_shell_append in
16583 yes)
16584 cat << \_LT_EOF >> "$cfgfile"
16585
16586# func_append var value
16587# Append VALUE to the end of shell variable VAR.
16588func_append ()
16589{
16590 eval "$1+=\$2"
16591}
16592_LT_EOF
16593 ;;
16594 *)
16595 cat << \_LT_EOF >> "$cfgfile"
16596
16597# func_append var value
16598# Append VALUE to the end of shell variable VAR.
16599func_append ()
16600{
16601 eval "$1=\$$1\$2"
16602}
16603
16604_LT_EOF
16605 ;;
16606 esac
16607
16608
16609 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16610 || (rm -f "$cfgfile"; exit 1)
16611
16612 mv -f "$cfgfile" "$ofile" ||
16613 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16614 chmod +x "$ofile"
16615
16616 ;;
6bddc3e8
MF
16617 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16618 # Older Autoconf quotes --file arguments for eval, but not when files
16619 # are listed without --file. Let's play safe and only enable the eval
16620 # if we detect the quoting.
16621 case $CONFIG_FILES in
16622 *\'*) eval set x "$CONFIG_FILES" ;;
16623 *) set x $CONFIG_FILES ;;
81ecdfbb 16624 esac
6bddc3e8
MF
16625 shift
16626 for mf
16627 do
16628 # Strip MF so we end up with the name of the file.
16629 mf=`echo "$mf" | sed -e 's/:.*$//'`
16630 # Check whether this is an Automake generated Makefile or not.
16631 # We used to match only the files named 'Makefile.in', but
16632 # some people rename them; so instead we look at the file content.
16633 # Grep'ing the first line is not enough: some people post-process
16634 # each Makefile.in and add a new line on top of each file to say so.
16635 # Grep'ing the whole file is not good either: AIX grep has a line
16636 # limit of 2048, but all sed's we know have understand at least 4000.
16637 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16638 dirpart=`$as_dirname -- "$mf" ||
16639$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16640 X"$mf" : 'X\(//\)[^/]' \| \
16641 X"$mf" : 'X\(//\)$' \| \
16642 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16643$as_echo X"$mf" |
16644 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16645 s//\1/
16646 q
16647 }
16648 /^X\(\/\/\)[^/].*/{
16649 s//\1/
16650 q
16651 }
16652 /^X\(\/\/\)$/{
16653 s//\1/
16654 q
16655 }
16656 /^X\(\/\).*/{
16657 s//\1/
16658 q
16659 }
16660 s/.*/./; q'`
16661 else
16662 continue
16663 fi
16664 # Extract the definition of DEPDIR, am__include, and am__quote
16665 # from the Makefile without running 'make'.
16666 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16667 test -z "$DEPDIR" && continue
16668 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16669 test -z "$am__include" && continue
16670 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16671 # Find all dependency output files, they are included files with
16672 # $(DEPDIR) in their names. We invoke sed twice because it is the
16673 # simplest approach to changing $(DEPDIR) to its actual value in the
16674 # expansion.
16675 for file in `sed -n "
16676 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16677 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16678 # Make sure the directory exists.
16679 test -f "$dirpart/$file" && continue
16680 fdir=`$as_dirname -- "$file" ||
16681$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16682 X"$file" : 'X\(//\)[^/]' \| \
16683 X"$file" : 'X\(//\)$' \| \
16684 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16685$as_echo X"$file" |
16686 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16687 s//\1/
16688 q
16689 }
16690 /^X\(\/\/\)[^/].*/{
16691 s//\1/
16692 q
16693 }
16694 /^X\(\/\/\)$/{
16695 s//\1/
16696 q
16697 }
16698 /^X\(\/\).*/{
16699 s//\1/
16700 q
16701 }
16702 s/.*/./; q'`
16703 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16704 # echo "creating $dirpart/$file"
16705 echo '# dummy' > "$dirpart/$file"
16706 done
16707 done
16708}
36bb57e4
MF
16709 ;;
16710 "aarch64/Makefile":C) sed -n \
16711 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
b3408412 16712 /^srcdir = / s:$:/aarch64:
36bb57e4
MF
16713 p
16714 }' \
16715 <Make-common.sim >aarch64/Makesim1.tmp
16716 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >aarch64/Makesim2.tmp
16717 sed -e '/^## COMMON_PRE_/ r aarch64/Makesim1.tmp' \
16718 -e '/^## COMMON_POST_/ r aarch64/Makesim2.tmp' \
16719 <aarch64/Makefile.sim >aarch64/Makefile
16720 rm -f aarch64/Makesim1.tmp aarch64/Makesim2.tmp
6bddc3e8 16721 ;;
bc56166f 16722 "depdir-aarch64":C) $SHELL $ac_aux_dir/mkinstalldirs aarch64/$DEPDIR ;;
36bb57e4
MF
16723 "arm/Makefile":C) sed -n \
16724 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
b3408412 16725 /^srcdir = / s:$:/arm:
36bb57e4
MF
16726 p
16727 }' \
16728 <Make-common.sim >arm/Makesim1.tmp
16729 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >arm/Makesim2.tmp
16730 sed -e '/^## COMMON_PRE_/ r arm/Makesim1.tmp' \
16731 -e '/^## COMMON_POST_/ r arm/Makesim2.tmp' \
16732 <arm/Makefile.sim >arm/Makefile
16733 rm -f arm/Makesim1.tmp arm/Makesim2.tmp
16734 ;;
bc56166f 16735 "depdir-arm":C) $SHELL $ac_aux_dir/mkinstalldirs arm/$DEPDIR ;;
36bb57e4
MF
16736 "avr/Makefile":C) sed -n \
16737 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
b3408412 16738 /^srcdir = / s:$:/avr:
36bb57e4
MF
16739 p
16740 }' \
16741 <Make-common.sim >avr/Makesim1.tmp
16742 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >avr/Makesim2.tmp
16743 sed -e '/^## COMMON_PRE_/ r avr/Makesim1.tmp' \
16744 -e '/^## COMMON_POST_/ r avr/Makesim2.tmp' \
16745 <avr/Makefile.sim >avr/Makefile
16746 rm -f avr/Makesim1.tmp avr/Makesim2.tmp
16747 ;;
bc56166f
MF
16748 "depdir-avr":C) $SHELL $ac_aux_dir/mkinstalldirs avr/$DEPDIR ;;
16749 "depdir-bfin":C) $SHELL $ac_aux_dir/mkinstalldirs bfin/$DEPDIR ;;
16750 "depdir-bpf":C) $SHELL $ac_aux_dir/mkinstalldirs bpf/$DEPDIR ;;
36bb57e4
MF
16751 "cr16/Makefile":C) sed -n \
16752 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
b3408412 16753 /^srcdir = / s:$:/cr16:
36bb57e4
MF
16754 p
16755 }' \
16756 <Make-common.sim >cr16/Makesim1.tmp
16757 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >cr16/Makesim2.tmp
16758 sed -e '/^## COMMON_PRE_/ r cr16/Makesim1.tmp' \
16759 -e '/^## COMMON_POST_/ r cr16/Makesim2.tmp' \
16760 <cr16/Makefile.sim >cr16/Makefile
16761 rm -f cr16/Makesim1.tmp cr16/Makesim2.tmp
16762 ;;
bc56166f
MF
16763 "depdir-cr16":C) $SHELL $ac_aux_dir/mkinstalldirs cr16/$DEPDIR ;;
16764 "depdir-cris":C) $SHELL $ac_aux_dir/mkinstalldirs cris/$DEPDIR ;;
36bb57e4
MF
16765 "d10v/Makefile":C) sed -n \
16766 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
b3408412 16767 /^srcdir = / s:$:/d10v:
36bb57e4
MF
16768 p
16769 }' \
16770 <Make-common.sim >d10v/Makesim1.tmp
16771 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >d10v/Makesim2.tmp
16772 sed -e '/^## COMMON_PRE_/ r d10v/Makesim1.tmp' \
16773 -e '/^## COMMON_POST_/ r d10v/Makesim2.tmp' \
16774 <d10v/Makefile.sim >d10v/Makefile
16775 rm -f d10v/Makesim1.tmp d10v/Makesim2.tmp
16776 ;;
bc56166f
MF
16777 "depdir-d10v":C) $SHELL $ac_aux_dir/mkinstalldirs d10v/$DEPDIR ;;
16778 "depdir-frv":C) $SHELL $ac_aux_dir/mkinstalldirs frv/$DEPDIR ;;
36bb57e4
MF
16779 "ft32/Makefile":C) sed -n \
16780 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
b3408412 16781 /^srcdir = / s:$:/ft32:
36bb57e4
MF
16782 p
16783 }' \
16784 <Make-common.sim >ft32/Makesim1.tmp
16785 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >ft32/Makesim2.tmp
16786 sed -e '/^## COMMON_PRE_/ r ft32/Makesim1.tmp' \
16787 -e '/^## COMMON_POST_/ r ft32/Makesim2.tmp' \
16788 <ft32/Makefile.sim >ft32/Makefile
16789 rm -f ft32/Makesim1.tmp ft32/Makesim2.tmp
16790 ;;
16791 "depdir-ft32":C) $SHELL $ac_aux_dir/mkinstalldirs ft32/$DEPDIR ;;
16792 "h8300/Makefile":C) sed -n \
16793 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
b3408412 16794 /^srcdir = / s:$:/h8300:
36bb57e4
MF
16795 p
16796 }' \
16797 <Make-common.sim >h8300/Makesim1.tmp
16798 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >h8300/Makesim2.tmp
16799 sed -e '/^## COMMON_PRE_/ r h8300/Makesim1.tmp' \
16800 -e '/^## COMMON_POST_/ r h8300/Makesim2.tmp' \
16801 <h8300/Makefile.sim >h8300/Makefile
16802 rm -f h8300/Makesim1.tmp h8300/Makesim2.tmp
16803 ;;
bc56166f
MF
16804 "depdir-h8300":C) $SHELL $ac_aux_dir/mkinstalldirs h8300/$DEPDIR ;;
16805 "depdir-iq2000":C) $SHELL $ac_aux_dir/mkinstalldirs iq2000/$DEPDIR ;;
16806 "depdir-lm32":C) $SHELL $ac_aux_dir/mkinstalldirs lm32/$DEPDIR ;;
36bb57e4
MF
16807 "m32c/Makefile":C) sed -n \
16808 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
b3408412 16809 /^srcdir = / s:$:/m32c:
36bb57e4
MF
16810 p
16811 }' \
16812 <Make-common.sim >m32c/Makesim1.tmp
16813 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >m32c/Makesim2.tmp
16814 sed -e '/^## COMMON_PRE_/ r m32c/Makesim1.tmp' \
16815 -e '/^## COMMON_POST_/ r m32c/Makesim2.tmp' \
16816 <m32c/Makefile.sim >m32c/Makefile
16817 rm -f m32c/Makesim1.tmp m32c/Makesim2.tmp
16818 ;;
bc56166f
MF
16819 "depdir-m32c":C) $SHELL $ac_aux_dir/mkinstalldirs m32c/$DEPDIR ;;
16820 "depdir-m32r":C) $SHELL $ac_aux_dir/mkinstalldirs m32r/$DEPDIR ;;
36bb57e4
MF
16821 "m68hc11/Makefile":C) sed -n \
16822 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
b3408412 16823 /^srcdir = / s:$:/m68hc11:
36bb57e4
MF
16824 p
16825 }' \
16826 <Make-common.sim >m68hc11/Makesim1.tmp
16827 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >m68hc11/Makesim2.tmp
16828 sed -e '/^## COMMON_PRE_/ r m68hc11/Makesim1.tmp' \
16829 -e '/^## COMMON_POST_/ r m68hc11/Makesim2.tmp' \
16830 <m68hc11/Makefile.sim >m68hc11/Makefile
16831 rm -f m68hc11/Makesim1.tmp m68hc11/Makesim2.tmp
16832 ;;
bc56166f 16833 "depdir-m68hc11":C) $SHELL $ac_aux_dir/mkinstalldirs m68hc11/$DEPDIR ;;
36bb57e4
MF
16834 "mcore/Makefile":C) sed -n \
16835 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
b3408412 16836 /^srcdir = / s:$:/mcore:
36bb57e4
MF
16837 p
16838 }' \
16839 <Make-common.sim >mcore/Makesim1.tmp
16840 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >mcore/Makesim2.tmp
16841 sed -e '/^## COMMON_PRE_/ r mcore/Makesim1.tmp' \
16842 -e '/^## COMMON_POST_/ r mcore/Makesim2.tmp' \
16843 <mcore/Makefile.sim >mcore/Makefile
16844 rm -f mcore/Makesim1.tmp mcore/Makesim2.tmp
16845 ;;
bc56166f 16846 "depdir-mcore":C) $SHELL $ac_aux_dir/mkinstalldirs mcore/$DEPDIR ;;
36bb57e4
MF
16847 "microblaze/Makefile":C) sed -n \
16848 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
b3408412 16849 /^srcdir = / s:$:/microblaze:
36bb57e4
MF
16850 p
16851 }' \
16852 <Make-common.sim >microblaze/Makesim1.tmp
16853 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >microblaze/Makesim2.tmp
16854 sed -e '/^## COMMON_PRE_/ r microblaze/Makesim1.tmp' \
16855 -e '/^## COMMON_POST_/ r microblaze/Makesim2.tmp' \
16856 <microblaze/Makefile.sim >microblaze/Makefile
16857 rm -f microblaze/Makesim1.tmp microblaze/Makesim2.tmp
16858 ;;
bc56166f
MF
16859 "depdir-microblaze":C) $SHELL $ac_aux_dir/mkinstalldirs microblaze/$DEPDIR ;;
16860 "depdir-mips":C) $SHELL $ac_aux_dir/mkinstalldirs mips/$DEPDIR ;;
16861 "depdir-mn10300":C) $SHELL $ac_aux_dir/mkinstalldirs mn10300/$DEPDIR ;;
36bb57e4
MF
16862 "moxie/Makefile":C) sed -n \
16863 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
b3408412 16864 /^srcdir = / s:$:/moxie:
36bb57e4
MF
16865 p
16866 }' \
16867 <Make-common.sim >moxie/Makesim1.tmp
16868 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >moxie/Makesim2.tmp
16869 sed -e '/^## COMMON_PRE_/ r moxie/Makesim1.tmp' \
16870 -e '/^## COMMON_POST_/ r moxie/Makesim2.tmp' \
16871 <moxie/Makefile.sim >moxie/Makefile
16872 rm -f moxie/Makesim1.tmp moxie/Makesim2.tmp
16873 ;;
bc56166f 16874 "depdir-moxie":C) $SHELL $ac_aux_dir/mkinstalldirs moxie/$DEPDIR ;;
36bb57e4
MF
16875 "msp430/Makefile":C) sed -n \
16876 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
b3408412 16877 /^srcdir = / s:$:/msp430:
36bb57e4
MF
16878 p
16879 }' \
16880 <Make-common.sim >msp430/Makesim1.tmp
16881 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >msp430/Makesim2.tmp
16882 sed -e '/^## COMMON_PRE_/ r msp430/Makesim1.tmp' \
16883 -e '/^## COMMON_POST_/ r msp430/Makesim2.tmp' \
16884 <msp430/Makefile.sim >msp430/Makefile
16885 rm -f msp430/Makesim1.tmp msp430/Makesim2.tmp
16886 ;;
bc56166f
MF
16887 "depdir-msp430":C) $SHELL $ac_aux_dir/mkinstalldirs msp430/$DEPDIR ;;
16888 "depdir-or1k":C) $SHELL $ac_aux_dir/mkinstalldirs or1k/$DEPDIR ;;
36bb57e4
MF
16889 "pru/Makefile":C) sed -n \
16890 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
b3408412 16891 /^srcdir = / s:$:/pru:
36bb57e4
MF
16892 p
16893 }' \
16894 <Make-common.sim >pru/Makesim1.tmp
16895 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >pru/Makesim2.tmp
16896 sed -e '/^## COMMON_PRE_/ r pru/Makesim1.tmp' \
16897 -e '/^## COMMON_POST_/ r pru/Makesim2.tmp' \
16898 <pru/Makefile.sim >pru/Makefile
16899 rm -f pru/Makesim1.tmp pru/Makesim2.tmp
16900 ;;
bc56166f
MF
16901 "depdir-pru":C) $SHELL $ac_aux_dir/mkinstalldirs pru/$DEPDIR ;;
16902 "depdir-riscv":C) $SHELL $ac_aux_dir/mkinstalldirs riscv/$DEPDIR ;;
36bb57e4
MF
16903 "rl78/Makefile":C) sed -n \
16904 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
b3408412 16905 /^srcdir = / s:$:/rl78:
36bb57e4
MF
16906 p
16907 }' \
16908 <Make-common.sim >rl78/Makesim1.tmp
16909 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >rl78/Makesim2.tmp
16910 sed -e '/^## COMMON_PRE_/ r rl78/Makesim1.tmp' \
16911 -e '/^## COMMON_POST_/ r rl78/Makesim2.tmp' \
16912 <rl78/Makefile.sim >rl78/Makefile
16913 rm -f rl78/Makesim1.tmp rl78/Makesim2.tmp
16914 ;;
bc56166f 16915 "depdir-rl78":C) $SHELL $ac_aux_dir/mkinstalldirs rl78/$DEPDIR ;;
e173c80f
MF
16916 "rx/Makefile":C) sed -n \
16917 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
b3408412 16918 /^srcdir = / s:$:/rx:
e173c80f
MF
16919 p
16920 }' \
16921 <Make-common.sim >rx/Makesim1.tmp
16922 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >rx/Makesim2.tmp
16923 sed -e '/^## COMMON_PRE_/ r rx/Makesim1.tmp' \
16924 -e '/^## COMMON_POST_/ r rx/Makesim2.tmp' \
16925 <rx/Makefile.sim >rx/Makefile
16926 rm -f rx/Makesim1.tmp rx/Makesim2.tmp
16927 ;;
bc56166f 16928 "depdir-rx":C) $SHELL $ac_aux_dir/mkinstalldirs rx/$DEPDIR ;;
36bb57e4
MF
16929 "sh/Makefile":C) sed -n \
16930 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
b3408412 16931 /^srcdir = / s:$:/sh:
36bb57e4
MF
16932 p
16933 }' \
16934 <Make-common.sim >sh/Makesim1.tmp
16935 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >sh/Makesim2.tmp
16936 sed -e '/^## COMMON_PRE_/ r sh/Makesim1.tmp' \
16937 -e '/^## COMMON_POST_/ r sh/Makesim2.tmp' \
16938 <sh/Makefile.sim >sh/Makefile
16939 rm -f sh/Makesim1.tmp sh/Makesim2.tmp
16940 ;;
bc56166f
MF
16941 "depdir-sh":C) $SHELL $ac_aux_dir/mkinstalldirs sh/$DEPDIR ;;
16942 "depdir-erc32":C) $SHELL $ac_aux_dir/mkinstalldirs erc32/$DEPDIR ;;
16943 "depdir-ppc":C) $SHELL $ac_aux_dir/mkinstalldirs ppc/$DEPDIR ;;
bc56166f 16944 "depdir-v850":C) $SHELL $ac_aux_dir/mkinstalldirs v850/$DEPDIR ;;
36bb57e4
MF
16945 "example-synacor/Makefile":C) sed -n \
16946 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
b3408412 16947 /^srcdir = / s:$:/example-synacor:
36bb57e4
MF
16948 p
16949 }' \
16950 <Make-common.sim >example-synacor/Makesim1.tmp
16951 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >example-synacor/Makesim2.tmp
16952 sed -e '/^## COMMON_PRE_/ r example-synacor/Makesim1.tmp' \
16953 -e '/^## COMMON_POST_/ r example-synacor/Makesim2.tmp' \
16954 <example-synacor/Makefile.sim >example-synacor/Makefile
16955 rm -f example-synacor/Makesim1.tmp example-synacor/Makesim2.tmp
16956 ;;
bc56166f 16957 "depdir-example-synacor":C) $SHELL $ac_aux_dir/mkinstalldirs example-synacor/$DEPDIR ;;
81ecdfbb 16958
6bddc3e8 16959 esac
81ecdfbb
RW
16960done # for ac_tag
16961
16962
16963as_fn_exit 0
b7026657 16964_ACEOF
b7026657
AC
16965ac_clean_files=$ac_clean_files_save
16966
81ecdfbb 16967test $ac_write_fail = 0 ||
d0ac1c44 16968 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 16969
b7026657
AC
16970
16971# configure is writing to config.log, and then calls config.status.
16972# config.status does its own redirection, appending to config.log.
16973# Unfortunately, on DOS this fails, as config.log is still kept open
16974# by configure, so config.status won't be able to write to it; its
16975# output is simply discarded. So we exec the FD to /dev/null,
16976# effectively closing config.log, so it can be properly (re)opened and
16977# appended to by config.status. When coming back to configure, we
16978# need to make the FD available again.
16979if test "$no_create" != yes; then
16980 ac_cs_success=:
16981 ac_config_status_args=
16982 test "$silent" = yes &&
16983 ac_config_status_args="$ac_config_status_args --quiet"
16984 exec 5>/dev/null
16985 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16986 exec 5>>config.log
16987 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16988 # would make configure fail if this is the last instruction.
d0ac1c44 16989 $ac_cs_success || as_fn_exit 1
b7026657 16990fi
c906108c 16991
b7026657 16992#
81ecdfbb 16993# CONFIG_SUBDIRS section.
b7026657 16994#
c906108c
SS
16995if test "$no_recursion" != yes; then
16996
81ecdfbb
RW
16997 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
16998 # so they do not pile up.
c906108c
SS
16999 ac_sub_configure_args=
17000 ac_prev=
d6416cdc
RW
17001 eval "set x $ac_configure_args"
17002 shift
17003 for ac_arg
17004 do
c906108c
SS
17005 if test -n "$ac_prev"; then
17006 ac_prev=
17007 continue
17008 fi
b7026657 17009 case $ac_arg in
c906108c
SS
17010 -cache-file | --cache-file | --cache-fil | --cache-fi \
17011 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17012 ac_prev=cache_file ;;
17013 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
b7026657
AC
17014 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
17015 | --c=*)
17016 ;;
17017 --config-cache | -C)
c906108c
SS
17018 ;;
17019 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17020 ac_prev=srcdir ;;
17021 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17022 ;;
b7026657
AC
17023 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
17024 ac_prev=prefix ;;
17025 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
17026 ;;
81ecdfbb
RW
17027 --disable-option-checking)
17028 ;;
d6416cdc
RW
17029 *)
17030 case $ac_arg in
81ecdfbb 17031 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
d6416cdc 17032 esac
81ecdfbb 17033 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
c906108c
SS
17034 esac
17035 done
17036
b7026657
AC
17037 # Always prepend --prefix to ensure using the same prefix
17038 # in subdir configurations.
d6416cdc
RW
17039 ac_arg="--prefix=$prefix"
17040 case $ac_arg in
81ecdfbb 17041 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
d6416cdc 17042 esac
81ecdfbb
RW
17043 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
17044
17045 # Pass --silent
17046 if test "$silent" = yes; then
17047 ac_sub_configure_args="--silent $ac_sub_configure_args"
17048 fi
17049
17050 # Always prepend --disable-option-checking to silence warnings, since
17051 # different subdirs can have different --enable and --with options.
17052 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
b7026657
AC
17053
17054 ac_popdir=`pwd`
17055 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
c906108c
SS
17056
17057 # Do not complain, so a configure script can configure whichever
17058 # parts of a large source tree are present.
d6416cdc 17059 test -d "$srcdir/$ac_dir" || continue
fdd6fa61 17060
81ecdfbb
RW
17061 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
17062 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
17063 $as_echo "$ac_msg" >&6
17064 as_dir="$ac_dir"; as_fn_mkdir_p
b7026657
AC
17065 ac_builddir=.
17066
81ecdfbb
RW
17067case "$ac_dir" in
17068.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17069*)
17070 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17071 # A ".." for each directory in $ac_dir_suffix.
17072 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17073 case $ac_top_builddir_sub in
17074 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17075 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17076 esac ;;
17077esac
17078ac_abs_top_builddir=$ac_pwd
17079ac_abs_builddir=$ac_pwd$ac_dir_suffix
17080# for backward compatibility:
17081ac_top_builddir=$ac_top_build_prefix
c906108c 17082
b7026657 17083case $srcdir in
81ecdfbb 17084 .) # We are building in place.
b7026657 17085 ac_srcdir=.
81ecdfbb
RW
17086 ac_top_srcdir=$ac_top_builddir_sub
17087 ac_abs_top_srcdir=$ac_pwd ;;
17088 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 17089 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
17090 ac_top_srcdir=$srcdir
17091 ac_abs_top_srcdir=$srcdir ;;
17092 *) # Relative name.
17093 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17094 ac_top_srcdir=$ac_top_build_prefix$srcdir
17095 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 17096esac
81ecdfbb 17097ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
c906108c 17098
c906108c 17099
d6416cdc 17100 cd "$ac_dir"
c906108c
SS
17101
17102 # Check for guested configure; otherwise get Cygnus style configure.
d6416cdc
RW
17103 if test -f "$ac_srcdir/configure.gnu"; then
17104 ac_sub_configure=$ac_srcdir/configure.gnu
17105 elif test -f "$ac_srcdir/configure"; then
17106 ac_sub_configure=$ac_srcdir/configure
17107 elif test -f "$ac_srcdir/configure.in"; then
17108 # This should be Cygnus configure.
17109 ac_sub_configure=$ac_aux_dir/configure
c906108c 17110 else
81ecdfbb
RW
17111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
17112$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
c906108c
SS
17113 ac_sub_configure=
17114 fi
17115
17116 # The recursion is here.
17117 if test -n "$ac_sub_configure"; then
c906108c 17118 # Make the cache file name correct relative to the subdirectory.
b7026657
AC
17119 case $cache_file in
17120 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
81ecdfbb
RW
17121 *) # Relative name.
17122 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
c906108c 17123 esac
c906108c 17124
81ecdfbb
RW
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
17126$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
c906108c 17127 # The eval makes quoting arguments work.
d6416cdc
RW
17128 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
17129 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
d0ac1c44 17130 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
c906108c
SS
17131 fi
17132
d6416cdc 17133 cd "$ac_popdir"
c906108c
SS
17134 done
17135fi
81ecdfbb
RW
17136if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17138$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17139fi
c906108c 17140