]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/configure
sim: move sim-inline to the common code
[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
d73f39ee 641SIM_INLINE
b6b1c790
MF
642SIM_ENABLE_IGEN_FALSE
643SIM_ENABLE_IGEN_TRUE
81ecdfbb 644subdirs
a0e674c1 645SIM_PRIMARY_TARGET
c2783492
MF
646AM_BACKSLASH
647AM_DEFAULT_VERBOSITY
648AM_DEFAULT_V
649AM_V
6bddc3e8
MF
650am__fastdepCC_FALSE
651am__fastdepCC_TRUE
652CCDEPMODE
653am__nodep
654AMDEPBACKSLASH
655AMDEP_FALSE
656AMDEP_TRUE
657am__quote
658am__include
659DEPDIR
6bddc3e8
MF
660am__untar
661am__tar
662AMTAR
663am__leading_dot
664SET_MAKE
6bddc3e8
MF
665mkdir_p
666MKDIR_P
667INSTALL_STRIP_PROGRAM
6bddc3e8
MF
668install_sh
669MAKEINFO
670AUTOHEADER
671AUTOMAKE
672AUTOCONF
673ACLOCAL
674VERSION
675PACKAGE
676CYGPATH_W
677am__isrc
8c379db2
TT
678MAINT
679MAINTAINER_MODE_FALSE
680MAINTAINER_MODE_TRUE
b5689863
MF
681lt_cv_dlopen_libs
682OTOOL64
683OTOOL
684LIPO
685NMEDIT
686DSYMUTIL
687AWK
688STRIP
689OBJDUMP
690LN_S
691NM
692ac_ct_DUMPBIN
693DUMPBIN
694LD
695FGREP
696SED
697LIBTOOL
698PLUGINS_FALSE
699PLUGINS_TRUE
700zlibinc
701zlibdir
ce3ec98a
MF
702CATOBJEXT
703GENCAT
704INSTOBJEXT
705DATADIRNAME
706CATALOGS
707POSUB
708GMSGFMT
709XGETTEXT
710INCINTL
711LIBINTL_DEP
712LIBINTL
713USE_NLS
a48ff3ef 714LIBOBJS
c2783492
MF
715C_DIALECT
716RANLIB
717AR
718LDFLAGS_FOR_BUILD
719CFLAGS_FOR_BUILD
aa0fca16 720RANLIB_FOR_BUILD
c2783492 721CC_FOR_BUILD
aa0fca16 722AR_FOR_BUILD
a979f2a0 723DTC
c2783492
MF
724INSTALL_DATA
725INSTALL_SCRIPT
726INSTALL_PROGRAM
727EGREP
728GREP
729CPP
730OBJEXT
731EXEEXT
732ac_ct_CC
733CPPFLAGS
734LDFLAGS
735CFLAGS
736CC
81ecdfbb
RW
737target_os
738target_vendor
739target_cpu
740target
741host_os
742host_vendor
743host_cpu
744host
745build_os
746build_vendor
747build_cpu
748build
6dd65fc0
MF
749REPORT_BUGS_TEXI
750REPORT_BUGS_TO
751PKGVERSION
81ecdfbb
RW
752target_alias
753host_alias
754build_alias
755LIBS
756ECHO_T
757ECHO_N
758ECHO_C
759DEFS
760mandir
761localedir
762libdir
763psdir
764pdfdir
765dvidir
766htmldir
767infodir
768docdir
769oldincludedir
770includedir
771localstatedir
772sharedstatedir
773sysconfdir
774datadir
775datarootdir
776libexecdir
777sbindir
778bindir
779program_transform_name
780prefix
781exec_prefix
782PACKAGE_URL
783PACKAGE_BUGREPORT
784PACKAGE_STRING
785PACKAGE_VERSION
786PACKAGE_TARNAME
787PACKAGE_NAME
788PATH_SEPARATOR
47ce766a
MF
789SHELL
790WERROR_CFLAGS
791WARN_CFLAGS'
b7026657 792ac_subst_files=''
81ecdfbb
RW
793ac_user_opts='
794enable_option_checking
6dd65fc0
MF
795with_pkgversion
796with_bugurl
b5689863
MF
797with_system_zlib
798enable_plugins
799enable_shared
800enable_static
801with_pic
802enable_fast_install
803with_gnu_ld
804enable_libtool_lock
8c379db2 805enable_maintainer_mode
6bddc3e8 806enable_dependency_tracking
c2783492 807enable_silent_rules
81ecdfbb 808enable_sim
26da232c 809enable_example_sims
a0e674c1 810enable_targets
ba307cdd 811enable_sim_alignment
dba333c1 812enable_sim_assert
04381273 813enable_sim_debug
f9a4d543 814enable_sim_endian
5ea45474 815enable_sim_environment
d73f39ee 816enable_sim_inline
04381273
MF
817enable_sim_profile
818enable_sim_stdio
819enable_sim_trace
47ce766a
MF
820enable_werror
821enable_build_warnings
822enable_sim_build_warnings
81ecdfbb
RW
823'
824 ac_precious_vars='build_alias
825host_alias
826target_alias
827CC
828CFLAGS
829LDFLAGS
830LIBS
5e25901f
MF
831CPPFLAGS
832CPP'
2e8cf49e
NC
833ac_subdirs_all='aarch64
834arm
81ecdfbb 835avr
ef016f83 836bfin
b26e2ae7 837bpf
81ecdfbb
RW
838cr16
839cris
840d10v
841frv
842h8300
843iq2000
844lm32
845m32c
846m32r
847m68hc11
848mcore
bd30e45a 849microblaze
81ecdfbb
RW
850mips
851mn10300
852moxie
3346cfda 853msp430
37f980dc 854or1k
ddd44b70 855pru
b9249c46 856riscv
87326c78 857rl78
4f8d4a38 858rx
81ecdfbb
RW
859sh
860erc32
861ppc
f46e4eb7 862ft32
26da232c
MF
863v850
864example-synacor'
c906108c
SS
865
866# Initialize some variables set by options.
b7026657
AC
867ac_init_help=
868ac_init_version=false
81ecdfbb
RW
869ac_unrecognized_opts=
870ac_unrecognized_sep=
c906108c
SS
871# The variables have the same names as the options, with
872# dashes changed to underlines.
b7026657 873cache_file=/dev/null
c906108c 874exec_prefix=NONE
c906108c 875no_create=
c906108c
SS
876no_recursion=
877prefix=NONE
878program_prefix=NONE
879program_suffix=NONE
880program_transform_name=s,x,x,
881silent=
882site=
883srcdir=
c906108c
SS
884verbose=
885x_includes=NONE
886x_libraries=NONE
b7026657
AC
887
888# Installation directory options.
889# These are left unexpanded so users can "make install exec_prefix=/foo"
890# and all the variables that are supposed to be based on exec_prefix
891# by default will actually change.
892# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 893# (The list follows the same order as the GNU Coding Standards.)
c906108c
SS
894bindir='${exec_prefix}/bin'
895sbindir='${exec_prefix}/sbin'
896libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
897datarootdir='${prefix}/share'
898datadir='${datarootdir}'
c906108c
SS
899sysconfdir='${prefix}/etc'
900sharedstatedir='${prefix}/com'
901localstatedir='${prefix}/var'
c906108c
SS
902includedir='${prefix}/include'
903oldincludedir='/usr/include'
6bddc3e8 904docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
81ecdfbb
RW
905infodir='${datarootdir}/info'
906htmldir='${docdir}'
907dvidir='${docdir}'
908pdfdir='${docdir}'
909psdir='${docdir}'
910libdir='${exec_prefix}/lib'
911localedir='${datarootdir}/locale'
912mandir='${datarootdir}/man'
c906108c 913
c906108c 914ac_prev=
81ecdfbb 915ac_dashdash=
c906108c
SS
916for ac_option
917do
c906108c
SS
918 # If the previous option needs an argument, assign it.
919 if test -n "$ac_prev"; then
81ecdfbb 920 eval $ac_prev=\$ac_option
c906108c
SS
921 ac_prev=
922 continue
923 fi
924
81ecdfbb 925 case $ac_option in
d0ac1c44
SM
926 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
927 *=) ac_optarg= ;;
928 *) ac_optarg=yes ;;
81ecdfbb 929 esac
c906108c
SS
930
931 # Accept the important Cygnus configure options, so we can diagnose typos.
932
81ecdfbb
RW
933 case $ac_dashdash$ac_option in
934 --)
935 ac_dashdash=yes ;;
c906108c
SS
936
937 -bindir | --bindir | --bindi | --bind | --bin | --bi)
938 ac_prev=bindir ;;
939 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b7026657 940 bindir=$ac_optarg ;;
c906108c
SS
941
942 -build | --build | --buil | --bui | --bu)
b7026657 943 ac_prev=build_alias ;;
c906108c 944 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b7026657 945 build_alias=$ac_optarg ;;
c906108c
SS
946
947 -cache-file | --cache-file | --cache-fil | --cache-fi \
948 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
949 ac_prev=cache_file ;;
950 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
951 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
b7026657
AC
952 cache_file=$ac_optarg ;;
953
954 --config-cache | -C)
955 cache_file=config.cache ;;
c906108c 956
81ecdfbb 957 -datadir | --datadir | --datadi | --datad)
c906108c 958 ac_prev=datadir ;;
81ecdfbb 959 -datadir=* | --datadir=* | --datadi=* | --datad=*)
b7026657 960 datadir=$ac_optarg ;;
c906108c 961
81ecdfbb
RW
962 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
963 | --dataroo | --dataro | --datar)
964 ac_prev=datarootdir ;;
965 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
966 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
967 datarootdir=$ac_optarg ;;
968
c906108c 969 -disable-* | --disable-*)
81ecdfbb 970 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 971 # Reject names that are not valid shell variable names.
81ecdfbb 972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 973 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
974 ac_useropt_orig=$ac_useropt
975 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976 case $ac_user_opts in
977 *"
978"enable_$ac_useropt"
979"*) ;;
980 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
981 ac_unrecognized_sep=', ';;
982 esac
983 eval enable_$ac_useropt=no ;;
984
985 -docdir | --docdir | --docdi | --doc | --do)
986 ac_prev=docdir ;;
987 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
988 docdir=$ac_optarg ;;
989
990 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
991 ac_prev=dvidir ;;
992 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
993 dvidir=$ac_optarg ;;
c906108c
SS
994
995 -enable-* | --enable-*)
81ecdfbb 996 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 997 # Reject names that are not valid shell variable names.
81ecdfbb 998 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 999 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
1000 ac_useropt_orig=$ac_useropt
1001 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1002 case $ac_user_opts in
1003 *"
1004"enable_$ac_useropt"
1005"*) ;;
1006 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1007 ac_unrecognized_sep=', ';;
fdd6fa61 1008 esac
81ecdfbb 1009 eval enable_$ac_useropt=\$ac_optarg ;;
c906108c
SS
1010
1011 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1012 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1013 | --exec | --exe | --ex)
1014 ac_prev=exec_prefix ;;
1015 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1016 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1017 | --exec=* | --exe=* | --ex=*)
b7026657 1018 exec_prefix=$ac_optarg ;;
c906108c
SS
1019
1020 -gas | --gas | --ga | --g)
1021 # Obsolete; use --with-gas.
1022 with_gas=yes ;;
1023
b7026657
AC
1024 -help | --help | --hel | --he | -h)
1025 ac_init_help=long ;;
1026 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1027 ac_init_help=recursive ;;
1028 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1029 ac_init_help=short ;;
c906108c
SS
1030
1031 -host | --host | --hos | --ho)
b7026657 1032 ac_prev=host_alias ;;
c906108c 1033 -host=* | --host=* | --hos=* | --ho=*)
b7026657 1034 host_alias=$ac_optarg ;;
c906108c 1035
81ecdfbb
RW
1036 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1037 ac_prev=htmldir ;;
1038 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1039 | --ht=*)
1040 htmldir=$ac_optarg ;;
1041
c906108c
SS
1042 -includedir | --includedir | --includedi | --included | --include \
1043 | --includ | --inclu | --incl | --inc)
1044 ac_prev=includedir ;;
1045 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1046 | --includ=* | --inclu=* | --incl=* | --inc=*)
b7026657 1047 includedir=$ac_optarg ;;
c906108c
SS
1048
1049 -infodir | --infodir | --infodi | --infod | --info | --inf)
1050 ac_prev=infodir ;;
1051 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b7026657 1052 infodir=$ac_optarg ;;
c906108c
SS
1053
1054 -libdir | --libdir | --libdi | --libd)
1055 ac_prev=libdir ;;
1056 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b7026657 1057 libdir=$ac_optarg ;;
c906108c
SS
1058
1059 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1060 | --libexe | --libex | --libe)
1061 ac_prev=libexecdir ;;
1062 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1063 | --libexe=* | --libex=* | --libe=*)
b7026657 1064 libexecdir=$ac_optarg ;;
c906108c 1065
81ecdfbb
RW
1066 -localedir | --localedir | --localedi | --localed | --locale)
1067 ac_prev=localedir ;;
1068 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1069 localedir=$ac_optarg ;;
1070
c906108c 1071 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1072 | --localstate | --localstat | --localsta | --localst | --locals)
c906108c
SS
1073 ac_prev=localstatedir ;;
1074 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1075 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
b7026657 1076 localstatedir=$ac_optarg ;;
c906108c
SS
1077
1078 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1079 ac_prev=mandir ;;
1080 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b7026657 1081 mandir=$ac_optarg ;;
c906108c
SS
1082
1083 -nfp | --nfp | --nf)
1084 # Obsolete; use --without-fp.
1085 with_fp=no ;;
1086
1087 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b7026657 1088 | --no-cr | --no-c | -n)
c906108c
SS
1089 no_create=yes ;;
1090
1091 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1092 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1093 no_recursion=yes ;;
1094
1095 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1096 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1097 | --oldin | --oldi | --old | --ol | --o)
1098 ac_prev=oldincludedir ;;
1099 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1100 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1101 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
b7026657 1102 oldincludedir=$ac_optarg ;;
c906108c
SS
1103
1104 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1105 ac_prev=prefix ;;
1106 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b7026657 1107 prefix=$ac_optarg ;;
c906108c
SS
1108
1109 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1110 | --program-pre | --program-pr | --program-p)
1111 ac_prev=program_prefix ;;
1112 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1113 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
b7026657 1114 program_prefix=$ac_optarg ;;
c906108c
SS
1115
1116 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1117 | --program-suf | --program-su | --program-s)
1118 ac_prev=program_suffix ;;
1119 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1120 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
b7026657 1121 program_suffix=$ac_optarg ;;
c906108c
SS
1122
1123 -program-transform-name | --program-transform-name \
1124 | --program-transform-nam | --program-transform-na \
1125 | --program-transform-n | --program-transform- \
1126 | --program-transform | --program-transfor \
1127 | --program-transfo | --program-transf \
1128 | --program-trans | --program-tran \
1129 | --progr-tra | --program-tr | --program-t)
1130 ac_prev=program_transform_name ;;
1131 -program-transform-name=* | --program-transform-name=* \
1132 | --program-transform-nam=* | --program-transform-na=* \
1133 | --program-transform-n=* | --program-transform-=* \
1134 | --program-transform=* | --program-transfor=* \
1135 | --program-transfo=* | --program-transf=* \
1136 | --program-trans=* | --program-tran=* \
1137 | --progr-tra=* | --program-tr=* | --program-t=*)
b7026657 1138 program_transform_name=$ac_optarg ;;
c906108c 1139
81ecdfbb
RW
1140 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1141 ac_prev=pdfdir ;;
1142 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1143 pdfdir=$ac_optarg ;;
1144
1145 -psdir | --psdir | --psdi | --psd | --ps)
1146 ac_prev=psdir ;;
1147 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1148 psdir=$ac_optarg ;;
1149
c906108c
SS
1150 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1151 | -silent | --silent | --silen | --sile | --sil)
1152 silent=yes ;;
1153
1154 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1155 ac_prev=sbindir ;;
1156 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1157 | --sbi=* | --sb=*)
b7026657 1158 sbindir=$ac_optarg ;;
c906108c
SS
1159
1160 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1161 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1162 | --sharedst | --shareds | --shared | --share | --shar \
1163 | --sha | --sh)
1164 ac_prev=sharedstatedir ;;
1165 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1166 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1167 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1168 | --sha=* | --sh=*)
b7026657 1169 sharedstatedir=$ac_optarg ;;
c906108c
SS
1170
1171 -site | --site | --sit)
1172 ac_prev=site ;;
1173 -site=* | --site=* | --sit=*)
b7026657 1174 site=$ac_optarg ;;
0fda6bd2 1175
c906108c
SS
1176 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1177 ac_prev=srcdir ;;
1178 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b7026657 1179 srcdir=$ac_optarg ;;
c906108c
SS
1180
1181 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1182 | --syscon | --sysco | --sysc | --sys | --sy)
1183 ac_prev=sysconfdir ;;
1184 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1185 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
b7026657 1186 sysconfdir=$ac_optarg ;;
c906108c
SS
1187
1188 -target | --target | --targe | --targ | --tar | --ta | --t)
b7026657 1189 ac_prev=target_alias ;;
c906108c 1190 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b7026657 1191 target_alias=$ac_optarg ;;
c906108c
SS
1192
1193 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1194 verbose=yes ;;
1195
b7026657
AC
1196 -version | --version | --versio | --versi | --vers | -V)
1197 ac_init_version=: ;;
c906108c
SS
1198
1199 -with-* | --with-*)
81ecdfbb 1200 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 1201 # Reject names that are not valid shell variable names.
81ecdfbb 1202 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1203 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1204 ac_useropt_orig=$ac_useropt
1205 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1206 case $ac_user_opts in
1207 *"
1208"with_$ac_useropt"
1209"*) ;;
1210 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1211 ac_unrecognized_sep=', ';;
fdd6fa61 1212 esac
81ecdfbb 1213 eval with_$ac_useropt=\$ac_optarg ;;
c906108c
SS
1214
1215 -without-* | --without-*)
81ecdfbb 1216 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 1217 # Reject names that are not valid shell variable names.
81ecdfbb 1218 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1219 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1220 ac_useropt_orig=$ac_useropt
1221 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1222 case $ac_user_opts in
1223 *"
1224"with_$ac_useropt"
1225"*) ;;
1226 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1227 ac_unrecognized_sep=', ';;
1228 esac
1229 eval with_$ac_useropt=no ;;
c906108c
SS
1230
1231 --x)
1232 # Obsolete; use --with-x.
1233 with_x=yes ;;
1234
1235 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1236 | --x-incl | --x-inc | --x-in | --x-i)
1237 ac_prev=x_includes ;;
1238 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1239 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
b7026657 1240 x_includes=$ac_optarg ;;
c906108c
SS
1241
1242 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1243 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1244 ac_prev=x_libraries ;;
1245 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1246 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
b7026657 1247 x_libraries=$ac_optarg ;;
c906108c 1248
d0ac1c44
SM
1249 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1250Try \`$0 --help' for more information"
c906108c
SS
1251 ;;
1252
b7026657
AC
1253 *=*)
1254 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1255 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1256 case $ac_envvar in #(
1257 '' | [0-9]* | *[!_$as_cr_alnum]* )
d0ac1c44 1258 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
81ecdfbb
RW
1259 esac
1260 eval $ac_envvar=\$ac_optarg
b7026657
AC
1261 export $ac_envvar ;;
1262
c906108c 1263 *)
b7026657 1264 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1265 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
b7026657 1266 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1267 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d0ac1c44 1268 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
c906108c
SS
1269 ;;
1270
1271 esac
1272done
1273
1274if test -n "$ac_prev"; then
b7026657 1275 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d0ac1c44 1276 as_fn_error $? "missing argument to $ac_option"
c906108c 1277fi
c906108c 1278
81ecdfbb
RW
1279if test -n "$ac_unrecognized_opts"; then
1280 case $enable_option_checking in
1281 no) ;;
d0ac1c44 1282 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
81ecdfbb 1283 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
fdd6fa61 1284 esac
81ecdfbb 1285fi
fdd6fa61 1286
81ecdfbb
RW
1287# Check all directory arguments for consistency.
1288for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1289 datadir sysconfdir sharedstatedir localstatedir includedir \
1290 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1291 libdir localedir mandir
c906108c 1292do
81ecdfbb
RW
1293 eval ac_val=\$$ac_var
1294 # Remove trailing slashes.
1295 case $ac_val in
1296 */ )
1297 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1298 eval $ac_var=\$ac_val;;
1299 esac
1300 # Be sure to have absolute directory names.
b7026657 1301 case $ac_val in
81ecdfbb
RW
1302 [\\/$]* | ?:[\\/]* ) continue;;
1303 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
c906108c 1304 esac
d0ac1c44 1305 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
c906108c
SS
1306done
1307
b7026657
AC
1308# There might be people who depend on the old broken behavior: `$host'
1309# used to hold the argument of --host etc.
1310# FIXME: To remove some day.
1311build=$build_alias
1312host=$host_alias
1313target=$target_alias
1314
1315# FIXME: To remove some day.
1316if test "x$host_alias" != x; then
1317 if test "x$build_alias" = x; then
1318 cross_compiling=maybe
b7026657
AC
1319 elif test "x$build_alias" != "x$host_alias"; then
1320 cross_compiling=yes
1321 fi
1322fi
c906108c 1323
b7026657
AC
1324ac_tool_prefix=
1325test -n "$host_alias" && ac_tool_prefix=$host_alias-
1326
1327test "$silent" = yes && exec 6>/dev/null
c906108c 1328
c906108c 1329
81ecdfbb
RW
1330ac_pwd=`pwd` && test -n "$ac_pwd" &&
1331ac_ls_di=`ls -di .` &&
1332ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d0ac1c44 1333 as_fn_error $? "working directory cannot be determined"
81ecdfbb 1334test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d0ac1c44 1335 as_fn_error $? "pwd does not report name of working directory"
81ecdfbb
RW
1336
1337
c906108c
SS
1338# Find the source files, if location was not specified.
1339if test -z "$srcdir"; then
1340 ac_srcdir_defaulted=yes
81ecdfbb
RW
1341 # Try the directory containing this script, then the parent directory.
1342 ac_confdir=`$as_dirname -- "$as_myself" ||
1343$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1344 X"$as_myself" : 'X\(//\)[^/]' \| \
1345 X"$as_myself" : 'X\(//\)$' \| \
1346 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1347$as_echo X"$as_myself" |
1348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1349 s//\1/
1350 q
1351 }
1352 /^X\(\/\/\)[^/].*/{
1353 s//\1/
1354 q
1355 }
1356 /^X\(\/\/\)$/{
1357 s//\1/
1358 q
1359 }
1360 /^X\(\/\).*/{
1361 s//\1/
1362 q
1363 }
1364 s/.*/./; q'`
c906108c 1365 srcdir=$ac_confdir
81ecdfbb 1366 if test ! -r "$srcdir/$ac_unique_file"; then
c906108c
SS
1367 srcdir=..
1368 fi
1369else
1370 ac_srcdir_defaulted=no
1371fi
81ecdfbb
RW
1372if test ! -r "$srcdir/$ac_unique_file"; then
1373 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d0ac1c44 1374 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
81ecdfbb
RW
1375fi
1376ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1377ac_abs_confdir=`(
d0ac1c44 1378 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
81ecdfbb
RW
1379 pwd)`
1380# When building in place, set srcdir=.
1381if test "$ac_abs_confdir" = "$ac_pwd"; then
1382 srcdir=.
1383fi
1384# Remove unnecessary trailing slashes from srcdir.
1385# Double slashes in file names in object file debugging info
1386# mess up M-x gdb in Emacs.
1387case $srcdir in
1388*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1389esac
1390for ac_var in $ac_precious_vars; do
1391 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1392 eval ac_env_${ac_var}_value=\$${ac_var}
1393 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1394 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1395done
df1756f4
TG
1396
1397#
b7026657
AC
1398# Report the --help message.
1399#
1400if test "$ac_init_help" = "long"; then
1401 # Omit some internal or obsolete options to make the list less imposing.
1402 # This message is too long to be a string in the A/UX 3.1 sh.
1403 cat <<_ACEOF
6bddc3e8 1404\`configure' configures sim 0 to adapt to many kinds of systems.
b7026657
AC
1405
1406Usage: $0 [OPTION]... [VAR=VALUE]...
1407
1408To assign environment variables (e.g., CC, CFLAGS...), specify them as
1409VAR=VALUE. See below for descriptions of some of the useful variables.
1410
1411Defaults for the options are specified in brackets.
1412
1413Configuration:
1414 -h, --help display this help and exit
1415 --help=short display options specific to this package
1416 --help=recursive display the short help of all the included packages
1417 -V, --version display version information and exit
d0ac1c44 1418 -q, --quiet, --silent do not print \`checking ...' messages
b7026657
AC
1419 --cache-file=FILE cache test results in FILE [disabled]
1420 -C, --config-cache alias for \`--cache-file=config.cache'
1421 -n, --no-create do not create output files
1422 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1423
b7026657
AC
1424Installation directories:
1425 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1426 [$ac_default_prefix]
b7026657 1427 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1428 [PREFIX]
b7026657
AC
1429
1430By default, \`make install' will install all the files in
1431\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1432an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1433for instance \`--prefix=\$HOME'.
1434
1435For better control, use the options below.
1436
1437Fine tuning of the installation directories:
81ecdfbb
RW
1438 --bindir=DIR user executables [EPREFIX/bin]
1439 --sbindir=DIR system admin executables [EPREFIX/sbin]
1440 --libexecdir=DIR program executables [EPREFIX/libexec]
1441 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1442 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1443 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1444 --libdir=DIR object code libraries [EPREFIX/lib]
1445 --includedir=DIR C header files [PREFIX/include]
1446 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1447 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1448 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1449 --infodir=DIR info documentation [DATAROOTDIR/info]
1450 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1451 --mandir=DIR man documentation [DATAROOTDIR/man]
6bddc3e8 1452 --docdir=DIR documentation root [DATAROOTDIR/doc/sim]
81ecdfbb
RW
1453 --htmldir=DIR html documentation [DOCDIR]
1454 --dvidir=DIR dvi documentation [DOCDIR]
1455 --pdfdir=DIR pdf documentation [DOCDIR]
1456 --psdir=DIR ps documentation [DOCDIR]
b7026657
AC
1457_ACEOF
1458
1459 cat <<\_ACEOF
1460
1461Program names:
1462 --program-prefix=PREFIX prepend PREFIX to installed program names
1463 --program-suffix=SUFFIX append SUFFIX to installed program names
1464 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1465
1466System types:
1467 --build=BUILD configure for building on BUILD [guessed]
1468 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1469 --target=TARGET configure for building compilers for TARGET [HOST]
1470_ACEOF
1471fi
1472
1473if test -n "$ac_init_help"; then
6bddc3e8
MF
1474 case $ac_init_help in
1475 short | recursive ) echo "Configuration of sim 0:";;
1476 esac
b7026657
AC
1477 cat <<\_ACEOF
1478
1479Optional Features:
81ecdfbb 1480 --disable-option-checking ignore unrecognized --enable/--with options
b7026657
AC
1481 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1482 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
b5689863
MF
1483 --enable-plugins Enable support for plugins
1484 --enable-shared[=PKGS] build shared libraries [default=yes]
1485 --enable-static[=PKGS] build static libraries [default=yes]
1486 --enable-fast-install[=PKGS]
1487 optimize for fast installation [default=yes]
1488 --disable-libtool-lock avoid locking (might break parallel builds)
8c379db2
TT
1489 --enable-maintainer-mode
1490 enable make rules and dependencies not useful (and
1491 sometimes confusing) to the casual installer
6bddc3e8
MF
1492 --enable-dependency-tracking
1493 do not reject slow dependency extractors
1494 --disable-dependency-tracking
1495 speeds up one-time build
c2783492
MF
1496 --enable-silent-rules less verbose build output (undo: "make V=1")
1497 --disable-silent-rules verbose build output (undo: "make V=0")
8d0978fb 1498 --enable-sim Enable the GNU simulator
26da232c 1499 --enable-example-sims enable example GNU simulators
a0e674c1 1500 --enable-targets alternative target configurations
ba307cdd
MF
1501 --enable-sim-alignment=align
1502 Specify strict, nonstrict or forced alignment of
1503 memory accesses
dba333c1 1504 --enable-sim-assert Specify whether to perform random assertions
04381273
MF
1505 --enable-sim-debug=opts Enable debugging flags (for developers of the sim
1506 itself)
f9a4d543
MF
1507 --enable-sim-endian=endian
1508 Specify target byte endian orientation
5ea45474
MF
1509 --enable-sim-environment=environment
1510 Specify mixed, user, virtual or operating
1511 environment
d73f39ee
MF
1512 --enable-sim-inline=inlines
1513 Specify which functions should be inlined
04381273
MF
1514 --enable-sim-profile=opts
1515 Enable profiling flags
1516 --enable-sim-stdio Specify whether to use stdio for console
1517 input/output
1518 --enable-sim-trace=opts Enable tracing of simulated programs
47ce766a
MF
1519 --enable-werror treat compile warnings as errors
1520 --enable-build-warnings enable build-time compiler warnings if gcc is used
1521 --enable-sim-build-warnings
1522 enable SIM specific build-time compiler warnings if
1523 gcc is used
b7026657 1524
6dd65fc0
MF
1525Optional Packages:
1526 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1527 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1528 --with-pkgversion=PKG Use PKG in the version string in place of "SIM"
1529 --with-bugurl=URL Direct users to URL to report a bug
b5689863
MF
1530 --with-system-zlib use installed libz
1531 --with-pic try to use only PIC/non-PIC objects [default=use
1532 both]
1533 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
6dd65fc0 1534
b7026657
AC
1535Some influential environment variables:
1536 CC C compiler command
1537 CFLAGS C compiler flags
1538 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1539 nonstandard directory <lib dir>
81ecdfbb 1540 LIBS libraries to pass to the linker, e.g. -l<library>
d0ac1c44 1541 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
81ecdfbb 1542 you have headers in a nonstandard directory <include dir>
5e25901f 1543 CPP C preprocessor
b7026657
AC
1544
1545Use these variables to override the choices made by `configure' or to help
1546it to find libraries and programs with nonstandard names/locations.
1547
6bddc3e8
MF
1548Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
1549sim home page: <https://sourceware.org/gdb/wiki/Sim/>.
b7026657 1550_ACEOF
81ecdfbb 1551ac_status=$?
b7026657
AC
1552fi
1553
1554if test "$ac_init_help" = "recursive"; then
1555 # If there are subdirs, report their specific --help.
b7026657 1556 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1557 test -d "$ac_dir" ||
1558 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1559 continue
b7026657
AC
1560 ac_builddir=.
1561
81ecdfbb
RW
1562case "$ac_dir" in
1563.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1564*)
1565 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1566 # A ".." for each directory in $ac_dir_suffix.
1567 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1568 case $ac_top_builddir_sub in
1569 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1570 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1571 esac ;;
1572esac
1573ac_abs_top_builddir=$ac_pwd
1574ac_abs_builddir=$ac_pwd$ac_dir_suffix
1575# for backward compatibility:
1576ac_top_builddir=$ac_top_build_prefix
b7026657
AC
1577
1578case $srcdir in
81ecdfbb 1579 .) # We are building in place.
b7026657 1580 ac_srcdir=.
81ecdfbb
RW
1581 ac_top_srcdir=$ac_top_builddir_sub
1582 ac_abs_top_srcdir=$ac_pwd ;;
1583 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 1584 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1585 ac_top_srcdir=$srcdir
1586 ac_abs_top_srcdir=$srcdir ;;
1587 *) # Relative name.
1588 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1589 ac_top_srcdir=$ac_top_build_prefix$srcdir
1590 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
fdd6fa61 1591esac
81ecdfbb 1592ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
fdd6fa61 1593
81ecdfbb
RW
1594 cd "$ac_dir" || { ac_status=$?; continue; }
1595 # Check for guested configure.
1596 if test -f "$ac_srcdir/configure.gnu"; then
1597 echo &&
1598 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1599 elif test -f "$ac_srcdir/configure"; then
1600 echo &&
1601 $SHELL "$ac_srcdir/configure" --help=recursive
0fda6bd2 1602 else
81ecdfbb
RW
1603 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1604 fi || ac_status=$?
1605 cd "$ac_pwd" || { ac_status=$?; break; }
b7026657
AC
1606 done
1607fi
1608
81ecdfbb 1609test -n "$ac_init_help" && exit $ac_status
b7026657
AC
1610if $ac_init_version; then
1611 cat <<\_ACEOF
6bddc3e8 1612sim configure 0
d0ac1c44 1613generated by GNU Autoconf 2.69
b7026657 1614
d0ac1c44 1615Copyright (C) 2012 Free Software Foundation, Inc.
b7026657
AC
1616This configure script is free software; the Free Software Foundation
1617gives unlimited permission to copy, distribute and modify it.
1618_ACEOF
81ecdfbb 1619 exit
b7026657 1620fi
81ecdfbb
RW
1621
1622## ------------------------ ##
1623## Autoconf initialization. ##
1624## ------------------------ ##
1625
1626# ac_fn_c_try_compile LINENO
1627# --------------------------
1628# Try to compile conftest.$ac_ext, and return whether this succeeded.
1629ac_fn_c_try_compile ()
1630{
1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632 rm -f conftest.$ac_objext
1633 if { { ac_try="$ac_compile"
1634case "(($ac_try" in
1635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636 *) ac_try_echo=$ac_try;;
1637esac
1638eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639$as_echo "$ac_try_echo"; } >&5
1640 (eval "$ac_compile") 2>conftest.err
1641 ac_status=$?
1642 if test -s conftest.err; then
1643 grep -v '^ *+' conftest.err >conftest.er1
1644 cat conftest.er1 >&5
1645 mv -f conftest.er1 conftest.err
1646 fi
1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648 test $ac_status = 0; } && {
1649 test -z "$ac_c_werror_flag" ||
1650 test ! -s conftest.err
1651 } && test -s conftest.$ac_objext; then :
1652 ac_retval=0
1653else
1654 $as_echo "$as_me: failed program was:" >&5
1655sed 's/^/| /' conftest.$ac_ext >&5
1656
1657 ac_retval=1
1658fi
d0ac1c44
SM
1659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660 as_fn_set_status $ac_retval
81ecdfbb
RW
1661
1662} # ac_fn_c_try_compile
5e25901f
MF
1663
1664# ac_fn_c_try_cpp LINENO
1665# ----------------------
1666# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1667ac_fn_c_try_cpp ()
1668{
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 if { { ac_try="$ac_cpp conftest.$ac_ext"
1671case "(($ac_try" in
1672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673 *) ac_try_echo=$ac_try;;
1674esac
1675eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676$as_echo "$ac_try_echo"; } >&5
1677 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1678 ac_status=$?
1679 if test -s conftest.err; then
1680 grep -v '^ *+' conftest.err >conftest.er1
1681 cat conftest.er1 >&5
1682 mv -f conftest.er1 conftest.err
1683 fi
1684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685 test $ac_status = 0; } > conftest.i && {
1686 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1687 test ! -s conftest.err
1688 }; then :
1689 ac_retval=0
1690else
1691 $as_echo "$as_me: failed program was:" >&5
1692sed 's/^/| /' conftest.$ac_ext >&5
1693
1694 ac_retval=1
1695fi
1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697 as_fn_set_status $ac_retval
1698
1699} # ac_fn_c_try_cpp
c2783492
MF
1700
1701# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1702# -------------------------------------------------------
1703# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1704# the include files in INCLUDES and setting the cache variable VAR
1705# accordingly.
1706ac_fn_c_check_header_mongrel ()
1707{
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 if eval \${$3+:} false; then :
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1711$as_echo_n "checking for $2... " >&6; }
1712if eval \${$3+:} false; then :
1713 $as_echo_n "(cached) " >&6
1714fi
1715eval ac_res=\$$3
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1717$as_echo "$ac_res" >&6; }
1718else
1719 # Is the header compilable?
1720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1721$as_echo_n "checking $2 usability... " >&6; }
1722cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1723/* end confdefs.h. */
1724$4
1725#include <$2>
1726_ACEOF
1727if ac_fn_c_try_compile "$LINENO"; then :
1728 ac_header_compiler=yes
1729else
1730 ac_header_compiler=no
1731fi
1732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1734$as_echo "$ac_header_compiler" >&6; }
1735
1736# Is the header present?
1737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1738$as_echo_n "checking $2 presence... " >&6; }
1739cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1740/* end confdefs.h. */
1741#include <$2>
1742_ACEOF
1743if ac_fn_c_try_cpp "$LINENO"; then :
1744 ac_header_preproc=yes
1745else
1746 ac_header_preproc=no
1747fi
1748rm -f conftest.err conftest.i conftest.$ac_ext
1749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1750$as_echo "$ac_header_preproc" >&6; }
1751
1752# So? What about this header?
1753case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1754 yes:no: )
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1756$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1758$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1759 ;;
1760 no:yes:* )
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1762$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1764$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1766$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1768$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1770$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1771( $as_echo "## -------------------------------------------------------------------------------------- ##
1772## Report this to https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim ##
1773## -------------------------------------------------------------------------------------- ##"
1774 ) | sed "s/^/$as_me: WARNING: /" >&2
1775 ;;
1776esac
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1778$as_echo_n "checking for $2... " >&6; }
1779if eval \${$3+:} false; then :
1780 $as_echo_n "(cached) " >&6
1781else
1782 eval "$3=\$ac_header_compiler"
1783fi
1784eval ac_res=\$$3
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786$as_echo "$ac_res" >&6; }
1787fi
1788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1789
1790} # ac_fn_c_check_header_mongrel
1791
1792# ac_fn_c_try_run LINENO
1793# ----------------------
1794# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1795# that executables *can* be run.
1796ac_fn_c_try_run ()
1797{
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 if { { ac_try="$ac_link"
1800case "(($ac_try" in
1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802 *) ac_try_echo=$ac_try;;
1803esac
1804eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805$as_echo "$ac_try_echo"; } >&5
1806 (eval "$ac_link") 2>&5
1807 ac_status=$?
1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1810 { { case "(($ac_try" in
1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812 *) ac_try_echo=$ac_try;;
1813esac
1814eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815$as_echo "$ac_try_echo"; } >&5
1816 (eval "$ac_try") 2>&5
1817 ac_status=$?
1818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819 test $ac_status = 0; }; }; then :
1820 ac_retval=0
1821else
1822 $as_echo "$as_me: program exited with status $ac_status" >&5
1823 $as_echo "$as_me: failed program was:" >&5
1824sed 's/^/| /' conftest.$ac_ext >&5
1825
1826 ac_retval=$ac_status
1827fi
1828 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830 as_fn_set_status $ac_retval
1831
1832} # ac_fn_c_try_run
1833
1834# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1835# -------------------------------------------------------
1836# Tests whether HEADER exists and can be compiled using the include files in
1837# INCLUDES, setting the cache variable VAR accordingly.
1838ac_fn_c_check_header_compile ()
1839{
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842$as_echo_n "checking for $2... " >&6; }
1843if eval \${$3+:} false; then :
1844 $as_echo_n "(cached) " >&6
1845else
1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847/* end confdefs.h. */
1848$4
1849#include <$2>
1850_ACEOF
1851if ac_fn_c_try_compile "$LINENO"; then :
1852 eval "$3=yes"
1853else
1854 eval "$3=no"
1855fi
1856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1857fi
1858eval ac_res=\$$3
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1860$as_echo "$ac_res" >&6; }
1861 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1862
1863} # ac_fn_c_check_header_compile
b15c5d7a
MF
1864
1865# ac_fn_c_try_link LINENO
1866# -----------------------
1867# Try to link conftest.$ac_ext, and return whether this succeeded.
1868ac_fn_c_try_link ()
1869{
1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871 rm -f conftest.$ac_objext conftest$ac_exeext
1872 if { { ac_try="$ac_link"
1873case "(($ac_try" in
1874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1875 *) ac_try_echo=$ac_try;;
1876esac
1877eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1878$as_echo "$ac_try_echo"; } >&5
1879 (eval "$ac_link") 2>conftest.err
1880 ac_status=$?
1881 if test -s conftest.err; then
1882 grep -v '^ *+' conftest.err >conftest.er1
1883 cat conftest.er1 >&5
1884 mv -f conftest.er1 conftest.err
1885 fi
1886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1887 test $ac_status = 0; } && {
1888 test -z "$ac_c_werror_flag" ||
1889 test ! -s conftest.err
1890 } && test -s conftest$ac_exeext && {
1891 test "$cross_compiling" = yes ||
1892 test -x conftest$ac_exeext
1893 }; then :
1894 ac_retval=0
1895else
1896 $as_echo "$as_me: failed program was:" >&5
1897sed 's/^/| /' conftest.$ac_ext >&5
1898
1899 ac_retval=1
1900fi
1901 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1902 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1903 # interfere with the next link command; also delete a directory that is
1904 # left behind by Apple's compiler. We do this before executing the actions.
1905 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1906 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1907 as_fn_set_status $ac_retval
1908
1909} # ac_fn_c_try_link
1910
1911# ac_fn_c_check_func LINENO FUNC VAR
1912# ----------------------------------
1913# Tests whether FUNC exists, setting the cache variable VAR accordingly
1914ac_fn_c_check_func ()
1915{
1916 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1918$as_echo_n "checking for $2... " >&6; }
1919if eval \${$3+:} false; then :
1920 $as_echo_n "(cached) " >&6
1921else
1922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923/* end confdefs.h. */
1924/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1926#define $2 innocuous_$2
1927
1928/* System header to define __stub macros and hopefully few prototypes,
1929 which can conflict with char $2 (); below.
1930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1931 <limits.h> exists even on freestanding compilers. */
1932
1933#ifdef __STDC__
1934# include <limits.h>
1935#else
1936# include <assert.h>
1937#endif
1938
1939#undef $2
1940
1941/* Override any GCC internal prototype to avoid an error.
1942 Use char because int might match the return type of a GCC
1943 builtin and then its argument prototype would still apply. */
1944#ifdef __cplusplus
1945extern "C"
1946#endif
1947char $2 ();
1948/* The GNU C library defines this for functions which it implements
1949 to always fail with ENOSYS. Some functions are actually named
1950 something starting with __ and the normal name is an alias. */
1951#if defined __stub_$2 || defined __stub___$2
1952choke me
1953#endif
1954
1955int
1956main ()
1957{
1958return $2 ();
1959 ;
1960 return 0;
1961}
1962_ACEOF
1963if ac_fn_c_try_link "$LINENO"; then :
1964 eval "$3=yes"
1965else
1966 eval "$3=no"
1967fi
1968rm -f core conftest.err conftest.$ac_objext \
1969 conftest$ac_exeext conftest.$ac_ext
1970fi
1971eval ac_res=\$$3
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1973$as_echo "$ac_res" >&6; }
1974 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1975
1976} # ac_fn_c_check_func
1977
1978# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1979# ----------------------------------------------------
1980# Tries to find if the field MEMBER exists in type AGGR, after including
1981# INCLUDES, setting cache variable VAR accordingly.
1982ac_fn_c_check_member ()
1983{
1984 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1986$as_echo_n "checking for $2.$3... " >&6; }
1987if eval \${$4+:} false; then :
1988 $as_echo_n "(cached) " >&6
1989else
1990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1991/* end confdefs.h. */
1992$5
1993int
1994main ()
1995{
1996static $2 ac_aggr;
1997if (ac_aggr.$3)
1998return 0;
1999 ;
2000 return 0;
2001}
2002_ACEOF
2003if ac_fn_c_try_compile "$LINENO"; then :
2004 eval "$4=yes"
2005else
2006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007/* end confdefs.h. */
2008$5
2009int
2010main ()
2011{
2012static $2 ac_aggr;
2013if (sizeof ac_aggr.$3)
2014return 0;
2015 ;
2016 return 0;
2017}
2018_ACEOF
2019if ac_fn_c_try_compile "$LINENO"; then :
2020 eval "$4=yes"
2021else
2022 eval "$4=no"
2023fi
2024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2025fi
2026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2027fi
2028eval ac_res=\$$4
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2030$as_echo "$ac_res" >&6; }
2031 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2032
2033} # ac_fn_c_check_member
2034
a48ff3ef
MF
2035# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2036# ---------------------------------------------
2037# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2038# accordingly.
2039ac_fn_c_check_decl ()
2040{
2041 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2042 as_decl_name=`echo $2|sed 's/ *(.*//'`
2043 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2045$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2046if eval \${$3+:} false; then :
2047 $as_echo_n "(cached) " >&6
2048else
2049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2050/* end confdefs.h. */
2051$4
2052int
2053main ()
2054{
2055#ifndef $as_decl_name
2056#ifdef __cplusplus
2057 (void) $as_decl_use;
2058#else
2059 (void) $as_decl_name;
2060#endif
2061#endif
2062
2063 ;
2064 return 0;
2065}
2066_ACEOF
2067if ac_fn_c_try_compile "$LINENO"; then :
2068 eval "$3=yes"
2069else
2070 eval "$3=no"
2071fi
2072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2073fi
2074eval ac_res=\$$3
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2076$as_echo "$ac_res" >&6; }
2077 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2078
2079} # ac_fn_c_check_decl
2080
b15c5d7a
MF
2081# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2082# -------------------------------------------
2083# Tests whether TYPE exists after having included INCLUDES, setting cache
2084# variable VAR accordingly.
2085ac_fn_c_check_type ()
2086{
2087 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2089$as_echo_n "checking for $2... " >&6; }
2090if eval \${$3+:} false; then :
2091 $as_echo_n "(cached) " >&6
2092else
2093 eval "$3=no"
2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095/* end confdefs.h. */
2096$4
2097int
2098main ()
2099{
2100if (sizeof ($2))
2101 return 0;
2102 ;
2103 return 0;
2104}
2105_ACEOF
2106if ac_fn_c_try_compile "$LINENO"; then :
2107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108/* end confdefs.h. */
2109$4
2110int
2111main ()
2112{
2113if (sizeof (($2)))
2114 return 0;
2115 ;
2116 return 0;
2117}
2118_ACEOF
2119if ac_fn_c_try_compile "$LINENO"; then :
2120
2121else
2122 eval "$3=yes"
2123fi
2124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125fi
2126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127fi
2128eval ac_res=\$$3
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2130$as_echo "$ac_res" >&6; }
2131 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2132
2133} # ac_fn_c_check_type
81ecdfbb 2134cat >config.log <<_ACEOF
b7026657
AC
2135This file contains any messages produced by compilers while
2136running configure, to aid debugging if configure makes a mistake.
2137
6bddc3e8 2138It was created by sim $as_me 0, which was
d0ac1c44 2139generated by GNU Autoconf 2.69. Invocation command line was
b7026657
AC
2140
2141 $ $0 $@
2142
2143_ACEOF
81ecdfbb 2144exec 5>>config.log
b7026657
AC
2145{
2146cat <<_ASUNAME
2147## --------- ##
2148## Platform. ##
2149## --------- ##
2150
2151hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2152uname -m = `(uname -m) 2>/dev/null || echo unknown`
2153uname -r = `(uname -r) 2>/dev/null || echo unknown`
2154uname -s = `(uname -s) 2>/dev/null || echo unknown`
2155uname -v = `(uname -v) 2>/dev/null || echo unknown`
2156
2157/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2158/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2159
2160/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2161/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2162/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 2163/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
b7026657
AC
2164/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2165/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2166/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2167
2168_ASUNAME
2169
2170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2171for as_dir in $PATH
2172do
2173 IFS=$as_save_IFS
2174 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2175 $as_echo "PATH: $as_dir"
2176 done
2177IFS=$as_save_IFS
b7026657
AC
2178
2179} >&5
2180
2181cat >&5 <<_ACEOF
2182
2183
2184## ----------- ##
2185## Core tests. ##
2186## ----------- ##
2187
2188_ACEOF
2189
2190
2191# Keep a trace of the command line.
2192# Strip out --no-create and --no-recursion so they do not pile up.
2193# Strip out --silent because we don't want to record it for future runs.
2194# Also quote any args containing shell meta-characters.
2195# Make two passes to allow for proper duplicate-argument suppression.
2196ac_configure_args=
2197ac_configure_args0=
2198ac_configure_args1=
b7026657
AC
2199ac_must_keep_next=false
2200for ac_pass in 1 2
2201do
2202 for ac_arg
2203 do
2204 case $ac_arg in
2205 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2206 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2207 | -silent | --silent | --silen | --sile | --sil)
2208 continue ;;
81ecdfbb
RW
2209 *\'*)
2210 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
b7026657
AC
2211 esac
2212 case $ac_pass in
81ecdfbb 2213 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
b7026657 2214 2)
81ecdfbb 2215 as_fn_append ac_configure_args1 " '$ac_arg'"
b7026657
AC
2216 if test $ac_must_keep_next = true; then
2217 ac_must_keep_next=false # Got value, back to normal.
2218 else
2219 case $ac_arg in
2220 *=* | --config-cache | -C | -disable-* | --disable-* \
2221 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2222 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2223 | -with-* | --with-* | -without-* | --without-* | --x)
2224 case "$ac_configure_args0 " in
2225 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2226 esac
2227 ;;
2228 -* ) ac_must_keep_next=true ;;
2229 esac
2230 fi
81ecdfbb 2231 as_fn_append ac_configure_args " '$ac_arg'"
b7026657
AC
2232 ;;
2233 esac
2234 done
2235done
81ecdfbb
RW
2236{ ac_configure_args0=; unset ac_configure_args0;}
2237{ ac_configure_args1=; unset ac_configure_args1;}
b7026657
AC
2238
2239# When interrupted or exit'd, cleanup temporary files, and complete
2240# config.log. We remove comments because anyway the quotes in there
2241# would cause problems or look ugly.
81ecdfbb
RW
2242# WARNING: Use '\'' to represent an apostrophe within the trap.
2243# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
b7026657
AC
2244trap 'exit_status=$?
2245 # Save into config.log some information that might help in debugging.
2246 {
2247 echo
2248
d0ac1c44 2249 $as_echo "## ---------------- ##
b7026657 2250## Cache variables. ##
d0ac1c44 2251## ---------------- ##"
b7026657
AC
2252 echo
2253 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2254(
2255 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2256 eval ac_val=\$$ac_var
2257 case $ac_val in #(
2258 *${as_nl}*)
2259 case $ac_var in #(
2260 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2261$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2262 esac
2263 case $ac_var in #(
2264 _ | IFS | as_nl) ;; #(
2265 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2266 *) { eval $ac_var=; unset $ac_var;} ;;
2267 esac ;;
2268 esac
2269 done
b7026657 2270 (set) 2>&1 |
81ecdfbb
RW
2271 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2272 *${as_nl}ac_space=\ *)
b7026657 2273 sed -n \
81ecdfbb
RW
2274 "s/'\''/'\''\\\\'\'''\''/g;
2275 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2276 ;; #(
b7026657 2277 *)
81ecdfbb 2278 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 2279 ;;
81ecdfbb
RW
2280 esac |
2281 sort
2282)
b7026657
AC
2283 echo
2284
d0ac1c44 2285 $as_echo "## ----------------- ##
b7026657 2286## Output variables. ##
d0ac1c44 2287## ----------------- ##"
b7026657
AC
2288 echo
2289 for ac_var in $ac_subst_vars
2290 do
81ecdfbb
RW
2291 eval ac_val=\$$ac_var
2292 case $ac_val in
2293 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2294 esac
2295 $as_echo "$ac_var='\''$ac_val'\''"
b7026657
AC
2296 done | sort
2297 echo
2298
2299 if test -n "$ac_subst_files"; then
d0ac1c44 2300 $as_echo "## ------------------- ##
81ecdfbb 2301## File substitutions. ##
d0ac1c44 2302## ------------------- ##"
b7026657
AC
2303 echo
2304 for ac_var in $ac_subst_files
2305 do
81ecdfbb
RW
2306 eval ac_val=\$$ac_var
2307 case $ac_val in
2308 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2309 esac
2310 $as_echo "$ac_var='\''$ac_val'\''"
b7026657
AC
2311 done | sort
2312 echo
2313 fi
2314
2315 if test -s confdefs.h; then
d0ac1c44 2316 $as_echo "## ----------- ##
b7026657 2317## confdefs.h. ##
d0ac1c44 2318## ----------- ##"
b7026657 2319 echo
81ecdfbb 2320 cat confdefs.h
b7026657 2321 echo
0fda6bd2 2322 fi
b7026657 2323 test "$ac_signal" != 0 &&
81ecdfbb
RW
2324 $as_echo "$as_me: caught signal $ac_signal"
2325 $as_echo "$as_me: exit $exit_status"
b7026657 2326 } >&5
81ecdfbb
RW
2327 rm -f core *.core core.conftest.* &&
2328 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
b7026657 2329 exit $exit_status
81ecdfbb 2330' 0
b7026657 2331for ac_signal in 1 2 13 15; do
81ecdfbb 2332 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
b7026657
AC
2333done
2334ac_signal=0
2335
2336# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2337rm -f -r conftest* confdefs.h
2338
2339$as_echo "/* confdefs.h */" > confdefs.h
b7026657
AC
2340
2341# Predefined preprocessor variables.
2342
2343cat >>confdefs.h <<_ACEOF
2344#define PACKAGE_NAME "$PACKAGE_NAME"
2345_ACEOF
2346
b7026657
AC
2347cat >>confdefs.h <<_ACEOF
2348#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2349_ACEOF
2350
b7026657
AC
2351cat >>confdefs.h <<_ACEOF
2352#define PACKAGE_VERSION "$PACKAGE_VERSION"
2353_ACEOF
2354
b7026657
AC
2355cat >>confdefs.h <<_ACEOF
2356#define PACKAGE_STRING "$PACKAGE_STRING"
2357_ACEOF
2358
b7026657
AC
2359cat >>confdefs.h <<_ACEOF
2360#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2361_ACEOF
2362
81ecdfbb
RW
2363cat >>confdefs.h <<_ACEOF
2364#define PACKAGE_URL "$PACKAGE_URL"
2365_ACEOF
2366
b7026657
AC
2367
2368# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2369# Prefer an explicitly selected file to automatically selected ones.
2370ac_site_file1=NONE
2371ac_site_file2=NONE
2372if test -n "$CONFIG_SITE"; then
d0ac1c44
SM
2373 # We do not want a PATH search for config.site.
2374 case $CONFIG_SITE in #((
2375 -*) ac_site_file1=./$CONFIG_SITE;;
2376 */*) ac_site_file1=$CONFIG_SITE;;
2377 *) ac_site_file1=./$CONFIG_SITE;;
2378 esac
81ecdfbb
RW
2379elif test "x$prefix" != xNONE; then
2380 ac_site_file1=$prefix/share/config.site
2381 ac_site_file2=$prefix/etc/config.site
2382else
2383 ac_site_file1=$ac_default_prefix/share/config.site
2384 ac_site_file2=$ac_default_prefix/etc/config.site
c906108c 2385fi
81ecdfbb
RW
2386for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2387do
2388 test "x$ac_site_file" = xNONE && continue
d0ac1c44 2389 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
81ecdfbb
RW
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2391$as_echo "$as_me: loading site script $ac_site_file" >&6;}
b7026657 2392 sed 's/^/| /' "$ac_site_file" >&5
d0ac1c44
SM
2393 . "$ac_site_file" \
2394 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2395$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2396as_fn_error $? "failed to load site script $ac_site_file
2397See \`config.log' for more details" "$LINENO" 5; }
c906108c
SS
2398 fi
2399done
2400
2401if test -r "$cache_file"; then
d0ac1c44
SM
2402 # Some versions of bash will fail to source /dev/null (special files
2403 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2404 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
81ecdfbb
RW
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2406$as_echo "$as_me: loading cache $cache_file" >&6;}
b7026657 2407 case $cache_file in
81ecdfbb
RW
2408 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2409 *) . "./$cache_file";;
b7026657
AC
2410 esac
2411 fi
c906108c 2412else
81ecdfbb
RW
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2414$as_echo "$as_me: creating cache $cache_file" >&6;}
b7026657 2415 >$cache_file
c906108c
SS
2416fi
2417
b15c5d7a
MF
2418as_fn_append ac_header_list " dlfcn.h"
2419as_fn_append ac_header_list " fcntl.h"
2420as_fn_append ac_header_list " fpu_control.h"
2421as_fn_append ac_header_list " termios.h"
2422as_fn_append ac_header_list " unistd.h"
2423as_fn_append ac_header_list " utime.h"
2424as_fn_append ac_header_list " linux/if_tun.h"
2425as_fn_append ac_header_list " linux/mii.h"
2426as_fn_append ac_header_list " linux/types.h"
2427as_fn_append ac_header_list " net/if.h"
2428as_fn_append ac_header_list " netinet/in.h"
2429as_fn_append ac_header_list " netinet/tcp.h"
2430as_fn_append ac_header_list " sys/ioctl.h"
2431as_fn_append ac_header_list " sys/mman.h"
a48ff3ef 2432as_fn_append ac_header_list " sys/mount.h"
b15c5d7a
MF
2433as_fn_append ac_header_list " sys/param.h"
2434as_fn_append ac_header_list " sys/resource.h"
b15c5d7a
MF
2435as_fn_append ac_header_list " sys/socket.h"
2436as_fn_append ac_header_list " sys/stat.h"
a48ff3ef
MF
2437as_fn_append ac_header_list " sys/statfs.h"
2438as_fn_append ac_header_list " sys/termio.h"
2439as_fn_append ac_header_list " sys/termios.h"
2440as_fn_append ac_header_list " sys/types.h"
2441as_fn_append ac_header_list " sys/vfs.h"
b15c5d7a 2442as_fn_append ac_func_list " __setfpucw"
a48ff3ef 2443as_fn_append ac_func_list " access"
b15c5d7a
MF
2444as_fn_append ac_func_list " aint"
2445as_fn_append ac_func_list " anint"
a48ff3ef
MF
2446as_fn_append ac_func_list " cfgetispeed"
2447as_fn_append ac_func_list " cfgetospeed"
2448as_fn_append ac_func_list " cfsetispeed"
2449as_fn_append ac_func_list " cfsetospeed"
2450as_fn_append ac_func_list " chdir"
b15c5d7a 2451as_fn_append ac_func_list " chmod"
a48ff3ef
MF
2452as_fn_append ac_func_list " dup"
2453as_fn_append ac_func_list " dup2"
b15c5d7a
MF
2454as_fn_append ac_func_list " execv"
2455as_fn_append ac_func_list " execve"
a48ff3ef 2456as_fn_append ac_func_list " fcntl"
b15c5d7a 2457as_fn_append ac_func_list " fork"
a48ff3ef
MF
2458as_fn_append ac_func_list " fstat"
2459as_fn_append ac_func_list " fstatfs"
b15c5d7a 2460as_fn_append ac_func_list " ftruncate"
a48ff3ef 2461as_fn_append ac_func_list " getdirentries"
b15c5d7a 2462as_fn_append ac_func_list " getegid"
a48ff3ef 2463as_fn_append ac_func_list " geteuid"
b15c5d7a 2464as_fn_append ac_func_list " getgid"
a48ff3ef
MF
2465as_fn_append ac_func_list " getpid"
2466as_fn_append ac_func_list " getppid"
b15c5d7a 2467as_fn_append ac_func_list " getrusage"
a48ff3ef 2468as_fn_append ac_func_list " gettimeofday"
b15c5d7a 2469as_fn_append ac_func_list " getuid"
a48ff3ef 2470as_fn_append ac_func_list " ioctl"
b15c5d7a 2471as_fn_append ac_func_list " kill"
a48ff3ef
MF
2472as_fn_append ac_func_list " link"
2473as_fn_append ac_func_list " lseek"
b15c5d7a
MF
2474as_fn_append ac_func_list " mmap"
2475as_fn_append ac_func_list " munmap"
a48ff3ef 2476as_fn_append ac_func_list " pipe"
b15c5d7a
MF
2477as_fn_append ac_func_list " posix_fallocate"
2478as_fn_append ac_func_list " pread"
a48ff3ef
MF
2479as_fn_append ac_func_list " rmdir"
2480as_fn_append ac_func_list " setregid"
2481as_fn_append ac_func_list " setreuid"
b15c5d7a 2482as_fn_append ac_func_list " setgid"
a48ff3ef 2483as_fn_append ac_func_list " setuid"
b15c5d7a 2484as_fn_append ac_func_list " sigaction"
a48ff3ef 2485as_fn_append ac_func_list " sigprocmask"
b15c5d7a 2486as_fn_append ac_func_list " sqrt"
a48ff3ef 2487as_fn_append ac_func_list " stat"
b15c5d7a 2488as_fn_append ac_func_list " strsignal"
a48ff3ef
MF
2489as_fn_append ac_func_list " symlink"
2490as_fn_append ac_func_list " tcdrain"
2491as_fn_append ac_func_list " tcflow"
2492as_fn_append ac_func_list " tcflush"
2493as_fn_append ac_func_list " tcgetattr"
2494as_fn_append ac_func_list " tcgetpgrp"
2495as_fn_append ac_func_list " tcsendbreak"
2496as_fn_append ac_func_list " tcsetattr"
2497as_fn_append ac_func_list " tcsetpgrp"
b15c5d7a
MF
2498as_fn_append ac_func_list " time"
2499as_fn_append ac_func_list " truncate"
a48ff3ef
MF
2500as_fn_append ac_func_list " umask"
2501as_fn_append ac_func_list " unlink"
b15c5d7a 2502as_fn_append ac_func_list " utime"
b7026657
AC
2503# Check that the precious variables saved in the cache have kept the same
2504# value.
2505ac_cache_corrupted=false
81ecdfbb 2506for ac_var in $ac_precious_vars; do
b7026657
AC
2507 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2508 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2509 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2510 eval ac_new_val=\$ac_env_${ac_var}_value
b7026657
AC
2511 case $ac_old_set,$ac_new_set in
2512 set,)
81ecdfbb
RW
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2514$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
b7026657
AC
2515 ac_cache_corrupted=: ;;
2516 ,set)
81ecdfbb
RW
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2518$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
b7026657
AC
2519 ac_cache_corrupted=: ;;
2520 ,);;
2521 *)
2522 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2523 # differences in whitespace do not lead to failure.
2524 ac_old_val_w=`echo x $ac_old_val`
2525 ac_new_val_w=`echo x $ac_new_val`
2526 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2528$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2529 ac_cache_corrupted=:
2530 else
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2532$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2533 eval $ac_var=\$ac_old_val
2534 fi
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2536$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2538$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
b7026657
AC
2539 fi;;
2540 esac
2541 # Pass precious variables to config.status.
2542 if test "$ac_new_set" = set; then
2543 case $ac_new_val in
81ecdfbb 2544 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b7026657
AC
2545 *) ac_arg=$ac_var=$ac_new_val ;;
2546 esac
2547 case " $ac_configure_args " in
2548 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2549 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
b7026657 2550 esac
c906108c 2551 fi
b7026657
AC
2552done
2553if $ac_cache_corrupted; then
81ecdfbb
RW
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2555$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2557$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d0ac1c44 2558 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
c906108c 2559fi
81ecdfbb
RW
2560## -------------------- ##
2561## Main body of script. ##
2562## -------------------- ##
c906108c 2563
fdd6fa61
AG
2564ac_ext=c
2565ac_cpp='$CPP $CPPFLAGS'
2566ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2567ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2568ac_compiler_gnu=$ac_cv_c_compiler_gnu
2569
c906108c
SS
2570
2571
8c379db2
TT
2572
2573
2574
6dd65fc0
MF
2575
2576
2577# Check whether --with-pkgversion was given.
2578if test "${with_pkgversion+set}" = set; then :
2579 withval=$with_pkgversion; case "$withval" in
2580 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
2581 no) PKGVERSION= ;;
2582 *) PKGVERSION="($withval) " ;;
2583 esac
2584else
2585 PKGVERSION="(SIM) "
2586
2587fi
2588
2589
2590
2591
2592cat >>confdefs.h <<_ACEOF
2593#define PKGVERSION "$PKGVERSION"
2594_ACEOF
2595
2596
2597
2598# Check whether --with-bugurl was given.
2599if test "${with_bugurl+set}" = set; then :
2600 withval=$with_bugurl; case "$withval" in
2601 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
2602 no) BUGURL=
2603 ;;
2604 *) BUGURL="$withval"
2605 ;;
2606 esac
2607else
2608 BUGURL="$PACKAGE_BUGREPORT"
2609
2610fi
2611
2612 case ${BUGURL} in
2613 "")
2614 REPORT_BUGS_TO=
2615 REPORT_BUGS_TEXI=
2616 ;;
2617 *)
2618 REPORT_BUGS_TO="<$BUGURL>"
2619 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
2620 ;;
2621 esac;
2622
2623
2624
2625
2626cat >>confdefs.h <<_ACEOF
2627#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
2628_ACEOF
2629
2630
b15c5d7a
MF
2631ac_config_headers="$ac_config_headers config.h"
2632
2633
6bddc3e8
MF
2634ac_aux_dir=
2635for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2636 if test -f "$ac_dir/install-sh"; then
2637 ac_aux_dir=$ac_dir
2638 ac_install_sh="$ac_aux_dir/install-sh -c"
2639 break
2640 elif test -f "$ac_dir/install.sh"; then
2641 ac_aux_dir=$ac_dir
2642 ac_install_sh="$ac_aux_dir/install.sh -c"
2643 break
2644 elif test -f "$ac_dir/shtool"; then
2645 ac_aux_dir=$ac_dir
2646 ac_install_sh="$ac_aux_dir/shtool install -c"
2647 break
b7026657
AC
2648 fi
2649done
6bddc3e8
MF
2650if test -z "$ac_aux_dir"; then
2651 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
c906108c
SS
2652fi
2653
6bddc3e8
MF
2654# These three variables are undocumented and unsupported,
2655# and are intended to be withdrawn in a future Autoconf release.
2656# They can cause serious problems if a builder's source tree is in a directory
2657# whose full name contains unusual characters.
2658ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2659ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2660ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
81ecdfbb 2661
6bddc3e8
MF
2662
2663# Make sure we can run config.sub.
2664$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2665 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2666
2667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2668$as_echo_n "checking build system type... " >&6; }
2669if ${ac_cv_build+:} false; then :
81ecdfbb 2670 $as_echo_n "(cached) " >&6
c906108c 2671else
6bddc3e8
MF
2672 ac_build_alias=$build_alias
2673test "x$ac_build_alias" = x &&
2674 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2675test "x$ac_build_alias" = x &&
2676 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2677ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2678 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
b7026657
AC
2679
2680fi
6bddc3e8
MF
2681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2682$as_echo "$ac_cv_build" >&6; }
2683case $ac_cv_build in
2684*-*-*) ;;
2685*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
81ecdfbb 2686esac
6bddc3e8
MF
2687build=$ac_cv_build
2688ac_save_IFS=$IFS; IFS='-'
2689set x $ac_cv_build
2690shift
2691build_cpu=$1
2692build_vendor=$2
2693shift; shift
2694# Remember, the first character of IFS is used to create $*,
2695# except with old shells:
2696build_os=$*
2697IFS=$ac_save_IFS
2698case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
b7026657 2699
6bddc3e8
MF
2700
2701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2702$as_echo_n "checking host system type... " >&6; }
2703if ${ac_cv_host+:} false; then :
81ecdfbb 2704 $as_echo_n "(cached) " >&6
b7026657 2705else
6bddc3e8
MF
2706 if test "x$host_alias" = x; then
2707 ac_cv_host=$ac_cv_build
b7026657 2708else
6bddc3e8
MF
2709 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2710 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
b7026657 2711fi
6bddc3e8 2712
fdd6fa61 2713fi
6bddc3e8
MF
2714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2715$as_echo "$ac_cv_host" >&6; }
2716case $ac_cv_host in
2717*-*-*) ;;
2718*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2719esac
2720host=$ac_cv_host
2721ac_save_IFS=$IFS; IFS='-'
2722set x $ac_cv_host
2723shift
2724host_cpu=$1
2725host_vendor=$2
2726shift; shift
2727# Remember, the first character of IFS is used to create $*,
2728# except with old shells:
2729host_os=$*
2730IFS=$ac_save_IFS
2731case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
fdd6fa61 2732
fdd6fa61 2733
6bddc3e8
MF
2734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2735$as_echo_n "checking target system type... " >&6; }
2736if ${ac_cv_target+:} false; then :
81ecdfbb 2737 $as_echo_n "(cached) " >&6
b7026657 2738else
6bddc3e8
MF
2739 if test "x$target_alias" = x; then
2740 ac_cv_target=$ac_cv_host
c906108c 2741else
6bddc3e8
MF
2742 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2743 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2744fi
2745
2746fi
2747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2748$as_echo "$ac_cv_target" >&6; }
2749case $ac_cv_target in
2750*-*-*) ;;
2751*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2752esac
2753target=$ac_cv_target
2754ac_save_IFS=$IFS; IFS='-'
2755set x $ac_cv_target
2756shift
2757target_cpu=$1
2758target_vendor=$2
2759shift; shift
2760# Remember, the first character of IFS is used to create $*,
2761# except with old shells:
2762target_os=$*
2763IFS=$ac_save_IFS
2764case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2765
2766
2767# The aliases save the names the user supplied, while $host etc.
2768# will get canonicalized.
2769test -n "$target_alias" &&
2770 test "$program_prefix$program_suffix$program_transform_name" = \
2771 NONENONEs,x,x, &&
2772 program_prefix=${target_alias}-
c2783492
MF
2773# Expand $ac_aux_dir to an absolute path.
2774am_aux_dir=`cd "$ac_aux_dir" && pwd`
6bddc3e8 2775
c2783492
MF
2776ac_ext=c
2777ac_cpp='$CPP $CPPFLAGS'
2778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2780ac_compiler_gnu=$ac_cv_c_compiler_gnu
2781if test -n "$ac_tool_prefix"; then
2782 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2783set dummy ${ac_tool_prefix}gcc; ac_word=$2
2784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2785$as_echo_n "checking for $ac_word... " >&6; }
2786if ${ac_cv_prog_CC+:} false; then :
2787 $as_echo_n "(cached) " >&6
8c379db2 2788else
c2783492
MF
2789 if test -n "$CC"; then
2790 ac_cv_prog_CC="$CC" # Let the user override the test.
2791else
2792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793for as_dir in $PATH
2794do
2795 IFS=$as_save_IFS
2796 test -z "$as_dir" && as_dir=.
2797 for ac_exec_ext in '' $ac_executable_extensions; do
2798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2799 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2801 break 2
2802 fi
2803done
2804 done
2805IFS=$as_save_IFS
8c379db2 2806
c2783492
MF
2807fi
2808fi
2809CC=$ac_cv_prog_CC
2810if test -n "$CC"; then
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2812$as_echo "$CC" >&6; }
8c379db2 2813else
c2783492
MF
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2815$as_echo "no" >&6; }
8c379db2
TT
2816fi
2817
6bddc3e8 2818
c2783492
MF
2819fi
2820if test -z "$ac_cv_prog_CC"; then
2821 ac_ct_CC=$CC
2822 # Extract the first word of "gcc", so it can be a program name with args.
2823set dummy gcc; ac_word=$2
2824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2825$as_echo_n "checking for $ac_word... " >&6; }
2826if ${ac_cv_prog_ac_ct_CC+:} false; then :
6bddc3e8
MF
2827 $as_echo_n "(cached) " >&6
2828else
c2783492
MF
2829 if test -n "$ac_ct_CC"; then
2830 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2831else
2832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6bddc3e8
MF
2833for as_dir in $PATH
2834do
2835 IFS=$as_save_IFS
2836 test -z "$as_dir" && as_dir=.
c2783492
MF
2837 for ac_exec_ext in '' $ac_executable_extensions; do
2838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2839 ac_cv_prog_ac_ct_CC="gcc"
2840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2841 break 2
2842 fi
2843done
6bddc3e8
MF
2844 done
2845IFS=$as_save_IFS
2846
6bddc3e8 2847fi
6bddc3e8 2848fi
c2783492
MF
2849ac_ct_CC=$ac_cv_prog_ac_ct_CC
2850if test -n "$ac_ct_CC"; then
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2852$as_echo "$ac_ct_CC" >&6; }
6bddc3e8 2853else
c2783492
MF
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2855$as_echo "no" >&6; }
6bddc3e8
MF
2856fi
2857
c2783492
MF
2858 if test "x$ac_ct_CC" = x; then
2859 CC=""
2860 else
2861 case $cross_compiling:$ac_tool_warned in
2862yes:)
2863{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2864$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2865ac_tool_warned=yes ;;
2866esac
2867 CC=$ac_ct_CC
2868 fi
6bddc3e8 2869else
c2783492 2870 CC="$ac_cv_prog_CC"
6bddc3e8
MF
2871fi
2872
c2783492
MF
2873if test -z "$CC"; then
2874 if test -n "$ac_tool_prefix"; then
2875 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2876set dummy ${ac_tool_prefix}cc; ac_word=$2
6bddc3e8
MF
2877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2878$as_echo_n "checking for $ac_word... " >&6; }
c2783492 2879if ${ac_cv_prog_CC+:} false; then :
6bddc3e8
MF
2880 $as_echo_n "(cached) " >&6
2881else
c2783492
MF
2882 if test -n "$CC"; then
2883 ac_cv_prog_CC="$CC" # Let the user override the test.
6bddc3e8
MF
2884else
2885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886for as_dir in $PATH
2887do
2888 IFS=$as_save_IFS
2889 test -z "$as_dir" && as_dir=.
2890 for ac_exec_ext in '' $ac_executable_extensions; do
2891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c2783492 2892 ac_cv_prog_CC="${ac_tool_prefix}cc"
6bddc3e8
MF
2893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2894 break 2
2895 fi
2896done
2897 done
2898IFS=$as_save_IFS
2899
2900fi
2901fi
c2783492
MF
2902CC=$ac_cv_prog_CC
2903if test -n "$CC"; then
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2905$as_echo "$CC" >&6; }
6bddc3e8
MF
2906else
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2908$as_echo "no" >&6; }
2909fi
2910
2911
c2783492 2912 fi
6bddc3e8 2913fi
c2783492
MF
2914if test -z "$CC"; then
2915 # Extract the first word of "cc", so it can be a program name with args.
2916set dummy cc; ac_word=$2
6bddc3e8
MF
2917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2918$as_echo_n "checking for $ac_word... " >&6; }
c2783492 2919if ${ac_cv_prog_CC+:} false; then :
6bddc3e8
MF
2920 $as_echo_n "(cached) " >&6
2921else
c2783492
MF
2922 if test -n "$CC"; then
2923 ac_cv_prog_CC="$CC" # Let the user override the test.
6bddc3e8 2924else
c2783492 2925 ac_prog_rejected=no
6bddc3e8
MF
2926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927for as_dir in $PATH
2928do
2929 IFS=$as_save_IFS
2930 test -z "$as_dir" && as_dir=.
2931 for ac_exec_ext in '' $ac_executable_extensions; do
2932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c2783492
MF
2933 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2934 ac_prog_rejected=yes
2935 continue
2936 fi
2937 ac_cv_prog_CC="cc"
6bddc3e8
MF
2938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2939 break 2
2940 fi
2941done
2942 done
2943IFS=$as_save_IFS
2944
c2783492
MF
2945if test $ac_prog_rejected = yes; then
2946 # We found a bogon in the path, so make sure we never use it.
2947 set dummy $ac_cv_prog_CC
2948 shift
2949 if test $# != 0; then
2950 # We chose a different compiler from the bogus one.
2951 # However, it has the same basename, so the bogon will be chosen
2952 # first if we set CC to just the basename; use the full file name.
2953 shift
2954 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2955 fi
6bddc3e8
MF
2956fi
2957fi
c2783492
MF
2958fi
2959CC=$ac_cv_prog_CC
2960if test -n "$CC"; then
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2962$as_echo "$CC" >&6; }
6bddc3e8
MF
2963else
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965$as_echo "no" >&6; }
2966fi
2967
6bddc3e8
MF
2968
2969fi
c2783492
MF
2970if test -z "$CC"; then
2971 if test -n "$ac_tool_prefix"; then
2972 for ac_prog in cl.exe
2973 do
2974 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2975set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2977$as_echo_n "checking for $ac_word... " >&6; }
2978if ${ac_cv_prog_CC+:} false; then :
6bddc3e8
MF
2979 $as_echo_n "(cached) " >&6
2980else
c2783492
MF
2981 if test -n "$CC"; then
2982 ac_cv_prog_CC="$CC" # Let the user override the test.
2983else
2984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985for as_dir in $PATH
6bddc3e8
MF
2986do
2987 IFS=$as_save_IFS
2988 test -z "$as_dir" && as_dir=.
c2783492
MF
2989 for ac_exec_ext in '' $ac_executable_extensions; do
2990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2991 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2993 break 2
2994 fi
2995done
6bddc3e8
MF
2996 done
2997IFS=$as_save_IFS
2998
2999fi
6bddc3e8 3000fi
c2783492
MF
3001CC=$ac_cv_prog_CC
3002if test -n "$CC"; then
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3004$as_echo "$CC" >&6; }
3005else
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3007$as_echo "no" >&6; }
3008fi
6bddc3e8 3009
c2783492
MF
3010
3011 test -n "$CC" && break
3012 done
3013fi
3014if test -z "$CC"; then
3015 ac_ct_CC=$CC
3016 for ac_prog in cl.exe
6bddc3e8
MF
3017do
3018 # Extract the first word of "$ac_prog", so it can be a program name with args.
3019set dummy $ac_prog; ac_word=$2
3020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3021$as_echo_n "checking for $ac_word... " >&6; }
c2783492 3022if ${ac_cv_prog_ac_ct_CC+:} false; then :
6bddc3e8
MF
3023 $as_echo_n "(cached) " >&6
3024else
c2783492
MF
3025 if test -n "$ac_ct_CC"; then
3026 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6bddc3e8
MF
3027else
3028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029for as_dir in $PATH
3030do
3031 IFS=$as_save_IFS
3032 test -z "$as_dir" && as_dir=.
3033 for ac_exec_ext in '' $ac_executable_extensions; do
3034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c2783492 3035 ac_cv_prog_ac_ct_CC="$ac_prog"
6bddc3e8
MF
3036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3037 break 2
3038 fi
3039done
3040 done
3041IFS=$as_save_IFS
3042
3043fi
3044fi
c2783492
MF
3045ac_ct_CC=$ac_cv_prog_ac_ct_CC
3046if test -n "$ac_ct_CC"; then
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3048$as_echo "$ac_ct_CC" >&6; }
6bddc3e8
MF
3049else
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3051$as_echo "no" >&6; }
3052fi
3053
3054
c2783492 3055 test -n "$ac_ct_CC" && break
6bddc3e8
MF
3056done
3057
c2783492
MF
3058 if test "x$ac_ct_CC" = x; then
3059 CC=""
3060 else
3061 case $cross_compiling:$ac_tool_warned in
3062yes:)
3063{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3064$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3065ac_tool_warned=yes ;;
6bddc3e8 3066esac
c2783492 3067 CC=$ac_ct_CC
6bddc3e8
MF
3068 fi
3069fi
3070
6bddc3e8
MF
3071fi
3072
3073
c2783492
MF
3074test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3075$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3076as_fn_error $? "no acceptable C compiler found in \$PATH
3077See \`config.log' for more details" "$LINENO" 5; }
6bddc3e8 3078
c2783492
MF
3079# Provide some information about the compiler.
3080$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3081set X $ac_compile
3082ac_compiler=$2
3083for ac_option in --version -v -V -qversion; do
3084 { { ac_try="$ac_compiler $ac_option >&5"
3085case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3088esac
3089eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3090$as_echo "$ac_try_echo"; } >&5
3091 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3092 ac_status=$?
3093 if test -s conftest.err; then
3094 sed '10a\
3095... rest of stderr output deleted ...
3096 10q' conftest.err >conftest.er1
3097 cat conftest.er1 >&5
3098 fi
3099 rm -f conftest.er1 conftest.err
3100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3101 test $ac_status = 0; }
3102done
6bddc3e8 3103
c2783492
MF
3104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3105/* end confdefs.h. */
6bddc3e8 3106
c2783492
MF
3107int
3108main ()
3109{
6bddc3e8 3110
c2783492
MF
3111 ;
3112 return 0;
3113}
6bddc3e8 3114_ACEOF
c2783492
MF
3115ac_clean_files_save=$ac_clean_files
3116ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3117# Try to create an executable without -o first, disregard a.out.
3118# It will help us diagnose broken compilers, and finding out an intuition
3119# of exeext.
3120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3121$as_echo_n "checking whether the C compiler works... " >&6; }
3122ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
6bddc3e8 3123
c2783492
MF
3124# The possible output files:
3125ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
6bddc3e8 3126
c2783492
MF
3127ac_rmfiles=
3128for ac_file in $ac_files
3129do
3130 case $ac_file in
3131 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3132 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3133 esac
3134done
3135rm -f $ac_rmfiles
81ecdfbb
RW
3136
3137if { { ac_try="$ac_link_default"
3138case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3141esac
3142eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3143$as_echo "$ac_try_echo"; } >&5
3144 (eval "$ac_link_default") 2>&5
b7026657 3145 ac_status=$?
81ecdfbb
RW
3146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3147 test $ac_status = 0; }; then :
3148 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3149# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3150# in a Makefile. We should not override ac_cv_exeext if it was cached,
3151# so that the user can short-circuit this test for compilers unknown to
3152# Autoconf.
3153for ac_file in $ac_files ''
b7026657
AC
3154do
3155 test -f "$ac_file" || continue
3156 case $ac_file in
81ecdfbb 3157 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
b7026657
AC
3158 ;;
3159 [ab].out )
3160 # We found the default executable, but exeext='' is most
3161 # certainly right.
3162 break;;
3163 *.* )
81ecdfbb
RW
3164 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3165 then :; else
3166 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3167 fi
3168 # We set ac_cv_exeext here because the later test for it is not
3169 # safe: cross compilers may not add the suffix if given an `-o'
3170 # argument, so we may need to know it at that point already.
3171 # Even if this section looks crufty: it has the advantage of
3172 # actually working.
b7026657
AC
3173 break;;
3174 * )
3175 break;;
3176 esac
3177done
81ecdfbb
RW
3178test "$ac_cv_exeext" = no && ac_cv_exeext=
3179
b7026657 3180else
81ecdfbb
RW
3181 ac_file=''
3182fi
81ecdfbb 3183if test -z "$ac_file"; then :
d0ac1c44
SM
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185$as_echo "no" >&6; }
3186$as_echo "$as_me: failed program was:" >&5
b7026657
AC
3187sed 's/^/| /' conftest.$ac_ext >&5
3188
81ecdfbb
RW
3189{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3190$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
3191as_fn_error 77 "C compiler cannot create executables
3192See \`config.log' for more details" "$LINENO" 5; }
3193else
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3195$as_echo "yes" >&6; }
b7026657 3196fi
d0ac1c44
SM
3197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3198$as_echo_n "checking for C compiler default output file name... " >&6; }
3199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3200$as_echo "$ac_file" >&6; }
b7026657 3201ac_exeext=$ac_cv_exeext
b7026657 3202
d0ac1c44 3203rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
b7026657 3204ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
3205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3206$as_echo_n "checking for suffix of executables... " >&6; }
3207if { { ac_try="$ac_link"
3208case "(($ac_try" in
3209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210 *) ac_try_echo=$ac_try;;
3211esac
3212eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3213$as_echo "$ac_try_echo"; } >&5
3214 (eval "$ac_link") 2>&5
b7026657 3215 ac_status=$?
81ecdfbb
RW
3216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3217 test $ac_status = 0; }; then :
b7026657
AC
3218 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3219# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3220# work properly (i.e., refer to `conftest.exe'), while it won't with
3221# `rm'.
3222for ac_file in conftest.exe conftest conftest.*; do
3223 test -f "$ac_file" || continue
3224 case $ac_file in
81ecdfbb 3225 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
b7026657 3226 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
b7026657
AC
3227 break;;
3228 * ) break;;
3229 esac
3230done
c906108c 3231else
81ecdfbb
RW
3232 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3233$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
3234as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3235See \`config.log' for more details" "$LINENO" 5; }
c906108c 3236fi
d0ac1c44 3237rm -f conftest conftest$ac_cv_exeext
81ecdfbb
RW
3238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3239$as_echo "$ac_cv_exeext" >&6; }
b7026657
AC
3240
3241rm -f conftest.$ac_ext
3242EXEEXT=$ac_cv_exeext
3243ac_exeext=$EXEEXT
d0ac1c44
SM
3244cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3245/* end confdefs.h. */
3246#include <stdio.h>
3247int
3248main ()
3249{
3250FILE *f = fopen ("conftest.out", "w");
3251 return ferror (f) || fclose (f) != 0;
3252
3253 ;
3254 return 0;
3255}
3256_ACEOF
3257ac_clean_files="$ac_clean_files conftest.out"
3258# Check that the compiler produces executables we can run. If not, either
3259# the compiler is broken, or we cross compile.
3260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3261$as_echo_n "checking whether we are cross compiling... " >&6; }
3262if test "$cross_compiling" != yes; then
3263 { { ac_try="$ac_link"
3264case "(($ac_try" in
3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266 *) ac_try_echo=$ac_try;;
3267esac
3268eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3269$as_echo "$ac_try_echo"; } >&5
3270 (eval "$ac_link") 2>&5
3271 ac_status=$?
3272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3273 test $ac_status = 0; }
3274 if { ac_try='./conftest$ac_cv_exeext'
3275 { { case "(($ac_try" in
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3278esac
3279eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3280$as_echo "$ac_try_echo"; } >&5
3281 (eval "$ac_try") 2>&5
3282 ac_status=$?
3283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3284 test $ac_status = 0; }; }; then
3285 cross_compiling=no
3286 else
3287 if test "$cross_compiling" = maybe; then
3288 cross_compiling=yes
3289 else
3290 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3291$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3292as_fn_error $? "cannot run C compiled programs.
3293If you meant to cross compile, use \`--host'.
3294See \`config.log' for more details" "$LINENO" 5; }
3295 fi
3296 fi
3297fi
3298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3299$as_echo "$cross_compiling" >&6; }
3300
3301rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3302ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
3303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3304$as_echo_n "checking for suffix of object files... " >&6; }
d0ac1c44 3305if ${ac_cv_objext+:} false; then :
81ecdfbb 3306 $as_echo_n "(cached) " >&6
b7026657 3307else
81ecdfbb 3308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
3309/* end confdefs.h. */
3310
3311int
3312main ()
3313{
3314
3315 ;
3316 return 0;
3317}
3318_ACEOF
3319rm -f conftest.o conftest.obj
81ecdfbb
RW
3320if { { ac_try="$ac_compile"
3321case "(($ac_try" in
3322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323 *) ac_try_echo=$ac_try;;
3324esac
3325eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3326$as_echo "$ac_try_echo"; } >&5
3327 (eval "$ac_compile") 2>&5
b7026657 3328 ac_status=$?
81ecdfbb
RW
3329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3330 test $ac_status = 0; }; then :
3331 for ac_file in conftest.o conftest.obj conftest.*; do
3332 test -f "$ac_file" || continue;
b7026657 3333 case $ac_file in
81ecdfbb 3334 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
b7026657
AC
3335 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3336 break;;
3337 esac
3338done
3339else
81ecdfbb 3340 $as_echo "$as_me: failed program was:" >&5
b7026657
AC
3341sed 's/^/| /' conftest.$ac_ext >&5
3342
81ecdfbb
RW
3343{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3344$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
3345as_fn_error $? "cannot compute suffix of object files: cannot compile
3346See \`config.log' for more details" "$LINENO" 5; }
c906108c 3347fi
b7026657
AC
3348rm -f conftest.$ac_cv_objext conftest.$ac_ext
3349fi
81ecdfbb
RW
3350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3351$as_echo "$ac_cv_objext" >&6; }
b7026657
AC
3352OBJEXT=$ac_cv_objext
3353ac_objext=$OBJEXT
81ecdfbb
RW
3354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3355$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 3356if ${ac_cv_c_compiler_gnu+:} false; then :
81ecdfbb 3357 $as_echo_n "(cached) " >&6
b7026657 3358else
81ecdfbb 3359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
3360/* end confdefs.h. */
3361
3362int
3363main ()
3364{
3365#ifndef __GNUC__
3366 choke me
3367#endif
c906108c 3368
b7026657
AC
3369 ;
3370 return 0;
3371}
3372_ACEOF
81ecdfbb 3373if ac_fn_c_try_compile "$LINENO"; then :
b7026657 3374 ac_compiler_gnu=yes
c906108c 3375else
81ecdfbb 3376 ac_compiler_gnu=no
c906108c 3377fi
81ecdfbb 3378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 3379ac_cv_c_compiler_gnu=$ac_compiler_gnu
c906108c 3380
b7026657 3381fi
81ecdfbb
RW
3382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3383$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3384if test $ac_compiler_gnu = yes; then
3385 GCC=yes
3386else
3387 GCC=
3388fi
b7026657
AC
3389ac_test_CFLAGS=${CFLAGS+set}
3390ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
3391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3392$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 3393if ${ac_cv_prog_cc_g+:} false; then :
81ecdfbb 3394 $as_echo_n "(cached) " >&6
c906108c 3395else
81ecdfbb
RW
3396 ac_save_c_werror_flag=$ac_c_werror_flag
3397 ac_c_werror_flag=yes
3398 ac_cv_prog_cc_g=no
3399 CFLAGS="-g"
3400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
3401/* end confdefs.h. */
3402
3403int
3404main ()
3405{
3406
3407 ;
3408 return 0;
3409}
3410_ACEOF
81ecdfbb 3411if ac_fn_c_try_compile "$LINENO"; then :
c906108c
SS
3412 ac_cv_prog_cc_g=yes
3413else
81ecdfbb
RW
3414 CFLAGS=""
3415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3416/* end confdefs.h. */
3417
3418int
3419main ()
3420{
3421
3422 ;
3423 return 0;
3424}
3425_ACEOF
3426if ac_fn_c_try_compile "$LINENO"; then :
3427
3428else
3429 ac_c_werror_flag=$ac_save_c_werror_flag
3430 CFLAGS="-g"
3431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3432/* end confdefs.h. */
3433
3434int
3435main ()
3436{
c906108c 3437
81ecdfbb
RW
3438 ;
3439 return 0;
3440}
3441_ACEOF
3442if ac_fn_c_try_compile "$LINENO"; then :
3443 ac_cv_prog_cc_g=yes
3444fi
3445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3446fi
81ecdfbb 3447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 3448fi
81ecdfbb
RW
3449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3450 ac_c_werror_flag=$ac_save_c_werror_flag
3451fi
3452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3453$as_echo "$ac_cv_prog_cc_g" >&6; }
c906108c 3454if test "$ac_test_CFLAGS" = set; then
b7026657 3455 CFLAGS=$ac_save_CFLAGS
c906108c
SS
3456elif test $ac_cv_prog_cc_g = yes; then
3457 if test "$GCC" = yes; then
3458 CFLAGS="-g -O2"
3459 else
3460 CFLAGS="-g"
3461 fi
3462else
3463 if test "$GCC" = yes; then
3464 CFLAGS="-O2"
3465 else
3466 CFLAGS=
3467 fi
3468fi
81ecdfbb
RW
3469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3470$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 3471if ${ac_cv_prog_cc_c89+:} false; then :
81ecdfbb 3472 $as_echo_n "(cached) " >&6
b7026657 3473else
81ecdfbb 3474 ac_cv_prog_cc_c89=no
b7026657 3475ac_save_CC=$CC
81ecdfbb 3476cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
3477/* end confdefs.h. */
3478#include <stdarg.h>
3479#include <stdio.h>
d0ac1c44 3480struct stat;
b7026657
AC
3481/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3482struct buf { int x; };
3483FILE * (*rcsopen) (struct buf *, struct stat *, int);
3484static char *e (p, i)
3485 char **p;
3486 int i;
3487{
3488 return p[i];
3489}
3490static char *f (char * (*g) (char **, int), char **p, ...)
3491{
3492 char *s;
3493 va_list v;
3494 va_start (v,p);
3495 s = g (p, va_arg (v,int));
3496 va_end (v);
3497 return s;
3498}
3499
3500/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3501 function prototypes and stuff, but not '\xHH' hex character constants.
3502 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3503 as 'x'. The following induces an error, until -std is added to get
b7026657
AC
3504 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3505 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3506 that's true only with -std. */
b7026657
AC
3507int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3508
81ecdfbb
RW
3509/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3510 inside strings and character constants. */
3511#define FOO(x) 'x'
3512int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3513
b7026657
AC
3514int test (int i, double x);
3515struct s1 {int (*f) (int a);};
3516struct s2 {int (*f) (double a);};
3517int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3518int argc;
3519char **argv;
3520int
3521main ()
3522{
3523return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3524 ;
3525 return 0;
3526}
3527_ACEOF
81ecdfbb
RW
3528for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3529 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b7026657
AC
3530do
3531 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3532 if ac_fn_c_try_compile "$LINENO"; then :
3533 ac_cv_prog_cc_c89=$ac_arg
b7026657 3534fi
81ecdfbb
RW
3535rm -f core conftest.err conftest.$ac_objext
3536 test "x$ac_cv_prog_cc_c89" != "xno" && break
b7026657 3537done
81ecdfbb 3538rm -f conftest.$ac_ext
b7026657
AC
3539CC=$ac_save_CC
3540
3541fi
81ecdfbb
RW
3542# AC_CACHE_VAL
3543case "x$ac_cv_prog_cc_c89" in
3544 x)
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3546$as_echo "none needed" >&6; } ;;
3547 xno)
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3549$as_echo "unsupported" >&6; } ;;
b7026657 3550 *)
81ecdfbb
RW
3551 CC="$CC $ac_cv_prog_cc_c89"
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3553$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
b7026657 3554esac
81ecdfbb 3555if test "x$ac_cv_prog_cc_c89" != xno; then :
b7026657 3556
fdd6fa61
AG
3557fi
3558
fdd6fa61
AG
3559ac_ext=c
3560ac_cpp='$CPP $CPPFLAGS'
3561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3563ac_compiler_gnu=$ac_cv_c_compiler_gnu
3564
c2783492
MF
3565ac_ext=c
3566ac_cpp='$CPP $CPPFLAGS'
3567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3569ac_compiler_gnu=$ac_cv_c_compiler_gnu
3570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3571$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3572if ${am_cv_prog_cc_c_o+:} false; then :
3573 $as_echo_n "(cached) " >&6
3574else
3575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3576/* end confdefs.h. */
3577
3578int
3579main ()
3580{
3581
3582 ;
3583 return 0;
3584}
3585_ACEOF
3586 # Make sure it works both with $CC and with simple cc.
3587 # Following AC_PROG_CC_C_O, we do the test twice because some
3588 # compilers refuse to overwrite an existing .o file with -o,
3589 # though they will create one.
3590 am_cv_prog_cc_c_o=yes
3591 for am_i in 1 2; do
3592 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3593 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3594 ac_status=$?
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); } \
3597 && test -f conftest2.$ac_objext; then
3598 : OK
3599 else
3600 am_cv_prog_cc_c_o=no
3601 break
3602 fi
3603 done
3604 rm -f core conftest*
3605 unset am_i
3606fi
3607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3608$as_echo "$am_cv_prog_cc_c_o" >&6; }
3609if test "$am_cv_prog_cc_c_o" != yes; then
3610 # Losing compiler, so override with the script.
3611 # FIXME: It is wrong to rewrite CC.
3612 # But if we don't then we get into trouble of one sort or another.
3613 # A longer-term fix would be to have automake use am__CC in this case,
3614 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3615 CC="$am_aux_dir/compile $CC"
3616fi
3617ac_ext=c
3618ac_cpp='$CPP $CPPFLAGS'
3619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3621ac_compiler_gnu=$ac_cv_c_compiler_gnu
3622
3623
3624
3625ac_ext=c
3626ac_cpp='$CPP $CPPFLAGS'
3627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3629ac_compiler_gnu=$ac_cv_c_compiler_gnu
3630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3631$as_echo_n "checking how to run the C preprocessor... " >&6; }
3632# On Suns, sometimes $CPP names a directory.
3633if test -n "$CPP" && test -d "$CPP"; then
3634 CPP=
3635fi
3636if test -z "$CPP"; then
3637 if ${ac_cv_prog_CPP+:} false; then :
3638 $as_echo_n "(cached) " >&6
3639else
3640 # Double quotes because CPP needs to be expanded
3641 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3642 do
3643 ac_preproc_ok=false
3644for ac_c_preproc_warn_flag in '' yes
3645do
3646 # Use a header file that comes with gcc, so configuring glibc
3647 # with a fresh cross-compiler works.
3648 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3649 # <limits.h> exists even on freestanding compilers.
3650 # On the NeXT, cc -E runs the code through the compiler's parser,
3651 # not just through cpp. "Syntax error" is here to catch this case.
3652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3653/* end confdefs.h. */
3654#ifdef __STDC__
3655# include <limits.h>
3656#else
3657# include <assert.h>
3658#endif
3659 Syntax error
3660_ACEOF
3661if ac_fn_c_try_cpp "$LINENO"; then :
3662
3663else
3664 # Broken: fails on valid input.
3665continue
3666fi
3667rm -f conftest.err conftest.i conftest.$ac_ext
3668
3669 # OK, works on sane cases. Now check whether nonexistent headers
3670 # can be detected and how.
3671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3672/* end confdefs.h. */
3673#include <ac_nonexistent.h>
3674_ACEOF
3675if ac_fn_c_try_cpp "$LINENO"; then :
3676 # Broken: success on invalid input.
3677continue
3678else
3679 # Passes both tests.
3680ac_preproc_ok=:
3681break
3682fi
3683rm -f conftest.err conftest.i conftest.$ac_ext
3684
3685done
3686# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3687rm -f conftest.i conftest.err conftest.$ac_ext
3688if $ac_preproc_ok; then :
3689 break
3690fi
3691
3692 done
3693 ac_cv_prog_CPP=$CPP
3694
3695fi
3696 CPP=$ac_cv_prog_CPP
3697else
3698 ac_cv_prog_CPP=$CPP
3699fi
3700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3701$as_echo "$CPP" >&6; }
3702ac_preproc_ok=false
3703for ac_c_preproc_warn_flag in '' yes
3704do
3705 # Use a header file that comes with gcc, so configuring glibc
3706 # with a fresh cross-compiler works.
3707 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3708 # <limits.h> exists even on freestanding compilers.
3709 # On the NeXT, cc -E runs the code through the compiler's parser,
3710 # not just through cpp. "Syntax error" is here to catch this case.
3711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3712/* end confdefs.h. */
3713#ifdef __STDC__
3714# include <limits.h>
3715#else
3716# include <assert.h>
3717#endif
3718 Syntax error
3719_ACEOF
3720if ac_fn_c_try_cpp "$LINENO"; then :
3721
3722else
3723 # Broken: fails on valid input.
3724continue
3725fi
3726rm -f conftest.err conftest.i conftest.$ac_ext
3727
3728 # OK, works on sane cases. Now check whether nonexistent headers
3729 # can be detected and how.
3730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3731/* end confdefs.h. */
3732#include <ac_nonexistent.h>
3733_ACEOF
3734if ac_fn_c_try_cpp "$LINENO"; then :
3735 # Broken: success on invalid input.
3736continue
3737else
3738 # Passes both tests.
3739ac_preproc_ok=:
3740break
3741fi
3742rm -f conftest.err conftest.i conftest.$ac_ext
3743
3744done
3745# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3746rm -f conftest.i conftest.err conftest.$ac_ext
3747if $ac_preproc_ok; then :
3748
3749else
3750 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3751$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3752as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3753See \`config.log' for more details" "$LINENO" 5; }
3754fi
3755
3756ac_ext=c
3757ac_cpp='$CPP $CPPFLAGS'
3758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3760ac_compiler_gnu=$ac_cv_c_compiler_gnu
3761
3762
3763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3764$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3765if ${ac_cv_path_GREP+:} false; then :
3766 $as_echo_n "(cached) " >&6
3767else
3768 if test -z "$GREP"; then
3769 ac_path_GREP_found=false
3770 # Loop through the user's path and test for each of PROGNAME-LIST
3771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3773do
3774 IFS=$as_save_IFS
3775 test -z "$as_dir" && as_dir=.
3776 for ac_prog in grep ggrep; do
3777 for ac_exec_ext in '' $ac_executable_extensions; do
3778 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3779 as_fn_executable_p "$ac_path_GREP" || continue
3780# Check for GNU ac_path_GREP and select it if it is found.
3781 # Check for GNU $ac_path_GREP
3782case `"$ac_path_GREP" --version 2>&1` in
3783*GNU*)
3784 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3785*)
3786 ac_count=0
3787 $as_echo_n 0123456789 >"conftest.in"
3788 while :
3789 do
3790 cat "conftest.in" "conftest.in" >"conftest.tmp"
3791 mv "conftest.tmp" "conftest.in"
3792 cp "conftest.in" "conftest.nl"
3793 $as_echo 'GREP' >> "conftest.nl"
3794 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3795 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3796 as_fn_arith $ac_count + 1 && ac_count=$as_val
3797 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3798 # Best one so far, save it but keep looking for a better one
3799 ac_cv_path_GREP="$ac_path_GREP"
3800 ac_path_GREP_max=$ac_count
3801 fi
3802 # 10*(2^10) chars as input seems more than enough
3803 test $ac_count -gt 10 && break
3804 done
3805 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3806esac
3807
3808 $ac_path_GREP_found && break 3
3809 done
3810 done
3811 done
3812IFS=$as_save_IFS
3813 if test -z "$ac_cv_path_GREP"; then
3814 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3815 fi
3816else
3817 ac_cv_path_GREP=$GREP
3818fi
3819
3820fi
3821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3822$as_echo "$ac_cv_path_GREP" >&6; }
3823 GREP="$ac_cv_path_GREP"
3824
3825
3826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3827$as_echo_n "checking for egrep... " >&6; }
3828if ${ac_cv_path_EGREP+:} false; then :
3829 $as_echo_n "(cached) " >&6
3830else
3831 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3832 then ac_cv_path_EGREP="$GREP -E"
3833 else
3834 if test -z "$EGREP"; then
3835 ac_path_EGREP_found=false
3836 # Loop through the user's path and test for each of PROGNAME-LIST
3837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3838for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3839do
3840 IFS=$as_save_IFS
3841 test -z "$as_dir" && as_dir=.
3842 for ac_prog in egrep; do
3843 for ac_exec_ext in '' $ac_executable_extensions; do
3844 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3845 as_fn_executable_p "$ac_path_EGREP" || continue
3846# Check for GNU ac_path_EGREP and select it if it is found.
3847 # Check for GNU $ac_path_EGREP
3848case `"$ac_path_EGREP" --version 2>&1` in
3849*GNU*)
3850 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3851*)
3852 ac_count=0
3853 $as_echo_n 0123456789 >"conftest.in"
3854 while :
3855 do
3856 cat "conftest.in" "conftest.in" >"conftest.tmp"
3857 mv "conftest.tmp" "conftest.in"
3858 cp "conftest.in" "conftest.nl"
3859 $as_echo 'EGREP' >> "conftest.nl"
3860 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3861 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3862 as_fn_arith $ac_count + 1 && ac_count=$as_val
3863 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3864 # Best one so far, save it but keep looking for a better one
3865 ac_cv_path_EGREP="$ac_path_EGREP"
3866 ac_path_EGREP_max=$ac_count
3867 fi
3868 # 10*(2^10) chars as input seems more than enough
3869 test $ac_count -gt 10 && break
3870 done
3871 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3872esac
3873
3874 $ac_path_EGREP_found && break 3
3875 done
3876 done
3877 done
3878IFS=$as_save_IFS
3879 if test -z "$ac_cv_path_EGREP"; then
3880 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3881 fi
3882else
3883 ac_cv_path_EGREP=$EGREP
3884fi
3885
3886 fi
3887fi
3888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3889$as_echo "$ac_cv_path_EGREP" >&6; }
3890 EGREP="$ac_cv_path_EGREP"
3891
3892
3893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3894$as_echo_n "checking for ANSI C header files... " >&6; }
3895if ${ac_cv_header_stdc+:} false; then :
6bddc3e8
MF
3896 $as_echo_n "(cached) " >&6
3897else
3898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3899/* end confdefs.h. */
c2783492
MF
3900#include <stdlib.h>
3901#include <stdarg.h>
3902#include <string.h>
3903#include <float.h>
6bddc3e8
MF
3904
3905int
3906main ()
3907{
3908
3909 ;
3910 return 0;
3911}
3912_ACEOF
c2783492
MF
3913if ac_fn_c_try_compile "$LINENO"; then :
3914 ac_cv_header_stdc=yes
3915else
3916 ac_cv_header_stdc=no
fdd6fa61 3917fi
c2783492 3918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
81ecdfbb 3919
c2783492
MF
3920if test $ac_cv_header_stdc = yes; then
3921 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3923/* end confdefs.h. */
3924#include <string.h>
6bddc3e8 3925
c2783492
MF
3926_ACEOF
3927if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3928 $EGREP "memchr" >/dev/null 2>&1; then :
6bddc3e8 3929
c2783492
MF
3930else
3931 ac_cv_header_stdc=no
3932fi
3933rm -f conftest*
6bddc3e8 3934
6bddc3e8 3935fi
81ecdfbb 3936
c2783492
MF
3937if test $ac_cv_header_stdc = yes; then
3938 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940/* end confdefs.h. */
3941#include <stdlib.h>
fdd6fa61 3942
c2783492
MF
3943_ACEOF
3944if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3945 $EGREP "free" >/dev/null 2>&1; then :
6bddc3e8 3946
c2783492
MF
3947else
3948 ac_cv_header_stdc=no
6bddc3e8 3949fi
c2783492 3950rm -f conftest*
6bddc3e8 3951
6bddc3e8 3952fi
c2783492
MF
3953
3954if test $ac_cv_header_stdc = yes; then
3955 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3956 if test "$cross_compiling" = yes; then :
3957 :
6bddc3e8 3958else
c2783492
MF
3959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3960/* end confdefs.h. */
3961#include <ctype.h>
3962#include <stdlib.h>
3963#if ((' ' & 0x0FF) == 0x020)
3964# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3965# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3966#else
3967# define ISLOWER(c) \
3968 (('a' <= (c) && (c) <= 'i') \
3969 || ('j' <= (c) && (c) <= 'r') \
3970 || ('s' <= (c) && (c) <= 'z'))
3971# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3972#endif
3973
3974#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3975int
3976main ()
3977{
3978 int i;
3979 for (i = 0; i < 256; i++)
3980 if (XOR (islower (i), ISLOWER (i))
3981 || toupper (i) != TOUPPER (i))
3982 return 2;
3983 return 0;
3984}
3985_ACEOF
3986if ac_fn_c_try_run "$LINENO"; then :
3987
3988else
3989 ac_cv_header_stdc=no
3990fi
3991rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3992 conftest.$ac_objext conftest.beam conftest.$ac_ext
6bddc3e8
MF
3993fi
3994
c2783492
MF
3995fi
3996fi
3997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3998$as_echo "$ac_cv_header_stdc" >&6; }
3999if test $ac_cv_header_stdc = yes; then
6bddc3e8 4000
c2783492 4001$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6bddc3e8 4002
c2783492 4003fi
6bddc3e8 4004
c2783492
MF
4005# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4006for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4007 inttypes.h stdint.h unistd.h
4008do :
4009 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4010ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4011"
4012if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4013 cat >>confdefs.h <<_ACEOF
4014#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4015_ACEOF
4016
4017fi
4018
4019done
4020
4021
4022
4023 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4024if test "x$ac_cv_header_minix_config_h" = xyes; then :
4025 MINIX=yes
fdd6fa61 4026else
c2783492
MF
4027 MINIX=
4028fi
4029
4030
4031 if test "$MINIX" = yes; then
4032
4033$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4034
4035
4036$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4037
4038
4039$as_echo "#define _MINIX 1" >>confdefs.h
6bddc3e8 4040
6bddc3e8 4041 fi
6bddc3e8 4042
6bddc3e8 4043
c2783492
MF
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4045$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4046if ${ac_cv_safe_to_define___extensions__+:} false; then :
4047 $as_echo_n "(cached) " >&6
4048else
4049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050/* end confdefs.h. */
c906108c 4051
c2783492
MF
4052# define __EXTENSIONS__ 1
4053 $ac_includes_default
4054int
4055main ()
4056{
4057
4058 ;
4059 return 0;
4060}
4061_ACEOF
4062if ac_fn_c_try_compile "$LINENO"; then :
4063 ac_cv_safe_to_define___extensions__=yes
6bddc3e8 4064else
c2783492
MF
4065 ac_cv_safe_to_define___extensions__=no
4066fi
4067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 4068fi
c2783492
MF
4069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4070$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4071 test $ac_cv_safe_to_define___extensions__ = yes &&
4072 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6bddc3e8 4073
c2783492 4074 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
c906108c 4075
c2783492 4076 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
c906108c 4077
c2783492 4078 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
c906108c 4079
c2783492 4080 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
c906108c 4081
c2783492
MF
4082
4083test "$program_prefix" != NONE &&
4084 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4085# Use a double $ so make ignores it.
4086test "$program_suffix" != NONE &&
4087 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4088# Double any \ or $.
4089# By default was `s,x,x', remove it if useless.
4090ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4091program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4092
4093# Find a good install program. We prefer a C program (faster),
4094# so one script is as good as another. But avoid the broken or
4095# incompatible versions:
4096# SysV /etc/install, /usr/sbin/install
4097# SunOS /usr/etc/install
4098# IRIX /sbin/install
4099# AIX /bin/install
4100# AmigaOS /C/install, which installs bootblocks on floppy discs
4101# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4102# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4103# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4104# OS/2's system install, which has a completely different semantic
4105# ./install, which can be erroneously created by make from ./install.sh.
4106# Reject install programs that cannot install multiple files.
4107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4108$as_echo_n "checking for a BSD-compatible install... " >&6; }
4109if test -z "$INSTALL"; then
4110if ${ac_cv_path_install+:} false; then :
81ecdfbb 4111 $as_echo_n "(cached) " >&6
c906108c 4112else
c2783492 4113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
b7026657
AC
4114for as_dir in $PATH
4115do
4116 IFS=$as_save_IFS
4117 test -z "$as_dir" && as_dir=.
c2783492
MF
4118 # Account for people who put trailing slashes in PATH elements.
4119case $as_dir/ in #((
4120 ./ | .// | /[cC]/* | \
4121 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4122 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4123 /usr/ucb/* ) ;;
4124 *)
4125 # OSF1 and SCO ODT 3.0 have their own names for install.
4126 # Don't use installbsd from OSF since it installs stuff as root
4127 # by default.
4128 for ac_prog in ginstall scoinst install; do
4129 for ac_exec_ext in '' $ac_executable_extensions; do
4130 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4131 if test $ac_prog = install &&
4132 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4133 # AIX install. It has an incompatible calling convention.
4134 :
4135 elif test $ac_prog = install &&
4136 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4137 # program-specific install script used by HP pwplus--don't use.
4138 :
4139 else
4140 rm -rf conftest.one conftest.two conftest.dir
4141 echo one > conftest.one
4142 echo two > conftest.two
4143 mkdir conftest.dir
4144 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4145 test -s conftest.one && test -s conftest.two &&
4146 test -s conftest.dir/conftest.one &&
4147 test -s conftest.dir/conftest.two
4148 then
4149 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4150 break 3
4151 fi
4152 fi
4153 fi
4154 done
4155 done
4156 ;;
4157esac
4158
81ecdfbb
RW
4159 done
4160IFS=$as_save_IFS
b7026657 4161
c2783492
MF
4162rm -rf conftest.one conftest.two conftest.dir
4163
c906108c 4164fi
c2783492
MF
4165 if test "${ac_cv_path_install+set}" = set; then
4166 INSTALL=$ac_cv_path_install
4167 else
4168 # As a last resort, use the slow shell script. Don't cache a
4169 # value for INSTALL within a source directory, because that will
4170 # break other packages using the cache if that directory is
4171 # removed, or if the value is a relative name.
4172 INSTALL=$ac_install_sh
4173 fi
c906108c 4174fi
c2783492
MF
4175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4176$as_echo "$INSTALL" >&6; }
b7026657 4177
c2783492
MF
4178# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4179# It thinks the first close brace ends the variable substitution.
4180test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
81ecdfbb 4181
c2783492
MF
4182test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4183
4184test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4185
4186
4187
4188
4189
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4191$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4192if ${ac_cv_c_bigendian+:} false; then :
81ecdfbb 4193 $as_echo_n "(cached) " >&6
b7026657 4194else
c2783492
MF
4195 ac_cv_c_bigendian=unknown
4196 # See if we're dealing with a universal compiler.
4197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4198/* end confdefs.h. */
4199#ifndef __APPLE_CC__
4200 not a universal capable compiler
4201 #endif
4202 typedef int dummy;
c906108c 4203
c2783492
MF
4204_ACEOF
4205if ac_fn_c_try_compile "$LINENO"; then :
4206
4207 # Check for potential -arch flags. It is not universal unless
4208 # there are at least two -arch flags with different values.
4209 ac_arch=
4210 ac_prev=
4211 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4212 if test -n "$ac_prev"; then
4213 case $ac_word in
4214 i?86 | x86_64 | ppc | ppc64)
4215 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4216 ac_arch=$ac_word
4217 else
4218 ac_cv_c_bigendian=universal
4219 break
4220 fi
4221 ;;
4222 esac
4223 ac_prev=
4224 elif test "x$ac_word" = "x-arch"; then
4225 ac_prev=arch
4226 fi
4227 done
b7026657 4228fi
c2783492
MF
4229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4230 if test $ac_cv_c_bigendian = unknown; then
4231 # See if sys/param.h defines the BYTE_ORDER macro.
4232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4233/* end confdefs.h. */
4234#include <sys/types.h>
4235 #include <sys/param.h>
c906108c 4236
c2783492
MF
4237int
4238main ()
4239{
4240#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4241 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4242 && LITTLE_ENDIAN)
4243 bogus endian macros
4244 #endif
4245
4246 ;
4247 return 0;
4248}
4249_ACEOF
4250if ac_fn_c_try_compile "$LINENO"; then :
4251 # It does; now see whether it defined to BIG_ENDIAN or not.
4252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4253/* end confdefs.h. */
4254#include <sys/types.h>
4255 #include <sys/param.h>
4256
4257int
4258main ()
4259{
4260#if BYTE_ORDER != BIG_ENDIAN
4261 not big endian
4262 #endif
4263
4264 ;
4265 return 0;
4266}
4267_ACEOF
4268if ac_fn_c_try_compile "$LINENO"; then :
4269 ac_cv_c_bigendian=yes
b7026657 4270else
c2783492
MF
4271 ac_cv_c_bigendian=no
4272fi
4273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 4274fi
c2783492
MF
4275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4276 fi
4277 if test $ac_cv_c_bigendian = unknown; then
4278 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4280/* end confdefs.h. */
4281#include <limits.h>
c906108c 4282
c2783492
MF
4283int
4284main ()
4285{
4286#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4287 bogus endian macros
4288 #endif
4289
4290 ;
4291 return 0;
4292}
4293_ACEOF
4294if ac_fn_c_try_compile "$LINENO"; then :
4295 # It does; now see whether it defined to _BIG_ENDIAN or not.
4296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4297/* end confdefs.h. */
4298#include <limits.h>
4299
4300int
4301main ()
4302{
4303#ifndef _BIG_ENDIAN
4304 not big endian
4305 #endif
b7026657 4306
c2783492
MF
4307 ;
4308 return 0;
4309}
4310_ACEOF
4311if ac_fn_c_try_compile "$LINENO"; then :
4312 ac_cv_c_bigendian=yes
c906108c 4313else
c2783492 4314 ac_cv_c_bigendian=no
c906108c 4315fi
c2783492
MF
4316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4317fi
4318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4319 fi
4320 if test $ac_cv_c_bigendian = unknown; then
4321 # Compile a test program.
4322 if test "$cross_compiling" = yes; then :
4323 # Try to guess by grepping values from an object file.
4324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325/* end confdefs.h. */
4326short int ascii_mm[] =
4327 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4328 short int ascii_ii[] =
4329 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4330 int use_ascii (int i) {
4331 return ascii_mm[i] + ascii_ii[i];
4332 }
4333 short int ebcdic_ii[] =
4334 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4335 short int ebcdic_mm[] =
4336 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4337 int use_ebcdic (int i) {
4338 return ebcdic_mm[i] + ebcdic_ii[i];
4339 }
4340 extern int foo;
c906108c 4341
c2783492
MF
4342int
4343main ()
4344{
4345return use_ascii (foo) == use_ebcdic (foo);
4346 ;
4347 return 0;
4348}
4349_ACEOF
4350if ac_fn_c_try_compile "$LINENO"; then :
4351 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4352 ac_cv_c_bigendian=yes
4353 fi
4354 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4355 if test "$ac_cv_c_bigendian" = unknown; then
4356 ac_cv_c_bigendian=no
4357 else
4358 # finding both strings is unlikely to happen, but who knows?
4359 ac_cv_c_bigendian=unknown
4360 fi
4361 fi
b7026657 4362fi
c2783492 4363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 4364else
c2783492
MF
4365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4366/* end confdefs.h. */
4367$ac_includes_default
4368int
4369main ()
4370{
4371
4372 /* Are we little or big endian? From Harbison&Steele. */
4373 union
4374 {
4375 long int l;
4376 char c[sizeof (long int)];
4377 } u;
4378 u.l = 1;
4379 return u.c[sizeof (long int) - 1] == 1;
b7026657 4380
c2783492
MF
4381 ;
4382 return 0;
4383}
4384_ACEOF
4385if ac_fn_c_try_run "$LINENO"; then :
4386 ac_cv_c_bigendian=no
4387else
4388 ac_cv_c_bigendian=yes
c906108c 4389fi
c2783492
MF
4390rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4391 conftest.$ac_objext conftest.beam conftest.$ac_ext
c906108c 4392fi
c2783492
MF
4393
4394 fi
c906108c 4395fi
c2783492
MF
4396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4397$as_echo "$ac_cv_c_bigendian" >&6; }
4398 case $ac_cv_c_bigendian in #(
4399 yes)
4400 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4401;; #(
4402 no)
4403 ;; #(
4404 universal)
c906108c 4405
c2783492
MF
4406$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4407
4408 ;; #(
4409 *)
4410 as_fn_error $? "unknown endianness
4411 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4412 esac
4413
4414
4415
4416
a979f2a0
MF
4417if test -n "$ac_tool_prefix"; then
4418 # Extract the first word of "${ac_tool_prefix}dtc", so it can be a program name with args.
4419set dummy ${ac_tool_prefix}dtc; ac_word=$2
4420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4421$as_echo_n "checking for $ac_word... " >&6; }
4422if ${ac_cv_prog_DTC+:} false; then :
4423 $as_echo_n "(cached) " >&6
4424else
4425 if test -n "$DTC"; then
4426 ac_cv_prog_DTC="$DTC" # Let the user override the test.
4427else
4428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4429for as_dir in $PATH
4430do
4431 IFS=$as_save_IFS
4432 test -z "$as_dir" && as_dir=.
4433 for ac_exec_ext in '' $ac_executable_extensions; do
4434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4435 ac_cv_prog_DTC="${ac_tool_prefix}dtc"
4436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4437 break 2
4438 fi
4439done
4440 done
4441IFS=$as_save_IFS
4442
4443fi
4444fi
4445DTC=$ac_cv_prog_DTC
4446if test -n "$DTC"; then
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTC" >&5
4448$as_echo "$DTC" >&6; }
4449else
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4451$as_echo "no" >&6; }
4452fi
4453
4454
4455fi
4456if test -z "$ac_cv_prog_DTC"; then
4457 ac_ct_DTC=$DTC
4458 # Extract the first word of "dtc", so it can be a program name with args.
4459set dummy dtc; ac_word=$2
4460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4461$as_echo_n "checking for $ac_word... " >&6; }
4462if ${ac_cv_prog_ac_ct_DTC+:} false; then :
4463 $as_echo_n "(cached) " >&6
4464else
4465 if test -n "$ac_ct_DTC"; then
4466 ac_cv_prog_ac_ct_DTC="$ac_ct_DTC" # Let the user override the test.
4467else
4468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469for as_dir in $PATH
4470do
4471 IFS=$as_save_IFS
4472 test -z "$as_dir" && as_dir=.
4473 for ac_exec_ext in '' $ac_executable_extensions; do
4474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4475 ac_cv_prog_ac_ct_DTC="dtc"
4476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4477 break 2
4478 fi
4479done
4480 done
4481IFS=$as_save_IFS
4482
4483fi
4484fi
4485ac_ct_DTC=$ac_cv_prog_ac_ct_DTC
4486if test -n "$ac_ct_DTC"; then
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DTC" >&5
4488$as_echo "$ac_ct_DTC" >&6; }
4489else
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4491$as_echo "no" >&6; }
4492fi
4493
4494 if test "x$ac_ct_DTC" = x; then
4495 DTC=""
4496 else
4497 case $cross_compiling:$ac_tool_warned in
4498yes:)
4499{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4500$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4501ac_tool_warned=yes ;;
4502esac
4503 DTC=$ac_ct_DTC
4504 fi
4505else
4506 DTC="$ac_cv_prog_DTC"
4507fi
4508
4509
c2783492 4510if test "x$cross_compiling" = "xno"; then
aa0fca16 4511 : "${AR_FOR_BUILD:=\$(AR)}"
c2783492 4512 : "${CC_FOR_BUILD:=\$(CC)}"
aa0fca16 4513 : "${RANLIB_FOR_BUILD:=\$(RANLIB)}"
c2783492
MF
4514 : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}"
4515 : "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}"
c906108c 4516else
aa0fca16 4517 : "${AR_FOR_BUILD:=ar}"
c2783492 4518 : "${CC_FOR_BUILD:=gcc}"
aa0fca16 4519 : "${RANLIB_FOR_BUILD:=ranlib}"
c2783492
MF
4520 : "${CFLAGS_FOR_BUILD:=-g -O}"
4521 : "${LDLFAGS_FOR_BUILD:=}"
c906108c
SS
4522fi
4523
4524
c906108c 4525
c2783492
MF
4526
4527
aa0fca16
MF
4528
4529
b7026657 4530if test -n "$ac_tool_prefix"; then
c2783492
MF
4531 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4532set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
4533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4534$as_echo_n "checking for $ac_word... " >&6; }
c2783492 4535if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 4536 $as_echo_n "(cached) " >&6
c906108c 4537else
c2783492
MF
4538 if test -n "$AR"; then
4539 ac_cv_prog_AR="$AR" # Let the user override the test.
c906108c 4540else
b7026657
AC
4541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4542for as_dir in $PATH
4543do
4544 IFS=$as_save_IFS
4545 test -z "$as_dir" && as_dir=.
81ecdfbb 4546 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c2783492 4548 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 4549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4550 break 2
4551 fi
4552done
81ecdfbb
RW
4553 done
4554IFS=$as_save_IFS
b7026657
AC
4555
4556fi
4557fi
c2783492
MF
4558AR=$ac_cv_prog_AR
4559if test -n "$AR"; then
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4561$as_echo "$AR" >&6; }
b7026657 4562else
81ecdfbb
RW
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4564$as_echo "no" >&6; }
b7026657
AC
4565fi
4566
81ecdfbb 4567
b7026657 4568fi
c2783492
MF
4569if test -z "$ac_cv_prog_AR"; then
4570 ac_ct_AR=$AR
4571 # Extract the first word of "ar", so it can be a program name with args.
4572set dummy ar; ac_word=$2
81ecdfbb
RW
4573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4574$as_echo_n "checking for $ac_word... " >&6; }
c2783492 4575if ${ac_cv_prog_ac_ct_AR+:} false; then :
81ecdfbb 4576 $as_echo_n "(cached) " >&6
b7026657 4577else
c2783492
MF
4578 if test -n "$ac_ct_AR"; then
4579 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
b7026657
AC
4580else
4581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4582for as_dir in $PATH
4583do
4584 IFS=$as_save_IFS
4585 test -z "$as_dir" && as_dir=.
81ecdfbb 4586 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c2783492 4588 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 4589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4590 break 2
4591 fi
4592done
81ecdfbb
RW
4593 done
4594IFS=$as_save_IFS
b7026657
AC
4595
4596fi
4597fi
c2783492
MF
4598ac_ct_AR=$ac_cv_prog_ac_ct_AR
4599if test -n "$ac_ct_AR"; then
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4601$as_echo "$ac_ct_AR" >&6; }
b7026657 4602else
81ecdfbb
RW
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4604$as_echo "no" >&6; }
c906108c 4605fi
b7026657 4606
c2783492
MF
4607 if test "x$ac_ct_AR" = x; then
4608 AR=""
81ecdfbb
RW
4609 else
4610 case $cross_compiling:$ac_tool_warned in
4611yes:)
4612{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4613$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4614ac_tool_warned=yes ;;
4615esac
c2783492 4616 AR=$ac_ct_AR
c906108c 4617 fi
c906108c 4618else
c2783492 4619 AR="$ac_cv_prog_AR"
c906108c
SS
4620fi
4621
c2783492
MF
4622if test -n "$ac_tool_prefix"; then
4623 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4624set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
4625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4626$as_echo_n "checking for $ac_word... " >&6; }
c2783492 4627if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 4628 $as_echo_n "(cached) " >&6
c906108c 4629else
c2783492
MF
4630 if test -n "$RANLIB"; then
4631 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
c906108c 4632else
b7026657
AC
4633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634for as_dir in $PATH
4635do
4636 IFS=$as_save_IFS
4637 test -z "$as_dir" && as_dir=.
81ecdfbb 4638 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c2783492 4640 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 4641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4642 break 2
4643 fi
4644done
81ecdfbb
RW
4645 done
4646IFS=$as_save_IFS
b7026657 4647
c906108c
SS
4648fi
4649fi
c2783492
MF
4650RANLIB=$ac_cv_prog_RANLIB
4651if test -n "$RANLIB"; then
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4653$as_echo "$RANLIB" >&6; }
c906108c 4654else
81ecdfbb
RW
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4656$as_echo "no" >&6; }
c906108c
SS
4657fi
4658
81ecdfbb 4659
b7026657 4660fi
c2783492
MF
4661if test -z "$ac_cv_prog_RANLIB"; then
4662 ac_ct_RANLIB=$RANLIB
4663 # Extract the first word of "ranlib", so it can be a program name with args.
4664set dummy ranlib; ac_word=$2
81ecdfbb
RW
4665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4666$as_echo_n "checking for $ac_word... " >&6; }
c2783492 4667if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
81ecdfbb 4668 $as_echo_n "(cached) " >&6
c906108c 4669else
c2783492
MF
4670 if test -n "$ac_ct_RANLIB"; then
4671 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
b7026657
AC
4672else
4673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674for as_dir in $PATH
4675do
4676 IFS=$as_save_IFS
4677 test -z "$as_dir" && as_dir=.
81ecdfbb 4678 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c2783492 4680 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 4681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4682 break 2
4683 fi
4684done
81ecdfbb
RW
4685 done
4686IFS=$as_save_IFS
b7026657 4687
c906108c 4688fi
b7026657 4689fi
c2783492
MF
4690ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4691if test -n "$ac_ct_RANLIB"; then
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4693$as_echo "$ac_ct_RANLIB" >&6; }
c906108c 4694else
81ecdfbb
RW
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4696$as_echo "no" >&6; }
c906108c 4697fi
b7026657 4698
c2783492
MF
4699 if test "x$ac_ct_RANLIB" = x; then
4700 RANLIB=":"
81ecdfbb
RW
4701 else
4702 case $cross_compiling:$ac_tool_warned in
4703yes:)
4704{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4705$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4706ac_tool_warned=yes ;;
4707esac
c2783492 4708 RANLIB=$ac_ct_RANLIB
81ecdfbb 4709 fi
c2783492
MF
4710else
4711 RANLIB="$ac_cv_prog_RANLIB"
4712fi
4713
4714
4715# Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using
4716# AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands
4717# is C99. So handle it ourselves.
4718:
4719C_DIALECT=
4720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5
4721$as_echo_n "checking whether C11 is supported by default... " >&6; }
4722cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723/* end confdefs.h. */
4724
4725#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
4726# error "C11 support not found"
4727#endif
4728
4729_ACEOF
4730if ac_fn_c_try_compile "$LINENO"; then :
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4732$as_echo "yes" >&6; }
4733else
4734
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4736$as_echo "no" >&6; }
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5
4738$as_echo_n "checking for -std=c11 support... " >&6; }
4739 ac_save_CC="$CC"
4740 CC="$CC -std=c11"
4741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4742/* end confdefs.h. */
4743
4744#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
4745# error "C11 support not found"
4746#endif
4747
4748_ACEOF
4749if ac_fn_c_try_compile "$LINENO"; then :
4750
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4752$as_echo "yes" >&6; }
4753 CC="$ac_save_CC"
4754 C_DIALECT="-std=c11"
4755
4756else
4757 as_fn_error $? "C11 is required" "$LINENO" 5
4758fi
4759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4760fi
4761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4762
4763
4764
4765
c906108c 4766
b15c5d7a
MF
4767 for ac_header in $ac_header_list
4768do :
4769 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4770ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4771"
4772if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4773 cat >>confdefs.h <<_ACEOF
4774#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4775_ACEOF
4776
b7026657
AC
4777fi
4778
b15c5d7a 4779done
b7026657 4780
b7026657 4781
c2783492 4782
c2783492 4783
c2783492 4784
c2783492 4785
c2783492 4786
b15c5d7a
MF
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
a48ff3ef
MF
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
b15c5d7a
MF
4821
4822
4823
4824
4825
4826
4827
4828
b15c5d7a
MF
4829
4830
4831
4832 for ac_func in $ac_func_list
4833do :
4834 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4835ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4836if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4837 cat >>confdefs.h <<_ACEOF
4838#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4839_ACEOF
4840
4841fi
4842done
4843
4844
4845
4846
4847
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
a48ff3ef
MF
4902
4903
4904
4905
4906
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{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
4967$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
4968if ${ac_cv_struct_tm+:} false; then :
4969 $as_echo_n "(cached) " >&6
4970else
4971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4972/* end confdefs.h. */
4973#include <sys/types.h>
4974#include <time.h>
4975
4976int
4977main ()
4978{
4979struct tm tm;
4980 int *p = &tm.tm_sec;
4981 return !p;
4982 ;
4983 return 0;
4984}
4985_ACEOF
4986if ac_fn_c_try_compile "$LINENO"; then :
4987 ac_cv_struct_tm=time.h
4988else
4989 ac_cv_struct_tm=sys/time.h
4990fi
4991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4992fi
4993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
4994$as_echo "$ac_cv_struct_tm" >&6; }
4995if test $ac_cv_struct_tm = sys/time.h; then
4996
4997$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
4998
4999fi
5000
5001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5002$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5003if ${ac_cv_type_uid_t+:} false; then :
5004 $as_echo_n "(cached) " >&6
5005else
5006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5007/* end confdefs.h. */
5008#include <sys/types.h>
5009
5010_ACEOF
5011if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5012 $EGREP "uid_t" >/dev/null 2>&1; then :
5013 ac_cv_type_uid_t=yes
5014else
5015 ac_cv_type_uid_t=no
5016fi
5017rm -f conftest*
5018
5019fi
5020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5021$as_echo "$ac_cv_type_uid_t" >&6; }
5022if test $ac_cv_type_uid_t = no; then
5023
5024$as_echo "#define uid_t int" >>confdefs.h
5025
5026
5027$as_echo "#define gid_t int" >>confdefs.h
5028
5029fi
5030
b5689863
MF
5031case `pwd` in
5032 *\ * | *\ *)
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5034$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5035esac
a48ff3ef 5036
a48ff3ef 5037
a48ff3ef 5038
b5689863
MF
5039macro_version='2.2.7a'
5040macro_revision='1.3134'
a48ff3ef 5041
a48ff3ef 5042
a48ff3ef 5043
a48ff3ef 5044
a48ff3ef 5045
a48ff3ef 5046
a48ff3ef 5047
a48ff3ef 5048
a48ff3ef 5049
a48ff3ef
MF
5050
5051
5052
5053
b5689863 5054ltmain="$ac_aux_dir/ltmain.sh"
a48ff3ef 5055
b5689863
MF
5056# Backslashify metacharacters that are still active within
5057# double-quoted strings.
5058sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
a48ff3ef 5059
b5689863
MF
5060# Same as above, but do not quote variable references.
5061double_quote_subst='s/\(["`\\]\)/\\\1/g'
a48ff3ef 5062
b5689863
MF
5063# Sed substitution to delay expansion of an escaped shell variable in a
5064# double_quote_subst'ed string.
5065delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5066
5067# Sed substitution to delay expansion of an escaped single quote.
5068delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5069
5070# Sed substitution to avoid accidental globbing in evaled expressions
5071no_glob_subst='s/\*/\\\*/g'
5072
5073ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5074ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5075ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
a48ff3ef 5076
b5689863
MF
5077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5078$as_echo_n "checking how to print strings... " >&6; }
5079# Test print first, because it will be a builtin if present.
5080if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5081 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5082 ECHO='print -r --'
5083elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5084 ECHO='printf %s\n'
5085else
5086 # Use this function as a fallback that always works.
5087 func_fallback_echo ()
5088 {
5089 eval 'cat <<_LTECHO_EOF
5090$1
5091_LTECHO_EOF'
5092 }
5093 ECHO='func_fallback_echo'
a48ff3ef
MF
5094fi
5095
b5689863
MF
5096# func_echo_all arg...
5097# Invoke $ECHO with all args, space-separated.
5098func_echo_all ()
5099{
5100 $ECHO ""
5101}
5102
5103case "$ECHO" in
5104 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5105$as_echo "printf" >&6; } ;;
5106 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5107$as_echo "print -r" >&6; } ;;
5108 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5109$as_echo "cat" >&6; } ;;
5110esac
5111
5112
a48ff3ef 5113
a48ff3ef 5114
a48ff3ef
MF
5115
5116
a48ff3ef 5117
a48ff3ef 5118
a48ff3ef
MF
5119
5120
a48ff3ef 5121
a48ff3ef
MF
5122
5123
a48ff3ef 5124
b5689863
MF
5125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5126$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5127if ${ac_cv_path_SED+:} false; then :
5128 $as_echo_n "(cached) " >&6
5129else
5130 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5131 for ac_i in 1 2 3 4 5 6 7; do
5132 ac_script="$ac_script$as_nl$ac_script"
5133 done
5134 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5135 { ac_script=; unset ac_script;}
5136 if test -z "$SED"; then
5137 ac_path_SED_found=false
5138 # Loop through the user's path and test for each of PROGNAME-LIST
5139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140for as_dir in $PATH
5141do
5142 IFS=$as_save_IFS
5143 test -z "$as_dir" && as_dir=.
5144 for ac_prog in sed gsed; do
5145 for ac_exec_ext in '' $ac_executable_extensions; do
5146 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5147 as_fn_executable_p "$ac_path_SED" || continue
5148# Check for GNU ac_path_SED and select it if it is found.
5149 # Check for GNU $ac_path_SED
5150case `"$ac_path_SED" --version 2>&1` in
5151*GNU*)
5152 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5153*)
5154 ac_count=0
5155 $as_echo_n 0123456789 >"conftest.in"
5156 while :
5157 do
5158 cat "conftest.in" "conftest.in" >"conftest.tmp"
5159 mv "conftest.tmp" "conftest.in"
5160 cp "conftest.in" "conftest.nl"
5161 $as_echo '' >> "conftest.nl"
5162 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5163 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5164 as_fn_arith $ac_count + 1 && ac_count=$as_val
5165 if test $ac_count -gt ${ac_path_SED_max-0}; then
5166 # Best one so far, save it but keep looking for a better one
5167 ac_cv_path_SED="$ac_path_SED"
5168 ac_path_SED_max=$ac_count
5169 fi
5170 # 10*(2^10) chars as input seems more than enough
5171 test $ac_count -gt 10 && break
5172 done
5173 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5174esac
5175
5176 $ac_path_SED_found && break 3
5177 done
5178 done
5179 done
5180IFS=$as_save_IFS
5181 if test -z "$ac_cv_path_SED"; then
5182 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5183 fi
5184else
5185 ac_cv_path_SED=$SED
a48ff3ef
MF
5186fi
5187
b5689863
MF
5188fi
5189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5190$as_echo "$ac_cv_path_SED" >&6; }
5191 SED="$ac_cv_path_SED"
5192 rm -f conftest.sed
a48ff3ef 5193
b5689863
MF
5194test -z "$SED" && SED=sed
5195Xsed="$SED -e 1s/^X//"
a48ff3ef 5196
a48ff3ef 5197
a48ff3ef
MF
5198
5199
a48ff3ef 5200
a48ff3ef 5201
a48ff3ef 5202
a48ff3ef 5203
a48ff3ef 5204
b5689863
MF
5205
5206
5207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5208$as_echo_n "checking for fgrep... " >&6; }
5209if ${ac_cv_path_FGREP+:} false; then :
a48ff3ef
MF
5210 $as_echo_n "(cached) " >&6
5211else
b5689863
MF
5212 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5213 then ac_cv_path_FGREP="$GREP -F"
5214 else
5215 if test -z "$FGREP"; then
5216 ac_path_FGREP_found=false
5217 # Loop through the user's path and test for each of PROGNAME-LIST
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5220do
5221 IFS=$as_save_IFS
5222 test -z "$as_dir" && as_dir=.
5223 for ac_prog in fgrep; do
5224 for ac_exec_ext in '' $ac_executable_extensions; do
5225 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5226 as_fn_executable_p "$ac_path_FGREP" || continue
5227# Check for GNU ac_path_FGREP and select it if it is found.
5228 # Check for GNU $ac_path_FGREP
5229case `"$ac_path_FGREP" --version 2>&1` in
5230*GNU*)
5231 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5232*)
5233 ac_count=0
5234 $as_echo_n 0123456789 >"conftest.in"
5235 while :
5236 do
5237 cat "conftest.in" "conftest.in" >"conftest.tmp"
5238 mv "conftest.tmp" "conftest.in"
5239 cp "conftest.in" "conftest.nl"
5240 $as_echo 'FGREP' >> "conftest.nl"
5241 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5242 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5243 as_fn_arith $ac_count + 1 && ac_count=$as_val
5244 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5245 # Best one so far, save it but keep looking for a better one
5246 ac_cv_path_FGREP="$ac_path_FGREP"
5247 ac_path_FGREP_max=$ac_count
5248 fi
5249 # 10*(2^10) chars as input seems more than enough
5250 test $ac_count -gt 10 && break
5251 done
5252 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5253esac
5254
5255 $ac_path_FGREP_found && break 3
5256 done
5257 done
5258 done
5259IFS=$as_save_IFS
5260 if test -z "$ac_cv_path_FGREP"; then
5261 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5262 fi
5263else
5264 ac_cv_path_FGREP=$FGREP
5265fi
5266
5267 fi
5268fi
5269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5270$as_echo "$ac_cv_path_FGREP" >&6; }
5271 FGREP="$ac_cv_path_FGREP"
5272
5273
5274test -z "$GREP" && GREP=grep
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294# Check whether --with-gnu-ld was given.
5295if test "${with_gnu_ld+set}" = set; then :
5296 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5297else
5298 with_gnu_ld=no
5299fi
5300
5301ac_prog=ld
5302if test "$GCC" = yes; then
5303 # Check if gcc -print-prog-name=ld gives a path.
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5305$as_echo_n "checking for ld used by $CC... " >&6; }
5306 case $host in
5307 *-*-mingw*)
5308 # gcc leaves a trailing carriage return which upsets mingw
5309 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5310 *)
5311 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5312 esac
5313 case $ac_prog in
5314 # Accept absolute paths.
5315 [\\/]* | ?:[\\/]*)
5316 re_direlt='/[^/][^/]*/\.\./'
5317 # Canonicalize the pathname of ld
5318 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5319 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5320 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5321 done
5322 test -z "$LD" && LD="$ac_prog"
5323 ;;
5324 "")
5325 # If it fails, then pretend we aren't using GCC.
5326 ac_prog=ld
5327 ;;
5328 *)
5329 # If it is relative, then search for the first ld in PATH.
5330 with_gnu_ld=unknown
5331 ;;
5332 esac
5333elif test "$with_gnu_ld" = yes; then
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5335$as_echo_n "checking for GNU ld... " >&6; }
5336else
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5338$as_echo_n "checking for non-GNU ld... " >&6; }
5339fi
5340if ${lt_cv_path_LD+:} false; then :
5341 $as_echo_n "(cached) " >&6
5342else
5343 if test -z "$LD"; then
5344 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5345 for ac_dir in $PATH; do
5346 IFS="$lt_save_ifs"
5347 test -z "$ac_dir" && ac_dir=.
5348 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5349 lt_cv_path_LD="$ac_dir/$ac_prog"
5350 # Check to see if the program is GNU ld. I'd rather use --version,
5351 # but apparently some variants of GNU ld only accept -v.
5352 # Break only if it was the GNU/non-GNU ld that we prefer.
5353 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5354 *GNU* | *'with BFD'*)
5355 test "$with_gnu_ld" != no && break
5356 ;;
5357 *)
5358 test "$with_gnu_ld" != yes && break
5359 ;;
5360 esac
5361 fi
5362 done
5363 IFS="$lt_save_ifs"
5364else
5365 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5366fi
5367fi
5368
5369LD="$lt_cv_path_LD"
5370if test -n "$LD"; then
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5372$as_echo "$LD" >&6; }
5373else
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5375$as_echo "no" >&6; }
5376fi
5377test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5379$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5380if ${lt_cv_prog_gnu_ld+:} false; then :
5381 $as_echo_n "(cached) " >&6
5382else
5383 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5384case `$LD -v 2>&1 </dev/null` in
5385*GNU* | *'with BFD'*)
5386 lt_cv_prog_gnu_ld=yes
5387 ;;
5388*)
5389 lt_cv_prog_gnu_ld=no
5390 ;;
5391esac
5392fi
5393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5394$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5395with_gnu_ld=$lt_cv_prog_gnu_ld
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5406$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5407if ${lt_cv_path_NM+:} false; then :
5408 $as_echo_n "(cached) " >&6
5409else
5410 if test -n "$NM"; then
5411 # Let the user override the test.
5412 lt_cv_path_NM="$NM"
5413else
5414 lt_nm_to_check="${ac_tool_prefix}nm"
5415 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5416 lt_nm_to_check="$lt_nm_to_check nm"
5417 fi
5418 for lt_tmp_nm in $lt_nm_to_check; do
5419 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5420 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5421 IFS="$lt_save_ifs"
5422 test -z "$ac_dir" && ac_dir=.
5423 tmp_nm="$ac_dir/$lt_tmp_nm"
5424 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5425 # Check to see if the nm accepts a BSD-compat flag.
5426 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5427 # nm: unknown option "B" ignored
5428 # Tru64's nm complains that /dev/null is an invalid object file
5429 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5430 */dev/null* | *'Invalid file or object type'*)
5431 lt_cv_path_NM="$tmp_nm -B"
5432 break
5433 ;;
5434 *)
5435 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5436 */dev/null*)
5437 lt_cv_path_NM="$tmp_nm -p"
5438 break
5439 ;;
5440 *)
5441 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5442 continue # so that we can try to find one that supports BSD flags
5443 ;;
5444 esac
5445 ;;
5446 esac
5447 fi
5448 done
5449 IFS="$lt_save_ifs"
5450 done
5451 : ${lt_cv_path_NM=no}
5452fi
5453fi
5454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5455$as_echo "$lt_cv_path_NM" >&6; }
5456if test "$lt_cv_path_NM" != "no"; then
5457 NM="$lt_cv_path_NM"
5458else
5459 # Didn't find any BSD compatible name lister, look for dumpbin.
5460 if test -n "$DUMPBIN"; then :
5461 # Let the user override the test.
5462 else
5463 if test -n "$ac_tool_prefix"; then
5464 for ac_prog in dumpbin "link -dump"
5465 do
5466 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5467set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5469$as_echo_n "checking for $ac_word... " >&6; }
5470if ${ac_cv_prog_DUMPBIN+:} false; then :
5471 $as_echo_n "(cached) " >&6
5472else
5473 if test -n "$DUMPBIN"; then
5474 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5475else
5476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5477for as_dir in $PATH
5478do
5479 IFS=$as_save_IFS
5480 test -z "$as_dir" && as_dir=.
5481 for ac_exec_ext in '' $ac_executable_extensions; do
5482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5483 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5485 break 2
5486 fi
5487done
5488 done
5489IFS=$as_save_IFS
5490
5491fi
5492fi
5493DUMPBIN=$ac_cv_prog_DUMPBIN
5494if test -n "$DUMPBIN"; then
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5496$as_echo "$DUMPBIN" >&6; }
5497else
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5499$as_echo "no" >&6; }
5500fi
5501
5502
5503 test -n "$DUMPBIN" && break
5504 done
5505fi
5506if test -z "$DUMPBIN"; then
5507 ac_ct_DUMPBIN=$DUMPBIN
5508 for ac_prog in dumpbin "link -dump"
5509do
5510 # Extract the first word of "$ac_prog", so it can be a program name with args.
5511set dummy $ac_prog; ac_word=$2
5512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5513$as_echo_n "checking for $ac_word... " >&6; }
5514if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5515 $as_echo_n "(cached) " >&6
5516else
5517 if test -n "$ac_ct_DUMPBIN"; then
5518 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5519else
5520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5521for as_dir in $PATH
5522do
5523 IFS=$as_save_IFS
5524 test -z "$as_dir" && as_dir=.
5525 for ac_exec_ext in '' $ac_executable_extensions; do
5526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5527 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5529 break 2
5530 fi
5531done
5532 done
5533IFS=$as_save_IFS
5534
5535fi
5536fi
5537ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5538if test -n "$ac_ct_DUMPBIN"; then
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5540$as_echo "$ac_ct_DUMPBIN" >&6; }
5541else
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5543$as_echo "no" >&6; }
5544fi
5545
5546
5547 test -n "$ac_ct_DUMPBIN" && break
5548done
5549
5550 if test "x$ac_ct_DUMPBIN" = x; then
5551 DUMPBIN=":"
5552 else
5553 case $cross_compiling:$ac_tool_warned in
5554yes:)
5555{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5556$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5557ac_tool_warned=yes ;;
5558esac
5559 DUMPBIN=$ac_ct_DUMPBIN
5560 fi
5561fi
5562
5563 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5564 *COFF*)
5565 DUMPBIN="$DUMPBIN -symbols"
5566 ;;
5567 *)
5568 DUMPBIN=:
5569 ;;
5570 esac
5571 fi
5572
5573 if test "$DUMPBIN" != ":"; then
5574 NM="$DUMPBIN"
5575 fi
5576fi
5577test -z "$NM" && NM=nm
5578
5579
5580
5581
5582
5583
5584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5585$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5586if ${lt_cv_nm_interface+:} false; then :
5587 $as_echo_n "(cached) " >&6
5588else
5589 lt_cv_nm_interface="BSD nm"
5590 echo "int some_variable = 0;" > conftest.$ac_ext
5591 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5592 (eval "$ac_compile" 2>conftest.err)
5593 cat conftest.err >&5
5594 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5595 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5596 cat conftest.err >&5
5597 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5598 cat conftest.out >&5
5599 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5600 lt_cv_nm_interface="MS dumpbin"
5601 fi
5602 rm -f conftest*
5603fi
5604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5605$as_echo "$lt_cv_nm_interface" >&6; }
5606
5607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5608$as_echo_n "checking whether ln -s works... " >&6; }
5609LN_S=$as_ln_s
5610if test "$LN_S" = "ln -s"; then
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5612$as_echo "yes" >&6; }
5613else
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5615$as_echo "no, using $LN_S" >&6; }
5616fi
5617
5618# find the maximum length of command line arguments
5619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5620$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5621if ${lt_cv_sys_max_cmd_len+:} false; then :
5622 $as_echo_n "(cached) " >&6
5623else
5624 i=0
5625 teststring="ABCD"
5626
5627 case $build_os in
5628 msdosdjgpp*)
5629 # On DJGPP, this test can blow up pretty badly due to problems in libc
5630 # (any single argument exceeding 2000 bytes causes a buffer overrun
5631 # during glob expansion). Even if it were fixed, the result of this
5632 # check would be larger than it should be.
5633 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5634 ;;
5635
5636 gnu*)
5637 # Under GNU Hurd, this test is not required because there is
5638 # no limit to the length of command line arguments.
5639 # Libtool will interpret -1 as no limit whatsoever
5640 lt_cv_sys_max_cmd_len=-1;
5641 ;;
5642
5643 cygwin* | mingw* | cegcc*)
5644 # On Win9x/ME, this test blows up -- it succeeds, but takes
5645 # about 5 minutes as the teststring grows exponentially.
5646 # Worse, since 9x/ME are not pre-emptively multitasking,
5647 # you end up with a "frozen" computer, even though with patience
5648 # the test eventually succeeds (with a max line length of 256k).
5649 # Instead, let's just punt: use the minimum linelength reported by
5650 # all of the supported platforms: 8192 (on NT/2K/XP).
5651 lt_cv_sys_max_cmd_len=8192;
5652 ;;
5653
5654 mint*)
5655 # On MiNT this can take a long time and run out of memory.
5656 lt_cv_sys_max_cmd_len=8192;
5657 ;;
5658
5659 amigaos*)
5660 # On AmigaOS with pdksh, this test takes hours, literally.
5661 # So we just punt and use a minimum line length of 8192.
5662 lt_cv_sys_max_cmd_len=8192;
5663 ;;
5664
5665 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5666 # This has been around since 386BSD, at least. Likely further.
5667 if test -x /sbin/sysctl; then
5668 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5669 elif test -x /usr/sbin/sysctl; then
5670 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5671 else
5672 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5673 fi
5674 # And add a safety zone
5675 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5676 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5677 ;;
5678
5679 interix*)
5680 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5681 lt_cv_sys_max_cmd_len=196608
5682 ;;
5683
5684 osf*)
5685 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5686 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5687 # nice to cause kernel panics so lets avoid the loop below.
5688 # First set a reasonable default.
5689 lt_cv_sys_max_cmd_len=16384
5690 #
5691 if test -x /sbin/sysconfig; then
5692 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5693 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5694 esac
5695 fi
5696 ;;
5697 sco3.2v5*)
5698 lt_cv_sys_max_cmd_len=102400
5699 ;;
5700 sysv5* | sco5v6* | sysv4.2uw2*)
5701 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5702 if test -n "$kargmax"; then
5703 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5704 else
5705 lt_cv_sys_max_cmd_len=32768
5706 fi
5707 ;;
5708 *)
5709 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5710 if test -n "$lt_cv_sys_max_cmd_len"; then
5711 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5712 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5713 else
5714 # Make teststring a little bigger before we do anything with it.
5715 # a 1K string should be a reasonable start.
5716 for i in 1 2 3 4 5 6 7 8 ; do
5717 teststring=$teststring$teststring
5718 done
5719 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5720 # If test is not a shell built-in, we'll probably end up computing a
5721 # maximum length that is only half of the actual maximum length, but
5722 # we can't tell.
5723 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5724 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5725 test $i != 17 # 1/2 MB should be enough
5726 do
5727 i=`expr $i + 1`
5728 teststring=$teststring$teststring
5729 done
5730 # Only check the string length outside the loop.
5731 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5732 teststring=
5733 # Add a significant safety factor because C++ compilers can tack on
5734 # massive amounts of additional arguments before passing them to the
5735 # linker. It appears as though 1/2 is a usable value.
5736 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5737 fi
5738 ;;
5739 esac
5740
5741fi
5742
5743if test -n $lt_cv_sys_max_cmd_len ; then
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5745$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5746else
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5748$as_echo "none" >&6; }
5749fi
5750max_cmd_len=$lt_cv_sys_max_cmd_len
5751
5752
5753
5754
5755
5756
5757: ${CP="cp -f"}
5758: ${MV="mv -f"}
5759: ${RM="rm -f"}
5760
5761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5762$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5763# Try some XSI features
5764xsi_shell=no
5765( _lt_dummy="a/b/c"
5766 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5767 = c,a/b,, \
5768 && eval 'test $(( 1 + 1 )) -eq 2 \
5769 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5770 && xsi_shell=yes
5771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5772$as_echo "$xsi_shell" >&6; }
5773
5774
5775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5776$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5777lt_shell_append=no
5778( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5779 >/dev/null 2>&1 \
5780 && lt_shell_append=yes
5781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5782$as_echo "$lt_shell_append" >&6; }
5783
5784
5785if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5786 lt_unset=unset
5787else
5788 lt_unset=false
5789fi
5790
5791
5792
5793
5794
5795# test EBCDIC or ASCII
5796case `echo X|tr X '\101'` in
5797 A) # ASCII based system
5798 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5799 lt_SP2NL='tr \040 \012'
5800 lt_NL2SP='tr \015\012 \040\040'
5801 ;;
5802 *) # EBCDIC based system
5803 lt_SP2NL='tr \100 \n'
5804 lt_NL2SP='tr \r\n \100\100'
5805 ;;
5806esac
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5817$as_echo_n "checking for $LD option to reload object files... " >&6; }
5818if ${lt_cv_ld_reload_flag+:} false; then :
5819 $as_echo_n "(cached) " >&6
5820else
5821 lt_cv_ld_reload_flag='-r'
5822fi
5823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5824$as_echo "$lt_cv_ld_reload_flag" >&6; }
5825reload_flag=$lt_cv_ld_reload_flag
5826case $reload_flag in
5827"" | " "*) ;;
5828*) reload_flag=" $reload_flag" ;;
5829esac
5830reload_cmds='$LD$reload_flag -o $output$reload_objs'
5831case $host_os in
5832 darwin*)
5833 if test "$GCC" = yes; then
5834 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5835 else
5836 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5837 fi
5838 ;;
5839esac
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849if test -n "$ac_tool_prefix"; then
5850 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5851set dummy ${ac_tool_prefix}objdump; ac_word=$2
5852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5853$as_echo_n "checking for $ac_word... " >&6; }
5854if ${ac_cv_prog_OBJDUMP+:} false; then :
5855 $as_echo_n "(cached) " >&6
5856else
5857 if test -n "$OBJDUMP"; then
5858 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5859else
5860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5861for as_dir in $PATH
5862do
5863 IFS=$as_save_IFS
5864 test -z "$as_dir" && as_dir=.
5865 for ac_exec_ext in '' $ac_executable_extensions; do
5866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5867 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5869 break 2
5870 fi
5871done
5872 done
5873IFS=$as_save_IFS
5874
5875fi
5876fi
5877OBJDUMP=$ac_cv_prog_OBJDUMP
5878if test -n "$OBJDUMP"; then
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5880$as_echo "$OBJDUMP" >&6; }
5881else
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5883$as_echo "no" >&6; }
5884fi
5885
5886
5887fi
5888if test -z "$ac_cv_prog_OBJDUMP"; then
5889 ac_ct_OBJDUMP=$OBJDUMP
5890 # Extract the first word of "objdump", so it can be a program name with args.
5891set dummy objdump; ac_word=$2
5892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5893$as_echo_n "checking for $ac_word... " >&6; }
5894if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5895 $as_echo_n "(cached) " >&6
5896else
5897 if test -n "$ac_ct_OBJDUMP"; then
5898 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5899else
5900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5901for as_dir in $PATH
5902do
5903 IFS=$as_save_IFS
5904 test -z "$as_dir" && as_dir=.
5905 for ac_exec_ext in '' $ac_executable_extensions; do
5906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5907 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5909 break 2
5910 fi
5911done
5912 done
5913IFS=$as_save_IFS
5914
5915fi
5916fi
5917ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5918if test -n "$ac_ct_OBJDUMP"; then
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5920$as_echo "$ac_ct_OBJDUMP" >&6; }
5921else
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5923$as_echo "no" >&6; }
5924fi
5925
5926 if test "x$ac_ct_OBJDUMP" = x; then
5927 OBJDUMP="false"
5928 else
5929 case $cross_compiling:$ac_tool_warned in
5930yes:)
5931{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5932$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5933ac_tool_warned=yes ;;
5934esac
5935 OBJDUMP=$ac_ct_OBJDUMP
5936 fi
5937else
5938 OBJDUMP="$ac_cv_prog_OBJDUMP"
5939fi
5940
5941test -z "$OBJDUMP" && OBJDUMP=objdump
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5952$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5953if ${lt_cv_deplibs_check_method+:} false; then :
5954 $as_echo_n "(cached) " >&6
5955else
5956 lt_cv_file_magic_cmd='$MAGIC_CMD'
5957lt_cv_file_magic_test_file=
5958lt_cv_deplibs_check_method='unknown'
5959# Need to set the preceding variable on all platforms that support
5960# interlibrary dependencies.
5961# 'none' -- dependencies not supported.
5962# `unknown' -- same as none, but documents that we really don't know.
5963# 'pass_all' -- all dependencies passed with no checks.
5964# 'test_compile' -- check by making test program.
5965# 'file_magic [[regex]]' -- check by looking for files in library path
5966# which responds to the $file_magic_cmd with a given extended regex.
5967# If you have `file' or equivalent on your system and you're not sure
5968# whether `pass_all' will *always* work, you probably want this one.
5969
5970case $host_os in
5971aix[4-9]*)
5972 lt_cv_deplibs_check_method=pass_all
5973 ;;
5974
5975beos*)
5976 lt_cv_deplibs_check_method=pass_all
5977 ;;
5978
5979bsdi[45]*)
5980 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5981 lt_cv_file_magic_cmd='/usr/bin/file -L'
5982 lt_cv_file_magic_test_file=/shlib/libc.so
5983 ;;
5984
5985cygwin*)
5986 # func_win32_libid is a shell function defined in ltmain.sh
5987 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5988 lt_cv_file_magic_cmd='func_win32_libid'
5989 ;;
5990
5991mingw* | pw32*)
5992 # Base MSYS/MinGW do not provide the 'file' command needed by
5993 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5994 # unless we find 'file', for example because we are cross-compiling.
5995 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5996 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5997 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5998 lt_cv_file_magic_cmd='func_win32_libid'
5999 else
6000 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6001 lt_cv_file_magic_cmd='$OBJDUMP -f'
6002 fi
6003 ;;
6004
6005cegcc*)
6006 # use the weaker test based on 'objdump'. See mingw*.
6007 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6008 lt_cv_file_magic_cmd='$OBJDUMP -f'
6009 ;;
6010
6011darwin* | rhapsody*)
6012 lt_cv_deplibs_check_method=pass_all
6013 ;;
6014
6015freebsd* | dragonfly*)
6016 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6017 case $host_cpu in
6018 i*86 )
6019 # Not sure whether the presence of OpenBSD here was a mistake.
6020 # Let's accept both of them until this is cleared up.
6021 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6022 lt_cv_file_magic_cmd=/usr/bin/file
6023 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6024 ;;
6025 esac
6026 else
6027 lt_cv_deplibs_check_method=pass_all
6028 fi
6029 ;;
6030
6031gnu*)
6032 lt_cv_deplibs_check_method=pass_all
6033 ;;
6034
6035haiku*)
6036 lt_cv_deplibs_check_method=pass_all
6037 ;;
6038
6039hpux10.20* | hpux11*)
6040 lt_cv_file_magic_cmd=/usr/bin/file
6041 case $host_cpu in
6042 ia64*)
6043 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6044 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6045 ;;
6046 hppa*64*)
6047 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]'
6048 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6049 ;;
6050 *)
6051 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6052 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6053 ;;
6054 esac
6055 ;;
6056
6057interix[3-9]*)
6058 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6059 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6060 ;;
6061
6062irix5* | irix6* | nonstopux*)
6063 case $LD in
6064 *-32|*"-32 ") libmagic=32-bit;;
6065 *-n32|*"-n32 ") libmagic=N32;;
6066 *-64|*"-64 ") libmagic=64-bit;;
6067 *) libmagic=never-match;;
6068 esac
6069 lt_cv_deplibs_check_method=pass_all
6070 ;;
6071
6072# This must be Linux ELF.
6073linux* | k*bsd*-gnu | kopensolaris*-gnu)
6074 lt_cv_deplibs_check_method=pass_all
6075 ;;
6076
6077netbsd*)
6078 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6079 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6080 else
6081 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6082 fi
6083 ;;
6084
6085newos6*)
6086 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6087 lt_cv_file_magic_cmd=/usr/bin/file
6088 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6089 ;;
6090
6091*nto* | *qnx*)
6092 lt_cv_deplibs_check_method=pass_all
6093 ;;
6094
6095openbsd*)
6096 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6097 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6098 else
6099 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6100 fi
6101 ;;
6102
6103osf3* | osf4* | osf5*)
6104 lt_cv_deplibs_check_method=pass_all
6105 ;;
6106
6107rdos*)
6108 lt_cv_deplibs_check_method=pass_all
6109 ;;
6110
6111solaris*)
6112 lt_cv_deplibs_check_method=pass_all
6113 ;;
6114
6115sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6116 lt_cv_deplibs_check_method=pass_all
6117 ;;
6118
6119sysv4 | sysv4.3*)
6120 case $host_vendor in
6121 motorola)
6122 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]'
6123 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6124 ;;
6125 ncr)
6126 lt_cv_deplibs_check_method=pass_all
6127 ;;
6128 sequent)
6129 lt_cv_file_magic_cmd='/bin/file'
6130 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6131 ;;
6132 sni)
6133 lt_cv_file_magic_cmd='/bin/file'
6134 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6135 lt_cv_file_magic_test_file=/lib/libc.so
6136 ;;
6137 siemens)
6138 lt_cv_deplibs_check_method=pass_all
6139 ;;
6140 pc)
6141 lt_cv_deplibs_check_method=pass_all
6142 ;;
6143 esac
6144 ;;
6145
6146tpf*)
6147 lt_cv_deplibs_check_method=pass_all
6148 ;;
6149esac
6150
6151fi
6152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6153$as_echo "$lt_cv_deplibs_check_method" >&6; }
6154file_magic_cmd=$lt_cv_file_magic_cmd
6155deplibs_check_method=$lt_cv_deplibs_check_method
6156test -z "$deplibs_check_method" && deplibs_check_method=unknown
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169plugin_option=
6170plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6171for plugin in $plugin_names; do
6172 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6173 if test x$plugin_so = x$plugin; then
6174 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6175 fi
6176 if test x$plugin_so != x$plugin; then
6177 plugin_option="--plugin $plugin_so"
6178 break
6179 fi
6180done
6181
6182if test -n "$ac_tool_prefix"; then
6183 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6184set dummy ${ac_tool_prefix}ar; ac_word=$2
6185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6186$as_echo_n "checking for $ac_word... " >&6; }
6187if ${ac_cv_prog_AR+:} false; then :
6188 $as_echo_n "(cached) " >&6
6189else
6190 if test -n "$AR"; then
6191 ac_cv_prog_AR="$AR" # Let the user override the test.
6192else
6193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6194for as_dir in $PATH
6195do
6196 IFS=$as_save_IFS
6197 test -z "$as_dir" && as_dir=.
6198 for ac_exec_ext in '' $ac_executable_extensions; do
6199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6200 ac_cv_prog_AR="${ac_tool_prefix}ar"
6201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6202 break 2
6203 fi
6204done
6205 done
6206IFS=$as_save_IFS
6207
6208fi
6209fi
6210AR=$ac_cv_prog_AR
6211if test -n "$AR"; then
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6213$as_echo "$AR" >&6; }
6214else
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6216$as_echo "no" >&6; }
6217fi
6218
6219
6220fi
6221if test -z "$ac_cv_prog_AR"; then
6222 ac_ct_AR=$AR
6223 # Extract the first word of "ar", so it can be a program name with args.
6224set dummy ar; ac_word=$2
6225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6226$as_echo_n "checking for $ac_word... " >&6; }
6227if ${ac_cv_prog_ac_ct_AR+:} false; then :
6228 $as_echo_n "(cached) " >&6
6229else
6230 if test -n "$ac_ct_AR"; then
6231 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6232else
6233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6234for as_dir in $PATH
6235do
6236 IFS=$as_save_IFS
6237 test -z "$as_dir" && as_dir=.
6238 for ac_exec_ext in '' $ac_executable_extensions; do
6239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6240 ac_cv_prog_ac_ct_AR="ar"
6241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6242 break 2
6243 fi
6244done
6245 done
6246IFS=$as_save_IFS
6247
6248fi
6249fi
6250ac_ct_AR=$ac_cv_prog_ac_ct_AR
6251if test -n "$ac_ct_AR"; then
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6253$as_echo "$ac_ct_AR" >&6; }
6254else
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6256$as_echo "no" >&6; }
6257fi
6258
6259 if test "x$ac_ct_AR" = x; then
6260 AR="false"
6261 else
6262 case $cross_compiling:$ac_tool_warned in
6263yes:)
6264{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6265$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6266ac_tool_warned=yes ;;
6267esac
6268 AR=$ac_ct_AR
6269 fi
6270else
6271 AR="$ac_cv_prog_AR"
6272fi
6273
6274test -z "$AR" && AR=ar
6275if test -n "$plugin_option"; then
6276 if $AR --help 2>&1 | grep -q "\--plugin"; then
6277 touch conftest.c
6278 $AR $plugin_option rc conftest.a conftest.c
6279 if test "$?" != 0; then
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6281$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6282 else
6283 AR="$AR $plugin_option"
6284 fi
6285 rm -f conftest.*
6286 fi
6287fi
6288test -z "$AR_FLAGS" && AR_FLAGS=cru
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300if test -n "$ac_tool_prefix"; then
6301 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6302set dummy ${ac_tool_prefix}strip; ac_word=$2
6303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6304$as_echo_n "checking for $ac_word... " >&6; }
6305if ${ac_cv_prog_STRIP+:} false; then :
6306 $as_echo_n "(cached) " >&6
6307else
6308 if test -n "$STRIP"; then
6309 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6310else
6311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6312for as_dir in $PATH
6313do
6314 IFS=$as_save_IFS
6315 test -z "$as_dir" && as_dir=.
6316 for ac_exec_ext in '' $ac_executable_extensions; do
6317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6318 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6320 break 2
6321 fi
6322done
6323 done
6324IFS=$as_save_IFS
6325
6326fi
6327fi
6328STRIP=$ac_cv_prog_STRIP
6329if test -n "$STRIP"; then
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6331$as_echo "$STRIP" >&6; }
6332else
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6334$as_echo "no" >&6; }
6335fi
6336
6337
6338fi
6339if test -z "$ac_cv_prog_STRIP"; then
6340 ac_ct_STRIP=$STRIP
6341 # Extract the first word of "strip", so it can be a program name with args.
6342set dummy strip; ac_word=$2
6343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6344$as_echo_n "checking for $ac_word... " >&6; }
6345if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6346 $as_echo_n "(cached) " >&6
6347else
6348 if test -n "$ac_ct_STRIP"; then
6349 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6350else
6351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6352for as_dir in $PATH
6353do
6354 IFS=$as_save_IFS
6355 test -z "$as_dir" && as_dir=.
6356 for ac_exec_ext in '' $ac_executable_extensions; do
6357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6358 ac_cv_prog_ac_ct_STRIP="strip"
6359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6360 break 2
6361 fi
6362done
6363 done
6364IFS=$as_save_IFS
6365
6366fi
6367fi
6368ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6369if test -n "$ac_ct_STRIP"; then
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6371$as_echo "$ac_ct_STRIP" >&6; }
6372else
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6374$as_echo "no" >&6; }
6375fi
6376
6377 if test "x$ac_ct_STRIP" = x; then
6378 STRIP=":"
6379 else
6380 case $cross_compiling:$ac_tool_warned in
6381yes:)
6382{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6383$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6384ac_tool_warned=yes ;;
6385esac
6386 STRIP=$ac_ct_STRIP
6387 fi
6388else
6389 STRIP="$ac_cv_prog_STRIP"
6390fi
6391
6392test -z "$STRIP" && STRIP=:
6393
6394
6395
6396
6397
6398
6399if test -n "$ac_tool_prefix"; then
6400 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6401set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6403$as_echo_n "checking for $ac_word... " >&6; }
6404if ${ac_cv_prog_RANLIB+:} false; then :
6405 $as_echo_n "(cached) " >&6
6406else
6407 if test -n "$RANLIB"; then
6408 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6409else
6410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6411for as_dir in $PATH
6412do
6413 IFS=$as_save_IFS
6414 test -z "$as_dir" && as_dir=.
6415 for ac_exec_ext in '' $ac_executable_extensions; do
6416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6417 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6419 break 2
6420 fi
6421done
6422 done
6423IFS=$as_save_IFS
6424
6425fi
6426fi
6427RANLIB=$ac_cv_prog_RANLIB
6428if test -n "$RANLIB"; then
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6430$as_echo "$RANLIB" >&6; }
6431else
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6433$as_echo "no" >&6; }
6434fi
6435
6436
6437fi
6438if test -z "$ac_cv_prog_RANLIB"; then
6439 ac_ct_RANLIB=$RANLIB
6440 # Extract the first word of "ranlib", so it can be a program name with args.
6441set dummy ranlib; ac_word=$2
6442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6443$as_echo_n "checking for $ac_word... " >&6; }
6444if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6445 $as_echo_n "(cached) " >&6
6446else
6447 if test -n "$ac_ct_RANLIB"; then
6448 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6449else
6450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6451for as_dir in $PATH
6452do
6453 IFS=$as_save_IFS
6454 test -z "$as_dir" && as_dir=.
6455 for ac_exec_ext in '' $ac_executable_extensions; do
6456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6457 ac_cv_prog_ac_ct_RANLIB="ranlib"
6458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6459 break 2
6460 fi
6461done
6462 done
6463IFS=$as_save_IFS
6464
6465fi
6466fi
6467ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6468if test -n "$ac_ct_RANLIB"; then
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6470$as_echo "$ac_ct_RANLIB" >&6; }
6471else
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6473$as_echo "no" >&6; }
6474fi
6475
6476 if test "x$ac_ct_RANLIB" = x; then
6477 RANLIB=":"
6478 else
6479 case $cross_compiling:$ac_tool_warned in
6480yes:)
6481{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6482$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6483ac_tool_warned=yes ;;
6484esac
6485 RANLIB=$ac_ct_RANLIB
6486 fi
6487else
6488 RANLIB="$ac_cv_prog_RANLIB"
6489fi
6490
6491test -z "$RANLIB" && RANLIB=:
6492if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6493 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6494 RANLIB="$RANLIB $plugin_option"
6495 fi
6496fi
6497
6498
6499
6500
6501
6502
6503# Determine commands to create old-style static archives.
6504old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6505old_postinstall_cmds='chmod 644 $oldlib'
6506old_postuninstall_cmds=
6507
6508if test -n "$RANLIB"; then
6509 case $host_os in
6510 openbsd*)
6511 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6512 ;;
6513 *)
6514 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6515 ;;
6516 esac
6517 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6518fi
6519
6520case $host_os in
6521 darwin*)
6522 lock_old_archive_extraction=yes ;;
6523 *)
6524 lock_old_archive_extraction=no ;;
6525esac
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547for ac_prog in gawk mawk nawk awk
6548do
6549 # Extract the first word of "$ac_prog", so it can be a program name with args.
6550set dummy $ac_prog; ac_word=$2
6551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6552$as_echo_n "checking for $ac_word... " >&6; }
6553if ${ac_cv_prog_AWK+:} false; then :
6554 $as_echo_n "(cached) " >&6
6555else
6556 if test -n "$AWK"; then
6557 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6558else
6559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6560for as_dir in $PATH
6561do
6562 IFS=$as_save_IFS
6563 test -z "$as_dir" && as_dir=.
6564 for ac_exec_ext in '' $ac_executable_extensions; do
6565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6566 ac_cv_prog_AWK="$ac_prog"
6567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6568 break 2
6569 fi
6570done
6571 done
6572IFS=$as_save_IFS
6573
6574fi
6575fi
6576AWK=$ac_cv_prog_AWK
6577if test -n "$AWK"; then
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6579$as_echo "$AWK" >&6; }
6580else
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6582$as_echo "no" >&6; }
6583fi
6584
6585
6586 test -n "$AWK" && break
6587done
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607# If no C compiler was specified, use CC.
6608LTCC=${LTCC-"$CC"}
6609
6610# If no C compiler flags were specified, use CFLAGS.
6611LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6612
6613# Allow CC to be a program name with arguments.
6614compiler=$CC
6615
6616
6617# Check for command to grab the raw symbol name followed by C symbol from nm.
6618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6619$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6620if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6621 $as_echo_n "(cached) " >&6
6622else
6623
6624# These are sane defaults that work on at least a few old systems.
6625# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6626
6627# Character class describing NM global symbol codes.
6628symcode='[BCDEGRST]'
6629
6630# Regexp to match symbols that can be accessed directly from C.
6631sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6632
6633# Define system-specific variables.
6634case $host_os in
6635aix*)
6636 symcode='[BCDT]'
6637 ;;
6638cygwin* | mingw* | pw32* | cegcc*)
6639 symcode='[ABCDGISTW]'
6640 ;;
6641hpux*)
6642 if test "$host_cpu" = ia64; then
6643 symcode='[ABCDEGRST]'
6644 fi
6645 ;;
6646irix* | nonstopux*)
6647 symcode='[BCDEGRST]'
6648 ;;
6649osf*)
6650 symcode='[BCDEGQRST]'
6651 ;;
6652solaris*)
6653 symcode='[BDRT]'
6654 ;;
6655sco3.2v5*)
6656 symcode='[DT]'
6657 ;;
6658sysv4.2uw2*)
6659 symcode='[DT]'
6660 ;;
6661sysv5* | sco5v6* | unixware* | OpenUNIX*)
6662 symcode='[ABDT]'
6663 ;;
6664sysv4)
6665 symcode='[DFNSTU]'
6666 ;;
6667esac
6668
6669# If we're using GNU nm, then use its standard symbol codes.
6670case `$NM -V 2>&1` in
6671*GNU* | *'with BFD'*)
6672 symcode='[ABCDGIRSTW]' ;;
6673esac
6674
6675# Transform an extracted symbol line into a proper C declaration.
6676# Some systems (esp. on ia64) link data and code symbols differently,
6677# so use this general approach.
6678lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6679
6680# Transform an extracted symbol line into symbol name and symbol address
6681lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6682lt_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'"
6683
6684# Handle CRLF in mingw tool chain
6685opt_cr=
6686case $build_os in
6687mingw*)
6688 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6689 ;;
6690esac
6691
6692# Try without a prefix underscore, then with it.
6693for ac_symprfx in "" "_"; do
6694
6695 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6696 symxfrm="\\1 $ac_symprfx\\2 \\2"
6697
6698 # Write the raw and C identifiers.
6699 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6700 # Fake it for dumpbin and say T for any non-static function
6701 # and D for any global variable.
6702 # Also find C++ and __fastcall symbols from MSVC++,
6703 # which start with @ or ?.
6704 lt_cv_sys_global_symbol_pipe="$AWK '"\
6705" {last_section=section; section=\$ 3};"\
6706" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6707" \$ 0!~/External *\|/{next};"\
6708" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6709" {if(hide[section]) next};"\
6710" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6711" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6712" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6713" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6714" ' prfx=^$ac_symprfx"
6715 else
6716 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6717 fi
6718
6719 # Check to see that the pipe works correctly.
6720 pipe_works=no
6721
6722 rm -f conftest*
6723 cat > conftest.$ac_ext <<_LT_EOF
6724#ifdef __cplusplus
6725extern "C" {
6726#endif
6727char nm_test_var;
6728void nm_test_func(void);
6729void nm_test_func(void){}
6730#ifdef __cplusplus
6731}
6732#endif
6733int main(){nm_test_var='a';nm_test_func();return(0);}
6734_LT_EOF
6735
6736 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6737 (eval $ac_compile) 2>&5
6738 ac_status=$?
6739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6740 test $ac_status = 0; }; then
6741 # Now try to grab the symbols.
6742 nlist=conftest.nm
6743 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6744 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6745 ac_status=$?
6746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6747 test $ac_status = 0; } && test -s "$nlist"; then
6748 # Try sorting and uniquifying the output.
6749 if sort "$nlist" | uniq > "$nlist"T; then
6750 mv -f "$nlist"T "$nlist"
6751 else
6752 rm -f "$nlist"T
6753 fi
6754
6755 # Make sure that we snagged all the symbols we need.
6756 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6757 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6758 cat <<_LT_EOF > conftest.$ac_ext
6759#ifdef __cplusplus
6760extern "C" {
6761#endif
6762
6763_LT_EOF
6764 # Now generate the symbol file.
6765 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6766
6767 cat <<_LT_EOF >> conftest.$ac_ext
6768
6769/* The mapping between symbol names and symbols. */
6770const struct {
6771 const char *name;
6772 void *address;
6773}
6774lt__PROGRAM__LTX_preloaded_symbols[] =
6775{
6776 { "@PROGRAM@", (void *) 0 },
6777_LT_EOF
6778 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6779 cat <<\_LT_EOF >> conftest.$ac_ext
6780 {0, (void *) 0}
6781};
6782
6783/* This works around a problem in FreeBSD linker */
6784#ifdef FREEBSD_WORKAROUND
6785static const void *lt_preloaded_setup() {
6786 return lt__PROGRAM__LTX_preloaded_symbols;
6787}
6788#endif
6789
6790#ifdef __cplusplus
6791}
6792#endif
6793_LT_EOF
6794 # Now try linking the two files.
6795 mv conftest.$ac_objext conftstm.$ac_objext
6796 lt_save_LIBS="$LIBS"
6797 lt_save_CFLAGS="$CFLAGS"
6798 LIBS="conftstm.$ac_objext"
6799 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6800 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6801 (eval $ac_link) 2>&5
6802 ac_status=$?
6803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6804 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6805 pipe_works=yes
6806 fi
6807 LIBS="$lt_save_LIBS"
6808 CFLAGS="$lt_save_CFLAGS"
6809 else
6810 echo "cannot find nm_test_func in $nlist" >&5
6811 fi
6812 else
6813 echo "cannot find nm_test_var in $nlist" >&5
6814 fi
6815 else
6816 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6817 fi
6818 else
6819 echo "$progname: failed program was:" >&5
6820 cat conftest.$ac_ext >&5
6821 fi
6822 rm -rf conftest* conftst*
6823
6824 # Do not use the global_symbol_pipe unless it works.
6825 if test "$pipe_works" = yes; then
6826 break
6827 else
6828 lt_cv_sys_global_symbol_pipe=
6829 fi
6830done
6831
6832fi
6833
6834if test -z "$lt_cv_sys_global_symbol_pipe"; then
6835 lt_cv_sys_global_symbol_to_cdecl=
6836fi
6837if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6839$as_echo "failed" >&6; }
6840else
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6842$as_echo "ok" >&6; }
6843fi
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866# Check whether --enable-libtool-lock was given.
6867if test "${enable_libtool_lock+set}" = set; then :
6868 enableval=$enable_libtool_lock;
6869fi
6870
6871test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6872
6873# Some flags need to be propagated to the compiler or linker for good
6874# libtool support.
6875case $host in
6876ia64-*-hpux*)
6877 # Find out which ABI we are using.
6878 echo 'int i;' > conftest.$ac_ext
6879 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6880 (eval $ac_compile) 2>&5
6881 ac_status=$?
6882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6883 test $ac_status = 0; }; then
6884 case `/usr/bin/file conftest.$ac_objext` in
6885 *ELF-32*)
6886 HPUX_IA64_MODE="32"
6887 ;;
6888 *ELF-64*)
6889 HPUX_IA64_MODE="64"
6890 ;;
6891 esac
6892 fi
6893 rm -rf conftest*
6894 ;;
6895*-*-irix6*)
6896 # Find out which ABI we are using.
6897 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6898 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6899 (eval $ac_compile) 2>&5
6900 ac_status=$?
6901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6902 test $ac_status = 0; }; then
6903 if test "$lt_cv_prog_gnu_ld" = yes; then
6904 case `/usr/bin/file conftest.$ac_objext` in
6905 *32-bit*)
6906 LD="${LD-ld} -melf32bsmip"
6907 ;;
6908 *N32*)
6909 LD="${LD-ld} -melf32bmipn32"
6910 ;;
6911 *64-bit*)
6912 LD="${LD-ld} -melf64bmip"
6913 ;;
6914 esac
6915 else
6916 case `/usr/bin/file conftest.$ac_objext` in
6917 *32-bit*)
6918 LD="${LD-ld} -32"
6919 ;;
6920 *N32*)
6921 LD="${LD-ld} -n32"
6922 ;;
6923 *64-bit*)
6924 LD="${LD-ld} -64"
6925 ;;
6926 esac
6927 fi
6928 fi
6929 rm -rf conftest*
6930 ;;
6931
6932x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6933s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6934 # Find out which ABI we are using.
6935 echo 'int i;' > conftest.$ac_ext
6936 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6937 (eval $ac_compile) 2>&5
6938 ac_status=$?
6939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6940 test $ac_status = 0; }; then
6941 case `/usr/bin/file conftest.o` in
6942 *32-bit*)
6943 case $host in
6944 x86_64-*kfreebsd*-gnu)
6945 LD="${LD-ld} -m elf_i386_fbsd"
6946 ;;
6947 x86_64-*linux*)
6948 case `/usr/bin/file conftest.o` in
6949 *x86-64*)
6950 LD="${LD-ld} -m elf32_x86_64"
6951 ;;
6952 *)
6953 LD="${LD-ld} -m elf_i386"
6954 ;;
6955 esac
6956 ;;
6957 powerpc64le-*linux*)
6958 LD="${LD-ld} -m elf32lppclinux"
6959 ;;
6960 powerpc64-*linux*)
6961 LD="${LD-ld} -m elf32ppclinux"
6962 ;;
6963 s390x-*linux*)
6964 LD="${LD-ld} -m elf_s390"
6965 ;;
6966 sparc64-*linux*)
6967 LD="${LD-ld} -m elf32_sparc"
6968 ;;
6969 esac
6970 ;;
6971 *64-bit*)
6972 case $host in
6973 x86_64-*kfreebsd*-gnu)
6974 LD="${LD-ld} -m elf_x86_64_fbsd"
6975 ;;
6976 x86_64-*linux*)
6977 LD="${LD-ld} -m elf_x86_64"
6978 ;;
6979 powerpcle-*linux*)
6980 LD="${LD-ld} -m elf64lppc"
6981 ;;
6982 powerpc-*linux*)
6983 LD="${LD-ld} -m elf64ppc"
6984 ;;
6985 s390*-*linux*|s390*-*tpf*)
6986 LD="${LD-ld} -m elf64_s390"
6987 ;;
6988 sparc*-*linux*)
6989 LD="${LD-ld} -m elf64_sparc"
6990 ;;
6991 esac
6992 ;;
6993 esac
6994 fi
6995 rm -rf conftest*
6996 ;;
6997
6998*-*-sco3.2v5*)
6999 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7000 SAVE_CFLAGS="$CFLAGS"
7001 CFLAGS="$CFLAGS -belf"
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7003$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7004if ${lt_cv_cc_needs_belf+:} false; then :
7005 $as_echo_n "(cached) " >&6
7006else
7007 ac_ext=c
7008ac_cpp='$CPP $CPPFLAGS'
7009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7011ac_compiler_gnu=$ac_cv_c_compiler_gnu
7012
7013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7014/* end confdefs.h. */
7015
7016int
7017main ()
7018{
7019
7020 ;
7021 return 0;
7022}
7023_ACEOF
7024if ac_fn_c_try_link "$LINENO"; then :
7025 lt_cv_cc_needs_belf=yes
7026else
7027 lt_cv_cc_needs_belf=no
7028fi
7029rm -f core conftest.err conftest.$ac_objext \
7030 conftest$ac_exeext conftest.$ac_ext
7031 ac_ext=c
7032ac_cpp='$CPP $CPPFLAGS'
7033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7035ac_compiler_gnu=$ac_cv_c_compiler_gnu
7036
7037fi
7038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7039$as_echo "$lt_cv_cc_needs_belf" >&6; }
7040 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7041 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7042 CFLAGS="$SAVE_CFLAGS"
7043 fi
7044 ;;
7045sparc*-*solaris*)
7046 # Find out which ABI we are using.
7047 echo 'int i;' > conftest.$ac_ext
7048 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7049 (eval $ac_compile) 2>&5
7050 ac_status=$?
7051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7052 test $ac_status = 0; }; then
7053 case `/usr/bin/file conftest.o` in
7054 *64-bit*)
7055 case $lt_cv_prog_gnu_ld in
7056 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7057 *)
7058 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7059 LD="${LD-ld} -64"
7060 fi
7061 ;;
7062 esac
7063 ;;
7064 esac
7065 fi
7066 rm -rf conftest*
7067 ;;
7068esac
7069
7070need_locks="$enable_libtool_lock"
7071
7072
7073 case $host_os in
7074 rhapsody* | darwin*)
7075 if test -n "$ac_tool_prefix"; then
7076 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7077set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7079$as_echo_n "checking for $ac_word... " >&6; }
7080if ${ac_cv_prog_DSYMUTIL+:} false; then :
7081 $as_echo_n "(cached) " >&6
7082else
7083 if test -n "$DSYMUTIL"; then
7084 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7085else
7086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7087for as_dir in $PATH
7088do
7089 IFS=$as_save_IFS
7090 test -z "$as_dir" && as_dir=.
7091 for ac_exec_ext in '' $ac_executable_extensions; do
7092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7093 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7095 break 2
7096 fi
7097done
7098 done
7099IFS=$as_save_IFS
7100
7101fi
7102fi
7103DSYMUTIL=$ac_cv_prog_DSYMUTIL
7104if test -n "$DSYMUTIL"; then
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7106$as_echo "$DSYMUTIL" >&6; }
7107else
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7109$as_echo "no" >&6; }
7110fi
7111
7112
7113fi
7114if test -z "$ac_cv_prog_DSYMUTIL"; then
7115 ac_ct_DSYMUTIL=$DSYMUTIL
7116 # Extract the first word of "dsymutil", so it can be a program name with args.
7117set dummy dsymutil; ac_word=$2
7118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7119$as_echo_n "checking for $ac_word... " >&6; }
7120if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7121 $as_echo_n "(cached) " >&6
7122else
7123 if test -n "$ac_ct_DSYMUTIL"; then
7124 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7125else
7126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127for as_dir in $PATH
7128do
7129 IFS=$as_save_IFS
7130 test -z "$as_dir" && as_dir=.
7131 for ac_exec_ext in '' $ac_executable_extensions; do
7132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7133 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7135 break 2
7136 fi
7137done
7138 done
7139IFS=$as_save_IFS
7140
7141fi
7142fi
7143ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7144if test -n "$ac_ct_DSYMUTIL"; then
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7146$as_echo "$ac_ct_DSYMUTIL" >&6; }
7147else
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7149$as_echo "no" >&6; }
7150fi
7151
7152 if test "x$ac_ct_DSYMUTIL" = x; then
7153 DSYMUTIL=":"
7154 else
7155 case $cross_compiling:$ac_tool_warned in
7156yes:)
7157{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7158$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7159ac_tool_warned=yes ;;
7160esac
7161 DSYMUTIL=$ac_ct_DSYMUTIL
7162 fi
7163else
7164 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7165fi
7166
7167 if test -n "$ac_tool_prefix"; then
7168 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7169set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7171$as_echo_n "checking for $ac_word... " >&6; }
7172if ${ac_cv_prog_NMEDIT+:} false; then :
7173 $as_echo_n "(cached) " >&6
7174else
7175 if test -n "$NMEDIT"; then
7176 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7177else
7178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7179for as_dir in $PATH
7180do
7181 IFS=$as_save_IFS
7182 test -z "$as_dir" && as_dir=.
7183 for ac_exec_ext in '' $ac_executable_extensions; do
7184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7185 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7187 break 2
7188 fi
7189done
7190 done
7191IFS=$as_save_IFS
7192
7193fi
7194fi
7195NMEDIT=$ac_cv_prog_NMEDIT
7196if test -n "$NMEDIT"; then
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7198$as_echo "$NMEDIT" >&6; }
7199else
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7201$as_echo "no" >&6; }
7202fi
7203
7204
7205fi
7206if test -z "$ac_cv_prog_NMEDIT"; then
7207 ac_ct_NMEDIT=$NMEDIT
7208 # Extract the first word of "nmedit", so it can be a program name with args.
7209set dummy nmedit; ac_word=$2
7210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7211$as_echo_n "checking for $ac_word... " >&6; }
7212if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7213 $as_echo_n "(cached) " >&6
7214else
7215 if test -n "$ac_ct_NMEDIT"; then
7216 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7217else
7218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219for as_dir in $PATH
7220do
7221 IFS=$as_save_IFS
7222 test -z "$as_dir" && as_dir=.
7223 for ac_exec_ext in '' $ac_executable_extensions; do
7224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7225 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7227 break 2
7228 fi
7229done
7230 done
7231IFS=$as_save_IFS
7232
7233fi
7234fi
7235ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7236if test -n "$ac_ct_NMEDIT"; then
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7238$as_echo "$ac_ct_NMEDIT" >&6; }
7239else
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7241$as_echo "no" >&6; }
7242fi
7243
7244 if test "x$ac_ct_NMEDIT" = x; then
7245 NMEDIT=":"
7246 else
7247 case $cross_compiling:$ac_tool_warned in
7248yes:)
7249{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7250$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7251ac_tool_warned=yes ;;
7252esac
7253 NMEDIT=$ac_ct_NMEDIT
7254 fi
7255else
7256 NMEDIT="$ac_cv_prog_NMEDIT"
7257fi
7258
7259 if test -n "$ac_tool_prefix"; then
7260 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7261set dummy ${ac_tool_prefix}lipo; ac_word=$2
7262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7263$as_echo_n "checking for $ac_word... " >&6; }
7264if ${ac_cv_prog_LIPO+:} false; then :
7265 $as_echo_n "(cached) " >&6
7266else
7267 if test -n "$LIPO"; then
7268 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7269else
7270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271for as_dir in $PATH
7272do
7273 IFS=$as_save_IFS
7274 test -z "$as_dir" && as_dir=.
7275 for ac_exec_ext in '' $ac_executable_extensions; do
7276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7277 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7279 break 2
7280 fi
7281done
7282 done
7283IFS=$as_save_IFS
7284
7285fi
7286fi
7287LIPO=$ac_cv_prog_LIPO
7288if test -n "$LIPO"; then
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7290$as_echo "$LIPO" >&6; }
7291else
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7293$as_echo "no" >&6; }
7294fi
7295
7296
7297fi
7298if test -z "$ac_cv_prog_LIPO"; then
7299 ac_ct_LIPO=$LIPO
7300 # Extract the first word of "lipo", so it can be a program name with args.
7301set dummy lipo; ac_word=$2
7302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7303$as_echo_n "checking for $ac_word... " >&6; }
7304if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7305 $as_echo_n "(cached) " >&6
7306else
7307 if test -n "$ac_ct_LIPO"; then
7308 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7309else
7310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311for as_dir in $PATH
7312do
7313 IFS=$as_save_IFS
7314 test -z "$as_dir" && as_dir=.
7315 for ac_exec_ext in '' $ac_executable_extensions; do
7316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7317 ac_cv_prog_ac_ct_LIPO="lipo"
7318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7319 break 2
7320 fi
7321done
7322 done
7323IFS=$as_save_IFS
7324
7325fi
7326fi
7327ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7328if test -n "$ac_ct_LIPO"; then
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7330$as_echo "$ac_ct_LIPO" >&6; }
7331else
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7333$as_echo "no" >&6; }
7334fi
7335
7336 if test "x$ac_ct_LIPO" = x; then
7337 LIPO=":"
7338 else
7339 case $cross_compiling:$ac_tool_warned in
7340yes:)
7341{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7342$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7343ac_tool_warned=yes ;;
7344esac
7345 LIPO=$ac_ct_LIPO
7346 fi
7347else
7348 LIPO="$ac_cv_prog_LIPO"
7349fi
7350
7351 if test -n "$ac_tool_prefix"; then
7352 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7353set dummy ${ac_tool_prefix}otool; ac_word=$2
7354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7355$as_echo_n "checking for $ac_word... " >&6; }
7356if ${ac_cv_prog_OTOOL+:} false; then :
7357 $as_echo_n "(cached) " >&6
7358else
7359 if test -n "$OTOOL"; then
7360 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7361else
7362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363for as_dir in $PATH
7364do
7365 IFS=$as_save_IFS
7366 test -z "$as_dir" && as_dir=.
7367 for ac_exec_ext in '' $ac_executable_extensions; do
7368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7369 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7371 break 2
7372 fi
7373done
7374 done
7375IFS=$as_save_IFS
7376
7377fi
7378fi
7379OTOOL=$ac_cv_prog_OTOOL
7380if test -n "$OTOOL"; then
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7382$as_echo "$OTOOL" >&6; }
7383else
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7385$as_echo "no" >&6; }
7386fi
7387
7388
7389fi
7390if test -z "$ac_cv_prog_OTOOL"; then
7391 ac_ct_OTOOL=$OTOOL
7392 # Extract the first word of "otool", so it can be a program name with args.
7393set dummy otool; ac_word=$2
7394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7395$as_echo_n "checking for $ac_word... " >&6; }
7396if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7397 $as_echo_n "(cached) " >&6
7398else
7399 if test -n "$ac_ct_OTOOL"; then
7400 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7401else
7402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403for as_dir in $PATH
7404do
7405 IFS=$as_save_IFS
7406 test -z "$as_dir" && as_dir=.
7407 for ac_exec_ext in '' $ac_executable_extensions; do
7408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7409 ac_cv_prog_ac_ct_OTOOL="otool"
7410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7411 break 2
7412 fi
7413done
7414 done
7415IFS=$as_save_IFS
7416
7417fi
7418fi
7419ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7420if test -n "$ac_ct_OTOOL"; then
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7422$as_echo "$ac_ct_OTOOL" >&6; }
7423else
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7425$as_echo "no" >&6; }
7426fi
7427
7428 if test "x$ac_ct_OTOOL" = x; then
7429 OTOOL=":"
7430 else
7431 case $cross_compiling:$ac_tool_warned in
7432yes:)
7433{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7434$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7435ac_tool_warned=yes ;;
7436esac
7437 OTOOL=$ac_ct_OTOOL
7438 fi
7439else
7440 OTOOL="$ac_cv_prog_OTOOL"
7441fi
7442
7443 if test -n "$ac_tool_prefix"; then
7444 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7445set dummy ${ac_tool_prefix}otool64; ac_word=$2
7446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7447$as_echo_n "checking for $ac_word... " >&6; }
7448if ${ac_cv_prog_OTOOL64+:} false; then :
7449 $as_echo_n "(cached) " >&6
7450else
7451 if test -n "$OTOOL64"; then
7452 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7453else
7454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7455for as_dir in $PATH
7456do
7457 IFS=$as_save_IFS
7458 test -z "$as_dir" && as_dir=.
7459 for ac_exec_ext in '' $ac_executable_extensions; do
7460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7461 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7463 break 2
7464 fi
7465done
7466 done
7467IFS=$as_save_IFS
7468
7469fi
7470fi
7471OTOOL64=$ac_cv_prog_OTOOL64
7472if test -n "$OTOOL64"; then
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7474$as_echo "$OTOOL64" >&6; }
7475else
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7477$as_echo "no" >&6; }
7478fi
7479
7480
7481fi
7482if test -z "$ac_cv_prog_OTOOL64"; then
7483 ac_ct_OTOOL64=$OTOOL64
7484 # Extract the first word of "otool64", so it can be a program name with args.
7485set dummy otool64; ac_word=$2
7486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7487$as_echo_n "checking for $ac_word... " >&6; }
7488if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7489 $as_echo_n "(cached) " >&6
7490else
7491 if test -n "$ac_ct_OTOOL64"; then
7492 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7493else
7494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7495for as_dir in $PATH
7496do
7497 IFS=$as_save_IFS
7498 test -z "$as_dir" && as_dir=.
7499 for ac_exec_ext in '' $ac_executable_extensions; do
7500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7501 ac_cv_prog_ac_ct_OTOOL64="otool64"
7502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7503 break 2
7504 fi
7505done
7506 done
7507IFS=$as_save_IFS
7508
7509fi
7510fi
7511ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7512if test -n "$ac_ct_OTOOL64"; then
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7514$as_echo "$ac_ct_OTOOL64" >&6; }
7515else
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7517$as_echo "no" >&6; }
7518fi
7519
7520 if test "x$ac_ct_OTOOL64" = x; then
7521 OTOOL64=":"
7522 else
7523 case $cross_compiling:$ac_tool_warned in
7524yes:)
7525{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7526$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7527ac_tool_warned=yes ;;
7528esac
7529 OTOOL64=$ac_ct_OTOOL64
7530 fi
7531else
7532 OTOOL64="$ac_cv_prog_OTOOL64"
7533fi
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7562$as_echo_n "checking for -single_module linker flag... " >&6; }
7563if ${lt_cv_apple_cc_single_mod+:} false; then :
7564 $as_echo_n "(cached) " >&6
7565else
7566 lt_cv_apple_cc_single_mod=no
7567 if test -z "${LT_MULTI_MODULE}"; then
7568 # By default we will add the -single_module flag. You can override
7569 # by either setting the environment variable LT_MULTI_MODULE
7570 # non-empty at configure time, or by adding -multi_module to the
7571 # link flags.
7572 rm -rf libconftest.dylib*
7573 echo "int foo(void){return 1;}" > conftest.c
7574 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7575-dynamiclib -Wl,-single_module conftest.c" >&5
7576 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7577 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7578 _lt_result=$?
7579 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7580 lt_cv_apple_cc_single_mod=yes
7581 else
7582 cat conftest.err >&5
7583 fi
7584 rm -rf libconftest.dylib*
7585 rm -f conftest.*
7586 fi
7587fi
7588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7589$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7591$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7592if ${lt_cv_ld_exported_symbols_list+:} false; then :
7593 $as_echo_n "(cached) " >&6
7594else
7595 lt_cv_ld_exported_symbols_list=no
7596 save_LDFLAGS=$LDFLAGS
7597 echo "_main" > conftest.sym
7598 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7600/* end confdefs.h. */
7601
7602int
7603main ()
7604{
7605
7606 ;
7607 return 0;
7608}
7609_ACEOF
7610if ac_fn_c_try_link "$LINENO"; then :
7611 lt_cv_ld_exported_symbols_list=yes
7612else
7613 lt_cv_ld_exported_symbols_list=no
7614fi
7615rm -f core conftest.err conftest.$ac_objext \
7616 conftest$ac_exeext conftest.$ac_ext
7617 LDFLAGS="$save_LDFLAGS"
7618
7619fi
7620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7621$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7623$as_echo_n "checking for -force_load linker flag... " >&6; }
7624if ${lt_cv_ld_force_load+:} false; then :
7625 $as_echo_n "(cached) " >&6
7626else
7627 lt_cv_ld_force_load=no
7628 cat > conftest.c << _LT_EOF
7629int forced_loaded() { return 2;}
7630_LT_EOF
7631 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7632 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7633 echo "$AR cru libconftest.a conftest.o" >&5
7634 $AR cru libconftest.a conftest.o 2>&5
7635 cat > conftest.c << _LT_EOF
7636int main() { return 0;}
7637_LT_EOF
7638 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7639 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7640 _lt_result=$?
7641 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7642 lt_cv_ld_force_load=yes
7643 else
7644 cat conftest.err >&5
7645 fi
7646 rm -f conftest.err libconftest.a conftest conftest.c
7647 rm -rf conftest.dSYM
7648
7649fi
7650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7651$as_echo "$lt_cv_ld_force_load" >&6; }
7652 case $host_os in
7653 rhapsody* | darwin1.[012])
7654 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7655 darwin1.*)
7656 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7657 darwin*) # darwin 5.x on
7658 # if running on 10.5 or later, the deployment target defaults
7659 # to the OS version, if on x86, and 10.4, the deployment
7660 # target defaults to 10.4. Don't you love it?
7661 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7662 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7663 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7664 10.[012][,.]*)
7665 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7666 10.*)
7667 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7668 esac
7669 ;;
7670 esac
7671 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7672 _lt_dar_single_mod='$single_module'
7673 fi
7674 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7675 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7676 else
7677 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7678 fi
7679 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7680 _lt_dsymutil='~$DSYMUTIL $lib || :'
7681 else
7682 _lt_dsymutil=
7683 fi
7684 ;;
7685 esac
7686
7687for ac_header in dlfcn.h
7688do :
7689 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7690"
7691if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7692 cat >>confdefs.h <<_ACEOF
7693#define HAVE_DLFCN_H 1
7694_ACEOF
7695
7696fi
7697
7698done
7699
7700
7701ac_header_dirent=no
7702for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7703 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
7705$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
7706if eval \${$as_ac_Header+:} false; then :
7707 $as_echo_n "(cached) " >&6
7708else
7709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7710/* end confdefs.h. */
7711#include <sys/types.h>
7712#include <$ac_hdr>
7713
7714int
7715main ()
7716{
7717if ((DIR *) 0)
7718return 0;
7719 ;
7720 return 0;
7721}
7722_ACEOF
7723if ac_fn_c_try_compile "$LINENO"; then :
7724 eval "$as_ac_Header=yes"
7725else
7726 eval "$as_ac_Header=no"
7727fi
7728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7729fi
7730eval ac_res=\$$as_ac_Header
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7732$as_echo "$ac_res" >&6; }
7733if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7734 cat >>confdefs.h <<_ACEOF
7735#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7736_ACEOF
7737
7738ac_header_dirent=$ac_hdr; break
7739fi
7740
7741done
7742# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7743if test $ac_header_dirent = dirent.h; then
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7745$as_echo_n "checking for library containing opendir... " >&6; }
7746if ${ac_cv_search_opendir+:} false; then :
7747 $as_echo_n "(cached) " >&6
7748else
7749 ac_func_search_save_LIBS=$LIBS
7750cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7751/* end confdefs.h. */
7752
7753/* Override any GCC internal prototype to avoid an error.
7754 Use char because int might match the return type of a GCC
7755 builtin and then its argument prototype would still apply. */
7756#ifdef __cplusplus
7757extern "C"
7758#endif
7759char opendir ();
7760int
7761main ()
7762{
7763return opendir ();
7764 ;
7765 return 0;
7766}
7767_ACEOF
7768for ac_lib in '' dir; do
7769 if test -z "$ac_lib"; then
7770 ac_res="none required"
7771 else
7772 ac_res=-l$ac_lib
7773 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7774 fi
7775 if ac_fn_c_try_link "$LINENO"; then :
7776 ac_cv_search_opendir=$ac_res
7777fi
7778rm -f core conftest.err conftest.$ac_objext \
7779 conftest$ac_exeext
7780 if ${ac_cv_search_opendir+:} false; then :
7781 break
7782fi
7783done
7784if ${ac_cv_search_opendir+:} false; then :
7785
7786else
7787 ac_cv_search_opendir=no
7788fi
7789rm conftest.$ac_ext
7790LIBS=$ac_func_search_save_LIBS
7791fi
7792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7793$as_echo "$ac_cv_search_opendir" >&6; }
7794ac_res=$ac_cv_search_opendir
7795if test "$ac_res" != no; then :
7796 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7797
7798fi
7799
7800else
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7802$as_echo_n "checking for library containing opendir... " >&6; }
7803if ${ac_cv_search_opendir+:} false; then :
7804 $as_echo_n "(cached) " >&6
7805else
7806 ac_func_search_save_LIBS=$LIBS
7807cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7808/* end confdefs.h. */
7809
7810/* Override any GCC internal prototype to avoid an error.
7811 Use char because int might match the return type of a GCC
7812 builtin and then its argument prototype would still apply. */
7813#ifdef __cplusplus
7814extern "C"
7815#endif
7816char opendir ();
7817int
7818main ()
7819{
7820return opendir ();
7821 ;
7822 return 0;
7823}
7824_ACEOF
7825for ac_lib in '' x; do
7826 if test -z "$ac_lib"; then
7827 ac_res="none required"
7828 else
7829 ac_res=-l$ac_lib
7830 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7831 fi
7832 if ac_fn_c_try_link "$LINENO"; then :
7833 ac_cv_search_opendir=$ac_res
7834fi
7835rm -f core conftest.err conftest.$ac_objext \
7836 conftest$ac_exeext
7837 if ${ac_cv_search_opendir+:} false; then :
7838 break
7839fi
7840done
7841if ${ac_cv_search_opendir+:} false; then :
7842
7843else
7844 ac_cv_search_opendir=no
7845fi
7846rm conftest.$ac_ext
7847LIBS=$ac_func_search_save_LIBS
7848fi
7849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7850$as_echo "$ac_cv_search_opendir" >&6; }
7851ac_res=$ac_cv_search_opendir
7852if test "$ac_res" != no; then :
7853 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7854
7855fi
7856
7857fi
7858
7859
7860
7861
7862ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
7863if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
7864
7865cat >>confdefs.h <<_ACEOF
7866#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
7867_ACEOF
7868
7869
7870$as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
7871
7872fi
7873
7874
7875ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
7876if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
7877
7878cat >>confdefs.h <<_ACEOF
7879#define HAVE_STRUCT_STAT_ST_BLOCKS 1
7880_ACEOF
7881
7882
7883$as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
7884
7885else
7886 case " $LIBOBJS " in
7887 *" fileblocks.$ac_objext "* ) ;;
7888 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
7889 ;;
7890esac
7891
7892fi
7893
7894
7895ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
7896if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
7897
7898cat >>confdefs.h <<_ACEOF
7899#define HAVE_STRUCT_STAT_ST_RDEV 1
7900_ACEOF
7901
7902
7903$as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
7904
7905fi
7906
7907
7908ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
7909#include <$ac_cv_struct_tm>
7910
7911"
7912if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
7913
7914cat >>confdefs.h <<_ACEOF
7915#define HAVE_STRUCT_TM_TM_ZONE 1
7916_ACEOF
7917
7918
7919fi
7920
7921if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7922
7923$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7924
7925else
7926 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7927"
7928if test "x$ac_cv_have_decl_tzname" = xyes; then :
7929 ac_have_decl=1
7930else
7931 ac_have_decl=0
7932fi
7933
7934cat >>confdefs.h <<_ACEOF
7935#define HAVE_DECL_TZNAME $ac_have_decl
7936_ACEOF
7937
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7939$as_echo_n "checking for tzname... " >&6; }
7940if ${ac_cv_var_tzname+:} false; then :
7941 $as_echo_n "(cached) " >&6
7942else
7943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7944/* end confdefs.h. */
7945#include <time.h>
a48ff3ef
MF
7946#if !HAVE_DECL_TZNAME
7947extern char *tzname[];
7948#endif
b5689863
MF
7949
7950int
7951main ()
7952{
7953return tzname[0][0];
7954 ;
7955 return 0;
7956}
7957_ACEOF
7958if ac_fn_c_try_link "$LINENO"; then :
7959 ac_cv_var_tzname=yes
7960else
7961 ac_cv_var_tzname=no
7962fi
7963rm -f core conftest.err conftest.$ac_objext \
7964 conftest$ac_exeext conftest.$ac_ext
7965fi
7966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7967$as_echo "$ac_cv_var_tzname" >&6; }
7968 if test $ac_cv_var_tzname = yes; then
7969
7970$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7971
7972 fi
7973fi
7974
7975
7976ac_fn_c_check_member "$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H
7977#include <sys/types.h>
7978#endif
7979#ifdef HAVE_SYS_STAT_H
7980#include <sys/stat.h>
7981#endif
7982"
7983if test "x$ac_cv_member_struct_stat_st_dev" = xyes; then :
7984
7985cat >>confdefs.h <<_ACEOF
7986#define HAVE_STRUCT_STAT_ST_DEV 1
7987_ACEOF
7988
7989
7990fi
7991ac_fn_c_check_member "$LINENO" "struct stat" "st_ino" "ac_cv_member_struct_stat_st_ino" "#ifdef HAVE_SYS_TYPES_H
7992#include <sys/types.h>
7993#endif
7994#ifdef HAVE_SYS_STAT_H
7995#include <sys/stat.h>
7996#endif
7997"
7998if test "x$ac_cv_member_struct_stat_st_ino" = xyes; then :
7999
8000cat >>confdefs.h <<_ACEOF
8001#define HAVE_STRUCT_STAT_ST_INO 1
8002_ACEOF
8003
8004
8005fi
8006ac_fn_c_check_member "$LINENO" "struct stat" "st_mode" "ac_cv_member_struct_stat_st_mode" "#ifdef HAVE_SYS_TYPES_H
8007#include <sys/types.h>
8008#endif
8009#ifdef HAVE_SYS_STAT_H
8010#include <sys/stat.h>
8011#endif
8012"
8013if test "x$ac_cv_member_struct_stat_st_mode" = xyes; then :
8014
8015cat >>confdefs.h <<_ACEOF
8016#define HAVE_STRUCT_STAT_ST_MODE 1
8017_ACEOF
8018
8019
8020fi
8021ac_fn_c_check_member "$LINENO" "struct stat" "st_nlink" "ac_cv_member_struct_stat_st_nlink" "#ifdef HAVE_SYS_TYPES_H
8022#include <sys/types.h>
8023#endif
8024#ifdef HAVE_SYS_STAT_H
8025#include <sys/stat.h>
8026#endif
8027"
8028if test "x$ac_cv_member_struct_stat_st_nlink" = xyes; then :
8029
8030cat >>confdefs.h <<_ACEOF
8031#define HAVE_STRUCT_STAT_ST_NLINK 1
8032_ACEOF
8033
8034
8035fi
8036ac_fn_c_check_member "$LINENO" "struct stat" "st_uid" "ac_cv_member_struct_stat_st_uid" "#ifdef HAVE_SYS_TYPES_H
8037#include <sys/types.h>
8038#endif
8039#ifdef HAVE_SYS_STAT_H
8040#include <sys/stat.h>
8041#endif
8042"
8043if test "x$ac_cv_member_struct_stat_st_uid" = xyes; then :
8044
8045cat >>confdefs.h <<_ACEOF
8046#define HAVE_STRUCT_STAT_ST_UID 1
8047_ACEOF
8048
8049
8050fi
8051ac_fn_c_check_member "$LINENO" "struct stat" "st_gid" "ac_cv_member_struct_stat_st_gid" "#ifdef HAVE_SYS_TYPES_H
8052#include <sys/types.h>
8053#endif
8054#ifdef HAVE_SYS_STAT_H
8055#include <sys/stat.h>
8056#endif
8057"
8058if test "x$ac_cv_member_struct_stat_st_gid" = xyes; then :
8059
8060cat >>confdefs.h <<_ACEOF
8061#define HAVE_STRUCT_STAT_ST_GID 1
8062_ACEOF
8063
8064
8065fi
8066ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "#ifdef HAVE_SYS_TYPES_H
8067#include <sys/types.h>
8068#endif
8069#ifdef HAVE_SYS_STAT_H
8070#include <sys/stat.h>
8071#endif
8072"
8073if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
8074
8075cat >>confdefs.h <<_ACEOF
8076#define HAVE_STRUCT_STAT_ST_RDEV 1
8077_ACEOF
8078
8079
8080fi
8081ac_fn_c_check_member "$LINENO" "struct stat" "st_size" "ac_cv_member_struct_stat_st_size" "#ifdef HAVE_SYS_TYPES_H
8082#include <sys/types.h>
8083#endif
8084#ifdef HAVE_SYS_STAT_H
8085#include <sys/stat.h>
8086#endif
8087"
8088if test "x$ac_cv_member_struct_stat_st_size" = xyes; then :
8089
8090cat >>confdefs.h <<_ACEOF
8091#define HAVE_STRUCT_STAT_ST_SIZE 1
8092_ACEOF
8093
8094
8095fi
8096ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#ifdef HAVE_SYS_TYPES_H
8097#include <sys/types.h>
8098#endif
8099#ifdef HAVE_SYS_STAT_H
8100#include <sys/stat.h>
8101#endif
8102"
8103if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8104
8105cat >>confdefs.h <<_ACEOF
8106#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8107_ACEOF
8108
8109
8110fi
8111ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#ifdef HAVE_SYS_TYPES_H
8112#include <sys/types.h>
8113#endif
8114#ifdef HAVE_SYS_STAT_H
8115#include <sys/stat.h>
8116#endif
8117"
8118if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8119
8120cat >>confdefs.h <<_ACEOF
8121#define HAVE_STRUCT_STAT_ST_BLOCKS 1
8122_ACEOF
8123
8124
8125fi
8126ac_fn_c_check_member "$LINENO" "struct stat" "st_atime" "ac_cv_member_struct_stat_st_atime" "#ifdef HAVE_SYS_TYPES_H
8127#include <sys/types.h>
8128#endif
8129#ifdef HAVE_SYS_STAT_H
8130#include <sys/stat.h>
8131#endif
8132"
8133if test "x$ac_cv_member_struct_stat_st_atime" = xyes; then :
8134
8135cat >>confdefs.h <<_ACEOF
8136#define HAVE_STRUCT_STAT_ST_ATIME 1
8137_ACEOF
8138
8139
8140fi
8141ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "#ifdef HAVE_SYS_TYPES_H
8142#include <sys/types.h>
8143#endif
8144#ifdef HAVE_SYS_STAT_H
8145#include <sys/stat.h>
8146#endif
8147"
8148if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then :
8149
8150cat >>confdefs.h <<_ACEOF
8151#define HAVE_STRUCT_STAT_ST_MTIME 1
8152_ACEOF
8153
8154
8155fi
8156ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime" "ac_cv_member_struct_stat_st_ctime" "#ifdef HAVE_SYS_TYPES_H
8157#include <sys/types.h>
8158#endif
8159#ifdef HAVE_SYS_STAT_H
8160#include <sys/stat.h>
8161#endif
8162"
8163if test "x$ac_cv_member_struct_stat_st_ctime" = xyes; then :
8164
8165cat >>confdefs.h <<_ACEOF
8166#define HAVE_STRUCT_STAT_ST_CTIME 1
8167_ACEOF
8168
8169
8170fi
8171
8172
8173ac_fn_c_check_type "$LINENO" "__int128" "ac_cv_type___int128" "$ac_includes_default"
8174if test "x$ac_cv_type___int128" = xyes; then :
8175
8176cat >>confdefs.h <<_ACEOF
8177#define HAVE___INT128 1
8178_ACEOF
8179
8180
8181fi
8182
8183ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
8184#include <sys/socket.h>
8185
8186"
8187if test "x$ac_cv_type_socklen_t" = xyes; then :
8188
8189cat >>confdefs.h <<_ACEOF
8190#define HAVE_SOCKLEN_T 1
8191_ACEOF
8192
8193
8194fi
8195
8196
8197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
8198$as_echo_n "checking type of array argument to getgroups... " >&6; }
8199if ${ac_cv_type_getgroups+:} false; then :
8200 $as_echo_n "(cached) " >&6
8201else
8202 if test "$cross_compiling" = yes; then :
8203 ac_cv_type_getgroups=cross
8204else
8205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8206/* end confdefs.h. */
8207/* Thanks to Mike Rendell for this test. */
8208$ac_includes_default
8209#define NGID 256
8210#undef MAX
8211#define MAX(x, y) ((x) > (y) ? (x) : (y))
8212
8213int
8214main ()
8215{
8216 gid_t gidset[NGID];
8217 int i, n;
8218 union { gid_t gval; long int lval; } val;
8219
8220 val.lval = -1;
8221 for (i = 0; i < NGID; i++)
8222 gidset[i] = val.gval;
8223 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
8224 gidset);
8225 /* Exit non-zero if getgroups seems to require an array of ints. This
8226 happens when gid_t is short int but getgroups modifies an array
8227 of ints. */
8228 return n > 0 && gidset[n] != val.gval;
8229}
8230_ACEOF
8231if ac_fn_c_try_run "$LINENO"; then :
8232 ac_cv_type_getgroups=gid_t
8233else
8234 ac_cv_type_getgroups=int
8235fi
8236rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8237 conftest.$ac_objext conftest.beam conftest.$ac_ext
8238fi
8239
8240if test $ac_cv_type_getgroups = cross; then
8241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8242/* end confdefs.h. */
8243#include <unistd.h>
8244
8245_ACEOF
8246if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8247 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
8248 ac_cv_type_getgroups=gid_t
8249else
8250 ac_cv_type_getgroups=int
8251fi
8252rm -f conftest*
8253
8254fi
8255fi
8256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
8257$as_echo "$ac_cv_type_getgroups" >&6; }
8258
8259cat >>confdefs.h <<_ACEOF
8260#define GETGROUPS_T $ac_cv_type_getgroups
8261_ACEOF
8262
8263
8264ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
8265if test "x$ac_cv_type_mode_t" = xyes; then :
8266
8267else
8268
8269cat >>confdefs.h <<_ACEOF
8270#define mode_t int
8271_ACEOF
8272
8273fi
8274
8275ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
8276if test "x$ac_cv_type_off_t" = xyes; then :
8277
8278else
8279
8280cat >>confdefs.h <<_ACEOF
8281#define off_t long int
8282_ACEOF
8283
8284fi
8285
8286ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8287if test "x$ac_cv_type_pid_t" = xyes; then :
8288
8289else
8290
8291cat >>confdefs.h <<_ACEOF
8292#define pid_t int
8293_ACEOF
8294
8295fi
8296
8297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8298$as_echo_n "checking return type of signal handlers... " >&6; }
8299if ${ac_cv_type_signal+:} false; then :
8300 $as_echo_n "(cached) " >&6
8301else
8302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8303/* end confdefs.h. */
8304#include <sys/types.h>
8305#include <signal.h>
8306
8307int
8308main ()
8309{
8310return *(signal (0, 0)) (0) == 1;
8311 ;
8312 return 0;
8313}
8314_ACEOF
8315if ac_fn_c_try_compile "$LINENO"; then :
8316 ac_cv_type_signal=int
8317else
8318 ac_cv_type_signal=void
8319fi
8320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8321fi
8322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
8323$as_echo "$ac_cv_type_signal" >&6; }
8324
8325cat >>confdefs.h <<_ACEOF
8326#define RETSIGTYPE $ac_cv_type_signal
8327_ACEOF
8328
8329
8330ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8331if test "x$ac_cv_type_size_t" = xyes; then :
8332
8333else
8334
8335cat >>confdefs.h <<_ACEOF
8336#define size_t unsigned int
8337_ACEOF
8338
8339fi
8340
8341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8342$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8343if ${ac_cv_type_uid_t+:} false; then :
8344 $as_echo_n "(cached) " >&6
8345else
8346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8347/* end confdefs.h. */
8348#include <sys/types.h>
8349
8350_ACEOF
8351if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8352 $EGREP "uid_t" >/dev/null 2>&1; then :
8353 ac_cv_type_uid_t=yes
8354else
8355 ac_cv_type_uid_t=no
8356fi
8357rm -f conftest*
8358
8359fi
8360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8361$as_echo "$ac_cv_type_uid_t" >&6; }
8362if test $ac_cv_type_uid_t = no; then
8363
8364$as_echo "#define uid_t int" >>confdefs.h
8365
8366
8367$as_echo "#define gid_t int" >>confdefs.h
8368
8369fi
8370
8371
ce3ec98a
MF
8372ALL_LINGUAS=
8373# If we haven't got the data from the intl directory,
8374# assume NLS is disabled.
8375USE_NLS=no
8376LIBINTL=
8377LIBINTL_DEP=
8378INCINTL=
8379XGETTEXT=
8380GMSGFMT=
8381POSUB=
8382
8383if test -f ../intl/config.intl; then
8384 . ../intl/config.intl
8385fi
8386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8387$as_echo_n "checking whether NLS is requested... " >&6; }
8388if test x"$USE_NLS" != xyes; then
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8390$as_echo "no" >&6; }
8391else
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8393$as_echo "yes" >&6; }
8394
8395$as_echo "#define ENABLE_NLS 1" >>confdefs.h
8396
8397
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
8399$as_echo_n "checking for catalogs to be installed... " >&6; }
8400 # Look for .po and .gmo files in the source directory.
8401 CATALOGS=
8402 XLINGUAS=
8403 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
8404 # If there aren't any .gmo files the shell will give us the
8405 # literal string "../path/to/srcdir/po/*.gmo" which has to be
8406 # weeded out.
8407 case "$cat" in *\**)
8408 continue;;
8409 esac
8410 # The quadruple backslash is collapsed to a double backslash
8411 # by the backticks, then collapsed again by the double quotes,
8412 # leaving us with one backslash in the sed expression (right
8413 # before the dot that mustn't act as a wildcard).
8414 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
8415 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
8416 # The user is allowed to set LINGUAS to a list of languages to
8417 # install catalogs for. If it's empty that means "all of them."
8418 if test "x$LINGUAS" = x; then
8419 CATALOGS="$CATALOGS $cat"
8420 XLINGUAS="$XLINGUAS $lang"
8421 else
8422 case "$LINGUAS" in *$lang*)
8423 CATALOGS="$CATALOGS $cat"
8424 XLINGUAS="$XLINGUAS $lang"
8425 ;;
8426 esac
8427 fi
8428 done
8429 LINGUAS="$XLINGUAS"
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
8431$as_echo "$LINGUAS" >&6; }
8432
8433
8434 DATADIRNAME=share
8435
8436 INSTOBJEXT=.mo
8437
8438 GENCAT=gencat
8439
8440 CATOBJEXT=.gmo
8441
8442fi
8443
b5689863
MF
8444
8445 # Use the system's zlib library.
8446 zlibdir="-L\$(top_builddir)/../zlib"
8447 zlibinc="-I\$(top_srcdir)/../zlib"
8448
8449# Check whether --with-system-zlib was given.
8450if test "${with_system_zlib+set}" = set; then :
8451 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
8452 zlibdir=
8453 zlibinc=
8454 fi
8455
8456fi
8457
8458
8459
8460
8461
8462
8463 maybe_plugins=no
8464 for ac_header in dlfcn.h
8465do :
8466 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8467"
8468if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8469 cat >>confdefs.h <<_ACEOF
8470#define HAVE_DLFCN_H 1
8471_ACEOF
8472 maybe_plugins=yes
8473fi
8474
8475done
8476
8477 for ac_header in windows.h
8478do :
8479 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
8480"
8481if test "x$ac_cv_header_windows_h" = xyes; then :
8482 cat >>confdefs.h <<_ACEOF
8483#define HAVE_WINDOWS_H 1
8484_ACEOF
8485 maybe_plugins=yes
8486fi
8487
8488done
8489
8490
8491 # Check whether --enable-plugins was given.
8492if test "${enable_plugins+set}" = set; then :
8493 enableval=$enable_plugins; case "${enableval}" in
8494 no) plugins=no ;;
8495 *) plugins=yes
8496 if test "$maybe_plugins" != "yes" ; then
8497 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
8498 fi ;;
8499 esac
8500else
8501 plugins=$maybe_plugins
8502
8503fi
8504
8505 if test "$plugins" = "yes"; then
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
8507$as_echo_n "checking for library containing dlsym... " >&6; }
8508if ${ac_cv_search_dlsym+:} false; then :
8509 $as_echo_n "(cached) " >&6
8510else
8511 ac_func_search_save_LIBS=$LIBS
8512cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8513/* end confdefs.h. */
8514
8515/* Override any GCC internal prototype to avoid an error.
8516 Use char because int might match the return type of a GCC
8517 builtin and then its argument prototype would still apply. */
8518#ifdef __cplusplus
8519extern "C"
8520#endif
8521char dlsym ();
8522int
8523main ()
8524{
8525return dlsym ();
8526 ;
8527 return 0;
8528}
8529_ACEOF
8530for ac_lib in '' dl; do
8531 if test -z "$ac_lib"; then
8532 ac_res="none required"
8533 else
8534 ac_res=-l$ac_lib
8535 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8536 fi
8537 if ac_fn_c_try_link "$LINENO"; then :
8538 ac_cv_search_dlsym=$ac_res
8539fi
8540rm -f core conftest.err conftest.$ac_objext \
8541 conftest$ac_exeext
8542 if ${ac_cv_search_dlsym+:} false; then :
8543 break
8544fi
8545done
8546if ${ac_cv_search_dlsym+:} false; then :
8547
8548else
8549 ac_cv_search_dlsym=no
8550fi
8551rm conftest.$ac_ext
8552LIBS=$ac_func_search_save_LIBS
8553fi
8554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
8555$as_echo "$ac_cv_search_dlsym" >&6; }
8556ac_res=$ac_cv_search_dlsym
8557if test "$ac_res" != no; then :
8558 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8559
8560fi
8561
8562 fi
8563
8564 if test "$plugins" = yes; then
8565 PLUGINS_TRUE=
8566 PLUGINS_FALSE='#'
8567else
8568 PLUGINS_TRUE='#'
8569 PLUGINS_FALSE=
8570fi
8571
8572
8573
8574
8575
8576# Set options
8577enable_dlopen=yes
8578
8579
8580
8581
8582 enable_win32_dll=no
8583
8584
8585 # Check whether --enable-shared was given.
8586if test "${enable_shared+set}" = set; then :
8587 enableval=$enable_shared; p=${PACKAGE-default}
8588 case $enableval in
8589 yes) enable_shared=yes ;;
8590 no) enable_shared=no ;;
8591 *)
8592 enable_shared=no
8593 # Look at the argument we got. We use all the common list separators.
8594 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8595 for pkg in $enableval; do
8596 IFS="$lt_save_ifs"
8597 if test "X$pkg" = "X$p"; then
8598 enable_shared=yes
8599 fi
8600 done
8601 IFS="$lt_save_ifs"
8602 ;;
8603 esac
8604else
8605 enable_shared=yes
8606fi
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616 # Check whether --enable-static was given.
8617if test "${enable_static+set}" = set; then :
8618 enableval=$enable_static; p=${PACKAGE-default}
8619 case $enableval in
8620 yes) enable_static=yes ;;
8621 no) enable_static=no ;;
8622 *)
8623 enable_static=no
8624 # Look at the argument we got. We use all the common list separators.
8625 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8626 for pkg in $enableval; do
8627 IFS="$lt_save_ifs"
8628 if test "X$pkg" = "X$p"; then
8629 enable_static=yes
8630 fi
8631 done
8632 IFS="$lt_save_ifs"
8633 ;;
8634 esac
8635else
8636 enable_static=yes
8637fi
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648# Check whether --with-pic was given.
8649if test "${with_pic+set}" = set; then :
8650 withval=$with_pic; pic_mode="$withval"
8651else
8652 pic_mode=default
8653fi
8654
8655
8656test -z "$pic_mode" && pic_mode=default
8657
8658
8659
8660
8661
8662
8663
8664 # Check whether --enable-fast-install was given.
8665if test "${enable_fast_install+set}" = set; then :
8666 enableval=$enable_fast_install; p=${PACKAGE-default}
8667 case $enableval in
8668 yes) enable_fast_install=yes ;;
8669 no) enable_fast_install=no ;;
8670 *)
8671 enable_fast_install=no
8672 # Look at the argument we got. We use all the common list separators.
8673 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8674 for pkg in $enableval; do
8675 IFS="$lt_save_ifs"
8676 if test "X$pkg" = "X$p"; then
8677 enable_fast_install=yes
8678 fi
8679 done
8680 IFS="$lt_save_ifs"
8681 ;;
8682 esac
8683else
8684 enable_fast_install=yes
8685fi
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697# This can be used to rebuild libtool when needed
8698LIBTOOL_DEPS="$ltmain"
8699
8700# Always use our own libtool.
8701LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728test -z "$LN_S" && LN_S="ln -s"
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743if test -n "${ZSH_VERSION+set}" ; then
8744 setopt NO_GLOB_SUBST
8745fi
8746
8747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8748$as_echo_n "checking for objdir... " >&6; }
8749if ${lt_cv_objdir+:} false; then :
8750 $as_echo_n "(cached) " >&6
8751else
8752 rm -f .libs 2>/dev/null
8753mkdir .libs 2>/dev/null
8754if test -d .libs; then
8755 lt_cv_objdir=.libs
8756else
8757 # MS-DOS does not allow filenames that begin with a dot.
8758 lt_cv_objdir=_libs
8759fi
8760rmdir .libs 2>/dev/null
8761fi
8762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8763$as_echo "$lt_cv_objdir" >&6; }
8764objdir=$lt_cv_objdir
8765
8766
8767
8768
8769
8770cat >>confdefs.h <<_ACEOF
8771#define LT_OBJDIR "$lt_cv_objdir/"
8772_ACEOF
8773
8774
8775
8776
8777case $host_os in
8778aix3*)
8779 # AIX sometimes has problems with the GCC collect2 program. For some
8780 # reason, if we set the COLLECT_NAMES environment variable, the problems
8781 # vanish in a puff of smoke.
8782 if test "X${COLLECT_NAMES+set}" != Xset; then
8783 COLLECT_NAMES=
8784 export COLLECT_NAMES
8785 fi
8786 ;;
8787esac
8788
8789# Global variables:
8790ofile=libtool
8791can_build_shared=yes
8792
8793# All known linkers require a `.a' archive for static linking (except MSVC,
8794# which needs '.lib').
8795libext=a
8796
8797with_gnu_ld="$lt_cv_prog_gnu_ld"
8798
8799old_CC="$CC"
8800old_CFLAGS="$CFLAGS"
8801
8802# Set sane defaults for various variables
8803test -z "$CC" && CC=cc
8804test -z "$LTCC" && LTCC=$CC
8805test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8806test -z "$LD" && LD=ld
8807test -z "$ac_objext" && ac_objext=o
8808
8809for cc_temp in $compiler""; do
8810 case $cc_temp in
8811 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8812 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8813 \-*) ;;
8814 *) break;;
8815 esac
8816done
8817cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8818
8819
8820# Only perform the check for file, if the check method requires it
8821test -z "$MAGIC_CMD" && MAGIC_CMD=file
8822case $deplibs_check_method in
8823file_magic*)
8824 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8826$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8827if ${lt_cv_path_MAGIC_CMD+:} false; then :
8828 $as_echo_n "(cached) " >&6
8829else
8830 case $MAGIC_CMD in
8831[\\/*] | ?:[\\/]*)
8832 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8833 ;;
8834*)
8835 lt_save_MAGIC_CMD="$MAGIC_CMD"
8836 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8837 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8838 for ac_dir in $ac_dummy; do
8839 IFS="$lt_save_ifs"
8840 test -z "$ac_dir" && ac_dir=.
8841 if test -f $ac_dir/${ac_tool_prefix}file; then
8842 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8843 if test -n "$file_magic_test_file"; then
8844 case $deplibs_check_method in
8845 "file_magic "*)
8846 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8847 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8848 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8849 $EGREP "$file_magic_regex" > /dev/null; then
8850 :
8851 else
8852 cat <<_LT_EOF 1>&2
8853
8854*** Warning: the command libtool uses to detect shared libraries,
8855*** $file_magic_cmd, produces output that libtool cannot recognize.
8856*** The result is that libtool may fail to recognize shared libraries
8857*** as such. This will affect the creation of libtool libraries that
8858*** depend on shared libraries, but programs linked with such libtool
8859*** libraries will work regardless of this problem. Nevertheless, you
8860*** may want to report the problem to your system manager and/or to
8861*** bug-libtool@gnu.org
8862
8863_LT_EOF
8864 fi ;;
8865 esac
8866 fi
8867 break
8868 fi
8869 done
8870 IFS="$lt_save_ifs"
8871 MAGIC_CMD="$lt_save_MAGIC_CMD"
8872 ;;
8873esac
8874fi
8875
8876MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8877if test -n "$MAGIC_CMD"; then
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8879$as_echo "$MAGIC_CMD" >&6; }
8880else
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8882$as_echo "no" >&6; }
8883fi
8884
8885
8886
8887
8888
8889if test -z "$lt_cv_path_MAGIC_CMD"; then
8890 if test -n "$ac_tool_prefix"; then
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8892$as_echo_n "checking for file... " >&6; }
8893if ${lt_cv_path_MAGIC_CMD+:} false; then :
8894 $as_echo_n "(cached) " >&6
8895else
8896 case $MAGIC_CMD in
8897[\\/*] | ?:[\\/]*)
8898 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8899 ;;
8900*)
8901 lt_save_MAGIC_CMD="$MAGIC_CMD"
8902 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8903 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8904 for ac_dir in $ac_dummy; do
8905 IFS="$lt_save_ifs"
8906 test -z "$ac_dir" && ac_dir=.
8907 if test -f $ac_dir/file; then
8908 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8909 if test -n "$file_magic_test_file"; then
8910 case $deplibs_check_method in
8911 "file_magic "*)
8912 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8913 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8914 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8915 $EGREP "$file_magic_regex" > /dev/null; then
8916 :
8917 else
8918 cat <<_LT_EOF 1>&2
8919
8920*** Warning: the command libtool uses to detect shared libraries,
8921*** $file_magic_cmd, produces output that libtool cannot recognize.
8922*** The result is that libtool may fail to recognize shared libraries
8923*** as such. This will affect the creation of libtool libraries that
8924*** depend on shared libraries, but programs linked with such libtool
8925*** libraries will work regardless of this problem. Nevertheless, you
8926*** may want to report the problem to your system manager and/or to
8927*** bug-libtool@gnu.org
8928
8929_LT_EOF
8930 fi ;;
8931 esac
8932 fi
8933 break
8934 fi
8935 done
8936 IFS="$lt_save_ifs"
8937 MAGIC_CMD="$lt_save_MAGIC_CMD"
8938 ;;
8939esac
8940fi
8941
8942MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8943if test -n "$MAGIC_CMD"; then
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8945$as_echo "$MAGIC_CMD" >&6; }
8946else
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8948$as_echo "no" >&6; }
8949fi
8950
8951
8952 else
8953 MAGIC_CMD=:
8954 fi
8955fi
8956
8957 fi
8958 ;;
8959esac
8960
8961# Use C for the default configuration in the libtool script
8962
8963lt_save_CC="$CC"
8964ac_ext=c
8965ac_cpp='$CPP $CPPFLAGS'
8966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8968ac_compiler_gnu=$ac_cv_c_compiler_gnu
8969
8970
8971# Source file extension for C test sources.
8972ac_ext=c
8973
8974# Object file extension for compiled C test sources.
8975objext=o
8976objext=$objext
8977
8978# Code to be used in simple compile tests
8979lt_simple_compile_test_code="int some_variable = 0;"
8980
8981# Code to be used in simple link tests
8982lt_simple_link_test_code='int main(){return(0);}'
8983
8984
8985
8986
8987
8988
8989
8990# If no C compiler was specified, use CC.
8991LTCC=${LTCC-"$CC"}
8992
8993# If no C compiler flags were specified, use CFLAGS.
8994LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8995
8996# Allow CC to be a program name with arguments.
8997compiler=$CC
8998
8999# Save the default compiler, since it gets overwritten when the other
9000# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9001compiler_DEFAULT=$CC
9002
9003# save warnings/boilerplate of simple test code
9004ac_outfile=conftest.$ac_objext
9005echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9006eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9007_lt_compiler_boilerplate=`cat conftest.err`
9008$RM conftest*
9009
9010ac_outfile=conftest.$ac_objext
9011echo "$lt_simple_link_test_code" >conftest.$ac_ext
9012eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9013_lt_linker_boilerplate=`cat conftest.err`
9014$RM -r conftest*
9015
9016
9017## CAVEAT EMPTOR:
9018## There is no encapsulation within the following macros, do not change
9019## the running order or otherwise move them around unless you know exactly
9020## what you are doing...
9021if test -n "$compiler"; then
9022
9023lt_prog_compiler_no_builtin_flag=
9024
9025if test "$GCC" = yes; then
9026 case $cc_basename in
9027 nvcc*)
9028 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9029 *)
9030 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9031 esac
9032
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9034$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9035if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9036 $as_echo_n "(cached) " >&6
9037else
9038 lt_cv_prog_compiler_rtti_exceptions=no
9039 ac_outfile=conftest.$ac_objext
9040 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9041 lt_compiler_flag="-fno-rtti -fno-exceptions"
9042 # Insert the option either (1) after the last *FLAGS variable, or
9043 # (2) before a word containing "conftest.", or (3) at the end.
9044 # Note that $ac_compile itself does not contain backslashes and begins
9045 # with a dollar sign (not a hyphen), so the echo should work correctly.
9046 # The option is referenced via a variable to avoid confusing sed.
9047 lt_compile=`echo "$ac_compile" | $SED \
9048 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9049 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9050 -e 's:$: $lt_compiler_flag:'`
9051 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9052 (eval "$lt_compile" 2>conftest.err)
9053 ac_status=$?
9054 cat conftest.err >&5
9055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056 if (exit $ac_status) && test -s "$ac_outfile"; then
9057 # The compiler can only warn and ignore the option if not recognized
9058 # So say no if there are warnings other than the usual output.
9059 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9060 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9061 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9062 lt_cv_prog_compiler_rtti_exceptions=yes
9063 fi
9064 fi
9065 $RM conftest*
9066
9067fi
9068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9069$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9070
9071if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9072 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9073else
9074 :
9075fi
9076
9077fi
9078
9079
9080
9081
9082
9083
9084 lt_prog_compiler_wl=
9085lt_prog_compiler_pic=
9086lt_prog_compiler_static=
9087
9088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9089$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9090
9091 if test "$GCC" = yes; then
9092 lt_prog_compiler_wl='-Wl,'
9093 lt_prog_compiler_static='-static'
9094
9095 case $host_os in
9096 aix*)
9097 # All AIX code is PIC.
9098 if test "$host_cpu" = ia64; then
9099 # AIX 5 now supports IA64 processor
9100 lt_prog_compiler_static='-Bstatic'
9101 fi
9102 lt_prog_compiler_pic='-fPIC'
9103 ;;
9104
9105 amigaos*)
9106 case $host_cpu in
9107 powerpc)
9108 # see comment about AmigaOS4 .so support
9109 lt_prog_compiler_pic='-fPIC'
9110 ;;
9111 m68k)
9112 # FIXME: we need at least 68020 code to build shared libraries, but
9113 # adding the `-m68020' flag to GCC prevents building anything better,
9114 # like `-m68040'.
9115 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9116 ;;
9117 esac
9118 ;;
9119
9120 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9121 # PIC is the default for these OSes.
9122 ;;
9123
9124 mingw* | cygwin* | pw32* | os2* | cegcc*)
9125 # This hack is so that the source file can tell whether it is being
9126 # built for inclusion in a dll (and should export symbols for example).
9127 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9128 # (--disable-auto-import) libraries
9129 lt_prog_compiler_pic='-DDLL_EXPORT'
9130 ;;
9131
9132 darwin* | rhapsody*)
9133 # PIC is the default on this platform
9134 # Common symbols not allowed in MH_DYLIB files
9135 lt_prog_compiler_pic='-fno-common'
9136 ;;
9137
9138 haiku*)
9139 # PIC is the default for Haiku.
9140 # The "-static" flag exists, but is broken.
9141 lt_prog_compiler_static=
9142 ;;
9143
9144 hpux*)
9145 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9146 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9147 # sets the default TLS model and affects inlining.
9148 case $host_cpu in
9149 hppa*64*)
9150 # +Z the default
9151 ;;
9152 *)
9153 lt_prog_compiler_pic='-fPIC'
9154 ;;
9155 esac
9156 ;;
9157
9158 interix[3-9]*)
9159 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9160 # Instead, we relocate shared libraries at runtime.
9161 ;;
9162
9163 msdosdjgpp*)
9164 # Just because we use GCC doesn't mean we suddenly get shared libraries
9165 # on systems that don't support them.
9166 lt_prog_compiler_can_build_shared=no
9167 enable_shared=no
9168 ;;
9169
9170 *nto* | *qnx*)
9171 # QNX uses GNU C++, but need to define -shared option too, otherwise
9172 # it will coredump.
9173 lt_prog_compiler_pic='-fPIC -shared'
9174 ;;
9175
9176 sysv4*MP*)
9177 if test -d /usr/nec; then
9178 lt_prog_compiler_pic=-Kconform_pic
9179 fi
9180 ;;
9181
9182 *)
9183 lt_prog_compiler_pic='-fPIC'
9184 ;;
9185 esac
9186
9187 case $cc_basename in
9188 nvcc*) # Cuda Compiler Driver 2.2
9189 lt_prog_compiler_wl='-Xlinker '
9190 lt_prog_compiler_pic='-Xcompiler -fPIC'
9191 ;;
9192 esac
9193 else
9194 # PORTME Check for flag to pass linker flags through the system compiler.
9195 case $host_os in
9196 aix*)
9197 lt_prog_compiler_wl='-Wl,'
9198 if test "$host_cpu" = ia64; then
9199 # AIX 5 now supports IA64 processor
9200 lt_prog_compiler_static='-Bstatic'
9201 else
9202 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9203 fi
9204 ;;
9205
9206 mingw* | cygwin* | pw32* | os2* | cegcc*)
9207 # This hack is so that the source file can tell whether it is being
9208 # built for inclusion in a dll (and should export symbols for example).
9209 lt_prog_compiler_pic='-DDLL_EXPORT'
9210 ;;
9211
9212 hpux9* | hpux10* | hpux11*)
9213 lt_prog_compiler_wl='-Wl,'
9214 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9215 # not for PA HP-UX.
9216 case $host_cpu in
9217 hppa*64*|ia64*)
9218 # +Z the default
9219 ;;
9220 *)
9221 lt_prog_compiler_pic='+Z'
9222 ;;
9223 esac
9224 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9225 lt_prog_compiler_static='${wl}-a ${wl}archive'
9226 ;;
9227
9228 irix5* | irix6* | nonstopux*)
9229 lt_prog_compiler_wl='-Wl,'
9230 # PIC (with -KPIC) is the default.
9231 lt_prog_compiler_static='-non_shared'
9232 ;;
9233
9234 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9235 case $cc_basename in
9236 # old Intel for x86_64 which still supported -KPIC.
9237 ecc*)
9238 lt_prog_compiler_wl='-Wl,'
9239 lt_prog_compiler_pic='-KPIC'
9240 lt_prog_compiler_static='-static'
9241 ;;
9242 # icc used to be incompatible with GCC.
9243 # ICC 10 doesn't accept -KPIC any more.
9244 icc* | ifort*)
9245 lt_prog_compiler_wl='-Wl,'
9246 lt_prog_compiler_pic='-fPIC'
9247 lt_prog_compiler_static='-static'
9248 ;;
9249 # Lahey Fortran 8.1.
9250 lf95*)
9251 lt_prog_compiler_wl='-Wl,'
9252 lt_prog_compiler_pic='--shared'
9253 lt_prog_compiler_static='--static'
9254 ;;
9255 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9256 # Portland Group compilers (*not* the Pentium gcc compiler,
9257 # which looks to be a dead project)
9258 lt_prog_compiler_wl='-Wl,'
9259 lt_prog_compiler_pic='-fpic'
9260 lt_prog_compiler_static='-Bstatic'
9261 ;;
9262 ccc*)
9263 lt_prog_compiler_wl='-Wl,'
9264 # All Alpha code is PIC.
9265 lt_prog_compiler_static='-non_shared'
9266 ;;
9267 xl* | bgxl* | bgf* | mpixl*)
9268 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9269 lt_prog_compiler_wl='-Wl,'
9270 lt_prog_compiler_pic='-qpic'
9271 lt_prog_compiler_static='-qstaticlink'
9272 ;;
9273 *)
9274 case `$CC -V 2>&1 | sed 5q` in
9275 *Sun\ F* | *Sun*Fortran*)
9276 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9277 lt_prog_compiler_pic='-KPIC'
9278 lt_prog_compiler_static='-Bstatic'
9279 lt_prog_compiler_wl=''
9280 ;;
9281 *Sun\ C*)
9282 # Sun C 5.9
9283 lt_prog_compiler_pic='-KPIC'
9284 lt_prog_compiler_static='-Bstatic'
9285 lt_prog_compiler_wl='-Wl,'
9286 ;;
9287 esac
9288 ;;
9289 esac
9290 ;;
9291
9292 newsos6)
9293 lt_prog_compiler_pic='-KPIC'
9294 lt_prog_compiler_static='-Bstatic'
9295 ;;
9296
9297 *nto* | *qnx*)
9298 # QNX uses GNU C++, but need to define -shared option too, otherwise
9299 # it will coredump.
9300 lt_prog_compiler_pic='-fPIC -shared'
9301 ;;
9302
9303 osf3* | osf4* | osf5*)
9304 lt_prog_compiler_wl='-Wl,'
9305 # All OSF/1 code is PIC.
9306 lt_prog_compiler_static='-non_shared'
9307 ;;
9308
9309 rdos*)
9310 lt_prog_compiler_static='-non_shared'
9311 ;;
9312
9313 solaris*)
9314 lt_prog_compiler_pic='-KPIC'
9315 lt_prog_compiler_static='-Bstatic'
9316 case $cc_basename in
9317 f77* | f90* | f95*)
9318 lt_prog_compiler_wl='-Qoption ld ';;
9319 *)
9320 lt_prog_compiler_wl='-Wl,';;
9321 esac
9322 ;;
9323
9324 sunos4*)
9325 lt_prog_compiler_wl='-Qoption ld '
9326 lt_prog_compiler_pic='-PIC'
9327 lt_prog_compiler_static='-Bstatic'
9328 ;;
9329
9330 sysv4 | sysv4.2uw2* | sysv4.3*)
9331 lt_prog_compiler_wl='-Wl,'
9332 lt_prog_compiler_pic='-KPIC'
9333 lt_prog_compiler_static='-Bstatic'
9334 ;;
9335
9336 sysv4*MP*)
9337 if test -d /usr/nec ;then
9338 lt_prog_compiler_pic='-Kconform_pic'
9339 lt_prog_compiler_static='-Bstatic'
9340 fi
9341 ;;
9342
9343 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9344 lt_prog_compiler_wl='-Wl,'
9345 lt_prog_compiler_pic='-KPIC'
9346 lt_prog_compiler_static='-Bstatic'
9347 ;;
9348
9349 unicos*)
9350 lt_prog_compiler_wl='-Wl,'
9351 lt_prog_compiler_can_build_shared=no
9352 ;;
9353
9354 uts4*)
9355 lt_prog_compiler_pic='-pic'
9356 lt_prog_compiler_static='-Bstatic'
9357 ;;
9358
9359 *)
9360 lt_prog_compiler_can_build_shared=no
9361 ;;
9362 esac
9363 fi
9364
9365case $host_os in
9366 # For platforms which do not support PIC, -DPIC is meaningless:
9367 *djgpp*)
9368 lt_prog_compiler_pic=
9369 ;;
9370 *)
9371 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9372 ;;
9373esac
9374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9375$as_echo "$lt_prog_compiler_pic" >&6; }
9376
9377
9378
9379
9380
9381
9382#
9383# Check to make sure the PIC flag actually works.
9384#
9385if test -n "$lt_prog_compiler_pic"; then
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9387$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9388if ${lt_cv_prog_compiler_pic_works+:} false; then :
9389 $as_echo_n "(cached) " >&6
9390else
9391 lt_cv_prog_compiler_pic_works=no
9392 ac_outfile=conftest.$ac_objext
9393 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9394 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9395 # Insert the option either (1) after the last *FLAGS variable, or
9396 # (2) before a word containing "conftest.", or (3) at the end.
9397 # Note that $ac_compile itself does not contain backslashes and begins
9398 # with a dollar sign (not a hyphen), so the echo should work correctly.
9399 # The option is referenced via a variable to avoid confusing sed.
9400 lt_compile=`echo "$ac_compile" | $SED \
9401 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9402 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9403 -e 's:$: $lt_compiler_flag:'`
9404 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9405 (eval "$lt_compile" 2>conftest.err)
9406 ac_status=$?
9407 cat conftest.err >&5
9408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409 if (exit $ac_status) && test -s "$ac_outfile"; then
9410 # The compiler can only warn and ignore the option if not recognized
9411 # So say no if there are warnings other than the usual output.
9412 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9413 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9414 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9415 lt_cv_prog_compiler_pic_works=yes
9416 fi
9417 fi
9418 $RM conftest*
9419
9420fi
9421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9422$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9423
9424if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9425 case $lt_prog_compiler_pic in
9426 "" | " "*) ;;
9427 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9428 esac
9429else
9430 lt_prog_compiler_pic=
9431 lt_prog_compiler_can_build_shared=no
9432fi
9433
9434fi
9435
9436
9437
9438
9439
9440
9441#
9442# Check to make sure the static flag actually works.
9443#
9444wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9446$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9447if ${lt_cv_prog_compiler_static_works+:} false; then :
9448 $as_echo_n "(cached) " >&6
9449else
9450 lt_cv_prog_compiler_static_works=no
9451 save_LDFLAGS="$LDFLAGS"
9452 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9453 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9454 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9455 # The linker can only warn and ignore the option if not recognized
9456 # So say no if there are warnings
9457 if test -s conftest.err; then
9458 # Append any errors to the config.log.
9459 cat conftest.err 1>&5
9460 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9461 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9462 if diff conftest.exp conftest.er2 >/dev/null; then
9463 lt_cv_prog_compiler_static_works=yes
9464 fi
9465 else
9466 lt_cv_prog_compiler_static_works=yes
9467 fi
9468 fi
9469 $RM -r conftest*
9470 LDFLAGS="$save_LDFLAGS"
9471
9472fi
9473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9474$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9475
9476if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9477 :
9478else
9479 lt_prog_compiler_static=
9480fi
9481
9482
9483
9484
9485
9486
9487
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9489$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9490if ${lt_cv_prog_compiler_c_o+:} false; then :
9491 $as_echo_n "(cached) " >&6
9492else
9493 lt_cv_prog_compiler_c_o=no
9494 $RM -r conftest 2>/dev/null
9495 mkdir conftest
9496 cd conftest
9497 mkdir out
9498 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9499
9500 lt_compiler_flag="-o out/conftest2.$ac_objext"
9501 # Insert the option either (1) after the last *FLAGS variable, or
9502 # (2) before a word containing "conftest.", or (3) at the end.
9503 # Note that $ac_compile itself does not contain backslashes and begins
9504 # with a dollar sign (not a hyphen), so the echo should work correctly.
9505 lt_compile=`echo "$ac_compile" | $SED \
9506 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9507 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9508 -e 's:$: $lt_compiler_flag:'`
9509 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9510 (eval "$lt_compile" 2>out/conftest.err)
9511 ac_status=$?
9512 cat out/conftest.err >&5
9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9515 then
9516 # The compiler can only warn and ignore the option if not recognized
9517 # So say no if there are warnings
9518 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9519 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9520 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9521 lt_cv_prog_compiler_c_o=yes
9522 fi
9523 fi
9524 chmod u+w . 2>&5
9525 $RM conftest*
9526 # SGI C++ compiler will create directory out/ii_files/ for
9527 # template instantiation
9528 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9529 $RM out/* && rmdir out
9530 cd ..
9531 $RM -r conftest
9532 $RM conftest*
9533
9534fi
9535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9536$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9537
9538
9539
9540
9541
9542
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9544$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9545if ${lt_cv_prog_compiler_c_o+:} false; then :
9546 $as_echo_n "(cached) " >&6
9547else
9548 lt_cv_prog_compiler_c_o=no
9549 $RM -r conftest 2>/dev/null
9550 mkdir conftest
9551 cd conftest
9552 mkdir out
9553 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9554
9555 lt_compiler_flag="-o out/conftest2.$ac_objext"
9556 # Insert the option either (1) after the last *FLAGS variable, or
9557 # (2) before a word containing "conftest.", or (3) at the end.
9558 # Note that $ac_compile itself does not contain backslashes and begins
9559 # with a dollar sign (not a hyphen), so the echo should work correctly.
9560 lt_compile=`echo "$ac_compile" | $SED \
9561 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9562 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9563 -e 's:$: $lt_compiler_flag:'`
9564 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9565 (eval "$lt_compile" 2>out/conftest.err)
9566 ac_status=$?
9567 cat out/conftest.err >&5
9568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9570 then
9571 # The compiler can only warn and ignore the option if not recognized
9572 # So say no if there are warnings
9573 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9574 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9575 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9576 lt_cv_prog_compiler_c_o=yes
9577 fi
9578 fi
9579 chmod u+w . 2>&5
9580 $RM conftest*
9581 # SGI C++ compiler will create directory out/ii_files/ for
9582 # template instantiation
9583 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9584 $RM out/* && rmdir out
9585 cd ..
9586 $RM -r conftest
9587 $RM conftest*
9588
9589fi
9590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9591$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9592
9593
9594
9595
9596hard_links="nottested"
9597if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9598 # do not overwrite the value of need_locks provided by the user
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9600$as_echo_n "checking if we can lock with hard links... " >&6; }
9601 hard_links=yes
9602 $RM conftest*
9603 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9604 touch conftest.a
9605 ln conftest.a conftest.b 2>&5 || hard_links=no
9606 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9608$as_echo "$hard_links" >&6; }
9609 if test "$hard_links" = no; then
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9611$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9612 need_locks=warn
9613 fi
9614else
9615 need_locks=no
9616fi
9617
9618
9619
9620
9621
9622
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9624$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9625
9626 runpath_var=
9627 allow_undefined_flag=
9628 always_export_symbols=no
9629 archive_cmds=
9630 archive_expsym_cmds=
9631 compiler_needs_object=no
9632 enable_shared_with_static_runtimes=no
9633 export_dynamic_flag_spec=
9634 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9635 hardcode_automatic=no
9636 hardcode_direct=no
9637 hardcode_direct_absolute=no
9638 hardcode_libdir_flag_spec=
9639 hardcode_libdir_flag_spec_ld=
9640 hardcode_libdir_separator=
9641 hardcode_minus_L=no
9642 hardcode_shlibpath_var=unsupported
9643 inherit_rpath=no
9644 link_all_deplibs=unknown
9645 module_cmds=
9646 module_expsym_cmds=
9647 old_archive_from_new_cmds=
9648 old_archive_from_expsyms_cmds=
9649 thread_safe_flag_spec=
9650 whole_archive_flag_spec=
9651 # include_expsyms should be a list of space-separated symbols to be *always*
9652 # included in the symbol list
9653 include_expsyms=
9654 # exclude_expsyms can be an extended regexp of symbols to exclude
9655 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9656 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9657 # as well as any symbol that contains `d'.
9658 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9659 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9660 # platforms (ab)use it in PIC code, but their linkers get confused if
9661 # the symbol is explicitly referenced. Since portable code cannot
9662 # rely on this symbol name, it's probably fine to never include it in
9663 # preloaded symbol tables.
9664 # Exclude shared library initialization/finalization symbols.
9665 extract_expsyms_cmds=
9666
9667 case $host_os in
9668 cygwin* | mingw* | pw32* | cegcc*)
9669 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9670 # When not using gcc, we currently assume that we are using
9671 # Microsoft Visual C++.
9672 if test "$GCC" != yes; then
9673 with_gnu_ld=no
9674 fi
9675 ;;
9676 interix*)
9677 # we just hope/assume this is gcc and not c89 (= MSVC++)
9678 with_gnu_ld=yes
9679 ;;
9680 openbsd*)
9681 with_gnu_ld=no
9682 ;;
9683 esac
9684
9685 ld_shlibs=yes
9686
9687 # On some targets, GNU ld is compatible enough with the native linker
9688 # that we're better off using the native interface for both.
9689 lt_use_gnu_ld_interface=no
9690 if test "$with_gnu_ld" = yes; then
9691 case $host_os in
9692 aix*)
9693 # The AIX port of GNU ld has always aspired to compatibility
9694 # with the native linker. However, as the warning in the GNU ld
9695 # block says, versions before 2.19.5* couldn't really create working
9696 # shared libraries, regardless of the interface used.
9697 case `$LD -v 2>&1` in
9698 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9699 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9700 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9701 *)
9702 lt_use_gnu_ld_interface=yes
9703 ;;
9704 esac
9705 ;;
9706 *)
9707 lt_use_gnu_ld_interface=yes
9708 ;;
9709 esac
9710 fi
9711
9712 if test "$lt_use_gnu_ld_interface" = yes; then
9713 # If archive_cmds runs LD, not CC, wlarc should be empty
9714 wlarc='${wl}'
9715
9716 # Set some defaults for GNU ld with shared library support. These
9717 # are reset later if shared libraries are not supported. Putting them
9718 # here allows them to be overridden if necessary.
9719 runpath_var=LD_RUN_PATH
9720 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9721 export_dynamic_flag_spec='${wl}--export-dynamic'
9722 # ancient GNU ld didn't support --whole-archive et. al.
9723 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9724 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9725 else
9726 whole_archive_flag_spec=
9727 fi
9728 supports_anon_versioning=no
9729 case `$LD -v 2>&1` in
9730 *GNU\ gold*) supports_anon_versioning=yes ;;
9731 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9732 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9733 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9734 *\ 2.11.*) ;; # other 2.11 versions
9735 *) supports_anon_versioning=yes ;;
9736 esac
9737
9738 # See if GNU ld supports shared libraries.
9739 case $host_os in
9740 aix[3-9]*)
9741 # On AIX/PPC, the GNU linker is very broken
9742 if test "$host_cpu" != ia64; then
9743 ld_shlibs=no
9744 cat <<_LT_EOF 1>&2
9745
9746*** Warning: the GNU linker, at least up to release 2.19, is reported
9747*** to be unable to reliably create shared libraries on AIX.
9748*** Therefore, libtool is disabling shared libraries support. If you
9749*** really care for shared libraries, you may want to install binutils
9750*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9751*** You will then need to restart the configuration process.
9752
9753_LT_EOF
9754 fi
9755 ;;
9756
9757 amigaos*)
9758 case $host_cpu in
9759 powerpc)
9760 # see comment about AmigaOS4 .so support
9761 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9762 archive_expsym_cmds=''
9763 ;;
9764 m68k)
9765 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)'
9766 hardcode_libdir_flag_spec='-L$libdir'
9767 hardcode_minus_L=yes
9768 ;;
9769 esac
9770 ;;
9771
9772 beos*)
9773 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9774 allow_undefined_flag=unsupported
9775 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9776 # support --undefined. This deserves some investigation. FIXME
9777 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9778 else
9779 ld_shlibs=no
9780 fi
9781 ;;
9782
9783 cygwin* | mingw* | pw32* | cegcc*)
9784 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9785 # as there is no search path for DLLs.
9786 hardcode_libdir_flag_spec='-L$libdir'
9787 export_dynamic_flag_spec='${wl}--export-all-symbols'
9788 allow_undefined_flag=unsupported
9789 always_export_symbols=no
9790 enable_shared_with_static_runtimes=yes
9791 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9792
9793 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9794 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9795 # If the export-symbols file already is a .def file (1st line
9796 # is EXPORTS), use it as is; otherwise, prepend...
9797 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9798 cp $export_symbols $output_objdir/$soname.def;
9799 else
9800 echo EXPORTS > $output_objdir/$soname.def;
9801 cat $export_symbols >> $output_objdir/$soname.def;
9802 fi~
9803 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9804 else
9805 ld_shlibs=no
9806 fi
9807 ;;
9808
9809 haiku*)
9810 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9811 link_all_deplibs=yes
9812 ;;
9813
9814 interix[3-9]*)
9815 hardcode_direct=no
9816 hardcode_shlibpath_var=no
9817 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9818 export_dynamic_flag_spec='${wl}-E'
9819 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9820 # Instead, shared libraries are loaded at an image base (0x10000000 by
9821 # default) and relocated if they conflict, which is a slow very memory
9822 # consuming and fragmenting process. To avoid this, we pick a random,
9823 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9824 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9825 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9826 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'
9827 ;;
9828
9829 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9830 tmp_diet=no
9831 if test "$host_os" = linux-dietlibc; then
9832 case $cc_basename in
9833 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9834 esac
9835 fi
9836 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9837 && test "$tmp_diet" = no
9838 then
9839 tmp_addflag=' $pic_flag'
9840 tmp_sharedflag='-shared'
9841 case $cc_basename,$host_cpu in
9842 pgcc*) # Portland Group C compiler
9843 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'
9844 tmp_addflag=' $pic_flag'
9845 ;;
9846 pgf77* | pgf90* | pgf95* | pgfortran*)
9847 # Portland Group f77 and f90 compilers
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 -Mnomain' ;;
9850 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9851 tmp_addflag=' -i_dynamic' ;;
9852 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9853 tmp_addflag=' -i_dynamic -nofor_main' ;;
9854 ifc* | ifort*) # Intel Fortran compiler
9855 tmp_addflag=' -nofor_main' ;;
9856 lf95*) # Lahey Fortran 8.1
9857 whole_archive_flag_spec=
9858 tmp_sharedflag='--shared' ;;
9859 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9860 tmp_sharedflag='-qmkshrobj'
9861 tmp_addflag= ;;
9862 nvcc*) # Cuda Compiler Driver 2.2
9863 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'
9864 compiler_needs_object=yes
9865 ;;
9866 esac
9867 case `$CC -V 2>&1 | sed 5q` in
9868 *Sun\ C*) # Sun C 5.9
9869 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'
9870 compiler_needs_object=yes
9871 tmp_sharedflag='-G' ;;
9872 *Sun\ F*) # Sun Fortran 8.3
9873 tmp_sharedflag='-G' ;;
9874 esac
9875 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9876
9877 if test "x$supports_anon_versioning" = xyes; then
9878 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9879 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9880 echo "local: *; };" >> $output_objdir/$libname.ver~
9881 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9882 fi
9883
9884 case $cc_basename in
9885 xlf* | bgf* | bgxlf* | mpixlf*)
9886 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9887 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9888 hardcode_libdir_flag_spec=
9889 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9890 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9891 if test "x$supports_anon_versioning" = xyes; then
9892 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9893 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9894 echo "local: *; };" >> $output_objdir/$libname.ver~
9895 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9896 fi
9897 ;;
9898 esac
9899 else
9900 ld_shlibs=no
9901 fi
9902 ;;
9903
9904 netbsd*)
9905 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9906 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9907 wlarc=
9908 else
9909 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9910 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9911 fi
9912 ;;
9913
9914 solaris*)
9915 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9916 ld_shlibs=no
9917 cat <<_LT_EOF 1>&2
9918
9919*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9920*** create shared libraries on Solaris systems. Therefore, libtool
9921*** is disabling shared libraries support. We urge you to upgrade GNU
9922*** binutils to release 2.9.1 or newer. Another option is to modify
9923*** your PATH or compiler configuration so that the native linker is
9924*** used, and then restart.
9925
9926_LT_EOF
9927 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9928 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9929 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9930 else
9931 ld_shlibs=no
9932 fi
9933 ;;
9934
9935 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9936 case `$LD -v 2>&1` in
9937 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9938 ld_shlibs=no
9939 cat <<_LT_EOF 1>&2
9940
9941*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9942*** reliably create shared libraries on SCO systems. Therefore, libtool
9943*** is disabling shared libraries support. We urge you to upgrade GNU
9944*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9945*** your PATH or compiler configuration so that the native linker is
9946*** used, and then restart.
9947
9948_LT_EOF
9949 ;;
9950 *)
9951 # For security reasons, it is highly recommended that you always
9952 # use absolute paths for naming shared libraries, and exclude the
9953 # DT_RUNPATH tag from executables and libraries. But doing so
9954 # requires that you compile everything twice, which is a pain.
9955 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9956 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9957 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9958 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9959 else
9960 ld_shlibs=no
9961 fi
9962 ;;
9963 esac
9964 ;;
9965
9966 sunos4*)
9967 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9968 wlarc=
9969 hardcode_direct=yes
9970 hardcode_shlibpath_var=no
9971 ;;
9972
9973 *)
9974 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9975 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9976 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9977 else
9978 ld_shlibs=no
9979 fi
9980 ;;
9981 esac
9982
9983 if test "$ld_shlibs" = no; then
9984 runpath_var=
9985 hardcode_libdir_flag_spec=
9986 export_dynamic_flag_spec=
9987 whole_archive_flag_spec=
9988 fi
9989 else
9990 # PORTME fill in a description of your system's linker (not GNU ld)
9991 case $host_os in
9992 aix3*)
9993 allow_undefined_flag=unsupported
9994 always_export_symbols=yes
9995 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'
9996 # Note: this linker hardcodes the directories in LIBPATH if there
9997 # are no directories specified by -L.
9998 hardcode_minus_L=yes
9999 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10000 # Neither direct hardcoding nor static linking is supported with a
10001 # broken collect2.
10002 hardcode_direct=unsupported
10003 fi
10004 ;;
10005
10006 aix[4-9]*)
10007 if test "$host_cpu" = ia64; then
10008 # On IA64, the linker does run time linking by default, so we don't
10009 # have to do anything special.
10010 aix_use_runtimelinking=no
10011 exp_sym_flag='-Bexport'
10012 no_entry_flag=""
10013 else
10014 # If we're using GNU nm, then we don't want the "-C" option.
10015 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10016 # Also, AIX nm treats weak defined symbols like other global
10017 # defined symbols, whereas GNU nm marks them as "W".
10018 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10019 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'
10020 else
10021 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'
10022 fi
10023 aix_use_runtimelinking=no
10024
10025 # Test if we are trying to use run time linking or normal
10026 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10027 # need to do runtime linking.
10028 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10029 for ld_flag in $LDFLAGS; do
10030 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10031 aix_use_runtimelinking=yes
10032 break
10033 fi
10034 done
10035 ;;
10036 esac
10037
10038 exp_sym_flag='-bexport'
10039 no_entry_flag='-bnoentry'
10040 fi
10041
10042 # When large executables or shared objects are built, AIX ld can
10043 # have problems creating the table of contents. If linking a library
10044 # or program results in "error TOC overflow" add -mminimal-toc to
10045 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10046 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10047
10048 archive_cmds=''
10049 hardcode_direct=yes
10050 hardcode_direct_absolute=yes
10051 hardcode_libdir_separator=':'
10052 link_all_deplibs=yes
10053 file_list_spec='${wl}-f,'
10054
10055 if test "$GCC" = yes; then
10056 case $host_os in aix4.[012]|aix4.[012].*)
10057 # We only want to do this on AIX 4.2 and lower, the check
10058 # below for broken collect2 doesn't work under 4.3+
10059 collect2name=`${CC} -print-prog-name=collect2`
10060 if test -f "$collect2name" &&
10061 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10062 then
10063 # We have reworked collect2
10064 :
10065 else
10066 # We have old collect2
10067 hardcode_direct=unsupported
10068 # It fails to find uninstalled libraries when the uninstalled
10069 # path is not listed in the libpath. Setting hardcode_minus_L
10070 # to unsupported forces relinking
10071 hardcode_minus_L=yes
10072 hardcode_libdir_flag_spec='-L$libdir'
10073 hardcode_libdir_separator=
10074 fi
10075 ;;
10076 esac
10077 shared_flag='-shared'
10078 if test "$aix_use_runtimelinking" = yes; then
10079 shared_flag="$shared_flag "'${wl}-G'
10080 fi
10081 else
10082 # not using gcc
10083 if test "$host_cpu" = ia64; then
10084 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10085 # chokes on -Wl,-G. The following line is correct:
10086 shared_flag='-G'
10087 else
10088 if test "$aix_use_runtimelinking" = yes; then
10089 shared_flag='${wl}-G'
10090 else
10091 shared_flag='${wl}-bM:SRE'
10092 fi
10093 fi
10094 fi
10095
10096 export_dynamic_flag_spec='${wl}-bexpall'
10097 # It seems that -bexpall does not export symbols beginning with
10098 # underscore (_), so it is better to generate a list of symbols to export.
10099 always_export_symbols=yes
10100 if test "$aix_use_runtimelinking" = yes; then
10101 # Warning - without using the other runtime loading flags (-brtl),
10102 # -berok will link without error, but may produce a broken library.
10103 allow_undefined_flag='-berok'
10104 # Determine the default libpath from the value encoded in an
10105 # empty executable.
10106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10107/* end confdefs.h. */
10108
10109int
10110main ()
10111{
10112
10113 ;
10114 return 0;
10115}
10116_ACEOF
10117if ac_fn_c_try_link "$LINENO"; then :
10118
10119lt_aix_libpath_sed='
10120 /Import File Strings/,/^$/ {
10121 /^0/ {
10122 s/^0 *\(.*\)$/\1/
10123 p
10124 }
10125 }'
10126aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10127# Check for a 64-bit object if we didn't find anything.
10128if test -z "$aix_libpath"; then
10129 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10130fi
10131fi
10132rm -f core conftest.err conftest.$ac_objext \
10133 conftest$ac_exeext conftest.$ac_ext
10134if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10135
10136 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10137 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"
10138 else
10139 if test "$host_cpu" = ia64; then
10140 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10141 allow_undefined_flag="-z nodefs"
10142 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"
10143 else
10144 # Determine the default libpath from the value encoded in an
10145 # empty executable.
10146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10147/* end confdefs.h. */
10148
10149int
10150main ()
10151{
10152
10153 ;
10154 return 0;
10155}
10156_ACEOF
10157if ac_fn_c_try_link "$LINENO"; then :
10158
10159lt_aix_libpath_sed='
10160 /Import File Strings/,/^$/ {
10161 /^0/ {
10162 s/^0 *\(.*\)$/\1/
10163 p
10164 }
10165 }'
10166aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10167# Check for a 64-bit object if we didn't find anything.
10168if test -z "$aix_libpath"; then
10169 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10170fi
10171fi
10172rm -f core conftest.err conftest.$ac_objext \
10173 conftest$ac_exeext conftest.$ac_ext
10174if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10175
10176 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10177 # Warning - without using the other run time loading flags,
10178 # -berok will link without error, but may produce a broken library.
10179 no_undefined_flag=' ${wl}-bernotok'
10180 allow_undefined_flag=' ${wl}-berok'
10181 if test "$with_gnu_ld" = yes; then
10182 # We only use this code for GNU lds that support --whole-archive.
10183 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10184 else
10185 # Exported symbols can be pulled into shared objects from archives
10186 whole_archive_flag_spec='$convenience'
10187 fi
10188 archive_cmds_need_lc=yes
10189 # This is similar to how AIX traditionally builds its shared libraries.
10190 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'
10191 fi
10192 fi
10193 ;;
10194
10195 amigaos*)
10196 case $host_cpu in
10197 powerpc)
10198 # see comment about AmigaOS4 .so support
10199 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10200 archive_expsym_cmds=''
10201 ;;
10202 m68k)
10203 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)'
10204 hardcode_libdir_flag_spec='-L$libdir'
10205 hardcode_minus_L=yes
10206 ;;
10207 esac
10208 ;;
10209
10210 bsdi[45]*)
10211 export_dynamic_flag_spec=-rdynamic
10212 ;;
10213
10214 cygwin* | mingw* | pw32* | cegcc*)
10215 # When not using gcc, we currently assume that we are using
10216 # Microsoft Visual C++.
10217 # hardcode_libdir_flag_spec is actually meaningless, as there is
10218 # no search path for DLLs.
10219 hardcode_libdir_flag_spec=' '
10220 allow_undefined_flag=unsupported
10221 # Tell ltmain to make .lib files, not .a files.
10222 libext=lib
10223 # Tell ltmain to make .dll files, not .so files.
10224 shrext_cmds=".dll"
10225 # FIXME: Setting linknames here is a bad hack.
10226 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10227 # The linker will automatically build a .lib file if we build a DLL.
10228 old_archive_from_new_cmds='true'
10229 # FIXME: Should let the user specify the lib program.
10230 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10231 fix_srcfile_path='`cygpath -w "$srcfile"`'
10232 enable_shared_with_static_runtimes=yes
10233 ;;
10234
10235 darwin* | rhapsody*)
10236
10237
10238 archive_cmds_need_lc=no
10239 hardcode_direct=no
10240 hardcode_automatic=yes
10241 hardcode_shlibpath_var=unsupported
10242 if test "$lt_cv_ld_force_load" = "yes"; then
10243 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\"`'
10244 else
10245 whole_archive_flag_spec=''
10246 fi
10247 link_all_deplibs=yes
10248 allow_undefined_flag="$_lt_dar_allow_undefined"
10249 case $cc_basename in
10250 ifort*) _lt_dar_can_shared=yes ;;
10251 *) _lt_dar_can_shared=$GCC ;;
10252 esac
10253 if test "$_lt_dar_can_shared" = "yes"; then
10254 output_verbose_link_cmd=func_echo_all
10255 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10256 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10257 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}"
10258 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}"
10259
10260 else
10261 ld_shlibs=no
10262 fi
10263
10264 ;;
10265
10266 dgux*)
10267 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10268 hardcode_libdir_flag_spec='-L$libdir'
10269 hardcode_shlibpath_var=no
10270 ;;
10271
10272 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10273 # support. Future versions do this automatically, but an explicit c++rt0.o
10274 # does not break anything, and helps significantly (at the cost of a little
10275 # extra space).
10276 freebsd2.2*)
10277 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10278 hardcode_libdir_flag_spec='-R$libdir'
10279 hardcode_direct=yes
10280 hardcode_shlibpath_var=no
10281 ;;
10282
10283 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10284 freebsd2.*)
10285 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10286 hardcode_direct=yes
10287 hardcode_minus_L=yes
10288 hardcode_shlibpath_var=no
10289 ;;
10290
10291 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10292 freebsd* | dragonfly*)
10293 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10294 hardcode_libdir_flag_spec='-R$libdir'
10295 hardcode_direct=yes
10296 hardcode_shlibpath_var=no
10297 ;;
10298
10299 hpux9*)
10300 if test "$GCC" = yes; then
10301 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'
10302 else
10303 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'
10304 fi
10305 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10306 hardcode_libdir_separator=:
10307 hardcode_direct=yes
10308
10309 # hardcode_minus_L: Not really in the search PATH,
10310 # but as the default location of the library.
10311 hardcode_minus_L=yes
10312 export_dynamic_flag_spec='${wl}-E'
10313 ;;
10314
10315 hpux10*)
10316 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10317 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10318 else
10319 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10320 fi
10321 if test "$with_gnu_ld" = no; then
10322 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10323 hardcode_libdir_flag_spec_ld='+b $libdir'
10324 hardcode_libdir_separator=:
10325 hardcode_direct=yes
10326 hardcode_direct_absolute=yes
10327 export_dynamic_flag_spec='${wl}-E'
10328 # hardcode_minus_L: Not really in the search PATH,
10329 # but as the default location of the library.
10330 hardcode_minus_L=yes
10331 fi
10332 ;;
10333
10334 hpux11*)
10335 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10336 case $host_cpu in
10337 hppa*64*)
10338 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10339 ;;
10340 ia64*)
10341 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10342 ;;
10343 *)
10344 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10345 ;;
10346 esac
10347 else
10348 case $host_cpu in
10349 hppa*64*)
10350 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10351 ;;
10352 ia64*)
10353 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10354 ;;
10355 *)
10356
10357 # Older versions of the 11.00 compiler do not understand -b yet
10358 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10360$as_echo_n "checking if $CC understands -b... " >&6; }
10361if ${lt_cv_prog_compiler__b+:} false; then :
10362 $as_echo_n "(cached) " >&6
10363else
10364 lt_cv_prog_compiler__b=no
10365 save_LDFLAGS="$LDFLAGS"
10366 LDFLAGS="$LDFLAGS -b"
10367 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10368 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10369 # The linker can only warn and ignore the option if not recognized
10370 # So say no if there are warnings
10371 if test -s conftest.err; then
10372 # Append any errors to the config.log.
10373 cat conftest.err 1>&5
10374 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10375 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10376 if diff conftest.exp conftest.er2 >/dev/null; then
10377 lt_cv_prog_compiler__b=yes
10378 fi
10379 else
10380 lt_cv_prog_compiler__b=yes
10381 fi
10382 fi
10383 $RM -r conftest*
10384 LDFLAGS="$save_LDFLAGS"
10385
10386fi
10387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10388$as_echo "$lt_cv_prog_compiler__b" >&6; }
10389
10390if test x"$lt_cv_prog_compiler__b" = xyes; then
10391 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10392else
10393 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10394fi
10395
10396 ;;
10397 esac
10398 fi
10399 if test "$with_gnu_ld" = no; then
10400 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10401 hardcode_libdir_separator=:
10402
10403 case $host_cpu in
10404 hppa*64*|ia64*)
10405 hardcode_direct=no
10406 hardcode_shlibpath_var=no
10407 ;;
10408 *)
10409 hardcode_direct=yes
10410 hardcode_direct_absolute=yes
10411 export_dynamic_flag_spec='${wl}-E'
10412
10413 # hardcode_minus_L: Not really in the search PATH,
10414 # but as the default location of the library.
10415 hardcode_minus_L=yes
10416 ;;
10417 esac
10418 fi
10419 ;;
10420
10421 irix5* | irix6* | nonstopux*)
10422 if test "$GCC" = yes; then
10423 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'
10424 # Try to use the -exported_symbol ld option, if it does not
10425 # work, assume that -exports_file does not work either and
10426 # implicitly export all symbols.
10427 save_LDFLAGS="$LDFLAGS"
10428 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10430/* end confdefs.h. */
10431int foo(void) {}
10432_ACEOF
10433if ac_fn_c_try_link "$LINENO"; then :
10434 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'
10435
10436fi
10437rm -f core conftest.err conftest.$ac_objext \
10438 conftest$ac_exeext conftest.$ac_ext
10439 LDFLAGS="$save_LDFLAGS"
10440 else
10441 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'
10442 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'
10443 fi
10444 archive_cmds_need_lc='no'
10445 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10446 hardcode_libdir_separator=:
10447 inherit_rpath=yes
10448 link_all_deplibs=yes
10449 ;;
10450
10451 netbsd*)
10452 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10453 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10454 else
10455 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10456 fi
10457 hardcode_libdir_flag_spec='-R$libdir'
10458 hardcode_direct=yes
10459 hardcode_shlibpath_var=no
10460 ;;
10461
10462 newsos6)
10463 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10464 hardcode_direct=yes
10465 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10466 hardcode_libdir_separator=:
10467 hardcode_shlibpath_var=no
10468 ;;
10469
10470 *nto* | *qnx*)
10471 ;;
10472
10473 openbsd*)
10474 if test -f /usr/libexec/ld.so; then
10475 hardcode_direct=yes
10476 hardcode_shlibpath_var=no
10477 hardcode_direct_absolute=yes
10478 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10479 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10480 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10481 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10482 export_dynamic_flag_spec='${wl}-E'
10483 else
10484 case $host_os in
10485 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10486 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10487 hardcode_libdir_flag_spec='-R$libdir'
10488 ;;
10489 *)
10490 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10491 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10492 ;;
10493 esac
10494 fi
10495 else
10496 ld_shlibs=no
10497 fi
10498 ;;
10499
10500 os2*)
10501 hardcode_libdir_flag_spec='-L$libdir'
10502 hardcode_minus_L=yes
10503 allow_undefined_flag=unsupported
10504 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'
10505 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10506 ;;
10507
10508 osf3*)
10509 if test "$GCC" = yes; then
10510 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10511 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'
10512 else
10513 allow_undefined_flag=' -expect_unresolved \*'
10514 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'
10515 fi
10516 archive_cmds_need_lc='no'
10517 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10518 hardcode_libdir_separator=:
10519 ;;
10520
10521 osf4* | osf5*) # as osf3* with the addition of -msym flag
10522 if test "$GCC" = yes; then
10523 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10524 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'
10525 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10526 else
10527 allow_undefined_flag=' -expect_unresolved \*'
10528 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'
10529 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~
10530 $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'
10531
10532 # Both c and cxx compiler support -rpath directly
10533 hardcode_libdir_flag_spec='-rpath $libdir'
10534 fi
10535 archive_cmds_need_lc='no'
10536 hardcode_libdir_separator=:
10537 ;;
10538
10539 solaris*)
10540 no_undefined_flag=' -z defs'
10541 if test "$GCC" = yes; then
10542 wlarc='${wl}'
10543 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10544 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10545 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10546 else
10547 case `$CC -V 2>&1` in
10548 *"Compilers 5.0"*)
10549 wlarc=''
10550 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10551 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10552 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10553 ;;
10554 *)
10555 wlarc='${wl}'
10556 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10557 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10558 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10559 ;;
10560 esac
10561 fi
10562 hardcode_libdir_flag_spec='-R$libdir'
10563 hardcode_shlibpath_var=no
10564 case $host_os in
10565 solaris2.[0-5] | solaris2.[0-5].*) ;;
10566 *)
10567 # The compiler driver will combine and reorder linker options,
10568 # but understands `-z linker_flag'. GCC discards it without `$wl',
10569 # but is careful enough not to reorder.
10570 # Supported since Solaris 2.6 (maybe 2.5.1?)
10571 if test "$GCC" = yes; then
10572 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10573 else
10574 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10575 fi
10576 ;;
10577 esac
10578 link_all_deplibs=yes
10579 ;;
10580
10581 sunos4*)
10582 if test "x$host_vendor" = xsequent; then
10583 # Use $CC to link under sequent, because it throws in some extra .o
10584 # files that make .init and .fini sections work.
10585 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10586 else
10587 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10588 fi
10589 hardcode_libdir_flag_spec='-L$libdir'
10590 hardcode_direct=yes
10591 hardcode_minus_L=yes
10592 hardcode_shlibpath_var=no
10593 ;;
10594
10595 sysv4)
10596 case $host_vendor in
10597 sni)
10598 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10599 hardcode_direct=yes # is this really true???
10600 ;;
10601 siemens)
10602 ## LD is ld it makes a PLAMLIB
10603 ## CC just makes a GrossModule.
10604 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10605 reload_cmds='$CC -r -o $output$reload_objs'
10606 hardcode_direct=no
10607 ;;
10608 motorola)
10609 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10610 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10611 ;;
10612 esac
10613 runpath_var='LD_RUN_PATH'
10614 hardcode_shlibpath_var=no
10615 ;;
10616
10617 sysv4.3*)
10618 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10619 hardcode_shlibpath_var=no
10620 export_dynamic_flag_spec='-Bexport'
10621 ;;
10622
10623 sysv4*MP*)
10624 if test -d /usr/nec; then
10625 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10626 hardcode_shlibpath_var=no
10627 runpath_var=LD_RUN_PATH
10628 hardcode_runpath_var=yes
10629 ld_shlibs=yes
10630 fi
10631 ;;
10632
10633 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10634 no_undefined_flag='${wl}-z,text'
10635 archive_cmds_need_lc=no
10636 hardcode_shlibpath_var=no
10637 runpath_var='LD_RUN_PATH'
10638
10639 if test "$GCC" = yes; then
10640 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10641 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10642 else
10643 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10644 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10645 fi
10646 ;;
10647
10648 sysv5* | sco3.2v5* | sco5v6*)
10649 # Note: We can NOT use -z defs as we might desire, because we do not
10650 # link with -lc, and that would cause any symbols used from libc to
10651 # always be unresolved, which means just about no library would
10652 # ever link correctly. If we're not using GNU ld we use -z text
10653 # though, which does catch some bad symbols but isn't as heavy-handed
10654 # as -z defs.
10655 no_undefined_flag='${wl}-z,text'
10656 allow_undefined_flag='${wl}-z,nodefs'
10657 archive_cmds_need_lc=no
10658 hardcode_shlibpath_var=no
10659 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10660 hardcode_libdir_separator=':'
10661 link_all_deplibs=yes
10662 export_dynamic_flag_spec='${wl}-Bexport'
10663 runpath_var='LD_RUN_PATH'
10664
10665 if test "$GCC" = yes; then
10666 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10667 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10668 else
10669 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10670 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10671 fi
10672 ;;
10673
10674 uts4*)
10675 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10676 hardcode_libdir_flag_spec='-L$libdir'
10677 hardcode_shlibpath_var=no
10678 ;;
10679
10680 *)
10681 ld_shlibs=no
10682 ;;
10683 esac
10684
10685 if test x$host_vendor = xsni; then
10686 case $host in
10687 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10688 export_dynamic_flag_spec='${wl}-Blargedynsym'
10689 ;;
10690 esac
10691 fi
10692 fi
10693
10694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10695$as_echo "$ld_shlibs" >&6; }
10696test "$ld_shlibs" = no && can_build_shared=no
10697
10698with_gnu_ld=$with_gnu_ld
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714#
10715# Do we need to explicitly link libc?
10716#
10717case "x$archive_cmds_need_lc" in
10718x|xyes)
10719 # Assume -lc should be added
10720 archive_cmds_need_lc=yes
10721
10722 if test "$enable_shared" = yes && test "$GCC" = yes; then
10723 case $archive_cmds in
10724 *'~'*)
10725 # FIXME: we may have to deal with multi-command sequences.
10726 ;;
10727 '$CC '*)
10728 # Test whether the compiler implicitly links with -lc since on some
10729 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10730 # to ld, don't add -lc before -lgcc.
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10732$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10733if ${lt_cv_archive_cmds_need_lc+:} false; then :
10734 $as_echo_n "(cached) " >&6
10735else
10736 $RM conftest*
10737 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10738
10739 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10740 (eval $ac_compile) 2>&5
10741 ac_status=$?
10742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10743 test $ac_status = 0; } 2>conftest.err; then
10744 soname=conftest
10745 lib=conftest
10746 libobjs=conftest.$ac_objext
10747 deplibs=
10748 wl=$lt_prog_compiler_wl
10749 pic_flag=$lt_prog_compiler_pic
10750 compiler_flags=-v
10751 linker_flags=-v
10752 verstring=
10753 output_objdir=.
10754 libname=conftest
10755 lt_save_allow_undefined_flag=$allow_undefined_flag
10756 allow_undefined_flag=
10757 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10758 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10759 ac_status=$?
10760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10761 test $ac_status = 0; }
10762 then
10763 lt_cv_archive_cmds_need_lc=no
10764 else
10765 lt_cv_archive_cmds_need_lc=yes
10766 fi
10767 allow_undefined_flag=$lt_save_allow_undefined_flag
10768 else
10769 cat conftest.err 1>&5
10770 fi
10771 $RM conftest*
10772
10773fi
10774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10775$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10776 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10777 ;;
10778 esac
10779 fi
10780 ;;
10781esac
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10940$as_echo_n "checking dynamic linker characteristics... " >&6; }
10941
10942if test "$GCC" = yes; then
10943 case $host_os in
10944 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10945 *) lt_awk_arg="/^libraries:/" ;;
10946 esac
10947 case $host_os in
10948 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10949 *) lt_sed_strip_eq="s,=/,/,g" ;;
10950 esac
10951 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10952 case $lt_search_path_spec in
10953 *\;*)
10954 # if the path contains ";" then we assume it to be the separator
10955 # otherwise default to the standard path separator (i.e. ":") - it is
10956 # assumed that no part of a normal pathname contains ";" but that should
10957 # okay in the real world where ";" in dirpaths is itself problematic.
10958 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10959 ;;
10960 *)
10961 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10962 ;;
10963 esac
10964 # Ok, now we have the path, separated by spaces, we can step through it
10965 # and add multilib dir if necessary.
10966 lt_tmp_lt_search_path_spec=
10967 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10968 for lt_sys_path in $lt_search_path_spec; do
10969 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10970 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10971 else
10972 test -d "$lt_sys_path" && \
10973 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10974 fi
10975 done
10976 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10977BEGIN {RS=" "; FS="/|\n";} {
10978 lt_foo="";
10979 lt_count=0;
10980 for (lt_i = NF; lt_i > 0; lt_i--) {
10981 if ($lt_i != "" && $lt_i != ".") {
10982 if ($lt_i == "..") {
10983 lt_count++;
10984 } else {
10985 if (lt_count == 0) {
10986 lt_foo="/" $lt_i lt_foo;
10987 } else {
10988 lt_count--;
10989 }
10990 }
10991 }
10992 }
10993 if (lt_foo != "") { lt_freq[lt_foo]++; }
10994 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10995}'`
10996 # AWK program above erroneously prepends '/' to C:/dos/paths
10997 # for these hosts.
10998 case $host_os in
10999 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11000 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11001 esac
11002 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11003else
11004 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11005fi
11006library_names_spec=
11007libname_spec='lib$name'
11008soname_spec=
11009shrext_cmds=".so"
11010postinstall_cmds=
11011postuninstall_cmds=
11012finish_cmds=
11013finish_eval=
11014shlibpath_var=
11015shlibpath_overrides_runpath=unknown
11016version_type=none
11017dynamic_linker="$host_os ld.so"
11018sys_lib_dlsearch_path_spec="/lib /usr/lib"
11019need_lib_prefix=unknown
11020hardcode_into_libs=no
11021
11022# when you set need_version to no, make sure it does not cause -set_version
11023# flags to be left without arguments
11024need_version=unknown
11025
11026case $host_os in
11027aix3*)
11028 version_type=linux
11029 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11030 shlibpath_var=LIBPATH
11031
11032 # AIX 3 has no versioning support, so we append a major version to the name.
11033 soname_spec='${libname}${release}${shared_ext}$major'
11034 ;;
11035
11036aix[4-9]*)
11037 version_type=linux
11038 need_lib_prefix=no
11039 need_version=no
11040 hardcode_into_libs=yes
11041 if test "$host_cpu" = ia64; then
11042 # AIX 5 supports IA64
11043 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11044 shlibpath_var=LD_LIBRARY_PATH
11045 else
11046 # With GCC up to 2.95.x, collect2 would create an import file
11047 # for dependence libraries. The import file would start with
11048 # the line `#! .'. This would cause the generated library to
11049 # depend on `.', always an invalid library. This was fixed in
11050 # development snapshots of GCC prior to 3.0.
11051 case $host_os in
11052 aix4 | aix4.[01] | aix4.[01].*)
11053 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11054 echo ' yes '
11055 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11056 :
11057 else
11058 can_build_shared=no
11059 fi
11060 ;;
11061 esac
11062 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11063 # soname into executable. Probably we can add versioning support to
11064 # collect2, so additional links can be useful in future.
11065 if test "$aix_use_runtimelinking" = yes; then
11066 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11067 # instead of lib<name>.a to let people know that these are not
11068 # typical AIX shared libraries.
11069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11070 else
11071 # We preserve .a as extension for shared libraries through AIX4.2
11072 # and later when we are not doing run time linking.
11073 library_names_spec='${libname}${release}.a $libname.a'
11074 soname_spec='${libname}${release}${shared_ext}$major'
11075 fi
11076 shlibpath_var=LIBPATH
11077 fi
11078 ;;
11079
11080amigaos*)
11081 case $host_cpu in
11082 powerpc)
11083 # Since July 2007 AmigaOS4 officially supports .so libraries.
11084 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11086 ;;
11087 m68k)
11088 library_names_spec='$libname.ixlibrary $libname.a'
11089 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11090 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'
11091 ;;
11092 esac
11093 ;;
11094
11095beos*)
11096 library_names_spec='${libname}${shared_ext}'
11097 dynamic_linker="$host_os ld.so"
11098 shlibpath_var=LIBRARY_PATH
11099 ;;
11100
11101bsdi[45]*)
11102 version_type=linux
11103 need_version=no
11104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11105 soname_spec='${libname}${release}${shared_ext}$major'
11106 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11107 shlibpath_var=LD_LIBRARY_PATH
11108 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11109 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11110 # the default ld.so.conf also contains /usr/contrib/lib and
11111 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11112 # libtool to hard-code these into programs
11113 ;;
11114
11115cygwin* | mingw* | pw32* | cegcc*)
11116 version_type=windows
11117 shrext_cmds=".dll"
11118 need_version=no
11119 need_lib_prefix=no
11120
11121 case $GCC,$host_os in
11122 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11123 library_names_spec='$libname.dll.a'
11124 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11125 postinstall_cmds='base_file=`basename \${file}`~
11126 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11127 dldir=$destdir/`dirname \$dlpath`~
11128 test -d \$dldir || mkdir -p \$dldir~
11129 $install_prog $dir/$dlname \$dldir/$dlname~
11130 chmod a+x \$dldir/$dlname~
11131 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11132 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11133 fi'
11134 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11135 dlpath=$dir/\$dldll~
11136 $RM \$dlpath'
11137 shlibpath_overrides_runpath=yes
11138
11139 case $host_os in
11140 cygwin*)
11141 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11142 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11143
11144 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11145 ;;
11146 mingw* | cegcc*)
11147 # MinGW DLLs use traditional 'lib' prefix
11148 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11149 ;;
11150 pw32*)
11151 # pw32 DLLs use 'pw' prefix rather than 'lib'
11152 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11153 ;;
11154 esac
11155 ;;
11156
11157 *)
11158 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11159 ;;
11160 esac
11161 dynamic_linker='Win32 ld.exe'
11162 # FIXME: first we should search . and the directory the executable is in
11163 shlibpath_var=PATH
11164 ;;
11165
11166darwin* | rhapsody*)
11167 dynamic_linker="$host_os dyld"
11168 version_type=darwin
11169 need_lib_prefix=no
11170 need_version=no
11171 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11172 soname_spec='${libname}${release}${major}$shared_ext'
11173 shlibpath_overrides_runpath=yes
11174 shlibpath_var=DYLD_LIBRARY_PATH
11175 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11176
11177 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11178 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11179 ;;
11180
11181dgux*)
11182 version_type=linux
11183 need_lib_prefix=no
11184 need_version=no
11185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11186 soname_spec='${libname}${release}${shared_ext}$major'
11187 shlibpath_var=LD_LIBRARY_PATH
11188 ;;
11189
11190freebsd* | dragonfly*)
11191 # DragonFly does not have aout. When/if they implement a new
11192 # versioning mechanism, adjust this.
11193 if test -x /usr/bin/objformat; then
11194 objformat=`/usr/bin/objformat`
11195 else
11196 case $host_os in
11197 freebsd[23].*) objformat=aout ;;
11198 *) objformat=elf ;;
11199 esac
11200 fi
11201 version_type=freebsd-$objformat
11202 case $version_type in
11203 freebsd-elf*)
11204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11205 need_version=no
11206 need_lib_prefix=no
11207 ;;
11208 freebsd-*)
11209 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11210 need_version=yes
11211 ;;
11212 esac
11213 shlibpath_var=LD_LIBRARY_PATH
11214 case $host_os in
11215 freebsd2.*)
11216 shlibpath_overrides_runpath=yes
11217 ;;
11218 freebsd3.[01]* | freebsdelf3.[01]*)
11219 shlibpath_overrides_runpath=yes
11220 hardcode_into_libs=yes
11221 ;;
11222 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11223 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11224 shlibpath_overrides_runpath=no
11225 hardcode_into_libs=yes
11226 ;;
11227 *) # from 4.6 on, and DragonFly
11228 shlibpath_overrides_runpath=yes
11229 hardcode_into_libs=yes
11230 ;;
11231 esac
11232 ;;
11233
11234haiku*)
11235 version_type=linux
11236 need_lib_prefix=no
11237 need_version=no
11238 dynamic_linker="$host_os runtime_loader"
11239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11240 soname_spec='${libname}${release}${shared_ext}$major'
11241 shlibpath_var=LIBRARY_PATH
11242 shlibpath_overrides_runpath=yes
11243 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11244 hardcode_into_libs=yes
11245 ;;
11246
11247hpux9* | hpux10* | hpux11*)
11248 # Give a soname corresponding to the major version so that dld.sl refuses to
11249 # link against other versions.
11250 version_type=sunos
11251 need_lib_prefix=no
11252 need_version=no
11253 case $host_cpu in
11254 ia64*)
11255 shrext_cmds='.so'
11256 hardcode_into_libs=yes
11257 dynamic_linker="$host_os dld.so"
11258 shlibpath_var=LD_LIBRARY_PATH
11259 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11261 soname_spec='${libname}${release}${shared_ext}$major'
11262 if test "X$HPUX_IA64_MODE" = X32; then
11263 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11264 else
11265 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11266 fi
11267 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11268 ;;
11269 hppa*64*)
11270 shrext_cmds='.sl'
11271 hardcode_into_libs=yes
11272 dynamic_linker="$host_os dld.sl"
11273 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11274 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11276 soname_spec='${libname}${release}${shared_ext}$major'
11277 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11278 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11279 ;;
11280 *)
11281 shrext_cmds='.sl'
11282 dynamic_linker="$host_os dld.sl"
11283 shlibpath_var=SHLIB_PATH
11284 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11286 soname_spec='${libname}${release}${shared_ext}$major'
11287 ;;
11288 esac
11289 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11290 postinstall_cmds='chmod 555 $lib'
11291 # or fails outright, so override atomically:
11292 install_override_mode=555
11293 ;;
11294
11295interix[3-9]*)
11296 version_type=linux
11297 need_lib_prefix=no
11298 need_version=no
11299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11300 soname_spec='${libname}${release}${shared_ext}$major'
11301 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11302 shlibpath_var=LD_LIBRARY_PATH
11303 shlibpath_overrides_runpath=no
11304 hardcode_into_libs=yes
11305 ;;
11306
11307irix5* | irix6* | nonstopux*)
11308 case $host_os in
11309 nonstopux*) version_type=nonstopux ;;
11310 *)
11311 if test "$lt_cv_prog_gnu_ld" = yes; then
11312 version_type=linux
11313 else
11314 version_type=irix
11315 fi ;;
11316 esac
11317 need_lib_prefix=no
11318 need_version=no
11319 soname_spec='${libname}${release}${shared_ext}$major'
11320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11321 case $host_os in
11322 irix5* | nonstopux*)
11323 libsuff= shlibsuff=
11324 ;;
11325 *)
11326 case $LD in # libtool.m4 will add one of these switches to LD
11327 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11328 libsuff= shlibsuff= libmagic=32-bit;;
11329 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11330 libsuff=32 shlibsuff=N32 libmagic=N32;;
11331 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11332 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11333 *) libsuff= shlibsuff= libmagic=never-match;;
11334 esac
11335 ;;
11336 esac
11337 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11338 shlibpath_overrides_runpath=no
11339 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11340 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11341 hardcode_into_libs=yes
11342 ;;
11343
11344# No shared lib support for Linux oldld, aout, or coff.
11345linux*oldld* | linux*aout* | linux*coff*)
11346 dynamic_linker=no
11347 ;;
11348
11349# This must be Linux ELF.
11350linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11351 version_type=linux
11352 need_lib_prefix=no
11353 need_version=no
11354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11355 soname_spec='${libname}${release}${shared_ext}$major'
11356 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11357 shlibpath_var=LD_LIBRARY_PATH
11358 shlibpath_overrides_runpath=no
11359
11360 # Some binutils ld are patched to set DT_RUNPATH
11361 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11362 $as_echo_n "(cached) " >&6
11363else
11364 lt_cv_shlibpath_overrides_runpath=no
11365 save_LDFLAGS=$LDFLAGS
11366 save_libdir=$libdir
11367 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11368 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11370/* end confdefs.h. */
11371
11372int
11373main ()
11374{
11375
11376 ;
11377 return 0;
11378}
11379_ACEOF
11380if ac_fn_c_try_link "$LINENO"; then :
11381 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11382 lt_cv_shlibpath_overrides_runpath=yes
11383fi
11384fi
11385rm -f core conftest.err conftest.$ac_objext \
11386 conftest$ac_exeext conftest.$ac_ext
11387 LDFLAGS=$save_LDFLAGS
11388 libdir=$save_libdir
11389
11390fi
11391
11392 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11393
11394 # This implies no fast_install, which is unacceptable.
11395 # Some rework will be needed to allow for fast_install
11396 # before this can be enabled.
11397 hardcode_into_libs=yes
11398
11399 # Append ld.so.conf contents to the search path
11400 if test -f /etc/ld.so.conf; then
11401 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' ' '`
11402 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11403 fi
11404
11405 # We used to test for /lib/ld.so.1 and disable shared libraries on
11406 # powerpc, because MkLinux only supported shared libraries with the
11407 # GNU dynamic linker. Since this was broken with cross compilers,
11408 # most powerpc-linux boxes support dynamic linking these days and
11409 # people can always --disable-shared, the test was removed, and we
11410 # assume the GNU/Linux dynamic linker is in use.
11411 dynamic_linker='GNU/Linux ld.so'
11412 ;;
11413
11414netbsd*)
11415 version_type=sunos
11416 need_lib_prefix=no
11417 need_version=no
11418 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11420 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11421 dynamic_linker='NetBSD (a.out) ld.so'
11422 else
11423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11424 soname_spec='${libname}${release}${shared_ext}$major'
11425 dynamic_linker='NetBSD ld.elf_so'
11426 fi
11427 shlibpath_var=LD_LIBRARY_PATH
11428 shlibpath_overrides_runpath=yes
11429 hardcode_into_libs=yes
11430 ;;
11431
11432newsos6)
11433 version_type=linux
11434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11435 shlibpath_var=LD_LIBRARY_PATH
11436 shlibpath_overrides_runpath=yes
11437 ;;
11438
11439*nto* | *qnx*)
11440 version_type=qnx
11441 need_lib_prefix=no
11442 need_version=no
11443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11444 soname_spec='${libname}${release}${shared_ext}$major'
11445 shlibpath_var=LD_LIBRARY_PATH
11446 shlibpath_overrides_runpath=no
11447 hardcode_into_libs=yes
11448 dynamic_linker='ldqnx.so'
11449 ;;
11450
11451openbsd*)
11452 version_type=sunos
11453 sys_lib_dlsearch_path_spec="/usr/lib"
11454 need_lib_prefix=no
11455 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11456 case $host_os in
11457 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11458 *) need_version=no ;;
11459 esac
11460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11461 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11462 shlibpath_var=LD_LIBRARY_PATH
11463 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11464 case $host_os in
11465 openbsd2.[89] | openbsd2.[89].*)
11466 shlibpath_overrides_runpath=no
11467 ;;
11468 *)
11469 shlibpath_overrides_runpath=yes
11470 ;;
11471 esac
11472 else
11473 shlibpath_overrides_runpath=yes
11474 fi
11475 ;;
11476
11477os2*)
11478 libname_spec='$name'
11479 shrext_cmds=".dll"
11480 need_lib_prefix=no
11481 library_names_spec='$libname${shared_ext} $libname.a'
11482 dynamic_linker='OS/2 ld.exe'
11483 shlibpath_var=LIBPATH
11484 ;;
11485
11486osf3* | osf4* | osf5*)
11487 version_type=osf
11488 need_lib_prefix=no
11489 need_version=no
11490 soname_spec='${libname}${release}${shared_ext}$major'
11491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11492 shlibpath_var=LD_LIBRARY_PATH
11493 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11494 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11495 ;;
11496
11497rdos*)
11498 dynamic_linker=no
11499 ;;
11500
11501solaris*)
11502 version_type=linux
11503 need_lib_prefix=no
11504 need_version=no
11505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11506 soname_spec='${libname}${release}${shared_ext}$major'
11507 shlibpath_var=LD_LIBRARY_PATH
11508 shlibpath_overrides_runpath=yes
11509 hardcode_into_libs=yes
11510 # ldd complains unless libraries are executable
11511 postinstall_cmds='chmod +x $lib'
11512 ;;
11513
11514sunos4*)
11515 version_type=sunos
11516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11517 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11518 shlibpath_var=LD_LIBRARY_PATH
11519 shlibpath_overrides_runpath=yes
11520 if test "$with_gnu_ld" = yes; then
11521 need_lib_prefix=no
11522 fi
11523 need_version=yes
11524 ;;
11525
11526sysv4 | sysv4.3*)
11527 version_type=linux
11528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11529 soname_spec='${libname}${release}${shared_ext}$major'
11530 shlibpath_var=LD_LIBRARY_PATH
11531 case $host_vendor in
11532 sni)
11533 shlibpath_overrides_runpath=no
11534 need_lib_prefix=no
11535 runpath_var=LD_RUN_PATH
11536 ;;
11537 siemens)
11538 need_lib_prefix=no
11539 ;;
11540 motorola)
11541 need_lib_prefix=no
11542 need_version=no
11543 shlibpath_overrides_runpath=no
11544 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11545 ;;
11546 esac
11547 ;;
11548
11549sysv4*MP*)
11550 if test -d /usr/nec ;then
11551 version_type=linux
11552 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11553 soname_spec='$libname${shared_ext}.$major'
11554 shlibpath_var=LD_LIBRARY_PATH
11555 fi
11556 ;;
11557
11558sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11559 version_type=freebsd-elf
11560 need_lib_prefix=no
11561 need_version=no
11562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11563 soname_spec='${libname}${release}${shared_ext}$major'
11564 shlibpath_var=LD_LIBRARY_PATH
11565 shlibpath_overrides_runpath=yes
11566 hardcode_into_libs=yes
11567 if test "$with_gnu_ld" = yes; then
11568 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11569 else
11570 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11571 case $host_os in
11572 sco3.2v5*)
11573 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11574 ;;
11575 esac
11576 fi
11577 sys_lib_dlsearch_path_spec='/usr/lib'
11578 ;;
11579
11580tpf*)
11581 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11582 version_type=linux
11583 need_lib_prefix=no
11584 need_version=no
11585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11586 shlibpath_var=LD_LIBRARY_PATH
11587 shlibpath_overrides_runpath=no
11588 hardcode_into_libs=yes
11589 ;;
11590
11591uts4*)
11592 version_type=linux
11593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11594 soname_spec='${libname}${release}${shared_ext}$major'
11595 shlibpath_var=LD_LIBRARY_PATH
11596 ;;
11597
11598*)
11599 dynamic_linker=no
11600 ;;
11601esac
11602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11603$as_echo "$dynamic_linker" >&6; }
11604test "$dynamic_linker" = no && can_build_shared=no
11605
11606variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11607if test "$GCC" = yes; then
11608 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11609fi
11610
11611if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11612 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11613fi
11614if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11615 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11616fi
11617
11618
11619
11620
11621
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11710$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11711hardcode_action=
11712if test -n "$hardcode_libdir_flag_spec" ||
11713 test -n "$runpath_var" ||
11714 test "X$hardcode_automatic" = "Xyes" ; then
11715
11716 # We can hardcode non-existent directories.
11717 if test "$hardcode_direct" != no &&
11718 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11719 # have to relink, otherwise we might link with an installed library
11720 # when we should be linking with a yet-to-be-installed one
11721 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11722 test "$hardcode_minus_L" != no; then
11723 # Linking always hardcodes the temporary library directory.
11724 hardcode_action=relink
11725 else
11726 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11727 hardcode_action=immediate
11728 fi
11729else
11730 # We cannot hardcode anything, or else we can only hardcode existing
11731 # directories.
11732 hardcode_action=unsupported
11733fi
11734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11735$as_echo "$hardcode_action" >&6; }
11736
11737if test "$hardcode_action" = relink ||
11738 test "$inherit_rpath" = yes; then
11739 # Fast installation is not supported
11740 enable_fast_install=no
11741elif test "$shlibpath_overrides_runpath" = yes ||
11742 test "$enable_shared" = no; then
11743 # Fast installation is not necessary
11744 enable_fast_install=needless
11745fi
11746
11747
11748
11749
11750
11751
11752 if test "x$enable_dlopen" != xyes; then
11753 enable_dlopen=unknown
11754 enable_dlopen_self=unknown
11755 enable_dlopen_self_static=unknown
11756else
11757 lt_cv_dlopen=no
11758 lt_cv_dlopen_libs=
11759
11760 case $host_os in
11761 beos*)
11762 lt_cv_dlopen="load_add_on"
11763 lt_cv_dlopen_libs=
11764 lt_cv_dlopen_self=yes
11765 ;;
11766
11767 mingw* | pw32* | cegcc*)
11768 lt_cv_dlopen="LoadLibrary"
11769 lt_cv_dlopen_libs=
11770 ;;
11771
11772 cygwin*)
11773 lt_cv_dlopen="dlopen"
11774 lt_cv_dlopen_libs=
11775 ;;
11776
11777 darwin*)
11778 # if libdl is installed we need to link against it
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11780$as_echo_n "checking for dlopen in -ldl... " >&6; }
11781if ${ac_cv_lib_dl_dlopen+:} false; then :
11782 $as_echo_n "(cached) " >&6
11783else
11784 ac_check_lib_save_LIBS=$LIBS
11785LIBS="-ldl $LIBS"
11786cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11787/* end confdefs.h. */
11788
11789/* Override any GCC internal prototype to avoid an error.
11790 Use char because int might match the return type of a GCC
11791 builtin and then its argument prototype would still apply. */
11792#ifdef __cplusplus
11793extern "C"
11794#endif
11795char dlopen ();
11796int
11797main ()
11798{
11799return dlopen ();
11800 ;
11801 return 0;
11802}
11803_ACEOF
11804if ac_fn_c_try_link "$LINENO"; then :
11805 ac_cv_lib_dl_dlopen=yes
11806else
11807 ac_cv_lib_dl_dlopen=no
11808fi
11809rm -f core conftest.err conftest.$ac_objext \
11810 conftest$ac_exeext conftest.$ac_ext
11811LIBS=$ac_check_lib_save_LIBS
11812fi
11813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11814$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11815if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11816 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11817else
11818
11819 lt_cv_dlopen="dyld"
11820 lt_cv_dlopen_libs=
11821 lt_cv_dlopen_self=yes
11822
11823fi
11824
11825 ;;
11826
11827 *)
11828 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11829if test "x$ac_cv_func_shl_load" = xyes; then :
11830 lt_cv_dlopen="shl_load"
11831else
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11833$as_echo_n "checking for shl_load in -ldld... " >&6; }
11834if ${ac_cv_lib_dld_shl_load+:} false; then :
11835 $as_echo_n "(cached) " >&6
11836else
11837 ac_check_lib_save_LIBS=$LIBS
11838LIBS="-ldld $LIBS"
11839cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11840/* end confdefs.h. */
11841
11842/* Override any GCC internal prototype to avoid an error.
11843 Use char because int might match the return type of a GCC
11844 builtin and then its argument prototype would still apply. */
11845#ifdef __cplusplus
11846extern "C"
11847#endif
11848char shl_load ();
a48ff3ef
MF
11849int
11850main ()
11851{
b5689863 11852return shl_load ();
a48ff3ef
MF
11853 ;
11854 return 0;
11855}
11856_ACEOF
11857if ac_fn_c_try_link "$LINENO"; then :
b5689863 11858 ac_cv_lib_dld_shl_load=yes
a48ff3ef 11859else
b5689863 11860 ac_cv_lib_dld_shl_load=no
a48ff3ef
MF
11861fi
11862rm -f core conftest.err conftest.$ac_objext \
11863 conftest$ac_exeext conftest.$ac_ext
b5689863 11864LIBS=$ac_check_lib_save_LIBS
a48ff3ef 11865fi
b5689863
MF
11866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11867$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11868if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11869 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11870else
11871 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11872if test "x$ac_cv_func_dlopen" = xyes; then :
11873 lt_cv_dlopen="dlopen"
11874else
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11876$as_echo_n "checking for dlopen in -ldl... " >&6; }
11877if ${ac_cv_lib_dl_dlopen+:} false; then :
11878 $as_echo_n "(cached) " >&6
11879else
11880 ac_check_lib_save_LIBS=$LIBS
11881LIBS="-ldl $LIBS"
11882cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11883/* end confdefs.h. */
a48ff3ef 11884
b5689863
MF
11885/* Override any GCC internal prototype to avoid an error.
11886 Use char because int might match the return type of a GCC
11887 builtin and then its argument prototype would still apply. */
11888#ifdef __cplusplus
11889extern "C"
11890#endif
11891char dlopen ();
11892int
11893main ()
11894{
11895return dlopen ();
11896 ;
11897 return 0;
11898}
11899_ACEOF
11900if ac_fn_c_try_link "$LINENO"; then :
11901 ac_cv_lib_dl_dlopen=yes
11902else
11903 ac_cv_lib_dl_dlopen=no
a48ff3ef 11904fi
b5689863
MF
11905rm -f core conftest.err conftest.$ac_objext \
11906 conftest$ac_exeext conftest.$ac_ext
11907LIBS=$ac_check_lib_save_LIBS
11908fi
11909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11910$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11911if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11912 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11913else
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11915$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11916if ${ac_cv_lib_svld_dlopen+:} false; then :
11917 $as_echo_n "(cached) " >&6
11918else
11919 ac_check_lib_save_LIBS=$LIBS
11920LIBS="-lsvld $LIBS"
11921cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11922/* end confdefs.h. */
a48ff3ef 11923
b5689863
MF
11924/* Override any GCC internal prototype to avoid an error.
11925 Use char because int might match the return type of a GCC
11926 builtin and then its argument prototype would still apply. */
11927#ifdef __cplusplus
11928extern "C"
b15c5d7a 11929#endif
b5689863
MF
11930char dlopen ();
11931int
11932main ()
11933{
11934return dlopen ();
11935 ;
11936 return 0;
11937}
b15c5d7a 11938_ACEOF
b5689863
MF
11939if ac_fn_c_try_link "$LINENO"; then :
11940 ac_cv_lib_svld_dlopen=yes
11941else
11942 ac_cv_lib_svld_dlopen=no
b15c5d7a 11943fi
b5689863
MF
11944rm -f core conftest.err conftest.$ac_objext \
11945 conftest$ac_exeext conftest.$ac_ext
11946LIBS=$ac_check_lib_save_LIBS
11947fi
11948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11949$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11950if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11951 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11952else
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11954$as_echo_n "checking for dld_link in -ldld... " >&6; }
11955if ${ac_cv_lib_dld_dld_link+:} false; then :
11956 $as_echo_n "(cached) " >&6
11957else
11958 ac_check_lib_save_LIBS=$LIBS
11959LIBS="-ldld $LIBS"
11960cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11961/* end confdefs.h. */
b15c5d7a 11962
b5689863
MF
11963/* Override any GCC internal prototype to avoid an error.
11964 Use char because int might match the return type of a GCC
11965 builtin and then its argument prototype would still apply. */
11966#ifdef __cplusplus
11967extern "C"
11968#endif
11969char dld_link ();
11970int
11971main ()
11972{
11973return dld_link ();
11974 ;
11975 return 0;
11976}
b15c5d7a 11977_ACEOF
b5689863
MF
11978if ac_fn_c_try_link "$LINENO"; then :
11979 ac_cv_lib_dld_dld_link=yes
11980else
11981 ac_cv_lib_dld_dld_link=no
11982fi
11983rm -f core conftest.err conftest.$ac_objext \
11984 conftest$ac_exeext conftest.$ac_ext
11985LIBS=$ac_check_lib_save_LIBS
11986fi
11987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11988$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11989if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11990 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11991fi
b15c5d7a
MF
11992
11993
11994fi
b15c5d7a 11995
b5689863
MF
11996
11997fi
b15c5d7a
MF
11998
11999
12000fi
b15c5d7a 12001
b5689863
MF
12002
12003fi
b15c5d7a
MF
12004
12005
12006fi
b15c5d7a 12007
b5689863
MF
12008 ;;
12009 esac
b15c5d7a 12010
b5689863
MF
12011 if test "x$lt_cv_dlopen" != xno; then
12012 enable_dlopen=yes
12013 else
12014 enable_dlopen=no
12015 fi
b15c5d7a 12016
b5689863
MF
12017 case $lt_cv_dlopen in
12018 dlopen)
12019 save_CPPFLAGS="$CPPFLAGS"
12020 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
b15c5d7a 12021
b5689863
MF
12022 save_LDFLAGS="$LDFLAGS"
12023 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
b15c5d7a 12024
b5689863
MF
12025 save_LIBS="$LIBS"
12026 LIBS="$lt_cv_dlopen_libs $LIBS"
b15c5d7a 12027
b5689863
MF
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12029$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12030if ${lt_cv_dlopen_self+:} false; then :
12031 $as_echo_n "(cached) " >&6
12032else
12033 if test "$cross_compiling" = yes; then :
12034 lt_cv_dlopen_self=cross
12035else
12036 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12037 lt_status=$lt_dlunknown
12038 cat > conftest.$ac_ext <<_LT_EOF
d73f39ee 12039#line 12039 "configure"
b5689863
MF
12040#include "confdefs.h"
12041
12042#if HAVE_DLFCN_H
12043#include <dlfcn.h>
b15c5d7a 12044#endif
b15c5d7a 12045
b5689863 12046#include <stdio.h>
b15c5d7a 12047
b5689863
MF
12048#ifdef RTLD_GLOBAL
12049# define LT_DLGLOBAL RTLD_GLOBAL
12050#else
12051# ifdef DL_GLOBAL
12052# define LT_DLGLOBAL DL_GLOBAL
12053# else
12054# define LT_DLGLOBAL 0
12055# endif
12056#endif
b15c5d7a 12057
b5689863
MF
12058/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12059 find out it does not work in some platform. */
12060#ifndef LT_DLLAZY_OR_NOW
12061# ifdef RTLD_LAZY
12062# define LT_DLLAZY_OR_NOW RTLD_LAZY
12063# else
12064# ifdef DL_LAZY
12065# define LT_DLLAZY_OR_NOW DL_LAZY
12066# else
12067# ifdef RTLD_NOW
12068# define LT_DLLAZY_OR_NOW RTLD_NOW
12069# else
12070# ifdef DL_NOW
12071# define LT_DLLAZY_OR_NOW DL_NOW
12072# else
12073# define LT_DLLAZY_OR_NOW 0
12074# endif
12075# endif
12076# endif
12077# endif
b15c5d7a 12078#endif
b5689863
MF
12079
12080/* When -fvisbility=hidden is used, assume the code has been annotated
12081 correspondingly for the symbols needed. */
12082#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12083void fnord () __attribute__((visibility("default")));
b15c5d7a 12084#endif
b15c5d7a 12085
b5689863
MF
12086void fnord () { int i=42; }
12087int main ()
12088{
12089 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12090 int status = $lt_dlunknown;
b15c5d7a 12091
b5689863
MF
12092 if (self)
12093 {
12094 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12095 else
12096 {
12097 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12098 else puts (dlerror ());
12099 }
12100 /* dlclose (self); */
12101 }
12102 else
12103 puts (dlerror ());
b15c5d7a 12104
b5689863
MF
12105 return status;
12106}
12107_LT_EOF
12108 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12109 (eval $ac_link) 2>&5
12110 ac_status=$?
12111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12112 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12113 (./conftest; exit; ) >&5 2>/dev/null
12114 lt_status=$?
12115 case x$lt_status in
12116 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12117 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12118 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12119 esac
12120 else :
12121 # compilation failed
12122 lt_cv_dlopen_self=no
12123 fi
b15c5d7a 12124fi
b5689863 12125rm -fr conftest*
b15c5d7a
MF
12126
12127
12128fi
b5689863
MF
12129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12130$as_echo "$lt_cv_dlopen_self" >&6; }
12131
12132 if test "x$lt_cv_dlopen_self" = xyes; then
12133 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12135$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12136if ${lt_cv_dlopen_self_static+:} false; then :
12137 $as_echo_n "(cached) " >&6
12138else
12139 if test "$cross_compiling" = yes; then :
12140 lt_cv_dlopen_self_static=cross
12141else
12142 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12143 lt_status=$lt_dlunknown
12144 cat > conftest.$ac_ext <<_LT_EOF
d73f39ee 12145#line 12145 "configure"
b5689863
MF
12146#include "confdefs.h"
12147
12148#if HAVE_DLFCN_H
12149#include <dlfcn.h>
b15c5d7a 12150#endif
b15c5d7a 12151
b5689863 12152#include <stdio.h>
b15c5d7a 12153
b5689863
MF
12154#ifdef RTLD_GLOBAL
12155# define LT_DLGLOBAL RTLD_GLOBAL
12156#else
12157# ifdef DL_GLOBAL
12158# define LT_DLGLOBAL DL_GLOBAL
12159# else
12160# define LT_DLGLOBAL 0
12161# endif
12162#endif
b15c5d7a 12163
b5689863
MF
12164/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12165 find out it does not work in some platform. */
12166#ifndef LT_DLLAZY_OR_NOW
12167# ifdef RTLD_LAZY
12168# define LT_DLLAZY_OR_NOW RTLD_LAZY
12169# else
12170# ifdef DL_LAZY
12171# define LT_DLLAZY_OR_NOW DL_LAZY
12172# else
12173# ifdef RTLD_NOW
12174# define LT_DLLAZY_OR_NOW RTLD_NOW
12175# else
12176# ifdef DL_NOW
12177# define LT_DLLAZY_OR_NOW DL_NOW
12178# else
12179# define LT_DLLAZY_OR_NOW 0
12180# endif
12181# endif
12182# endif
12183# endif
b15c5d7a 12184#endif
b5689863
MF
12185
12186/* When -fvisbility=hidden is used, assume the code has been annotated
12187 correspondingly for the symbols needed. */
12188#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12189void fnord () __attribute__((visibility("default")));
b15c5d7a 12190#endif
b15c5d7a 12191
b5689863
MF
12192void fnord () { int i=42; }
12193int main ()
12194{
12195 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12196 int status = $lt_dlunknown;
12197
12198 if (self)
12199 {
12200 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12201 else
12202 {
12203 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12204 else puts (dlerror ());
12205 }
12206 /* dlclose (self); */
12207 }
12208 else
12209 puts (dlerror ());
12210
12211 return status;
12212}
12213_LT_EOF
12214 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12215 (eval $ac_link) 2>&5
12216 ac_status=$?
12217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12218 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12219 (./conftest; exit; ) >&5 2>/dev/null
12220 lt_status=$?
12221 case x$lt_status in
12222 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12223 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12224 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12225 esac
12226 else :
12227 # compilation failed
12228 lt_cv_dlopen_self_static=no
12229 fi
12230fi
12231rm -fr conftest*
b15c5d7a
MF
12232
12233
12234fi
b5689863
MF
12235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12236$as_echo "$lt_cv_dlopen_self_static" >&6; }
12237 fi
b15c5d7a 12238
b5689863
MF
12239 CPPFLAGS="$save_CPPFLAGS"
12240 LDFLAGS="$save_LDFLAGS"
12241 LIBS="$save_LIBS"
12242 ;;
12243 esac
b15c5d7a 12244
b5689863
MF
12245 case $lt_cv_dlopen_self in
12246 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12247 *) enable_dlopen_self=unknown ;;
12248 esac
b15c5d7a 12249
b5689863
MF
12250 case $lt_cv_dlopen_self_static in
12251 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12252 *) enable_dlopen_self_static=unknown ;;
12253 esac
b15c5d7a 12254fi
b15c5d7a 12255
b15c5d7a
MF
12256
12257
b15c5d7a
MF
12258
12259
b15c5d7a 12260
b15c5d7a
MF
12261
12262
b15c5d7a 12263
b15c5d7a 12264
b15c5d7a 12265
b15c5d7a
MF
12266
12267
b15c5d7a
MF
12268
12269
a48ff3ef 12270
a48ff3ef 12271
b5689863
MF
12272striplib=
12273old_striplib=
12274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12275$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12276if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12277 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12278 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12280$as_echo "yes" >&6; }
a48ff3ef 12281else
b5689863
MF
12282# FIXME - insert some real tests, host_os isn't really good enough
12283 case $host_os in
12284 darwin*)
12285 if test -n "$STRIP" ; then
12286 striplib="$STRIP -x"
12287 old_striplib="$STRIP -S"
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12289$as_echo "yes" >&6; }
12290 else
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12292$as_echo "no" >&6; }
12293 fi
12294 ;;
12295 *)
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12297$as_echo "no" >&6; }
12298 ;;
12299 esac
a48ff3ef
MF
12300fi
12301
a48ff3ef 12302
a48ff3ef 12303
a48ff3ef 12304
a48ff3ef
MF
12305
12306
a48ff3ef 12307
a48ff3ef 12308
a48ff3ef 12309
a48ff3ef 12310
a48ff3ef 12311
a48ff3ef 12312
b5689863
MF
12313 # Report which library types will actually be built
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12315$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12317$as_echo "$can_build_shared" >&6; }
a48ff3ef 12318
b5689863
MF
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12320$as_echo_n "checking whether to build shared libraries... " >&6; }
12321 test "$can_build_shared" = "no" && enable_shared=no
a48ff3ef 12322
b5689863
MF
12323 # On AIX, shared libraries and static libraries use the same namespace, and
12324 # are all built from PIC.
12325 case $host_os in
12326 aix3*)
12327 test "$enable_shared" = yes && enable_static=no
12328 if test -n "$RANLIB"; then
12329 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12330 postinstall_cmds='$RANLIB $lib'
12331 fi
12332 ;;
a48ff3ef 12333
b5689863
MF
12334 aix[4-9]*)
12335 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12336 test "$enable_shared" = yes && enable_static=no
12337 fi
12338 ;;
12339 esac
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12341$as_echo "$enable_shared" >&6; }
12342
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12344$as_echo_n "checking whether to build static libraries... " >&6; }
12345 # Make sure either enable_shared or enable_static is yes.
12346 test "$enable_shared" = yes || enable_static=yes
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12348$as_echo "$enable_static" >&6; }
a48ff3ef 12349
a48ff3ef 12350
a48ff3ef 12351
b15c5d7a 12352
b15c5d7a 12353fi
b5689863
MF
12354ac_ext=c
12355ac_cpp='$CPP $CPPFLAGS'
12356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12358ac_compiler_gnu=$ac_cv_c_compiler_gnu
b15c5d7a 12359
b5689863 12360CC="$lt_save_CC"
b15c5d7a
MF
12361
12362
a48ff3ef 12363
a48ff3ef 12364
a48ff3ef 12365
a48ff3ef 12366
a48ff3ef 12367
a48ff3ef 12368
a48ff3ef 12369
a48ff3ef
MF
12370
12371
a48ff3ef 12372
b5689863
MF
12373
12374 ac_config_commands="$ac_config_commands libtool"
12375
12376
12377
12378
12379# Only expand once:
12380
12381
a48ff3ef 12382
b15c5d7a 12383
07490bf8
MF
12384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
12385$as_echo_n "checking for bind in -lsocket... " >&6; }
12386if ${ac_cv_lib_socket_bind+:} false; then :
12387 $as_echo_n "(cached) " >&6
12388else
12389 ac_check_lib_save_LIBS=$LIBS
12390LIBS="-lsocket $LIBS"
12391cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12392/* end confdefs.h. */
12393
12394/* Override any GCC internal prototype to avoid an error.
12395 Use char because int might match the return type of a GCC
12396 builtin and then its argument prototype would still apply. */
12397#ifdef __cplusplus
12398extern "C"
12399#endif
12400char bind ();
12401int
12402main ()
12403{
12404return bind ();
12405 ;
12406 return 0;
12407}
12408_ACEOF
12409if ac_fn_c_try_link "$LINENO"; then :
12410 ac_cv_lib_socket_bind=yes
12411else
12412 ac_cv_lib_socket_bind=no
12413fi
12414rm -f core conftest.err conftest.$ac_objext \
12415 conftest$ac_exeext conftest.$ac_ext
12416LIBS=$ac_check_lib_save_LIBS
12417fi
12418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
12419$as_echo "$ac_cv_lib_socket_bind" >&6; }
12420if test "x$ac_cv_lib_socket_bind" = xyes; then :
12421 cat >>confdefs.h <<_ACEOF
12422#define HAVE_LIBSOCKET 1
12423_ACEOF
12424
12425 LIBS="-lsocket $LIBS"
12426
12427fi
12428
12429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
12430$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
12431if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
12432 $as_echo_n "(cached) " >&6
12433else
12434 ac_check_lib_save_LIBS=$LIBS
12435LIBS="-lnsl $LIBS"
12436cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12437/* end confdefs.h. */
12438
12439/* Override any GCC internal prototype to avoid an error.
12440 Use char because int might match the return type of a GCC
12441 builtin and then its argument prototype would still apply. */
12442#ifdef __cplusplus
12443extern "C"
12444#endif
12445char gethostbyname ();
12446int
12447main ()
12448{
12449return gethostbyname ();
12450 ;
12451 return 0;
12452}
12453_ACEOF
12454if ac_fn_c_try_link "$LINENO"; then :
12455 ac_cv_lib_nsl_gethostbyname=yes
12456else
12457 ac_cv_lib_nsl_gethostbyname=no
12458fi
12459rm -f core conftest.err conftest.$ac_objext \
12460 conftest$ac_exeext conftest.$ac_ext
12461LIBS=$ac_check_lib_save_LIBS
12462fi
12463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
12464$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
12465if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
12466 cat >>confdefs.h <<_ACEOF
12467#define HAVE_LIBNSL 1
12468_ACEOF
12469
12470 LIBS="-lnsl $LIBS"
12471
12472fi
12473
12474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs in -lm" >&5
12475$as_echo_n "checking for fabs in -lm... " >&6; }
12476if ${ac_cv_lib_m_fabs+:} false; then :
12477 $as_echo_n "(cached) " >&6
12478else
12479 ac_check_lib_save_LIBS=$LIBS
12480LIBS="-lm $LIBS"
12481cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12482/* end confdefs.h. */
12483
12484/* Override any GCC internal prototype to avoid an error.
12485 Use char because int might match the return type of a GCC
12486 builtin and then its argument prototype would still apply. */
12487#ifdef __cplusplus
12488extern "C"
12489#endif
12490char fabs ();
12491int
12492main ()
12493{
12494return fabs ();
12495 ;
12496 return 0;
12497}
12498_ACEOF
12499if ac_fn_c_try_link "$LINENO"; then :
12500 ac_cv_lib_m_fabs=yes
12501else
12502 ac_cv_lib_m_fabs=no
12503fi
12504rm -f core conftest.err conftest.$ac_objext \
12505 conftest$ac_exeext conftest.$ac_ext
12506LIBS=$ac_check_lib_save_LIBS
12507fi
12508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fabs" >&5
12509$as_echo "$ac_cv_lib_m_fabs" >&6; }
12510if test "x$ac_cv_lib_m_fabs" = xyes; then :
12511 cat >>confdefs.h <<_ACEOF
12512#define HAVE_LIBM 1
12513_ACEOF
12514
12515 LIBS="-lm $LIBS"
12516
12517fi
12518
12519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for log2 in -lm" >&5
12520$as_echo_n "checking for log2 in -lm... " >&6; }
12521if ${ac_cv_lib_m_log2+:} false; then :
12522 $as_echo_n "(cached) " >&6
12523else
12524 ac_check_lib_save_LIBS=$LIBS
12525LIBS="-lm $LIBS"
12526cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12527/* end confdefs.h. */
12528
12529/* Override any GCC internal prototype to avoid an error.
12530 Use char because int might match the return type of a GCC
12531 builtin and then its argument prototype would still apply. */
12532#ifdef __cplusplus
12533extern "C"
12534#endif
12535char log2 ();
12536int
12537main ()
12538{
12539return log2 ();
12540 ;
12541 return 0;
12542}
12543_ACEOF
12544if ac_fn_c_try_link "$LINENO"; then :
12545 ac_cv_lib_m_log2=yes
12546else
12547 ac_cv_lib_m_log2=no
12548fi
12549rm -f core conftest.err conftest.$ac_objext \
12550 conftest$ac_exeext conftest.$ac_ext
12551LIBS=$ac_check_lib_save_LIBS
12552fi
12553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log2" >&5
12554$as_echo "$ac_cv_lib_m_log2" >&6; }
12555if test "x$ac_cv_lib_m_log2" = xyes; then :
12556 cat >>confdefs.h <<_ACEOF
12557#define HAVE_LIBM 1
12558_ACEOF
12559
12560 LIBS="-lm $LIBS"
12561
12562fi
12563
12564
b15c5d7a
MF
12565
12566
12567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12568$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12569 # Check whether --enable-maintainer-mode was given.
12570if test "${enable_maintainer_mode+set}" = set; then :
12571 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12572else
12573 USE_MAINTAINER_MODE=no
12574fi
12575
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12577$as_echo "$USE_MAINTAINER_MODE" >&6; }
12578 if test $USE_MAINTAINER_MODE = yes; then
12579 MAINTAINER_MODE_TRUE=
12580 MAINTAINER_MODE_FALSE='#'
12581else
12582 MAINTAINER_MODE_TRUE='#'
12583 MAINTAINER_MODE_FALSE=
12584fi
12585
12586 MAINT=$MAINTAINER_MODE_TRUE
12587
12588
12589am__api_version='1.15'
12590
12591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
12592$as_echo_n "checking whether build environment is sane... " >&6; }
12593# Reject unsafe characters in $srcdir or the absolute working directory
12594# name. Accept space and tab only in the latter.
12595am_lf='
12596'
12597case `pwd` in
12598 *[\\\"\#\$\&\'\`$am_lf]*)
12599 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
12600esac
12601case $srcdir in
12602 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
12603 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
12604esac
12605
12606# Do 'set' in a subshell so we don't clobber the current shell's
12607# arguments. Must try -L first in case configure is actually a
12608# symlink; some systems play weird games with the mod time of symlinks
12609# (eg FreeBSD returns the mod time of the symlink's containing
12610# directory).
12611if (
12612 am_has_slept=no
12613 for am_try in 1 2; do
12614 echo "timestamp, slept: $am_has_slept" > conftest.file
12615 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
12616 if test "$*" = "X"; then
12617 # -L didn't work.
12618 set X `ls -t "$srcdir/configure" conftest.file`
12619 fi
12620 if test "$*" != "X $srcdir/configure conftest.file" \
12621 && test "$*" != "X conftest.file $srcdir/configure"; then
12622
12623 # If neither matched, then we have a broken ls. This can happen
12624 # if, for instance, CONFIG_SHELL is bash and it inherits a
12625 # broken ls alias from the environment. This has actually
12626 # happened. Such a system could not be considered "sane".
12627 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
12628 alias in your environment" "$LINENO" 5
12629 fi
12630 if test "$2" = conftest.file || test $am_try -eq 2; then
12631 break
12632 fi
12633 # Just in case.
12634 sleep 1
12635 am_has_slept=yes
12636 done
12637 test "$2" = conftest.file
12638 )
12639then
12640 # Ok.
12641 :
12642else
12643 as_fn_error $? "newly created file is older than distributed files!
12644Check your system clock" "$LINENO" 5
12645fi
12646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12647$as_echo "yes" >&6; }
12648# If we didn't sleep, we still need to ensure time stamps of config.status and
12649# generated files are strictly newer.
12650am_sleep_pid=
12651if grep 'slept: no' conftest.file >/dev/null 2>&1; then
12652 ( sleep 1 ) &
12653 am_sleep_pid=$!
12654fi
12655
12656rm -f conftest.file
12657
12658if test x"${MISSING+set}" != xset; then
12659 case $am_aux_dir in
12660 *\ * | *\ *)
12661 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
12662 *)
12663 MISSING="\${SHELL} $am_aux_dir/missing" ;;
12664 esac
12665fi
12666# Use eval to expand $SHELL
12667if eval "$MISSING --is-lightweight"; then
12668 am_missing_run="$MISSING "
c2783492
MF
12669else
12670 am_missing_run=
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
12672$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
12673fi
12674
12675if test x"${install_sh+set}" != xset; then
12676 case $am_aux_dir in
12677 *\ * | *\ *)
12678 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
12679 *)
12680 install_sh="\${SHELL} $am_aux_dir/install-sh"
12681 esac
12682fi
12683
12684# Installed binaries are usually stripped using 'strip' when the user
12685# run "make install-strip". However 'strip' might not be the right
12686# tool to use in cross-compilation environments, therefore Automake
12687# will honor the 'STRIP' environment variable to overrule this program.
12688if test "$cross_compiling" != no; then
12689 if test -n "$ac_tool_prefix"; then
12690 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12691set dummy ${ac_tool_prefix}strip; ac_word=$2
12692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12693$as_echo_n "checking for $ac_word... " >&6; }
12694if ${ac_cv_prog_STRIP+:} false; then :
12695 $as_echo_n "(cached) " >&6
12696else
12697 if test -n "$STRIP"; then
12698 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12699else
12700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12701for as_dir in $PATH
12702do
12703 IFS=$as_save_IFS
12704 test -z "$as_dir" && as_dir=.
12705 for ac_exec_ext in '' $ac_executable_extensions; do
12706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12707 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12709 break 2
81ecdfbb 12710 fi
81ecdfbb 12711done
c2783492
MF
12712 done
12713IFS=$as_save_IFS
b7026657 12714
c906108c 12715fi
b7026657 12716fi
c2783492
MF
12717STRIP=$ac_cv_prog_STRIP
12718if test -n "$STRIP"; then
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12720$as_echo "$STRIP" >&6; }
81ecdfbb 12721else
c2783492
MF
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12723$as_echo "no" >&6; }
81ecdfbb 12724fi
b7026657 12725
b7026657 12726
c2783492
MF
12727fi
12728if test -z "$ac_cv_prog_STRIP"; then
12729 ac_ct_STRIP=$STRIP
12730 # Extract the first word of "strip", so it can be a program name with args.
12731set dummy strip; ac_word=$2
12732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12733$as_echo_n "checking for $ac_word... " >&6; }
12734if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12735 $as_echo_n "(cached) " >&6
c906108c 12736else
c2783492
MF
12737 if test -n "$ac_ct_STRIP"; then
12738 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
81ecdfbb 12739else
c2783492
MF
12740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12741for as_dir in $PATH
12742do
12743 IFS=$as_save_IFS
12744 test -z "$as_dir" && as_dir=.
12745 for ac_exec_ext in '' $ac_executable_extensions; do
12746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12747 ac_cv_prog_ac_ct_STRIP="strip"
12748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12749 break 2
12750 fi
12751done
12752 done
12753IFS=$as_save_IFS
81ecdfbb 12754
81ecdfbb 12755fi
df1756f4 12756fi
c2783492
MF
12757ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12758if test -n "$ac_ct_STRIP"; then
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12760$as_echo "$ac_ct_STRIP" >&6; }
12761else
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12763$as_echo "no" >&6; }
b7026657 12764fi
c2783492
MF
12765
12766 if test "x$ac_ct_STRIP" = x; then
12767 STRIP=":"
c906108c 12768 else
c2783492
MF
12769 case $cross_compiling:$ac_tool_warned in
12770yes:)
12771{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12772$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12773ac_tool_warned=yes ;;
12774esac
12775 STRIP=$ac_ct_STRIP
c906108c
SS
12776 fi
12777else
c2783492 12778 STRIP="$ac_cv_prog_STRIP"
c906108c 12779fi
81ecdfbb 12780
b7026657 12781fi
c2783492 12782INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
b7026657 12783
c2783492
MF
12784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
12785$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
12786if test -z "$MKDIR_P"; then
12787 if ${ac_cv_path_mkdir+:} false; then :
12788 $as_echo_n "(cached) " >&6
12789else
12790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12791for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
12792do
12793 IFS=$as_save_IFS
12794 test -z "$as_dir" && as_dir=.
12795 for ac_prog in mkdir gmkdir; do
12796 for ac_exec_ext in '' $ac_executable_extensions; do
12797 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
12798 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
12799 'mkdir (GNU coreutils) '* | \
12800 'mkdir (coreutils) '* | \
12801 'mkdir (fileutils) '4.1*)
12802 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
12803 break 3;;
12804 esac
12805 done
12806 done
12807 done
12808IFS=$as_save_IFS
b7026657 12809
fdd6fa61
AG
12810fi
12811
c2783492
MF
12812 test -d ./--version && rmdir ./--version
12813 if test "${ac_cv_path_mkdir+set}" = set; then
12814 MKDIR_P="$ac_cv_path_mkdir -p"
b5689863
MF
12815 else
12816 # As a last resort, use the slow shell script. Don't cache a
12817 # value for MKDIR_P within a source directory, because that will
12818 # break other packages using the cache if that directory is
12819 # removed, or if the value is a relative name.
12820 MKDIR_P="$ac_install_sh -d"
12821 fi
c2783492 12822fi
b5689863
MF
12823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
12824$as_echo "$MKDIR_P" >&6; }
6bddc3e8 12825
c2783492
MF
12826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12827$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12828set x ${MAKE-make}
12829ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12830if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6bddc3e8
MF
12831 $as_echo_n "(cached) " >&6
12832else
c2783492
MF
12833 cat >conftest.make <<\_ACEOF
12834SHELL = /bin/sh
12835all:
12836 @echo '@@@%%%=$(MAKE)=@@@%%%'
12837_ACEOF
12838# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
12839case `${MAKE-make} -f conftest.make 2>/dev/null` in
12840 *@@@%%%=?*=@@@%%%*)
12841 eval ac_cv_prog_make_${ac_make}_set=yes;;
12842 *)
12843 eval ac_cv_prog_make_${ac_make}_set=no;;
12844esac
12845rm -f conftest.make
12846fi
12847if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12849$as_echo "yes" >&6; }
12850 SET_MAKE=
12851else
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12853$as_echo "no" >&6; }
12854 SET_MAKE="MAKE=${MAKE-make}"
12855fi
6bddc3e8 12856
c2783492
MF
12857rm -rf .tst 2>/dev/null
12858mkdir .tst 2>/dev/null
12859if test -d .tst; then
12860 am__leading_dot=.
12861else
12862 am__leading_dot=_
12863fi
12864rmdir .tst 2>/dev/null
6bddc3e8 12865
c2783492 12866DEPDIR="${am__leading_dot}deps"
6bddc3e8 12867
c2783492 12868ac_config_commands="$ac_config_commands depfiles"
6bddc3e8 12869
c2783492
MF
12870
12871am_make=${MAKE-make}
12872cat > confinc << 'END'
12873am__doit:
12874 @echo this is the am__doit target
12875.PHONY: am__doit
12876END
12877# If we don't find an include directive, just comment out the code.
12878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
12879$as_echo_n "checking for style of include used by $am_make... " >&6; }
12880am__include="#"
12881am__quote=
12882_am_result=none
12883# First try GNU make style include.
12884echo "include confinc" > confmf
12885# Ignore all kinds of additional output from 'make'.
12886case `$am_make -s -f confmf 2> /dev/null` in #(
12887*the\ am__doit\ target*)
12888 am__include=include
12889 am__quote=
12890 _am_result=GNU
12891 ;;
12892esac
12893# Now try BSD make style include.
12894if test "$am__include" = "#"; then
12895 echo '.include "confinc"' > confmf
12896 case `$am_make -s -f confmf 2> /dev/null` in #(
12897 *the\ am__doit\ target*)
12898 am__include=.include
12899 am__quote="\""
12900 _am_result=BSD
12901 ;;
12902 esac
6bddc3e8
MF
12903fi
12904
c2783492
MF
12905
12906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
12907$as_echo "$_am_result" >&6; }
12908rm -f confinc confmf
12909
12910# Check whether --enable-dependency-tracking was given.
12911if test "${enable_dependency_tracking+set}" = set; then :
12912 enableval=$enable_dependency_tracking;
6bddc3e8 12913fi
6bddc3e8 12914
c2783492
MF
12915if test "x$enable_dependency_tracking" != xno; then
12916 am_depcomp="$ac_aux_dir/depcomp"
12917 AMDEPBACKSLASH='\'
12918 am__nodep='_no'
12919fi
12920 if test "x$enable_dependency_tracking" != xno; then
12921 AMDEP_TRUE=
12922 AMDEP_FALSE='#'
6bddc3e8 12923else
c2783492
MF
12924 AMDEP_TRUE='#'
12925 AMDEP_FALSE=
6bddc3e8
MF
12926fi
12927
12928
c2783492
MF
12929# Check whether --enable-silent-rules was given.
12930if test "${enable_silent_rules+set}" = set; then :
12931 enableval=$enable_silent_rules;
5e25901f 12932fi
c2783492
MF
12933
12934case $enable_silent_rules in # (((
12935 yes) AM_DEFAULT_VERBOSITY=0;;
12936 no) AM_DEFAULT_VERBOSITY=1;;
12937 *) AM_DEFAULT_VERBOSITY=1;;
12938esac
12939am_make=${MAKE-make}
12940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
12941$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
12942if ${am_cv_make_support_nested_variables+:} false; then :
5e25901f
MF
12943 $as_echo_n "(cached) " >&6
12944else
c2783492
MF
12945 if $as_echo 'TRUE=$(BAR$(V))
12946BAR0=false
12947BAR1=true
12948V=1
12949am__doit:
12950 @$(TRUE)
12951.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
12952 am_cv_make_support_nested_variables=yes
5e25901f 12953else
c2783492 12954 am_cv_make_support_nested_variables=no
5e25901f 12955fi
c2783492
MF
12956fi
12957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
12958$as_echo "$am_cv_make_support_nested_variables" >&6; }
12959if test $am_cv_make_support_nested_variables = yes; then
12960 AM_V='$(V)'
12961 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
5e25901f 12962else
c2783492
MF
12963 AM_V=$AM_DEFAULT_VERBOSITY
12964 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
5e25901f 12965fi
c2783492 12966AM_BACKSLASH='\'
5e25901f 12967
c2783492
MF
12968if test "`cd $srcdir && pwd`" != "`pwd`"; then
12969 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
12970 # is not polluted with repeated "-I."
12971 am__isrc=' -I$(srcdir)'
12972 # test to see if srcdir already configured
12973 if test -f $srcdir/config.status; then
12974 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
12975 fi
5e25901f
MF
12976fi
12977
c2783492
MF
12978# test whether we have cygpath
12979if test -z "$CYGPATH_W"; then
12980 if (cygpath --version) >/dev/null 2>/dev/null; then
12981 CYGPATH_W='cygpath -w'
12982 else
12983 CYGPATH_W=echo
12984 fi
5e25901f 12985fi
c2783492
MF
12986
12987
12988# Define the identity of the package.
12989 PACKAGE='sim'
12990 VERSION='0'
12991
12992
12993cat >>confdefs.h <<_ACEOF
12994#define PACKAGE "$PACKAGE"
5e25901f 12995_ACEOF
5e25901f 12996
5e25901f 12997
c2783492
MF
12998cat >>confdefs.h <<_ACEOF
12999#define VERSION "$VERSION"
5e25901f 13000_ACEOF
5e25901f 13001
c2783492 13002# Some tools Automake needs.
5e25901f 13003
c2783492
MF
13004ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
13005
13006
13007AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
13008
13009
13010AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
13011
13012
13013AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
13014
13015
13016MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
13017
13018# For better backward compatibility. To be removed once Automake 1.9.x
13019# dies out for good. For more background, see:
13020# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
13021# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
13022mkdir_p='$(MKDIR_P)'
13023
13024# We need awk for the "check" target (and possibly the TAP driver). The
13025# system "awk" is bad on some platforms.
13026# Always define AMTAR for backward compatibility. Yes, it's still used
13027# in the wild :-( We should find a proper way to deprecate it ...
13028AMTAR='$${TAR-tar}'
13029
13030
13031# We'll loop over all known methods to create a tar archive until one works.
13032_am_tools='gnutar pax cpio none'
13033
13034am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5e25901f 13035
5e25901f 13036
c906108c 13037
c906108c 13038
c2783492
MF
13039
13040depcc="$CC" am_compiler_list=
13041
13042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13043$as_echo_n "checking dependency style of $depcc... " >&6; }
13044if ${am_cv_CC_dependencies_compiler_type+:} false; then :
81ecdfbb 13045 $as_echo_n "(cached) " >&6
c906108c 13046else
c2783492
MF
13047 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13048 # We make a subdir and do the tests there. Otherwise we can end up
13049 # making bogus files that we don't know about and never remove. For
13050 # instance it was reported that on HP-UX the gcc test will end up
13051 # making a dummy file named 'D' -- because '-MD' means "put the output
13052 # in D".
13053 rm -rf conftest.dir
13054 mkdir conftest.dir
13055 # Copy depcomp to subdir because otherwise we won't find it if we're
13056 # using a relative directory.
13057 cp "$am_depcomp" conftest.dir
13058 cd conftest.dir
13059 # We will build objects and dependencies in a subdirectory because
13060 # it helps to detect inapplicable dependency modes. For instance
13061 # both Tru64's cc and ICC support -MD to output dependencies as a
13062 # side effect of compilation, but ICC will put the dependencies in
13063 # the current directory while Tru64 will put them in the object
13064 # directory.
13065 mkdir sub
13066
13067 am_cv_CC_dependencies_compiler_type=none
13068 if test "$am_compiler_list" = ""; then
13069 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
b7026657 13070 fi
c2783492
MF
13071 am__universal=false
13072 case " $depcc " in #(
13073 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13074 esac
13075
13076 for depmode in $am_compiler_list; do
13077 # Setup a source with many dependencies, because some compilers
13078 # like to wrap large dependency lists on column 80 (with \), and
13079 # we should not choose a depcomp mode which is confused by this.
13080 #
13081 # We need to recreate these files for each test, as the compiler may
13082 # overwrite some of them when testing with obscure command lines.
13083 # This happens at least with the AIX C compiler.
13084 : > sub/conftest.c
13085 for i in 1 2 3 4 5 6; do
13086 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13087 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13088 # Solaris 10 /bin/sh.
13089 echo '/* dummy */' > sub/conftst$i.h
13090 done
13091 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13092
13093 # We check with '-c' and '-o' for the sake of the "dashmstdout"
13094 # mode. It turns out that the SunPro C++ compiler does not properly
13095 # handle '-M -o', and we need to detect this. Also, some Intel
13096 # versions had trouble with output in subdirs.
13097 am__obj=sub/conftest.${OBJEXT-o}
13098 am__minus_obj="-o $am__obj"
13099 case $depmode in
13100 gcc)
13101 # This depmode causes a compiler race in universal mode.
13102 test "$am__universal" = false || continue
13103 ;;
13104 nosideeffect)
13105 # After this tag, mechanisms are not by side-effect, so they'll
13106 # only be used when explicitly requested.
13107 if test "x$enable_dependency_tracking" = xyes; then
13108 continue
13109 else
13110 break
13111 fi
13112 ;;
13113 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13114 # This compiler won't grok '-c -o', but also, the minuso test has
13115 # not run yet. These depmodes are late enough in the game, and
13116 # so weak that their functioning should not be impacted.
13117 am__obj=conftest.${OBJEXT-o}
13118 am__minus_obj=
13119 ;;
13120 none) break ;;
13121 esac
13122 if depmode=$depmode \
13123 source=sub/conftest.c object=$am__obj \
13124 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13125 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13126 >/dev/null 2>conftest.err &&
13127 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13128 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13129 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13130 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13131 # icc doesn't choke on unknown options, it will just issue warnings
13132 # or remarks (even with -Werror). So we grep stderr for any message
13133 # that says an option was ignored or not supported.
13134 # When given -MP, icc 7.0 and 7.1 complain thusly:
13135 # icc: Command line warning: ignoring option '-M'; no argument required
13136 # The diagnosis changed in icc 8.0:
13137 # icc: Command line remark: option '-MP' not supported
13138 if (grep 'ignoring option' conftest.err ||
13139 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13140 am_cv_CC_dependencies_compiler_type=$depmode
13141 break
13142 fi
13143 fi
81ecdfbb 13144 done
b7026657 13145
c2783492
MF
13146 cd ..
13147 rm -rf conftest.dir
b7026657 13148else
c2783492 13149 am_cv_CC_dependencies_compiler_type=none
b7026657
AC
13150fi
13151
13152fi
c2783492
MF
13153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13154$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13155CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
b7026657 13156
c2783492
MF
13157 if
13158 test "x$enable_dependency_tracking" != xno \
13159 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13160 am__fastdepCC_TRUE=
13161 am__fastdepCC_FALSE='#'
c906108c 13162else
c2783492
MF
13163 am__fastdepCC_TRUE='#'
13164 am__fastdepCC_FALSE=
b7026657
AC
13165fi
13166
c906108c
SS
13167
13168
c2783492
MF
13169# POSIX will say in a future version that running "rm -f" with no argument
13170# is OK; and we want to be able to make that assumption in our Makefile
13171# recipes. So use an aggressive probe to check that the usage we want is
13172# actually supported "in the wild" to an acceptable degree.
13173# See automake bug#10828.
13174# To make any issue more visible, cause the running configure to be aborted
13175# by default if the 'rm' program in use doesn't match our expectations; the
13176# user can still override this though.
13177if rm -f && rm -fr && rm -rf; then : OK; else
13178 cat >&2 <<'END'
13179Oops!
13180
13181Your 'rm' program seems unable to run without file operands specified
13182on the command line, even when the '-f' option is present. This is contrary
13183to the behaviour of most rm programs out there, and not conforming with
13184the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
13185
13186Please tell bug-automake@gnu.org about your system, including the value
13187of your $PATH and any error possibly output before this message. This
13188can help us improve future automake versions.
13189
13190END
13191 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
13192 echo 'Configuration will proceed anyway, since you have set the' >&2
13193 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
13194 echo >&2
5c887dd5 13195 else
c2783492
MF
13196 cat >&2 <<'END'
13197Aborting the configuration process, to ensure you take notice of the issue.
13198
13199You can download and install GNU coreutils to get an 'rm' implementation
13200that behaves properly: <http://www.gnu.org/software/coreutils/>.
13201
13202If you want to complete the configuration process using your problematic
13203'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
13204to "yes", and re-run configure.
13205
13206END
13207 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5c887dd5 13208 fi
c906108c
SS
13209fi
13210
fbe8d1cf
MF
13211# Check whether --enable-silent-rules was given.
13212if test "${enable_silent_rules+set}" = set; then :
13213 enableval=$enable_silent_rules;
13214fi
13215
13216case $enable_silent_rules in # (((
13217 yes) AM_DEFAULT_VERBOSITY=0;;
13218 no) AM_DEFAULT_VERBOSITY=1;;
13219 *) AM_DEFAULT_VERBOSITY=0;;
13220esac
13221am_make=${MAKE-make}
13222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
13223$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
13224if ${am_cv_make_support_nested_variables+:} false; then :
13225 $as_echo_n "(cached) " >&6
13226else
13227 if $as_echo 'TRUE=$(BAR$(V))
13228BAR0=false
13229BAR1=true
13230V=1
13231am__doit:
13232 @$(TRUE)
13233.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
13234 am_cv_make_support_nested_variables=yes
13235else
13236 am_cv_make_support_nested_variables=no
13237fi
13238fi
13239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
13240$as_echo "$am_cv_make_support_nested_variables" >&6; }
13241if test $am_cv_make_support_nested_variables = yes; then
13242 AM_V='$(V)'
13243 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
13244else
13245 AM_V=$AM_DEFAULT_VERBOSITY
13246 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
13247fi
13248AM_BACKSLASH='\'
13249
c906108c
SS
13250
13251# If a cpu ever has more than one simulator to choose from, use
13252# --enable-sim=... to choose.
81ecdfbb
RW
13253# Check whether --enable-sim was given.
13254if test "${enable_sim+set}" = set; then :
13255 enableval=$enable_sim; case "${enableval}" in
c906108c 13256yes | no) ;;
d0ac1c44 13257*) as_fn_error $? "bad value ${enableval} given for --enable-sim option" "$LINENO" 5 ;;
c906108c 13258esac
81ecdfbb
RW
13259fi
13260
c906108c 13261
26da232c
MF
13262# Check whether --enable-example-sims was given.
13263if test "${enable_example_sims+set}" = set; then :
13264 enableval=$enable_example_sims;
13265fi
13266
13267
a0e674c1
MF
13268# Check whether --enable-targets was given.
13269if test "${enable_targets+set}" = set; then :
13270 enableval=$enable_targets; case "${enableval}" in
13271 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
13272 ;;
13273 no) enable_targets= ;;
13274 *) enable_targets=$enableval ;;
13275esac
13276fi
13277
13278
13279SIM_PRIMARY_TARGET=
13280
13281
13282
13283
bc56166f 13284
119da465 13285if test "${enable_sim}" != no; then
3e8bb3e9 13286 sim_igen=no
a0e674c1
MF
13287 for targ in `echo $target $enable_targets | sed 's/,/ /g'`
13288 do
bc56166f 13289 case "${targ}" in
a0e674c1
MF
13290 all|aarch64*-*-*)
13291 if test "${targ}" = "${target}"; then
13292 SIM_PRIMARY_TARGET=aarch64
13293 fi
2e8cf49e
NC
13294
13295
13296subdirs="$subdirs aarch64"
fdd6fa61 13297
bc56166f
MF
13298 ac_config_commands="$ac_config_commands depdir-aarch64"
13299
13300
a0e674c1 13301
3e8bb3e9 13302 ;;
a0e674c1
MF
13303 esac
13304
bc56166f 13305 case "${targ}" in
a0e674c1
MF
13306 all|arm*-*-*)
13307 if test "${targ}" = "${target}"; then
13308 SIM_PRIMARY_TARGET=arm
13309 fi
bc56166f
MF
13310 subdirs="$subdirs arm"
13311
13312 ac_config_commands="$ac_config_commands depdir-arm"
13313
fdd6fa61 13314
a0e674c1 13315
3e8bb3e9 13316 ;;
a0e674c1
MF
13317 esac
13318
bc56166f 13319 case "${targ}" in
a0e674c1
MF
13320 all|avr*-*-*)
13321 if test "${targ}" = "${target}"; then
13322 SIM_PRIMARY_TARGET=avr
13323 fi
bc56166f
MF
13324 subdirs="$subdirs avr"
13325
13326 ac_config_commands="$ac_config_commands depdir-avr"
13327
0cd79707 13328
a0e674c1 13329
3e8bb3e9 13330 ;;
a0e674c1
MF
13331 esac
13332
bc56166f 13333 case "${targ}" in
a0e674c1
MF
13334 all|bfin-*-*)
13335 if test "${targ}" = "${target}"; then
13336 SIM_PRIMARY_TARGET=bfin
13337 fi
bc56166f
MF
13338 subdirs="$subdirs bfin"
13339
13340 ac_config_commands="$ac_config_commands depdir-bfin"
13341
ddd44b70 13342
a0e674c1 13343
3e8bb3e9 13344 ;;
a0e674c1
MF
13345 esac
13346
bc56166f 13347 case "${targ}" in
a0e674c1
MF
13348 all|bpf-*-*)
13349 if test "${targ}" = "${target}"; then
13350 SIM_PRIMARY_TARGET=bpf
13351 fi
bc56166f
MF
13352 subdirs="$subdirs bpf"
13353
13354 ac_config_commands="$ac_config_commands depdir-bpf"
13355
ddd44b70 13356
a0e674c1 13357
3e8bb3e9 13358 ;;
a0e674c1
MF
13359 esac
13360
bc56166f 13361 case "${targ}" in
a0e674c1
MF
13362 all|cr16*-*-*)
13363 if test "${targ}" = "${target}"; then
13364 SIM_PRIMARY_TARGET=cr16
13365 fi
bc56166f
MF
13366 subdirs="$subdirs cr16"
13367
13368 ac_config_commands="$ac_config_commands depdir-cr16"
13369
ddd44b70 13370
a0e674c1 13371
3e8bb3e9 13372 ;;
a0e674c1
MF
13373 esac
13374
bc56166f 13375 case "${targ}" in
a0e674c1
MF
13376 all|cris-*-* | crisv32-*-*)
13377 if test "${targ}" = "${target}"; then
13378 SIM_PRIMARY_TARGET=cris
13379 fi
bc56166f
MF
13380 subdirs="$subdirs cris"
13381
13382 ac_config_commands="$ac_config_commands depdir-cris"
13383
b9249c46 13384
a0e674c1 13385
3e8bb3e9 13386 ;;
a0e674c1
MF
13387 esac
13388
bc56166f 13389 case "${targ}" in
a0e674c1
MF
13390 all|d10v-*-*)
13391 if test "${targ}" = "${target}"; then
13392 SIM_PRIMARY_TARGET=d10v
13393 fi
bc56166f
MF
13394 subdirs="$subdirs d10v"
13395
13396 ac_config_commands="$ac_config_commands depdir-d10v"
13397
b9249c46 13398
a0e674c1 13399
3e8bb3e9 13400 ;;
a0e674c1
MF
13401 esac
13402
bc56166f 13403 case "${targ}" in
a0e674c1
MF
13404 all|frv-*-*)
13405 if test "${targ}" = "${target}"; then
13406 SIM_PRIMARY_TARGET=frv
13407 fi
bc56166f
MF
13408 subdirs="$subdirs frv"
13409
13410 ac_config_commands="$ac_config_commands depdir-frv"
13411
b9249c46 13412
a0e674c1 13413
3e8bb3e9 13414 ;;
a0e674c1
MF
13415 esac
13416
bc56166f 13417 case "${targ}" in
a0e674c1
MF
13418 all|h8300*-*-*)
13419 if test "${targ}" = "${target}"; then
13420 SIM_PRIMARY_TARGET=h8300
13421 fi
bc56166f
MF
13422 subdirs="$subdirs h8300"
13423
13424 ac_config_commands="$ac_config_commands depdir-h8300"
13425
119da465 13426
a0e674c1 13427
3e8bb3e9 13428 ;;
a0e674c1
MF
13429 esac
13430
bc56166f 13431 case "${targ}" in
a0e674c1
MF
13432 all|iq2000-*-*)
13433 if test "${targ}" = "${target}"; then
13434 SIM_PRIMARY_TARGET=iq2000
13435 fi
bc56166f
MF
13436 subdirs="$subdirs iq2000"
13437
13438 ac_config_commands="$ac_config_commands depdir-iq2000"
13439
119da465 13440
a0e674c1 13441
3e8bb3e9 13442 ;;
a0e674c1
MF
13443 esac
13444
bc56166f 13445 case "${targ}" in
a0e674c1
MF
13446 all|lm32-*-*)
13447 if test "${targ}" = "${target}"; then
13448 SIM_PRIMARY_TARGET=lm32
13449 fi
bc56166f
MF
13450 subdirs="$subdirs lm32"
13451
13452 ac_config_commands="$ac_config_commands depdir-lm32"
13453
119da465 13454
a0e674c1 13455
3e8bb3e9 13456 ;;
a0e674c1
MF
13457 esac
13458
bc56166f 13459 case "${targ}" in
a0e674c1
MF
13460 all|m32c-*-*)
13461 if test "${targ}" = "${target}"; then
13462 SIM_PRIMARY_TARGET=m32c
13463 fi
bc56166f
MF
13464 subdirs="$subdirs m32c"
13465
13466 ac_config_commands="$ac_config_commands depdir-m32c"
13467
87326c78 13468
a0e674c1 13469
3e8bb3e9 13470 ;;
a0e674c1
MF
13471 esac
13472
bc56166f 13473 case "${targ}" in
a0e674c1
MF
13474 all|m32r-*-*)
13475 if test "${targ}" = "${target}"; then
13476 SIM_PRIMARY_TARGET=m32r
13477 fi
bc56166f
MF
13478 subdirs="$subdirs m32r"
13479
13480 ac_config_commands="$ac_config_commands depdir-m32r"
13481
87326c78 13482
a0e674c1 13483
3e8bb3e9 13484 ;;
a0e674c1
MF
13485 esac
13486
bc56166f 13487 case "${targ}" in
a0e674c1
MF
13488 all|m68hc11-*-*|m6811-*-*)
13489 if test "${targ}" = "${target}"; then
13490 SIM_PRIMARY_TARGET=m68hc11
13491 fi
bc56166f
MF
13492 subdirs="$subdirs m68hc11"
13493
13494 ac_config_commands="$ac_config_commands depdir-m68hc11"
13495
87326c78 13496
a0e674c1 13497
3e8bb3e9 13498 ;;
a0e674c1
MF
13499 esac
13500
bc56166f 13501 case "${targ}" in
a0e674c1
MF
13502 all|mcore-*-*)
13503 if test "${targ}" = "${target}"; then
13504 SIM_PRIMARY_TARGET=mcore
13505 fi
bc56166f
MF
13506 subdirs="$subdirs mcore"
13507
13508 ac_config_commands="$ac_config_commands depdir-mcore"
13509
119da465 13510
a0e674c1 13511
3e8bb3e9 13512 ;;
a0e674c1
MF
13513 esac
13514
bc56166f 13515 case "${targ}" in
a0e674c1
MF
13516 all|microblaze-*-*)
13517 if test "${targ}" = "${target}"; then
13518 SIM_PRIMARY_TARGET=microblaze
13519 fi
bc56166f
MF
13520 subdirs="$subdirs microblaze"
13521
13522 ac_config_commands="$ac_config_commands depdir-microblaze"
13523
119da465 13524
a0e674c1 13525
3e8bb3e9 13526 ;;
a0e674c1
MF
13527 esac
13528
bc56166f 13529 case "${targ}" in
a0e674c1
MF
13530 all|mips*-*-*)
13531 if test "${targ}" = "${target}"; then
13532 SIM_PRIMARY_TARGET=mips
13533 fi
bc56166f
MF
13534 subdirs="$subdirs mips"
13535
13536 ac_config_commands="$ac_config_commands depdir-mips"
13537
119da465 13538
3e8bb3e9
MF
13539 sim_igen=yes
13540 ;;
a0e674c1
MF
13541 esac
13542
bc56166f 13543 case "${targ}" in
a0e674c1
MF
13544 all|mn10300*-*-*)
13545 if test "${targ}" = "${target}"; then
13546 SIM_PRIMARY_TARGET=mn10300
13547 fi
bc56166f
MF
13548 subdirs="$subdirs mn10300"
13549
13550 ac_config_commands="$ac_config_commands depdir-mn10300"
13551
119da465 13552
3e8bb3e9
MF
13553 sim_igen=yes
13554 ;;
a0e674c1
MF
13555 esac
13556
bc56166f 13557 case "${targ}" in
a0e674c1
MF
13558 all|moxie-*-*)
13559 if test "${targ}" = "${target}"; then
13560 SIM_PRIMARY_TARGET=moxie
13561 fi
bc56166f
MF
13562 subdirs="$subdirs moxie"
13563
13564 ac_config_commands="$ac_config_commands depdir-moxie"
13565
119da465 13566
a0e674c1 13567
3e8bb3e9 13568 ;;
a0e674c1
MF
13569 esac
13570
bc56166f 13571 case "${targ}" in
a0e674c1
MF
13572 all|msp430*-*-*)
13573 if test "${targ}" = "${target}"; then
13574 SIM_PRIMARY_TARGET=msp430
13575 fi
bc56166f
MF
13576 subdirs="$subdirs msp430"
13577
13578 ac_config_commands="$ac_config_commands depdir-msp430"
13579
119da465 13580
a0e674c1 13581
3e8bb3e9 13582 ;;
a0e674c1
MF
13583 esac
13584
bc56166f 13585 case "${targ}" in
a0e674c1
MF
13586 all|or1k-*-* | or1knd-*-*)
13587 if test "${targ}" = "${target}"; then
13588 SIM_PRIMARY_TARGET=or1k
13589 fi
bc56166f
MF
13590 subdirs="$subdirs or1k"
13591
13592 ac_config_commands="$ac_config_commands depdir-or1k"
13593
119da465 13594
a0e674c1 13595
3e8bb3e9 13596 ;;
a0e674c1
MF
13597 esac
13598
bc56166f 13599 case "${targ}" in
a0e674c1
MF
13600 all|pru*-*-*)
13601 if test "${targ}" = "${target}"; then
13602 SIM_PRIMARY_TARGET=pru
13603 fi
bc56166f
MF
13604 subdirs="$subdirs pru"
13605
13606 ac_config_commands="$ac_config_commands depdir-pru"
13607
119da465 13608
a0e674c1 13609
3e8bb3e9 13610 ;;
a0e674c1
MF
13611 esac
13612
bc56166f 13613 case "${targ}" in
a0e674c1
MF
13614 all|riscv*-*-*)
13615 if test "${targ}" = "${target}"; then
13616 SIM_PRIMARY_TARGET=riscv
13617 fi
bc56166f
MF
13618 subdirs="$subdirs riscv"
13619
13620 ac_config_commands="$ac_config_commands depdir-riscv"
13621
119da465 13622
a0e674c1 13623
3e8bb3e9 13624 ;;
a0e674c1
MF
13625 esac
13626
bc56166f 13627 case "${targ}" in
a0e674c1
MF
13628 all|rl78-*-*)
13629 if test "${targ}" = "${target}"; then
13630 SIM_PRIMARY_TARGET=rl78
13631 fi
bc56166f
MF
13632 subdirs="$subdirs rl78"
13633
13634 ac_config_commands="$ac_config_commands depdir-rl78"
13635
f46e4eb7 13636
a0e674c1 13637
3e8bb3e9 13638 ;;
a0e674c1
MF
13639 esac
13640
bc56166f 13641 case "${targ}" in
a0e674c1
MF
13642 all|rx-*-*)
13643 if test "${targ}" = "${target}"; then
13644 SIM_PRIMARY_TARGET=rx
13645 fi
bc56166f
MF
13646 subdirs="$subdirs rx"
13647
13648 ac_config_commands="$ac_config_commands depdir-rx"
13649
f46e4eb7 13650
a0e674c1 13651
3e8bb3e9 13652 ;;
a0e674c1
MF
13653 esac
13654
bc56166f 13655 case "${targ}" in
a0e674c1
MF
13656 all|sh*-*-*)
13657 if test "${targ}" = "${target}"; then
13658 SIM_PRIMARY_TARGET=sh
13659 fi
bc56166f
MF
13660 subdirs="$subdirs sh"
13661
13662 ac_config_commands="$ac_config_commands depdir-sh"
13663
f46e4eb7 13664
a0e674c1 13665
3e8bb3e9 13666 ;;
a0e674c1
MF
13667 esac
13668
bc56166f 13669 case "${targ}" in
a0e674c1
MF
13670 all|sparc-*-rtems*|sparc-*-elf*)
13671 if test "${targ}" = "${target}"; then
13672 SIM_PRIMARY_TARGET=erc32
13673 fi
bc56166f
MF
13674 subdirs="$subdirs erc32"
13675
13676 ac_config_commands="$ac_config_commands depdir-erc32"
13677
119da465 13678
a0e674c1 13679
3e8bb3e9 13680 ;;
a0e674c1
MF
13681 esac
13682
bc56166f 13683 case "${targ}" in
a0e674c1
MF
13684 all|powerpc*-*-*)
13685 if test "${targ}" = "${target}"; then
13686 SIM_PRIMARY_TARGET=ppc
13687 fi
bc56166f
MF
13688 subdirs="$subdirs ppc"
13689
13690 ac_config_commands="$ac_config_commands depdir-ppc"
13691
119da465 13692
a0e674c1 13693
3e8bb3e9 13694 ;;
a0e674c1
MF
13695 esac
13696
bc56166f 13697 case "${targ}" in
a0e674c1
MF
13698 all|ft32-*-*)
13699 if test "${targ}" = "${target}"; then
13700 SIM_PRIMARY_TARGET=ft32
13701 fi
bc56166f
MF
13702 subdirs="$subdirs ft32"
13703
13704 ac_config_commands="$ac_config_commands depdir-ft32"
13705
119da465 13706
a0e674c1 13707
3e8bb3e9 13708 ;;
a0e674c1
MF
13709 esac
13710
bc56166f 13711 case "${targ}" in
a0e674c1
MF
13712 all|v850*-*-*)
13713 if test "${targ}" = "${target}"; then
13714 SIM_PRIMARY_TARGET=v850
13715 fi
bc56166f
MF
13716 subdirs="$subdirs v850"
13717
13718 ac_config_commands="$ac_config_commands depdir-v850"
13719
119da465 13720
3e8bb3e9
MF
13721 sim_igen=yes
13722 ;;
13723 esac
a0e674c1
MF
13724
13725 done
26da232c
MF
13726
13727 if test "x${enable_example_sims}" = xyes; then
bc56166f
MF
13728 subdirs="$subdirs example-synacor"
13729
13730 ac_config_commands="$ac_config_commands depdir-example-synacor"
13731
26da232c
MF
13732
13733 fi
b6b1c790
MF
13734fi
13735 if test "$sim_igen" = "yes"; then
13736 SIM_ENABLE_IGEN_TRUE=
13737 SIM_ENABLE_IGEN_FALSE='#'
13738else
13739 SIM_ENABLE_IGEN_TRUE='#'
13740 SIM_ENABLE_IGEN_FALSE=
c906108c
SS
13741fi
13742
b6b1c790 13743
ba307cdd
MF
13744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim alignment" >&5
13745$as_echo_n "checking whether to force sim alignment... " >&6; }
13746sim_alignment=
13747# Check whether --enable-sim-alignment was given.
13748if test "${enable_sim_alignment+set}" = set; then :
13749 enableval=$enable_sim_alignment; case "${enableval}" in
13750 yes | strict | STRICT) sim_alignment="STRICT_ALIGNMENT";;
13751 no | nonstrict | NONSTRICT) sim_alignment="NONSTRICT_ALIGNMENT";;
13752 forced | FORCED) sim_alignment="FORCED_ALIGNMENT";;
13753 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5;;
13754esac
13755fi
13756
13757cat >>confdefs.h <<_ACEOF
13758#define WITH_ALIGNMENT ${sim_alignment:-0}
13759_ACEOF
13760
13761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
13762$as_echo "${sim_alignment:-no}" >&6; }
13763
dba333c1
MF
13764
13765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5
13766$as_echo_n "checking whether to enable sim asserts... " >&6; }
13767sim_assert="1"
13768# Check whether --enable-sim-assert was given.
13769if test "${enable_sim_assert+set}" = set; then :
13770 enableval=$enable_sim_assert; case "${enableval}" in
13771 yes) sim_assert="1";;
13772 no) sim_assert="0";;
13773 *) as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;;
13774esac
13775fi
13776
13777cat >>confdefs.h <<_ACEOF
13778#define WITH_ASSERT $sim_assert
13779_ACEOF
13780
13781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5
13782$as_echo "$sim_assert" >&6; }
13783
04381273
MF
13784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5
13785$as_echo_n "checking for sim debug setting... " >&6; }
13786sim_debug="0"
13787# Check whether --enable-sim-debug was given.
13788if test "${enable_sim_debug+set}" = set; then :
13789 enableval=$enable_sim_debug; case "${enableval}" in
13790 yes) sim_debug="7";;
13791 no) sim_debug="0";;
13792 *) sim_debug="($enableval)";;
13793esac
13794fi
13795if test "$sim_debug" != "0"; then
13796
13797cat >>confdefs.h <<_ACEOF
13798#define DEBUG $sim_debug
13799_ACEOF
13800
13801fi
13802
13803cat >>confdefs.h <<_ACEOF
13804#define WITH_DEBUG $sim_debug
13805_ACEOF
13806
13807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5
13808$as_echo "$sim_debug" >&6; }
f9a4d543
MF
13809
13810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim endianness" >&5
13811$as_echo_n "checking whether to force sim endianness... " >&6; }
13812sim_endian=
13813# Check whether --enable-sim-endian was given.
13814if test "${enable_sim_endian+set}" = set; then :
13815 enableval=$enable_sim_endian; case "${enableval}" in
13816 b*|B*) sim_endian="BFD_ENDIAN_BIG";;
13817 l*|L*) sim_endian="BFD_ENDIAN_LITTLE";;
13818 yes | no) ;;
13819 *) as_fn_error $? "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5;;
13820esac
13821fi
13822
13823cat >>confdefs.h <<_ACEOF
13824#define WITH_TARGET_BYTE_ORDER ${sim_endian:-BFD_ENDIAN_UNKNOWN}
13825_ACEOF
13826
13827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
13828$as_echo "${sim_alignment:-no}" >&6; }
04381273 13829
dba333c1 13830
5ea45474
MF
13831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5
13832$as_echo_n "checking default sim environment setting... " >&6; }
13833sim_environment="ALL_ENVIRONMENT"
13834# Check whether --enable-sim-environment was given.
13835if test "${enable_sim_environment+set}" = set; then :
13836 enableval=$enable_sim_environment; case "${enableval}" in
13837 all | ALL) sim_environment="ALL_ENVIRONMENT";;
13838 user | USER) sim_environment="USER_ENVIRONMENT";;
13839 virtual | VIRTUAL) sim_environment="VIRTUAL_ENVIRONMENT";;
13840 operating | OPERATING) sim_environment="OPERATING_ENVIRONMENT";;
13841 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;;
13842esac
13843fi
13844
13845cat >>confdefs.h <<_ACEOF
13846#define WITH_ENVIRONMENT $sim_environment
13847_ACEOF
13848
13849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5
13850$as_echo "$sim_environment" >&6; }
13851
d73f39ee
MF
13852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking sim inline settings" >&5
13853$as_echo_n "checking sim inline settings... " >&6; }
13854sim_inline="-DDEFAULT_INLINE=0"
13855# Check whether --enable-sim-inline was given.
13856if test "${enable_sim_inline+set}" = set; then :
13857 enableval=$enable_sim_inline; sim_inline=""
13858case "$enableval" in
13859 no) sim_inline="-DDEFAULT_INLINE=0";;
13860 0) sim_inline="-DDEFAULT_INLINE=0";;
13861 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
13862 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
13863 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
13864 new_flag=""
13865 case "$x" in
13866 *_INLINE=*) new_flag="-D$x";;
13867 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
13868 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
13869 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
13870 esac
13871 if test x"$sim_inline" = x""; then
13872 sim_inline="$new_flag"
13873 else
13874 sim_inline="$sim_inline $new_flag"
13875 fi
13876 done;;
13877esac
13878
13879fi
13880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_inline" >&5
13881$as_echo "$sim_inline" >&6; }
13882SIM_INLINE=$sim_inline
13883
13884
04381273
MF
13885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5
13886$as_echo_n "checking for sim profile settings... " >&6; }
13887profile="1"
13888sim_profile="-1"
13889# Check whether --enable-sim-profile was given.
13890if test "${enable_sim_profile+set}" = set; then :
13891 enableval=$enable_sim_profile; case "${enableval}" in
13892 yes) profile="1" sim_profile="-1";;
13893 no) profile="0" sim_profile="0";;
13894 [-0-9]*)
13895 profile="(${enableval})" sim_profile="(${enableval})";;
13896 [a-z]*)
13897 profile="1"
13898 sim_profile=""
13899 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
13900 if test x"$sim_profile" = x; then
13901 sim_profile="(PROFILE_$x"
13902 else
13903 sim_profile="${sim_profile}|PROFILE_$x"
13904 fi
13905 done
13906 sim_profile="$sim_profile)" ;;
13907esac
13908fi
13909
13910cat >>confdefs.h <<_ACEOF
13911#define PROFILE $profile
13912_ACEOF
13913
13914
13915cat >>confdefs.h <<_ACEOF
13916#define WITH_PROFILE $sim_profile
13917_ACEOF
13918
13919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5
13920$as_echo "$sim_profile" >&6; }
13921
13922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5
13923$as_echo_n "checking for sim stdio debug behavior... " >&6; }
13924sim_stdio="0"
13925# Check whether --enable-sim-stdio was given.
13926if test "${enable_sim_stdio+set}" = set; then :
13927 enableval=$enable_sim_stdio; case "${enableval}" in
13928 yes) sim_stdio="DO_USE_STDIO";;
13929 no) sim_stdio="DONT_USE_STDIO";;
13930 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;;
13931esac
13932fi
13933
13934cat >>confdefs.h <<_ACEOF
13935#define WITH_STDIO $sim_stdio
13936_ACEOF
13937
13938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5
13939$as_echo "$sim_stdio" >&6; }
13940
13941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5
13942$as_echo_n "checking for sim trace settings... " >&6; }
13943sim_trace="~TRACE_debug"
13944# Check whether --enable-sim-trace was given.
13945if test "${enable_sim_trace+set}" = set; then :
13946 enableval=$enable_sim_trace; case "${enableval}" in
13947 yes) sim_trace="-1";;
13948 no) sim_trace="0";;
13949 [-0-9]*)
13950 sim_trace="'(${enableval})'";;
13951 [[:lower:]]*)
13952 sim_trace=""
13953 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
13954 if test x"$sim_trace" = x; then
13955 sim_trace="(TRACE_$x"
13956 else
13957 sim_trace="${sim_trace}|TRACE_$x"
13958 fi
13959 done
13960 sim_trace="$sim_trace)" ;;
13961esac
13962fi
13963
13964cat >>confdefs.h <<_ACEOF
13965#define WITH_TRACE $sim_trace
13966_ACEOF
13967
13968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5
13969$as_echo "$sim_trace" >&6; }
13970
5ea45474 13971
47ce766a
MF
13972# Check whether --enable-werror was given.
13973if test "${enable_werror+set}" = set; then :
13974 enableval=$enable_werror; case "${enableval}" in
13975 yes | y) ERROR_ON_WARNING="yes" ;;
13976 no | n) ERROR_ON_WARNING="no" ;;
13977 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
13978 esac
13979fi
13980
13981
13982if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
13983 ERROR_ON_WARNING=yes
13984fi
13985
13986WERROR_CFLAGS=""
13987if test "${ERROR_ON_WARNING}" = yes ; then
13988 WERROR_CFLAGS="-Werror"
13989fi
13990
13991build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
13992-Wpointer-sign \
13993-Wno-unused -Wunused-value -Wunused-function \
13994-Wno-switch -Wno-char-subscripts -Wmissing-prototypes
13995-Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
13996-Wold-style-declaration -Wold-style-definition"
13997
13998# Enable -Wno-format by default when using gcc on mingw since many
13999# GCC versions complain about %I64.
14000case "${host}" in
14001 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
14002 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
14003esac
14004
14005# Check whether --enable-build-warnings was given.
14006if test "${enable_build_warnings+set}" = set; then :
14007 enableval=$enable_build_warnings; case "${enableval}" in
14008 yes) ;;
14009 no) build_warnings="-w";;
14010 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14011 build_warnings="${build_warnings} ${t}";;
14012 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14013 build_warnings="${t} ${build_warnings}";;
14014 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14015esac
14016if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
14017 echo "Setting compiler warning flags = $build_warnings" 6>&1
14018fi
14019fi
14020# Check whether --enable-sim-build-warnings was given.
14021if test "${enable_sim_build_warnings+set}" = set; then :
14022 enableval=$enable_sim_build_warnings; case "${enableval}" in
14023 yes) ;;
14024 no) build_warnings="-w";;
14025 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14026 build_warnings="${build_warnings} ${t}";;
14027 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14028 build_warnings="${t} ${build_warnings}";;
14029 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14030esac
14031if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
14032 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
14033fi
14034fi
14035WARN_CFLAGS=""
14036if test "x${build_warnings}" != x -a "x$GCC" = xyes
14037then
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
14039$as_echo_n "checking compiler warning flags... " >&6; }
14040 # Separate out the -Werror flag as some files just cannot be
14041 # compiled with it enabled.
14042 for w in ${build_warnings}; do
14043 case $w in
14044 -Werr*) WERROR_CFLAGS=-Werror ;;
14045 *) # Check that GCC accepts it
14046 saved_CFLAGS="$CFLAGS"
14047 CFLAGS="$CFLAGS -Werror $w"
14048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14049/* end confdefs.h. */
14050
14051int
14052main ()
14053{
14054
14055 ;
14056 return 0;
14057}
14058_ACEOF
14059if ac_fn_c_try_compile "$LINENO"; then :
14060 WARN_CFLAGS="${WARN_CFLAGS} $w"
14061fi
14062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14063 CFLAGS="$saved_CFLAGS"
14064 esac
14065 done
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
14067$as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
14068fi
14069
14070
3f8414df 14071ac_config_files="$ac_config_files arch-subdir.mk Makefile"
81ecdfbb 14072
b7026657 14073cat >confcache <<\_ACEOF
c906108c
SS
14074# This file is a shell script that caches the results of configure
14075# tests run on this system so they can be shared between configure
b7026657
AC
14076# scripts and configure runs, see configure's option --config-cache.
14077# It is not useful on other systems. If it contains results you don't
14078# want to keep, you may remove or edit it.
c906108c 14079#
b7026657
AC
14080# config.status only pays attention to the cache file if you give it
14081# the --recheck option to rerun configure.
c906108c 14082#
b7026657
AC
14083# `ac_cv_env_foo' variables (set or unset) will be overridden when
14084# loading this file, other *unset* `ac_cv_foo' will be assigned the
14085# following values.
14086
14087_ACEOF
14088
c906108c
SS
14089# The following way of writing the cache mishandles newlines in values,
14090# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 14091# So, we kill variables containing newlines.
c906108c
SS
14092# Ultrix sh set writes to stderr and can't be redirected directly,
14093# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
14094(
14095 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14096 eval ac_val=\$$ac_var
14097 case $ac_val in #(
14098 *${as_nl}*)
14099 case $ac_var in #(
14100 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14101$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14102 esac
14103 case $ac_var in #(
14104 _ | IFS | as_nl) ;; #(
14105 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14106 *) { eval $ac_var=; unset $ac_var;} ;;
14107 esac ;;
14108 esac
14109 done
14110
b7026657 14111 (set) 2>&1 |
81ecdfbb
RW
14112 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14113 *${as_nl}ac_space=\ *)
14114 # `set' does not quote correctly, so add quotes: double-quote
14115 # substitution turns \\\\ into \\, and sed turns \\ into \.
b7026657
AC
14116 sed -n \
14117 "s/'/'\\\\''/g;
14118 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 14119 ;; #(
b7026657
AC
14120 *)
14121 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 14122 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 14123 ;;
81ecdfbb
RW
14124 esac |
14125 sort
14126) |
b7026657 14127 sed '
81ecdfbb 14128 /^ac_cv_env_/b end
b7026657 14129 t clear
81ecdfbb 14130 :clear
b7026657
AC
14131 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14132 t end
81ecdfbb
RW
14133 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14134 :end' >>confcache
14135if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14136 if test -w "$cache_file"; then
d0ac1c44 14137 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14139$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
14140 if test ! -f "$cache_file" || test -h "$cache_file"; then
14141 cat confcache >"$cache_file"
14142 else
14143 case $cache_file in #(
14144 */* | ?:*)
14145 mv -f confcache "$cache_file"$$ &&
14146 mv -f "$cache_file"$$ "$cache_file" ;; #(
14147 *)
14148 mv -f confcache "$cache_file" ;;
14149 esac
14150 fi
14151 fi
c906108c 14152 else
81ecdfbb
RW
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14154$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
c906108c
SS
14155 fi
14156fi
14157rm -f confcache
14158
c906108c
SS
14159test "x$prefix" = xNONE && prefix=$ac_default_prefix
14160# Let make expand exec_prefix.
14161test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14162
b15c5d7a 14163DEFS=-DHAVE_CONFIG_H
b7026657
AC
14164
14165ac_libobjs=
14166ac_ltlibobjs=
d0ac1c44 14167U=
b7026657
AC
14168for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14169 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
14170 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14171 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14172 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14173 # will be set to the directory where LIBOBJS objects are built.
14174 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14175 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
b7026657
AC
14176done
14177LIBOBJS=$ac_libobjs
c906108c 14178
b7026657
AC
14179LTLIBOBJS=$ac_ltlibobjs
14180
14181
c2783492 14182
b5689863
MF
14183if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
14184 as_fn_error $? "conditional \"PLUGINS\" was never defined.
14185Usually this means the macro was only invoked conditionally." "$LINENO" 5
14186fi
8c379db2
TT
14187if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14188 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14189Usually this means the macro was only invoked conditionally." "$LINENO" 5
14190fi
6bddc3e8
MF
14191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14192$as_echo_n "checking that generated files are newer than configure... " >&6; }
14193 if test -n "$am_sleep_pid"; then
14194 # Hide warnings about reused PIDs.
14195 wait $am_sleep_pid 2>/dev/null
14196 fi
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14198$as_echo "done" >&6; }
6bddc3e8
MF
14199if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14200 as_fn_error $? "conditional \"AMDEP\" was never defined.
14201Usually this means the macro was only invoked conditionally." "$LINENO" 5
14202fi
14203if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14204 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14205Usually this means the macro was only invoked conditionally." "$LINENO" 5
14206fi
c2783492
MF
14207 if test -n "$EXEEXT"; then
14208 am__EXEEXT_TRUE=
14209 am__EXEEXT_FALSE='#'
14210else
14211 am__EXEEXT_TRUE='#'
14212 am__EXEEXT_FALSE=
6bddc3e8 14213fi
b7026657 14214
b6b1c790
MF
14215if test -z "${SIM_ENABLE_IGEN_TRUE}" && test -z "${SIM_ENABLE_IGEN_FALSE}"; then
14216 as_fn_error $? "conditional \"SIM_ENABLE_IGEN\" was never defined.
14217Usually this means the macro was only invoked conditionally." "$LINENO" 5
14218fi
c2783492 14219
d0ac1c44 14220: "${CONFIG_STATUS=./config.status}"
81ecdfbb 14221ac_write_fail=0
b7026657
AC
14222ac_clean_files_save=$ac_clean_files
14223ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
14224{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14225$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14226as_write_fail=0
14227cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
b7026657
AC
14228#! $SHELL
14229# Generated by $as_me.
c906108c 14230# Run this file to recreate the current configuration.
c906108c 14231# Compiler output produced by configure, useful for debugging
b7026657
AC
14232# configure, is in config.log if it exists.
14233
14234debug=false
14235ac_cs_recheck=false
14236ac_cs_silent=false
b7026657 14237
81ecdfbb
RW
14238SHELL=\${CONFIG_SHELL-$SHELL}
14239export SHELL
14240_ASEOF
14241cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14242## -------------------- ##
14243## M4sh Initialization. ##
14244## -------------------- ##
14245
14246# Be more Bourne compatible
14247DUALCASE=1; export DUALCASE # for MKS sh
14248if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b7026657
AC
14249 emulate sh
14250 NULLCMD=:
81ecdfbb 14251 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b7026657
AC
14252 # is contrary to our usage. Disable this feature.
14253 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
14254 setopt NO_GLOB_SUBST
14255else
14256 case `(set -o) 2>/dev/null` in #(
14257 *posix*) :
14258 set -o posix ;; #(
14259 *) :
14260 ;;
14261esac
b7026657 14262fi
c906108c 14263
81ecdfbb
RW
14264
14265as_nl='
14266'
14267export as_nl
14268# Printing a long string crashes Solaris 7 /usr/bin/printf.
14269as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14270as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14271as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14272# Prefer a ksh shell builtin over an external printf program on Solaris,
14273# but without wasting forks for bash or zsh.
14274if test -z "$BASH_VERSION$ZSH_VERSION" \
14275 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14276 as_echo='print -r --'
14277 as_echo_n='print -rn --'
14278elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14279 as_echo='printf %s\n'
14280 as_echo_n='printf %s'
b7026657 14281else
81ecdfbb
RW
14282 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14283 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14284 as_echo_n='/usr/ucb/echo -n'
14285 else
14286 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14287 as_echo_n_body='eval
14288 arg=$1;
14289 case $arg in #(
14290 *"$as_nl"*)
14291 expr "X$arg" : "X\\(.*\\)$as_nl";
14292 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14293 esac;
14294 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14295 '
14296 export as_echo_n_body
14297 as_echo_n='sh -c $as_echo_n_body as_echo'
14298 fi
14299 export as_echo_body
14300 as_echo='sh -c $as_echo_body as_echo'
14301fi
14302
14303# The user is always right.
14304if test "${PATH_SEPARATOR+set}" != set; then
14305 PATH_SEPARATOR=:
14306 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14307 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14308 PATH_SEPARATOR=';'
14309 }
b7026657
AC
14310fi
14311
14312
81ecdfbb
RW
14313# IFS
14314# We need space, tab and new line, in precisely that order. Quoting is
14315# there to prevent editors from complaining about space-tab.
14316# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14317# splitting by setting IFS to empty value.)
14318IFS=" "" $as_nl"
14319
14320# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 14321as_myself=
81ecdfbb
RW
14322case $0 in #((
14323 *[\\/]* ) as_myself=$0 ;;
14324 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14325for as_dir in $PATH
14326do
14327 IFS=$as_save_IFS
14328 test -z "$as_dir" && as_dir=.
14329 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14330 done
14331IFS=$as_save_IFS
14332
14333 ;;
14334esac
14335# We did not find ourselves, most probably we were run as `sh COMMAND'
14336# in which case we are not to be found in the path.
14337if test "x$as_myself" = x; then
14338 as_myself=$0
14339fi
14340if test ! -f "$as_myself"; then
14341 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14342 exit 1
14343fi
14344
14345# Unset variables that we do not need and which cause bugs (e.g. in
14346# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14347# suppresses any "Segmentation fault" message there. '((' could
14348# trigger a bug in pdksh 5.2.14.
14349for as_var in BASH_ENV ENV MAIL MAILPATH
14350do eval test x\${$as_var+set} = xset \
14351 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14352done
b7026657
AC
14353PS1='$ '
14354PS2='> '
14355PS4='+ '
14356
14357# NLS nuisances.
81ecdfbb
RW
14358LC_ALL=C
14359export LC_ALL
14360LANGUAGE=C
14361export LANGUAGE
14362
14363# CDPATH.
14364(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14365
14366
d0ac1c44
SM
14367# as_fn_error STATUS ERROR [LINENO LOG_FD]
14368# ----------------------------------------
81ecdfbb
RW
14369# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14370# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 14371# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
14372as_fn_error ()
14373{
d0ac1c44
SM
14374 as_status=$1; test $as_status -eq 0 && as_status=1
14375 if test "$4"; then
14376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
b7026657 14378 fi
d0ac1c44 14379 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
14380 as_fn_exit $as_status
14381} # as_fn_error
c906108c 14382
81ecdfbb
RW
14383
14384# as_fn_set_status STATUS
14385# -----------------------
14386# Set $? to STATUS, without forking.
14387as_fn_set_status ()
14388{
14389 return $1
14390} # as_fn_set_status
14391
14392# as_fn_exit STATUS
14393# -----------------
14394# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14395as_fn_exit ()
14396{
14397 set +e
14398 as_fn_set_status $1
14399 exit $1
14400} # as_fn_exit
14401
14402# as_fn_unset VAR
14403# ---------------
14404# Portably unset VAR.
14405as_fn_unset ()
14406{
14407 { eval $1=; unset $1;}
14408}
14409as_unset=as_fn_unset
14410# as_fn_append VAR VALUE
14411# ----------------------
14412# Append the text in VALUE to the end of the definition contained in VAR. Take
14413# advantage of any shell optimizations that allow amortized linear growth over
14414# repeated appends, instead of the typical quadratic growth present in naive
14415# implementations.
14416if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14417 eval 'as_fn_append ()
14418 {
14419 eval $1+=\$2
14420 }'
14421else
14422 as_fn_append ()
14423 {
14424 eval $1=\$$1\$2
14425 }
14426fi # as_fn_append
14427
14428# as_fn_arith ARG...
14429# ------------------
14430# Perform arithmetic evaluation on the ARGs, and store the result in the
14431# global $as_val. Take advantage of shells that can avoid forks. The arguments
14432# must be portable across $(()) and expr.
14433if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14434 eval 'as_fn_arith ()
14435 {
14436 as_val=$(( $* ))
14437 }'
14438else
14439 as_fn_arith ()
14440 {
14441 as_val=`expr "$@" || test $? -eq 1`
14442 }
14443fi # as_fn_arith
14444
14445
14446if expr a : '\(a\)' >/dev/null 2>&1 &&
14447 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b7026657
AC
14448 as_expr=expr
14449else
14450 as_expr=false
14451fi
c906108c 14452
81ecdfbb 14453if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b7026657
AC
14454 as_basename=basename
14455else
14456 as_basename=false
14457fi
c906108c 14458
81ecdfbb
RW
14459if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14460 as_dirname=dirname
14461else
14462 as_dirname=false
14463fi
c906108c 14464
81ecdfbb 14465as_me=`$as_basename -- "$0" ||
b7026657
AC
14466$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14467 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
14468 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14469$as_echo X/"$0" |
14470 sed '/^.*\/\([^/][^/]*\)\/*$/{
14471 s//\1/
14472 q
14473 }
14474 /^X\/\(\/\/\)$/{
14475 s//\1/
14476 q
14477 }
14478 /^X\/\(\/\).*/{
14479 s//\1/
14480 q
14481 }
14482 s/.*/./; q'`
b7026657 14483
fdd6fa61
AG
14484# Avoid depending upon Character Ranges.
14485as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14486as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14487as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14488as_cr_digits='0123456789'
14489as_cr_alnum=$as_cr_Letters$as_cr_digits
14490
81ecdfbb
RW
14491ECHO_C= ECHO_N= ECHO_T=
14492case `echo -n x` in #(((((
14493-n*)
14494 case `echo 'xy\c'` in
14495 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14496 xy) ECHO_C='\c';;
14497 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14498 ECHO_T=' ';;
14499 esac;;
14500*)
14501 ECHO_N='-n';;
b7026657
AC
14502esac
14503
81ecdfbb
RW
14504rm -f conf$$ conf$$.exe conf$$.file
14505if test -d conf$$.dir; then
14506 rm -f conf$$.dir/conf$$.file
b7026657 14507else
81ecdfbb
RW
14508 rm -f conf$$.dir
14509 mkdir conf$$.dir 2>/dev/null
b7026657 14510fi
81ecdfbb
RW
14511if (echo >conf$$.file) 2>/dev/null; then
14512 if ln -s conf$$.file conf$$ 2>/dev/null; then
fdd6fa61 14513 as_ln_s='ln -s'
81ecdfbb
RW
14514 # ... but there are two gotchas:
14515 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14516 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 14517 # In both cases, we have to default to `cp -pR'.
81ecdfbb 14518 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 14519 as_ln_s='cp -pR'
81ecdfbb
RW
14520 elif ln conf$$.file conf$$ 2>/dev/null; then
14521 as_ln_s=ln
14522 else
d0ac1c44 14523 as_ln_s='cp -pR'
fdd6fa61 14524 fi
b7026657 14525else
d0ac1c44 14526 as_ln_s='cp -pR'
b7026657 14527fi
81ecdfbb
RW
14528rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14529rmdir conf$$.dir 2>/dev/null
14530
14531
14532# as_fn_mkdir_p
14533# -------------
14534# Create "$as_dir" as a directory, including parents if necessary.
14535as_fn_mkdir_p ()
14536{
b7026657 14537
81ecdfbb
RW
14538 case $as_dir in #(
14539 -*) as_dir=./$as_dir;;
14540 esac
14541 test -d "$as_dir" || eval $as_mkdir_p || {
14542 as_dirs=
14543 while :; do
14544 case $as_dir in #(
14545 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14546 *) as_qdir=$as_dir;;
14547 esac
14548 as_dirs="'$as_qdir' $as_dirs"
14549 as_dir=`$as_dirname -- "$as_dir" ||
14550$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14551 X"$as_dir" : 'X\(//\)[^/]' \| \
14552 X"$as_dir" : 'X\(//\)$' \| \
14553 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14554$as_echo X"$as_dir" |
14555 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14556 s//\1/
14557 q
14558 }
14559 /^X\(\/\/\)[^/].*/{
14560 s//\1/
14561 q
14562 }
14563 /^X\(\/\/\)$/{
14564 s//\1/
14565 q
14566 }
14567 /^X\(\/\).*/{
14568 s//\1/
14569 q
14570 }
14571 s/.*/./; q'`
14572 test -d "$as_dir" && break
14573 done
14574 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 14575 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb
RW
14576
14577
14578} # as_fn_mkdir_p
b7026657 14579if mkdir -p . 2>/dev/null; then
81ecdfbb 14580 as_mkdir_p='mkdir -p "$as_dir"'
b7026657
AC
14581else
14582 test -d ./-p && rmdir ./-p
14583 as_mkdir_p=false
14584fi
14585
d0ac1c44
SM
14586
14587# as_fn_executable_p FILE
14588# -----------------------
14589# Test if FILE is an executable regular file.
14590as_fn_executable_p ()
14591{
14592 test -f "$1" && test -x "$1"
14593} # as_fn_executable_p
14594as_test_x='test -x'
14595as_executable_p=as_fn_executable_p
b7026657
AC
14596
14597# Sed expression to map a string onto a valid CPP name.
14598as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14599
14600# Sed expression to map a string onto a valid variable name.
14601as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14602
14603
b7026657 14604exec 6>&1
81ecdfbb
RW
14605## ----------------------------------- ##
14606## Main body of $CONFIG_STATUS script. ##
14607## ----------------------------------- ##
14608_ASEOF
14609test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14610
14611cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14612# Save the log message, to keep $0 and so on meaningful, and to
b7026657 14613# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
14614# values after options handling.
14615ac_log="
6bddc3e8 14616This file was extended by sim $as_me 0, which was
d0ac1c44 14617generated by GNU Autoconf 2.69. Invocation command line was
b7026657
AC
14618
14619 CONFIG_FILES = $CONFIG_FILES
14620 CONFIG_HEADERS = $CONFIG_HEADERS
14621 CONFIG_LINKS = $CONFIG_LINKS
14622 CONFIG_COMMANDS = $CONFIG_COMMANDS
14623 $ $0 $@
14624
81ecdfbb
RW
14625on `(hostname || uname -n) 2>/dev/null | sed 1q`
14626"
14627
b7026657
AC
14628_ACEOF
14629
81ecdfbb
RW
14630case $ac_config_files in *"
14631"*) set x $ac_config_files; shift; ac_config_files=$*;;
14632esac
b7026657 14633
b15c5d7a
MF
14634case $ac_config_headers in *"
14635"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14636esac
fdd6fa61 14637
fdd6fa61 14638
81ecdfbb
RW
14639cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14640# Files that config.status was made for.
14641config_files="$ac_config_files"
b15c5d7a 14642config_headers="$ac_config_headers"
6bddc3e8 14643config_commands="$ac_config_commands"
b7026657 14644
81ecdfbb 14645_ACEOF
fdd6fa61 14646
81ecdfbb 14647cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657 14648ac_cs_usage="\
81ecdfbb
RW
14649\`$as_me' instantiates files and other configuration actions
14650from templates according to the current configuration. Unless the files
14651and actions are specified as TAGs, all are instantiated by default.
b7026657 14652
81ecdfbb 14653Usage: $0 [OPTION]... [TAG]...
b7026657
AC
14654
14655 -h, --help print this help, then exit
81ecdfbb 14656 -V, --version print version number and configuration settings, then exit
d0ac1c44 14657 --config print configuration, then exit
81ecdfbb
RW
14658 -q, --quiet, --silent
14659 do not print progress messages
b7026657
AC
14660 -d, --debug don't remove temporary files
14661 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
14662 --file=FILE[:TEMPLATE]
14663 instantiate the configuration file FILE
b15c5d7a
MF
14664 --header=FILE[:TEMPLATE]
14665 instantiate the configuration header FILE
b7026657
AC
14666
14667Configuration files:
14668$config_files
14669
b15c5d7a
MF
14670Configuration headers:
14671$config_headers
14672
6bddc3e8
MF
14673Configuration commands:
14674$config_commands
14675
14676Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
14677sim home page: <https://sourceware.org/gdb/wiki/Sim/>."
fdd6fa61 14678
81ecdfbb
RW
14679_ACEOF
14680cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 14681ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
b7026657 14682ac_cs_version="\\
6bddc3e8 14683sim config.status 0
d0ac1c44
SM
14684configured by $0, generated by GNU Autoconf 2.69,
14685 with options \\"\$ac_cs_config\\"
b7026657 14686
d0ac1c44 14687Copyright (C) 2012 Free Software Foundation, Inc.
b7026657
AC
14688This config.status script is free software; the Free Software Foundation
14689gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
14690
14691ac_pwd='$ac_pwd'
14692srcdir='$srcdir'
14693INSTALL='$INSTALL'
6bddc3e8
MF
14694MKDIR_P='$MKDIR_P'
14695AWK='$AWK'
81ecdfbb 14696test -n "\$AWK" || AWK=awk
b7026657
AC
14697_ACEOF
14698
81ecdfbb
RW
14699cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14700# The default lists apply if the user does not specify any file.
b7026657
AC
14701ac_need_defaults=:
14702while test $# != 0
14703do
14704 case $1 in
d0ac1c44 14705 --*=?*)
81ecdfbb
RW
14706 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14707 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b7026657
AC
14708 ac_shift=:
14709 ;;
d0ac1c44
SM
14710 --*=)
14711 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14712 ac_optarg=
14713 ac_shift=:
14714 ;;
81ecdfbb 14715 *)
b7026657
AC
14716 ac_option=$1
14717 ac_optarg=$2
14718 ac_shift=shift
14719 ;;
b7026657
AC
14720 esac
14721
14722 case $ac_option in
14723 # Handling of the options.
b7026657
AC
14724 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14725 ac_cs_recheck=: ;;
81ecdfbb
RW
14726 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14727 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
14728 --config | --confi | --conf | --con | --co | --c )
14729 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 14730 --debug | --debu | --deb | --de | --d | -d )
b7026657
AC
14731 debug=: ;;
14732 --file | --fil | --fi | --f )
14733 $ac_shift
81ecdfbb
RW
14734 case $ac_optarg in
14735 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 14736 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
14737 esac
14738 as_fn_append CONFIG_FILES " '$ac_optarg'"
fdd6fa61 14739 ac_need_defaults=false;;
b15c5d7a
MF
14740 --header | --heade | --head | --hea )
14741 $ac_shift
14742 case $ac_optarg in
14743 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14744 esac
14745 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14746 ac_need_defaults=false;;
14747 --he | --h)
14748 # Conflict between --help and --header
14749 as_fn_error $? "ambiguous option: \`$1'
14750Try \`$0 --help' for more information.";;
14751 --help | --hel | -h )
81ecdfbb 14752 $as_echo "$ac_cs_usage"; exit ;;
b7026657
AC
14753 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14754 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14755 ac_cs_silent=: ;;
14756
14757 # This is an error.
d0ac1c44 14758 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 14759Try \`$0 --help' for more information." ;;
b7026657 14760
81ecdfbb
RW
14761 *) as_fn_append ac_config_targets " $1"
14762 ac_need_defaults=false ;;
b7026657
AC
14763
14764 esac
14765 shift
c906108c 14766done
b7026657
AC
14767
14768ac_configure_extra_args=
14769
14770if $ac_cs_silent; then
14771 exec 6>/dev/null
14772 ac_configure_extra_args="$ac_configure_extra_args --silent"
c906108c 14773fi
c906108c 14774
b7026657 14775_ACEOF
81ecdfbb 14776cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b7026657 14777if \$ac_cs_recheck; then
d0ac1c44 14778 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
14779 shift
14780 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14781 CONFIG_SHELL='$SHELL'
14782 export CONFIG_SHELL
14783 exec "\$@"
b7026657 14784fi
c906108c 14785
b7026657 14786_ACEOF
81ecdfbb
RW
14787cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14788exec 5>>config.log
14789{
14790 echo
14791 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14792## Running $as_me. ##
14793_ASBOX
14794 $as_echo "$ac_log"
14795} >&5
b7026657 14796
81ecdfbb
RW
14797_ACEOF
14798cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6bddc3e8
MF
14799#
14800# INIT-COMMANDS
14801#
b5689863
MF
14802
14803
14804# The HP-UX ksh and POSIX shell print the target directory to stdout
14805# if CDPATH is set.
14806(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14807
14808sed_quote_subst='$sed_quote_subst'
14809double_quote_subst='$double_quote_subst'
14810delay_variable_subst='$delay_variable_subst'
14811macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14812macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14813enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14814enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14815pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14816enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14817SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14818ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14819host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14820host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14821host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14822build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14823build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14824build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14825SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14826Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14827GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14828EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14829FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14830LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14831NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14832LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14833max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14834ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14835exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14836lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14837lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14838lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14839reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14840reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14841OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14842deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14843file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14844AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14845AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14846STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14847RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14848old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14849old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14850old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14851lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14852CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14853CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14854compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14855GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14856lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14857lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14858lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14859lt_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"`'
14860objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14861MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14862lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14863lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14864lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14865lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14866lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14867need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14868DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14869NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14870LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14871OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14872OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14873libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14874shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14875extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14876archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14877enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14878export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14879whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14880compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14881old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14882old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14883archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14884archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14885module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14886module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14887with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14888allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14889no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14890hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14891hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14892hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14893hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14894hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14895hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14896hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14897hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14898inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14899link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14900fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
14901always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14902export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14903exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14904include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14905prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14906file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14907variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14908need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14909need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14910version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14911runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14912shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14913shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14914libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14915library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14916soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14917install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14918postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14919postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14920finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14921finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14922hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14923sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14924sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14925hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14926enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14927enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14928enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14929old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14930striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14931
14932LTCC='$LTCC'
14933LTCFLAGS='$LTCFLAGS'
14934compiler='$compiler_DEFAULT'
14935
14936# A function that is used when there is no print builtin or printf.
14937func_fallback_echo ()
14938{
14939 eval 'cat <<_LTECHO_EOF
14940\$1
14941_LTECHO_EOF'
14942}
14943
14944# Quote evaled strings.
14945for var in SHELL \
14946ECHO \
14947SED \
14948GREP \
14949EGREP \
14950FGREP \
14951LD \
14952NM \
14953LN_S \
14954lt_SP2NL \
14955lt_NL2SP \
14956reload_flag \
14957OBJDUMP \
14958deplibs_check_method \
14959file_magic_cmd \
14960AR \
14961AR_FLAGS \
14962STRIP \
14963RANLIB \
14964CC \
14965CFLAGS \
14966compiler \
14967lt_cv_sys_global_symbol_pipe \
14968lt_cv_sys_global_symbol_to_cdecl \
14969lt_cv_sys_global_symbol_to_c_name_address \
14970lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14971lt_prog_compiler_no_builtin_flag \
14972lt_prog_compiler_wl \
14973lt_prog_compiler_pic \
14974lt_prog_compiler_static \
14975lt_cv_prog_compiler_c_o \
14976need_locks \
14977DSYMUTIL \
14978NMEDIT \
14979LIPO \
14980OTOOL \
14981OTOOL64 \
14982shrext_cmds \
14983export_dynamic_flag_spec \
14984whole_archive_flag_spec \
14985compiler_needs_object \
14986with_gnu_ld \
14987allow_undefined_flag \
14988no_undefined_flag \
14989hardcode_libdir_flag_spec \
14990hardcode_libdir_flag_spec_ld \
14991hardcode_libdir_separator \
14992fix_srcfile_path \
14993exclude_expsyms \
14994include_expsyms \
14995file_list_spec \
14996variables_saved_for_relink \
14997libname_spec \
14998library_names_spec \
14999soname_spec \
15000install_override_mode \
15001finish_eval \
15002old_striplib \
15003striplib; do
15004 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15005 *[\\\\\\\`\\"\\\$]*)
15006 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15007 ;;
15008 *)
15009 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15010 ;;
15011 esac
15012done
15013
15014# Double-quote double-evaled strings.
15015for var in reload_cmds \
15016old_postinstall_cmds \
15017old_postuninstall_cmds \
15018old_archive_cmds \
15019extract_expsyms_cmds \
15020old_archive_from_new_cmds \
15021old_archive_from_expsyms_cmds \
15022archive_cmds \
15023archive_expsym_cmds \
15024module_cmds \
15025module_expsym_cmds \
15026export_symbols_cmds \
15027prelink_cmds \
15028postinstall_cmds \
15029postuninstall_cmds \
15030finish_cmds \
15031sys_lib_search_path_spec \
15032sys_lib_dlsearch_path_spec; do
15033 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15034 *[\\\\\\\`\\"\\\$]*)
15035 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15036 ;;
15037 *)
15038 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15039 ;;
15040 esac
15041done
15042
15043ac_aux_dir='$ac_aux_dir'
15044xsi_shell='$xsi_shell'
15045lt_shell_append='$lt_shell_append'
15046
15047# See if we are running on zsh, and set the options which allow our
15048# commands through without removal of \ escapes INIT.
15049if test -n "\${ZSH_VERSION+set}" ; then
15050 setopt NO_GLOB_SUBST
15051fi
15052
15053
15054 PACKAGE='$PACKAGE'
15055 VERSION='$VERSION'
15056 TIMESTAMP='$TIMESTAMP'
15057 RM='$RM'
15058 ofile='$ofile'
15059
15060
15061
6bddc3e8 15062AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
bc56166f
MF
15063ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15064ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15065ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15066ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15067ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15068ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15069ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15070ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15071ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15072ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15073ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15074ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15075ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15076ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15077ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15078ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15079ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15080ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15081ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15082ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15083ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15084ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15085ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15086ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15087ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15088ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15089ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15090ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15091ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15092ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15093ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15094ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
6bddc3e8 15095
81ecdfbb 15096_ACEOF
b7026657 15097
81ecdfbb 15098cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
df1756f4 15099
81ecdfbb 15100# Handling of arguments.
b7026657
AC
15101for ac_config_target in $ac_config_targets
15102do
81ecdfbb 15103 case $ac_config_target in
b15c5d7a 15104 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
b5689863 15105 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
6bddc3e8 15106 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
bc56166f
MF
15107 "depdir-aarch64") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-aarch64" ;;
15108 "depdir-arm") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-arm" ;;
15109 "depdir-avr") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-avr" ;;
15110 "depdir-bfin") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-bfin" ;;
15111 "depdir-bpf") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-bpf" ;;
15112 "depdir-cr16") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-cr16" ;;
15113 "depdir-cris") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-cris" ;;
15114 "depdir-d10v") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-d10v" ;;
15115 "depdir-frv") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-frv" ;;
15116 "depdir-h8300") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-h8300" ;;
15117 "depdir-iq2000") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-iq2000" ;;
15118 "depdir-lm32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-lm32" ;;
15119 "depdir-m32c") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m32c" ;;
15120 "depdir-m32r") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m32r" ;;
15121 "depdir-m68hc11") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m68hc11" ;;
15122 "depdir-mcore") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mcore" ;;
15123 "depdir-microblaze") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-microblaze" ;;
15124 "depdir-mips") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mips" ;;
15125 "depdir-mn10300") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mn10300" ;;
15126 "depdir-moxie") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-moxie" ;;
15127 "depdir-msp430") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-msp430" ;;
15128 "depdir-or1k") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-or1k" ;;
15129 "depdir-pru") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-pru" ;;
15130 "depdir-riscv") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-riscv" ;;
15131 "depdir-rl78") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-rl78" ;;
15132 "depdir-rx") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-rx" ;;
15133 "depdir-sh") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-sh" ;;
15134 "depdir-erc32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-erc32" ;;
15135 "depdir-ppc") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-ppc" ;;
15136 "depdir-ft32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-ft32" ;;
15137 "depdir-v850") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-v850" ;;
15138 "depdir-example-synacor") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-example-synacor" ;;
3f8414df 15139 "arch-subdir.mk") CONFIG_FILES="$CONFIG_FILES arch-subdir.mk" ;;
81ecdfbb
RW
15140 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15141
d0ac1c44 15142 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c906108c 15143 esac
b7026657 15144done
c906108c 15145
81ecdfbb 15146
b7026657
AC
15147# If the user did not use the arguments to specify the items to instantiate,
15148# then the envvar interface is used. Set only those that are not.
15149# We use the long form for the default assignment because of an extremely
15150# bizarre bug on SunOS 4.1.3.
15151if $ac_need_defaults; then
15152 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
b15c5d7a 15153 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6bddc3e8 15154 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
b7026657 15155fi
c906108c 15156
b7026657 15157# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 15158# simply because there is no reason against having it here, and in addition,
b7026657 15159# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
15160# Hook for its removal unless debugging.
15161# Note that there is a small window in which the directory will not be cleaned:
15162# after its creation but before its name has been assigned to `$tmp'.
b7026657
AC
15163$debug ||
15164{
d0ac1c44 15165 tmp= ac_tmp=
81ecdfbb 15166 trap 'exit_status=$?
d0ac1c44
SM
15167 : "${ac_tmp:=$tmp}"
15168 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
15169' 0
15170 trap 'as_fn_exit 1' 1 2 13 15
b7026657 15171}
b7026657
AC
15172# Create a (secure) tmp directory for tmp files.
15173
15174{
81ecdfbb 15175 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 15176 test -d "$tmp"
b7026657
AC
15177} ||
15178{
81ecdfbb
RW
15179 tmp=./conf$$-$RANDOM
15180 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
15181} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15182ac_tmp=$tmp
81ecdfbb
RW
15183
15184# Set up the scripts for CONFIG_FILES section.
15185# No need to generate them if there are no CONFIG_FILES.
15186# This happens for instance with `./config.status config.h'.
15187if test -n "$CONFIG_FILES"; then
15188
15189
15190ac_cr=`echo X | tr X '\015'`
15191# On cygwin, bash can eat \r inside `` if the user requested igncr.
15192# But we know of no other shell where ac_cr would be empty at this
15193# point, so we can use a bashism as a fallback.
15194if test "x$ac_cr" = x; then
15195 eval ac_cr=\$\'\\r\'
15196fi
15197ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15198if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 15199 ac_cs_awk_cr='\\r'
81ecdfbb
RW
15200else
15201 ac_cs_awk_cr=$ac_cr
15202fi
15203
d0ac1c44 15204echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
81ecdfbb
RW
15205_ACEOF
15206
15207
15208{
15209 echo "cat >conf$$subs.awk <<_ACEOF" &&
15210 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15211 echo "_ACEOF"
15212} >conf$$subs.sh ||
d0ac1c44
SM
15213 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15214ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
15215ac_delim='%!_!# '
15216for ac_last_try in false false false false false :; do
15217 . ./conf$$subs.sh ||
d0ac1c44 15218 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
15219
15220 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15221 if test $ac_delim_n = $ac_delim_num; then
15222 break
15223 elif $ac_last_try; then
d0ac1c44 15224 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
15225 else
15226 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15227 fi
15228done
15229rm -f conf$$subs.sh
15230
15231cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 15232cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
81ecdfbb
RW
15233_ACEOF
15234sed -n '
15235h
15236s/^/S["/; s/!.*/"]=/
15237p
15238g
15239s/^[^!]*!//
15240:repl
15241t repl
15242s/'"$ac_delim"'$//
15243t delim
15244:nl
15245h
d0ac1c44 15246s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
15247t more1
15248s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15249p
15250n
15251b repl
15252:more1
15253s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15254p
15255g
15256s/.\{148\}//
15257t nl
15258:delim
15259h
d0ac1c44 15260s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
15261t more2
15262s/["\\]/\\&/g; s/^/"/; s/$/"/
15263p
15264b
15265:more2
15266s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15267p
15268g
15269s/.\{148\}//
15270t delim
15271' <conf$$subs.awk | sed '
15272/^[^""]/{
15273 N
15274 s/\n//
15275}
15276' >>$CONFIG_STATUS || ac_write_fail=1
15277rm -f conf$$subs.awk
15278cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15279_ACAWK
d0ac1c44 15280cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
15281 for (key in S) S_is_set[key] = 1
15282 FS = "\a"
15283
15284}
b7026657 15285{
81ecdfbb
RW
15286 line = $ 0
15287 nfields = split(line, field, "@")
15288 substed = 0
15289 len = length(field[1])
15290 for (i = 2; i < nfields; i++) {
15291 key = field[i]
15292 keylen = length(key)
15293 if (S_is_set[key]) {
15294 value = S[key]
15295 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15296 len += length(value) + length(field[++i])
15297 substed = 1
15298 } else
15299 len += 1 + keylen
15300 }
15301
15302 print line
b7026657
AC
15303}
15304
81ecdfbb
RW
15305_ACAWK
15306_ACEOF
15307cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15308if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15309 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15310else
15311 cat
d0ac1c44
SM
15312fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15313 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
fdd6fa61
AG
15314_ACEOF
15315
d0ac1c44
SM
15316# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15317# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
15318# trailing colons and then remove the whole line if VPATH becomes empty
15319# (actually we leave an empty line to preserve line numbers).
15320if test "x$srcdir" = x.; then
d0ac1c44
SM
15321 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15322h
15323s///
15324s/^/:/
15325s/[ ]*$/:/
15326s/:\$(srcdir):/:/g
15327s/:\${srcdir}:/:/g
15328s/:@srcdir@:/:/g
15329s/^:*//
81ecdfbb 15330s/:*$//
d0ac1c44
SM
15331x
15332s/\(=[ ]*\).*/\1/
15333G
15334s/\n//
81ecdfbb
RW
15335s/^[^=]*=[ ]*$//
15336}'
15337fi
fdd6fa61 15338
81ecdfbb
RW
15339cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15340fi # test -n "$CONFIG_FILES"
b7026657 15341
b15c5d7a
MF
15342# Set up the scripts for CONFIG_HEADERS section.
15343# No need to generate them if there are no CONFIG_HEADERS.
15344# This happens for instance with `./config.status Makefile'.
15345if test -n "$CONFIG_HEADERS"; then
15346cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15347BEGIN {
15348_ACEOF
15349
15350# Transform confdefs.h into an awk script `defines.awk', embedded as
15351# here-document in config.status, that substitutes the proper values into
15352# config.h.in to produce config.h.
15353
15354# Create a delimiter string that does not exist in confdefs.h, to ease
15355# handling of long lines.
15356ac_delim='%!_!# '
15357for ac_last_try in false false :; do
15358 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15359 if test -z "$ac_tt"; then
15360 break
15361 elif $ac_last_try; then
15362 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15363 else
15364 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15365 fi
15366done
15367
15368# For the awk script, D is an array of macro values keyed by name,
15369# likewise P contains macro parameters if any. Preserve backslash
15370# newline sequences.
15371
15372ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15373sed -n '
15374s/.\{148\}/&'"$ac_delim"'/g
15375t rset
15376:rset
15377s/^[ ]*#[ ]*define[ ][ ]*/ /
15378t def
15379d
15380:def
15381s/\\$//
15382t bsnl
15383s/["\\]/\\&/g
15384s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15385D["\1"]=" \3"/p
15386s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15387d
15388:bsnl
15389s/["\\]/\\&/g
15390s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15391D["\1"]=" \3\\\\\\n"\\/p
15392t cont
15393s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15394t cont
15395d
15396:cont
15397n
15398s/.\{148\}/&'"$ac_delim"'/g
15399t clear
15400:clear
15401s/\\$//
15402t bsnlc
15403s/["\\]/\\&/g; s/^/"/; s/$/"/p
15404d
15405:bsnlc
15406s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15407b cont
15408' <confdefs.h | sed '
15409s/'"$ac_delim"'/"\\\
15410"/g' >>$CONFIG_STATUS || ac_write_fail=1
15411
15412cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15413 for (key in D) D_is_set[key] = 1
15414 FS = "\a"
15415}
15416/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15417 line = \$ 0
15418 split(line, arg, " ")
15419 if (arg[1] == "#") {
15420 defundef = arg[2]
15421 mac1 = arg[3]
15422 } else {
15423 defundef = substr(arg[1], 2)
15424 mac1 = arg[2]
15425 }
15426 split(mac1, mac2, "(") #)
15427 macro = mac2[1]
15428 prefix = substr(line, 1, index(line, defundef) - 1)
15429 if (D_is_set[macro]) {
15430 # Preserve the white space surrounding the "#".
15431 print prefix "define", macro P[macro] D[macro]
15432 next
15433 } else {
15434 # Replace #undef with comments. This is necessary, for example,
15435 # in the case of _POSIX_SOURCE, which is predefined and required
15436 # on some systems where configure will not decide to define it.
15437 if (defundef == "undef") {
15438 print "/*", prefix defundef, macro, "*/"
15439 next
15440 }
15441 }
15442}
15443{ print }
15444_ACAWK
15445_ACEOF
15446cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15447 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15448fi # test -n "$CONFIG_HEADERS"
b7026657 15449
b15c5d7a
MF
15450
15451eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
81ecdfbb
RW
15452shift
15453for ac_tag
15454do
15455 case $ac_tag in
15456 :[FHLC]) ac_mode=$ac_tag; continue;;
15457 esac
15458 case $ac_mode$ac_tag in
15459 :[FHL]*:*);;
d0ac1c44 15460 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
15461 :[FH]-) ac_tag=-:-;;
15462 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15463 esac
15464 ac_save_IFS=$IFS
15465 IFS=:
15466 set x $ac_tag
15467 IFS=$ac_save_IFS
15468 shift
15469 ac_file=$1
15470 shift
b7026657 15471
81ecdfbb
RW
15472 case $ac_mode in
15473 :L) ac_source=$1;;
15474 :[FH])
15475 ac_file_inputs=
15476 for ac_f
15477 do
15478 case $ac_f in
d0ac1c44 15479 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
15480 *) # Look for the file first in the build tree, then in the source tree
15481 # (if the path is not absolute). The absolute path cannot be DOS-style,
15482 # because $ac_f cannot contain `:'.
15483 test -f "$ac_f" ||
15484 case $ac_f in
15485 [\\/$]*) false;;
15486 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15487 esac ||
d0ac1c44 15488 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
81ecdfbb
RW
15489 esac
15490 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15491 as_fn_append ac_file_inputs " '$ac_f'"
15492 done
15493
15494 # Let's still pretend it is `configure' which instantiates (i.e., don't
15495 # use $as_me), people would be surprised to read:
15496 # /* config.h. Generated by config.status. */
15497 configure_input='Generated from '`
15498 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15499 `' by configure.'
15500 if test x"$ac_file" != x-; then
15501 configure_input="$ac_file. $configure_input"
15502 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15503$as_echo "$as_me: creating $ac_file" >&6;}
fdd6fa61 15504 fi
81ecdfbb
RW
15505 # Neutralize special characters interpreted by sed in replacement strings.
15506 case $configure_input in #(
15507 *\&* | *\|* | *\\* )
15508 ac_sed_conf_input=`$as_echo "$configure_input" |
15509 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15510 *) ac_sed_conf_input=$configure_input;;
15511 esac
df1756f4 15512
81ecdfbb 15513 case $ac_tag in
d0ac1c44
SM
15514 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15515 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
15516 esac
15517 ;;
df1756f4
TG
15518 esac
15519
81ecdfbb 15520 ac_dir=`$as_dirname -- "$ac_file" ||
b7026657
AC
15521$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15522 X"$ac_file" : 'X\(//\)[^/]' \| \
15523 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
15524 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15525$as_echo X"$ac_file" |
15526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15527 s//\1/
15528 q
15529 }
15530 /^X\(\/\/\)[^/].*/{
15531 s//\1/
15532 q
15533 }
15534 /^X\(\/\/\)$/{
15535 s//\1/
15536 q
15537 }
15538 /^X\(\/\).*/{
15539 s//\1/
15540 q
15541 }
15542 s/.*/./; q'`
15543 as_dir="$ac_dir"; as_fn_mkdir_p
b7026657
AC
15544 ac_builddir=.
15545
81ecdfbb
RW
15546case "$ac_dir" in
15547.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15548*)
15549 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15550 # A ".." for each directory in $ac_dir_suffix.
15551 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15552 case $ac_top_builddir_sub in
15553 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15554 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15555 esac ;;
15556esac
15557ac_abs_top_builddir=$ac_pwd
15558ac_abs_builddir=$ac_pwd$ac_dir_suffix
15559# for backward compatibility:
15560ac_top_builddir=$ac_top_build_prefix
b7026657
AC
15561
15562case $srcdir in
81ecdfbb 15563 .) # We are building in place.
b7026657 15564 ac_srcdir=.
81ecdfbb
RW
15565 ac_top_srcdir=$ac_top_builddir_sub
15566 ac_abs_top_srcdir=$ac_pwd ;;
15567 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 15568 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
15569 ac_top_srcdir=$srcdir
15570 ac_abs_top_srcdir=$srcdir ;;
15571 *) # Relative name.
15572 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15573 ac_top_srcdir=$ac_top_build_prefix$srcdir
15574 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 15575esac
81ecdfbb 15576ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b7026657 15577
b7026657 15578
81ecdfbb
RW
15579 case $ac_mode in
15580 :F)
15581 #
15582 # CONFIG_FILE
15583 #
c906108c 15584
b7026657
AC
15585 case $INSTALL in
15586 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 15587 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
c906108c 15588 esac
6bddc3e8
MF
15589 ac_MKDIR_P=$MKDIR_P
15590 case $MKDIR_P in
15591 [\\/$]* | ?:[\\/]* ) ;;
15592 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15593 esac
81ecdfbb 15594_ACEOF
c906108c 15595
81ecdfbb
RW
15596cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15597# If the template does not know about datarootdir, expand it.
15598# FIXME: This hack should be removed a few years after 2.60.
15599ac_datarootdir_hack=; ac_datarootdir_seen=
15600ac_sed_dataroot='
15601/datarootdir/ {
15602 p
15603 q
15604}
15605/@datadir@/p
15606/@docdir@/p
15607/@infodir@/p
15608/@localedir@/p
15609/@mandir@/p'
15610case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15611*datarootdir*) ac_datarootdir_seen=yes;;
15612*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15614$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15615_ACEOF
15616cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15617 ac_datarootdir_hack='
15618 s&@datadir@&$datadir&g
15619 s&@docdir@&$docdir&g
15620 s&@infodir@&$infodir&g
15621 s&@localedir@&$localedir&g
15622 s&@mandir@&$mandir&g
15623 s&\\\${datarootdir}&$datarootdir&g' ;;
15624esac
b7026657 15625_ACEOF
81ecdfbb
RW
15626
15627# Neutralize VPATH when `$srcdir' = `.'.
15628# Shell code in configure.ac might set extrasub.
15629# FIXME: do we really want to maintain this feature?
15630cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15631ac_sed_extra="$ac_vpsub
b7026657
AC
15632$extrasub
15633_ACEOF
81ecdfbb 15634cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657
AC
15635:t
15636/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
15637s|@configure_input@|$ac_sed_conf_input|;t t
15638s&@top_builddir@&$ac_top_builddir_sub&;t t
15639s&@top_build_prefix@&$ac_top_build_prefix&;t t
15640s&@srcdir@&$ac_srcdir&;t t
15641s&@abs_srcdir@&$ac_abs_srcdir&;t t
15642s&@top_srcdir@&$ac_top_srcdir&;t t
15643s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15644s&@builddir@&$ac_builddir&;t t
15645s&@abs_builddir@&$ac_abs_builddir&;t t
15646s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15647s&@INSTALL@&$ac_INSTALL&;t t
6bddc3e8 15648s&@MKDIR_P@&$ac_MKDIR_P&;t t
81ecdfbb
RW
15649$ac_datarootdir_hack
15650"
d0ac1c44
SM
15651eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15652 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
15653
15654test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
15655 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15656 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15657 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 15658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 15659which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 15660$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 15661which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 15662
d0ac1c44 15663 rm -f "$ac_tmp/stdin"
81ecdfbb 15664 case $ac_file in
d0ac1c44
SM
15665 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15666 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 15667 esac \
d0ac1c44 15668 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb 15669 ;;
b15c5d7a
MF
15670 :H)
15671 #
15672 # CONFIG_HEADER
15673 #
15674 if test x"$ac_file" != x-; then
15675 {
15676 $as_echo "/* $configure_input */" \
15677 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15678 } >"$ac_tmp/config.h" \
15679 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15680 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15682$as_echo "$as_me: $ac_file is unchanged" >&6;}
15683 else
15684 rm -f "$ac_file"
15685 mv "$ac_tmp/config.h" "$ac_file" \
15686 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15687 fi
15688 else
15689 $as_echo "/* $configure_input */" \
15690 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15691 || as_fn_error $? "could not create -" "$LINENO" 5
15692 fi
15693# Compute "$ac_file"'s index in $config_headers.
15694_am_arg="$ac_file"
15695_am_stamp_count=1
15696for _am_header in $config_headers :; do
15697 case $_am_header in
15698 $_am_arg | $_am_arg:* )
15699 break ;;
15700 * )
15701 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15702 esac
15703done
15704echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15705$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15706 X"$_am_arg" : 'X\(//\)[^/]' \| \
15707 X"$_am_arg" : 'X\(//\)$' \| \
15708 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15709$as_echo X"$_am_arg" |
15710 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15711 s//\1/
15712 q
15713 }
15714 /^X\(\/\/\)[^/].*/{
15715 s//\1/
15716 q
15717 }
15718 /^X\(\/\/\)$/{
15719 s//\1/
15720 q
15721 }
15722 /^X\(\/\).*/{
15723 s//\1/
15724 q
15725 }
15726 s/.*/./; q'`/stamp-h$_am_stamp_count
15727 ;;
df1756f4 15728
6bddc3e8
MF
15729 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15730$as_echo "$as_me: executing $ac_file commands" >&6;}
15731 ;;
15732 esac
15733
c906108c 15734
6bddc3e8 15735 case $ac_file$ac_mode in
b5689863
MF
15736 "libtool":C)
15737
15738 # See if we are running on zsh, and set the options which allow our
15739 # commands through without removal of \ escapes.
15740 if test -n "${ZSH_VERSION+set}" ; then
15741 setopt NO_GLOB_SUBST
15742 fi
15743
15744 cfgfile="${ofile}T"
15745 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15746 $RM "$cfgfile"
15747
15748 cat <<_LT_EOF >> "$cfgfile"
15749#! $SHELL
15750
15751# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15752# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15753# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15754# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15755#
15756# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15757# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15758# Written by Gordon Matzigkeit, 1996
15759#
15760# This file is part of GNU Libtool.
15761#
15762# GNU Libtool is free software; you can redistribute it and/or
15763# modify it under the terms of the GNU General Public License as
15764# published by the Free Software Foundation; either version 2 of
15765# the License, or (at your option) any later version.
15766#
15767# As a special exception to the GNU General Public License,
15768# if you distribute this file as part of a program or library that
15769# is built using GNU Libtool, you may include this file under the
15770# same distribution terms that you use for the rest of that program.
15771#
15772# GNU Libtool is distributed in the hope that it will be useful,
15773# but WITHOUT ANY WARRANTY; without even the implied warranty of
15774# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15775# GNU General Public License for more details.
15776#
15777# You should have received a copy of the GNU General Public License
15778# along with GNU Libtool; see the file COPYING. If not, a copy
15779# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15780# obtained by writing to the Free Software Foundation, Inc.,
15781# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15782
15783
15784# The names of the tagged configurations supported by this script.
15785available_tags=""
15786
15787# ### BEGIN LIBTOOL CONFIG
15788
15789# Which release of libtool.m4 was used?
15790macro_version=$macro_version
15791macro_revision=$macro_revision
15792
15793# Whether or not to build shared libraries.
15794build_libtool_libs=$enable_shared
15795
15796# Whether or not to build static libraries.
15797build_old_libs=$enable_static
15798
15799# What type of objects to build.
15800pic_mode=$pic_mode
15801
15802# Whether or not to optimize for fast installation.
15803fast_install=$enable_fast_install
15804
15805# Shell to use when invoking shell scripts.
15806SHELL=$lt_SHELL
15807
15808# An echo program that protects backslashes.
15809ECHO=$lt_ECHO
15810
15811# The host system.
15812host_alias=$host_alias
15813host=$host
15814host_os=$host_os
15815
15816# The build system.
15817build_alias=$build_alias
15818build=$build
15819build_os=$build_os
15820
15821# A sed program that does not truncate output.
15822SED=$lt_SED
15823
15824# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15825Xsed="\$SED -e 1s/^X//"
15826
15827# A grep program that handles long lines.
15828GREP=$lt_GREP
15829
15830# An ERE matcher.
15831EGREP=$lt_EGREP
15832
15833# A literal string matcher.
15834FGREP=$lt_FGREP
15835
15836# A BSD- or MS-compatible name lister.
15837NM=$lt_NM
15838
15839# Whether we need soft or hard links.
15840LN_S=$lt_LN_S
15841
15842# What is the maximum length of a command?
15843max_cmd_len=$max_cmd_len
15844
15845# Object file suffix (normally "o").
15846objext=$ac_objext
15847
15848# Executable file suffix (normally "").
15849exeext=$exeext
15850
15851# whether the shell understands "unset".
15852lt_unset=$lt_unset
15853
15854# turn spaces into newlines.
15855SP2NL=$lt_lt_SP2NL
15856
15857# turn newlines into spaces.
15858NL2SP=$lt_lt_NL2SP
15859
15860# An object symbol dumper.
15861OBJDUMP=$lt_OBJDUMP
15862
15863# Method to check whether dependent libraries are shared objects.
15864deplibs_check_method=$lt_deplibs_check_method
15865
15866# Command to use when deplibs_check_method == "file_magic".
15867file_magic_cmd=$lt_file_magic_cmd
15868
15869# The archiver.
15870AR=$lt_AR
15871AR_FLAGS=$lt_AR_FLAGS
15872
15873# A symbol stripping program.
15874STRIP=$lt_STRIP
15875
15876# Commands used to install an old-style archive.
15877RANLIB=$lt_RANLIB
15878old_postinstall_cmds=$lt_old_postinstall_cmds
15879old_postuninstall_cmds=$lt_old_postuninstall_cmds
15880
15881# Whether to use a lock for old archive extraction.
15882lock_old_archive_extraction=$lock_old_archive_extraction
15883
15884# A C compiler.
15885LTCC=$lt_CC
15886
15887# LTCC compiler flags.
15888LTCFLAGS=$lt_CFLAGS
15889
15890# Take the output of nm and produce a listing of raw symbols and C names.
15891global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15892
15893# Transform the output of nm in a proper C declaration.
15894global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15895
15896# Transform the output of nm in a C name address pair.
15897global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15898
15899# Transform the output of nm in a C name address pair when lib prefix is needed.
15900global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15901
15902# The name of the directory that contains temporary libtool files.
15903objdir=$objdir
15904
15905# Used to examine libraries when file_magic_cmd begins with "file".
15906MAGIC_CMD=$MAGIC_CMD
15907
15908# Must we lock files when doing compilation?
15909need_locks=$lt_need_locks
15910
15911# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15912DSYMUTIL=$lt_DSYMUTIL
15913
15914# Tool to change global to local symbols on Mac OS X.
15915NMEDIT=$lt_NMEDIT
15916
15917# Tool to manipulate fat objects and archives on Mac OS X.
15918LIPO=$lt_LIPO
15919
15920# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15921OTOOL=$lt_OTOOL
15922
15923# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15924OTOOL64=$lt_OTOOL64
15925
15926# Old archive suffix (normally "a").
15927libext=$libext
15928
15929# Shared library suffix (normally ".so").
15930shrext_cmds=$lt_shrext_cmds
15931
15932# The commands to extract the exported symbol list from a shared archive.
15933extract_expsyms_cmds=$lt_extract_expsyms_cmds
15934
15935# Variables whose values should be saved in libtool wrapper scripts and
15936# restored at link time.
15937variables_saved_for_relink=$lt_variables_saved_for_relink
15938
15939# Do we need the "lib" prefix for modules?
15940need_lib_prefix=$need_lib_prefix
15941
15942# Do we need a version for libraries?
15943need_version=$need_version
15944
15945# Library versioning type.
15946version_type=$version_type
15947
15948# Shared library runtime path variable.
15949runpath_var=$runpath_var
15950
15951# Shared library path variable.
15952shlibpath_var=$shlibpath_var
15953
15954# Is shlibpath searched before the hard-coded library search path?
15955shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15956
15957# Format of library name prefix.
15958libname_spec=$lt_libname_spec
15959
15960# List of archive names. First name is the real one, the rest are links.
15961# The last name is the one that the linker finds with -lNAME
15962library_names_spec=$lt_library_names_spec
15963
15964# The coded name of the library, if different from the real name.
15965soname_spec=$lt_soname_spec
15966
15967# Permission mode override for installation of shared libraries.
15968install_override_mode=$lt_install_override_mode
15969
15970# Command to use after installation of a shared archive.
15971postinstall_cmds=$lt_postinstall_cmds
15972
15973# Command to use after uninstallation of a shared archive.
15974postuninstall_cmds=$lt_postuninstall_cmds
15975
15976# Commands used to finish a libtool library installation in a directory.
15977finish_cmds=$lt_finish_cmds
15978
15979# As "finish_cmds", except a single script fragment to be evaled but
15980# not shown.
15981finish_eval=$lt_finish_eval
15982
15983# Whether we should hardcode library paths into libraries.
15984hardcode_into_libs=$hardcode_into_libs
15985
15986# Compile-time system search path for libraries.
15987sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15988
15989# Run-time system search path for libraries.
15990sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15991
15992# Whether dlopen is supported.
15993dlopen_support=$enable_dlopen
15994
15995# Whether dlopen of programs is supported.
15996dlopen_self=$enable_dlopen_self
15997
15998# Whether dlopen of statically linked programs is supported.
15999dlopen_self_static=$enable_dlopen_self_static
16000
16001# Commands to strip libraries.
16002old_striplib=$lt_old_striplib
16003striplib=$lt_striplib
16004
16005
16006# The linker used to build libraries.
16007LD=$lt_LD
16008
16009# How to create reloadable object files.
16010reload_flag=$lt_reload_flag
16011reload_cmds=$lt_reload_cmds
16012
16013# Commands used to build an old-style archive.
16014old_archive_cmds=$lt_old_archive_cmds
16015
16016# A language specific compiler.
16017CC=$lt_compiler
16018
16019# Is the compiler the GNU compiler?
16020with_gcc=$GCC
16021
16022# Compiler flag to turn off builtin functions.
16023no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16024
16025# How to pass a linker flag through the compiler.
16026wl=$lt_lt_prog_compiler_wl
16027
16028# Additional compiler flags for building library objects.
16029pic_flag=$lt_lt_prog_compiler_pic
16030
16031# Compiler flag to prevent dynamic linking.
16032link_static_flag=$lt_lt_prog_compiler_static
16033
16034# Does compiler simultaneously support -c and -o options?
16035compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16036
16037# Whether or not to add -lc for building shared libraries.
16038build_libtool_need_lc=$archive_cmds_need_lc
16039
16040# Whether or not to disallow shared libs when runtime libs are static.
16041allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16042
16043# Compiler flag to allow reflexive dlopens.
16044export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16045
16046# Compiler flag to generate shared objects directly from archives.
16047whole_archive_flag_spec=$lt_whole_archive_flag_spec
16048
16049# Whether the compiler copes with passing no objects directly.
16050compiler_needs_object=$lt_compiler_needs_object
16051
16052# Create an old-style archive from a shared archive.
16053old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16054
16055# Create a temporary old-style archive to link instead of a shared archive.
16056old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16057
16058# Commands used to build a shared archive.
16059archive_cmds=$lt_archive_cmds
16060archive_expsym_cmds=$lt_archive_expsym_cmds
16061
16062# Commands used to build a loadable module if different from building
16063# a shared archive.
16064module_cmds=$lt_module_cmds
16065module_expsym_cmds=$lt_module_expsym_cmds
16066
16067# Whether we are building with GNU ld or not.
16068with_gnu_ld=$lt_with_gnu_ld
16069
16070# Flag that allows shared libraries with undefined symbols to be built.
16071allow_undefined_flag=$lt_allow_undefined_flag
16072
16073# Flag that enforces no undefined symbols.
16074no_undefined_flag=$lt_no_undefined_flag
16075
16076# Flag to hardcode \$libdir into a binary during linking.
16077# This must work even if \$libdir does not exist
16078hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16079
16080# If ld is used when linking, flag to hardcode \$libdir into a binary
16081# during linking. This must work even if \$libdir does not exist.
16082hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16083
16084# Whether we need a single "-rpath" flag with a separated argument.
16085hardcode_libdir_separator=$lt_hardcode_libdir_separator
16086
16087# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16088# DIR into the resulting binary.
16089hardcode_direct=$hardcode_direct
16090
16091# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16092# DIR into the resulting binary and the resulting library dependency is
16093# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16094# library is relocated.
16095hardcode_direct_absolute=$hardcode_direct_absolute
16096
16097# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16098# into the resulting binary.
16099hardcode_minus_L=$hardcode_minus_L
16100
16101# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16102# into the resulting binary.
16103hardcode_shlibpath_var=$hardcode_shlibpath_var
16104
16105# Set to "yes" if building a shared library automatically hardcodes DIR
16106# into the library and all subsequent libraries and executables linked
16107# against it.
16108hardcode_automatic=$hardcode_automatic
16109
16110# Set to yes if linker adds runtime paths of dependent libraries
16111# to runtime path list.
16112inherit_rpath=$inherit_rpath
16113
16114# Whether libtool must link a program against all its dependency libraries.
16115link_all_deplibs=$link_all_deplibs
16116
16117# Fix the shell variable \$srcfile for the compiler.
16118fix_srcfile_path=$lt_fix_srcfile_path
16119
16120# Set to "yes" if exported symbols are required.
16121always_export_symbols=$always_export_symbols
16122
16123# The commands to list exported symbols.
16124export_symbols_cmds=$lt_export_symbols_cmds
16125
16126# Symbols that should not be listed in the preloaded symbols.
16127exclude_expsyms=$lt_exclude_expsyms
16128
16129# Symbols that must always be exported.
16130include_expsyms=$lt_include_expsyms
16131
16132# Commands necessary for linking programs (against libraries) with templates.
16133prelink_cmds=$lt_prelink_cmds
16134
16135# Specify filename containing input files.
16136file_list_spec=$lt_file_list_spec
16137
16138# How to hardcode a shared library path into an executable.
16139hardcode_action=$hardcode_action
16140
16141# ### END LIBTOOL CONFIG
16142
16143_LT_EOF
16144
16145 case $host_os in
16146 aix3*)
16147 cat <<\_LT_EOF >> "$cfgfile"
16148# AIX sometimes has problems with the GCC collect2 program. For some
16149# reason, if we set the COLLECT_NAMES environment variable, the problems
16150# vanish in a puff of smoke.
16151if test "X${COLLECT_NAMES+set}" != Xset; then
16152 COLLECT_NAMES=
16153 export COLLECT_NAMES
16154fi
16155_LT_EOF
16156 ;;
16157 esac
16158
16159
16160ltmain="$ac_aux_dir/ltmain.sh"
16161
16162
16163 # We use sed instead of cat because bash on DJGPP gets confused if
16164 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16165 # text mode, it properly converts lines to CR/LF. This bash problem
16166 # is reportedly fixed, but why not run on old versions too?
16167 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16168 || (rm -f "$cfgfile"; exit 1)
16169
16170 case $xsi_shell in
16171 yes)
16172 cat << \_LT_EOF >> "$cfgfile"
16173
16174# func_dirname file append nondir_replacement
16175# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16176# otherwise set result to NONDIR_REPLACEMENT.
16177func_dirname ()
16178{
16179 case ${1} in
16180 */*) func_dirname_result="${1%/*}${2}" ;;
16181 * ) func_dirname_result="${3}" ;;
16182 esac
16183}
16184
16185# func_basename file
16186func_basename ()
16187{
16188 func_basename_result="${1##*/}"
16189}
16190
16191# func_dirname_and_basename file append nondir_replacement
16192# perform func_basename and func_dirname in a single function
16193# call:
16194# dirname: Compute the dirname of FILE. If nonempty,
16195# add APPEND to the result, otherwise set result
16196# to NONDIR_REPLACEMENT.
16197# value returned in "$func_dirname_result"
16198# basename: Compute filename of FILE.
16199# value retuned in "$func_basename_result"
16200# Implementation must be kept synchronized with func_dirname
16201# and func_basename. For efficiency, we do not delegate to
16202# those functions but instead duplicate the functionality here.
16203func_dirname_and_basename ()
16204{
16205 case ${1} in
16206 */*) func_dirname_result="${1%/*}${2}" ;;
16207 * ) func_dirname_result="${3}" ;;
16208 esac
16209 func_basename_result="${1##*/}"
16210}
16211
16212# func_stripname prefix suffix name
16213# strip PREFIX and SUFFIX off of NAME.
16214# PREFIX and SUFFIX must not contain globbing or regex special
16215# characters, hashes, percent signs, but SUFFIX may contain a leading
16216# dot (in which case that matches only a dot).
16217func_stripname ()
16218{
16219 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16220 # positional parameters, so assign one to ordinary parameter first.
16221 func_stripname_result=${3}
16222 func_stripname_result=${func_stripname_result#"${1}"}
16223 func_stripname_result=${func_stripname_result%"${2}"}
16224}
16225
16226# func_opt_split
16227func_opt_split ()
16228{
16229 func_opt_split_opt=${1%%=*}
16230 func_opt_split_arg=${1#*=}
16231}
16232
16233# func_lo2o object
16234func_lo2o ()
16235{
16236 case ${1} in
16237 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16238 *) func_lo2o_result=${1} ;;
16239 esac
16240}
16241
16242# func_xform libobj-or-source
16243func_xform ()
16244{
16245 func_xform_result=${1%.*}.lo
16246}
16247
16248# func_arith arithmetic-term...
16249func_arith ()
16250{
16251 func_arith_result=$(( $* ))
16252}
16253
16254# func_len string
16255# STRING may not start with a hyphen.
16256func_len ()
16257{
16258 func_len_result=${#1}
16259}
16260
16261_LT_EOF
16262 ;;
16263 *) # Bourne compatible functions.
16264 cat << \_LT_EOF >> "$cfgfile"
16265
16266# func_dirname file append nondir_replacement
16267# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16268# otherwise set result to NONDIR_REPLACEMENT.
16269func_dirname ()
16270{
16271 # Extract subdirectory from the argument.
16272 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16273 if test "X$func_dirname_result" = "X${1}"; then
16274 func_dirname_result="${3}"
16275 else
16276 func_dirname_result="$func_dirname_result${2}"
16277 fi
16278}
16279
16280# func_basename file
16281func_basename ()
16282{
16283 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16284}
16285
16286
16287# func_stripname prefix suffix name
16288# strip PREFIX and SUFFIX off of NAME.
16289# PREFIX and SUFFIX must not contain globbing or regex special
16290# characters, hashes, percent signs, but SUFFIX may contain a leading
16291# dot (in which case that matches only a dot).
16292# func_strip_suffix prefix name
16293func_stripname ()
16294{
16295 case ${2} in
16296 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16297 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16298 esac
16299}
16300
16301# sed scripts:
16302my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16303my_sed_long_arg='1s/^-[^=]*=//'
16304
16305# func_opt_split
16306func_opt_split ()
16307{
16308 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16309 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16310}
16311
16312# func_lo2o object
16313func_lo2o ()
16314{
16315 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16316}
16317
16318# func_xform libobj-or-source
16319func_xform ()
16320{
16321 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16322}
16323
16324# func_arith arithmetic-term...
16325func_arith ()
16326{
16327 func_arith_result=`expr "$@"`
16328}
16329
16330# func_len string
16331# STRING may not start with a hyphen.
16332func_len ()
16333{
16334 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16335}
16336
16337_LT_EOF
16338esac
16339
16340case $lt_shell_append in
16341 yes)
16342 cat << \_LT_EOF >> "$cfgfile"
16343
16344# func_append var value
16345# Append VALUE to the end of shell variable VAR.
16346func_append ()
16347{
16348 eval "$1+=\$2"
16349}
16350_LT_EOF
16351 ;;
16352 *)
16353 cat << \_LT_EOF >> "$cfgfile"
16354
16355# func_append var value
16356# Append VALUE to the end of shell variable VAR.
16357func_append ()
16358{
16359 eval "$1=\$$1\$2"
16360}
16361
16362_LT_EOF
16363 ;;
16364 esac
16365
16366
16367 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16368 || (rm -f "$cfgfile"; exit 1)
16369
16370 mv -f "$cfgfile" "$ofile" ||
16371 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16372 chmod +x "$ofile"
16373
16374 ;;
6bddc3e8
MF
16375 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16376 # Older Autoconf quotes --file arguments for eval, but not when files
16377 # are listed without --file. Let's play safe and only enable the eval
16378 # if we detect the quoting.
16379 case $CONFIG_FILES in
16380 *\'*) eval set x "$CONFIG_FILES" ;;
16381 *) set x $CONFIG_FILES ;;
81ecdfbb 16382 esac
6bddc3e8
MF
16383 shift
16384 for mf
16385 do
16386 # Strip MF so we end up with the name of the file.
16387 mf=`echo "$mf" | sed -e 's/:.*$//'`
16388 # Check whether this is an Automake generated Makefile or not.
16389 # We used to match only the files named 'Makefile.in', but
16390 # some people rename them; so instead we look at the file content.
16391 # Grep'ing the first line is not enough: some people post-process
16392 # each Makefile.in and add a new line on top of each file to say so.
16393 # Grep'ing the whole file is not good either: AIX grep has a line
16394 # limit of 2048, but all sed's we know have understand at least 4000.
16395 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16396 dirpart=`$as_dirname -- "$mf" ||
16397$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16398 X"$mf" : 'X\(//\)[^/]' \| \
16399 X"$mf" : 'X\(//\)$' \| \
16400 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16401$as_echo X"$mf" |
16402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16403 s//\1/
16404 q
16405 }
16406 /^X\(\/\/\)[^/].*/{
16407 s//\1/
16408 q
16409 }
16410 /^X\(\/\/\)$/{
16411 s//\1/
16412 q
16413 }
16414 /^X\(\/\).*/{
16415 s//\1/
16416 q
16417 }
16418 s/.*/./; q'`
16419 else
16420 continue
16421 fi
16422 # Extract the definition of DEPDIR, am__include, and am__quote
16423 # from the Makefile without running 'make'.
16424 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16425 test -z "$DEPDIR" && continue
16426 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16427 test -z "$am__include" && continue
16428 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16429 # Find all dependency output files, they are included files with
16430 # $(DEPDIR) in their names. We invoke sed twice because it is the
16431 # simplest approach to changing $(DEPDIR) to its actual value in the
16432 # expansion.
16433 for file in `sed -n "
16434 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16435 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16436 # Make sure the directory exists.
16437 test -f "$dirpart/$file" && continue
16438 fdir=`$as_dirname -- "$file" ||
16439$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16440 X"$file" : 'X\(//\)[^/]' \| \
16441 X"$file" : 'X\(//\)$' \| \
16442 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16443$as_echo X"$file" |
16444 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16445 s//\1/
16446 q
16447 }
16448 /^X\(\/\/\)[^/].*/{
16449 s//\1/
16450 q
16451 }
16452 /^X\(\/\/\)$/{
16453 s//\1/
16454 q
16455 }
16456 /^X\(\/\).*/{
16457 s//\1/
16458 q
16459 }
16460 s/.*/./; q'`
16461 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16462 # echo "creating $dirpart/$file"
16463 echo '# dummy' > "$dirpart/$file"
16464 done
16465 done
16466}
16467 ;;
bc56166f
MF
16468 "depdir-aarch64":C) $SHELL $ac_aux_dir/mkinstalldirs aarch64/$DEPDIR ;;
16469 "depdir-arm":C) $SHELL $ac_aux_dir/mkinstalldirs arm/$DEPDIR ;;
16470 "depdir-avr":C) $SHELL $ac_aux_dir/mkinstalldirs avr/$DEPDIR ;;
16471 "depdir-bfin":C) $SHELL $ac_aux_dir/mkinstalldirs bfin/$DEPDIR ;;
16472 "depdir-bpf":C) $SHELL $ac_aux_dir/mkinstalldirs bpf/$DEPDIR ;;
16473 "depdir-cr16":C) $SHELL $ac_aux_dir/mkinstalldirs cr16/$DEPDIR ;;
16474 "depdir-cris":C) $SHELL $ac_aux_dir/mkinstalldirs cris/$DEPDIR ;;
16475 "depdir-d10v":C) $SHELL $ac_aux_dir/mkinstalldirs d10v/$DEPDIR ;;
16476 "depdir-frv":C) $SHELL $ac_aux_dir/mkinstalldirs frv/$DEPDIR ;;
16477 "depdir-h8300":C) $SHELL $ac_aux_dir/mkinstalldirs h8300/$DEPDIR ;;
16478 "depdir-iq2000":C) $SHELL $ac_aux_dir/mkinstalldirs iq2000/$DEPDIR ;;
16479 "depdir-lm32":C) $SHELL $ac_aux_dir/mkinstalldirs lm32/$DEPDIR ;;
16480 "depdir-m32c":C) $SHELL $ac_aux_dir/mkinstalldirs m32c/$DEPDIR ;;
16481 "depdir-m32r":C) $SHELL $ac_aux_dir/mkinstalldirs m32r/$DEPDIR ;;
16482 "depdir-m68hc11":C) $SHELL $ac_aux_dir/mkinstalldirs m68hc11/$DEPDIR ;;
16483 "depdir-mcore":C) $SHELL $ac_aux_dir/mkinstalldirs mcore/$DEPDIR ;;
16484 "depdir-microblaze":C) $SHELL $ac_aux_dir/mkinstalldirs microblaze/$DEPDIR ;;
16485 "depdir-mips":C) $SHELL $ac_aux_dir/mkinstalldirs mips/$DEPDIR ;;
16486 "depdir-mn10300":C) $SHELL $ac_aux_dir/mkinstalldirs mn10300/$DEPDIR ;;
16487 "depdir-moxie":C) $SHELL $ac_aux_dir/mkinstalldirs moxie/$DEPDIR ;;
16488 "depdir-msp430":C) $SHELL $ac_aux_dir/mkinstalldirs msp430/$DEPDIR ;;
16489 "depdir-or1k":C) $SHELL $ac_aux_dir/mkinstalldirs or1k/$DEPDIR ;;
16490 "depdir-pru":C) $SHELL $ac_aux_dir/mkinstalldirs pru/$DEPDIR ;;
16491 "depdir-riscv":C) $SHELL $ac_aux_dir/mkinstalldirs riscv/$DEPDIR ;;
16492 "depdir-rl78":C) $SHELL $ac_aux_dir/mkinstalldirs rl78/$DEPDIR ;;
16493 "depdir-rx":C) $SHELL $ac_aux_dir/mkinstalldirs rx/$DEPDIR ;;
16494 "depdir-sh":C) $SHELL $ac_aux_dir/mkinstalldirs sh/$DEPDIR ;;
16495 "depdir-erc32":C) $SHELL $ac_aux_dir/mkinstalldirs erc32/$DEPDIR ;;
16496 "depdir-ppc":C) $SHELL $ac_aux_dir/mkinstalldirs ppc/$DEPDIR ;;
16497 "depdir-ft32":C) $SHELL $ac_aux_dir/mkinstalldirs ft32/$DEPDIR ;;
16498 "depdir-v850":C) $SHELL $ac_aux_dir/mkinstalldirs v850/$DEPDIR ;;
16499 "depdir-example-synacor":C) $SHELL $ac_aux_dir/mkinstalldirs example-synacor/$DEPDIR ;;
81ecdfbb 16500
6bddc3e8 16501 esac
81ecdfbb
RW
16502done # for ac_tag
16503
16504
16505as_fn_exit 0
b7026657 16506_ACEOF
b7026657
AC
16507ac_clean_files=$ac_clean_files_save
16508
81ecdfbb 16509test $ac_write_fail = 0 ||
d0ac1c44 16510 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 16511
b7026657
AC
16512
16513# configure is writing to config.log, and then calls config.status.
16514# config.status does its own redirection, appending to config.log.
16515# Unfortunately, on DOS this fails, as config.log is still kept open
16516# by configure, so config.status won't be able to write to it; its
16517# output is simply discarded. So we exec the FD to /dev/null,
16518# effectively closing config.log, so it can be properly (re)opened and
16519# appended to by config.status. When coming back to configure, we
16520# need to make the FD available again.
16521if test "$no_create" != yes; then
16522 ac_cs_success=:
16523 ac_config_status_args=
16524 test "$silent" = yes &&
16525 ac_config_status_args="$ac_config_status_args --quiet"
16526 exec 5>/dev/null
16527 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16528 exec 5>>config.log
16529 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16530 # would make configure fail if this is the last instruction.
d0ac1c44 16531 $ac_cs_success || as_fn_exit 1
b7026657 16532fi
c906108c 16533
b7026657 16534#
81ecdfbb 16535# CONFIG_SUBDIRS section.
b7026657 16536#
c906108c
SS
16537if test "$no_recursion" != yes; then
16538
81ecdfbb
RW
16539 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
16540 # so they do not pile up.
c906108c
SS
16541 ac_sub_configure_args=
16542 ac_prev=
d6416cdc
RW
16543 eval "set x $ac_configure_args"
16544 shift
16545 for ac_arg
16546 do
c906108c
SS
16547 if test -n "$ac_prev"; then
16548 ac_prev=
16549 continue
16550 fi
b7026657 16551 case $ac_arg in
c906108c
SS
16552 -cache-file | --cache-file | --cache-fil | --cache-fi \
16553 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
16554 ac_prev=cache_file ;;
16555 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
b7026657
AC
16556 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
16557 | --c=*)
16558 ;;
16559 --config-cache | -C)
c906108c
SS
16560 ;;
16561 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
16562 ac_prev=srcdir ;;
16563 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
16564 ;;
b7026657
AC
16565 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
16566 ac_prev=prefix ;;
16567 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
16568 ;;
81ecdfbb
RW
16569 --disable-option-checking)
16570 ;;
d6416cdc
RW
16571 *)
16572 case $ac_arg in
81ecdfbb 16573 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
d6416cdc 16574 esac
81ecdfbb 16575 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
c906108c
SS
16576 esac
16577 done
16578
b7026657
AC
16579 # Always prepend --prefix to ensure using the same prefix
16580 # in subdir configurations.
d6416cdc
RW
16581 ac_arg="--prefix=$prefix"
16582 case $ac_arg in
81ecdfbb 16583 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
d6416cdc 16584 esac
81ecdfbb
RW
16585 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
16586
16587 # Pass --silent
16588 if test "$silent" = yes; then
16589 ac_sub_configure_args="--silent $ac_sub_configure_args"
16590 fi
16591
16592 # Always prepend --disable-option-checking to silence warnings, since
16593 # different subdirs can have different --enable and --with options.
16594 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
b7026657
AC
16595
16596 ac_popdir=`pwd`
16597 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
c906108c
SS
16598
16599 # Do not complain, so a configure script can configure whichever
16600 # parts of a large source tree are present.
d6416cdc 16601 test -d "$srcdir/$ac_dir" || continue
fdd6fa61 16602
81ecdfbb
RW
16603 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
16604 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
16605 $as_echo "$ac_msg" >&6
16606 as_dir="$ac_dir"; as_fn_mkdir_p
b7026657
AC
16607 ac_builddir=.
16608
81ecdfbb
RW
16609case "$ac_dir" in
16610.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16611*)
16612 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16613 # A ".." for each directory in $ac_dir_suffix.
16614 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16615 case $ac_top_builddir_sub in
16616 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16617 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16618 esac ;;
16619esac
16620ac_abs_top_builddir=$ac_pwd
16621ac_abs_builddir=$ac_pwd$ac_dir_suffix
16622# for backward compatibility:
16623ac_top_builddir=$ac_top_build_prefix
c906108c 16624
b7026657 16625case $srcdir in
81ecdfbb 16626 .) # We are building in place.
b7026657 16627 ac_srcdir=.
81ecdfbb
RW
16628 ac_top_srcdir=$ac_top_builddir_sub
16629 ac_abs_top_srcdir=$ac_pwd ;;
16630 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 16631 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
16632 ac_top_srcdir=$srcdir
16633 ac_abs_top_srcdir=$srcdir ;;
16634 *) # Relative name.
16635 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16636 ac_top_srcdir=$ac_top_build_prefix$srcdir
16637 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 16638esac
81ecdfbb 16639ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
c906108c 16640
c906108c 16641
d6416cdc 16642 cd "$ac_dir"
c906108c
SS
16643
16644 # Check for guested configure; otherwise get Cygnus style configure.
d6416cdc
RW
16645 if test -f "$ac_srcdir/configure.gnu"; then
16646 ac_sub_configure=$ac_srcdir/configure.gnu
16647 elif test -f "$ac_srcdir/configure"; then
16648 ac_sub_configure=$ac_srcdir/configure
16649 elif test -f "$ac_srcdir/configure.in"; then
16650 # This should be Cygnus configure.
16651 ac_sub_configure=$ac_aux_dir/configure
c906108c 16652 else
81ecdfbb
RW
16653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
16654$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
c906108c
SS
16655 ac_sub_configure=
16656 fi
16657
16658 # The recursion is here.
16659 if test -n "$ac_sub_configure"; then
c906108c 16660 # Make the cache file name correct relative to the subdirectory.
b7026657
AC
16661 case $cache_file in
16662 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
81ecdfbb
RW
16663 *) # Relative name.
16664 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
c906108c 16665 esac
c906108c 16666
81ecdfbb
RW
16667 { $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
16668$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
c906108c 16669 # The eval makes quoting arguments work.
d6416cdc
RW
16670 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
16671 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
d0ac1c44 16672 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
c906108c
SS
16673 fi
16674
d6416cdc 16675 cd "$ac_popdir"
c906108c
SS
16676 done
16677fi
81ecdfbb
RW
16678if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16680$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16681fi
c906108c 16682