Remove path name from test case
[binutils-gdb.git] / sim / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
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>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_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.
45 if 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 --'
49 elif (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'
52 else
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'
72 fi
73
74 # The user is always right.
75 if 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 }
81 fi
82
83
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.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
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
102 IFS=$as_save_IFS
103
104 ;;
105 esac
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.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
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.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
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.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $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
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if 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
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
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'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 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"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
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
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
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
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
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.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $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
267 exit 255
268 fi
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."
276 else
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."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_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.
317 as_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.
327 as_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"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
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.
385 if (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 }'
390 else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # 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.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
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
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
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
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
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'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
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 |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
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; }
499
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
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
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `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';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
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.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_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.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590
591 # Identity of this package.
592 PACKAGE_NAME='sim'
593 PACKAGE_TARNAME='sim'
594 PACKAGE_VERSION='0'
595 PACKAGE_STRING='sim 0'
596 PACKAGE_BUGREPORT='https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim'
597 PACKAGE_URL='https://sourceware.org/gdb/wiki/Sim/'
598
599 # Factoring default headers for most tests.
600 ac_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
635 ac_header_list=
636 ac_func_list=
637 enable_option_checking=no
638 ac_subst_vars='am__EXEEXT_FALSE
639 am__EXEEXT_TRUE
640 LTLIBOBJS
641 SIM_RX_CYCLE_ACCURATE_FLAGS
642 SIM_RISCV_BITSIZE
643 SIM_MIPS_GEN_MODE_MULTI_FALSE
644 SIM_MIPS_GEN_MODE_MULTI_TRUE
645 SIM_MIPS_GEN_MODE_M16_FALSE
646 SIM_MIPS_GEN_MODE_M16_TRUE
647 SIM_MIPS_GEN_MODE_SINGLE_FALSE
648 SIM_MIPS_GEN_MODE_SINGLE_TRUE
649 SIM_MIPS_MULTI_OBJ
650 SIM_MIPS_MULTI_SRC
651 SIM_MIPS_MULTI_IGEN_CONFIGS
652 SIM_MIPS_IGEN_ITABLE_FLAGS
653 SIM_MIPS_GEN
654 SIM_MIPS_M16_FLAGS
655 SIM_MIPS_SINGLE_FLAGS
656 SIM_MIPS_FPU_BITSIZE
657 SIM_MIPS_BITSIZE
658 SIM_MIPS_SUBTARGET
659 SIM_FRV_TRAPDUMP_FLAGS
660 IGEN_FLAGS_SMP
661 SIM_INLINE
662 SIM_HW_SOCKSER
663 SIM_HW_CFLAGS
664 SIM_ENABLE_HW_FALSE
665 SIM_ENABLE_HW_TRUE
666 cgen
667 cgendir
668 CGEN_MAINT
669 ENABLE_SIM_FALSE
670 ENABLE_SIM_TRUE
671 SIM_ENABLE_ARCH_examples_FALSE
672 SIM_ENABLE_ARCH_examples_TRUE
673 CC_FOR_TARGET_EXAMPLE_SYNACOR
674 LD_FOR_TARGET_EXAMPLE_SYNACOR
675 AS_FOR_TARGET_EXAMPLE_SYNACOR
676 SIM_ENABLE_ARCH_v850_FALSE
677 SIM_ENABLE_ARCH_v850_TRUE
678 CC_FOR_TARGET_V850
679 LD_FOR_TARGET_V850
680 AS_FOR_TARGET_V850
681 SIM_ENABLE_ARCH_erc32_FALSE
682 SIM_ENABLE_ARCH_erc32_TRUE
683 CC_FOR_TARGET_ERC32
684 LD_FOR_TARGET_ERC32
685 AS_FOR_TARGET_ERC32
686 SIM_ENABLE_ARCH_sh_FALSE
687 SIM_ENABLE_ARCH_sh_TRUE
688 CC_FOR_TARGET_SH
689 LD_FOR_TARGET_SH
690 AS_FOR_TARGET_SH
691 SIM_ENABLE_ARCH_rx_FALSE
692 SIM_ENABLE_ARCH_rx_TRUE
693 CC_FOR_TARGET_RX
694 LD_FOR_TARGET_RX
695 AS_FOR_TARGET_RX
696 SIM_ENABLE_ARCH_rl78_FALSE
697 SIM_ENABLE_ARCH_rl78_TRUE
698 CC_FOR_TARGET_RL78
699 LD_FOR_TARGET_RL78
700 AS_FOR_TARGET_RL78
701 SIM_ENABLE_ARCH_riscv_FALSE
702 SIM_ENABLE_ARCH_riscv_TRUE
703 CC_FOR_TARGET_RISCV
704 LD_FOR_TARGET_RISCV
705 AS_FOR_TARGET_RISCV
706 SIM_ENABLE_ARCH_pru_FALSE
707 SIM_ENABLE_ARCH_pru_TRUE
708 CC_FOR_TARGET_PRU
709 LD_FOR_TARGET_PRU
710 AS_FOR_TARGET_PRU
711 SIM_ENABLE_ARCH_ppc_FALSE
712 SIM_ENABLE_ARCH_ppc_TRUE
713 CC_FOR_TARGET_PPC
714 LD_FOR_TARGET_PPC
715 AS_FOR_TARGET_PPC
716 subdirs
717 SIM_ENABLE_ARCH_or1k_FALSE
718 SIM_ENABLE_ARCH_or1k_TRUE
719 CC_FOR_TARGET_OR1K
720 LD_FOR_TARGET_OR1K
721 AS_FOR_TARGET_OR1K
722 SIM_ENABLE_ARCH_msp430_FALSE
723 SIM_ENABLE_ARCH_msp430_TRUE
724 CC_FOR_TARGET_MSP430
725 LD_FOR_TARGET_MSP430
726 AS_FOR_TARGET_MSP430
727 SIM_ENABLE_ARCH_moxie_FALSE
728 SIM_ENABLE_ARCH_moxie_TRUE
729 CC_FOR_TARGET_MOXIE
730 LD_FOR_TARGET_MOXIE
731 AS_FOR_TARGET_MOXIE
732 SIM_ENABLE_ARCH_mn10300_FALSE
733 SIM_ENABLE_ARCH_mn10300_TRUE
734 CC_FOR_TARGET_MN10300
735 LD_FOR_TARGET_MN10300
736 AS_FOR_TARGET_MN10300
737 SIM_ENABLE_ARCH_mips_FALSE
738 SIM_ENABLE_ARCH_mips_TRUE
739 CC_FOR_TARGET_MIPS
740 LD_FOR_TARGET_MIPS
741 AS_FOR_TARGET_MIPS
742 SIM_ENABLE_ARCH_microblaze_FALSE
743 SIM_ENABLE_ARCH_microblaze_TRUE
744 CC_FOR_TARGET_MICROBLAZE
745 LD_FOR_TARGET_MICROBLAZE
746 AS_FOR_TARGET_MICROBLAZE
747 SIM_ENABLE_ARCH_mcore_FALSE
748 SIM_ENABLE_ARCH_mcore_TRUE
749 CC_FOR_TARGET_MCORE
750 LD_FOR_TARGET_MCORE
751 AS_FOR_TARGET_MCORE
752 SIM_ENABLE_ARCH_m68hc11_FALSE
753 SIM_ENABLE_ARCH_m68hc11_TRUE
754 CC_FOR_TARGET_M68HC11
755 LD_FOR_TARGET_M68HC11
756 AS_FOR_TARGET_M68HC11
757 SIM_ENABLE_ARCH_m32r_FALSE
758 SIM_ENABLE_ARCH_m32r_TRUE
759 CC_FOR_TARGET_M32R
760 LD_FOR_TARGET_M32R
761 AS_FOR_TARGET_M32R
762 SIM_ENABLE_ARCH_m32c_FALSE
763 SIM_ENABLE_ARCH_m32c_TRUE
764 CC_FOR_TARGET_M32C
765 LD_FOR_TARGET_M32C
766 AS_FOR_TARGET_M32C
767 SIM_ENABLE_ARCH_lm32_FALSE
768 SIM_ENABLE_ARCH_lm32_TRUE
769 CC_FOR_TARGET_LM32
770 LD_FOR_TARGET_LM32
771 AS_FOR_TARGET_LM32
772 SIM_ENABLE_ARCH_iq2000_FALSE
773 SIM_ENABLE_ARCH_iq2000_TRUE
774 CC_FOR_TARGET_IQ2000
775 LD_FOR_TARGET_IQ2000
776 AS_FOR_TARGET_IQ2000
777 SIM_ENABLE_ARCH_h8300_FALSE
778 SIM_ENABLE_ARCH_h8300_TRUE
779 CC_FOR_TARGET_H8300
780 LD_FOR_TARGET_H8300
781 AS_FOR_TARGET_H8300
782 SIM_ENABLE_ARCH_ft32_FALSE
783 SIM_ENABLE_ARCH_ft32_TRUE
784 CC_FOR_TARGET_FT32
785 LD_FOR_TARGET_FT32
786 AS_FOR_TARGET_FT32
787 SIM_ENABLE_ARCH_frv_FALSE
788 SIM_ENABLE_ARCH_frv_TRUE
789 CC_FOR_TARGET_FRV
790 LD_FOR_TARGET_FRV
791 AS_FOR_TARGET_FRV
792 SIM_ENABLE_ARCH_d10v_FALSE
793 SIM_ENABLE_ARCH_d10v_TRUE
794 CC_FOR_TARGET_D10V
795 LD_FOR_TARGET_D10V
796 AS_FOR_TARGET_D10V
797 SIM_ENABLE_ARCH_cris_FALSE
798 SIM_ENABLE_ARCH_cris_TRUE
799 CC_FOR_TARGET_CRIS
800 LD_FOR_TARGET_CRIS
801 AS_FOR_TARGET_CRIS
802 SIM_ENABLE_ARCH_cr16_FALSE
803 SIM_ENABLE_ARCH_cr16_TRUE
804 CC_FOR_TARGET_CR16
805 LD_FOR_TARGET_CR16
806 AS_FOR_TARGET_CR16
807 SIM_ENABLE_ARCH_bpf_FALSE
808 SIM_ENABLE_ARCH_bpf_TRUE
809 CC_FOR_TARGET_BPF
810 LD_FOR_TARGET_BPF
811 AS_FOR_TARGET_BPF
812 SIM_ENABLE_ARCH_bfin_FALSE
813 SIM_ENABLE_ARCH_bfin_TRUE
814 CC_FOR_TARGET_BFIN
815 LD_FOR_TARGET_BFIN
816 AS_FOR_TARGET_BFIN
817 SIM_ENABLE_ARCH_avr_FALSE
818 SIM_ENABLE_ARCH_avr_TRUE
819 CC_FOR_TARGET_AVR
820 LD_FOR_TARGET_AVR
821 AS_FOR_TARGET_AVR
822 SIM_ENABLE_ARCH_arm_FALSE
823 SIM_ENABLE_ARCH_arm_TRUE
824 CC_FOR_TARGET_ARM
825 LD_FOR_TARGET_ARM
826 AS_FOR_TARGET_ARM
827 SIM_ENABLE_ARCH_aarch64_FALSE
828 SIM_ENABLE_ARCH_aarch64_TRUE
829 CC_FOR_TARGET_AARCH64
830 LD_FOR_TARGET_AARCH64
831 AS_FOR_TARGET_AARCH64
832 LD_FOR_TARGET
833 AS_FOR_TARGET
834 CC_FOR_TARGET
835 SIM_ENABLED_ARCHES
836 SIM_PRIMARY_TARGET
837 AM_BACKSLASH
838 AM_DEFAULT_VERBOSITY
839 AM_DEFAULT_V
840 AM_V
841 am__fastdepCC_FALSE
842 am__fastdepCC_TRUE
843 CCDEPMODE
844 am__nodep
845 AMDEPBACKSLASH
846 AMDEP_FALSE
847 AMDEP_TRUE
848 am__quote
849 am__include
850 DEPDIR
851 am__untar
852 am__tar
853 AMTAR
854 am__leading_dot
855 SET_MAKE
856 mkdir_p
857 MKDIR_P
858 INSTALL_STRIP_PROGRAM
859 install_sh
860 MAKEINFO
861 AUTOHEADER
862 AUTOMAKE
863 AUTOCONF
864 ACLOCAL
865 VERSION
866 PACKAGE
867 CYGPATH_W
868 am__isrc
869 MAINT
870 MAINTAINER_MODE_FALSE
871 MAINTAINER_MODE_TRUE
872 READLINE_CFLAGS
873 READLINE_LIB
874 TERMCAP_LIB
875 SDL_LIBS
876 SDL_CFLAGS
877 OTOOL64
878 OTOOL
879 LIPO
880 NMEDIT
881 DSYMUTIL
882 AWK
883 STRIP
884 OBJDUMP
885 LN_S
886 NM
887 ac_ct_DUMPBIN
888 DUMPBIN
889 LD
890 FGREP
891 SED
892 LIBTOOL
893 LIBOBJS
894 C_DIALECT
895 PKG_CONFIG_LIBDIR
896 PKG_CONFIG_PATH
897 PKG_CONFIG
898 RANLIB
899 AR
900 LDFLAGS_FOR_BUILD
901 CPPFLAGS_FOR_BUILD
902 CFLAGS_FOR_BUILD
903 RANLIB_FOR_BUILD
904 CC_FOR_BUILD
905 AR_FOR_BUILD
906 DTC
907 INSTALL_DATA
908 INSTALL_SCRIPT
909 INSTALL_PROGRAM
910 EGREP
911 GREP
912 CPP
913 OBJEXT
914 EXEEXT
915 ac_ct_CC
916 CPPFLAGS
917 LDFLAGS
918 CFLAGS
919 CC
920 target_os
921 target_vendor
922 target_cpu
923 target
924 host_os
925 host_vendor
926 host_cpu
927 host
928 build_os
929 build_vendor
930 build_cpu
931 build
932 REPORT_BUGS_TEXI
933 REPORT_BUGS_TO
934 PKGVERSION
935 target_alias
936 host_alias
937 build_alias
938 LIBS
939 ECHO_T
940 ECHO_N
941 ECHO_C
942 DEFS
943 mandir
944 localedir
945 libdir
946 psdir
947 pdfdir
948 dvidir
949 htmldir
950 infodir
951 docdir
952 oldincludedir
953 includedir
954 localstatedir
955 sharedstatedir
956 sysconfdir
957 datadir
958 datarootdir
959 libexecdir
960 sbindir
961 bindir
962 program_transform_name
963 prefix
964 exec_prefix
965 PACKAGE_URL
966 PACKAGE_BUGREPORT
967 PACKAGE_STRING
968 PACKAGE_VERSION
969 PACKAGE_TARNAME
970 PACKAGE_NAME
971 PATH_SEPARATOR
972 SHELL
973 SIM_TOOLCHAIN_VARS
974 WERROR_CFLAGS
975 WARN_CFLAGS'
976 ac_subst_files=''
977 ac_user_opts='
978 enable_option_checking
979 with_pkgversion
980 with_bugurl
981 enable_shared
982 enable_static
983 with_pic
984 enable_fast_install
985 with_gnu_ld
986 enable_libtool_lock
987 enable_maintainer_mode
988 enable_dependency_tracking
989 enable_silent_rules
990 enable_sim
991 enable_example_sims
992 enable_targets
993 enable_sim_alignment
994 enable_sim_assert
995 enable_cgen_maint
996 enable_sim_debug
997 enable_sim_endian
998 enable_sim_environment
999 enable_sim_hardware
1000 enable_sim_inline
1001 enable_sim_profile
1002 enable_sim_reserved_bits
1003 enable_sim_scache
1004 enable_sim_smp
1005 enable_sim_stdio
1006 enable_sim_trace
1007 enable_werror
1008 enable_build_warnings
1009 enable_sim_build_warnings
1010 enable_sim_frv_trapdump
1011 enable_sim_rx_cycle_accurate
1012 '
1013 ac_precious_vars='build_alias
1014 host_alias
1015 target_alias
1016 CC
1017 CFLAGS
1018 LDFLAGS
1019 LIBS
1020 CPPFLAGS
1021 CPP
1022 PKG_CONFIG
1023 PKG_CONFIG_PATH
1024 PKG_CONFIG_LIBDIR
1025 SDL_CFLAGS
1026 SDL_LIBS
1027 AS_FOR_TARGET_AARCH64
1028 LD_FOR_TARGET_AARCH64
1029 CC_FOR_TARGET_AARCH64
1030 AS_FOR_TARGET_ARM
1031 LD_FOR_TARGET_ARM
1032 CC_FOR_TARGET_ARM
1033 AS_FOR_TARGET_AVR
1034 LD_FOR_TARGET_AVR
1035 CC_FOR_TARGET_AVR
1036 AS_FOR_TARGET_BFIN
1037 LD_FOR_TARGET_BFIN
1038 CC_FOR_TARGET_BFIN
1039 AS_FOR_TARGET_BPF
1040 LD_FOR_TARGET_BPF
1041 CC_FOR_TARGET_BPF
1042 AS_FOR_TARGET_CR16
1043 LD_FOR_TARGET_CR16
1044 CC_FOR_TARGET_CR16
1045 AS_FOR_TARGET_CRIS
1046 LD_FOR_TARGET_CRIS
1047 CC_FOR_TARGET_CRIS
1048 AS_FOR_TARGET_D10V
1049 LD_FOR_TARGET_D10V
1050 CC_FOR_TARGET_D10V
1051 AS_FOR_TARGET_FRV
1052 LD_FOR_TARGET_FRV
1053 CC_FOR_TARGET_FRV
1054 AS_FOR_TARGET_FT32
1055 LD_FOR_TARGET_FT32
1056 CC_FOR_TARGET_FT32
1057 AS_FOR_TARGET_H8300
1058 LD_FOR_TARGET_H8300
1059 CC_FOR_TARGET_H8300
1060 AS_FOR_TARGET_IQ2000
1061 LD_FOR_TARGET_IQ2000
1062 CC_FOR_TARGET_IQ2000
1063 AS_FOR_TARGET_LM32
1064 LD_FOR_TARGET_LM32
1065 CC_FOR_TARGET_LM32
1066 AS_FOR_TARGET_M32C
1067 LD_FOR_TARGET_M32C
1068 CC_FOR_TARGET_M32C
1069 AS_FOR_TARGET_M32R
1070 LD_FOR_TARGET_M32R
1071 CC_FOR_TARGET_M32R
1072 AS_FOR_TARGET_M68HC11
1073 LD_FOR_TARGET_M68HC11
1074 CC_FOR_TARGET_M68HC11
1075 AS_FOR_TARGET_MCORE
1076 LD_FOR_TARGET_MCORE
1077 CC_FOR_TARGET_MCORE
1078 AS_FOR_TARGET_MICROBLAZE
1079 LD_FOR_TARGET_MICROBLAZE
1080 CC_FOR_TARGET_MICROBLAZE
1081 AS_FOR_TARGET_MIPS
1082 LD_FOR_TARGET_MIPS
1083 CC_FOR_TARGET_MIPS
1084 AS_FOR_TARGET_MN10300
1085 LD_FOR_TARGET_MN10300
1086 CC_FOR_TARGET_MN10300
1087 AS_FOR_TARGET_MOXIE
1088 LD_FOR_TARGET_MOXIE
1089 CC_FOR_TARGET_MOXIE
1090 AS_FOR_TARGET_MSP430
1091 LD_FOR_TARGET_MSP430
1092 CC_FOR_TARGET_MSP430
1093 AS_FOR_TARGET_OR1K
1094 LD_FOR_TARGET_OR1K
1095 CC_FOR_TARGET_OR1K
1096 AS_FOR_TARGET_PPC
1097 LD_FOR_TARGET_PPC
1098 CC_FOR_TARGET_PPC
1099 AS_FOR_TARGET_PRU
1100 LD_FOR_TARGET_PRU
1101 CC_FOR_TARGET_PRU
1102 AS_FOR_TARGET_RISCV
1103 LD_FOR_TARGET_RISCV
1104 CC_FOR_TARGET_RISCV
1105 AS_FOR_TARGET_RL78
1106 LD_FOR_TARGET_RL78
1107 CC_FOR_TARGET_RL78
1108 AS_FOR_TARGET_RX
1109 LD_FOR_TARGET_RX
1110 CC_FOR_TARGET_RX
1111 AS_FOR_TARGET_SH
1112 LD_FOR_TARGET_SH
1113 CC_FOR_TARGET_SH
1114 AS_FOR_TARGET_ERC32
1115 LD_FOR_TARGET_ERC32
1116 CC_FOR_TARGET_ERC32
1117 AS_FOR_TARGET_V850
1118 LD_FOR_TARGET_V850
1119 CC_FOR_TARGET_V850
1120 AS_FOR_TARGET_EXAMPLE_SYNACOR
1121 LD_FOR_TARGET_EXAMPLE_SYNACOR
1122 CC_FOR_TARGET_EXAMPLE_SYNACOR'
1123 ac_subdirs_all='ppc'
1124
1125 # Initialize some variables set by options.
1126 ac_init_help=
1127 ac_init_version=false
1128 ac_unrecognized_opts=
1129 ac_unrecognized_sep=
1130 # The variables have the same names as the options, with
1131 # dashes changed to underlines.
1132 cache_file=/dev/null
1133 exec_prefix=NONE
1134 no_create=
1135 no_recursion=
1136 prefix=NONE
1137 program_prefix=NONE
1138 program_suffix=NONE
1139 program_transform_name=s,x,x,
1140 silent=
1141 site=
1142 srcdir=
1143 verbose=
1144 x_includes=NONE
1145 x_libraries=NONE
1146
1147 # Installation directory options.
1148 # These are left unexpanded so users can "make install exec_prefix=/foo"
1149 # and all the variables that are supposed to be based on exec_prefix
1150 # by default will actually change.
1151 # Use braces instead of parens because sh, perl, etc. also accept them.
1152 # (The list follows the same order as the GNU Coding Standards.)
1153 bindir='${exec_prefix}/bin'
1154 sbindir='${exec_prefix}/sbin'
1155 libexecdir='${exec_prefix}/libexec'
1156 datarootdir='${prefix}/share'
1157 datadir='${datarootdir}'
1158 sysconfdir='${prefix}/etc'
1159 sharedstatedir='${prefix}/com'
1160 localstatedir='${prefix}/var'
1161 includedir='${prefix}/include'
1162 oldincludedir='/usr/include'
1163 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1164 infodir='${datarootdir}/info'
1165 htmldir='${docdir}'
1166 dvidir='${docdir}'
1167 pdfdir='${docdir}'
1168 psdir='${docdir}'
1169 libdir='${exec_prefix}/lib'
1170 localedir='${datarootdir}/locale'
1171 mandir='${datarootdir}/man'
1172
1173 ac_prev=
1174 ac_dashdash=
1175 for ac_option
1176 do
1177 # If the previous option needs an argument, assign it.
1178 if test -n "$ac_prev"; then
1179 eval $ac_prev=\$ac_option
1180 ac_prev=
1181 continue
1182 fi
1183
1184 case $ac_option in
1185 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1186 *=) ac_optarg= ;;
1187 *) ac_optarg=yes ;;
1188 esac
1189
1190 # Accept the important Cygnus configure options, so we can diagnose typos.
1191
1192 case $ac_dashdash$ac_option in
1193 --)
1194 ac_dashdash=yes ;;
1195
1196 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1197 ac_prev=bindir ;;
1198 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1199 bindir=$ac_optarg ;;
1200
1201 -build | --build | --buil | --bui | --bu)
1202 ac_prev=build_alias ;;
1203 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1204 build_alias=$ac_optarg ;;
1205
1206 -cache-file | --cache-file | --cache-fil | --cache-fi \
1207 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1208 ac_prev=cache_file ;;
1209 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1210 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1211 cache_file=$ac_optarg ;;
1212
1213 --config-cache | -C)
1214 cache_file=config.cache ;;
1215
1216 -datadir | --datadir | --datadi | --datad)
1217 ac_prev=datadir ;;
1218 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1219 datadir=$ac_optarg ;;
1220
1221 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1222 | --dataroo | --dataro | --datar)
1223 ac_prev=datarootdir ;;
1224 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1225 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1226 datarootdir=$ac_optarg ;;
1227
1228 -disable-* | --disable-*)
1229 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1230 # Reject names that are not valid shell variable names.
1231 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1232 as_fn_error $? "invalid feature name: $ac_useropt"
1233 ac_useropt_orig=$ac_useropt
1234 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1235 case $ac_user_opts in
1236 *"
1237 "enable_$ac_useropt"
1238 "*) ;;
1239 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1240 ac_unrecognized_sep=', ';;
1241 esac
1242 eval enable_$ac_useropt=no ;;
1243
1244 -docdir | --docdir | --docdi | --doc | --do)
1245 ac_prev=docdir ;;
1246 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1247 docdir=$ac_optarg ;;
1248
1249 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1250 ac_prev=dvidir ;;
1251 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1252 dvidir=$ac_optarg ;;
1253
1254 -enable-* | --enable-*)
1255 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1256 # Reject names that are not valid shell variable names.
1257 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1258 as_fn_error $? "invalid feature name: $ac_useropt"
1259 ac_useropt_orig=$ac_useropt
1260 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1261 case $ac_user_opts in
1262 *"
1263 "enable_$ac_useropt"
1264 "*) ;;
1265 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1266 ac_unrecognized_sep=', ';;
1267 esac
1268 eval enable_$ac_useropt=\$ac_optarg ;;
1269
1270 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1271 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1272 | --exec | --exe | --ex)
1273 ac_prev=exec_prefix ;;
1274 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1275 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1276 | --exec=* | --exe=* | --ex=*)
1277 exec_prefix=$ac_optarg ;;
1278
1279 -gas | --gas | --ga | --g)
1280 # Obsolete; use --with-gas.
1281 with_gas=yes ;;
1282
1283 -help | --help | --hel | --he | -h)
1284 ac_init_help=long ;;
1285 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1286 ac_init_help=recursive ;;
1287 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1288 ac_init_help=short ;;
1289
1290 -host | --host | --hos | --ho)
1291 ac_prev=host_alias ;;
1292 -host=* | --host=* | --hos=* | --ho=*)
1293 host_alias=$ac_optarg ;;
1294
1295 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1296 ac_prev=htmldir ;;
1297 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1298 | --ht=*)
1299 htmldir=$ac_optarg ;;
1300
1301 -includedir | --includedir | --includedi | --included | --include \
1302 | --includ | --inclu | --incl | --inc)
1303 ac_prev=includedir ;;
1304 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1305 | --includ=* | --inclu=* | --incl=* | --inc=*)
1306 includedir=$ac_optarg ;;
1307
1308 -infodir | --infodir | --infodi | --infod | --info | --inf)
1309 ac_prev=infodir ;;
1310 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1311 infodir=$ac_optarg ;;
1312
1313 -libdir | --libdir | --libdi | --libd)
1314 ac_prev=libdir ;;
1315 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1316 libdir=$ac_optarg ;;
1317
1318 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1319 | --libexe | --libex | --libe)
1320 ac_prev=libexecdir ;;
1321 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1322 | --libexe=* | --libex=* | --libe=*)
1323 libexecdir=$ac_optarg ;;
1324
1325 -localedir | --localedir | --localedi | --localed | --locale)
1326 ac_prev=localedir ;;
1327 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1328 localedir=$ac_optarg ;;
1329
1330 -localstatedir | --localstatedir | --localstatedi | --localstated \
1331 | --localstate | --localstat | --localsta | --localst | --locals)
1332 ac_prev=localstatedir ;;
1333 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1334 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1335 localstatedir=$ac_optarg ;;
1336
1337 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1338 ac_prev=mandir ;;
1339 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1340 mandir=$ac_optarg ;;
1341
1342 -nfp | --nfp | --nf)
1343 # Obsolete; use --without-fp.
1344 with_fp=no ;;
1345
1346 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1347 | --no-cr | --no-c | -n)
1348 no_create=yes ;;
1349
1350 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1351 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1352 no_recursion=yes ;;
1353
1354 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1355 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1356 | --oldin | --oldi | --old | --ol | --o)
1357 ac_prev=oldincludedir ;;
1358 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1359 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1360 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1361 oldincludedir=$ac_optarg ;;
1362
1363 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1364 ac_prev=prefix ;;
1365 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1366 prefix=$ac_optarg ;;
1367
1368 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1369 | --program-pre | --program-pr | --program-p)
1370 ac_prev=program_prefix ;;
1371 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1372 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1373 program_prefix=$ac_optarg ;;
1374
1375 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1376 | --program-suf | --program-su | --program-s)
1377 ac_prev=program_suffix ;;
1378 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1379 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1380 program_suffix=$ac_optarg ;;
1381
1382 -program-transform-name | --program-transform-name \
1383 | --program-transform-nam | --program-transform-na \
1384 | --program-transform-n | --program-transform- \
1385 | --program-transform | --program-transfor \
1386 | --program-transfo | --program-transf \
1387 | --program-trans | --program-tran \
1388 | --progr-tra | --program-tr | --program-t)
1389 ac_prev=program_transform_name ;;
1390 -program-transform-name=* | --program-transform-name=* \
1391 | --program-transform-nam=* | --program-transform-na=* \
1392 | --program-transform-n=* | --program-transform-=* \
1393 | --program-transform=* | --program-transfor=* \
1394 | --program-transfo=* | --program-transf=* \
1395 | --program-trans=* | --program-tran=* \
1396 | --progr-tra=* | --program-tr=* | --program-t=*)
1397 program_transform_name=$ac_optarg ;;
1398
1399 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1400 ac_prev=pdfdir ;;
1401 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1402 pdfdir=$ac_optarg ;;
1403
1404 -psdir | --psdir | --psdi | --psd | --ps)
1405 ac_prev=psdir ;;
1406 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1407 psdir=$ac_optarg ;;
1408
1409 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1410 | -silent | --silent | --silen | --sile | --sil)
1411 silent=yes ;;
1412
1413 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1414 ac_prev=sbindir ;;
1415 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1416 | --sbi=* | --sb=*)
1417 sbindir=$ac_optarg ;;
1418
1419 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1420 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1421 | --sharedst | --shareds | --shared | --share | --shar \
1422 | --sha | --sh)
1423 ac_prev=sharedstatedir ;;
1424 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1425 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1426 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1427 | --sha=* | --sh=*)
1428 sharedstatedir=$ac_optarg ;;
1429
1430 -site | --site | --sit)
1431 ac_prev=site ;;
1432 -site=* | --site=* | --sit=*)
1433 site=$ac_optarg ;;
1434
1435 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1436 ac_prev=srcdir ;;
1437 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1438 srcdir=$ac_optarg ;;
1439
1440 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1441 | --syscon | --sysco | --sysc | --sys | --sy)
1442 ac_prev=sysconfdir ;;
1443 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1444 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1445 sysconfdir=$ac_optarg ;;
1446
1447 -target | --target | --targe | --targ | --tar | --ta | --t)
1448 ac_prev=target_alias ;;
1449 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1450 target_alias=$ac_optarg ;;
1451
1452 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1453 verbose=yes ;;
1454
1455 -version | --version | --versio | --versi | --vers | -V)
1456 ac_init_version=: ;;
1457
1458 -with-* | --with-*)
1459 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1460 # Reject names that are not valid shell variable names.
1461 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1462 as_fn_error $? "invalid package name: $ac_useropt"
1463 ac_useropt_orig=$ac_useropt
1464 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1465 case $ac_user_opts in
1466 *"
1467 "with_$ac_useropt"
1468 "*) ;;
1469 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1470 ac_unrecognized_sep=', ';;
1471 esac
1472 eval with_$ac_useropt=\$ac_optarg ;;
1473
1474 -without-* | --without-*)
1475 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1476 # Reject names that are not valid shell variable names.
1477 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1478 as_fn_error $? "invalid package name: $ac_useropt"
1479 ac_useropt_orig=$ac_useropt
1480 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1481 case $ac_user_opts in
1482 *"
1483 "with_$ac_useropt"
1484 "*) ;;
1485 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1486 ac_unrecognized_sep=', ';;
1487 esac
1488 eval with_$ac_useropt=no ;;
1489
1490 --x)
1491 # Obsolete; use --with-x.
1492 with_x=yes ;;
1493
1494 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1495 | --x-incl | --x-inc | --x-in | --x-i)
1496 ac_prev=x_includes ;;
1497 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1498 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1499 x_includes=$ac_optarg ;;
1500
1501 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1502 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1503 ac_prev=x_libraries ;;
1504 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1505 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1506 x_libraries=$ac_optarg ;;
1507
1508 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1509 Try \`$0 --help' for more information"
1510 ;;
1511
1512 *=*)
1513 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1514 # Reject names that are not valid shell variable names.
1515 case $ac_envvar in #(
1516 '' | [0-9]* | *[!_$as_cr_alnum]* )
1517 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1518 esac
1519 eval $ac_envvar=\$ac_optarg
1520 export $ac_envvar ;;
1521
1522 *)
1523 # FIXME: should be removed in autoconf 3.0.
1524 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1525 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1526 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1527 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1528 ;;
1529
1530 esac
1531 done
1532
1533 if test -n "$ac_prev"; then
1534 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1535 as_fn_error $? "missing argument to $ac_option"
1536 fi
1537
1538 if test -n "$ac_unrecognized_opts"; then
1539 case $enable_option_checking in
1540 no) ;;
1541 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1542 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1543 esac
1544 fi
1545
1546 # Check all directory arguments for consistency.
1547 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1548 datadir sysconfdir sharedstatedir localstatedir includedir \
1549 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1550 libdir localedir mandir
1551 do
1552 eval ac_val=\$$ac_var
1553 # Remove trailing slashes.
1554 case $ac_val in
1555 */ )
1556 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1557 eval $ac_var=\$ac_val;;
1558 esac
1559 # Be sure to have absolute directory names.
1560 case $ac_val in
1561 [\\/$]* | ?:[\\/]* ) continue;;
1562 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1563 esac
1564 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1565 done
1566
1567 # There might be people who depend on the old broken behavior: `$host'
1568 # used to hold the argument of --host etc.
1569 # FIXME: To remove some day.
1570 build=$build_alias
1571 host=$host_alias
1572 target=$target_alias
1573
1574 # FIXME: To remove some day.
1575 if test "x$host_alias" != x; then
1576 if test "x$build_alias" = x; then
1577 cross_compiling=maybe
1578 elif test "x$build_alias" != "x$host_alias"; then
1579 cross_compiling=yes
1580 fi
1581 fi
1582
1583 ac_tool_prefix=
1584 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1585
1586 test "$silent" = yes && exec 6>/dev/null
1587
1588
1589 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1590 ac_ls_di=`ls -di .` &&
1591 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1592 as_fn_error $? "working directory cannot be determined"
1593 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1594 as_fn_error $? "pwd does not report name of working directory"
1595
1596
1597 # Find the source files, if location was not specified.
1598 if test -z "$srcdir"; then
1599 ac_srcdir_defaulted=yes
1600 # Try the directory containing this script, then the parent directory.
1601 ac_confdir=`$as_dirname -- "$as_myself" ||
1602 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1603 X"$as_myself" : 'X\(//\)[^/]' \| \
1604 X"$as_myself" : 'X\(//\)$' \| \
1605 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1606 $as_echo X"$as_myself" |
1607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1608 s//\1/
1609 q
1610 }
1611 /^X\(\/\/\)[^/].*/{
1612 s//\1/
1613 q
1614 }
1615 /^X\(\/\/\)$/{
1616 s//\1/
1617 q
1618 }
1619 /^X\(\/\).*/{
1620 s//\1/
1621 q
1622 }
1623 s/.*/./; q'`
1624 srcdir=$ac_confdir
1625 if test ! -r "$srcdir/$ac_unique_file"; then
1626 srcdir=..
1627 fi
1628 else
1629 ac_srcdir_defaulted=no
1630 fi
1631 if test ! -r "$srcdir/$ac_unique_file"; then
1632 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1633 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1634 fi
1635 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1636 ac_abs_confdir=`(
1637 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1638 pwd)`
1639 # When building in place, set srcdir=.
1640 if test "$ac_abs_confdir" = "$ac_pwd"; then
1641 srcdir=.
1642 fi
1643 # Remove unnecessary trailing slashes from srcdir.
1644 # Double slashes in file names in object file debugging info
1645 # mess up M-x gdb in Emacs.
1646 case $srcdir in
1647 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1648 esac
1649 for ac_var in $ac_precious_vars; do
1650 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1651 eval ac_env_${ac_var}_value=\$${ac_var}
1652 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1653 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1654 done
1655
1656 #
1657 # Report the --help message.
1658 #
1659 if test "$ac_init_help" = "long"; then
1660 # Omit some internal or obsolete options to make the list less imposing.
1661 # This message is too long to be a string in the A/UX 3.1 sh.
1662 cat <<_ACEOF
1663 \`configure' configures sim 0 to adapt to many kinds of systems.
1664
1665 Usage: $0 [OPTION]... [VAR=VALUE]...
1666
1667 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1668 VAR=VALUE. See below for descriptions of some of the useful variables.
1669
1670 Defaults for the options are specified in brackets.
1671
1672 Configuration:
1673 -h, --help display this help and exit
1674 --help=short display options specific to this package
1675 --help=recursive display the short help of all the included packages
1676 -V, --version display version information and exit
1677 -q, --quiet, --silent do not print \`checking ...' messages
1678 --cache-file=FILE cache test results in FILE [disabled]
1679 -C, --config-cache alias for \`--cache-file=config.cache'
1680 -n, --no-create do not create output files
1681 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1682
1683 Installation directories:
1684 --prefix=PREFIX install architecture-independent files in PREFIX
1685 [$ac_default_prefix]
1686 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1687 [PREFIX]
1688
1689 By default, \`make install' will install all the files in
1690 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1691 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1692 for instance \`--prefix=\$HOME'.
1693
1694 For better control, use the options below.
1695
1696 Fine tuning of the installation directories:
1697 --bindir=DIR user executables [EPREFIX/bin]
1698 --sbindir=DIR system admin executables [EPREFIX/sbin]
1699 --libexecdir=DIR program executables [EPREFIX/libexec]
1700 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1701 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1702 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1703 --libdir=DIR object code libraries [EPREFIX/lib]
1704 --includedir=DIR C header files [PREFIX/include]
1705 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1706 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1707 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1708 --infodir=DIR info documentation [DATAROOTDIR/info]
1709 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1710 --mandir=DIR man documentation [DATAROOTDIR/man]
1711 --docdir=DIR documentation root [DATAROOTDIR/doc/sim]
1712 --htmldir=DIR html documentation [DOCDIR]
1713 --dvidir=DIR dvi documentation [DOCDIR]
1714 --pdfdir=DIR pdf documentation [DOCDIR]
1715 --psdir=DIR ps documentation [DOCDIR]
1716 _ACEOF
1717
1718 cat <<\_ACEOF
1719
1720 Program names:
1721 --program-prefix=PREFIX prepend PREFIX to installed program names
1722 --program-suffix=SUFFIX append SUFFIX to installed program names
1723 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1724
1725 System types:
1726 --build=BUILD configure for building on BUILD [guessed]
1727 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1728 --target=TARGET configure for building compilers for TARGET [HOST]
1729 _ACEOF
1730 fi
1731
1732 if test -n "$ac_init_help"; then
1733 case $ac_init_help in
1734 short | recursive ) echo "Configuration of sim 0:";;
1735 esac
1736 cat <<\_ACEOF
1737
1738 Optional Features:
1739 --disable-option-checking ignore unrecognized --enable/--with options
1740 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1741 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1742 --enable-shared[=PKGS] build shared libraries [default=yes]
1743 --enable-static[=PKGS] build static libraries [default=yes]
1744 --enable-fast-install[=PKGS]
1745 optimize for fast installation [default=yes]
1746 --disable-libtool-lock avoid locking (might break parallel builds)
1747 --enable-maintainer-mode
1748 enable make rules and dependencies not useful (and
1749 sometimes confusing) to the casual installer
1750 --enable-dependency-tracking
1751 do not reject slow dependency extractors
1752 --disable-dependency-tracking
1753 speeds up one-time build
1754 --enable-silent-rules less verbose build output (undo: "make V=1")
1755 --disable-silent-rules verbose build output (undo: "make V=0")
1756 --enable-sim Enable the GNU simulator
1757 --enable-example-sims enable example GNU simulators
1758 --enable-targets alternative target configurations
1759 --enable-sim-alignment=align
1760 Specify strict, nonstrict or forced alignment of
1761 memory accesses
1762 --enable-sim-assert Specify whether to perform random assertions
1763 --enable-cgen-maint=DIR build cgen generated files
1764 --enable-sim-debug=opts Enable debugging flags (for developers of the sim
1765 itself)
1766 --enable-sim-endian=endian
1767 Specify target byte endian orientation
1768 --enable-sim-environment=environment
1769 Specify mixed, user, virtual or operating
1770 environment
1771 --enable-sim-hardware Whether to enable hardware/device simulation
1772 --enable-sim-inline=inlines
1773 Specify which functions should be inlined
1774 --enable-sim-profile=opts
1775 Enable profiling flags
1776 --enable-sim-reserved-bits
1777 Specify whether to check reserved bits in
1778 instruction
1779 --enable-sim-scache=size
1780 Specify simulator execution cache size
1781 --enable-sim-smp=n Specify number of processors to configure for
1782 (default 1)
1783 --enable-sim-stdio Specify whether to use stdio for console
1784 input/output
1785 --enable-sim-trace=opts Enable tracing of simulated programs
1786 --enable-werror treat compile warnings as errors
1787 --enable-build-warnings enable build-time compiler warnings if gcc is used
1788 --enable-sim-build-warnings
1789 enable SIM specific build-time compiler warnings if
1790 gcc is used
1791 --enable-sim-frv-trapdump
1792 Make unknown traps dump the registers
1793 --disable-sim-rx-cycle-accurate
1794 Disable cycle accurate simulation (faster runtime)
1795
1796 Optional Packages:
1797 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1798 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1799 --with-pkgversion=PKG Use PKG in the version string in place of "SIM"
1800 --with-bugurl=URL Direct users to URL to report a bug
1801 --with-pic try to use only PIC/non-PIC objects [default=use
1802 both]
1803 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1804
1805 Some influential environment variables:
1806 CC C compiler command
1807 CFLAGS C compiler flags
1808 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1809 nonstandard directory <lib dir>
1810 LIBS libraries to pass to the linker, e.g. -l<library>
1811 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1812 you have headers in a nonstandard directory <include dir>
1813 CPP C preprocessor
1814 PKG_CONFIG path to pkg-config utility
1815 PKG_CONFIG_PATH
1816 directories to add to pkg-config's search path
1817 PKG_CONFIG_LIBDIR
1818 path overriding pkg-config's built-in search path
1819 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
1820 SDL_LIBS linker flags for SDL, overriding pkg-config
1821 AS_FOR_TARGET_AARCH64
1822 Assembler for aarch64 tests
1823 LD_FOR_TARGET_AARCH64
1824 Linker for aarch64 tests
1825 CC_FOR_TARGET_AARCH64
1826 C compiler for aarch64 tests
1827 AS_FOR_TARGET_ARM
1828 Assembler for arm tests
1829 LD_FOR_TARGET_ARM
1830 Linker for arm tests
1831 CC_FOR_TARGET_ARM
1832 C compiler for arm tests
1833 AS_FOR_TARGET_AVR
1834 Assembler for avr tests
1835 LD_FOR_TARGET_AVR
1836 Linker for avr tests
1837 CC_FOR_TARGET_AVR
1838 C compiler for avr tests
1839 AS_FOR_TARGET_BFIN
1840 Assembler for bfin tests
1841 LD_FOR_TARGET_BFIN
1842 Linker for bfin tests
1843 CC_FOR_TARGET_BFIN
1844 C compiler for bfin tests
1845 AS_FOR_TARGET_BPF
1846 Assembler for bpf tests
1847 LD_FOR_TARGET_BPF
1848 Linker for bpf tests
1849 CC_FOR_TARGET_BPF
1850 C compiler for bpf tests
1851 AS_FOR_TARGET_CR16
1852 Assembler for cr16 tests
1853 LD_FOR_TARGET_CR16
1854 Linker for cr16 tests
1855 CC_FOR_TARGET_CR16
1856 C compiler for cr16 tests
1857 AS_FOR_TARGET_CRIS
1858 Assembler for cris tests
1859 LD_FOR_TARGET_CRIS
1860 Linker for cris tests
1861 CC_FOR_TARGET_CRIS
1862 C compiler for cris tests
1863 AS_FOR_TARGET_D10V
1864 Assembler for d10v tests
1865 LD_FOR_TARGET_D10V
1866 Linker for d10v tests
1867 CC_FOR_TARGET_D10V
1868 C compiler for d10v tests
1869 AS_FOR_TARGET_FRV
1870 Assembler for frv tests
1871 LD_FOR_TARGET_FRV
1872 Linker for frv tests
1873 CC_FOR_TARGET_FRV
1874 C compiler for frv tests
1875 AS_FOR_TARGET_FT32
1876 Assembler for ft32 tests
1877 LD_FOR_TARGET_FT32
1878 Linker for ft32 tests
1879 CC_FOR_TARGET_FT32
1880 C compiler for ft32 tests
1881 AS_FOR_TARGET_H8300
1882 Assembler for h8300 tests
1883 LD_FOR_TARGET_H8300
1884 Linker for h8300 tests
1885 CC_FOR_TARGET_H8300
1886 C compiler for h8300 tests
1887 AS_FOR_TARGET_IQ2000
1888 Assembler for iq2000 tests
1889 LD_FOR_TARGET_IQ2000
1890 Linker for iq2000 tests
1891 CC_FOR_TARGET_IQ2000
1892 C compiler for iq2000 tests
1893 AS_FOR_TARGET_LM32
1894 Assembler for lm32 tests
1895 LD_FOR_TARGET_LM32
1896 Linker for lm32 tests
1897 CC_FOR_TARGET_LM32
1898 C compiler for lm32 tests
1899 AS_FOR_TARGET_M32C
1900 Assembler for m32c tests
1901 LD_FOR_TARGET_M32C
1902 Linker for m32c tests
1903 CC_FOR_TARGET_M32C
1904 C compiler for m32c tests
1905 AS_FOR_TARGET_M32R
1906 Assembler for m32r tests
1907 LD_FOR_TARGET_M32R
1908 Linker for m32r tests
1909 CC_FOR_TARGET_M32R
1910 C compiler for m32r tests
1911 AS_FOR_TARGET_M68HC11
1912 Assembler for m68hc11 tests
1913 LD_FOR_TARGET_M68HC11
1914 Linker for m68hc11 tests
1915 CC_FOR_TARGET_M68HC11
1916 C compiler for m68hc11 tests
1917 AS_FOR_TARGET_MCORE
1918 Assembler for mcore tests
1919 LD_FOR_TARGET_MCORE
1920 Linker for mcore tests
1921 CC_FOR_TARGET_MCORE
1922 C compiler for mcore tests
1923 AS_FOR_TARGET_MICROBLAZE
1924 Assembler for microblaze tests
1925 LD_FOR_TARGET_MICROBLAZE
1926 Linker for microblaze tests
1927 CC_FOR_TARGET_MICROBLAZE
1928 C compiler for microblaze tests
1929 AS_FOR_TARGET_MIPS
1930 Assembler for mips tests
1931 LD_FOR_TARGET_MIPS
1932 Linker for mips tests
1933 CC_FOR_TARGET_MIPS
1934 C compiler for mips tests
1935 AS_FOR_TARGET_MN10300
1936 Assembler for mn10300 tests
1937 LD_FOR_TARGET_MN10300
1938 Linker for mn10300 tests
1939 CC_FOR_TARGET_MN10300
1940 C compiler for mn10300 tests
1941 AS_FOR_TARGET_MOXIE
1942 Assembler for moxie tests
1943 LD_FOR_TARGET_MOXIE
1944 Linker for moxie tests
1945 CC_FOR_TARGET_MOXIE
1946 C compiler for moxie tests
1947 AS_FOR_TARGET_MSP430
1948 Assembler for msp430 tests
1949 LD_FOR_TARGET_MSP430
1950 Linker for msp430 tests
1951 CC_FOR_TARGET_MSP430
1952 C compiler for msp430 tests
1953 AS_FOR_TARGET_OR1K
1954 Assembler for or1k tests
1955 LD_FOR_TARGET_OR1K
1956 Linker for or1k tests
1957 CC_FOR_TARGET_OR1K
1958 C compiler for or1k tests
1959 AS_FOR_TARGET_PPC
1960 Assembler for ppc tests
1961 LD_FOR_TARGET_PPC
1962 Linker for ppc tests
1963 CC_FOR_TARGET_PPC
1964 C compiler for ppc tests
1965 AS_FOR_TARGET_PRU
1966 Assembler for pru tests
1967 LD_FOR_TARGET_PRU
1968 Linker for pru tests
1969 CC_FOR_TARGET_PRU
1970 C compiler for pru tests
1971 AS_FOR_TARGET_RISCV
1972 Assembler for riscv tests
1973 LD_FOR_TARGET_RISCV
1974 Linker for riscv tests
1975 CC_FOR_TARGET_RISCV
1976 C compiler for riscv tests
1977 AS_FOR_TARGET_RL78
1978 Assembler for rl78 tests
1979 LD_FOR_TARGET_RL78
1980 Linker for rl78 tests
1981 CC_FOR_TARGET_RL78
1982 C compiler for rl78 tests
1983 AS_FOR_TARGET_RX
1984 Assembler for rx tests
1985 LD_FOR_TARGET_RX
1986 Linker for rx tests
1987 CC_FOR_TARGET_RX
1988 C compiler for rx tests
1989 AS_FOR_TARGET_SH
1990 Assembler for sh tests
1991 LD_FOR_TARGET_SH
1992 Linker for sh tests
1993 CC_FOR_TARGET_SH
1994 C compiler for sh tests
1995 AS_FOR_TARGET_ERC32
1996 Assembler for erc32 tests
1997 LD_FOR_TARGET_ERC32
1998 Linker for erc32 tests
1999 CC_FOR_TARGET_ERC32
2000 C compiler for erc32 tests
2001 AS_FOR_TARGET_V850
2002 Assembler for v850 tests
2003 LD_FOR_TARGET_V850
2004 Linker for v850 tests
2005 CC_FOR_TARGET_V850
2006 C compiler for v850 tests
2007 AS_FOR_TARGET_EXAMPLE_SYNACOR
2008 Assembler for example-synacor tests
2009 LD_FOR_TARGET_EXAMPLE_SYNACOR
2010 Linker for example-synacor tests
2011 CC_FOR_TARGET_EXAMPLE_SYNACOR
2012 C compiler for example-synacor tests
2013
2014 Use these variables to override the choices made by `configure' or to help
2015 it to find libraries and programs with nonstandard names/locations.
2016
2017 Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
2018 sim home page: <https://sourceware.org/gdb/wiki/Sim/>.
2019 _ACEOF
2020 ac_status=$?
2021 fi
2022
2023 if test "$ac_init_help" = "recursive"; then
2024 # If there are subdirs, report their specific --help.
2025 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2026 test -d "$ac_dir" ||
2027 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2028 continue
2029 ac_builddir=.
2030
2031 case "$ac_dir" in
2032 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2033 *)
2034 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2035 # A ".." for each directory in $ac_dir_suffix.
2036 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2037 case $ac_top_builddir_sub in
2038 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2039 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2040 esac ;;
2041 esac
2042 ac_abs_top_builddir=$ac_pwd
2043 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2044 # for backward compatibility:
2045 ac_top_builddir=$ac_top_build_prefix
2046
2047 case $srcdir in
2048 .) # We are building in place.
2049 ac_srcdir=.
2050 ac_top_srcdir=$ac_top_builddir_sub
2051 ac_abs_top_srcdir=$ac_pwd ;;
2052 [\\/]* | ?:[\\/]* ) # Absolute name.
2053 ac_srcdir=$srcdir$ac_dir_suffix;
2054 ac_top_srcdir=$srcdir
2055 ac_abs_top_srcdir=$srcdir ;;
2056 *) # Relative name.
2057 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2058 ac_top_srcdir=$ac_top_build_prefix$srcdir
2059 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2060 esac
2061 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2062
2063 cd "$ac_dir" || { ac_status=$?; continue; }
2064 # Check for guested configure.
2065 if test -f "$ac_srcdir/configure.gnu"; then
2066 echo &&
2067 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2068 elif test -f "$ac_srcdir/configure"; then
2069 echo &&
2070 $SHELL "$ac_srcdir/configure" --help=recursive
2071 else
2072 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2073 fi || ac_status=$?
2074 cd "$ac_pwd" || { ac_status=$?; break; }
2075 done
2076 fi
2077
2078 test -n "$ac_init_help" && exit $ac_status
2079 if $ac_init_version; then
2080 cat <<\_ACEOF
2081 sim configure 0
2082 generated by GNU Autoconf 2.69
2083
2084 Copyright (C) 2012 Free Software Foundation, Inc.
2085 This configure script is free software; the Free Software Foundation
2086 gives unlimited permission to copy, distribute and modify it.
2087 _ACEOF
2088 exit
2089 fi
2090
2091 ## ------------------------ ##
2092 ## Autoconf initialization. ##
2093 ## ------------------------ ##
2094
2095 # ac_fn_c_try_compile LINENO
2096 # --------------------------
2097 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2098 ac_fn_c_try_compile ()
2099 {
2100 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2101 rm -f conftest.$ac_objext
2102 if { { ac_try="$ac_compile"
2103 case "(($ac_try" in
2104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2105 *) ac_try_echo=$ac_try;;
2106 esac
2107 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2108 $as_echo "$ac_try_echo"; } >&5
2109 (eval "$ac_compile") 2>conftest.err
2110 ac_status=$?
2111 if test -s conftest.err; then
2112 grep -v '^ *+' conftest.err >conftest.er1
2113 cat conftest.er1 >&5
2114 mv -f conftest.er1 conftest.err
2115 fi
2116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2117 test $ac_status = 0; } && {
2118 test -z "$ac_c_werror_flag" ||
2119 test ! -s conftest.err
2120 } && test -s conftest.$ac_objext; then :
2121 ac_retval=0
2122 else
2123 $as_echo "$as_me: failed program was:" >&5
2124 sed 's/^/| /' conftest.$ac_ext >&5
2125
2126 ac_retval=1
2127 fi
2128 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2129 as_fn_set_status $ac_retval
2130
2131 } # ac_fn_c_try_compile
2132
2133 # ac_fn_c_try_cpp LINENO
2134 # ----------------------
2135 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2136 ac_fn_c_try_cpp ()
2137 {
2138 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2139 if { { ac_try="$ac_cpp conftest.$ac_ext"
2140 case "(($ac_try" in
2141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2142 *) ac_try_echo=$ac_try;;
2143 esac
2144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2145 $as_echo "$ac_try_echo"; } >&5
2146 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2147 ac_status=$?
2148 if test -s conftest.err; then
2149 grep -v '^ *+' conftest.err >conftest.er1
2150 cat conftest.er1 >&5
2151 mv -f conftest.er1 conftest.err
2152 fi
2153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2154 test $ac_status = 0; } > conftest.i && {
2155 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2156 test ! -s conftest.err
2157 }; then :
2158 ac_retval=0
2159 else
2160 $as_echo "$as_me: failed program was:" >&5
2161 sed 's/^/| /' conftest.$ac_ext >&5
2162
2163 ac_retval=1
2164 fi
2165 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2166 as_fn_set_status $ac_retval
2167
2168 } # ac_fn_c_try_cpp
2169
2170 # ac_fn_c_try_run LINENO
2171 # ----------------------
2172 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2173 # that executables *can* be run.
2174 ac_fn_c_try_run ()
2175 {
2176 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2177 if { { ac_try="$ac_link"
2178 case "(($ac_try" in
2179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2180 *) ac_try_echo=$ac_try;;
2181 esac
2182 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2183 $as_echo "$ac_try_echo"; } >&5
2184 (eval "$ac_link") 2>&5
2185 ac_status=$?
2186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2187 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2188 { { case "(($ac_try" in
2189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2190 *) ac_try_echo=$ac_try;;
2191 esac
2192 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2193 $as_echo "$ac_try_echo"; } >&5
2194 (eval "$ac_try") 2>&5
2195 ac_status=$?
2196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2197 test $ac_status = 0; }; }; then :
2198 ac_retval=0
2199 else
2200 $as_echo "$as_me: program exited with status $ac_status" >&5
2201 $as_echo "$as_me: failed program was:" >&5
2202 sed 's/^/| /' conftest.$ac_ext >&5
2203
2204 ac_retval=$ac_status
2205 fi
2206 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2207 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2208 as_fn_set_status $ac_retval
2209
2210 } # ac_fn_c_try_run
2211
2212 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2213 # -------------------------------------------------------
2214 # Tests whether HEADER exists and can be compiled using the include files in
2215 # INCLUDES, setting the cache variable VAR accordingly.
2216 ac_fn_c_check_header_compile ()
2217 {
2218 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2220 $as_echo_n "checking for $2... " >&6; }
2221 if eval \${$3+:} false; then :
2222 $as_echo_n "(cached) " >&6
2223 else
2224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225 /* end confdefs.h. */
2226 $4
2227 #include <$2>
2228 _ACEOF
2229 if ac_fn_c_try_compile "$LINENO"; then :
2230 eval "$3=yes"
2231 else
2232 eval "$3=no"
2233 fi
2234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2235 fi
2236 eval ac_res=\$$3
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2238 $as_echo "$ac_res" >&6; }
2239 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2240
2241 } # ac_fn_c_check_header_compile
2242
2243 # ac_fn_c_try_link LINENO
2244 # -----------------------
2245 # Try to link conftest.$ac_ext, and return whether this succeeded.
2246 ac_fn_c_try_link ()
2247 {
2248 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2249 rm -f conftest.$ac_objext conftest$ac_exeext
2250 if { { ac_try="$ac_link"
2251 case "(($ac_try" in
2252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2253 *) ac_try_echo=$ac_try;;
2254 esac
2255 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2256 $as_echo "$ac_try_echo"; } >&5
2257 (eval "$ac_link") 2>conftest.err
2258 ac_status=$?
2259 if test -s conftest.err; then
2260 grep -v '^ *+' conftest.err >conftest.er1
2261 cat conftest.er1 >&5
2262 mv -f conftest.er1 conftest.err
2263 fi
2264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2265 test $ac_status = 0; } && {
2266 test -z "$ac_c_werror_flag" ||
2267 test ! -s conftest.err
2268 } && test -s conftest$ac_exeext && {
2269 test "$cross_compiling" = yes ||
2270 test -x conftest$ac_exeext
2271 }; then :
2272 ac_retval=0
2273 else
2274 $as_echo "$as_me: failed program was:" >&5
2275 sed 's/^/| /' conftest.$ac_ext >&5
2276
2277 ac_retval=1
2278 fi
2279 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2280 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2281 # interfere with the next link command; also delete a directory that is
2282 # left behind by Apple's compiler. We do this before executing the actions.
2283 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2284 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2285 as_fn_set_status $ac_retval
2286
2287 } # ac_fn_c_try_link
2288
2289 # ac_fn_c_check_func LINENO FUNC VAR
2290 # ----------------------------------
2291 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2292 ac_fn_c_check_func ()
2293 {
2294 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2296 $as_echo_n "checking for $2... " >&6; }
2297 if eval \${$3+:} false; then :
2298 $as_echo_n "(cached) " >&6
2299 else
2300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2301 /* end confdefs.h. */
2302 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2303 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2304 #define $2 innocuous_$2
2305
2306 /* System header to define __stub macros and hopefully few prototypes,
2307 which can conflict with char $2 (); below.
2308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2309 <limits.h> exists even on freestanding compilers. */
2310
2311 #ifdef __STDC__
2312 # include <limits.h>
2313 #else
2314 # include <assert.h>
2315 #endif
2316
2317 #undef $2
2318
2319 /* Override any GCC internal prototype to avoid an error.
2320 Use char because int might match the return type of a GCC
2321 builtin and then its argument prototype would still apply. */
2322 #ifdef __cplusplus
2323 extern "C"
2324 #endif
2325 char $2 ();
2326 /* The GNU C library defines this for functions which it implements
2327 to always fail with ENOSYS. Some functions are actually named
2328 something starting with __ and the normal name is an alias. */
2329 #if defined __stub_$2 || defined __stub___$2
2330 choke me
2331 #endif
2332
2333 int
2334 main ()
2335 {
2336 return $2 ();
2337 ;
2338 return 0;
2339 }
2340 _ACEOF
2341 if ac_fn_c_try_link "$LINENO"; then :
2342 eval "$3=yes"
2343 else
2344 eval "$3=no"
2345 fi
2346 rm -f core conftest.err conftest.$ac_objext \
2347 conftest$ac_exeext conftest.$ac_ext
2348 fi
2349 eval ac_res=\$$3
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2351 $as_echo "$ac_res" >&6; }
2352 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2353
2354 } # ac_fn_c_check_func
2355
2356 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2357 # ----------------------------------------------------
2358 # Tries to find if the field MEMBER exists in type AGGR, after including
2359 # INCLUDES, setting cache variable VAR accordingly.
2360 ac_fn_c_check_member ()
2361 {
2362 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2364 $as_echo_n "checking for $2.$3... " >&6; }
2365 if eval \${$4+:} false; then :
2366 $as_echo_n "(cached) " >&6
2367 else
2368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2369 /* end confdefs.h. */
2370 $5
2371 int
2372 main ()
2373 {
2374 static $2 ac_aggr;
2375 if (ac_aggr.$3)
2376 return 0;
2377 ;
2378 return 0;
2379 }
2380 _ACEOF
2381 if ac_fn_c_try_compile "$LINENO"; then :
2382 eval "$4=yes"
2383 else
2384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2385 /* end confdefs.h. */
2386 $5
2387 int
2388 main ()
2389 {
2390 static $2 ac_aggr;
2391 if (sizeof ac_aggr.$3)
2392 return 0;
2393 ;
2394 return 0;
2395 }
2396 _ACEOF
2397 if ac_fn_c_try_compile "$LINENO"; then :
2398 eval "$4=yes"
2399 else
2400 eval "$4=no"
2401 fi
2402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2403 fi
2404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2405 fi
2406 eval ac_res=\$$4
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2408 $as_echo "$ac_res" >&6; }
2409 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2410
2411 } # ac_fn_c_check_member
2412
2413 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2414 # ---------------------------------------------
2415 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2416 # accordingly.
2417 ac_fn_c_check_decl ()
2418 {
2419 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2420 as_decl_name=`echo $2|sed 's/ *(.*//'`
2421 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2423 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2424 if eval \${$3+:} false; then :
2425 $as_echo_n "(cached) " >&6
2426 else
2427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2428 /* end confdefs.h. */
2429 $4
2430 int
2431 main ()
2432 {
2433 #ifndef $as_decl_name
2434 #ifdef __cplusplus
2435 (void) $as_decl_use;
2436 #else
2437 (void) $as_decl_name;
2438 #endif
2439 #endif
2440
2441 ;
2442 return 0;
2443 }
2444 _ACEOF
2445 if ac_fn_c_try_compile "$LINENO"; then :
2446 eval "$3=yes"
2447 else
2448 eval "$3=no"
2449 fi
2450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2451 fi
2452 eval ac_res=\$$3
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2454 $as_echo "$ac_res" >&6; }
2455 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2456
2457 } # ac_fn_c_check_decl
2458
2459 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2460 # -------------------------------------------
2461 # Tests whether TYPE exists after having included INCLUDES, setting cache
2462 # variable VAR accordingly.
2463 ac_fn_c_check_type ()
2464 {
2465 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2467 $as_echo_n "checking for $2... " >&6; }
2468 if eval \${$3+:} false; then :
2469 $as_echo_n "(cached) " >&6
2470 else
2471 eval "$3=no"
2472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2473 /* end confdefs.h. */
2474 $4
2475 int
2476 main ()
2477 {
2478 if (sizeof ($2))
2479 return 0;
2480 ;
2481 return 0;
2482 }
2483 _ACEOF
2484 if ac_fn_c_try_compile "$LINENO"; then :
2485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2486 /* end confdefs.h. */
2487 $4
2488 int
2489 main ()
2490 {
2491 if (sizeof (($2)))
2492 return 0;
2493 ;
2494 return 0;
2495 }
2496 _ACEOF
2497 if ac_fn_c_try_compile "$LINENO"; then :
2498
2499 else
2500 eval "$3=yes"
2501 fi
2502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2503 fi
2504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2505 fi
2506 eval ac_res=\$$3
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2508 $as_echo "$ac_res" >&6; }
2509 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2510
2511 } # ac_fn_c_check_type
2512 cat >config.log <<_ACEOF
2513 This file contains any messages produced by compilers while
2514 running configure, to aid debugging if configure makes a mistake.
2515
2516 It was created by sim $as_me 0, which was
2517 generated by GNU Autoconf 2.69. Invocation command line was
2518
2519 $ $0 $@
2520
2521 _ACEOF
2522 exec 5>>config.log
2523 {
2524 cat <<_ASUNAME
2525 ## --------- ##
2526 ## Platform. ##
2527 ## --------- ##
2528
2529 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2530 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2531 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2532 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2533 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2534
2535 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2536 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2537
2538 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2539 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2540 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2541 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2542 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2543 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2544 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2545
2546 _ASUNAME
2547
2548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549 for as_dir in $PATH
2550 do
2551 IFS=$as_save_IFS
2552 test -z "$as_dir" && as_dir=.
2553 $as_echo "PATH: $as_dir"
2554 done
2555 IFS=$as_save_IFS
2556
2557 } >&5
2558
2559 cat >&5 <<_ACEOF
2560
2561
2562 ## ----------- ##
2563 ## Core tests. ##
2564 ## ----------- ##
2565
2566 _ACEOF
2567
2568
2569 # Keep a trace of the command line.
2570 # Strip out --no-create and --no-recursion so they do not pile up.
2571 # Strip out --silent because we don't want to record it for future runs.
2572 # Also quote any args containing shell meta-characters.
2573 # Make two passes to allow for proper duplicate-argument suppression.
2574 ac_configure_args=
2575 ac_configure_args0=
2576 ac_configure_args1=
2577 ac_must_keep_next=false
2578 for ac_pass in 1 2
2579 do
2580 for ac_arg
2581 do
2582 case $ac_arg in
2583 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2584 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2585 | -silent | --silent | --silen | --sile | --sil)
2586 continue ;;
2587 *\'*)
2588 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2589 esac
2590 case $ac_pass in
2591 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2592 2)
2593 as_fn_append ac_configure_args1 " '$ac_arg'"
2594 if test $ac_must_keep_next = true; then
2595 ac_must_keep_next=false # Got value, back to normal.
2596 else
2597 case $ac_arg in
2598 *=* | --config-cache | -C | -disable-* | --disable-* \
2599 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2600 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2601 | -with-* | --with-* | -without-* | --without-* | --x)
2602 case "$ac_configure_args0 " in
2603 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2604 esac
2605 ;;
2606 -* ) ac_must_keep_next=true ;;
2607 esac
2608 fi
2609 as_fn_append ac_configure_args " '$ac_arg'"
2610 ;;
2611 esac
2612 done
2613 done
2614 { ac_configure_args0=; unset ac_configure_args0;}
2615 { ac_configure_args1=; unset ac_configure_args1;}
2616
2617 # When interrupted or exit'd, cleanup temporary files, and complete
2618 # config.log. We remove comments because anyway the quotes in there
2619 # would cause problems or look ugly.
2620 # WARNING: Use '\'' to represent an apostrophe within the trap.
2621 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2622 trap 'exit_status=$?
2623 # Save into config.log some information that might help in debugging.
2624 {
2625 echo
2626
2627 $as_echo "## ---------------- ##
2628 ## Cache variables. ##
2629 ## ---------------- ##"
2630 echo
2631 # The following way of writing the cache mishandles newlines in values,
2632 (
2633 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2634 eval ac_val=\$$ac_var
2635 case $ac_val in #(
2636 *${as_nl}*)
2637 case $ac_var in #(
2638 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2639 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2640 esac
2641 case $ac_var in #(
2642 _ | IFS | as_nl) ;; #(
2643 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2644 *) { eval $ac_var=; unset $ac_var;} ;;
2645 esac ;;
2646 esac
2647 done
2648 (set) 2>&1 |
2649 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2650 *${as_nl}ac_space=\ *)
2651 sed -n \
2652 "s/'\''/'\''\\\\'\'''\''/g;
2653 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2654 ;; #(
2655 *)
2656 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2657 ;;
2658 esac |
2659 sort
2660 )
2661 echo
2662
2663 $as_echo "## ----------------- ##
2664 ## Output variables. ##
2665 ## ----------------- ##"
2666 echo
2667 for ac_var in $ac_subst_vars
2668 do
2669 eval ac_val=\$$ac_var
2670 case $ac_val in
2671 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2672 esac
2673 $as_echo "$ac_var='\''$ac_val'\''"
2674 done | sort
2675 echo
2676
2677 if test -n "$ac_subst_files"; then
2678 $as_echo "## ------------------- ##
2679 ## File substitutions. ##
2680 ## ------------------- ##"
2681 echo
2682 for ac_var in $ac_subst_files
2683 do
2684 eval ac_val=\$$ac_var
2685 case $ac_val in
2686 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2687 esac
2688 $as_echo "$ac_var='\''$ac_val'\''"
2689 done | sort
2690 echo
2691 fi
2692
2693 if test -s confdefs.h; then
2694 $as_echo "## ----------- ##
2695 ## confdefs.h. ##
2696 ## ----------- ##"
2697 echo
2698 cat confdefs.h
2699 echo
2700 fi
2701 test "$ac_signal" != 0 &&
2702 $as_echo "$as_me: caught signal $ac_signal"
2703 $as_echo "$as_me: exit $exit_status"
2704 } >&5
2705 rm -f core *.core core.conftest.* &&
2706 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2707 exit $exit_status
2708 ' 0
2709 for ac_signal in 1 2 13 15; do
2710 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2711 done
2712 ac_signal=0
2713
2714 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2715 rm -f -r conftest* confdefs.h
2716
2717 $as_echo "/* confdefs.h */" > confdefs.h
2718
2719 # Predefined preprocessor variables.
2720
2721 cat >>confdefs.h <<_ACEOF
2722 #define PACKAGE_NAME "$PACKAGE_NAME"
2723 _ACEOF
2724
2725 cat >>confdefs.h <<_ACEOF
2726 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2727 _ACEOF
2728
2729 cat >>confdefs.h <<_ACEOF
2730 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2731 _ACEOF
2732
2733 cat >>confdefs.h <<_ACEOF
2734 #define PACKAGE_STRING "$PACKAGE_STRING"
2735 _ACEOF
2736
2737 cat >>confdefs.h <<_ACEOF
2738 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2739 _ACEOF
2740
2741 cat >>confdefs.h <<_ACEOF
2742 #define PACKAGE_URL "$PACKAGE_URL"
2743 _ACEOF
2744
2745
2746 # Let the site file select an alternate cache file if it wants to.
2747 # Prefer an explicitly selected file to automatically selected ones.
2748 ac_site_file1=NONE
2749 ac_site_file2=NONE
2750 if test -n "$CONFIG_SITE"; then
2751 # We do not want a PATH search for config.site.
2752 case $CONFIG_SITE in #((
2753 -*) ac_site_file1=./$CONFIG_SITE;;
2754 */*) ac_site_file1=$CONFIG_SITE;;
2755 *) ac_site_file1=./$CONFIG_SITE;;
2756 esac
2757 elif test "x$prefix" != xNONE; then
2758 ac_site_file1=$prefix/share/config.site
2759 ac_site_file2=$prefix/etc/config.site
2760 else
2761 ac_site_file1=$ac_default_prefix/share/config.site
2762 ac_site_file2=$ac_default_prefix/etc/config.site
2763 fi
2764 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2765 do
2766 test "x$ac_site_file" = xNONE && continue
2767 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2769 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2770 sed 's/^/| /' "$ac_site_file" >&5
2771 . "$ac_site_file" \
2772 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2773 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2774 as_fn_error $? "failed to load site script $ac_site_file
2775 See \`config.log' for more details" "$LINENO" 5; }
2776 fi
2777 done
2778
2779 if test -r "$cache_file"; then
2780 # Some versions of bash will fail to source /dev/null (special files
2781 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2782 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2784 $as_echo "$as_me: loading cache $cache_file" >&6;}
2785 case $cache_file in
2786 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2787 *) . "./$cache_file";;
2788 esac
2789 fi
2790 else
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2792 $as_echo "$as_me: creating cache $cache_file" >&6;}
2793 >$cache_file
2794 fi
2795
2796 as_fn_append ac_header_list " dlfcn.h"
2797 as_fn_append ac_header_list " fcntl.h"
2798 as_fn_append ac_header_list " fpu_control.h"
2799 as_fn_append ac_header_list " termios.h"
2800 as_fn_append ac_header_list " utime.h"
2801 as_fn_append ac_header_list " linux/if_tun.h"
2802 as_fn_append ac_header_list " linux/mii.h"
2803 as_fn_append ac_header_list " linux/types.h"
2804 as_fn_append ac_header_list " net/if.h"
2805 as_fn_append ac_header_list " netinet/in.h"
2806 as_fn_append ac_header_list " netinet/tcp.h"
2807 as_fn_append ac_header_list " sys/ioctl.h"
2808 as_fn_append ac_header_list " sys/mman.h"
2809 as_fn_append ac_header_list " sys/mount.h"
2810 as_fn_append ac_header_list " sys/param.h"
2811 as_fn_append ac_header_list " sys/resource.h"
2812 as_fn_append ac_header_list " sys/socket.h"
2813 as_fn_append ac_header_list " sys/statfs.h"
2814 as_fn_append ac_header_list " sys/termio.h"
2815 as_fn_append ac_header_list " sys/termios.h"
2816 as_fn_append ac_header_list " sys/types.h"
2817 as_fn_append ac_header_list " sys/vfs.h"
2818 as_fn_append ac_func_list " __setfpucw"
2819 as_fn_append ac_func_list " access"
2820 as_fn_append ac_func_list " aint"
2821 as_fn_append ac_func_list " anint"
2822 as_fn_append ac_func_list " cfgetispeed"
2823 as_fn_append ac_func_list " cfgetospeed"
2824 as_fn_append ac_func_list " cfsetispeed"
2825 as_fn_append ac_func_list " cfsetospeed"
2826 as_fn_append ac_func_list " chdir"
2827 as_fn_append ac_func_list " chmod"
2828 as_fn_append ac_func_list " dup"
2829 as_fn_append ac_func_list " dup2"
2830 as_fn_append ac_func_list " execv"
2831 as_fn_append ac_func_list " execve"
2832 as_fn_append ac_func_list " fcntl"
2833 as_fn_append ac_func_list " fork"
2834 as_fn_append ac_func_list " fstat"
2835 as_fn_append ac_func_list " fstatfs"
2836 as_fn_append ac_func_list " ftruncate"
2837 as_fn_append ac_func_list " getdirentries"
2838 as_fn_append ac_func_list " getegid"
2839 as_fn_append ac_func_list " geteuid"
2840 as_fn_append ac_func_list " getgid"
2841 as_fn_append ac_func_list " getpid"
2842 as_fn_append ac_func_list " getppid"
2843 as_fn_append ac_func_list " getrusage"
2844 as_fn_append ac_func_list " gettimeofday"
2845 as_fn_append ac_func_list " getuid"
2846 as_fn_append ac_func_list " ioctl"
2847 as_fn_append ac_func_list " kill"
2848 as_fn_append ac_func_list " link"
2849 as_fn_append ac_func_list " lseek"
2850 as_fn_append ac_func_list " lstat"
2851 as_fn_append ac_func_list " mkdir"
2852 as_fn_append ac_func_list " mmap"
2853 as_fn_append ac_func_list " munmap"
2854 as_fn_append ac_func_list " pipe"
2855 as_fn_append ac_func_list " posix_fallocate"
2856 as_fn_append ac_func_list " pread"
2857 as_fn_append ac_func_list " rmdir"
2858 as_fn_append ac_func_list " setregid"
2859 as_fn_append ac_func_list " setreuid"
2860 as_fn_append ac_func_list " setgid"
2861 as_fn_append ac_func_list " setuid"
2862 as_fn_append ac_func_list " sigaction"
2863 as_fn_append ac_func_list " sigprocmask"
2864 as_fn_append ac_func_list " sqrt"
2865 as_fn_append ac_func_list " stat"
2866 as_fn_append ac_func_list " strsignal"
2867 as_fn_append ac_func_list " symlink"
2868 as_fn_append ac_func_list " tcdrain"
2869 as_fn_append ac_func_list " tcflow"
2870 as_fn_append ac_func_list " tcflush"
2871 as_fn_append ac_func_list " tcgetattr"
2872 as_fn_append ac_func_list " tcgetpgrp"
2873 as_fn_append ac_func_list " tcsendbreak"
2874 as_fn_append ac_func_list " tcsetattr"
2875 as_fn_append ac_func_list " tcsetpgrp"
2876 as_fn_append ac_func_list " time"
2877 as_fn_append ac_func_list " truncate"
2878 as_fn_append ac_func_list " umask"
2879 as_fn_append ac_func_list " unlink"
2880 as_fn_append ac_func_list " utime"
2881 # Check that the precious variables saved in the cache have kept the same
2882 # value.
2883 ac_cache_corrupted=false
2884 for ac_var in $ac_precious_vars; do
2885 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2886 eval ac_new_set=\$ac_env_${ac_var}_set
2887 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2888 eval ac_new_val=\$ac_env_${ac_var}_value
2889 case $ac_old_set,$ac_new_set in
2890 set,)
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2892 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2893 ac_cache_corrupted=: ;;
2894 ,set)
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2896 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2897 ac_cache_corrupted=: ;;
2898 ,);;
2899 *)
2900 if test "x$ac_old_val" != "x$ac_new_val"; then
2901 # differences in whitespace do not lead to failure.
2902 ac_old_val_w=`echo x $ac_old_val`
2903 ac_new_val_w=`echo x $ac_new_val`
2904 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2906 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2907 ac_cache_corrupted=:
2908 else
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2910 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2911 eval $ac_var=\$ac_old_val
2912 fi
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2914 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2916 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2917 fi;;
2918 esac
2919 # Pass precious variables to config.status.
2920 if test "$ac_new_set" = set; then
2921 case $ac_new_val in
2922 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2923 *) ac_arg=$ac_var=$ac_new_val ;;
2924 esac
2925 case " $ac_configure_args " in
2926 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2927 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2928 esac
2929 fi
2930 done
2931 if $ac_cache_corrupted; then
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2935 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2936 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2937 fi
2938 ## -------------------- ##
2939 ## Main body of script. ##
2940 ## -------------------- ##
2941
2942 ac_ext=c
2943 ac_cpp='$CPP $CPPFLAGS'
2944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2947
2948
2949
2950
2951
2952
2953
2954
2955 # Check whether --with-pkgversion was given.
2956 if test "${with_pkgversion+set}" = set; then :
2957 withval=$with_pkgversion; case "$withval" in
2958 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
2959 no) PKGVERSION= ;;
2960 *) PKGVERSION="($withval) " ;;
2961 esac
2962 else
2963 PKGVERSION="(SIM) "
2964
2965 fi
2966
2967
2968
2969
2970 cat >>confdefs.h <<_ACEOF
2971 #define PKGVERSION "$PKGVERSION"
2972 _ACEOF
2973
2974
2975
2976 # Check whether --with-bugurl was given.
2977 if test "${with_bugurl+set}" = set; then :
2978 withval=$with_bugurl; case "$withval" in
2979 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
2980 no) BUGURL=
2981 ;;
2982 *) BUGURL="$withval"
2983 ;;
2984 esac
2985 else
2986 BUGURL="$PACKAGE_BUGREPORT"
2987
2988 fi
2989
2990 case ${BUGURL} in
2991 "")
2992 REPORT_BUGS_TO=
2993 REPORT_BUGS_TEXI=
2994 ;;
2995 *)
2996 REPORT_BUGS_TO="<$BUGURL>"
2997 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
2998 ;;
2999 esac;
3000
3001
3002
3003
3004 cat >>confdefs.h <<_ACEOF
3005 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
3006 _ACEOF
3007
3008
3009 ac_config_headers="$ac_config_headers config.h"
3010
3011
3012 ac_aux_dir=
3013 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3014 if test -f "$ac_dir/install-sh"; then
3015 ac_aux_dir=$ac_dir
3016 ac_install_sh="$ac_aux_dir/install-sh -c"
3017 break
3018 elif test -f "$ac_dir/install.sh"; then
3019 ac_aux_dir=$ac_dir
3020 ac_install_sh="$ac_aux_dir/install.sh -c"
3021 break
3022 elif test -f "$ac_dir/shtool"; then
3023 ac_aux_dir=$ac_dir
3024 ac_install_sh="$ac_aux_dir/shtool install -c"
3025 break
3026 fi
3027 done
3028 if test -z "$ac_aux_dir"; then
3029 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3030 fi
3031
3032 # These three variables are undocumented and unsupported,
3033 # and are intended to be withdrawn in a future Autoconf release.
3034 # They can cause serious problems if a builder's source tree is in a directory
3035 # whose full name contains unusual characters.
3036 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3037 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3038 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3039
3040
3041 # Make sure we can run config.sub.
3042 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3043 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3044
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3046 $as_echo_n "checking build system type... " >&6; }
3047 if ${ac_cv_build+:} false; then :
3048 $as_echo_n "(cached) " >&6
3049 else
3050 ac_build_alias=$build_alias
3051 test "x$ac_build_alias" = x &&
3052 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3053 test "x$ac_build_alias" = x &&
3054 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3055 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3056 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3057
3058 fi
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3060 $as_echo "$ac_cv_build" >&6; }
3061 case $ac_cv_build in
3062 *-*-*) ;;
3063 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3064 esac
3065 build=$ac_cv_build
3066 ac_save_IFS=$IFS; IFS='-'
3067 set x $ac_cv_build
3068 shift
3069 build_cpu=$1
3070 build_vendor=$2
3071 shift; shift
3072 # Remember, the first character of IFS is used to create $*,
3073 # except with old shells:
3074 build_os=$*
3075 IFS=$ac_save_IFS
3076 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3077
3078
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3080 $as_echo_n "checking host system type... " >&6; }
3081 if ${ac_cv_host+:} false; then :
3082 $as_echo_n "(cached) " >&6
3083 else
3084 if test "x$host_alias" = x; then
3085 ac_cv_host=$ac_cv_build
3086 else
3087 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3088 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3089 fi
3090
3091 fi
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3093 $as_echo "$ac_cv_host" >&6; }
3094 case $ac_cv_host in
3095 *-*-*) ;;
3096 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3097 esac
3098 host=$ac_cv_host
3099 ac_save_IFS=$IFS; IFS='-'
3100 set x $ac_cv_host
3101 shift
3102 host_cpu=$1
3103 host_vendor=$2
3104 shift; shift
3105 # Remember, the first character of IFS is used to create $*,
3106 # except with old shells:
3107 host_os=$*
3108 IFS=$ac_save_IFS
3109 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3110
3111
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3113 $as_echo_n "checking target system type... " >&6; }
3114 if ${ac_cv_target+:} false; then :
3115 $as_echo_n "(cached) " >&6
3116 else
3117 if test "x$target_alias" = x; then
3118 ac_cv_target=$ac_cv_host
3119 else
3120 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3121 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3122 fi
3123
3124 fi
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3126 $as_echo "$ac_cv_target" >&6; }
3127 case $ac_cv_target in
3128 *-*-*) ;;
3129 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3130 esac
3131 target=$ac_cv_target
3132 ac_save_IFS=$IFS; IFS='-'
3133 set x $ac_cv_target
3134 shift
3135 target_cpu=$1
3136 target_vendor=$2
3137 shift; shift
3138 # Remember, the first character of IFS is used to create $*,
3139 # except with old shells:
3140 target_os=$*
3141 IFS=$ac_save_IFS
3142 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3143
3144
3145 # The aliases save the names the user supplied, while $host etc.
3146 # will get canonicalized.
3147 test -n "$target_alias" &&
3148 test "$program_prefix$program_suffix$program_transform_name" = \
3149 NONENONEs,x,x, &&
3150 program_prefix=${target_alias}-
3151 # Expand $ac_aux_dir to an absolute path.
3152 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3153
3154 ac_ext=c
3155 ac_cpp='$CPP $CPPFLAGS'
3156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3159 if test -n "$ac_tool_prefix"; then
3160 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3161 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3163 $as_echo_n "checking for $ac_word... " >&6; }
3164 if ${ac_cv_prog_CC+:} false; then :
3165 $as_echo_n "(cached) " >&6
3166 else
3167 if test -n "$CC"; then
3168 ac_cv_prog_CC="$CC" # Let the user override the test.
3169 else
3170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171 for as_dir in $PATH
3172 do
3173 IFS=$as_save_IFS
3174 test -z "$as_dir" && as_dir=.
3175 for ac_exec_ext in '' $ac_executable_extensions; do
3176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3177 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3179 break 2
3180 fi
3181 done
3182 done
3183 IFS=$as_save_IFS
3184
3185 fi
3186 fi
3187 CC=$ac_cv_prog_CC
3188 if test -n "$CC"; then
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3190 $as_echo "$CC" >&6; }
3191 else
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3193 $as_echo "no" >&6; }
3194 fi
3195
3196
3197 fi
3198 if test -z "$ac_cv_prog_CC"; then
3199 ac_ct_CC=$CC
3200 # Extract the first word of "gcc", so it can be a program name with args.
3201 set dummy gcc; ac_word=$2
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3203 $as_echo_n "checking for $ac_word... " >&6; }
3204 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3205 $as_echo_n "(cached) " >&6
3206 else
3207 if test -n "$ac_ct_CC"; then
3208 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3209 else
3210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211 for as_dir in $PATH
3212 do
3213 IFS=$as_save_IFS
3214 test -z "$as_dir" && as_dir=.
3215 for ac_exec_ext in '' $ac_executable_extensions; do
3216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3217 ac_cv_prog_ac_ct_CC="gcc"
3218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3219 break 2
3220 fi
3221 done
3222 done
3223 IFS=$as_save_IFS
3224
3225 fi
3226 fi
3227 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3228 if test -n "$ac_ct_CC"; then
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3230 $as_echo "$ac_ct_CC" >&6; }
3231 else
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3233 $as_echo "no" >&6; }
3234 fi
3235
3236 if test "x$ac_ct_CC" = x; then
3237 CC=""
3238 else
3239 case $cross_compiling:$ac_tool_warned in
3240 yes:)
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3243 ac_tool_warned=yes ;;
3244 esac
3245 CC=$ac_ct_CC
3246 fi
3247 else
3248 CC="$ac_cv_prog_CC"
3249 fi
3250
3251 if test -z "$CC"; then
3252 if test -n "$ac_tool_prefix"; then
3253 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3254 set dummy ${ac_tool_prefix}cc; ac_word=$2
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3256 $as_echo_n "checking for $ac_word... " >&6; }
3257 if ${ac_cv_prog_CC+:} false; then :
3258 $as_echo_n "(cached) " >&6
3259 else
3260 if test -n "$CC"; then
3261 ac_cv_prog_CC="$CC" # Let the user override the test.
3262 else
3263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3264 for as_dir in $PATH
3265 do
3266 IFS=$as_save_IFS
3267 test -z "$as_dir" && as_dir=.
3268 for ac_exec_ext in '' $ac_executable_extensions; do
3269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3270 ac_cv_prog_CC="${ac_tool_prefix}cc"
3271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3272 break 2
3273 fi
3274 done
3275 done
3276 IFS=$as_save_IFS
3277
3278 fi
3279 fi
3280 CC=$ac_cv_prog_CC
3281 if test -n "$CC"; then
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3283 $as_echo "$CC" >&6; }
3284 else
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3286 $as_echo "no" >&6; }
3287 fi
3288
3289
3290 fi
3291 fi
3292 if test -z "$CC"; then
3293 # Extract the first word of "cc", so it can be a program name with args.
3294 set dummy cc; ac_word=$2
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3296 $as_echo_n "checking for $ac_word... " >&6; }
3297 if ${ac_cv_prog_CC+:} false; then :
3298 $as_echo_n "(cached) " >&6
3299 else
3300 if test -n "$CC"; then
3301 ac_cv_prog_CC="$CC" # Let the user override the test.
3302 else
3303 ac_prog_rejected=no
3304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3305 for as_dir in $PATH
3306 do
3307 IFS=$as_save_IFS
3308 test -z "$as_dir" && as_dir=.
3309 for ac_exec_ext in '' $ac_executable_extensions; do
3310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3311 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3312 ac_prog_rejected=yes
3313 continue
3314 fi
3315 ac_cv_prog_CC="cc"
3316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3317 break 2
3318 fi
3319 done
3320 done
3321 IFS=$as_save_IFS
3322
3323 if test $ac_prog_rejected = yes; then
3324 # We found a bogon in the path, so make sure we never use it.
3325 set dummy $ac_cv_prog_CC
3326 shift
3327 if test $# != 0; then
3328 # We chose a different compiler from the bogus one.
3329 # However, it has the same basename, so the bogon will be chosen
3330 # first if we set CC to just the basename; use the full file name.
3331 shift
3332 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3333 fi
3334 fi
3335 fi
3336 fi
3337 CC=$ac_cv_prog_CC
3338 if test -n "$CC"; then
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3340 $as_echo "$CC" >&6; }
3341 else
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3343 $as_echo "no" >&6; }
3344 fi
3345
3346
3347 fi
3348 if test -z "$CC"; then
3349 if test -n "$ac_tool_prefix"; then
3350 for ac_prog in cl.exe
3351 do
3352 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3353 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3355 $as_echo_n "checking for $ac_word... " >&6; }
3356 if ${ac_cv_prog_CC+:} false; then :
3357 $as_echo_n "(cached) " >&6
3358 else
3359 if test -n "$CC"; then
3360 ac_cv_prog_CC="$CC" # Let the user override the test.
3361 else
3362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363 for as_dir in $PATH
3364 do
3365 IFS=$as_save_IFS
3366 test -z "$as_dir" && as_dir=.
3367 for ac_exec_ext in '' $ac_executable_extensions; do
3368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3369 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3371 break 2
3372 fi
3373 done
3374 done
3375 IFS=$as_save_IFS
3376
3377 fi
3378 fi
3379 CC=$ac_cv_prog_CC
3380 if test -n "$CC"; then
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3382 $as_echo "$CC" >&6; }
3383 else
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3385 $as_echo "no" >&6; }
3386 fi
3387
3388
3389 test -n "$CC" && break
3390 done
3391 fi
3392 if test -z "$CC"; then
3393 ac_ct_CC=$CC
3394 for ac_prog in cl.exe
3395 do
3396 # Extract the first word of "$ac_prog", so it can be a program name with args.
3397 set dummy $ac_prog; ac_word=$2
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3399 $as_echo_n "checking for $ac_word... " >&6; }
3400 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3401 $as_echo_n "(cached) " >&6
3402 else
3403 if test -n "$ac_ct_CC"; then
3404 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3405 else
3406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3407 for as_dir in $PATH
3408 do
3409 IFS=$as_save_IFS
3410 test -z "$as_dir" && as_dir=.
3411 for ac_exec_ext in '' $ac_executable_extensions; do
3412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3413 ac_cv_prog_ac_ct_CC="$ac_prog"
3414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3415 break 2
3416 fi
3417 done
3418 done
3419 IFS=$as_save_IFS
3420
3421 fi
3422 fi
3423 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3424 if test -n "$ac_ct_CC"; then
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3426 $as_echo "$ac_ct_CC" >&6; }
3427 else
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3429 $as_echo "no" >&6; }
3430 fi
3431
3432
3433 test -n "$ac_ct_CC" && break
3434 done
3435
3436 if test "x$ac_ct_CC" = x; then
3437 CC=""
3438 else
3439 case $cross_compiling:$ac_tool_warned in
3440 yes:)
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3442 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3443 ac_tool_warned=yes ;;
3444 esac
3445 CC=$ac_ct_CC
3446 fi
3447 fi
3448
3449 fi
3450
3451
3452 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3454 as_fn_error $? "no acceptable C compiler found in \$PATH
3455 See \`config.log' for more details" "$LINENO" 5; }
3456
3457 # Provide some information about the compiler.
3458 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3459 set X $ac_compile
3460 ac_compiler=$2
3461 for ac_option in --version -v -V -qversion; do
3462 { { ac_try="$ac_compiler $ac_option >&5"
3463 case "(($ac_try" in
3464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3465 *) ac_try_echo=$ac_try;;
3466 esac
3467 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3468 $as_echo "$ac_try_echo"; } >&5
3469 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3470 ac_status=$?
3471 if test -s conftest.err; then
3472 sed '10a\
3473 ... rest of stderr output deleted ...
3474 10q' conftest.err >conftest.er1
3475 cat conftest.er1 >&5
3476 fi
3477 rm -f conftest.er1 conftest.err
3478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3479 test $ac_status = 0; }
3480 done
3481
3482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3483 /* end confdefs.h. */
3484
3485 int
3486 main ()
3487 {
3488
3489 ;
3490 return 0;
3491 }
3492 _ACEOF
3493 ac_clean_files_save=$ac_clean_files
3494 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3495 # Try to create an executable without -o first, disregard a.out.
3496 # It will help us diagnose broken compilers, and finding out an intuition
3497 # of exeext.
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3499 $as_echo_n "checking whether the C compiler works... " >&6; }
3500 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3501
3502 # The possible output files:
3503 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3504
3505 ac_rmfiles=
3506 for ac_file in $ac_files
3507 do
3508 case $ac_file in
3509 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3510 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3511 esac
3512 done
3513 rm -f $ac_rmfiles
3514
3515 if { { ac_try="$ac_link_default"
3516 case "(($ac_try" in
3517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518 *) ac_try_echo=$ac_try;;
3519 esac
3520 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3521 $as_echo "$ac_try_echo"; } >&5
3522 (eval "$ac_link_default") 2>&5
3523 ac_status=$?
3524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3525 test $ac_status = 0; }; then :
3526 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3527 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3528 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3529 # so that the user can short-circuit this test for compilers unknown to
3530 # Autoconf.
3531 for ac_file in $ac_files ''
3532 do
3533 test -f "$ac_file" || continue
3534 case $ac_file in
3535 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3536 ;;
3537 [ab].out )
3538 # We found the default executable, but exeext='' is most
3539 # certainly right.
3540 break;;
3541 *.* )
3542 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3543 then :; else
3544 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3545 fi
3546 # We set ac_cv_exeext here because the later test for it is not
3547 # safe: cross compilers may not add the suffix if given an `-o'
3548 # argument, so we may need to know it at that point already.
3549 # Even if this section looks crufty: it has the advantage of
3550 # actually working.
3551 break;;
3552 * )
3553 break;;
3554 esac
3555 done
3556 test "$ac_cv_exeext" = no && ac_cv_exeext=
3557
3558 else
3559 ac_file=''
3560 fi
3561 if test -z "$ac_file"; then :
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3563 $as_echo "no" >&6; }
3564 $as_echo "$as_me: failed program was:" >&5
3565 sed 's/^/| /' conftest.$ac_ext >&5
3566
3567 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3568 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3569 as_fn_error 77 "C compiler cannot create executables
3570 See \`config.log' for more details" "$LINENO" 5; }
3571 else
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3573 $as_echo "yes" >&6; }
3574 fi
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3576 $as_echo_n "checking for C compiler default output file name... " >&6; }
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3578 $as_echo "$ac_file" >&6; }
3579 ac_exeext=$ac_cv_exeext
3580
3581 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3582 ac_clean_files=$ac_clean_files_save
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3584 $as_echo_n "checking for suffix of executables... " >&6; }
3585 if { { ac_try="$ac_link"
3586 case "(($ac_try" in
3587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3588 *) ac_try_echo=$ac_try;;
3589 esac
3590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3591 $as_echo "$ac_try_echo"; } >&5
3592 (eval "$ac_link") 2>&5
3593 ac_status=$?
3594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3595 test $ac_status = 0; }; then :
3596 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3597 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3598 # work properly (i.e., refer to `conftest.exe'), while it won't with
3599 # `rm'.
3600 for ac_file in conftest.exe conftest conftest.*; do
3601 test -f "$ac_file" || continue
3602 case $ac_file in
3603 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3604 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3605 break;;
3606 * ) break;;
3607 esac
3608 done
3609 else
3610 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3611 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3612 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3613 See \`config.log' for more details" "$LINENO" 5; }
3614 fi
3615 rm -f conftest conftest$ac_cv_exeext
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3617 $as_echo "$ac_cv_exeext" >&6; }
3618
3619 rm -f conftest.$ac_ext
3620 EXEEXT=$ac_cv_exeext
3621 ac_exeext=$EXEEXT
3622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3623 /* end confdefs.h. */
3624 #include <stdio.h>
3625 int
3626 main ()
3627 {
3628 FILE *f = fopen ("conftest.out", "w");
3629 return ferror (f) || fclose (f) != 0;
3630
3631 ;
3632 return 0;
3633 }
3634 _ACEOF
3635 ac_clean_files="$ac_clean_files conftest.out"
3636 # Check that the compiler produces executables we can run. If not, either
3637 # the compiler is broken, or we cross compile.
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3639 $as_echo_n "checking whether we are cross compiling... " >&6; }
3640 if test "$cross_compiling" != yes; then
3641 { { ac_try="$ac_link"
3642 case "(($ac_try" in
3643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3644 *) ac_try_echo=$ac_try;;
3645 esac
3646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3647 $as_echo "$ac_try_echo"; } >&5
3648 (eval "$ac_link") 2>&5
3649 ac_status=$?
3650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3651 test $ac_status = 0; }
3652 if { ac_try='./conftest$ac_cv_exeext'
3653 { { case "(($ac_try" in
3654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3655 *) ac_try_echo=$ac_try;;
3656 esac
3657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3658 $as_echo "$ac_try_echo"; } >&5
3659 (eval "$ac_try") 2>&5
3660 ac_status=$?
3661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3662 test $ac_status = 0; }; }; then
3663 cross_compiling=no
3664 else
3665 if test "$cross_compiling" = maybe; then
3666 cross_compiling=yes
3667 else
3668 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3670 as_fn_error $? "cannot run C compiled programs.
3671 If you meant to cross compile, use \`--host'.
3672 See \`config.log' for more details" "$LINENO" 5; }
3673 fi
3674 fi
3675 fi
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3677 $as_echo "$cross_compiling" >&6; }
3678
3679 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3680 ac_clean_files=$ac_clean_files_save
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3682 $as_echo_n "checking for suffix of object files... " >&6; }
3683 if ${ac_cv_objext+:} false; then :
3684 $as_echo_n "(cached) " >&6
3685 else
3686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3687 /* end confdefs.h. */
3688
3689 int
3690 main ()
3691 {
3692
3693 ;
3694 return 0;
3695 }
3696 _ACEOF
3697 rm -f conftest.o conftest.obj
3698 if { { ac_try="$ac_compile"
3699 case "(($ac_try" in
3700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701 *) ac_try_echo=$ac_try;;
3702 esac
3703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3704 $as_echo "$ac_try_echo"; } >&5
3705 (eval "$ac_compile") 2>&5
3706 ac_status=$?
3707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3708 test $ac_status = 0; }; then :
3709 for ac_file in conftest.o conftest.obj conftest.*; do
3710 test -f "$ac_file" || continue;
3711 case $ac_file in
3712 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3713 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3714 break;;
3715 esac
3716 done
3717 else
3718 $as_echo "$as_me: failed program was:" >&5
3719 sed 's/^/| /' conftest.$ac_ext >&5
3720
3721 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3723 as_fn_error $? "cannot compute suffix of object files: cannot compile
3724 See \`config.log' for more details" "$LINENO" 5; }
3725 fi
3726 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3727 fi
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3729 $as_echo "$ac_cv_objext" >&6; }
3730 OBJEXT=$ac_cv_objext
3731 ac_objext=$OBJEXT
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3733 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3734 if ${ac_cv_c_compiler_gnu+:} false; then :
3735 $as_echo_n "(cached) " >&6
3736 else
3737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3738 /* end confdefs.h. */
3739
3740 int
3741 main ()
3742 {
3743 #ifndef __GNUC__
3744 choke me
3745 #endif
3746
3747 ;
3748 return 0;
3749 }
3750 _ACEOF
3751 if ac_fn_c_try_compile "$LINENO"; then :
3752 ac_compiler_gnu=yes
3753 else
3754 ac_compiler_gnu=no
3755 fi
3756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3757 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3758
3759 fi
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3761 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3762 if test $ac_compiler_gnu = yes; then
3763 GCC=yes
3764 else
3765 GCC=
3766 fi
3767 ac_test_CFLAGS=${CFLAGS+set}
3768 ac_save_CFLAGS=$CFLAGS
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3770 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3771 if ${ac_cv_prog_cc_g+:} false; then :
3772 $as_echo_n "(cached) " >&6
3773 else
3774 ac_save_c_werror_flag=$ac_c_werror_flag
3775 ac_c_werror_flag=yes
3776 ac_cv_prog_cc_g=no
3777 CFLAGS="-g"
3778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3779 /* end confdefs.h. */
3780
3781 int
3782 main ()
3783 {
3784
3785 ;
3786 return 0;
3787 }
3788 _ACEOF
3789 if ac_fn_c_try_compile "$LINENO"; then :
3790 ac_cv_prog_cc_g=yes
3791 else
3792 CFLAGS=""
3793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3794 /* end confdefs.h. */
3795
3796 int
3797 main ()
3798 {
3799
3800 ;
3801 return 0;
3802 }
3803 _ACEOF
3804 if ac_fn_c_try_compile "$LINENO"; then :
3805
3806 else
3807 ac_c_werror_flag=$ac_save_c_werror_flag
3808 CFLAGS="-g"
3809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3810 /* end confdefs.h. */
3811
3812 int
3813 main ()
3814 {
3815
3816 ;
3817 return 0;
3818 }
3819 _ACEOF
3820 if ac_fn_c_try_compile "$LINENO"; then :
3821 ac_cv_prog_cc_g=yes
3822 fi
3823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3824 fi
3825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3826 fi
3827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3828 ac_c_werror_flag=$ac_save_c_werror_flag
3829 fi
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3831 $as_echo "$ac_cv_prog_cc_g" >&6; }
3832 if test "$ac_test_CFLAGS" = set; then
3833 CFLAGS=$ac_save_CFLAGS
3834 elif test $ac_cv_prog_cc_g = yes; then
3835 if test "$GCC" = yes; then
3836 CFLAGS="-g -O2"
3837 else
3838 CFLAGS="-g"
3839 fi
3840 else
3841 if test "$GCC" = yes; then
3842 CFLAGS="-O2"
3843 else
3844 CFLAGS=
3845 fi
3846 fi
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3848 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3849 if ${ac_cv_prog_cc_c89+:} false; then :
3850 $as_echo_n "(cached) " >&6
3851 else
3852 ac_cv_prog_cc_c89=no
3853 ac_save_CC=$CC
3854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3855 /* end confdefs.h. */
3856 #include <stdarg.h>
3857 #include <stdio.h>
3858 struct stat;
3859 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3860 struct buf { int x; };
3861 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3862 static char *e (p, i)
3863 char **p;
3864 int i;
3865 {
3866 return p[i];
3867 }
3868 static char *f (char * (*g) (char **, int), char **p, ...)
3869 {
3870 char *s;
3871 va_list v;
3872 va_start (v,p);
3873 s = g (p, va_arg (v,int));
3874 va_end (v);
3875 return s;
3876 }
3877
3878 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3879 function prototypes and stuff, but not '\xHH' hex character constants.
3880 These don't provoke an error unfortunately, instead are silently treated
3881 as 'x'. The following induces an error, until -std is added to get
3882 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3883 array size at least. It's necessary to write '\x00'==0 to get something
3884 that's true only with -std. */
3885 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3886
3887 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3888 inside strings and character constants. */
3889 #define FOO(x) 'x'
3890 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3891
3892 int test (int i, double x);
3893 struct s1 {int (*f) (int a);};
3894 struct s2 {int (*f) (double a);};
3895 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3896 int argc;
3897 char **argv;
3898 int
3899 main ()
3900 {
3901 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3902 ;
3903 return 0;
3904 }
3905 _ACEOF
3906 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3907 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3908 do
3909 CC="$ac_save_CC $ac_arg"
3910 if ac_fn_c_try_compile "$LINENO"; then :
3911 ac_cv_prog_cc_c89=$ac_arg
3912 fi
3913 rm -f core conftest.err conftest.$ac_objext
3914 test "x$ac_cv_prog_cc_c89" != "xno" && break
3915 done
3916 rm -f conftest.$ac_ext
3917 CC=$ac_save_CC
3918
3919 fi
3920 # AC_CACHE_VAL
3921 case "x$ac_cv_prog_cc_c89" in
3922 x)
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3924 $as_echo "none needed" >&6; } ;;
3925 xno)
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3927 $as_echo "unsupported" >&6; } ;;
3928 *)
3929 CC="$CC $ac_cv_prog_cc_c89"
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3931 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3932 esac
3933 if test "x$ac_cv_prog_cc_c89" != xno; then :
3934
3935 fi
3936
3937 ac_ext=c
3938 ac_cpp='$CPP $CPPFLAGS'
3939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3942
3943 ac_ext=c
3944 ac_cpp='$CPP $CPPFLAGS'
3945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3949 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3950 if ${am_cv_prog_cc_c_o+:} false; then :
3951 $as_echo_n "(cached) " >&6
3952 else
3953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h. */
3955
3956 int
3957 main ()
3958 {
3959
3960 ;
3961 return 0;
3962 }
3963 _ACEOF
3964 # Make sure it works both with $CC and with simple cc.
3965 # Following AC_PROG_CC_C_O, we do the test twice because some
3966 # compilers refuse to overwrite an existing .o file with -o,
3967 # though they will create one.
3968 am_cv_prog_cc_c_o=yes
3969 for am_i in 1 2; do
3970 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3971 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3972 ac_status=$?
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); } \
3975 && test -f conftest2.$ac_objext; then
3976 : OK
3977 else
3978 am_cv_prog_cc_c_o=no
3979 break
3980 fi
3981 done
3982 rm -f core conftest*
3983 unset am_i
3984 fi
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3986 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3987 if test "$am_cv_prog_cc_c_o" != yes; then
3988 # Losing compiler, so override with the script.
3989 # FIXME: It is wrong to rewrite CC.
3990 # But if we don't then we get into trouble of one sort or another.
3991 # A longer-term fix would be to have automake use am__CC in this case,
3992 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3993 CC="$am_aux_dir/compile $CC"
3994 fi
3995 ac_ext=c
3996 ac_cpp='$CPP $CPPFLAGS'
3997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4000
4001
4002 ac_ext=c
4003 ac_cpp='$CPP $CPPFLAGS'
4004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4008 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4009 # On Suns, sometimes $CPP names a directory.
4010 if test -n "$CPP" && test -d "$CPP"; then
4011 CPP=
4012 fi
4013 if test -z "$CPP"; then
4014 if ${ac_cv_prog_CPP+:} false; then :
4015 $as_echo_n "(cached) " >&6
4016 else
4017 # Double quotes because CPP needs to be expanded
4018 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4019 do
4020 ac_preproc_ok=false
4021 for ac_c_preproc_warn_flag in '' yes
4022 do
4023 # Use a header file that comes with gcc, so configuring glibc
4024 # with a fresh cross-compiler works.
4025 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4026 # <limits.h> exists even on freestanding compilers.
4027 # On the NeXT, cc -E runs the code through the compiler's parser,
4028 # not just through cpp. "Syntax error" is here to catch this case.
4029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4030 /* end confdefs.h. */
4031 #ifdef __STDC__
4032 # include <limits.h>
4033 #else
4034 # include <assert.h>
4035 #endif
4036 Syntax error
4037 _ACEOF
4038 if ac_fn_c_try_cpp "$LINENO"; then :
4039
4040 else
4041 # Broken: fails on valid input.
4042 continue
4043 fi
4044 rm -f conftest.err conftest.i conftest.$ac_ext
4045
4046 # OK, works on sane cases. Now check whether nonexistent headers
4047 # can be detected and how.
4048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4049 /* end confdefs.h. */
4050 #include <ac_nonexistent.h>
4051 _ACEOF
4052 if ac_fn_c_try_cpp "$LINENO"; then :
4053 # Broken: success on invalid input.
4054 continue
4055 else
4056 # Passes both tests.
4057 ac_preproc_ok=:
4058 break
4059 fi
4060 rm -f conftest.err conftest.i conftest.$ac_ext
4061
4062 done
4063 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4064 rm -f conftest.i conftest.err conftest.$ac_ext
4065 if $ac_preproc_ok; then :
4066 break
4067 fi
4068
4069 done
4070 ac_cv_prog_CPP=$CPP
4071
4072 fi
4073 CPP=$ac_cv_prog_CPP
4074 else
4075 ac_cv_prog_CPP=$CPP
4076 fi
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4078 $as_echo "$CPP" >&6; }
4079 ac_preproc_ok=false
4080 for ac_c_preproc_warn_flag in '' yes
4081 do
4082 # Use a header file that comes with gcc, so configuring glibc
4083 # with a fresh cross-compiler works.
4084 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4085 # <limits.h> exists even on freestanding compilers.
4086 # On the NeXT, cc -E runs the code through the compiler's parser,
4087 # not just through cpp. "Syntax error" is here to catch this case.
4088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089 /* end confdefs.h. */
4090 #ifdef __STDC__
4091 # include <limits.h>
4092 #else
4093 # include <assert.h>
4094 #endif
4095 Syntax error
4096 _ACEOF
4097 if ac_fn_c_try_cpp "$LINENO"; then :
4098
4099 else
4100 # Broken: fails on valid input.
4101 continue
4102 fi
4103 rm -f conftest.err conftest.i conftest.$ac_ext
4104
4105 # OK, works on sane cases. Now check whether nonexistent headers
4106 # can be detected and how.
4107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4108 /* end confdefs.h. */
4109 #include <ac_nonexistent.h>
4110 _ACEOF
4111 if ac_fn_c_try_cpp "$LINENO"; then :
4112 # Broken: success on invalid input.
4113 continue
4114 else
4115 # Passes both tests.
4116 ac_preproc_ok=:
4117 break
4118 fi
4119 rm -f conftest.err conftest.i conftest.$ac_ext
4120
4121 done
4122 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4123 rm -f conftest.i conftest.err conftest.$ac_ext
4124 if $ac_preproc_ok; then :
4125
4126 else
4127 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4129 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4130 See \`config.log' for more details" "$LINENO" 5; }
4131 fi
4132
4133 ac_ext=c
4134 ac_cpp='$CPP $CPPFLAGS'
4135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4138
4139
4140
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4142 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4143 if ${ac_cv_path_GREP+:} false; then :
4144 $as_echo_n "(cached) " >&6
4145 else
4146 if test -z "$GREP"; then
4147 ac_path_GREP_found=false
4148 # Loop through the user's path and test for each of PROGNAME-LIST
4149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4151 do
4152 IFS=$as_save_IFS
4153 test -z "$as_dir" && as_dir=.
4154 for ac_prog in grep ggrep; do
4155 for ac_exec_ext in '' $ac_executable_extensions; do
4156 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4157 as_fn_executable_p "$ac_path_GREP" || continue
4158 # Check for GNU ac_path_GREP and select it if it is found.
4159 # Check for GNU $ac_path_GREP
4160 case `"$ac_path_GREP" --version 2>&1` in
4161 *GNU*)
4162 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4163 *)
4164 ac_count=0
4165 $as_echo_n 0123456789 >"conftest.in"
4166 while :
4167 do
4168 cat "conftest.in" "conftest.in" >"conftest.tmp"
4169 mv "conftest.tmp" "conftest.in"
4170 cp "conftest.in" "conftest.nl"
4171 $as_echo 'GREP' >> "conftest.nl"
4172 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4173 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4174 as_fn_arith $ac_count + 1 && ac_count=$as_val
4175 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4176 # Best one so far, save it but keep looking for a better one
4177 ac_cv_path_GREP="$ac_path_GREP"
4178 ac_path_GREP_max=$ac_count
4179 fi
4180 # 10*(2^10) chars as input seems more than enough
4181 test $ac_count -gt 10 && break
4182 done
4183 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4184 esac
4185
4186 $ac_path_GREP_found && break 3
4187 done
4188 done
4189 done
4190 IFS=$as_save_IFS
4191 if test -z "$ac_cv_path_GREP"; then
4192 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4193 fi
4194 else
4195 ac_cv_path_GREP=$GREP
4196 fi
4197
4198 fi
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4200 $as_echo "$ac_cv_path_GREP" >&6; }
4201 GREP="$ac_cv_path_GREP"
4202
4203
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4205 $as_echo_n "checking for egrep... " >&6; }
4206 if ${ac_cv_path_EGREP+:} false; then :
4207 $as_echo_n "(cached) " >&6
4208 else
4209 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4210 then ac_cv_path_EGREP="$GREP -E"
4211 else
4212 if test -z "$EGREP"; then
4213 ac_path_EGREP_found=false
4214 # Loop through the user's path and test for each of PROGNAME-LIST
4215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4217 do
4218 IFS=$as_save_IFS
4219 test -z "$as_dir" && as_dir=.
4220 for ac_prog in egrep; do
4221 for ac_exec_ext in '' $ac_executable_extensions; do
4222 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4223 as_fn_executable_p "$ac_path_EGREP" || continue
4224 # Check for GNU ac_path_EGREP and select it if it is found.
4225 # Check for GNU $ac_path_EGREP
4226 case `"$ac_path_EGREP" --version 2>&1` in
4227 *GNU*)
4228 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4229 *)
4230 ac_count=0
4231 $as_echo_n 0123456789 >"conftest.in"
4232 while :
4233 do
4234 cat "conftest.in" "conftest.in" >"conftest.tmp"
4235 mv "conftest.tmp" "conftest.in"
4236 cp "conftest.in" "conftest.nl"
4237 $as_echo 'EGREP' >> "conftest.nl"
4238 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4239 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4240 as_fn_arith $ac_count + 1 && ac_count=$as_val
4241 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4242 # Best one so far, save it but keep looking for a better one
4243 ac_cv_path_EGREP="$ac_path_EGREP"
4244 ac_path_EGREP_max=$ac_count
4245 fi
4246 # 10*(2^10) chars as input seems more than enough
4247 test $ac_count -gt 10 && break
4248 done
4249 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4250 esac
4251
4252 $ac_path_EGREP_found && break 3
4253 done
4254 done
4255 done
4256 IFS=$as_save_IFS
4257 if test -z "$ac_cv_path_EGREP"; then
4258 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4259 fi
4260 else
4261 ac_cv_path_EGREP=$EGREP
4262 fi
4263
4264 fi
4265 fi
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4267 $as_echo "$ac_cv_path_EGREP" >&6; }
4268 EGREP="$ac_cv_path_EGREP"
4269
4270
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4272 $as_echo_n "checking for ANSI C header files... " >&6; }
4273 if ${ac_cv_header_stdc+:} false; then :
4274 $as_echo_n "(cached) " >&6
4275 else
4276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4277 /* end confdefs.h. */
4278 #include <stdlib.h>
4279 #include <stdarg.h>
4280 #include <string.h>
4281 #include <float.h>
4282
4283 int
4284 main ()
4285 {
4286
4287 ;
4288 return 0;
4289 }
4290 _ACEOF
4291 if ac_fn_c_try_compile "$LINENO"; then :
4292 ac_cv_header_stdc=yes
4293 else
4294 ac_cv_header_stdc=no
4295 fi
4296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4297
4298 if test $ac_cv_header_stdc = yes; then
4299 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4301 /* end confdefs.h. */
4302 #include <string.h>
4303
4304 _ACEOF
4305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4306 $EGREP "memchr" >/dev/null 2>&1; then :
4307
4308 else
4309 ac_cv_header_stdc=no
4310 fi
4311 rm -f conftest*
4312
4313 fi
4314
4315 if test $ac_cv_header_stdc = yes; then
4316 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4318 /* end confdefs.h. */
4319 #include <stdlib.h>
4320
4321 _ACEOF
4322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4323 $EGREP "free" >/dev/null 2>&1; then :
4324
4325 else
4326 ac_cv_header_stdc=no
4327 fi
4328 rm -f conftest*
4329
4330 fi
4331
4332 if test $ac_cv_header_stdc = yes; then
4333 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4334 if test "$cross_compiling" = yes; then :
4335 :
4336 else
4337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4338 /* end confdefs.h. */
4339 #include <ctype.h>
4340 #include <stdlib.h>
4341 #if ((' ' & 0x0FF) == 0x020)
4342 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4343 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4344 #else
4345 # define ISLOWER(c) \
4346 (('a' <= (c) && (c) <= 'i') \
4347 || ('j' <= (c) && (c) <= 'r') \
4348 || ('s' <= (c) && (c) <= 'z'))
4349 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4350 #endif
4351
4352 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4353 int
4354 main ()
4355 {
4356 int i;
4357 for (i = 0; i < 256; i++)
4358 if (XOR (islower (i), ISLOWER (i))
4359 || toupper (i) != TOUPPER (i))
4360 return 2;
4361 return 0;
4362 }
4363 _ACEOF
4364 if ac_fn_c_try_run "$LINENO"; then :
4365
4366 else
4367 ac_cv_header_stdc=no
4368 fi
4369 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4370 conftest.$ac_objext conftest.beam conftest.$ac_ext
4371 fi
4372
4373 fi
4374 fi
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4376 $as_echo "$ac_cv_header_stdc" >&6; }
4377 if test $ac_cv_header_stdc = yes; then
4378
4379 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4380
4381 fi
4382
4383 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4384 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4385 inttypes.h stdint.h unistd.h
4386 do :
4387 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4388 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4389 "
4390 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4391 cat >>confdefs.h <<_ACEOF
4392 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4393 _ACEOF
4394
4395 fi
4396
4397 done
4398
4399
4400 test "$program_prefix" != NONE &&
4401 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4402 # Use a double $ so make ignores it.
4403 test "$program_suffix" != NONE &&
4404 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4405 # Double any \ or $.
4406 # By default was `s,x,x', remove it if useless.
4407 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4408 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4409
4410 # Find a good install program. We prefer a C program (faster),
4411 # so one script is as good as another. But avoid the broken or
4412 # incompatible versions:
4413 # SysV /etc/install, /usr/sbin/install
4414 # SunOS /usr/etc/install
4415 # IRIX /sbin/install
4416 # AIX /bin/install
4417 # AmigaOS /C/install, which installs bootblocks on floppy discs
4418 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4419 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4420 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4421 # OS/2's system install, which has a completely different semantic
4422 # ./install, which can be erroneously created by make from ./install.sh.
4423 # Reject install programs that cannot install multiple files.
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4425 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4426 if test -z "$INSTALL"; then
4427 if ${ac_cv_path_install+:} false; then :
4428 $as_echo_n "(cached) " >&6
4429 else
4430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431 for as_dir in $PATH
4432 do
4433 IFS=$as_save_IFS
4434 test -z "$as_dir" && as_dir=.
4435 # Account for people who put trailing slashes in PATH elements.
4436 case $as_dir/ in #((
4437 ./ | .// | /[cC]/* | \
4438 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4439 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4440 /usr/ucb/* ) ;;
4441 *)
4442 # OSF1 and SCO ODT 3.0 have their own names for install.
4443 # Don't use installbsd from OSF since it installs stuff as root
4444 # by default.
4445 for ac_prog in ginstall scoinst install; do
4446 for ac_exec_ext in '' $ac_executable_extensions; do
4447 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4448 if test $ac_prog = install &&
4449 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4450 # AIX install. It has an incompatible calling convention.
4451 :
4452 elif test $ac_prog = install &&
4453 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4454 # program-specific install script used by HP pwplus--don't use.
4455 :
4456 else
4457 rm -rf conftest.one conftest.two conftest.dir
4458 echo one > conftest.one
4459 echo two > conftest.two
4460 mkdir conftest.dir
4461 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4462 test -s conftest.one && test -s conftest.two &&
4463 test -s conftest.dir/conftest.one &&
4464 test -s conftest.dir/conftest.two
4465 then
4466 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4467 break 3
4468 fi
4469 fi
4470 fi
4471 done
4472 done
4473 ;;
4474 esac
4475
4476 done
4477 IFS=$as_save_IFS
4478
4479 rm -rf conftest.one conftest.two conftest.dir
4480
4481 fi
4482 if test "${ac_cv_path_install+set}" = set; then
4483 INSTALL=$ac_cv_path_install
4484 else
4485 # As a last resort, use the slow shell script. Don't cache a
4486 # value for INSTALL within a source directory, because that will
4487 # break other packages using the cache if that directory is
4488 # removed, or if the value is a relative name.
4489 INSTALL=$ac_install_sh
4490 fi
4491 fi
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4493 $as_echo "$INSTALL" >&6; }
4494
4495 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4496 # It thinks the first close brace ends the variable substitution.
4497 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4498
4499 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4500
4501 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4502
4503
4504
4505
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4507 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4508 if ${ac_cv_c_bigendian+:} false; then :
4509 $as_echo_n "(cached) " >&6
4510 else
4511 ac_cv_c_bigendian=unknown
4512 # See if we're dealing with a universal compiler.
4513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4514 /* end confdefs.h. */
4515 #ifndef __APPLE_CC__
4516 not a universal capable compiler
4517 #endif
4518 typedef int dummy;
4519
4520 _ACEOF
4521 if ac_fn_c_try_compile "$LINENO"; then :
4522
4523 # Check for potential -arch flags. It is not universal unless
4524 # there are at least two -arch flags with different values.
4525 ac_arch=
4526 ac_prev=
4527 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4528 if test -n "$ac_prev"; then
4529 case $ac_word in
4530 i?86 | x86_64 | ppc | ppc64)
4531 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4532 ac_arch=$ac_word
4533 else
4534 ac_cv_c_bigendian=universal
4535 break
4536 fi
4537 ;;
4538 esac
4539 ac_prev=
4540 elif test "x$ac_word" = "x-arch"; then
4541 ac_prev=arch
4542 fi
4543 done
4544 fi
4545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4546 if test $ac_cv_c_bigendian = unknown; then
4547 # See if sys/param.h defines the BYTE_ORDER macro.
4548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4549 /* end confdefs.h. */
4550 #include <sys/types.h>
4551 #include <sys/param.h>
4552
4553 int
4554 main ()
4555 {
4556 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4557 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4558 && LITTLE_ENDIAN)
4559 bogus endian macros
4560 #endif
4561
4562 ;
4563 return 0;
4564 }
4565 _ACEOF
4566 if ac_fn_c_try_compile "$LINENO"; then :
4567 # It does; now see whether it defined to BIG_ENDIAN or not.
4568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4569 /* end confdefs.h. */
4570 #include <sys/types.h>
4571 #include <sys/param.h>
4572
4573 int
4574 main ()
4575 {
4576 #if BYTE_ORDER != BIG_ENDIAN
4577 not big endian
4578 #endif
4579
4580 ;
4581 return 0;
4582 }
4583 _ACEOF
4584 if ac_fn_c_try_compile "$LINENO"; then :
4585 ac_cv_c_bigendian=yes
4586 else
4587 ac_cv_c_bigendian=no
4588 fi
4589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4590 fi
4591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4592 fi
4593 if test $ac_cv_c_bigendian = unknown; then
4594 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4596 /* end confdefs.h. */
4597 #include <limits.h>
4598
4599 int
4600 main ()
4601 {
4602 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4603 bogus endian macros
4604 #endif
4605
4606 ;
4607 return 0;
4608 }
4609 _ACEOF
4610 if ac_fn_c_try_compile "$LINENO"; then :
4611 # It does; now see whether it defined to _BIG_ENDIAN or not.
4612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4613 /* end confdefs.h. */
4614 #include <limits.h>
4615
4616 int
4617 main ()
4618 {
4619 #ifndef _BIG_ENDIAN
4620 not big endian
4621 #endif
4622
4623 ;
4624 return 0;
4625 }
4626 _ACEOF
4627 if ac_fn_c_try_compile "$LINENO"; then :
4628 ac_cv_c_bigendian=yes
4629 else
4630 ac_cv_c_bigendian=no
4631 fi
4632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4633 fi
4634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4635 fi
4636 if test $ac_cv_c_bigendian = unknown; then
4637 # Compile a test program.
4638 if test "$cross_compiling" = yes; then :
4639 # Try to guess by grepping values from an object file.
4640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4641 /* end confdefs.h. */
4642 short int ascii_mm[] =
4643 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4644 short int ascii_ii[] =
4645 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4646 int use_ascii (int i) {
4647 return ascii_mm[i] + ascii_ii[i];
4648 }
4649 short int ebcdic_ii[] =
4650 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4651 short int ebcdic_mm[] =
4652 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4653 int use_ebcdic (int i) {
4654 return ebcdic_mm[i] + ebcdic_ii[i];
4655 }
4656 extern int foo;
4657
4658 int
4659 main ()
4660 {
4661 return use_ascii (foo) == use_ebcdic (foo);
4662 ;
4663 return 0;
4664 }
4665 _ACEOF
4666 if ac_fn_c_try_compile "$LINENO"; then :
4667 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4668 ac_cv_c_bigendian=yes
4669 fi
4670 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4671 if test "$ac_cv_c_bigendian" = unknown; then
4672 ac_cv_c_bigendian=no
4673 else
4674 # finding both strings is unlikely to happen, but who knows?
4675 ac_cv_c_bigendian=unknown
4676 fi
4677 fi
4678 fi
4679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4680 else
4681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4682 /* end confdefs.h. */
4683 $ac_includes_default
4684 int
4685 main ()
4686 {
4687
4688 /* Are we little or big endian? From Harbison&Steele. */
4689 union
4690 {
4691 long int l;
4692 char c[sizeof (long int)];
4693 } u;
4694 u.l = 1;
4695 return u.c[sizeof (long int) - 1] == 1;
4696
4697 ;
4698 return 0;
4699 }
4700 _ACEOF
4701 if ac_fn_c_try_run "$LINENO"; then :
4702 ac_cv_c_bigendian=no
4703 else
4704 ac_cv_c_bigendian=yes
4705 fi
4706 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4707 conftest.$ac_objext conftest.beam conftest.$ac_ext
4708 fi
4709
4710 fi
4711 fi
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4713 $as_echo "$ac_cv_c_bigendian" >&6; }
4714 case $ac_cv_c_bigendian in #(
4715 yes)
4716 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4717 ;; #(
4718 no)
4719 ;; #(
4720 universal)
4721
4722 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4723
4724 ;; #(
4725 *)
4726 as_fn_error $? "unknown endianness
4727 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4728 esac
4729
4730
4731
4732
4733 if test -n "$ac_tool_prefix"; then
4734 # Extract the first word of "${ac_tool_prefix}dtc", so it can be a program name with args.
4735 set dummy ${ac_tool_prefix}dtc; ac_word=$2
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4737 $as_echo_n "checking for $ac_word... " >&6; }
4738 if ${ac_cv_prog_DTC+:} false; then :
4739 $as_echo_n "(cached) " >&6
4740 else
4741 if test -n "$DTC"; then
4742 ac_cv_prog_DTC="$DTC" # Let the user override the test.
4743 else
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 for as_dir in $PATH
4746 do
4747 IFS=$as_save_IFS
4748 test -z "$as_dir" && as_dir=.
4749 for ac_exec_ext in '' $ac_executable_extensions; do
4750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4751 ac_cv_prog_DTC="${ac_tool_prefix}dtc"
4752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4753 break 2
4754 fi
4755 done
4756 done
4757 IFS=$as_save_IFS
4758
4759 fi
4760 fi
4761 DTC=$ac_cv_prog_DTC
4762 if test -n "$DTC"; then
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTC" >&5
4764 $as_echo "$DTC" >&6; }
4765 else
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4767 $as_echo "no" >&6; }
4768 fi
4769
4770
4771 fi
4772 if test -z "$ac_cv_prog_DTC"; then
4773 ac_ct_DTC=$DTC
4774 # Extract the first word of "dtc", so it can be a program name with args.
4775 set dummy dtc; ac_word=$2
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4777 $as_echo_n "checking for $ac_word... " >&6; }
4778 if ${ac_cv_prog_ac_ct_DTC+:} false; then :
4779 $as_echo_n "(cached) " >&6
4780 else
4781 if test -n "$ac_ct_DTC"; then
4782 ac_cv_prog_ac_ct_DTC="$ac_ct_DTC" # Let the user override the test.
4783 else
4784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785 for as_dir in $PATH
4786 do
4787 IFS=$as_save_IFS
4788 test -z "$as_dir" && as_dir=.
4789 for ac_exec_ext in '' $ac_executable_extensions; do
4790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4791 ac_cv_prog_ac_ct_DTC="dtc"
4792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4793 break 2
4794 fi
4795 done
4796 done
4797 IFS=$as_save_IFS
4798
4799 fi
4800 fi
4801 ac_ct_DTC=$ac_cv_prog_ac_ct_DTC
4802 if test -n "$ac_ct_DTC"; then
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DTC" >&5
4804 $as_echo "$ac_ct_DTC" >&6; }
4805 else
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4807 $as_echo "no" >&6; }
4808 fi
4809
4810 if test "x$ac_ct_DTC" = x; then
4811 DTC=""
4812 else
4813 case $cross_compiling:$ac_tool_warned in
4814 yes:)
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4816 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4817 ac_tool_warned=yes ;;
4818 esac
4819 DTC=$ac_ct_DTC
4820 fi
4821 else
4822 DTC="$ac_cv_prog_DTC"
4823 fi
4824
4825
4826 if test "x$cross_compiling" = "xno"; then
4827 : "${AR_FOR_BUILD:=\$(AR)}"
4828 : "${CC_FOR_BUILD:=\$(CC)}"
4829 : "${RANLIB_FOR_BUILD:=\$(RANLIB)}"
4830 : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}"
4831 : "${CPPFLAGS_FOR_BUILD:=\$(CPPFLAGS)}"
4832 : "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}"
4833 else
4834 : "${AR_FOR_BUILD:=ar}"
4835 : "${CC_FOR_BUILD:=gcc}"
4836 : "${RANLIB_FOR_BUILD:=ranlib}"
4837 : "${CFLAGS_FOR_BUILD:=-g -O}"
4838 : "${CPPFLAGS_FOR_BUILD:=}"
4839 : "${LDLFAGS_FOR_BUILD:=}"
4840 fi
4841
4842
4843
4844
4845
4846
4847
4848
4849 if test -n "$ac_tool_prefix"; then
4850 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4851 set dummy ${ac_tool_prefix}ar; ac_word=$2
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4853 $as_echo_n "checking for $ac_word... " >&6; }
4854 if ${ac_cv_prog_AR+:} false; then :
4855 $as_echo_n "(cached) " >&6
4856 else
4857 if test -n "$AR"; then
4858 ac_cv_prog_AR="$AR" # Let the user override the test.
4859 else
4860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4861 for as_dir in $PATH
4862 do
4863 IFS=$as_save_IFS
4864 test -z "$as_dir" && as_dir=.
4865 for ac_exec_ext in '' $ac_executable_extensions; do
4866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4867 ac_cv_prog_AR="${ac_tool_prefix}ar"
4868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4869 break 2
4870 fi
4871 done
4872 done
4873 IFS=$as_save_IFS
4874
4875 fi
4876 fi
4877 AR=$ac_cv_prog_AR
4878 if test -n "$AR"; then
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4880 $as_echo "$AR" >&6; }
4881 else
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4883 $as_echo "no" >&6; }
4884 fi
4885
4886
4887 fi
4888 if test -z "$ac_cv_prog_AR"; then
4889 ac_ct_AR=$AR
4890 # Extract the first word of "ar", so it can be a program name with args.
4891 set dummy ar; ac_word=$2
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4893 $as_echo_n "checking for $ac_word... " >&6; }
4894 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4895 $as_echo_n "(cached) " >&6
4896 else
4897 if test -n "$ac_ct_AR"; then
4898 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4899 else
4900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901 for as_dir in $PATH
4902 do
4903 IFS=$as_save_IFS
4904 test -z "$as_dir" && as_dir=.
4905 for ac_exec_ext in '' $ac_executable_extensions; do
4906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4907 ac_cv_prog_ac_ct_AR="ar"
4908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4909 break 2
4910 fi
4911 done
4912 done
4913 IFS=$as_save_IFS
4914
4915 fi
4916 fi
4917 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4918 if test -n "$ac_ct_AR"; then
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4920 $as_echo "$ac_ct_AR" >&6; }
4921 else
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4923 $as_echo "no" >&6; }
4924 fi
4925
4926 if test "x$ac_ct_AR" = x; then
4927 AR=""
4928 else
4929 case $cross_compiling:$ac_tool_warned in
4930 yes:)
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4932 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4933 ac_tool_warned=yes ;;
4934 esac
4935 AR=$ac_ct_AR
4936 fi
4937 else
4938 AR="$ac_cv_prog_AR"
4939 fi
4940
4941 if test -n "$ac_tool_prefix"; then
4942 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4943 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4945 $as_echo_n "checking for $ac_word... " >&6; }
4946 if ${ac_cv_prog_RANLIB+:} false; then :
4947 $as_echo_n "(cached) " >&6
4948 else
4949 if test -n "$RANLIB"; then
4950 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4951 else
4952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4953 for as_dir in $PATH
4954 do
4955 IFS=$as_save_IFS
4956 test -z "$as_dir" && as_dir=.
4957 for ac_exec_ext in '' $ac_executable_extensions; do
4958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4959 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4961 break 2
4962 fi
4963 done
4964 done
4965 IFS=$as_save_IFS
4966
4967 fi
4968 fi
4969 RANLIB=$ac_cv_prog_RANLIB
4970 if test -n "$RANLIB"; then
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4972 $as_echo "$RANLIB" >&6; }
4973 else
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4975 $as_echo "no" >&6; }
4976 fi
4977
4978
4979 fi
4980 if test -z "$ac_cv_prog_RANLIB"; then
4981 ac_ct_RANLIB=$RANLIB
4982 # Extract the first word of "ranlib", so it can be a program name with args.
4983 set dummy ranlib; ac_word=$2
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4985 $as_echo_n "checking for $ac_word... " >&6; }
4986 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4987 $as_echo_n "(cached) " >&6
4988 else
4989 if test -n "$ac_ct_RANLIB"; then
4990 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4991 else
4992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993 for as_dir in $PATH
4994 do
4995 IFS=$as_save_IFS
4996 test -z "$as_dir" && as_dir=.
4997 for ac_exec_ext in '' $ac_executable_extensions; do
4998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4999 ac_cv_prog_ac_ct_RANLIB="ranlib"
5000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5001 break 2
5002 fi
5003 done
5004 done
5005 IFS=$as_save_IFS
5006
5007 fi
5008 fi
5009 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5010 if test -n "$ac_ct_RANLIB"; then
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5012 $as_echo "$ac_ct_RANLIB" >&6; }
5013 else
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5015 $as_echo "no" >&6; }
5016 fi
5017
5018 if test "x$ac_ct_RANLIB" = x; then
5019 RANLIB=":"
5020 else
5021 case $cross_compiling:$ac_tool_warned in
5022 yes:)
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5024 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5025 ac_tool_warned=yes ;;
5026 esac
5027 RANLIB=$ac_ct_RANLIB
5028 fi
5029 else
5030 RANLIB="$ac_cv_prog_RANLIB"
5031 fi
5032
5033
5034
5035
5036
5037
5038
5039
5040 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5041 if test -n "$ac_tool_prefix"; then
5042 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5043 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5045 $as_echo_n "checking for $ac_word... " >&6; }
5046 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5047 $as_echo_n "(cached) " >&6
5048 else
5049 case $PKG_CONFIG in
5050 [\\/]* | ?:[\\/]*)
5051 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5052 ;;
5053 *)
5054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5055 for as_dir in $PATH
5056 do
5057 IFS=$as_save_IFS
5058 test -z "$as_dir" && as_dir=.
5059 for ac_exec_ext in '' $ac_executable_extensions; do
5060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5061 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5063 break 2
5064 fi
5065 done
5066 done
5067 IFS=$as_save_IFS
5068
5069 ;;
5070 esac
5071 fi
5072 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5073 if test -n "$PKG_CONFIG"; then
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5075 $as_echo "$PKG_CONFIG" >&6; }
5076 else
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5078 $as_echo "no" >&6; }
5079 fi
5080
5081
5082 fi
5083 if test -z "$ac_cv_path_PKG_CONFIG"; then
5084 ac_pt_PKG_CONFIG=$PKG_CONFIG
5085 # Extract the first word of "pkg-config", so it can be a program name with args.
5086 set dummy pkg-config; ac_word=$2
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5088 $as_echo_n "checking for $ac_word... " >&6; }
5089 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5090 $as_echo_n "(cached) " >&6
5091 else
5092 case $ac_pt_PKG_CONFIG in
5093 [\\/]* | ?:[\\/]*)
5094 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5095 ;;
5096 *)
5097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5098 for as_dir in $PATH
5099 do
5100 IFS=$as_save_IFS
5101 test -z "$as_dir" && as_dir=.
5102 for ac_exec_ext in '' $ac_executable_extensions; do
5103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5104 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5106 break 2
5107 fi
5108 done
5109 done
5110 IFS=$as_save_IFS
5111
5112 ;;
5113 esac
5114 fi
5115 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5116 if test -n "$ac_pt_PKG_CONFIG"; then
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5118 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5119 else
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5121 $as_echo "no" >&6; }
5122 fi
5123
5124 if test "x$ac_pt_PKG_CONFIG" = x; then
5125 PKG_CONFIG=""
5126 else
5127 case $cross_compiling:$ac_tool_warned in
5128 yes:)
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5131 ac_tool_warned=yes ;;
5132 esac
5133 PKG_CONFIG=$ac_pt_PKG_CONFIG
5134 fi
5135 else
5136 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5137 fi
5138
5139 fi
5140 if test -n "$PKG_CONFIG"; then
5141 _pkg_min_version=0.9.0
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5143 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5144 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5146 $as_echo "yes" >&6; }
5147 else
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5149 $as_echo "no" >&6; }
5150 PKG_CONFIG=""
5151 fi
5152 fi
5153
5154 # Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using
5155 # AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands
5156 # is C99. So handle it ourselves.
5157 :
5158 C_DIALECT=
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5
5160 $as_echo_n "checking whether C11 is supported by default... " >&6; }
5161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5162 /* end confdefs.h. */
5163
5164 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
5165 # error "C11 support not found"
5166 #endif
5167
5168 _ACEOF
5169 if ac_fn_c_try_compile "$LINENO"; then :
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5171 $as_echo "yes" >&6; }
5172 else
5173
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5175 $as_echo "no" >&6; }
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5
5177 $as_echo_n "checking for -std=c11 support... " >&6; }
5178 ac_save_CC="$CC"
5179 CC="$CC -std=c11"
5180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5181 /* end confdefs.h. */
5182
5183 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
5184 # error "C11 support not found"
5185 #endif
5186
5187 _ACEOF
5188 if ac_fn_c_try_compile "$LINENO"; then :
5189
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5191 $as_echo "yes" >&6; }
5192 CC="$ac_save_CC"
5193 C_DIALECT="-std=c11"
5194
5195 else
5196 as_fn_error $? "C11 is required" "$LINENO" 5
5197 fi
5198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5199 fi
5200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5201
5202
5203
5204
5205
5206 for ac_header in $ac_header_list
5207 do :
5208 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5209 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5210 "
5211 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5212 cat >>confdefs.h <<_ACEOF
5213 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5214 _ACEOF
5215
5216 fi
5217
5218 done
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267 for ac_func in $ac_func_list
5268 do :
5269 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5270 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5271 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5272 cat >>confdefs.h <<_ACEOF
5273 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5274 _ACEOF
5275
5276 fi
5277 done
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5406 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5407 if ${ac_cv_struct_tm+:} false; then :
5408 $as_echo_n "(cached) " >&6
5409 else
5410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5411 /* end confdefs.h. */
5412 #include <sys/types.h>
5413 #include <time.h>
5414
5415 int
5416 main ()
5417 {
5418 struct tm tm;
5419 int *p = &tm.tm_sec;
5420 return !p;
5421 ;
5422 return 0;
5423 }
5424 _ACEOF
5425 if ac_fn_c_try_compile "$LINENO"; then :
5426 ac_cv_struct_tm=time.h
5427 else
5428 ac_cv_struct_tm=sys/time.h
5429 fi
5430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5431 fi
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5433 $as_echo "$ac_cv_struct_tm" >&6; }
5434 if test $ac_cv_struct_tm = sys/time.h; then
5435
5436 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5437
5438 fi
5439
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5441 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5442 if ${ac_cv_type_uid_t+:} false; then :
5443 $as_echo_n "(cached) " >&6
5444 else
5445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5446 /* end confdefs.h. */
5447 #include <sys/types.h>
5448
5449 _ACEOF
5450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5451 $EGREP "uid_t" >/dev/null 2>&1; then :
5452 ac_cv_type_uid_t=yes
5453 else
5454 ac_cv_type_uid_t=no
5455 fi
5456 rm -f conftest*
5457
5458 fi
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5460 $as_echo "$ac_cv_type_uid_t" >&6; }
5461 if test $ac_cv_type_uid_t = no; then
5462
5463 $as_echo "#define uid_t int" >>confdefs.h
5464
5465
5466 $as_echo "#define gid_t int" >>confdefs.h
5467
5468 fi
5469
5470 case `pwd` in
5471 *\ * | *\ *)
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5473 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5474 esac
5475
5476
5477
5478 macro_version='2.2.7a'
5479 macro_revision='1.3134'
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493 ltmain="$ac_aux_dir/ltmain.sh"
5494
5495 # Backslashify metacharacters that are still active within
5496 # double-quoted strings.
5497 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5498
5499 # Same as above, but do not quote variable references.
5500 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5501
5502 # Sed substitution to delay expansion of an escaped shell variable in a
5503 # double_quote_subst'ed string.
5504 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5505
5506 # Sed substitution to delay expansion of an escaped single quote.
5507 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5508
5509 # Sed substitution to avoid accidental globbing in evaled expressions
5510 no_glob_subst='s/\*/\\\*/g'
5511
5512 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5513 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5514 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5515
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5517 $as_echo_n "checking how to print strings... " >&6; }
5518 # Test print first, because it will be a builtin if present.
5519 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5520 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5521 ECHO='print -r --'
5522 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5523 ECHO='printf %s\n'
5524 else
5525 # Use this function as a fallback that always works.
5526 func_fallback_echo ()
5527 {
5528 eval 'cat <<_LTECHO_EOF
5529 $1
5530 _LTECHO_EOF'
5531 }
5532 ECHO='func_fallback_echo'
5533 fi
5534
5535 # func_echo_all arg...
5536 # Invoke $ECHO with all args, space-separated.
5537 func_echo_all ()
5538 {
5539 $ECHO ""
5540 }
5541
5542 case "$ECHO" in
5543 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5544 $as_echo "printf" >&6; } ;;
5545 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5546 $as_echo "print -r" >&6; } ;;
5547 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5548 $as_echo "cat" >&6; } ;;
5549 esac
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5565 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5566 if ${ac_cv_path_SED+:} false; then :
5567 $as_echo_n "(cached) " >&6
5568 else
5569 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5570 for ac_i in 1 2 3 4 5 6 7; do
5571 ac_script="$ac_script$as_nl$ac_script"
5572 done
5573 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5574 { ac_script=; unset ac_script;}
5575 if test -z "$SED"; then
5576 ac_path_SED_found=false
5577 # Loop through the user's path and test for each of PROGNAME-LIST
5578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5579 for as_dir in $PATH
5580 do
5581 IFS=$as_save_IFS
5582 test -z "$as_dir" && as_dir=.
5583 for ac_prog in sed gsed; do
5584 for ac_exec_ext in '' $ac_executable_extensions; do
5585 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5586 as_fn_executable_p "$ac_path_SED" || continue
5587 # Check for GNU ac_path_SED and select it if it is found.
5588 # Check for GNU $ac_path_SED
5589 case `"$ac_path_SED" --version 2>&1` in
5590 *GNU*)
5591 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5592 *)
5593 ac_count=0
5594 $as_echo_n 0123456789 >"conftest.in"
5595 while :
5596 do
5597 cat "conftest.in" "conftest.in" >"conftest.tmp"
5598 mv "conftest.tmp" "conftest.in"
5599 cp "conftest.in" "conftest.nl"
5600 $as_echo '' >> "conftest.nl"
5601 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5602 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5603 as_fn_arith $ac_count + 1 && ac_count=$as_val
5604 if test $ac_count -gt ${ac_path_SED_max-0}; then
5605 # Best one so far, save it but keep looking for a better one
5606 ac_cv_path_SED="$ac_path_SED"
5607 ac_path_SED_max=$ac_count
5608 fi
5609 # 10*(2^10) chars as input seems more than enough
5610 test $ac_count -gt 10 && break
5611 done
5612 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5613 esac
5614
5615 $ac_path_SED_found && break 3
5616 done
5617 done
5618 done
5619 IFS=$as_save_IFS
5620 if test -z "$ac_cv_path_SED"; then
5621 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5622 fi
5623 else
5624 ac_cv_path_SED=$SED
5625 fi
5626
5627 fi
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5629 $as_echo "$ac_cv_path_SED" >&6; }
5630 SED="$ac_cv_path_SED"
5631 rm -f conftest.sed
5632
5633 test -z "$SED" && SED=sed
5634 Xsed="$SED -e 1s/^X//"
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5647 $as_echo_n "checking for fgrep... " >&6; }
5648 if ${ac_cv_path_FGREP+:} false; then :
5649 $as_echo_n "(cached) " >&6
5650 else
5651 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5652 then ac_cv_path_FGREP="$GREP -F"
5653 else
5654 if test -z "$FGREP"; then
5655 ac_path_FGREP_found=false
5656 # Loop through the user's path and test for each of PROGNAME-LIST
5657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5659 do
5660 IFS=$as_save_IFS
5661 test -z "$as_dir" && as_dir=.
5662 for ac_prog in fgrep; do
5663 for ac_exec_ext in '' $ac_executable_extensions; do
5664 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5665 as_fn_executable_p "$ac_path_FGREP" || continue
5666 # Check for GNU ac_path_FGREP and select it if it is found.
5667 # Check for GNU $ac_path_FGREP
5668 case `"$ac_path_FGREP" --version 2>&1` in
5669 *GNU*)
5670 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5671 *)
5672 ac_count=0
5673 $as_echo_n 0123456789 >"conftest.in"
5674 while :
5675 do
5676 cat "conftest.in" "conftest.in" >"conftest.tmp"
5677 mv "conftest.tmp" "conftest.in"
5678 cp "conftest.in" "conftest.nl"
5679 $as_echo 'FGREP' >> "conftest.nl"
5680 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5681 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5682 as_fn_arith $ac_count + 1 && ac_count=$as_val
5683 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5684 # Best one so far, save it but keep looking for a better one
5685 ac_cv_path_FGREP="$ac_path_FGREP"
5686 ac_path_FGREP_max=$ac_count
5687 fi
5688 # 10*(2^10) chars as input seems more than enough
5689 test $ac_count -gt 10 && break
5690 done
5691 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5692 esac
5693
5694 $ac_path_FGREP_found && break 3
5695 done
5696 done
5697 done
5698 IFS=$as_save_IFS
5699 if test -z "$ac_cv_path_FGREP"; then
5700 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5701 fi
5702 else
5703 ac_cv_path_FGREP=$FGREP
5704 fi
5705
5706 fi
5707 fi
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5709 $as_echo "$ac_cv_path_FGREP" >&6; }
5710 FGREP="$ac_cv_path_FGREP"
5711
5712
5713 test -z "$GREP" && GREP=grep
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733 # Check whether --with-gnu-ld was given.
5734 if test "${with_gnu_ld+set}" = set; then :
5735 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5736 else
5737 with_gnu_ld=no
5738 fi
5739
5740 ac_prog=ld
5741 if test "$GCC" = yes; then
5742 # Check if gcc -print-prog-name=ld gives a path.
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5744 $as_echo_n "checking for ld used by $CC... " >&6; }
5745 case $host in
5746 *-*-mingw*)
5747 # gcc leaves a trailing carriage return which upsets mingw
5748 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5749 *)
5750 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5751 esac
5752 case $ac_prog in
5753 # Accept absolute paths.
5754 [\\/]* | ?:[\\/]*)
5755 re_direlt='/[^/][^/]*/\.\./'
5756 # Canonicalize the pathname of ld
5757 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5758 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5759 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5760 done
5761 test -z "$LD" && LD="$ac_prog"
5762 ;;
5763 "")
5764 # If it fails, then pretend we aren't using GCC.
5765 ac_prog=ld
5766 ;;
5767 *)
5768 # If it is relative, then search for the first ld in PATH.
5769 with_gnu_ld=unknown
5770 ;;
5771 esac
5772 elif test "$with_gnu_ld" = yes; then
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5774 $as_echo_n "checking for GNU ld... " >&6; }
5775 else
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5777 $as_echo_n "checking for non-GNU ld... " >&6; }
5778 fi
5779 if ${lt_cv_path_LD+:} false; then :
5780 $as_echo_n "(cached) " >&6
5781 else
5782 if test -z "$LD"; then
5783 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5784 for ac_dir in $PATH; do
5785 IFS="$lt_save_ifs"
5786 test -z "$ac_dir" && ac_dir=.
5787 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5788 lt_cv_path_LD="$ac_dir/$ac_prog"
5789 # Check to see if the program is GNU ld. I'd rather use --version,
5790 # but apparently some variants of GNU ld only accept -v.
5791 # Break only if it was the GNU/non-GNU ld that we prefer.
5792 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5793 *GNU* | *'with BFD'*)
5794 test "$with_gnu_ld" != no && break
5795 ;;
5796 *)
5797 test "$with_gnu_ld" != yes && break
5798 ;;
5799 esac
5800 fi
5801 done
5802 IFS="$lt_save_ifs"
5803 else
5804 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5805 fi
5806 fi
5807
5808 LD="$lt_cv_path_LD"
5809 if test -n "$LD"; then
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5811 $as_echo "$LD" >&6; }
5812 else
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5814 $as_echo "no" >&6; }
5815 fi
5816 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5818 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5819 if ${lt_cv_prog_gnu_ld+:} false; then :
5820 $as_echo_n "(cached) " >&6
5821 else
5822 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5823 case `$LD -v 2>&1 </dev/null` in
5824 *GNU* | *'with BFD'*)
5825 lt_cv_prog_gnu_ld=yes
5826 ;;
5827 *)
5828 lt_cv_prog_gnu_ld=no
5829 ;;
5830 esac
5831 fi
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5833 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5834 with_gnu_ld=$lt_cv_prog_gnu_ld
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5845 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5846 if ${lt_cv_path_NM+:} false; then :
5847 $as_echo_n "(cached) " >&6
5848 else
5849 if test -n "$NM"; then
5850 # Let the user override the nm to test.
5851 lt_nm_to_check="$NM"
5852 else
5853 lt_nm_to_check="${ac_tool_prefix}nm"
5854 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5855 lt_nm_to_check="$lt_nm_to_check nm"
5856 fi
5857 fi
5858 for lt_tmp_nm in "$lt_nm_to_check"; do
5859 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5860 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5861 IFS="$lt_save_ifs"
5862 test -z "$ac_dir" && ac_dir=.
5863 # Strip out any user-provided options from the nm to test twice,
5864 # the first time to test to see if nm (rather than its options) has
5865 # an explicit path, the second time to yield a file which can be
5866 # nm'ed itself.
5867 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5868 case "$tmp_nm_path" in
5869 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5870 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5871 esac
5872 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5873 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
5874 # Check to see if the nm accepts a BSD-compat flag.
5875 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5876 # nm: unknown option "B" ignored
5877 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5878 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5879 break
5880 ;;
5881 *)
5882 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5883 *$tmp_nm*)
5884 lt_cv_path_NM="$tmp_nm -p"
5885 break
5886 ;;
5887 *)
5888 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5889 continue # so that we can try to find one that supports BSD flags
5890 ;;
5891 esac
5892 ;;
5893 esac
5894 fi
5895 done
5896 IFS="$lt_save_ifs"
5897 done
5898 : ${lt_cv_path_NM=no}
5899 fi
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5901 $as_echo "$lt_cv_path_NM" >&6; }
5902 if test "$lt_cv_path_NM" != "no"; then
5903 NM="$lt_cv_path_NM"
5904 else
5905 # Didn't find any BSD compatible name lister, look for dumpbin.
5906 if test -n "$DUMPBIN"; then :
5907 # Let the user override the test.
5908 else
5909 if test -n "$ac_tool_prefix"; then
5910 for ac_prog in dumpbin "link -dump"
5911 do
5912 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5913 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5915 $as_echo_n "checking for $ac_word... " >&6; }
5916 if ${ac_cv_prog_DUMPBIN+:} false; then :
5917 $as_echo_n "(cached) " >&6
5918 else
5919 if test -n "$DUMPBIN"; then
5920 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5921 else
5922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923 for as_dir in $PATH
5924 do
5925 IFS=$as_save_IFS
5926 test -z "$as_dir" && as_dir=.
5927 for ac_exec_ext in '' $ac_executable_extensions; do
5928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5929 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5931 break 2
5932 fi
5933 done
5934 done
5935 IFS=$as_save_IFS
5936
5937 fi
5938 fi
5939 DUMPBIN=$ac_cv_prog_DUMPBIN
5940 if test -n "$DUMPBIN"; then
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5942 $as_echo "$DUMPBIN" >&6; }
5943 else
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5945 $as_echo "no" >&6; }
5946 fi
5947
5948
5949 test -n "$DUMPBIN" && break
5950 done
5951 fi
5952 if test -z "$DUMPBIN"; then
5953 ac_ct_DUMPBIN=$DUMPBIN
5954 for ac_prog in dumpbin "link -dump"
5955 do
5956 # Extract the first word of "$ac_prog", so it can be a program name with args.
5957 set dummy $ac_prog; ac_word=$2
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5959 $as_echo_n "checking for $ac_word... " >&6; }
5960 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5961 $as_echo_n "(cached) " >&6
5962 else
5963 if test -n "$ac_ct_DUMPBIN"; then
5964 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5965 else
5966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967 for as_dir in $PATH
5968 do
5969 IFS=$as_save_IFS
5970 test -z "$as_dir" && as_dir=.
5971 for ac_exec_ext in '' $ac_executable_extensions; do
5972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5973 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5975 break 2
5976 fi
5977 done
5978 done
5979 IFS=$as_save_IFS
5980
5981 fi
5982 fi
5983 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5984 if test -n "$ac_ct_DUMPBIN"; then
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5986 $as_echo "$ac_ct_DUMPBIN" >&6; }
5987 else
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5989 $as_echo "no" >&6; }
5990 fi
5991
5992
5993 test -n "$ac_ct_DUMPBIN" && break
5994 done
5995
5996 if test "x$ac_ct_DUMPBIN" = x; then
5997 DUMPBIN=":"
5998 else
5999 case $cross_compiling:$ac_tool_warned in
6000 yes:)
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6003 ac_tool_warned=yes ;;
6004 esac
6005 DUMPBIN=$ac_ct_DUMPBIN
6006 fi
6007 fi
6008
6009 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6010 *COFF*)
6011 DUMPBIN="$DUMPBIN -symbols"
6012 ;;
6013 *)
6014 DUMPBIN=:
6015 ;;
6016 esac
6017 fi
6018
6019 if test "$DUMPBIN" != ":"; then
6020 NM="$DUMPBIN"
6021 fi
6022 fi
6023 test -z "$NM" && NM=nm
6024
6025
6026
6027
6028
6029
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6031 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6032 if ${lt_cv_nm_interface+:} false; then :
6033 $as_echo_n "(cached) " >&6
6034 else
6035 lt_cv_nm_interface="BSD nm"
6036 echo "int some_variable = 0;" > conftest.$ac_ext
6037 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6038 (eval "$ac_compile" 2>conftest.err)
6039 cat conftest.err >&5
6040 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6041 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6042 cat conftest.err >&5
6043 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6044 cat conftest.out >&5
6045 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6046 lt_cv_nm_interface="MS dumpbin"
6047 fi
6048 rm -f conftest*
6049 fi
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6051 $as_echo "$lt_cv_nm_interface" >&6; }
6052
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6054 $as_echo_n "checking whether ln -s works... " >&6; }
6055 LN_S=$as_ln_s
6056 if test "$LN_S" = "ln -s"; then
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6058 $as_echo "yes" >&6; }
6059 else
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6061 $as_echo "no, using $LN_S" >&6; }
6062 fi
6063
6064 # find the maximum length of command line arguments
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6066 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6067 if ${lt_cv_sys_max_cmd_len+:} false; then :
6068 $as_echo_n "(cached) " >&6
6069 else
6070 i=0
6071 teststring="ABCD"
6072
6073 case $build_os in
6074 msdosdjgpp*)
6075 # On DJGPP, this test can blow up pretty badly due to problems in libc
6076 # (any single argument exceeding 2000 bytes causes a buffer overrun
6077 # during glob expansion). Even if it were fixed, the result of this
6078 # check would be larger than it should be.
6079 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6080 ;;
6081
6082 gnu*)
6083 # Under GNU Hurd, this test is not required because there is
6084 # no limit to the length of command line arguments.
6085 # Libtool will interpret -1 as no limit whatsoever
6086 lt_cv_sys_max_cmd_len=-1;
6087 ;;
6088
6089 cygwin* | mingw* | cegcc*)
6090 # On Win9x/ME, this test blows up -- it succeeds, but takes
6091 # about 5 minutes as the teststring grows exponentially.
6092 # Worse, since 9x/ME are not pre-emptively multitasking,
6093 # you end up with a "frozen" computer, even though with patience
6094 # the test eventually succeeds (with a max line length of 256k).
6095 # Instead, let's just punt: use the minimum linelength reported by
6096 # all of the supported platforms: 8192 (on NT/2K/XP).
6097 lt_cv_sys_max_cmd_len=8192;
6098 ;;
6099
6100 mint*)
6101 # On MiNT this can take a long time and run out of memory.
6102 lt_cv_sys_max_cmd_len=8192;
6103 ;;
6104
6105 amigaos*)
6106 # On AmigaOS with pdksh, this test takes hours, literally.
6107 # So we just punt and use a minimum line length of 8192.
6108 lt_cv_sys_max_cmd_len=8192;
6109 ;;
6110
6111 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6112 # This has been around since 386BSD, at least. Likely further.
6113 if test -x /sbin/sysctl; then
6114 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6115 elif test -x /usr/sbin/sysctl; then
6116 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6117 else
6118 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6119 fi
6120 # And add a safety zone
6121 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6122 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6123 ;;
6124
6125 interix*)
6126 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6127 lt_cv_sys_max_cmd_len=196608
6128 ;;
6129
6130 osf*)
6131 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6132 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6133 # nice to cause kernel panics so lets avoid the loop below.
6134 # First set a reasonable default.
6135 lt_cv_sys_max_cmd_len=16384
6136 #
6137 if test -x /sbin/sysconfig; then
6138 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6139 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6140 esac
6141 fi
6142 ;;
6143 sco3.2v5*)
6144 lt_cv_sys_max_cmd_len=102400
6145 ;;
6146 sysv5* | sco5v6* | sysv4.2uw2*)
6147 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6148 if test -n "$kargmax"; then
6149 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6150 else
6151 lt_cv_sys_max_cmd_len=32768
6152 fi
6153 ;;
6154 *)
6155 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6156 if test -n "$lt_cv_sys_max_cmd_len"; then
6157 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6158 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6159 else
6160 # Make teststring a little bigger before we do anything with it.
6161 # a 1K string should be a reasonable start.
6162 for i in 1 2 3 4 5 6 7 8 ; do
6163 teststring=$teststring$teststring
6164 done
6165 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6166 # If test is not a shell built-in, we'll probably end up computing a
6167 # maximum length that is only half of the actual maximum length, but
6168 # we can't tell.
6169 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6170 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6171 test $i != 17 # 1/2 MB should be enough
6172 do
6173 i=`expr $i + 1`
6174 teststring=$teststring$teststring
6175 done
6176 # Only check the string length outside the loop.
6177 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6178 teststring=
6179 # Add a significant safety factor because C++ compilers can tack on
6180 # massive amounts of additional arguments before passing them to the
6181 # linker. It appears as though 1/2 is a usable value.
6182 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6183 fi
6184 ;;
6185 esac
6186
6187 fi
6188
6189 if test -n $lt_cv_sys_max_cmd_len ; then
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6191 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6192 else
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6194 $as_echo "none" >&6; }
6195 fi
6196 max_cmd_len=$lt_cv_sys_max_cmd_len
6197
6198
6199
6200
6201
6202
6203 : ${CP="cp -f"}
6204 : ${MV="mv -f"}
6205 : ${RM="rm -f"}
6206
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6208 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6209 # Try some XSI features
6210 xsi_shell=no
6211 ( _lt_dummy="a/b/c"
6212 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6213 = c,a/b,, \
6214 && eval 'test $(( 1 + 1 )) -eq 2 \
6215 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6216 && xsi_shell=yes
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6218 $as_echo "$xsi_shell" >&6; }
6219
6220
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6222 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6223 lt_shell_append=no
6224 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6225 >/dev/null 2>&1 \
6226 && lt_shell_append=yes
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6228 $as_echo "$lt_shell_append" >&6; }
6229
6230
6231 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6232 lt_unset=unset
6233 else
6234 lt_unset=false
6235 fi
6236
6237
6238
6239
6240
6241 # test EBCDIC or ASCII
6242 case `echo X|tr X '\101'` in
6243 A) # ASCII based system
6244 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6245 lt_SP2NL='tr \040 \012'
6246 lt_NL2SP='tr \015\012 \040\040'
6247 ;;
6248 *) # EBCDIC based system
6249 lt_SP2NL='tr \100 \n'
6250 lt_NL2SP='tr \r\n \100\100'
6251 ;;
6252 esac
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6263 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6264 if ${lt_cv_ld_reload_flag+:} false; then :
6265 $as_echo_n "(cached) " >&6
6266 else
6267 lt_cv_ld_reload_flag='-r'
6268 fi
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6270 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6271 reload_flag=$lt_cv_ld_reload_flag
6272 case $reload_flag in
6273 "" | " "*) ;;
6274 *) reload_flag=" $reload_flag" ;;
6275 esac
6276 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6277 case $host_os in
6278 darwin*)
6279 if test "$GCC" = yes; then
6280 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6281 else
6282 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6283 fi
6284 ;;
6285 esac
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295 if test -n "$ac_tool_prefix"; then
6296 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6297 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6299 $as_echo_n "checking for $ac_word... " >&6; }
6300 if ${ac_cv_prog_OBJDUMP+:} false; then :
6301 $as_echo_n "(cached) " >&6
6302 else
6303 if test -n "$OBJDUMP"; then
6304 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6305 else
6306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6307 for as_dir in $PATH
6308 do
6309 IFS=$as_save_IFS
6310 test -z "$as_dir" && as_dir=.
6311 for ac_exec_ext in '' $ac_executable_extensions; do
6312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6313 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6315 break 2
6316 fi
6317 done
6318 done
6319 IFS=$as_save_IFS
6320
6321 fi
6322 fi
6323 OBJDUMP=$ac_cv_prog_OBJDUMP
6324 if test -n "$OBJDUMP"; then
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6326 $as_echo "$OBJDUMP" >&6; }
6327 else
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6329 $as_echo "no" >&6; }
6330 fi
6331
6332
6333 fi
6334 if test -z "$ac_cv_prog_OBJDUMP"; then
6335 ac_ct_OBJDUMP=$OBJDUMP
6336 # Extract the first word of "objdump", so it can be a program name with args.
6337 set dummy objdump; ac_word=$2
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6339 $as_echo_n "checking for $ac_word... " >&6; }
6340 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6341 $as_echo_n "(cached) " >&6
6342 else
6343 if test -n "$ac_ct_OBJDUMP"; then
6344 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6345 else
6346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6347 for as_dir in $PATH
6348 do
6349 IFS=$as_save_IFS
6350 test -z "$as_dir" && as_dir=.
6351 for ac_exec_ext in '' $ac_executable_extensions; do
6352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6353 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6355 break 2
6356 fi
6357 done
6358 done
6359 IFS=$as_save_IFS
6360
6361 fi
6362 fi
6363 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6364 if test -n "$ac_ct_OBJDUMP"; then
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6366 $as_echo "$ac_ct_OBJDUMP" >&6; }
6367 else
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6369 $as_echo "no" >&6; }
6370 fi
6371
6372 if test "x$ac_ct_OBJDUMP" = x; then
6373 OBJDUMP="false"
6374 else
6375 case $cross_compiling:$ac_tool_warned in
6376 yes:)
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6379 ac_tool_warned=yes ;;
6380 esac
6381 OBJDUMP=$ac_ct_OBJDUMP
6382 fi
6383 else
6384 OBJDUMP="$ac_cv_prog_OBJDUMP"
6385 fi
6386
6387 test -z "$OBJDUMP" && OBJDUMP=objdump
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6398 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6399 if ${lt_cv_deplibs_check_method+:} false; then :
6400 $as_echo_n "(cached) " >&6
6401 else
6402 lt_cv_file_magic_cmd='$MAGIC_CMD'
6403 lt_cv_file_magic_test_file=
6404 lt_cv_deplibs_check_method='unknown'
6405 # Need to set the preceding variable on all platforms that support
6406 # interlibrary dependencies.
6407 # 'none' -- dependencies not supported.
6408 # `unknown' -- same as none, but documents that we really don't know.
6409 # 'pass_all' -- all dependencies passed with no checks.
6410 # 'test_compile' -- check by making test program.
6411 # 'file_magic [[regex]]' -- check by looking for files in library path
6412 # which responds to the $file_magic_cmd with a given extended regex.
6413 # If you have `file' or equivalent on your system and you're not sure
6414 # whether `pass_all' will *always* work, you probably want this one.
6415
6416 case $host_os in
6417 aix[4-9]*)
6418 lt_cv_deplibs_check_method=pass_all
6419 ;;
6420
6421 beos*)
6422 lt_cv_deplibs_check_method=pass_all
6423 ;;
6424
6425 bsdi[45]*)
6426 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6427 lt_cv_file_magic_cmd='/usr/bin/file -L'
6428 lt_cv_file_magic_test_file=/shlib/libc.so
6429 ;;
6430
6431 cygwin*)
6432 # func_win32_libid is a shell function defined in ltmain.sh
6433 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6434 lt_cv_file_magic_cmd='func_win32_libid'
6435 ;;
6436
6437 mingw* | pw32*)
6438 # Base MSYS/MinGW do not provide the 'file' command needed by
6439 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6440 # unless we find 'file', for example because we are cross-compiling.
6441 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6442 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6443 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6444 lt_cv_file_magic_cmd='func_win32_libid'
6445 else
6446 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6447 lt_cv_file_magic_cmd='$OBJDUMP -f'
6448 fi
6449 ;;
6450
6451 cegcc*)
6452 # use the weaker test based on 'objdump'. See mingw*.
6453 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6454 lt_cv_file_magic_cmd='$OBJDUMP -f'
6455 ;;
6456
6457 darwin* | rhapsody*)
6458 lt_cv_deplibs_check_method=pass_all
6459 ;;
6460
6461 freebsd* | dragonfly*)
6462 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6463 case $host_cpu in
6464 i*86 )
6465 # Not sure whether the presence of OpenBSD here was a mistake.
6466 # Let's accept both of them until this is cleared up.
6467 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6468 lt_cv_file_magic_cmd=/usr/bin/file
6469 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6470 ;;
6471 esac
6472 else
6473 lt_cv_deplibs_check_method=pass_all
6474 fi
6475 ;;
6476
6477 gnu*)
6478 lt_cv_deplibs_check_method=pass_all
6479 ;;
6480
6481 haiku*)
6482 lt_cv_deplibs_check_method=pass_all
6483 ;;
6484
6485 hpux10.20* | hpux11*)
6486 lt_cv_file_magic_cmd=/usr/bin/file
6487 case $host_cpu in
6488 ia64*)
6489 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6490 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6491 ;;
6492 hppa*64*)
6493 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]'
6494 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6495 ;;
6496 *)
6497 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6498 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6499 ;;
6500 esac
6501 ;;
6502
6503 interix[3-9]*)
6504 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6505 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6506 ;;
6507
6508 irix5* | irix6* | nonstopux*)
6509 case $LD in
6510 *-32|*"-32 ") libmagic=32-bit;;
6511 *-n32|*"-n32 ") libmagic=N32;;
6512 *-64|*"-64 ") libmagic=64-bit;;
6513 *) libmagic=never-match;;
6514 esac
6515 lt_cv_deplibs_check_method=pass_all
6516 ;;
6517
6518 # This must be Linux ELF.
6519 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6520 lt_cv_deplibs_check_method=pass_all
6521 ;;
6522
6523 netbsd*)
6524 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6525 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6526 else
6527 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6528 fi
6529 ;;
6530
6531 newos6*)
6532 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6533 lt_cv_file_magic_cmd=/usr/bin/file
6534 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6535 ;;
6536
6537 *nto* | *qnx*)
6538 lt_cv_deplibs_check_method=pass_all
6539 ;;
6540
6541 openbsd*)
6542 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6543 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6544 else
6545 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6546 fi
6547 ;;
6548
6549 osf3* | osf4* | osf5*)
6550 lt_cv_deplibs_check_method=pass_all
6551 ;;
6552
6553 rdos*)
6554 lt_cv_deplibs_check_method=pass_all
6555 ;;
6556
6557 solaris*)
6558 lt_cv_deplibs_check_method=pass_all
6559 ;;
6560
6561 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6562 lt_cv_deplibs_check_method=pass_all
6563 ;;
6564
6565 sysv4 | sysv4.3*)
6566 case $host_vendor in
6567 motorola)
6568 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]'
6569 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6570 ;;
6571 ncr)
6572 lt_cv_deplibs_check_method=pass_all
6573 ;;
6574 sequent)
6575 lt_cv_file_magic_cmd='/bin/file'
6576 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6577 ;;
6578 sni)
6579 lt_cv_file_magic_cmd='/bin/file'
6580 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6581 lt_cv_file_magic_test_file=/lib/libc.so
6582 ;;
6583 siemens)
6584 lt_cv_deplibs_check_method=pass_all
6585 ;;
6586 pc)
6587 lt_cv_deplibs_check_method=pass_all
6588 ;;
6589 esac
6590 ;;
6591
6592 tpf*)
6593 lt_cv_deplibs_check_method=pass_all
6594 ;;
6595 vxworks*)
6596 # Assume VxWorks cross toolchains are built on Linux, possibly
6597 # as canadian for Windows hosts.
6598 lt_cv_deplibs_check_method=pass_all
6599 ;;
6600 esac
6601
6602 fi
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6604 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6605 file_magic_cmd=$lt_cv_file_magic_cmd
6606 deplibs_check_method=$lt_cv_deplibs_check_method
6607 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620 plugin_option=
6621 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6622 for plugin in $plugin_names; do
6623 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6624 if test x$plugin_so = x$plugin; then
6625 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6626 fi
6627 if test x$plugin_so != x$plugin; then
6628 plugin_option="--plugin $plugin_so"
6629 break
6630 fi
6631 done
6632
6633 if test -n "$ac_tool_prefix"; then
6634 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6635 set dummy ${ac_tool_prefix}ar; ac_word=$2
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6637 $as_echo_n "checking for $ac_word... " >&6; }
6638 if ${ac_cv_prog_AR+:} false; then :
6639 $as_echo_n "(cached) " >&6
6640 else
6641 if test -n "$AR"; then
6642 ac_cv_prog_AR="$AR" # Let the user override the test.
6643 else
6644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6645 for as_dir in $PATH
6646 do
6647 IFS=$as_save_IFS
6648 test -z "$as_dir" && as_dir=.
6649 for ac_exec_ext in '' $ac_executable_extensions; do
6650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6651 ac_cv_prog_AR="${ac_tool_prefix}ar"
6652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6653 break 2
6654 fi
6655 done
6656 done
6657 IFS=$as_save_IFS
6658
6659 fi
6660 fi
6661 AR=$ac_cv_prog_AR
6662 if test -n "$AR"; then
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6664 $as_echo "$AR" >&6; }
6665 else
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6667 $as_echo "no" >&6; }
6668 fi
6669
6670
6671 fi
6672 if test -z "$ac_cv_prog_AR"; then
6673 ac_ct_AR=$AR
6674 # Extract the first word of "ar", so it can be a program name with args.
6675 set dummy ar; ac_word=$2
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6677 $as_echo_n "checking for $ac_word... " >&6; }
6678 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6679 $as_echo_n "(cached) " >&6
6680 else
6681 if test -n "$ac_ct_AR"; then
6682 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6683 else
6684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6685 for as_dir in $PATH
6686 do
6687 IFS=$as_save_IFS
6688 test -z "$as_dir" && as_dir=.
6689 for ac_exec_ext in '' $ac_executable_extensions; do
6690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6691 ac_cv_prog_ac_ct_AR="ar"
6692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6693 break 2
6694 fi
6695 done
6696 done
6697 IFS=$as_save_IFS
6698
6699 fi
6700 fi
6701 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6702 if test -n "$ac_ct_AR"; then
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6704 $as_echo "$ac_ct_AR" >&6; }
6705 else
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6707 $as_echo "no" >&6; }
6708 fi
6709
6710 if test "x$ac_ct_AR" = x; then
6711 AR="false"
6712 else
6713 case $cross_compiling:$ac_tool_warned in
6714 yes:)
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6716 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6717 ac_tool_warned=yes ;;
6718 esac
6719 AR=$ac_ct_AR
6720 fi
6721 else
6722 AR="$ac_cv_prog_AR"
6723 fi
6724
6725 test -z "$AR" && AR=ar
6726 if test -n "$plugin_option"; then
6727 if $AR --help 2>&1 | grep -q "\--plugin"; then
6728 touch conftest.c
6729 $AR $plugin_option rc conftest.a conftest.c
6730 if test "$?" != 0; then
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6732 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6733 else
6734 AR="$AR $plugin_option"
6735 fi
6736 rm -f conftest.*
6737 fi
6738 fi
6739 test -z "$AR_FLAGS" && AR_FLAGS=cru
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751 if test -n "$ac_tool_prefix"; then
6752 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6753 set dummy ${ac_tool_prefix}strip; ac_word=$2
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6755 $as_echo_n "checking for $ac_word... " >&6; }
6756 if ${ac_cv_prog_STRIP+:} false; then :
6757 $as_echo_n "(cached) " >&6
6758 else
6759 if test -n "$STRIP"; then
6760 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6761 else
6762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6763 for as_dir in $PATH
6764 do
6765 IFS=$as_save_IFS
6766 test -z "$as_dir" && as_dir=.
6767 for ac_exec_ext in '' $ac_executable_extensions; do
6768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6769 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6771 break 2
6772 fi
6773 done
6774 done
6775 IFS=$as_save_IFS
6776
6777 fi
6778 fi
6779 STRIP=$ac_cv_prog_STRIP
6780 if test -n "$STRIP"; then
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6782 $as_echo "$STRIP" >&6; }
6783 else
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6785 $as_echo "no" >&6; }
6786 fi
6787
6788
6789 fi
6790 if test -z "$ac_cv_prog_STRIP"; then
6791 ac_ct_STRIP=$STRIP
6792 # Extract the first word of "strip", so it can be a program name with args.
6793 set dummy strip; ac_word=$2
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6795 $as_echo_n "checking for $ac_word... " >&6; }
6796 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6797 $as_echo_n "(cached) " >&6
6798 else
6799 if test -n "$ac_ct_STRIP"; then
6800 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6801 else
6802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6803 for as_dir in $PATH
6804 do
6805 IFS=$as_save_IFS
6806 test -z "$as_dir" && as_dir=.
6807 for ac_exec_ext in '' $ac_executable_extensions; do
6808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6809 ac_cv_prog_ac_ct_STRIP="strip"
6810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6811 break 2
6812 fi
6813 done
6814 done
6815 IFS=$as_save_IFS
6816
6817 fi
6818 fi
6819 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6820 if test -n "$ac_ct_STRIP"; then
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6822 $as_echo "$ac_ct_STRIP" >&6; }
6823 else
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6825 $as_echo "no" >&6; }
6826 fi
6827
6828 if test "x$ac_ct_STRIP" = x; then
6829 STRIP=":"
6830 else
6831 case $cross_compiling:$ac_tool_warned in
6832 yes:)
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6834 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6835 ac_tool_warned=yes ;;
6836 esac
6837 STRIP=$ac_ct_STRIP
6838 fi
6839 else
6840 STRIP="$ac_cv_prog_STRIP"
6841 fi
6842
6843 test -z "$STRIP" && STRIP=:
6844
6845
6846
6847
6848
6849
6850 if test -n "$ac_tool_prefix"; then
6851 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6852 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6854 $as_echo_n "checking for $ac_word... " >&6; }
6855 if ${ac_cv_prog_RANLIB+:} false; then :
6856 $as_echo_n "(cached) " >&6
6857 else
6858 if test -n "$RANLIB"; then
6859 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6860 else
6861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6862 for as_dir in $PATH
6863 do
6864 IFS=$as_save_IFS
6865 test -z "$as_dir" && as_dir=.
6866 for ac_exec_ext in '' $ac_executable_extensions; do
6867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6868 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6870 break 2
6871 fi
6872 done
6873 done
6874 IFS=$as_save_IFS
6875
6876 fi
6877 fi
6878 RANLIB=$ac_cv_prog_RANLIB
6879 if test -n "$RANLIB"; then
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6881 $as_echo "$RANLIB" >&6; }
6882 else
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6884 $as_echo "no" >&6; }
6885 fi
6886
6887
6888 fi
6889 if test -z "$ac_cv_prog_RANLIB"; then
6890 ac_ct_RANLIB=$RANLIB
6891 # Extract the first word of "ranlib", so it can be a program name with args.
6892 set dummy ranlib; ac_word=$2
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6894 $as_echo_n "checking for $ac_word... " >&6; }
6895 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6896 $as_echo_n "(cached) " >&6
6897 else
6898 if test -n "$ac_ct_RANLIB"; then
6899 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6900 else
6901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902 for as_dir in $PATH
6903 do
6904 IFS=$as_save_IFS
6905 test -z "$as_dir" && as_dir=.
6906 for ac_exec_ext in '' $ac_executable_extensions; do
6907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6908 ac_cv_prog_ac_ct_RANLIB="ranlib"
6909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6910 break 2
6911 fi
6912 done
6913 done
6914 IFS=$as_save_IFS
6915
6916 fi
6917 fi
6918 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6919 if test -n "$ac_ct_RANLIB"; then
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6921 $as_echo "$ac_ct_RANLIB" >&6; }
6922 else
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6924 $as_echo "no" >&6; }
6925 fi
6926
6927 if test "x$ac_ct_RANLIB" = x; then
6928 RANLIB=":"
6929 else
6930 case $cross_compiling:$ac_tool_warned in
6931 yes:)
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6933 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6934 ac_tool_warned=yes ;;
6935 esac
6936 RANLIB=$ac_ct_RANLIB
6937 fi
6938 else
6939 RANLIB="$ac_cv_prog_RANLIB"
6940 fi
6941
6942 test -z "$RANLIB" && RANLIB=:
6943 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6944 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6945 RANLIB="$RANLIB $plugin_option"
6946 fi
6947 fi
6948
6949
6950
6951
6952
6953
6954 # Determine commands to create old-style static archives.
6955 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6956 old_postinstall_cmds='chmod 644 $oldlib'
6957 old_postuninstall_cmds=
6958
6959 if test -n "$RANLIB"; then
6960 case $host_os in
6961 openbsd*)
6962 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6963 ;;
6964 *)
6965 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6966 ;;
6967 esac
6968 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6969 fi
6970
6971 case $host_os in
6972 darwin*)
6973 lock_old_archive_extraction=yes ;;
6974 *)
6975 lock_old_archive_extraction=no ;;
6976 esac
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998 for ac_prog in gawk mawk nawk awk
6999 do
7000 # Extract the first word of "$ac_prog", so it can be a program name with args.
7001 set dummy $ac_prog; ac_word=$2
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7003 $as_echo_n "checking for $ac_word... " >&6; }
7004 if ${ac_cv_prog_AWK+:} false; then :
7005 $as_echo_n "(cached) " >&6
7006 else
7007 if test -n "$AWK"; then
7008 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7009 else
7010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7011 for as_dir in $PATH
7012 do
7013 IFS=$as_save_IFS
7014 test -z "$as_dir" && as_dir=.
7015 for ac_exec_ext in '' $ac_executable_extensions; do
7016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7017 ac_cv_prog_AWK="$ac_prog"
7018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7019 break 2
7020 fi
7021 done
7022 done
7023 IFS=$as_save_IFS
7024
7025 fi
7026 fi
7027 AWK=$ac_cv_prog_AWK
7028 if test -n "$AWK"; then
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7030 $as_echo "$AWK" >&6; }
7031 else
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7033 $as_echo "no" >&6; }
7034 fi
7035
7036
7037 test -n "$AWK" && break
7038 done
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058 # If no C compiler was specified, use CC.
7059 LTCC=${LTCC-"$CC"}
7060
7061 # If no C compiler flags were specified, use CFLAGS.
7062 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7063
7064 # Allow CC to be a program name with arguments.
7065 compiler=$CC
7066
7067
7068 # Check for command to grab the raw symbol name followed by C symbol from nm.
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7070 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7071 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7072 $as_echo_n "(cached) " >&6
7073 else
7074
7075 # These are sane defaults that work on at least a few old systems.
7076 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7077
7078 # Character class describing NM global symbol codes.
7079 symcode='[BCDEGRST]'
7080
7081 # Regexp to match symbols that can be accessed directly from C.
7082 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7083
7084 # Define system-specific variables.
7085 case $host_os in
7086 aix*)
7087 symcode='[BCDT]'
7088 ;;
7089 cygwin* | mingw* | pw32* | cegcc*)
7090 symcode='[ABCDGISTW]'
7091 ;;
7092 hpux*)
7093 if test "$host_cpu" = ia64; then
7094 symcode='[ABCDEGRST]'
7095 fi
7096 ;;
7097 irix* | nonstopux*)
7098 symcode='[BCDEGRST]'
7099 ;;
7100 osf*)
7101 symcode='[BCDEGQRST]'
7102 ;;
7103 solaris*)
7104 symcode='[BCDRT]'
7105 ;;
7106 sco3.2v5*)
7107 symcode='[DT]'
7108 ;;
7109 sysv4.2uw2*)
7110 symcode='[DT]'
7111 ;;
7112 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7113 symcode='[ABDT]'
7114 ;;
7115 sysv4)
7116 symcode='[DFNSTU]'
7117 ;;
7118 esac
7119
7120 # If we're using GNU nm, then use its standard symbol codes.
7121 case `$NM -V 2>&1` in
7122 *GNU* | *'with BFD'*)
7123 symcode='[ABCDGIRSTW]' ;;
7124 esac
7125
7126 # Transform an extracted symbol line into a proper C declaration.
7127 # Some systems (esp. on ia64) link data and code symbols differently,
7128 # so use this general approach.
7129 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7130
7131 # Transform an extracted symbol line into symbol name and symbol address
7132 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7133 lt_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'"
7134
7135 # Handle CRLF in mingw tool chain
7136 opt_cr=
7137 case $build_os in
7138 mingw*)
7139 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7140 ;;
7141 esac
7142
7143 # Try without a prefix underscore, then with it.
7144 for ac_symprfx in "" "_"; do
7145
7146 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7147 symxfrm="\\1 $ac_symprfx\\2 \\2"
7148
7149 # Write the raw and C identifiers.
7150 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7151 # Fake it for dumpbin and say T for any non-static function
7152 # and D for any global variable.
7153 # Also find C++ and __fastcall symbols from MSVC++,
7154 # which start with @ or ?.
7155 lt_cv_sys_global_symbol_pipe="$AWK '"\
7156 " {last_section=section; section=\$ 3};"\
7157 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7158 " \$ 0!~/External *\|/{next};"\
7159 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7160 " {if(hide[section]) next};"\
7161 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7162 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7163 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7164 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7165 " ' prfx=^$ac_symprfx"
7166 else
7167 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7168 fi
7169
7170 # Check to see that the pipe works correctly.
7171 pipe_works=no
7172
7173 rm -f conftest*
7174 cat > conftest.$ac_ext <<_LT_EOF
7175 #ifdef __cplusplus
7176 extern "C" {
7177 #endif
7178 char nm_test_var;
7179 void nm_test_func(void);
7180 void nm_test_func(void){}
7181 #ifdef __cplusplus
7182 }
7183 #endif
7184 int main(){nm_test_var='a';nm_test_func();return(0);}
7185 _LT_EOF
7186
7187 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7188 (eval $ac_compile) 2>&5
7189 ac_status=$?
7190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7191 test $ac_status = 0; }; then
7192 # Now try to grab the symbols.
7193 nlist=conftest.nm
7194 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7195 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7196 ac_status=$?
7197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7198 test $ac_status = 0; } && test -s "$nlist"; then
7199 # Try sorting and uniquifying the output.
7200 if sort "$nlist" | uniq > "$nlist"T; then
7201 mv -f "$nlist"T "$nlist"
7202 else
7203 rm -f "$nlist"T
7204 fi
7205
7206 # Make sure that we snagged all the symbols we need.
7207 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7208 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7209 cat <<_LT_EOF > conftest.$ac_ext
7210 #ifdef __cplusplus
7211 extern "C" {
7212 #endif
7213
7214 _LT_EOF
7215 # Now generate the symbol file.
7216 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7217
7218 cat <<_LT_EOF >> conftest.$ac_ext
7219
7220 /* The mapping between symbol names and symbols. */
7221 const struct {
7222 const char *name;
7223 void *address;
7224 }
7225 lt__PROGRAM__LTX_preloaded_symbols[] =
7226 {
7227 { "@PROGRAM@", (void *) 0 },
7228 _LT_EOF
7229 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7230 cat <<\_LT_EOF >> conftest.$ac_ext
7231 {0, (void *) 0}
7232 };
7233
7234 /* This works around a problem in FreeBSD linker */
7235 #ifdef FREEBSD_WORKAROUND
7236 static const void *lt_preloaded_setup() {
7237 return lt__PROGRAM__LTX_preloaded_symbols;
7238 }
7239 #endif
7240
7241 #ifdef __cplusplus
7242 }
7243 #endif
7244 _LT_EOF
7245 # Now try linking the two files.
7246 mv conftest.$ac_objext conftstm.$ac_objext
7247 lt_save_LIBS="$LIBS"
7248 lt_save_CFLAGS="$CFLAGS"
7249 LIBS="conftstm.$ac_objext"
7250 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7251 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7252 (eval $ac_link) 2>&5
7253 ac_status=$?
7254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7255 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7256 pipe_works=yes
7257 fi
7258 LIBS="$lt_save_LIBS"
7259 CFLAGS="$lt_save_CFLAGS"
7260 else
7261 echo "cannot find nm_test_func in $nlist" >&5
7262 fi
7263 else
7264 echo "cannot find nm_test_var in $nlist" >&5
7265 fi
7266 else
7267 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7268 fi
7269 else
7270 echo "$progname: failed program was:" >&5
7271 cat conftest.$ac_ext >&5
7272 fi
7273 rm -rf conftest* conftst*
7274
7275 # Do not use the global_symbol_pipe unless it works.
7276 if test "$pipe_works" = yes; then
7277 break
7278 else
7279 lt_cv_sys_global_symbol_pipe=
7280 fi
7281 done
7282
7283 fi
7284
7285 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7286 lt_cv_sys_global_symbol_to_cdecl=
7287 fi
7288 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7290 $as_echo "failed" >&6; }
7291 else
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7293 $as_echo "ok" >&6; }
7294 fi
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317 # Check whether --enable-libtool-lock was given.
7318 if test "${enable_libtool_lock+set}" = set; then :
7319 enableval=$enable_libtool_lock;
7320 fi
7321
7322 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7323
7324 # Some flags need to be propagated to the compiler or linker for good
7325 # libtool support.
7326 case $host in
7327 ia64-*-hpux*)
7328 # Find out which ABI we are using.
7329 echo 'int i;' > conftest.$ac_ext
7330 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7331 (eval $ac_compile) 2>&5
7332 ac_status=$?
7333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7334 test $ac_status = 0; }; then
7335 case `/usr/bin/file conftest.$ac_objext` in
7336 *ELF-32*)
7337 HPUX_IA64_MODE="32"
7338 ;;
7339 *ELF-64*)
7340 HPUX_IA64_MODE="64"
7341 ;;
7342 esac
7343 fi
7344 rm -rf conftest*
7345 ;;
7346 *-*-irix6*)
7347 # Find out which ABI we are using.
7348 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7349 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7350 (eval $ac_compile) 2>&5
7351 ac_status=$?
7352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7353 test $ac_status = 0; }; then
7354 if test "$lt_cv_prog_gnu_ld" = yes; then
7355 case `/usr/bin/file conftest.$ac_objext` in
7356 *32-bit*)
7357 LD="${LD-ld} -melf32bsmip"
7358 ;;
7359 *N32*)
7360 LD="${LD-ld} -melf32bmipn32"
7361 ;;
7362 *64-bit*)
7363 LD="${LD-ld} -melf64bmip"
7364 ;;
7365 esac
7366 else
7367 case `/usr/bin/file conftest.$ac_objext` in
7368 *32-bit*)
7369 LD="${LD-ld} -32"
7370 ;;
7371 *N32*)
7372 LD="${LD-ld} -n32"
7373 ;;
7374 *64-bit*)
7375 LD="${LD-ld} -64"
7376 ;;
7377 esac
7378 fi
7379 fi
7380 rm -rf conftest*
7381 ;;
7382
7383 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7384 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7385 # Find out which ABI we are using.
7386 echo 'int i;' > conftest.$ac_ext
7387 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7388 (eval $ac_compile) 2>&5
7389 ac_status=$?
7390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7391 test $ac_status = 0; }; then
7392 case `/usr/bin/file conftest.o` in
7393 *32-bit*)
7394 case $host in
7395 x86_64-*kfreebsd*-gnu)
7396 LD="${LD-ld} -m elf_i386_fbsd"
7397 ;;
7398 x86_64-*linux*)
7399 case `/usr/bin/file conftest.o` in
7400 *x86-64*)
7401 LD="${LD-ld} -m elf32_x86_64"
7402 ;;
7403 *)
7404 LD="${LD-ld} -m elf_i386"
7405 ;;
7406 esac
7407 ;;
7408 powerpc64le-*linux*)
7409 LD="${LD-ld} -m elf32lppclinux"
7410 ;;
7411 powerpc64-*linux*)
7412 LD="${LD-ld} -m elf32ppclinux"
7413 ;;
7414 s390x-*linux*)
7415 LD="${LD-ld} -m elf_s390"
7416 ;;
7417 sparc64-*linux*)
7418 LD="${LD-ld} -m elf32_sparc"
7419 ;;
7420 esac
7421 ;;
7422 *64-bit*)
7423 case $host in
7424 x86_64-*kfreebsd*-gnu)
7425 LD="${LD-ld} -m elf_x86_64_fbsd"
7426 ;;
7427 x86_64-*linux*)
7428 LD="${LD-ld} -m elf_x86_64"
7429 ;;
7430 powerpcle-*linux*)
7431 LD="${LD-ld} -m elf64lppc"
7432 ;;
7433 powerpc-*linux*)
7434 LD="${LD-ld} -m elf64ppc"
7435 ;;
7436 s390*-*linux*|s390*-*tpf*)
7437 LD="${LD-ld} -m elf64_s390"
7438 ;;
7439 sparc*-*linux*)
7440 LD="${LD-ld} -m elf64_sparc"
7441 ;;
7442 esac
7443 ;;
7444 esac
7445 fi
7446 rm -rf conftest*
7447 ;;
7448
7449 *-*-sco3.2v5*)
7450 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7451 SAVE_CFLAGS="$CFLAGS"
7452 CFLAGS="$CFLAGS -belf"
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7454 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7455 if ${lt_cv_cc_needs_belf+:} false; then :
7456 $as_echo_n "(cached) " >&6
7457 else
7458 ac_ext=c
7459 ac_cpp='$CPP $CPPFLAGS'
7460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7463
7464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7465 /* end confdefs.h. */
7466
7467 int
7468 main ()
7469 {
7470
7471 ;
7472 return 0;
7473 }
7474 _ACEOF
7475 if ac_fn_c_try_link "$LINENO"; then :
7476 lt_cv_cc_needs_belf=yes
7477 else
7478 lt_cv_cc_needs_belf=no
7479 fi
7480 rm -f core conftest.err conftest.$ac_objext \
7481 conftest$ac_exeext conftest.$ac_ext
7482 ac_ext=c
7483 ac_cpp='$CPP $CPPFLAGS'
7484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7487
7488 fi
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7490 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7491 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7492 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7493 CFLAGS="$SAVE_CFLAGS"
7494 fi
7495 ;;
7496 sparc*-*solaris*)
7497 # Find out which ABI we are using.
7498 echo 'int i;' > conftest.$ac_ext
7499 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7500 (eval $ac_compile) 2>&5
7501 ac_status=$?
7502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7503 test $ac_status = 0; }; then
7504 case `/usr/bin/file conftest.o` in
7505 *64-bit*)
7506 case $lt_cv_prog_gnu_ld in
7507 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7508 *)
7509 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7510 LD="${LD-ld} -64"
7511 fi
7512 ;;
7513 esac
7514 ;;
7515 esac
7516 fi
7517 rm -rf conftest*
7518 ;;
7519 esac
7520
7521 need_locks="$enable_libtool_lock"
7522
7523
7524 case $host_os in
7525 rhapsody* | darwin*)
7526 if test -n "$ac_tool_prefix"; then
7527 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7528 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7530 $as_echo_n "checking for $ac_word... " >&6; }
7531 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7532 $as_echo_n "(cached) " >&6
7533 else
7534 if test -n "$DSYMUTIL"; then
7535 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7536 else
7537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7538 for as_dir in $PATH
7539 do
7540 IFS=$as_save_IFS
7541 test -z "$as_dir" && as_dir=.
7542 for ac_exec_ext in '' $ac_executable_extensions; do
7543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7544 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7546 break 2
7547 fi
7548 done
7549 done
7550 IFS=$as_save_IFS
7551
7552 fi
7553 fi
7554 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7555 if test -n "$DSYMUTIL"; then
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7557 $as_echo "$DSYMUTIL" >&6; }
7558 else
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7560 $as_echo "no" >&6; }
7561 fi
7562
7563
7564 fi
7565 if test -z "$ac_cv_prog_DSYMUTIL"; then
7566 ac_ct_DSYMUTIL=$DSYMUTIL
7567 # Extract the first word of "dsymutil", so it can be a program name with args.
7568 set dummy dsymutil; ac_word=$2
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7570 $as_echo_n "checking for $ac_word... " >&6; }
7571 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7572 $as_echo_n "(cached) " >&6
7573 else
7574 if test -n "$ac_ct_DSYMUTIL"; then
7575 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7576 else
7577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7578 for as_dir in $PATH
7579 do
7580 IFS=$as_save_IFS
7581 test -z "$as_dir" && as_dir=.
7582 for ac_exec_ext in '' $ac_executable_extensions; do
7583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7584 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7586 break 2
7587 fi
7588 done
7589 done
7590 IFS=$as_save_IFS
7591
7592 fi
7593 fi
7594 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7595 if test -n "$ac_ct_DSYMUTIL"; then
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7597 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7598 else
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7600 $as_echo "no" >&6; }
7601 fi
7602
7603 if test "x$ac_ct_DSYMUTIL" = x; then
7604 DSYMUTIL=":"
7605 else
7606 case $cross_compiling:$ac_tool_warned in
7607 yes:)
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7610 ac_tool_warned=yes ;;
7611 esac
7612 DSYMUTIL=$ac_ct_DSYMUTIL
7613 fi
7614 else
7615 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7616 fi
7617
7618 if test -n "$ac_tool_prefix"; then
7619 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7620 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7622 $as_echo_n "checking for $ac_word... " >&6; }
7623 if ${ac_cv_prog_NMEDIT+:} false; then :
7624 $as_echo_n "(cached) " >&6
7625 else
7626 if test -n "$NMEDIT"; then
7627 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7628 else
7629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7630 for as_dir in $PATH
7631 do
7632 IFS=$as_save_IFS
7633 test -z "$as_dir" && as_dir=.
7634 for ac_exec_ext in '' $ac_executable_extensions; do
7635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7636 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7638 break 2
7639 fi
7640 done
7641 done
7642 IFS=$as_save_IFS
7643
7644 fi
7645 fi
7646 NMEDIT=$ac_cv_prog_NMEDIT
7647 if test -n "$NMEDIT"; then
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7649 $as_echo "$NMEDIT" >&6; }
7650 else
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7652 $as_echo "no" >&6; }
7653 fi
7654
7655
7656 fi
7657 if test -z "$ac_cv_prog_NMEDIT"; then
7658 ac_ct_NMEDIT=$NMEDIT
7659 # Extract the first word of "nmedit", so it can be a program name with args.
7660 set dummy nmedit; ac_word=$2
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7662 $as_echo_n "checking for $ac_word... " >&6; }
7663 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7664 $as_echo_n "(cached) " >&6
7665 else
7666 if test -n "$ac_ct_NMEDIT"; then
7667 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7668 else
7669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7670 for as_dir in $PATH
7671 do
7672 IFS=$as_save_IFS
7673 test -z "$as_dir" && as_dir=.
7674 for ac_exec_ext in '' $ac_executable_extensions; do
7675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7676 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7678 break 2
7679 fi
7680 done
7681 done
7682 IFS=$as_save_IFS
7683
7684 fi
7685 fi
7686 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7687 if test -n "$ac_ct_NMEDIT"; then
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7689 $as_echo "$ac_ct_NMEDIT" >&6; }
7690 else
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7692 $as_echo "no" >&6; }
7693 fi
7694
7695 if test "x$ac_ct_NMEDIT" = x; then
7696 NMEDIT=":"
7697 else
7698 case $cross_compiling:$ac_tool_warned in
7699 yes:)
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7702 ac_tool_warned=yes ;;
7703 esac
7704 NMEDIT=$ac_ct_NMEDIT
7705 fi
7706 else
7707 NMEDIT="$ac_cv_prog_NMEDIT"
7708 fi
7709
7710 if test -n "$ac_tool_prefix"; then
7711 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7712 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7714 $as_echo_n "checking for $ac_word... " >&6; }
7715 if ${ac_cv_prog_LIPO+:} false; then :
7716 $as_echo_n "(cached) " >&6
7717 else
7718 if test -n "$LIPO"; then
7719 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7720 else
7721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7722 for as_dir in $PATH
7723 do
7724 IFS=$as_save_IFS
7725 test -z "$as_dir" && as_dir=.
7726 for ac_exec_ext in '' $ac_executable_extensions; do
7727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7728 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7730 break 2
7731 fi
7732 done
7733 done
7734 IFS=$as_save_IFS
7735
7736 fi
7737 fi
7738 LIPO=$ac_cv_prog_LIPO
7739 if test -n "$LIPO"; then
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7741 $as_echo "$LIPO" >&6; }
7742 else
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7744 $as_echo "no" >&6; }
7745 fi
7746
7747
7748 fi
7749 if test -z "$ac_cv_prog_LIPO"; then
7750 ac_ct_LIPO=$LIPO
7751 # Extract the first word of "lipo", so it can be a program name with args.
7752 set dummy lipo; ac_word=$2
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7754 $as_echo_n "checking for $ac_word... " >&6; }
7755 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7756 $as_echo_n "(cached) " >&6
7757 else
7758 if test -n "$ac_ct_LIPO"; then
7759 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7760 else
7761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7762 for as_dir in $PATH
7763 do
7764 IFS=$as_save_IFS
7765 test -z "$as_dir" && as_dir=.
7766 for ac_exec_ext in '' $ac_executable_extensions; do
7767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7768 ac_cv_prog_ac_ct_LIPO="lipo"
7769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7770 break 2
7771 fi
7772 done
7773 done
7774 IFS=$as_save_IFS
7775
7776 fi
7777 fi
7778 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7779 if test -n "$ac_ct_LIPO"; then
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7781 $as_echo "$ac_ct_LIPO" >&6; }
7782 else
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7784 $as_echo "no" >&6; }
7785 fi
7786
7787 if test "x$ac_ct_LIPO" = x; then
7788 LIPO=":"
7789 else
7790 case $cross_compiling:$ac_tool_warned in
7791 yes:)
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7793 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7794 ac_tool_warned=yes ;;
7795 esac
7796 LIPO=$ac_ct_LIPO
7797 fi
7798 else
7799 LIPO="$ac_cv_prog_LIPO"
7800 fi
7801
7802 if test -n "$ac_tool_prefix"; then
7803 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7804 set dummy ${ac_tool_prefix}otool; ac_word=$2
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7806 $as_echo_n "checking for $ac_word... " >&6; }
7807 if ${ac_cv_prog_OTOOL+:} false; then :
7808 $as_echo_n "(cached) " >&6
7809 else
7810 if test -n "$OTOOL"; then
7811 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7812 else
7813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7814 for as_dir in $PATH
7815 do
7816 IFS=$as_save_IFS
7817 test -z "$as_dir" && as_dir=.
7818 for ac_exec_ext in '' $ac_executable_extensions; do
7819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7820 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7822 break 2
7823 fi
7824 done
7825 done
7826 IFS=$as_save_IFS
7827
7828 fi
7829 fi
7830 OTOOL=$ac_cv_prog_OTOOL
7831 if test -n "$OTOOL"; then
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7833 $as_echo "$OTOOL" >&6; }
7834 else
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7836 $as_echo "no" >&6; }
7837 fi
7838
7839
7840 fi
7841 if test -z "$ac_cv_prog_OTOOL"; then
7842 ac_ct_OTOOL=$OTOOL
7843 # Extract the first word of "otool", so it can be a program name with args.
7844 set dummy otool; ac_word=$2
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7846 $as_echo_n "checking for $ac_word... " >&6; }
7847 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7848 $as_echo_n "(cached) " >&6
7849 else
7850 if test -n "$ac_ct_OTOOL"; then
7851 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7852 else
7853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7854 for as_dir in $PATH
7855 do
7856 IFS=$as_save_IFS
7857 test -z "$as_dir" && as_dir=.
7858 for ac_exec_ext in '' $ac_executable_extensions; do
7859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7860 ac_cv_prog_ac_ct_OTOOL="otool"
7861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7862 break 2
7863 fi
7864 done
7865 done
7866 IFS=$as_save_IFS
7867
7868 fi
7869 fi
7870 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7871 if test -n "$ac_ct_OTOOL"; then
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7873 $as_echo "$ac_ct_OTOOL" >&6; }
7874 else
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7876 $as_echo "no" >&6; }
7877 fi
7878
7879 if test "x$ac_ct_OTOOL" = x; then
7880 OTOOL=":"
7881 else
7882 case $cross_compiling:$ac_tool_warned in
7883 yes:)
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7885 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7886 ac_tool_warned=yes ;;
7887 esac
7888 OTOOL=$ac_ct_OTOOL
7889 fi
7890 else
7891 OTOOL="$ac_cv_prog_OTOOL"
7892 fi
7893
7894 if test -n "$ac_tool_prefix"; then
7895 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7896 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7898 $as_echo_n "checking for $ac_word... " >&6; }
7899 if ${ac_cv_prog_OTOOL64+:} false; then :
7900 $as_echo_n "(cached) " >&6
7901 else
7902 if test -n "$OTOOL64"; then
7903 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7904 else
7905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7906 for as_dir in $PATH
7907 do
7908 IFS=$as_save_IFS
7909 test -z "$as_dir" && as_dir=.
7910 for ac_exec_ext in '' $ac_executable_extensions; do
7911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7912 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7914 break 2
7915 fi
7916 done
7917 done
7918 IFS=$as_save_IFS
7919
7920 fi
7921 fi
7922 OTOOL64=$ac_cv_prog_OTOOL64
7923 if test -n "$OTOOL64"; then
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7925 $as_echo "$OTOOL64" >&6; }
7926 else
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7928 $as_echo "no" >&6; }
7929 fi
7930
7931
7932 fi
7933 if test -z "$ac_cv_prog_OTOOL64"; then
7934 ac_ct_OTOOL64=$OTOOL64
7935 # Extract the first word of "otool64", so it can be a program name with args.
7936 set dummy otool64; ac_word=$2
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7938 $as_echo_n "checking for $ac_word... " >&6; }
7939 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7940 $as_echo_n "(cached) " >&6
7941 else
7942 if test -n "$ac_ct_OTOOL64"; then
7943 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7944 else
7945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7946 for as_dir in $PATH
7947 do
7948 IFS=$as_save_IFS
7949 test -z "$as_dir" && as_dir=.
7950 for ac_exec_ext in '' $ac_executable_extensions; do
7951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7952 ac_cv_prog_ac_ct_OTOOL64="otool64"
7953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7954 break 2
7955 fi
7956 done
7957 done
7958 IFS=$as_save_IFS
7959
7960 fi
7961 fi
7962 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7963 if test -n "$ac_ct_OTOOL64"; then
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7965 $as_echo "$ac_ct_OTOOL64" >&6; }
7966 else
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7968 $as_echo "no" >&6; }
7969 fi
7970
7971 if test "x$ac_ct_OTOOL64" = x; then
7972 OTOOL64=":"
7973 else
7974 case $cross_compiling:$ac_tool_warned in
7975 yes:)
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7977 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7978 ac_tool_warned=yes ;;
7979 esac
7980 OTOOL64=$ac_ct_OTOOL64
7981 fi
7982 else
7983 OTOOL64="$ac_cv_prog_OTOOL64"
7984 fi
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8013 $as_echo_n "checking for -single_module linker flag... " >&6; }
8014 if ${lt_cv_apple_cc_single_mod+:} false; then :
8015 $as_echo_n "(cached) " >&6
8016 else
8017 lt_cv_apple_cc_single_mod=no
8018 if test -z "${LT_MULTI_MODULE}"; then
8019 # By default we will add the -single_module flag. You can override
8020 # by either setting the environment variable LT_MULTI_MODULE
8021 # non-empty at configure time, or by adding -multi_module to the
8022 # link flags.
8023 rm -rf libconftest.dylib*
8024 echo "int foo(void){return 1;}" > conftest.c
8025 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8026 -dynamiclib -Wl,-single_module conftest.c" >&5
8027 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8028 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8029 _lt_result=$?
8030 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8031 lt_cv_apple_cc_single_mod=yes
8032 else
8033 cat conftest.err >&5
8034 fi
8035 rm -rf libconftest.dylib*
8036 rm -f conftest.*
8037 fi
8038 fi
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8040 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8042 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8043 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8044 $as_echo_n "(cached) " >&6
8045 else
8046 lt_cv_ld_exported_symbols_list=no
8047 save_LDFLAGS=$LDFLAGS
8048 echo "_main" > conftest.sym
8049 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8051 /* end confdefs.h. */
8052
8053 int
8054 main ()
8055 {
8056
8057 ;
8058 return 0;
8059 }
8060 _ACEOF
8061 if ac_fn_c_try_link "$LINENO"; then :
8062 lt_cv_ld_exported_symbols_list=yes
8063 else
8064 lt_cv_ld_exported_symbols_list=no
8065 fi
8066 rm -f core conftest.err conftest.$ac_objext \
8067 conftest$ac_exeext conftest.$ac_ext
8068 LDFLAGS="$save_LDFLAGS"
8069
8070 fi
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8072 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8074 $as_echo_n "checking for -force_load linker flag... " >&6; }
8075 if ${lt_cv_ld_force_load+:} false; then :
8076 $as_echo_n "(cached) " >&6
8077 else
8078 lt_cv_ld_force_load=no
8079 cat > conftest.c << _LT_EOF
8080 int forced_loaded() { return 2;}
8081 _LT_EOF
8082 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8083 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8084 echo "$AR cru libconftest.a conftest.o" >&5
8085 $AR cru libconftest.a conftest.o 2>&5
8086 cat > conftest.c << _LT_EOF
8087 int main() { return 0;}
8088 _LT_EOF
8089 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8090 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8091 _lt_result=$?
8092 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8093 lt_cv_ld_force_load=yes
8094 else
8095 cat conftest.err >&5
8096 fi
8097 rm -f conftest.err libconftest.a conftest conftest.c
8098 rm -rf conftest.dSYM
8099
8100 fi
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8102 $as_echo "$lt_cv_ld_force_load" >&6; }
8103 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8104 # build without first building modern cctools / linker.
8105 case $host_cpu-$host_os in
8106 *-rhapsody* | *-darwin1.[012])
8107 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8108 *-darwin1.*)
8109 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8110 *-darwin*)
8111 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8112 # deployment target is forced to an earlier version.
8113 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8114 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
8115 ;;
8116 10.[012][,.]*)
8117 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8118 ;;
8119 *)
8120 ;;
8121 esac
8122 ;;
8123 esac
8124 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8125 _lt_dar_single_mod='$single_module'
8126 fi
8127 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8128 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8129 else
8130 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8131 fi
8132 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8133 _lt_dsymutil='~$DSYMUTIL $lib || :'
8134 else
8135 _lt_dsymutil=
8136 fi
8137 ;;
8138 esac
8139
8140 for ac_header in dlfcn.h
8141 do :
8142 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8143 "
8144 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8145 cat >>confdefs.h <<_ACEOF
8146 #define HAVE_DLFCN_H 1
8147 _ACEOF
8148
8149 fi
8150
8151 done
8152
8153
8154 ac_header_dirent=no
8155 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8156 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8158 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8159 if eval \${$as_ac_Header+:} false; then :
8160 $as_echo_n "(cached) " >&6
8161 else
8162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8163 /* end confdefs.h. */
8164 #include <sys/types.h>
8165 #include <$ac_hdr>
8166
8167 int
8168 main ()
8169 {
8170 if ((DIR *) 0)
8171 return 0;
8172 ;
8173 return 0;
8174 }
8175 _ACEOF
8176 if ac_fn_c_try_compile "$LINENO"; then :
8177 eval "$as_ac_Header=yes"
8178 else
8179 eval "$as_ac_Header=no"
8180 fi
8181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8182 fi
8183 eval ac_res=\$$as_ac_Header
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8185 $as_echo "$ac_res" >&6; }
8186 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8187 cat >>confdefs.h <<_ACEOF
8188 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8189 _ACEOF
8190
8191 ac_header_dirent=$ac_hdr; break
8192 fi
8193
8194 done
8195 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8196 if test $ac_header_dirent = dirent.h; then
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8198 $as_echo_n "checking for library containing opendir... " >&6; }
8199 if ${ac_cv_search_opendir+:} false; then :
8200 $as_echo_n "(cached) " >&6
8201 else
8202 ac_func_search_save_LIBS=$LIBS
8203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8204 /* end confdefs.h. */
8205
8206 /* Override any GCC internal prototype to avoid an error.
8207 Use char because int might match the return type of a GCC
8208 builtin and then its argument prototype would still apply. */
8209 #ifdef __cplusplus
8210 extern "C"
8211 #endif
8212 char opendir ();
8213 int
8214 main ()
8215 {
8216 return opendir ();
8217 ;
8218 return 0;
8219 }
8220 _ACEOF
8221 for ac_lib in '' dir; do
8222 if test -z "$ac_lib"; then
8223 ac_res="none required"
8224 else
8225 ac_res=-l$ac_lib
8226 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8227 fi
8228 if ac_fn_c_try_link "$LINENO"; then :
8229 ac_cv_search_opendir=$ac_res
8230 fi
8231 rm -f core conftest.err conftest.$ac_objext \
8232 conftest$ac_exeext
8233 if ${ac_cv_search_opendir+:} false; then :
8234 break
8235 fi
8236 done
8237 if ${ac_cv_search_opendir+:} false; then :
8238
8239 else
8240 ac_cv_search_opendir=no
8241 fi
8242 rm conftest.$ac_ext
8243 LIBS=$ac_func_search_save_LIBS
8244 fi
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8246 $as_echo "$ac_cv_search_opendir" >&6; }
8247 ac_res=$ac_cv_search_opendir
8248 if test "$ac_res" != no; then :
8249 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8250
8251 fi
8252
8253 else
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8255 $as_echo_n "checking for library containing opendir... " >&6; }
8256 if ${ac_cv_search_opendir+:} false; then :
8257 $as_echo_n "(cached) " >&6
8258 else
8259 ac_func_search_save_LIBS=$LIBS
8260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8261 /* end confdefs.h. */
8262
8263 /* Override any GCC internal prototype to avoid an error.
8264 Use char because int might match the return type of a GCC
8265 builtin and then its argument prototype would still apply. */
8266 #ifdef __cplusplus
8267 extern "C"
8268 #endif
8269 char opendir ();
8270 int
8271 main ()
8272 {
8273 return opendir ();
8274 ;
8275 return 0;
8276 }
8277 _ACEOF
8278 for ac_lib in '' x; do
8279 if test -z "$ac_lib"; then
8280 ac_res="none required"
8281 else
8282 ac_res=-l$ac_lib
8283 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8284 fi
8285 if ac_fn_c_try_link "$LINENO"; then :
8286 ac_cv_search_opendir=$ac_res
8287 fi
8288 rm -f core conftest.err conftest.$ac_objext \
8289 conftest$ac_exeext
8290 if ${ac_cv_search_opendir+:} false; then :
8291 break
8292 fi
8293 done
8294 if ${ac_cv_search_opendir+:} false; then :
8295
8296 else
8297 ac_cv_search_opendir=no
8298 fi
8299 rm conftest.$ac_ext
8300 LIBS=$ac_func_search_save_LIBS
8301 fi
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8303 $as_echo "$ac_cv_search_opendir" >&6; }
8304 ac_res=$ac_cv_search_opendir
8305 if test "$ac_res" != no; then :
8306 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8307
8308 fi
8309
8310 fi
8311
8312
8313
8314
8315 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
8316 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8317
8318 cat >>confdefs.h <<_ACEOF
8319 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8320 _ACEOF
8321
8322
8323 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
8324
8325 fi
8326
8327
8328 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
8329 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8330
8331 cat >>confdefs.h <<_ACEOF
8332 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
8333 _ACEOF
8334
8335
8336 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
8337
8338 else
8339 case " $LIBOBJS " in
8340 *" fileblocks.$ac_objext "* ) ;;
8341 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
8342 ;;
8343 esac
8344
8345 fi
8346
8347
8348 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
8349 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
8350
8351 cat >>confdefs.h <<_ACEOF
8352 #define HAVE_STRUCT_STAT_ST_RDEV 1
8353 _ACEOF
8354
8355
8356 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
8357
8358 fi
8359
8360
8361 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8362 #include <$ac_cv_struct_tm>
8363
8364 "
8365 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
8366
8367 cat >>confdefs.h <<_ACEOF
8368 #define HAVE_STRUCT_TM_TM_ZONE 1
8369 _ACEOF
8370
8371
8372 fi
8373
8374 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8375
8376 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8377
8378 else
8379 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8380 "
8381 if test "x$ac_cv_have_decl_tzname" = xyes; then :
8382 ac_have_decl=1
8383 else
8384 ac_have_decl=0
8385 fi
8386
8387 cat >>confdefs.h <<_ACEOF
8388 #define HAVE_DECL_TZNAME $ac_have_decl
8389 _ACEOF
8390
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8392 $as_echo_n "checking for tzname... " >&6; }
8393 if ${ac_cv_var_tzname+:} false; then :
8394 $as_echo_n "(cached) " >&6
8395 else
8396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8397 /* end confdefs.h. */
8398 #include <time.h>
8399 #if !HAVE_DECL_TZNAME
8400 extern char *tzname[];
8401 #endif
8402
8403 int
8404 main ()
8405 {
8406 return tzname[0][0];
8407 ;
8408 return 0;
8409 }
8410 _ACEOF
8411 if ac_fn_c_try_link "$LINENO"; then :
8412 ac_cv_var_tzname=yes
8413 else
8414 ac_cv_var_tzname=no
8415 fi
8416 rm -f core conftest.err conftest.$ac_objext \
8417 conftest$ac_exeext conftest.$ac_ext
8418 fi
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8420 $as_echo "$ac_cv_var_tzname" >&6; }
8421 if test $ac_cv_var_tzname = yes; then
8422
8423 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8424
8425 fi
8426 fi
8427
8428
8429 ac_fn_c_check_member "$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H
8430 #include <sys/types.h>
8431 #endif
8432 #include <sys/stat.h>
8433 "
8434 if test "x$ac_cv_member_struct_stat_st_dev" = xyes; then :
8435
8436 cat >>confdefs.h <<_ACEOF
8437 #define HAVE_STRUCT_STAT_ST_DEV 1
8438 _ACEOF
8439
8440
8441 fi
8442 ac_fn_c_check_member "$LINENO" "struct stat" "st_ino" "ac_cv_member_struct_stat_st_ino" "#ifdef HAVE_SYS_TYPES_H
8443 #include <sys/types.h>
8444 #endif
8445 #include <sys/stat.h>
8446 "
8447 if test "x$ac_cv_member_struct_stat_st_ino" = xyes; then :
8448
8449 cat >>confdefs.h <<_ACEOF
8450 #define HAVE_STRUCT_STAT_ST_INO 1
8451 _ACEOF
8452
8453
8454 fi
8455 ac_fn_c_check_member "$LINENO" "struct stat" "st_mode" "ac_cv_member_struct_stat_st_mode" "#ifdef HAVE_SYS_TYPES_H
8456 #include <sys/types.h>
8457 #endif
8458 #include <sys/stat.h>
8459 "
8460 if test "x$ac_cv_member_struct_stat_st_mode" = xyes; then :
8461
8462 cat >>confdefs.h <<_ACEOF
8463 #define HAVE_STRUCT_STAT_ST_MODE 1
8464 _ACEOF
8465
8466
8467 fi
8468 ac_fn_c_check_member "$LINENO" "struct stat" "st_nlink" "ac_cv_member_struct_stat_st_nlink" "#ifdef HAVE_SYS_TYPES_H
8469 #include <sys/types.h>
8470 #endif
8471 #include <sys/stat.h>
8472 "
8473 if test "x$ac_cv_member_struct_stat_st_nlink" = xyes; then :
8474
8475 cat >>confdefs.h <<_ACEOF
8476 #define HAVE_STRUCT_STAT_ST_NLINK 1
8477 _ACEOF
8478
8479
8480 fi
8481 ac_fn_c_check_member "$LINENO" "struct stat" "st_uid" "ac_cv_member_struct_stat_st_uid" "#ifdef HAVE_SYS_TYPES_H
8482 #include <sys/types.h>
8483 #endif
8484 #include <sys/stat.h>
8485 "
8486 if test "x$ac_cv_member_struct_stat_st_uid" = xyes; then :
8487
8488 cat >>confdefs.h <<_ACEOF
8489 #define HAVE_STRUCT_STAT_ST_UID 1
8490 _ACEOF
8491
8492
8493 fi
8494 ac_fn_c_check_member "$LINENO" "struct stat" "st_gid" "ac_cv_member_struct_stat_st_gid" "#ifdef HAVE_SYS_TYPES_H
8495 #include <sys/types.h>
8496 #endif
8497 #include <sys/stat.h>
8498 "
8499 if test "x$ac_cv_member_struct_stat_st_gid" = xyes; then :
8500
8501 cat >>confdefs.h <<_ACEOF
8502 #define HAVE_STRUCT_STAT_ST_GID 1
8503 _ACEOF
8504
8505
8506 fi
8507 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "#ifdef HAVE_SYS_TYPES_H
8508 #include <sys/types.h>
8509 #endif
8510 #include <sys/stat.h>
8511 "
8512 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
8513
8514 cat >>confdefs.h <<_ACEOF
8515 #define HAVE_STRUCT_STAT_ST_RDEV 1
8516 _ACEOF
8517
8518
8519 fi
8520 ac_fn_c_check_member "$LINENO" "struct stat" "st_size" "ac_cv_member_struct_stat_st_size" "#ifdef HAVE_SYS_TYPES_H
8521 #include <sys/types.h>
8522 #endif
8523 #include <sys/stat.h>
8524 "
8525 if test "x$ac_cv_member_struct_stat_st_size" = xyes; then :
8526
8527 cat >>confdefs.h <<_ACEOF
8528 #define HAVE_STRUCT_STAT_ST_SIZE 1
8529 _ACEOF
8530
8531
8532 fi
8533 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#ifdef HAVE_SYS_TYPES_H
8534 #include <sys/types.h>
8535 #endif
8536 #include <sys/stat.h>
8537 "
8538 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8539
8540 cat >>confdefs.h <<_ACEOF
8541 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8542 _ACEOF
8543
8544
8545 fi
8546 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#ifdef HAVE_SYS_TYPES_H
8547 #include <sys/types.h>
8548 #endif
8549 #include <sys/stat.h>
8550 "
8551 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8552
8553 cat >>confdefs.h <<_ACEOF
8554 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
8555 _ACEOF
8556
8557
8558 fi
8559 ac_fn_c_check_member "$LINENO" "struct stat" "st_atime" "ac_cv_member_struct_stat_st_atime" "#ifdef HAVE_SYS_TYPES_H
8560 #include <sys/types.h>
8561 #endif
8562 #include <sys/stat.h>
8563 "
8564 if test "x$ac_cv_member_struct_stat_st_atime" = xyes; then :
8565
8566 cat >>confdefs.h <<_ACEOF
8567 #define HAVE_STRUCT_STAT_ST_ATIME 1
8568 _ACEOF
8569
8570
8571 fi
8572 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "#ifdef HAVE_SYS_TYPES_H
8573 #include <sys/types.h>
8574 #endif
8575 #include <sys/stat.h>
8576 "
8577 if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then :
8578
8579 cat >>confdefs.h <<_ACEOF
8580 #define HAVE_STRUCT_STAT_ST_MTIME 1
8581 _ACEOF
8582
8583
8584 fi
8585 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime" "ac_cv_member_struct_stat_st_ctime" "#ifdef HAVE_SYS_TYPES_H
8586 #include <sys/types.h>
8587 #endif
8588 #include <sys/stat.h>
8589 "
8590 if test "x$ac_cv_member_struct_stat_st_ctime" = xyes; then :
8591
8592 cat >>confdefs.h <<_ACEOF
8593 #define HAVE_STRUCT_STAT_ST_CTIME 1
8594 _ACEOF
8595
8596
8597 fi
8598
8599
8600 ac_fn_c_check_type "$LINENO" "__int128" "ac_cv_type___int128" "$ac_includes_default"
8601 if test "x$ac_cv_type___int128" = xyes; then :
8602
8603 cat >>confdefs.h <<_ACEOF
8604 #define HAVE___INT128 1
8605 _ACEOF
8606
8607
8608 fi
8609
8610 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
8611 #include <sys/socket.h>
8612
8613 "
8614 if test "x$ac_cv_type_socklen_t" = xyes; then :
8615
8616 cat >>confdefs.h <<_ACEOF
8617 #define HAVE_SOCKLEN_T 1
8618 _ACEOF
8619
8620
8621 fi
8622
8623
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
8625 $as_echo_n "checking type of array argument to getgroups... " >&6; }
8626 if ${ac_cv_type_getgroups+:} false; then :
8627 $as_echo_n "(cached) " >&6
8628 else
8629 if test "$cross_compiling" = yes; then :
8630 ac_cv_type_getgroups=cross
8631 else
8632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8633 /* end confdefs.h. */
8634 /* Thanks to Mike Rendell for this test. */
8635 $ac_includes_default
8636 #define NGID 256
8637 #undef MAX
8638 #define MAX(x, y) ((x) > (y) ? (x) : (y))
8639
8640 int
8641 main ()
8642 {
8643 gid_t gidset[NGID];
8644 int i, n;
8645 union { gid_t gval; long int lval; } val;
8646
8647 val.lval = -1;
8648 for (i = 0; i < NGID; i++)
8649 gidset[i] = val.gval;
8650 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
8651 gidset);
8652 /* Exit non-zero if getgroups seems to require an array of ints. This
8653 happens when gid_t is short int but getgroups modifies an array
8654 of ints. */
8655 return n > 0 && gidset[n] != val.gval;
8656 }
8657 _ACEOF
8658 if ac_fn_c_try_run "$LINENO"; then :
8659 ac_cv_type_getgroups=gid_t
8660 else
8661 ac_cv_type_getgroups=int
8662 fi
8663 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8664 conftest.$ac_objext conftest.beam conftest.$ac_ext
8665 fi
8666
8667 if test $ac_cv_type_getgroups = cross; then
8668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8669 /* end confdefs.h. */
8670 #include <unistd.h>
8671
8672 _ACEOF
8673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8674 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
8675 ac_cv_type_getgroups=gid_t
8676 else
8677 ac_cv_type_getgroups=int
8678 fi
8679 rm -f conftest*
8680
8681 fi
8682 fi
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
8684 $as_echo "$ac_cv_type_getgroups" >&6; }
8685
8686 cat >>confdefs.h <<_ACEOF
8687 #define GETGROUPS_T $ac_cv_type_getgroups
8688 _ACEOF
8689
8690
8691 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
8692 if test "x$ac_cv_type_mode_t" = xyes; then :
8693
8694 else
8695
8696 cat >>confdefs.h <<_ACEOF
8697 #define mode_t int
8698 _ACEOF
8699
8700 fi
8701
8702 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
8703 if test "x$ac_cv_type_off_t" = xyes; then :
8704
8705 else
8706
8707 cat >>confdefs.h <<_ACEOF
8708 #define off_t long int
8709 _ACEOF
8710
8711 fi
8712
8713 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8714 if test "x$ac_cv_type_pid_t" = xyes; then :
8715
8716 else
8717
8718 cat >>confdefs.h <<_ACEOF
8719 #define pid_t int
8720 _ACEOF
8721
8722 fi
8723
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8725 $as_echo_n "checking return type of signal handlers... " >&6; }
8726 if ${ac_cv_type_signal+:} false; then :
8727 $as_echo_n "(cached) " >&6
8728 else
8729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8730 /* end confdefs.h. */
8731 #include <sys/types.h>
8732 #include <signal.h>
8733
8734 int
8735 main ()
8736 {
8737 return *(signal (0, 0)) (0) == 1;
8738 ;
8739 return 0;
8740 }
8741 _ACEOF
8742 if ac_fn_c_try_compile "$LINENO"; then :
8743 ac_cv_type_signal=int
8744 else
8745 ac_cv_type_signal=void
8746 fi
8747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8748 fi
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
8750 $as_echo "$ac_cv_type_signal" >&6; }
8751
8752 cat >>confdefs.h <<_ACEOF
8753 #define RETSIGTYPE $ac_cv_type_signal
8754 _ACEOF
8755
8756
8757 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8758 if test "x$ac_cv_type_size_t" = xyes; then :
8759
8760 else
8761
8762 cat >>confdefs.h <<_ACEOF
8763 #define size_t unsigned int
8764 _ACEOF
8765
8766 fi
8767
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8769 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8770 if ${ac_cv_type_uid_t+:} false; then :
8771 $as_echo_n "(cached) " >&6
8772 else
8773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8774 /* end confdefs.h. */
8775 #include <sys/types.h>
8776
8777 _ACEOF
8778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8779 $EGREP "uid_t" >/dev/null 2>&1; then :
8780 ac_cv_type_uid_t=yes
8781 else
8782 ac_cv_type_uid_t=no
8783 fi
8784 rm -f conftest*
8785
8786 fi
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8788 $as_echo "$ac_cv_type_uid_t" >&6; }
8789 if test $ac_cv_type_uid_t = no; then
8790
8791 $as_echo "#define uid_t int" >>confdefs.h
8792
8793
8794 $as_echo "#define gid_t int" >>confdefs.h
8795
8796 fi
8797
8798
8799
8800
8801
8802
8803 # Set options
8804
8805
8806
8807 enable_dlopen=no
8808
8809
8810 enable_win32_dll=no
8811
8812
8813 # Check whether --enable-shared was given.
8814 if test "${enable_shared+set}" = set; then :
8815 enableval=$enable_shared; p=${PACKAGE-default}
8816 case $enableval in
8817 yes) enable_shared=yes ;;
8818 no) enable_shared=no ;;
8819 *)
8820 enable_shared=no
8821 # Look at the argument we got. We use all the common list separators.
8822 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8823 for pkg in $enableval; do
8824 IFS="$lt_save_ifs"
8825 if test "X$pkg" = "X$p"; then
8826 enable_shared=yes
8827 fi
8828 done
8829 IFS="$lt_save_ifs"
8830 ;;
8831 esac
8832 else
8833 enable_shared=yes
8834 fi
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844 # Check whether --enable-static was given.
8845 if test "${enable_static+set}" = set; then :
8846 enableval=$enable_static; p=${PACKAGE-default}
8847 case $enableval in
8848 yes) enable_static=yes ;;
8849 no) enable_static=no ;;
8850 *)
8851 enable_static=no
8852 # Look at the argument we got. We use all the common list separators.
8853 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8854 for pkg in $enableval; do
8855 IFS="$lt_save_ifs"
8856 if test "X$pkg" = "X$p"; then
8857 enable_static=yes
8858 fi
8859 done
8860 IFS="$lt_save_ifs"
8861 ;;
8862 esac
8863 else
8864 enable_static=yes
8865 fi
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876 # Check whether --with-pic was given.
8877 if test "${with_pic+set}" = set; then :
8878 withval=$with_pic; pic_mode="$withval"
8879 else
8880 pic_mode=default
8881 fi
8882
8883
8884 test -z "$pic_mode" && pic_mode=default
8885
8886
8887
8888
8889
8890
8891
8892 # Check whether --enable-fast-install was given.
8893 if test "${enable_fast_install+set}" = set; then :
8894 enableval=$enable_fast_install; p=${PACKAGE-default}
8895 case $enableval in
8896 yes) enable_fast_install=yes ;;
8897 no) enable_fast_install=no ;;
8898 *)
8899 enable_fast_install=no
8900 # Look at the argument we got. We use all the common list separators.
8901 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8902 for pkg in $enableval; do
8903 IFS="$lt_save_ifs"
8904 if test "X$pkg" = "X$p"; then
8905 enable_fast_install=yes
8906 fi
8907 done
8908 IFS="$lt_save_ifs"
8909 ;;
8910 esac
8911 else
8912 enable_fast_install=yes
8913 fi
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925 # This can be used to rebuild libtool when needed
8926 LIBTOOL_DEPS="$ltmain"
8927
8928 # Always use our own libtool.
8929 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956 test -z "$LN_S" && LN_S="ln -s"
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971 if test -n "${ZSH_VERSION+set}" ; then
8972 setopt NO_GLOB_SUBST
8973 fi
8974
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8976 $as_echo_n "checking for objdir... " >&6; }
8977 if ${lt_cv_objdir+:} false; then :
8978 $as_echo_n "(cached) " >&6
8979 else
8980 rm -f .libs 2>/dev/null
8981 mkdir .libs 2>/dev/null
8982 if test -d .libs; then
8983 lt_cv_objdir=.libs
8984 else
8985 # MS-DOS does not allow filenames that begin with a dot.
8986 lt_cv_objdir=_libs
8987 fi
8988 rmdir .libs 2>/dev/null
8989 fi
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8991 $as_echo "$lt_cv_objdir" >&6; }
8992 objdir=$lt_cv_objdir
8993
8994
8995
8996
8997
8998 cat >>confdefs.h <<_ACEOF
8999 #define LT_OBJDIR "$lt_cv_objdir/"
9000 _ACEOF
9001
9002
9003
9004
9005 case $host_os in
9006 aix3*)
9007 # AIX sometimes has problems with the GCC collect2 program. For some
9008 # reason, if we set the COLLECT_NAMES environment variable, the problems
9009 # vanish in a puff of smoke.
9010 if test "X${COLLECT_NAMES+set}" != Xset; then
9011 COLLECT_NAMES=
9012 export COLLECT_NAMES
9013 fi
9014 ;;
9015 esac
9016
9017 # Global variables:
9018 ofile=libtool
9019 can_build_shared=yes
9020
9021 # All known linkers require a `.a' archive for static linking (except MSVC,
9022 # which needs '.lib').
9023 libext=a
9024
9025 with_gnu_ld="$lt_cv_prog_gnu_ld"
9026
9027 old_CC="$CC"
9028 old_CFLAGS="$CFLAGS"
9029
9030 # Set sane defaults for various variables
9031 test -z "$CC" && CC=cc
9032 test -z "$LTCC" && LTCC=$CC
9033 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9034 test -z "$LD" && LD=ld
9035 test -z "$ac_objext" && ac_objext=o
9036
9037 for cc_temp in $compiler""; do
9038 case $cc_temp in
9039 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9040 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9041 \-*) ;;
9042 *) break;;
9043 esac
9044 done
9045 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9046
9047
9048 # Only perform the check for file, if the check method requires it
9049 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9050 case $deplibs_check_method in
9051 file_magic*)
9052 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9054 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9055 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9056 $as_echo_n "(cached) " >&6
9057 else
9058 case $MAGIC_CMD in
9059 [\\/*] | ?:[\\/]*)
9060 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9061 ;;
9062 *)
9063 lt_save_MAGIC_CMD="$MAGIC_CMD"
9064 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9065 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9066 for ac_dir in $ac_dummy; do
9067 IFS="$lt_save_ifs"
9068 test -z "$ac_dir" && ac_dir=.
9069 if test -f $ac_dir/${ac_tool_prefix}file; then
9070 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9071 if test -n "$file_magic_test_file"; then
9072 case $deplibs_check_method in
9073 "file_magic "*)
9074 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9075 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9076 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9077 $EGREP "$file_magic_regex" > /dev/null; then
9078 :
9079 else
9080 cat <<_LT_EOF 1>&2
9081
9082 *** Warning: the command libtool uses to detect shared libraries,
9083 *** $file_magic_cmd, produces output that libtool cannot recognize.
9084 *** The result is that libtool may fail to recognize shared libraries
9085 *** as such. This will affect the creation of libtool libraries that
9086 *** depend on shared libraries, but programs linked with such libtool
9087 *** libraries will work regardless of this problem. Nevertheless, you
9088 *** may want to report the problem to your system manager and/or to
9089 *** bug-libtool@gnu.org
9090
9091 _LT_EOF
9092 fi ;;
9093 esac
9094 fi
9095 break
9096 fi
9097 done
9098 IFS="$lt_save_ifs"
9099 MAGIC_CMD="$lt_save_MAGIC_CMD"
9100 ;;
9101 esac
9102 fi
9103
9104 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9105 if test -n "$MAGIC_CMD"; then
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9107 $as_echo "$MAGIC_CMD" >&6; }
9108 else
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9110 $as_echo "no" >&6; }
9111 fi
9112
9113
9114
9115
9116
9117 if test -z "$lt_cv_path_MAGIC_CMD"; then
9118 if test -n "$ac_tool_prefix"; then
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9120 $as_echo_n "checking for file... " >&6; }
9121 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9122 $as_echo_n "(cached) " >&6
9123 else
9124 case $MAGIC_CMD in
9125 [\\/*] | ?:[\\/]*)
9126 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9127 ;;
9128 *)
9129 lt_save_MAGIC_CMD="$MAGIC_CMD"
9130 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9131 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9132 for ac_dir in $ac_dummy; do
9133 IFS="$lt_save_ifs"
9134 test -z "$ac_dir" && ac_dir=.
9135 if test -f $ac_dir/file; then
9136 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9137 if test -n "$file_magic_test_file"; then
9138 case $deplibs_check_method in
9139 "file_magic "*)
9140 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9141 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9142 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9143 $EGREP "$file_magic_regex" > /dev/null; then
9144 :
9145 else
9146 cat <<_LT_EOF 1>&2
9147
9148 *** Warning: the command libtool uses to detect shared libraries,
9149 *** $file_magic_cmd, produces output that libtool cannot recognize.
9150 *** The result is that libtool may fail to recognize shared libraries
9151 *** as such. This will affect the creation of libtool libraries that
9152 *** depend on shared libraries, but programs linked with such libtool
9153 *** libraries will work regardless of this problem. Nevertheless, you
9154 *** may want to report the problem to your system manager and/or to
9155 *** bug-libtool@gnu.org
9156
9157 _LT_EOF
9158 fi ;;
9159 esac
9160 fi
9161 break
9162 fi
9163 done
9164 IFS="$lt_save_ifs"
9165 MAGIC_CMD="$lt_save_MAGIC_CMD"
9166 ;;
9167 esac
9168 fi
9169
9170 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9171 if test -n "$MAGIC_CMD"; then
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9173 $as_echo "$MAGIC_CMD" >&6; }
9174 else
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9176 $as_echo "no" >&6; }
9177 fi
9178
9179
9180 else
9181 MAGIC_CMD=:
9182 fi
9183 fi
9184
9185 fi
9186 ;;
9187 esac
9188
9189 # Use C for the default configuration in the libtool script
9190
9191 lt_save_CC="$CC"
9192 ac_ext=c
9193 ac_cpp='$CPP $CPPFLAGS'
9194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9197
9198
9199 # Source file extension for C test sources.
9200 ac_ext=c
9201
9202 # Object file extension for compiled C test sources.
9203 objext=o
9204 objext=$objext
9205
9206 # Code to be used in simple compile tests
9207 lt_simple_compile_test_code="int some_variable = 0;"
9208
9209 # Code to be used in simple link tests
9210 lt_simple_link_test_code='int main(){return(0);}'
9211
9212
9213
9214
9215
9216
9217
9218 # If no C compiler was specified, use CC.
9219 LTCC=${LTCC-"$CC"}
9220
9221 # If no C compiler flags were specified, use CFLAGS.
9222 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9223
9224 # Allow CC to be a program name with arguments.
9225 compiler=$CC
9226
9227 # Save the default compiler, since it gets overwritten when the other
9228 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9229 compiler_DEFAULT=$CC
9230
9231 # save warnings/boilerplate of simple test code
9232 ac_outfile=conftest.$ac_objext
9233 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9234 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9235 _lt_compiler_boilerplate=`cat conftest.err`
9236 $RM conftest*
9237
9238 ac_outfile=conftest.$ac_objext
9239 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9240 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9241 _lt_linker_boilerplate=`cat conftest.err`
9242 $RM -r conftest*
9243
9244
9245 ## CAVEAT EMPTOR:
9246 ## There is no encapsulation within the following macros, do not change
9247 ## the running order or otherwise move them around unless you know exactly
9248 ## what you are doing...
9249 if test -n "$compiler"; then
9250
9251 lt_prog_compiler_no_builtin_flag=
9252
9253 if test "$GCC" = yes; then
9254 case $cc_basename in
9255 nvcc*)
9256 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9257 *)
9258 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9259 esac
9260
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9262 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9263 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9264 $as_echo_n "(cached) " >&6
9265 else
9266 lt_cv_prog_compiler_rtti_exceptions=no
9267 ac_outfile=conftest.$ac_objext
9268 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9269 lt_compiler_flag="-fno-rtti -fno-exceptions"
9270 # Insert the option either (1) after the last *FLAGS variable, or
9271 # (2) before a word containing "conftest.", or (3) at the end.
9272 # Note that $ac_compile itself does not contain backslashes and begins
9273 # with a dollar sign (not a hyphen), so the echo should work correctly.
9274 # The option is referenced via a variable to avoid confusing sed.
9275 lt_compile=`echo "$ac_compile" | $SED \
9276 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9277 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9278 -e 's:$: $lt_compiler_flag:'`
9279 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9280 (eval "$lt_compile" 2>conftest.err)
9281 ac_status=$?
9282 cat conftest.err >&5
9283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284 if (exit $ac_status) && test -s "$ac_outfile"; then
9285 # The compiler can only warn and ignore the option if not recognized
9286 # So say no if there are warnings other than the usual output.
9287 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9288 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9289 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9290 lt_cv_prog_compiler_rtti_exceptions=yes
9291 fi
9292 fi
9293 $RM conftest*
9294
9295 fi
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9297 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9298
9299 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9300 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9301 else
9302 :
9303 fi
9304
9305 fi
9306
9307
9308
9309
9310
9311
9312 lt_prog_compiler_wl=
9313 lt_prog_compiler_pic=
9314 lt_prog_compiler_static=
9315
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9317 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9318
9319 if test "$GCC" = yes; then
9320 lt_prog_compiler_wl='-Wl,'
9321 lt_prog_compiler_static='-static'
9322
9323 case $host_os in
9324 aix*)
9325 # All AIX code is PIC.
9326 if test "$host_cpu" = ia64; then
9327 # AIX 5 now supports IA64 processor
9328 lt_prog_compiler_static='-Bstatic'
9329 fi
9330 lt_prog_compiler_pic='-fPIC'
9331 ;;
9332
9333 amigaos*)
9334 case $host_cpu in
9335 powerpc)
9336 # see comment about AmigaOS4 .so support
9337 lt_prog_compiler_pic='-fPIC'
9338 ;;
9339 m68k)
9340 # FIXME: we need at least 68020 code to build shared libraries, but
9341 # adding the `-m68020' flag to GCC prevents building anything better,
9342 # like `-m68040'.
9343 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9344 ;;
9345 esac
9346 ;;
9347
9348 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9349 # PIC is the default for these OSes.
9350 ;;
9351
9352 mingw* | cygwin* | pw32* | os2* | cegcc*)
9353 # This hack is so that the source file can tell whether it is being
9354 # built for inclusion in a dll (and should export symbols for example).
9355 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9356 # (--disable-auto-import) libraries
9357 lt_prog_compiler_pic='-DDLL_EXPORT'
9358 ;;
9359
9360 darwin* | rhapsody*)
9361 # PIC is the default on this platform
9362 # Common symbols not allowed in MH_DYLIB files
9363 lt_prog_compiler_pic='-fno-common'
9364 ;;
9365
9366 haiku*)
9367 # PIC is the default for Haiku.
9368 # The "-static" flag exists, but is broken.
9369 lt_prog_compiler_static=
9370 ;;
9371
9372 hpux*)
9373 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9374 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9375 # sets the default TLS model and affects inlining.
9376 case $host_cpu in
9377 hppa*64*)
9378 # +Z the default
9379 ;;
9380 *)
9381 lt_prog_compiler_pic='-fPIC'
9382 ;;
9383 esac
9384 ;;
9385
9386 interix[3-9]*)
9387 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9388 # Instead, we relocate shared libraries at runtime.
9389 ;;
9390
9391 msdosdjgpp*)
9392 # Just because we use GCC doesn't mean we suddenly get shared libraries
9393 # on systems that don't support them.
9394 lt_prog_compiler_can_build_shared=no
9395 enable_shared=no
9396 ;;
9397
9398 *nto* | *qnx*)
9399 # QNX uses GNU C++, but need to define -shared option too, otherwise
9400 # it will coredump.
9401 lt_prog_compiler_pic='-fPIC -shared'
9402 ;;
9403
9404 sysv4*MP*)
9405 if test -d /usr/nec; then
9406 lt_prog_compiler_pic=-Kconform_pic
9407 fi
9408 ;;
9409
9410 *)
9411 lt_prog_compiler_pic='-fPIC'
9412 ;;
9413 esac
9414
9415 case $cc_basename in
9416 nvcc*) # Cuda Compiler Driver 2.2
9417 lt_prog_compiler_wl='-Xlinker '
9418 lt_prog_compiler_pic='-Xcompiler -fPIC'
9419 ;;
9420 esac
9421 else
9422 # PORTME Check for flag to pass linker flags through the system compiler.
9423 case $host_os in
9424 aix*)
9425 lt_prog_compiler_wl='-Wl,'
9426 if test "$host_cpu" = ia64; then
9427 # AIX 5 now supports IA64 processor
9428 lt_prog_compiler_static='-Bstatic'
9429 else
9430 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9431 fi
9432 ;;
9433
9434 mingw* | cygwin* | pw32* | os2* | cegcc*)
9435 # This hack is so that the source file can tell whether it is being
9436 # built for inclusion in a dll (and should export symbols for example).
9437 lt_prog_compiler_pic='-DDLL_EXPORT'
9438 ;;
9439
9440 hpux9* | hpux10* | hpux11*)
9441 lt_prog_compiler_wl='-Wl,'
9442 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9443 # not for PA HP-UX.
9444 case $host_cpu in
9445 hppa*64*|ia64*)
9446 # +Z the default
9447 ;;
9448 *)
9449 lt_prog_compiler_pic='+Z'
9450 ;;
9451 esac
9452 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9453 lt_prog_compiler_static='${wl}-a ${wl}archive'
9454 ;;
9455
9456 irix5* | irix6* | nonstopux*)
9457 lt_prog_compiler_wl='-Wl,'
9458 # PIC (with -KPIC) is the default.
9459 lt_prog_compiler_static='-non_shared'
9460 ;;
9461
9462 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9463 case $cc_basename in
9464 # old Intel for x86_64 which still supported -KPIC.
9465 ecc*)
9466 lt_prog_compiler_wl='-Wl,'
9467 lt_prog_compiler_pic='-KPIC'
9468 lt_prog_compiler_static='-static'
9469 ;;
9470 # icc used to be incompatible with GCC.
9471 # ICC 10 doesn't accept -KPIC any more.
9472 icc* | ifort*)
9473 lt_prog_compiler_wl='-Wl,'
9474 lt_prog_compiler_pic='-fPIC'
9475 lt_prog_compiler_static='-static'
9476 ;;
9477 # Lahey Fortran 8.1.
9478 lf95*)
9479 lt_prog_compiler_wl='-Wl,'
9480 lt_prog_compiler_pic='--shared'
9481 lt_prog_compiler_static='--static'
9482 ;;
9483 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9484 # Portland Group compilers (*not* the Pentium gcc compiler,
9485 # which looks to be a dead project)
9486 lt_prog_compiler_wl='-Wl,'
9487 lt_prog_compiler_pic='-fpic'
9488 lt_prog_compiler_static='-Bstatic'
9489 ;;
9490 ccc*)
9491 lt_prog_compiler_wl='-Wl,'
9492 # All Alpha code is PIC.
9493 lt_prog_compiler_static='-non_shared'
9494 ;;
9495 xl* | bgxl* | bgf* | mpixl*)
9496 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9497 lt_prog_compiler_wl='-Wl,'
9498 lt_prog_compiler_pic='-qpic'
9499 lt_prog_compiler_static='-qstaticlink'
9500 ;;
9501 *)
9502 case `$CC -V 2>&1 | sed 5q` in
9503 *Sun\ F* | *Sun*Fortran*)
9504 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9505 lt_prog_compiler_pic='-KPIC'
9506 lt_prog_compiler_static='-Bstatic'
9507 lt_prog_compiler_wl=''
9508 ;;
9509 *Sun\ C*)
9510 # Sun C 5.9
9511 lt_prog_compiler_pic='-KPIC'
9512 lt_prog_compiler_static='-Bstatic'
9513 lt_prog_compiler_wl='-Wl,'
9514 ;;
9515 esac
9516 ;;
9517 esac
9518 ;;
9519
9520 newsos6)
9521 lt_prog_compiler_pic='-KPIC'
9522 lt_prog_compiler_static='-Bstatic'
9523 ;;
9524
9525 *nto* | *qnx*)
9526 # QNX uses GNU C++, but need to define -shared option too, otherwise
9527 # it will coredump.
9528 lt_prog_compiler_pic='-fPIC -shared'
9529 ;;
9530
9531 osf3* | osf4* | osf5*)
9532 lt_prog_compiler_wl='-Wl,'
9533 # All OSF/1 code is PIC.
9534 lt_prog_compiler_static='-non_shared'
9535 ;;
9536
9537 rdos*)
9538 lt_prog_compiler_static='-non_shared'
9539 ;;
9540
9541 solaris*)
9542 lt_prog_compiler_pic='-KPIC'
9543 lt_prog_compiler_static='-Bstatic'
9544 case $cc_basename in
9545 f77* | f90* | f95*)
9546 lt_prog_compiler_wl='-Qoption ld ';;
9547 *)
9548 lt_prog_compiler_wl='-Wl,';;
9549 esac
9550 ;;
9551
9552 sunos4*)
9553 lt_prog_compiler_wl='-Qoption ld '
9554 lt_prog_compiler_pic='-PIC'
9555 lt_prog_compiler_static='-Bstatic'
9556 ;;
9557
9558 sysv4 | sysv4.2uw2* | sysv4.3*)
9559 lt_prog_compiler_wl='-Wl,'
9560 lt_prog_compiler_pic='-KPIC'
9561 lt_prog_compiler_static='-Bstatic'
9562 ;;
9563
9564 sysv4*MP*)
9565 if test -d /usr/nec ;then
9566 lt_prog_compiler_pic='-Kconform_pic'
9567 lt_prog_compiler_static='-Bstatic'
9568 fi
9569 ;;
9570
9571 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9572 lt_prog_compiler_wl='-Wl,'
9573 lt_prog_compiler_pic='-KPIC'
9574 lt_prog_compiler_static='-Bstatic'
9575 ;;
9576
9577 unicos*)
9578 lt_prog_compiler_wl='-Wl,'
9579 lt_prog_compiler_can_build_shared=no
9580 ;;
9581
9582 uts4*)
9583 lt_prog_compiler_pic='-pic'
9584 lt_prog_compiler_static='-Bstatic'
9585 ;;
9586
9587 *)
9588 lt_prog_compiler_can_build_shared=no
9589 ;;
9590 esac
9591 fi
9592
9593 case $host_os in
9594 # For platforms which do not support PIC, -DPIC is meaningless:
9595 *djgpp*)
9596 lt_prog_compiler_pic=
9597 ;;
9598 *)
9599 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9600 ;;
9601 esac
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9603 $as_echo "$lt_prog_compiler_pic" >&6; }
9604
9605
9606
9607
9608
9609
9610 #
9611 # Check to make sure the PIC flag actually works.
9612 #
9613 if test -n "$lt_prog_compiler_pic"; then
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9615 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9616 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9617 $as_echo_n "(cached) " >&6
9618 else
9619 lt_cv_prog_compiler_pic_works=no
9620 ac_outfile=conftest.$ac_objext
9621 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9622 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9623 # Insert the option either (1) after the last *FLAGS variable, or
9624 # (2) before a word containing "conftest.", or (3) at the end.
9625 # Note that $ac_compile itself does not contain backslashes and begins
9626 # with a dollar sign (not a hyphen), so the echo should work correctly.
9627 # The option is referenced via a variable to avoid confusing sed.
9628 lt_compile=`echo "$ac_compile" | $SED \
9629 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9630 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9631 -e 's:$: $lt_compiler_flag:'`
9632 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9633 (eval "$lt_compile" 2>conftest.err)
9634 ac_status=$?
9635 cat conftest.err >&5
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 if (exit $ac_status) && test -s "$ac_outfile"; then
9638 # The compiler can only warn and ignore the option if not recognized
9639 # So say no if there are warnings other than the usual output.
9640 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9641 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9642 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9643 lt_cv_prog_compiler_pic_works=yes
9644 fi
9645 fi
9646 $RM conftest*
9647
9648 fi
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9650 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9651
9652 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9653 case $lt_prog_compiler_pic in
9654 "" | " "*) ;;
9655 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9656 esac
9657 else
9658 lt_prog_compiler_pic=
9659 lt_prog_compiler_can_build_shared=no
9660 fi
9661
9662 fi
9663
9664
9665
9666
9667
9668
9669 #
9670 # Check to make sure the static flag actually works.
9671 #
9672 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9674 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9675 if ${lt_cv_prog_compiler_static_works+:} false; then :
9676 $as_echo_n "(cached) " >&6
9677 else
9678 lt_cv_prog_compiler_static_works=no
9679 save_LDFLAGS="$LDFLAGS"
9680 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9681 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9682 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9683 # The linker can only warn and ignore the option if not recognized
9684 # So say no if there are warnings
9685 if test -s conftest.err; then
9686 # Append any errors to the config.log.
9687 cat conftest.err 1>&5
9688 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9689 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9690 if diff conftest.exp conftest.er2 >/dev/null; then
9691 lt_cv_prog_compiler_static_works=yes
9692 fi
9693 else
9694 lt_cv_prog_compiler_static_works=yes
9695 fi
9696 fi
9697 $RM -r conftest*
9698 LDFLAGS="$save_LDFLAGS"
9699
9700 fi
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9702 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9703
9704 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9705 :
9706 else
9707 lt_prog_compiler_static=
9708 fi
9709
9710
9711
9712
9713
9714
9715
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9717 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9718 if ${lt_cv_prog_compiler_c_o+:} false; then :
9719 $as_echo_n "(cached) " >&6
9720 else
9721 lt_cv_prog_compiler_c_o=no
9722 $RM -r conftest 2>/dev/null
9723 mkdir conftest
9724 cd conftest
9725 mkdir out
9726 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9727
9728 lt_compiler_flag="-o out/conftest2.$ac_objext"
9729 # Insert the option either (1) after the last *FLAGS variable, or
9730 # (2) before a word containing "conftest.", or (3) at the end.
9731 # Note that $ac_compile itself does not contain backslashes and begins
9732 # with a dollar sign (not a hyphen), so the echo should work correctly.
9733 lt_compile=`echo "$ac_compile" | $SED \
9734 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9735 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9736 -e 's:$: $lt_compiler_flag:'`
9737 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9738 (eval "$lt_compile" 2>out/conftest.err)
9739 ac_status=$?
9740 cat out/conftest.err >&5
9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9743 then
9744 # The compiler can only warn and ignore the option if not recognized
9745 # So say no if there are warnings
9746 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9747 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9748 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9749 lt_cv_prog_compiler_c_o=yes
9750 fi
9751 fi
9752 chmod u+w . 2>&5
9753 $RM conftest*
9754 # SGI C++ compiler will create directory out/ii_files/ for
9755 # template instantiation
9756 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9757 $RM out/* && rmdir out
9758 cd ..
9759 $RM -r conftest
9760 $RM conftest*
9761
9762 fi
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9764 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9765
9766
9767
9768
9769
9770
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9772 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9773 if ${lt_cv_prog_compiler_c_o+:} false; then :
9774 $as_echo_n "(cached) " >&6
9775 else
9776 lt_cv_prog_compiler_c_o=no
9777 $RM -r conftest 2>/dev/null
9778 mkdir conftest
9779 cd conftest
9780 mkdir out
9781 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9782
9783 lt_compiler_flag="-o out/conftest2.$ac_objext"
9784 # Insert the option either (1) after the last *FLAGS variable, or
9785 # (2) before a word containing "conftest.", or (3) at the end.
9786 # Note that $ac_compile itself does not contain backslashes and begins
9787 # with a dollar sign (not a hyphen), so the echo should work correctly.
9788 lt_compile=`echo "$ac_compile" | $SED \
9789 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9790 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9791 -e 's:$: $lt_compiler_flag:'`
9792 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9793 (eval "$lt_compile" 2>out/conftest.err)
9794 ac_status=$?
9795 cat out/conftest.err >&5
9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9798 then
9799 # The compiler can only warn and ignore the option if not recognized
9800 # So say no if there are warnings
9801 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9802 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9803 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9804 lt_cv_prog_compiler_c_o=yes
9805 fi
9806 fi
9807 chmod u+w . 2>&5
9808 $RM conftest*
9809 # SGI C++ compiler will create directory out/ii_files/ for
9810 # template instantiation
9811 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9812 $RM out/* && rmdir out
9813 cd ..
9814 $RM -r conftest
9815 $RM conftest*
9816
9817 fi
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9819 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9820
9821
9822
9823
9824 hard_links="nottested"
9825 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9826 # do not overwrite the value of need_locks provided by the user
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9828 $as_echo_n "checking if we can lock with hard links... " >&6; }
9829 hard_links=yes
9830 $RM conftest*
9831 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9832 touch conftest.a
9833 ln conftest.a conftest.b 2>&5 || hard_links=no
9834 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9836 $as_echo "$hard_links" >&6; }
9837 if test "$hard_links" = no; then
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9839 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9840 need_locks=warn
9841 fi
9842 else
9843 need_locks=no
9844 fi
9845
9846
9847
9848
9849
9850
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9852 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9853
9854 runpath_var=
9855 allow_undefined_flag=
9856 always_export_symbols=no
9857 archive_cmds=
9858 archive_expsym_cmds=
9859 compiler_needs_object=no
9860 enable_shared_with_static_runtimes=no
9861 export_dynamic_flag_spec=
9862 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9863 hardcode_automatic=no
9864 hardcode_direct=no
9865 hardcode_direct_absolute=no
9866 hardcode_libdir_flag_spec=
9867 hardcode_libdir_flag_spec_ld=
9868 hardcode_libdir_separator=
9869 hardcode_minus_L=no
9870 hardcode_shlibpath_var=unsupported
9871 inherit_rpath=no
9872 link_all_deplibs=unknown
9873 module_cmds=
9874 module_expsym_cmds=
9875 old_archive_from_new_cmds=
9876 old_archive_from_expsyms_cmds=
9877 thread_safe_flag_spec=
9878 whole_archive_flag_spec=
9879 # include_expsyms should be a list of space-separated symbols to be *always*
9880 # included in the symbol list
9881 include_expsyms=
9882 # exclude_expsyms can be an extended regexp of symbols to exclude
9883 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9884 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9885 # as well as any symbol that contains `d'.
9886 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9887 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9888 # platforms (ab)use it in PIC code, but their linkers get confused if
9889 # the symbol is explicitly referenced. Since portable code cannot
9890 # rely on this symbol name, it's probably fine to never include it in
9891 # preloaded symbol tables.
9892 # Exclude shared library initialization/finalization symbols.
9893 extract_expsyms_cmds=
9894
9895 case $host_os in
9896 cygwin* | mingw* | pw32* | cegcc*)
9897 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9898 # When not using gcc, we currently assume that we are using
9899 # Microsoft Visual C++.
9900 if test "$GCC" != yes; then
9901 with_gnu_ld=no
9902 fi
9903 ;;
9904 interix*)
9905 # we just hope/assume this is gcc and not c89 (= MSVC++)
9906 with_gnu_ld=yes
9907 ;;
9908 openbsd*)
9909 with_gnu_ld=no
9910 ;;
9911 esac
9912
9913 ld_shlibs=yes
9914
9915 # On some targets, GNU ld is compatible enough with the native linker
9916 # that we're better off using the native interface for both.
9917 lt_use_gnu_ld_interface=no
9918 if test "$with_gnu_ld" = yes; then
9919 case $host_os in
9920 aix*)
9921 # The AIX port of GNU ld has always aspired to compatibility
9922 # with the native linker. However, as the warning in the GNU ld
9923 # block says, versions before 2.19.5* couldn't really create working
9924 # shared libraries, regardless of the interface used.
9925 case `$LD -v 2>&1` in
9926 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9927 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9928 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9929 *)
9930 lt_use_gnu_ld_interface=yes
9931 ;;
9932 esac
9933 ;;
9934 *)
9935 lt_use_gnu_ld_interface=yes
9936 ;;
9937 esac
9938 fi
9939
9940 if test "$lt_use_gnu_ld_interface" = yes; then
9941 # If archive_cmds runs LD, not CC, wlarc should be empty
9942 wlarc='${wl}'
9943
9944 # Set some defaults for GNU ld with shared library support. These
9945 # are reset later if shared libraries are not supported. Putting them
9946 # here allows them to be overridden if necessary.
9947 runpath_var=LD_RUN_PATH
9948 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9949 export_dynamic_flag_spec='${wl}--export-dynamic'
9950 # ancient GNU ld didn't support --whole-archive et. al.
9951 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9952 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9953 else
9954 whole_archive_flag_spec=
9955 fi
9956 supports_anon_versioning=no
9957 case `$LD -v 2>&1` in
9958 *GNU\ gold*) supports_anon_versioning=yes ;;
9959 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9960 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9961 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9962 *\ 2.11.*) ;; # other 2.11 versions
9963 *) supports_anon_versioning=yes ;;
9964 esac
9965
9966 # See if GNU ld supports shared libraries.
9967 case $host_os in
9968 aix[3-9]*)
9969 # On AIX/PPC, the GNU linker is very broken
9970 if test "$host_cpu" != ia64; then
9971 ld_shlibs=no
9972 cat <<_LT_EOF 1>&2
9973
9974 *** Warning: the GNU linker, at least up to release 2.19, is reported
9975 *** to be unable to reliably create shared libraries on AIX.
9976 *** Therefore, libtool is disabling shared libraries support. If you
9977 *** really care for shared libraries, you may want to install binutils
9978 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9979 *** You will then need to restart the configuration process.
9980
9981 _LT_EOF
9982 fi
9983 ;;
9984
9985 amigaos*)
9986 case $host_cpu in
9987 powerpc)
9988 # see comment about AmigaOS4 .so support
9989 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9990 archive_expsym_cmds=''
9991 ;;
9992 m68k)
9993 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)'
9994 hardcode_libdir_flag_spec='-L$libdir'
9995 hardcode_minus_L=yes
9996 ;;
9997 esac
9998 ;;
9999
10000 beos*)
10001 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10002 allow_undefined_flag=unsupported
10003 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10004 # support --undefined. This deserves some investigation. FIXME
10005 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10006 else
10007 ld_shlibs=no
10008 fi
10009 ;;
10010
10011 cygwin* | mingw* | pw32* | cegcc*)
10012 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10013 # as there is no search path for DLLs.
10014 hardcode_libdir_flag_spec='-L$libdir'
10015 export_dynamic_flag_spec='${wl}--export-all-symbols'
10016 allow_undefined_flag=unsupported
10017 always_export_symbols=no
10018 enable_shared_with_static_runtimes=yes
10019 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10020
10021 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10022 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10023 # If the export-symbols file already is a .def file (1st line
10024 # is EXPORTS), use it as is; otherwise, prepend...
10025 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10026 cp $export_symbols $output_objdir/$soname.def;
10027 else
10028 echo EXPORTS > $output_objdir/$soname.def;
10029 cat $export_symbols >> $output_objdir/$soname.def;
10030 fi~
10031 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10032 else
10033 ld_shlibs=no
10034 fi
10035 ;;
10036
10037 haiku*)
10038 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10039 link_all_deplibs=yes
10040 ;;
10041
10042 interix[3-9]*)
10043 hardcode_direct=no
10044 hardcode_shlibpath_var=no
10045 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10046 export_dynamic_flag_spec='${wl}-E'
10047 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10048 # Instead, shared libraries are loaded at an image base (0x10000000 by
10049 # default) and relocated if they conflict, which is a slow very memory
10050 # consuming and fragmenting process. To avoid this, we pick a random,
10051 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10052 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10053 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10054 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'
10055 ;;
10056
10057 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
10058 tmp_diet=no
10059 if test "$host_os" = linux-dietlibc; then
10060 case $cc_basename in
10061 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10062 esac
10063 fi
10064 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10065 && test "$tmp_diet" = no
10066 then
10067 tmp_addflag=' $pic_flag'
10068 tmp_sharedflag='-shared'
10069 case $cc_basename,$host_cpu in
10070 pgcc*) # Portland Group C compiler
10071 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'
10072 tmp_addflag=' $pic_flag'
10073 ;;
10074 pgf77* | pgf90* | pgf95* | pgfortran*)
10075 # Portland Group f77 and f90 compilers
10076 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'
10077 tmp_addflag=' $pic_flag -Mnomain' ;;
10078 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10079 tmp_addflag=' -i_dynamic' ;;
10080 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10081 tmp_addflag=' -i_dynamic -nofor_main' ;;
10082 ifc* | ifort*) # Intel Fortran compiler
10083 tmp_addflag=' -nofor_main' ;;
10084 lf95*) # Lahey Fortran 8.1
10085 whole_archive_flag_spec=
10086 tmp_sharedflag='--shared' ;;
10087 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10088 tmp_sharedflag='-qmkshrobj'
10089 tmp_addflag= ;;
10090 nvcc*) # Cuda Compiler Driver 2.2
10091 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'
10092 compiler_needs_object=yes
10093 ;;
10094 esac
10095 case `$CC -V 2>&1 | sed 5q` in
10096 *Sun\ C*) # Sun C 5.9
10097 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'
10098 compiler_needs_object=yes
10099 tmp_sharedflag='-G' ;;
10100 *Sun\ F*) # Sun Fortran 8.3
10101 tmp_sharedflag='-G' ;;
10102 esac
10103 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10104
10105 if test "x$supports_anon_versioning" = xyes; then
10106 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10107 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10108 echo "local: *; };" >> $output_objdir/$libname.ver~
10109 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10110 fi
10111
10112 case $cc_basename in
10113 xlf* | bgf* | bgxlf* | mpixlf*)
10114 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10115 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10116 hardcode_libdir_flag_spec=
10117 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10118 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10119 if test "x$supports_anon_versioning" = xyes; then
10120 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10121 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10122 echo "local: *; };" >> $output_objdir/$libname.ver~
10123 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10124 fi
10125 ;;
10126 esac
10127 else
10128 ld_shlibs=no
10129 fi
10130 ;;
10131
10132 netbsd*)
10133 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10134 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10135 wlarc=
10136 else
10137 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10138 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10139 fi
10140 ;;
10141
10142 solaris*)
10143 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10144 ld_shlibs=no
10145 cat <<_LT_EOF 1>&2
10146
10147 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10148 *** create shared libraries on Solaris systems. Therefore, libtool
10149 *** is disabling shared libraries support. We urge you to upgrade GNU
10150 *** binutils to release 2.9.1 or newer. Another option is to modify
10151 *** your PATH or compiler configuration so that the native linker is
10152 *** used, and then restart.
10153
10154 _LT_EOF
10155 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10156 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10157 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10158 else
10159 ld_shlibs=no
10160 fi
10161 ;;
10162
10163 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10164 case `$LD -v 2>&1` in
10165 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10166 ld_shlibs=no
10167 cat <<_LT_EOF 1>&2
10168
10169 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10170 *** reliably create shared libraries on SCO systems. Therefore, libtool
10171 *** is disabling shared libraries support. We urge you to upgrade GNU
10172 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10173 *** your PATH or compiler configuration so that the native linker is
10174 *** used, and then restart.
10175
10176 _LT_EOF
10177 ;;
10178 *)
10179 # For security reasons, it is highly recommended that you always
10180 # use absolute paths for naming shared libraries, and exclude the
10181 # DT_RUNPATH tag from executables and libraries. But doing so
10182 # requires that you compile everything twice, which is a pain.
10183 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10184 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10185 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10186 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10187 else
10188 ld_shlibs=no
10189 fi
10190 ;;
10191 esac
10192 ;;
10193
10194 sunos4*)
10195 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10196 wlarc=
10197 hardcode_direct=yes
10198 hardcode_shlibpath_var=no
10199 ;;
10200
10201 *)
10202 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10203 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10204 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10205 else
10206 ld_shlibs=no
10207 fi
10208 ;;
10209 esac
10210
10211 if test "$ld_shlibs" = no; then
10212 runpath_var=
10213 hardcode_libdir_flag_spec=
10214 export_dynamic_flag_spec=
10215 whole_archive_flag_spec=
10216 fi
10217 else
10218 # PORTME fill in a description of your system's linker (not GNU ld)
10219 case $host_os in
10220 aix3*)
10221 allow_undefined_flag=unsupported
10222 always_export_symbols=yes
10223 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'
10224 # Note: this linker hardcodes the directories in LIBPATH if there
10225 # are no directories specified by -L.
10226 hardcode_minus_L=yes
10227 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10228 # Neither direct hardcoding nor static linking is supported with a
10229 # broken collect2.
10230 hardcode_direct=unsupported
10231 fi
10232 ;;
10233
10234 aix[4-9]*)
10235 if test "$host_cpu" = ia64; then
10236 # On IA64, the linker does run time linking by default, so we don't
10237 # have to do anything special.
10238 aix_use_runtimelinking=no
10239 exp_sym_flag='-Bexport'
10240 no_entry_flag=""
10241 else
10242 # If we're using GNU nm, then we don't want the "-C" option.
10243 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10244 # Also, AIX nm treats weak defined symbols like other global
10245 # defined symbols, whereas GNU nm marks them as "W".
10246 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10247 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'
10248 else
10249 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'
10250 fi
10251 aix_use_runtimelinking=no
10252
10253 # Test if we are trying to use run time linking or normal
10254 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10255 # need to do runtime linking.
10256 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10257 for ld_flag in $LDFLAGS; do
10258 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10259 aix_use_runtimelinking=yes
10260 break
10261 fi
10262 done
10263 ;;
10264 esac
10265
10266 exp_sym_flag='-bexport'
10267 no_entry_flag='-bnoentry'
10268 fi
10269
10270 # When large executables or shared objects are built, AIX ld can
10271 # have problems creating the table of contents. If linking a library
10272 # or program results in "error TOC overflow" add -mminimal-toc to
10273 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10274 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10275
10276 archive_cmds=''
10277 hardcode_direct=yes
10278 hardcode_direct_absolute=yes
10279 hardcode_libdir_separator=':'
10280 link_all_deplibs=yes
10281 file_list_spec='${wl}-f,'
10282
10283 if test "$GCC" = yes; then
10284 case $host_os in aix4.[012]|aix4.[012].*)
10285 # We only want to do this on AIX 4.2 and lower, the check
10286 # below for broken collect2 doesn't work under 4.3+
10287 collect2name=`${CC} -print-prog-name=collect2`
10288 if test -f "$collect2name" &&
10289 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10290 then
10291 # We have reworked collect2
10292 :
10293 else
10294 # We have old collect2
10295 hardcode_direct=unsupported
10296 # It fails to find uninstalled libraries when the uninstalled
10297 # path is not listed in the libpath. Setting hardcode_minus_L
10298 # to unsupported forces relinking
10299 hardcode_minus_L=yes
10300 hardcode_libdir_flag_spec='-L$libdir'
10301 hardcode_libdir_separator=
10302 fi
10303 ;;
10304 esac
10305 shared_flag='-shared'
10306 if test "$aix_use_runtimelinking" = yes; then
10307 shared_flag="$shared_flag "'${wl}-G'
10308 fi
10309 else
10310 # not using gcc
10311 if test "$host_cpu" = ia64; then
10312 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10313 # chokes on -Wl,-G. The following line is correct:
10314 shared_flag='-G'
10315 else
10316 if test "$aix_use_runtimelinking" = yes; then
10317 shared_flag='${wl}-G'
10318 else
10319 shared_flag='${wl}-bM:SRE'
10320 fi
10321 fi
10322 fi
10323
10324 export_dynamic_flag_spec='${wl}-bexpall'
10325 # It seems that -bexpall does not export symbols beginning with
10326 # underscore (_), so it is better to generate a list of symbols to export.
10327 always_export_symbols=yes
10328 if test "$aix_use_runtimelinking" = yes; then
10329 # Warning - without using the other runtime loading flags (-brtl),
10330 # -berok will link without error, but may produce a broken library.
10331 allow_undefined_flag='-berok'
10332 # Determine the default libpath from the value encoded in an
10333 # empty executable.
10334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10335 /* end confdefs.h. */
10336
10337 int
10338 main ()
10339 {
10340
10341 ;
10342 return 0;
10343 }
10344 _ACEOF
10345 if ac_fn_c_try_link "$LINENO"; then :
10346
10347 lt_aix_libpath_sed='
10348 /Import File Strings/,/^$/ {
10349 /^0/ {
10350 s/^0 *\(.*\)$/\1/
10351 p
10352 }
10353 }'
10354 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10355 # Check for a 64-bit object if we didn't find anything.
10356 if test -z "$aix_libpath"; then
10357 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10358 fi
10359 fi
10360 rm -f core conftest.err conftest.$ac_objext \
10361 conftest$ac_exeext conftest.$ac_ext
10362 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10363
10364 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10365 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"
10366 else
10367 if test "$host_cpu" = ia64; then
10368 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10369 allow_undefined_flag="-z nodefs"
10370 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"
10371 else
10372 # Determine the default libpath from the value encoded in an
10373 # empty executable.
10374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10375 /* end confdefs.h. */
10376
10377 int
10378 main ()
10379 {
10380
10381 ;
10382 return 0;
10383 }
10384 _ACEOF
10385 if ac_fn_c_try_link "$LINENO"; then :
10386
10387 lt_aix_libpath_sed='
10388 /Import File Strings/,/^$/ {
10389 /^0/ {
10390 s/^0 *\(.*\)$/\1/
10391 p
10392 }
10393 }'
10394 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10395 # Check for a 64-bit object if we didn't find anything.
10396 if test -z "$aix_libpath"; then
10397 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10398 fi
10399 fi
10400 rm -f core conftest.err conftest.$ac_objext \
10401 conftest$ac_exeext conftest.$ac_ext
10402 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10403
10404 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10405 # Warning - without using the other run time loading flags,
10406 # -berok will link without error, but may produce a broken library.
10407 no_undefined_flag=' ${wl}-bernotok'
10408 allow_undefined_flag=' ${wl}-berok'
10409 if test "$with_gnu_ld" = yes; then
10410 # We only use this code for GNU lds that support --whole-archive.
10411 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10412 else
10413 # Exported symbols can be pulled into shared objects from archives
10414 whole_archive_flag_spec='$convenience'
10415 fi
10416 archive_cmds_need_lc=yes
10417 # This is similar to how AIX traditionally builds its shared libraries.
10418 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'
10419 fi
10420 fi
10421 ;;
10422
10423 amigaos*)
10424 case $host_cpu in
10425 powerpc)
10426 # see comment about AmigaOS4 .so support
10427 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10428 archive_expsym_cmds=''
10429 ;;
10430 m68k)
10431 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)'
10432 hardcode_libdir_flag_spec='-L$libdir'
10433 hardcode_minus_L=yes
10434 ;;
10435 esac
10436 ;;
10437
10438 bsdi[45]*)
10439 export_dynamic_flag_spec=-rdynamic
10440 ;;
10441
10442 cygwin* | mingw* | pw32* | cegcc*)
10443 # When not using gcc, we currently assume that we are using
10444 # Microsoft Visual C++.
10445 # hardcode_libdir_flag_spec is actually meaningless, as there is
10446 # no search path for DLLs.
10447 hardcode_libdir_flag_spec=' '
10448 allow_undefined_flag=unsupported
10449 # Tell ltmain to make .lib files, not .a files.
10450 libext=lib
10451 # Tell ltmain to make .dll files, not .so files.
10452 shrext_cmds=".dll"
10453 # FIXME: Setting linknames here is a bad hack.
10454 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10455 # The linker will automatically build a .lib file if we build a DLL.
10456 old_archive_from_new_cmds='true'
10457 # FIXME: Should let the user specify the lib program.
10458 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10459 fix_srcfile_path='`cygpath -w "$srcfile"`'
10460 enable_shared_with_static_runtimes=yes
10461 ;;
10462
10463 darwin* | rhapsody*)
10464
10465
10466 archive_cmds_need_lc=no
10467 hardcode_direct=no
10468 hardcode_automatic=yes
10469 hardcode_shlibpath_var=unsupported
10470 if test "$lt_cv_ld_force_load" = "yes"; then
10471 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\"`'
10472 else
10473 whole_archive_flag_spec=''
10474 fi
10475 link_all_deplibs=yes
10476 allow_undefined_flag="$_lt_dar_allow_undefined"
10477 case $cc_basename in
10478 ifort*) _lt_dar_can_shared=yes ;;
10479 *) _lt_dar_can_shared=$GCC ;;
10480 esac
10481 if test "$_lt_dar_can_shared" = "yes"; then
10482 output_verbose_link_cmd=func_echo_all
10483 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10484 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10485 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}"
10486 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}"
10487
10488 else
10489 ld_shlibs=no
10490 fi
10491
10492 ;;
10493
10494 dgux*)
10495 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10496 hardcode_libdir_flag_spec='-L$libdir'
10497 hardcode_shlibpath_var=no
10498 ;;
10499
10500 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10501 # support. Future versions do this automatically, but an explicit c++rt0.o
10502 # does not break anything, and helps significantly (at the cost of a little
10503 # extra space).
10504 freebsd2.2*)
10505 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10506 hardcode_libdir_flag_spec='-R$libdir'
10507 hardcode_direct=yes
10508 hardcode_shlibpath_var=no
10509 ;;
10510
10511 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10512 freebsd2.*)
10513 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10514 hardcode_direct=yes
10515 hardcode_minus_L=yes
10516 hardcode_shlibpath_var=no
10517 ;;
10518
10519 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10520 freebsd* | dragonfly*)
10521 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10522 hardcode_libdir_flag_spec='-R$libdir'
10523 hardcode_direct=yes
10524 hardcode_shlibpath_var=no
10525 ;;
10526
10527 hpux9*)
10528 if test "$GCC" = yes; then
10529 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'
10530 else
10531 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'
10532 fi
10533 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10534 hardcode_libdir_separator=:
10535 hardcode_direct=yes
10536
10537 # hardcode_minus_L: Not really in the search PATH,
10538 # but as the default location of the library.
10539 hardcode_minus_L=yes
10540 export_dynamic_flag_spec='${wl}-E'
10541 ;;
10542
10543 hpux10*)
10544 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10545 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10546 else
10547 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10548 fi
10549 if test "$with_gnu_ld" = no; then
10550 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10551 hardcode_libdir_flag_spec_ld='+b $libdir'
10552 hardcode_libdir_separator=:
10553 hardcode_direct=yes
10554 hardcode_direct_absolute=yes
10555 export_dynamic_flag_spec='${wl}-E'
10556 # hardcode_minus_L: Not really in the search PATH,
10557 # but as the default location of the library.
10558 hardcode_minus_L=yes
10559 fi
10560 ;;
10561
10562 hpux11*)
10563 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10564 case $host_cpu in
10565 hppa*64*)
10566 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10567 ;;
10568 ia64*)
10569 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10570 ;;
10571 *)
10572 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10573 ;;
10574 esac
10575 else
10576 case $host_cpu in
10577 hppa*64*)
10578 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10579 ;;
10580 ia64*)
10581 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10582 ;;
10583 *)
10584
10585 # Older versions of the 11.00 compiler do not understand -b yet
10586 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10588 $as_echo_n "checking if $CC understands -b... " >&6; }
10589 if ${lt_cv_prog_compiler__b+:} false; then :
10590 $as_echo_n "(cached) " >&6
10591 else
10592 lt_cv_prog_compiler__b=no
10593 save_LDFLAGS="$LDFLAGS"
10594 LDFLAGS="$LDFLAGS -b"
10595 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10596 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10597 # The linker can only warn and ignore the option if not recognized
10598 # So say no if there are warnings
10599 if test -s conftest.err; then
10600 # Append any errors to the config.log.
10601 cat conftest.err 1>&5
10602 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10603 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10604 if diff conftest.exp conftest.er2 >/dev/null; then
10605 lt_cv_prog_compiler__b=yes
10606 fi
10607 else
10608 lt_cv_prog_compiler__b=yes
10609 fi
10610 fi
10611 $RM -r conftest*
10612 LDFLAGS="$save_LDFLAGS"
10613
10614 fi
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10616 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10617
10618 if test x"$lt_cv_prog_compiler__b" = xyes; then
10619 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10620 else
10621 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10622 fi
10623
10624 ;;
10625 esac
10626 fi
10627 if test "$with_gnu_ld" = no; then
10628 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10629 hardcode_libdir_separator=:
10630
10631 case $host_cpu in
10632 hppa*64*|ia64*)
10633 hardcode_direct=no
10634 hardcode_shlibpath_var=no
10635 ;;
10636 *)
10637 hardcode_direct=yes
10638 hardcode_direct_absolute=yes
10639 export_dynamic_flag_spec='${wl}-E'
10640
10641 # hardcode_minus_L: Not really in the search PATH,
10642 # but as the default location of the library.
10643 hardcode_minus_L=yes
10644 ;;
10645 esac
10646 fi
10647 ;;
10648
10649 irix5* | irix6* | nonstopux*)
10650 if test "$GCC" = yes; then
10651 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'
10652 # Try to use the -exported_symbol ld option, if it does not
10653 # work, assume that -exports_file does not work either and
10654 # implicitly export all symbols.
10655 save_LDFLAGS="$LDFLAGS"
10656 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10658 /* end confdefs.h. */
10659 int foo(void) {}
10660 _ACEOF
10661 if ac_fn_c_try_link "$LINENO"; then :
10662 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'
10663
10664 fi
10665 rm -f core conftest.err conftest.$ac_objext \
10666 conftest$ac_exeext conftest.$ac_ext
10667 LDFLAGS="$save_LDFLAGS"
10668 else
10669 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'
10670 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'
10671 fi
10672 archive_cmds_need_lc='no'
10673 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10674 hardcode_libdir_separator=:
10675 inherit_rpath=yes
10676 link_all_deplibs=yes
10677 ;;
10678
10679 netbsd*)
10680 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10681 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10682 else
10683 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10684 fi
10685 hardcode_libdir_flag_spec='-R$libdir'
10686 hardcode_direct=yes
10687 hardcode_shlibpath_var=no
10688 ;;
10689
10690 newsos6)
10691 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10692 hardcode_direct=yes
10693 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10694 hardcode_libdir_separator=:
10695 hardcode_shlibpath_var=no
10696 ;;
10697
10698 *nto* | *qnx*)
10699 ;;
10700
10701 openbsd*)
10702 if test -f /usr/libexec/ld.so; then
10703 hardcode_direct=yes
10704 hardcode_shlibpath_var=no
10705 hardcode_direct_absolute=yes
10706 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10707 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10708 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10709 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10710 export_dynamic_flag_spec='${wl}-E'
10711 else
10712 case $host_os in
10713 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10714 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10715 hardcode_libdir_flag_spec='-R$libdir'
10716 ;;
10717 *)
10718 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10719 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10720 ;;
10721 esac
10722 fi
10723 else
10724 ld_shlibs=no
10725 fi
10726 ;;
10727
10728 os2*)
10729 hardcode_libdir_flag_spec='-L$libdir'
10730 hardcode_minus_L=yes
10731 allow_undefined_flag=unsupported
10732 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'
10733 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10734 ;;
10735
10736 osf3*)
10737 if test "$GCC" = yes; then
10738 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10739 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'
10740 else
10741 allow_undefined_flag=' -expect_unresolved \*'
10742 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'
10743 fi
10744 archive_cmds_need_lc='no'
10745 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10746 hardcode_libdir_separator=:
10747 ;;
10748
10749 osf4* | osf5*) # as osf3* with the addition of -msym flag
10750 if test "$GCC" = yes; then
10751 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10752 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'
10753 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10754 else
10755 allow_undefined_flag=' -expect_unresolved \*'
10756 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'
10757 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~
10758 $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'
10759
10760 # Both c and cxx compiler support -rpath directly
10761 hardcode_libdir_flag_spec='-rpath $libdir'
10762 fi
10763 archive_cmds_need_lc='no'
10764 hardcode_libdir_separator=:
10765 ;;
10766
10767 solaris*)
10768 no_undefined_flag=' -z defs'
10769 if test "$GCC" = yes; then
10770 wlarc='${wl}'
10771 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10772 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10773 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10774 else
10775 case `$CC -V 2>&1` in
10776 *"Compilers 5.0"*)
10777 wlarc=''
10778 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10779 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10780 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10781 ;;
10782 *)
10783 wlarc='${wl}'
10784 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10785 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10786 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10787 ;;
10788 esac
10789 fi
10790 hardcode_libdir_flag_spec='-R$libdir'
10791 hardcode_shlibpath_var=no
10792 case $host_os in
10793 solaris2.[0-5] | solaris2.[0-5].*) ;;
10794 *)
10795 # The compiler driver will combine and reorder linker options,
10796 # but understands `-z linker_flag'. GCC discards it without `$wl',
10797 # but is careful enough not to reorder.
10798 # Supported since Solaris 2.6 (maybe 2.5.1?)
10799 if test "$GCC" = yes; then
10800 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10801 else
10802 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10803 fi
10804 ;;
10805 esac
10806 link_all_deplibs=yes
10807 ;;
10808
10809 sunos4*)
10810 if test "x$host_vendor" = xsequent; then
10811 # Use $CC to link under sequent, because it throws in some extra .o
10812 # files that make .init and .fini sections work.
10813 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10814 else
10815 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10816 fi
10817 hardcode_libdir_flag_spec='-L$libdir'
10818 hardcode_direct=yes
10819 hardcode_minus_L=yes
10820 hardcode_shlibpath_var=no
10821 ;;
10822
10823 sysv4)
10824 case $host_vendor in
10825 sni)
10826 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10827 hardcode_direct=yes # is this really true???
10828 ;;
10829 siemens)
10830 ## LD is ld it makes a PLAMLIB
10831 ## CC just makes a GrossModule.
10832 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10833 reload_cmds='$CC -r -o $output$reload_objs'
10834 hardcode_direct=no
10835 ;;
10836 motorola)
10837 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10838 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10839 ;;
10840 esac
10841 runpath_var='LD_RUN_PATH'
10842 hardcode_shlibpath_var=no
10843 ;;
10844
10845 sysv4.3*)
10846 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10847 hardcode_shlibpath_var=no
10848 export_dynamic_flag_spec='-Bexport'
10849 ;;
10850
10851 sysv4*MP*)
10852 if test -d /usr/nec; then
10853 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10854 hardcode_shlibpath_var=no
10855 runpath_var=LD_RUN_PATH
10856 hardcode_runpath_var=yes
10857 ld_shlibs=yes
10858 fi
10859 ;;
10860
10861 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10862 no_undefined_flag='${wl}-z,text'
10863 archive_cmds_need_lc=no
10864 hardcode_shlibpath_var=no
10865 runpath_var='LD_RUN_PATH'
10866
10867 if test "$GCC" = yes; then
10868 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10869 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10870 else
10871 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10872 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10873 fi
10874 ;;
10875
10876 sysv5* | sco3.2v5* | sco5v6*)
10877 # Note: We can NOT use -z defs as we might desire, because we do not
10878 # link with -lc, and that would cause any symbols used from libc to
10879 # always be unresolved, which means just about no library would
10880 # ever link correctly. If we're not using GNU ld we use -z text
10881 # though, which does catch some bad symbols but isn't as heavy-handed
10882 # as -z defs.
10883 no_undefined_flag='${wl}-z,text'
10884 allow_undefined_flag='${wl}-z,nodefs'
10885 archive_cmds_need_lc=no
10886 hardcode_shlibpath_var=no
10887 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10888 hardcode_libdir_separator=':'
10889 link_all_deplibs=yes
10890 export_dynamic_flag_spec='${wl}-Bexport'
10891 runpath_var='LD_RUN_PATH'
10892
10893 if test "$GCC" = yes; then
10894 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10895 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10896 else
10897 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10898 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10899 fi
10900 ;;
10901
10902 uts4*)
10903 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10904 hardcode_libdir_flag_spec='-L$libdir'
10905 hardcode_shlibpath_var=no
10906 ;;
10907
10908 *)
10909 ld_shlibs=no
10910 ;;
10911 esac
10912
10913 if test x$host_vendor = xsni; then
10914 case $host in
10915 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10916 export_dynamic_flag_spec='${wl}-Blargedynsym'
10917 ;;
10918 esac
10919 fi
10920 fi
10921
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10923 $as_echo "$ld_shlibs" >&6; }
10924 test "$ld_shlibs" = no && can_build_shared=no
10925
10926 with_gnu_ld=$with_gnu_ld
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942 #
10943 # Do we need to explicitly link libc?
10944 #
10945 case "x$archive_cmds_need_lc" in
10946 x|xyes)
10947 # Assume -lc should be added
10948 archive_cmds_need_lc=yes
10949
10950 if test "$enable_shared" = yes && test "$GCC" = yes; then
10951 case $archive_cmds in
10952 *'~'*)
10953 # FIXME: we may have to deal with multi-command sequences.
10954 ;;
10955 '$CC '*)
10956 # Test whether the compiler implicitly links with -lc since on some
10957 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10958 # to ld, don't add -lc before -lgcc.
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10960 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10961 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10962 $as_echo_n "(cached) " >&6
10963 else
10964 $RM conftest*
10965 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10966
10967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10968 (eval $ac_compile) 2>&5
10969 ac_status=$?
10970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10971 test $ac_status = 0; } 2>conftest.err; then
10972 soname=conftest
10973 lib=conftest
10974 libobjs=conftest.$ac_objext
10975 deplibs=
10976 wl=$lt_prog_compiler_wl
10977 pic_flag=$lt_prog_compiler_pic
10978 compiler_flags=-v
10979 linker_flags=-v
10980 verstring=
10981 output_objdir=.
10982 libname=conftest
10983 lt_save_allow_undefined_flag=$allow_undefined_flag
10984 allow_undefined_flag=
10985 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10986 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10987 ac_status=$?
10988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10989 test $ac_status = 0; }
10990 then
10991 lt_cv_archive_cmds_need_lc=no
10992 else
10993 lt_cv_archive_cmds_need_lc=yes
10994 fi
10995 allow_undefined_flag=$lt_save_allow_undefined_flag
10996 else
10997 cat conftest.err 1>&5
10998 fi
10999 $RM conftest*
11000
11001 fi
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11003 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11004 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11005 ;;
11006 esac
11007 fi
11008 ;;
11009 esac
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11168 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11169
11170 if test "$GCC" = yes; then
11171 case $host_os in
11172 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11173 *) lt_awk_arg="/^libraries:/" ;;
11174 esac
11175 case $host_os in
11176 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11177 *) lt_sed_strip_eq="s,=/,/,g" ;;
11178 esac
11179 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11180 case $lt_search_path_spec in
11181 *\;*)
11182 # if the path contains ";" then we assume it to be the separator
11183 # otherwise default to the standard path separator (i.e. ":") - it is
11184 # assumed that no part of a normal pathname contains ";" but that should
11185 # okay in the real world where ";" in dirpaths is itself problematic.
11186 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11187 ;;
11188 *)
11189 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11190 ;;
11191 esac
11192 # Ok, now we have the path, separated by spaces, we can step through it
11193 # and add multilib dir if necessary.
11194 lt_tmp_lt_search_path_spec=
11195 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11196 for lt_sys_path in $lt_search_path_spec; do
11197 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11198 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11199 else
11200 test -d "$lt_sys_path" && \
11201 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11202 fi
11203 done
11204 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11205 BEGIN {RS=" "; FS="/|\n";} {
11206 lt_foo="";
11207 lt_count=0;
11208 for (lt_i = NF; lt_i > 0; lt_i--) {
11209 if ($lt_i != "" && $lt_i != ".") {
11210 if ($lt_i == "..") {
11211 lt_count++;
11212 } else {
11213 if (lt_count == 0) {
11214 lt_foo="/" $lt_i lt_foo;
11215 } else {
11216 lt_count--;
11217 }
11218 }
11219 }
11220 }
11221 if (lt_foo != "") { lt_freq[lt_foo]++; }
11222 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11223 }'`
11224 # AWK program above erroneously prepends '/' to C:/dos/paths
11225 # for these hosts.
11226 case $host_os in
11227 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11228 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11229 esac
11230 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11231 else
11232 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11233 fi
11234 library_names_spec=
11235 libname_spec='lib$name'
11236 soname_spec=
11237 shrext_cmds=".so"
11238 postinstall_cmds=
11239 postuninstall_cmds=
11240 finish_cmds=
11241 finish_eval=
11242 shlibpath_var=
11243 shlibpath_overrides_runpath=unknown
11244 version_type=none
11245 dynamic_linker="$host_os ld.so"
11246 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11247 need_lib_prefix=unknown
11248 hardcode_into_libs=no
11249
11250 # when you set need_version to no, make sure it does not cause -set_version
11251 # flags to be left without arguments
11252 need_version=unknown
11253
11254 case $host_os in
11255 aix3*)
11256 version_type=linux
11257 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11258 shlibpath_var=LIBPATH
11259
11260 # AIX 3 has no versioning support, so we append a major version to the name.
11261 soname_spec='${libname}${release}${shared_ext}$major'
11262 ;;
11263
11264 aix[4-9]*)
11265 version_type=linux
11266 need_lib_prefix=no
11267 need_version=no
11268 hardcode_into_libs=yes
11269 if test "$host_cpu" = ia64; then
11270 # AIX 5 supports IA64
11271 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11272 shlibpath_var=LD_LIBRARY_PATH
11273 else
11274 # With GCC up to 2.95.x, collect2 would create an import file
11275 # for dependence libraries. The import file would start with
11276 # the line `#! .'. This would cause the generated library to
11277 # depend on `.', always an invalid library. This was fixed in
11278 # development snapshots of GCC prior to 3.0.
11279 case $host_os in
11280 aix4 | aix4.[01] | aix4.[01].*)
11281 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11282 echo ' yes '
11283 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11284 :
11285 else
11286 can_build_shared=no
11287 fi
11288 ;;
11289 esac
11290 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11291 # soname into executable. Probably we can add versioning support to
11292 # collect2, so additional links can be useful in future.
11293 if test "$aix_use_runtimelinking" = yes; then
11294 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11295 # instead of lib<name>.a to let people know that these are not
11296 # typical AIX shared libraries.
11297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11298 else
11299 # We preserve .a as extension for shared libraries through AIX4.2
11300 # and later when we are not doing run time linking.
11301 library_names_spec='${libname}${release}.a $libname.a'
11302 soname_spec='${libname}${release}${shared_ext}$major'
11303 fi
11304 shlibpath_var=LIBPATH
11305 fi
11306 ;;
11307
11308 amigaos*)
11309 case $host_cpu in
11310 powerpc)
11311 # Since July 2007 AmigaOS4 officially supports .so libraries.
11312 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11314 ;;
11315 m68k)
11316 library_names_spec='$libname.ixlibrary $libname.a'
11317 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11318 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'
11319 ;;
11320 esac
11321 ;;
11322
11323 beos*)
11324 library_names_spec='${libname}${shared_ext}'
11325 dynamic_linker="$host_os ld.so"
11326 shlibpath_var=LIBRARY_PATH
11327 ;;
11328
11329 bsdi[45]*)
11330 version_type=linux
11331 need_version=no
11332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11333 soname_spec='${libname}${release}${shared_ext}$major'
11334 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11335 shlibpath_var=LD_LIBRARY_PATH
11336 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11337 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11338 # the default ld.so.conf also contains /usr/contrib/lib and
11339 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11340 # libtool to hard-code these into programs
11341 ;;
11342
11343 cygwin* | mingw* | pw32* | cegcc*)
11344 version_type=windows
11345 shrext_cmds=".dll"
11346 need_version=no
11347 need_lib_prefix=no
11348
11349 case $GCC,$host_os in
11350 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11351 library_names_spec='$libname.dll.a'
11352 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11353 postinstall_cmds='base_file=`basename \${file}`~
11354 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11355 dldir=$destdir/`dirname \$dlpath`~
11356 test -d \$dldir || mkdir -p \$dldir~
11357 $install_prog $dir/$dlname \$dldir/$dlname~
11358 chmod a+x \$dldir/$dlname~
11359 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11360 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11361 fi'
11362 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11363 dlpath=$dir/\$dldll~
11364 $RM \$dlpath'
11365 shlibpath_overrides_runpath=yes
11366
11367 case $host_os in
11368 cygwin*)
11369 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11370 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11371
11372 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11373 ;;
11374 mingw* | cegcc*)
11375 # MinGW DLLs use traditional 'lib' prefix
11376 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11377 ;;
11378 pw32*)
11379 # pw32 DLLs use 'pw' prefix rather than 'lib'
11380 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11381 ;;
11382 esac
11383 ;;
11384
11385 *)
11386 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11387 ;;
11388 esac
11389 dynamic_linker='Win32 ld.exe'
11390 # FIXME: first we should search . and the directory the executable is in
11391 shlibpath_var=PATH
11392 ;;
11393
11394 darwin* | rhapsody*)
11395 dynamic_linker="$host_os dyld"
11396 version_type=darwin
11397 need_lib_prefix=no
11398 need_version=no
11399 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11400 soname_spec='${libname}${release}${major}$shared_ext'
11401 shlibpath_overrides_runpath=yes
11402 shlibpath_var=DYLD_LIBRARY_PATH
11403 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11404
11405 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11406 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11407 ;;
11408
11409 dgux*)
11410 version_type=linux
11411 need_lib_prefix=no
11412 need_version=no
11413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11414 soname_spec='${libname}${release}${shared_ext}$major'
11415 shlibpath_var=LD_LIBRARY_PATH
11416 ;;
11417
11418 freebsd* | dragonfly*)
11419 # DragonFly does not have aout. When/if they implement a new
11420 # versioning mechanism, adjust this.
11421 if test -x /usr/bin/objformat; then
11422 objformat=`/usr/bin/objformat`
11423 else
11424 case $host_os in
11425 freebsd[23].*) objformat=aout ;;
11426 *) objformat=elf ;;
11427 esac
11428 fi
11429 version_type=freebsd-$objformat
11430 case $version_type in
11431 freebsd-elf*)
11432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11433 need_version=no
11434 need_lib_prefix=no
11435 ;;
11436 freebsd-*)
11437 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11438 need_version=yes
11439 ;;
11440 esac
11441 shlibpath_var=LD_LIBRARY_PATH
11442 case $host_os in
11443 freebsd2.*)
11444 shlibpath_overrides_runpath=yes
11445 ;;
11446 freebsd3.[01]* | freebsdelf3.[01]*)
11447 shlibpath_overrides_runpath=yes
11448 hardcode_into_libs=yes
11449 ;;
11450 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11451 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11452 shlibpath_overrides_runpath=no
11453 hardcode_into_libs=yes
11454 ;;
11455 *) # from 4.6 on, and DragonFly
11456 shlibpath_overrides_runpath=yes
11457 hardcode_into_libs=yes
11458 ;;
11459 esac
11460 ;;
11461
11462 haiku*)
11463 version_type=linux
11464 need_lib_prefix=no
11465 need_version=no
11466 dynamic_linker="$host_os runtime_loader"
11467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11468 soname_spec='${libname}${release}${shared_ext}$major'
11469 shlibpath_var=LIBRARY_PATH
11470 shlibpath_overrides_runpath=yes
11471 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11472 hardcode_into_libs=yes
11473 ;;
11474
11475 hpux9* | hpux10* | hpux11*)
11476 # Give a soname corresponding to the major version so that dld.sl refuses to
11477 # link against other versions.
11478 version_type=sunos
11479 need_lib_prefix=no
11480 need_version=no
11481 case $host_cpu in
11482 ia64*)
11483 shrext_cmds='.so'
11484 hardcode_into_libs=yes
11485 dynamic_linker="$host_os dld.so"
11486 shlibpath_var=LD_LIBRARY_PATH
11487 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11489 soname_spec='${libname}${release}${shared_ext}$major'
11490 if test "X$HPUX_IA64_MODE" = X32; then
11491 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11492 else
11493 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11494 fi
11495 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11496 ;;
11497 hppa*64*)
11498 shrext_cmds='.sl'
11499 hardcode_into_libs=yes
11500 dynamic_linker="$host_os dld.sl"
11501 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11502 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11504 soname_spec='${libname}${release}${shared_ext}$major'
11505 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11506 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11507 ;;
11508 *)
11509 shrext_cmds='.sl'
11510 dynamic_linker="$host_os dld.sl"
11511 shlibpath_var=SHLIB_PATH
11512 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11514 soname_spec='${libname}${release}${shared_ext}$major'
11515 ;;
11516 esac
11517 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11518 postinstall_cmds='chmod 555 $lib'
11519 # or fails outright, so override atomically:
11520 install_override_mode=555
11521 ;;
11522
11523 interix[3-9]*)
11524 version_type=linux
11525 need_lib_prefix=no
11526 need_version=no
11527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11528 soname_spec='${libname}${release}${shared_ext}$major'
11529 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11530 shlibpath_var=LD_LIBRARY_PATH
11531 shlibpath_overrides_runpath=no
11532 hardcode_into_libs=yes
11533 ;;
11534
11535 irix5* | irix6* | nonstopux*)
11536 case $host_os in
11537 nonstopux*) version_type=nonstopux ;;
11538 *)
11539 if test "$lt_cv_prog_gnu_ld" = yes; then
11540 version_type=linux
11541 else
11542 version_type=irix
11543 fi ;;
11544 esac
11545 need_lib_prefix=no
11546 need_version=no
11547 soname_spec='${libname}${release}${shared_ext}$major'
11548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11549 case $host_os in
11550 irix5* | nonstopux*)
11551 libsuff= shlibsuff=
11552 ;;
11553 *)
11554 case $LD in # libtool.m4 will add one of these switches to LD
11555 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11556 libsuff= shlibsuff= libmagic=32-bit;;
11557 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11558 libsuff=32 shlibsuff=N32 libmagic=N32;;
11559 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11560 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11561 *) libsuff= shlibsuff= libmagic=never-match;;
11562 esac
11563 ;;
11564 esac
11565 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11566 shlibpath_overrides_runpath=no
11567 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11568 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11569 hardcode_into_libs=yes
11570 ;;
11571
11572 # No shared lib support for Linux oldld, aout, or coff.
11573 linux*oldld* | linux*aout* | linux*coff*)
11574 dynamic_linker=no
11575 ;;
11576
11577 # This must be Linux ELF.
11578
11579 # uclinux* changes (here and below) have been submitted to the libtool
11580 # project, but have not yet been accepted: they are GCC-local changes
11581 # for the time being. (See
11582 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11583 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
11584 version_type=linux
11585 need_lib_prefix=no
11586 need_version=no
11587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11588 soname_spec='${libname}${release}${shared_ext}$major'
11589 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11590 shlibpath_var=LD_LIBRARY_PATH
11591 shlibpath_overrides_runpath=no
11592
11593 # Some binutils ld are patched to set DT_RUNPATH
11594 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11595 $as_echo_n "(cached) " >&6
11596 else
11597 lt_cv_shlibpath_overrides_runpath=no
11598 save_LDFLAGS=$LDFLAGS
11599 save_libdir=$libdir
11600 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11601 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11603 /* end confdefs.h. */
11604
11605 int
11606 main ()
11607 {
11608
11609 ;
11610 return 0;
11611 }
11612 _ACEOF
11613 if ac_fn_c_try_link "$LINENO"; then :
11614 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11615 lt_cv_shlibpath_overrides_runpath=yes
11616 fi
11617 fi
11618 rm -f core conftest.err conftest.$ac_objext \
11619 conftest$ac_exeext conftest.$ac_ext
11620 LDFLAGS=$save_LDFLAGS
11621 libdir=$save_libdir
11622
11623 fi
11624
11625 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11626
11627 # This implies no fast_install, which is unacceptable.
11628 # Some rework will be needed to allow for fast_install
11629 # before this can be enabled.
11630 hardcode_into_libs=yes
11631
11632 # Append ld.so.conf contents to the search path
11633 if test -f /etc/ld.so.conf; then
11634 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' ' '`
11635 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11636 fi
11637
11638 # We used to test for /lib/ld.so.1 and disable shared libraries on
11639 # powerpc, because MkLinux only supported shared libraries with the
11640 # GNU dynamic linker. Since this was broken with cross compilers,
11641 # most powerpc-linux boxes support dynamic linking these days and
11642 # people can always --disable-shared, the test was removed, and we
11643 # assume the GNU/Linux dynamic linker is in use.
11644 dynamic_linker='GNU/Linux ld.so'
11645 ;;
11646
11647 netbsd*)
11648 version_type=sunos
11649 need_lib_prefix=no
11650 need_version=no
11651 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11653 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11654 dynamic_linker='NetBSD (a.out) ld.so'
11655 else
11656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11657 soname_spec='${libname}${release}${shared_ext}$major'
11658 dynamic_linker='NetBSD ld.elf_so'
11659 fi
11660 shlibpath_var=LD_LIBRARY_PATH
11661 shlibpath_overrides_runpath=yes
11662 hardcode_into_libs=yes
11663 ;;
11664
11665 newsos6)
11666 version_type=linux
11667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11668 shlibpath_var=LD_LIBRARY_PATH
11669 shlibpath_overrides_runpath=yes
11670 ;;
11671
11672 *nto* | *qnx*)
11673 version_type=qnx
11674 need_lib_prefix=no
11675 need_version=no
11676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11677 soname_spec='${libname}${release}${shared_ext}$major'
11678 shlibpath_var=LD_LIBRARY_PATH
11679 shlibpath_overrides_runpath=no
11680 hardcode_into_libs=yes
11681 dynamic_linker='ldqnx.so'
11682 ;;
11683
11684 openbsd*)
11685 version_type=sunos
11686 sys_lib_dlsearch_path_spec="/usr/lib"
11687 need_lib_prefix=no
11688 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11689 case $host_os in
11690 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11691 *) need_version=no ;;
11692 esac
11693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11694 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11695 shlibpath_var=LD_LIBRARY_PATH
11696 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11697 case $host_os in
11698 openbsd2.[89] | openbsd2.[89].*)
11699 shlibpath_overrides_runpath=no
11700 ;;
11701 *)
11702 shlibpath_overrides_runpath=yes
11703 ;;
11704 esac
11705 else
11706 shlibpath_overrides_runpath=yes
11707 fi
11708 ;;
11709
11710 os2*)
11711 libname_spec='$name'
11712 shrext_cmds=".dll"
11713 need_lib_prefix=no
11714 library_names_spec='$libname${shared_ext} $libname.a'
11715 dynamic_linker='OS/2 ld.exe'
11716 shlibpath_var=LIBPATH
11717 ;;
11718
11719 osf3* | osf4* | osf5*)
11720 version_type=osf
11721 need_lib_prefix=no
11722 need_version=no
11723 soname_spec='${libname}${release}${shared_ext}$major'
11724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11725 shlibpath_var=LD_LIBRARY_PATH
11726 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11727 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11728 ;;
11729
11730 rdos*)
11731 dynamic_linker=no
11732 ;;
11733
11734 solaris*)
11735 version_type=linux
11736 need_lib_prefix=no
11737 need_version=no
11738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11739 soname_spec='${libname}${release}${shared_ext}$major'
11740 shlibpath_var=LD_LIBRARY_PATH
11741 shlibpath_overrides_runpath=yes
11742 hardcode_into_libs=yes
11743 # ldd complains unless libraries are executable
11744 postinstall_cmds='chmod +x $lib'
11745 ;;
11746
11747 sunos4*)
11748 version_type=sunos
11749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11750 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11751 shlibpath_var=LD_LIBRARY_PATH
11752 shlibpath_overrides_runpath=yes
11753 if test "$with_gnu_ld" = yes; then
11754 need_lib_prefix=no
11755 fi
11756 need_version=yes
11757 ;;
11758
11759 sysv4 | sysv4.3*)
11760 version_type=linux
11761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11762 soname_spec='${libname}${release}${shared_ext}$major'
11763 shlibpath_var=LD_LIBRARY_PATH
11764 case $host_vendor in
11765 sni)
11766 shlibpath_overrides_runpath=no
11767 need_lib_prefix=no
11768 runpath_var=LD_RUN_PATH
11769 ;;
11770 siemens)
11771 need_lib_prefix=no
11772 ;;
11773 motorola)
11774 need_lib_prefix=no
11775 need_version=no
11776 shlibpath_overrides_runpath=no
11777 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11778 ;;
11779 esac
11780 ;;
11781
11782 sysv4*MP*)
11783 if test -d /usr/nec ;then
11784 version_type=linux
11785 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11786 soname_spec='$libname${shared_ext}.$major'
11787 shlibpath_var=LD_LIBRARY_PATH
11788 fi
11789 ;;
11790
11791 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11792 version_type=freebsd-elf
11793 need_lib_prefix=no
11794 need_version=no
11795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11796 soname_spec='${libname}${release}${shared_ext}$major'
11797 shlibpath_var=LD_LIBRARY_PATH
11798 shlibpath_overrides_runpath=yes
11799 hardcode_into_libs=yes
11800 if test "$with_gnu_ld" = yes; then
11801 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11802 else
11803 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11804 case $host_os in
11805 sco3.2v5*)
11806 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11807 ;;
11808 esac
11809 fi
11810 sys_lib_dlsearch_path_spec='/usr/lib'
11811 ;;
11812
11813 tpf*)
11814 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11815 version_type=linux
11816 need_lib_prefix=no
11817 need_version=no
11818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11819 shlibpath_var=LD_LIBRARY_PATH
11820 shlibpath_overrides_runpath=no
11821 hardcode_into_libs=yes
11822 ;;
11823
11824 uts4*)
11825 version_type=linux
11826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11827 soname_spec='${libname}${release}${shared_ext}$major'
11828 shlibpath_var=LD_LIBRARY_PATH
11829 ;;
11830
11831 # Shared libraries for VwWorks, >= 7 only at this stage
11832 # and (fpic) still incompatible with "large" code models
11833 # in a few configurations. Only for RTP mode in any case,
11834 # and upon explicit request at configure time.
11835 vxworks7*)
11836 dynamic_linker=no
11837 case ${with_multisubdir}-${enable_shared} in
11838 *large*)
11839 ;;
11840 *mrtp*-yes)
11841 version_type=linux
11842 need_lib_prefix=no
11843 need_version=no
11844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11845 soname_spec='${libname}${release}${shared_ext}$major'
11846 dynamic_linker="$host_os module_loader"
11847 ;;
11848 esac
11849 ;;
11850 *)
11851 dynamic_linker=no
11852 ;;
11853 esac
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11855 $as_echo "$dynamic_linker" >&6; }
11856 test "$dynamic_linker" = no && can_build_shared=no
11857
11858 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11859 if test "$GCC" = yes; then
11860 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11861 fi
11862
11863 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11864 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11865 fi
11866 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11867 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11868 fi
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11962 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11963 hardcode_action=
11964 if test -n "$hardcode_libdir_flag_spec" ||
11965 test -n "$runpath_var" ||
11966 test "X$hardcode_automatic" = "Xyes" ; then
11967
11968 # We can hardcode non-existent directories.
11969 if test "$hardcode_direct" != no &&
11970 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11971 # have to relink, otherwise we might link with an installed library
11972 # when we should be linking with a yet-to-be-installed one
11973 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11974 test "$hardcode_minus_L" != no; then
11975 # Linking always hardcodes the temporary library directory.
11976 hardcode_action=relink
11977 else
11978 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11979 hardcode_action=immediate
11980 fi
11981 else
11982 # We cannot hardcode anything, or else we can only hardcode existing
11983 # directories.
11984 hardcode_action=unsupported
11985 fi
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11987 $as_echo "$hardcode_action" >&6; }
11988
11989 if test "$hardcode_action" = relink ||
11990 test "$inherit_rpath" = yes; then
11991 # Fast installation is not supported
11992 enable_fast_install=no
11993 elif test "$shlibpath_overrides_runpath" = yes ||
11994 test "$enable_shared" = no; then
11995 # Fast installation is not necessary
11996 enable_fast_install=needless
11997 fi
11998
11999
12000
12001
12002
12003
12004 if test "x$enable_dlopen" != xyes; then
12005 enable_dlopen=unknown
12006 enable_dlopen_self=unknown
12007 enable_dlopen_self_static=unknown
12008 else
12009 lt_cv_dlopen=no
12010 lt_cv_dlopen_libs=
12011
12012 case $host_os in
12013 beos*)
12014 lt_cv_dlopen="load_add_on"
12015 lt_cv_dlopen_libs=
12016 lt_cv_dlopen_self=yes
12017 ;;
12018
12019 mingw* | pw32* | cegcc*)
12020 lt_cv_dlopen="LoadLibrary"
12021 lt_cv_dlopen_libs=
12022 ;;
12023
12024 cygwin*)
12025 lt_cv_dlopen="dlopen"
12026 lt_cv_dlopen_libs=
12027 ;;
12028
12029 darwin*)
12030 # if libdl is installed we need to link against it
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12032 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12033 if ${ac_cv_lib_dl_dlopen+:} false; then :
12034 $as_echo_n "(cached) " >&6
12035 else
12036 ac_check_lib_save_LIBS=$LIBS
12037 LIBS="-ldl $LIBS"
12038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12039 /* end confdefs.h. */
12040
12041 /* Override any GCC internal prototype to avoid an error.
12042 Use char because int might match the return type of a GCC
12043 builtin and then its argument prototype would still apply. */
12044 #ifdef __cplusplus
12045 extern "C"
12046 #endif
12047 char dlopen ();
12048 int
12049 main ()
12050 {
12051 return dlopen ();
12052 ;
12053 return 0;
12054 }
12055 _ACEOF
12056 if ac_fn_c_try_link "$LINENO"; then :
12057 ac_cv_lib_dl_dlopen=yes
12058 else
12059 ac_cv_lib_dl_dlopen=no
12060 fi
12061 rm -f core conftest.err conftest.$ac_objext \
12062 conftest$ac_exeext conftest.$ac_ext
12063 LIBS=$ac_check_lib_save_LIBS
12064 fi
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12066 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12067 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12068 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12069 else
12070
12071 lt_cv_dlopen="dyld"
12072 lt_cv_dlopen_libs=
12073 lt_cv_dlopen_self=yes
12074
12075 fi
12076
12077 ;;
12078
12079 *)
12080 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12081 if test "x$ac_cv_func_shl_load" = xyes; then :
12082 lt_cv_dlopen="shl_load"
12083 else
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12085 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12086 if ${ac_cv_lib_dld_shl_load+:} false; then :
12087 $as_echo_n "(cached) " >&6
12088 else
12089 ac_check_lib_save_LIBS=$LIBS
12090 LIBS="-ldld $LIBS"
12091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12092 /* end confdefs.h. */
12093
12094 /* Override any GCC internal prototype to avoid an error.
12095 Use char because int might match the return type of a GCC
12096 builtin and then its argument prototype would still apply. */
12097 #ifdef __cplusplus
12098 extern "C"
12099 #endif
12100 char shl_load ();
12101 int
12102 main ()
12103 {
12104 return shl_load ();
12105 ;
12106 return 0;
12107 }
12108 _ACEOF
12109 if ac_fn_c_try_link "$LINENO"; then :
12110 ac_cv_lib_dld_shl_load=yes
12111 else
12112 ac_cv_lib_dld_shl_load=no
12113 fi
12114 rm -f core conftest.err conftest.$ac_objext \
12115 conftest$ac_exeext conftest.$ac_ext
12116 LIBS=$ac_check_lib_save_LIBS
12117 fi
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12119 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12120 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12121 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12122 else
12123 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12124 if test "x$ac_cv_func_dlopen" = xyes; then :
12125 lt_cv_dlopen="dlopen"
12126 else
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12128 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12129 if ${ac_cv_lib_dl_dlopen+:} false; then :
12130 $as_echo_n "(cached) " >&6
12131 else
12132 ac_check_lib_save_LIBS=$LIBS
12133 LIBS="-ldl $LIBS"
12134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12135 /* end confdefs.h. */
12136
12137 /* Override any GCC internal prototype to avoid an error.
12138 Use char because int might match the return type of a GCC
12139 builtin and then its argument prototype would still apply. */
12140 #ifdef __cplusplus
12141 extern "C"
12142 #endif
12143 char dlopen ();
12144 int
12145 main ()
12146 {
12147 return dlopen ();
12148 ;
12149 return 0;
12150 }
12151 _ACEOF
12152 if ac_fn_c_try_link "$LINENO"; then :
12153 ac_cv_lib_dl_dlopen=yes
12154 else
12155 ac_cv_lib_dl_dlopen=no
12156 fi
12157 rm -f core conftest.err conftest.$ac_objext \
12158 conftest$ac_exeext conftest.$ac_ext
12159 LIBS=$ac_check_lib_save_LIBS
12160 fi
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12162 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12163 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12164 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12165 else
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12167 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12168 if ${ac_cv_lib_svld_dlopen+:} false; then :
12169 $as_echo_n "(cached) " >&6
12170 else
12171 ac_check_lib_save_LIBS=$LIBS
12172 LIBS="-lsvld $LIBS"
12173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12174 /* end confdefs.h. */
12175
12176 /* Override any GCC internal prototype to avoid an error.
12177 Use char because int might match the return type of a GCC
12178 builtin and then its argument prototype would still apply. */
12179 #ifdef __cplusplus
12180 extern "C"
12181 #endif
12182 char dlopen ();
12183 int
12184 main ()
12185 {
12186 return dlopen ();
12187 ;
12188 return 0;
12189 }
12190 _ACEOF
12191 if ac_fn_c_try_link "$LINENO"; then :
12192 ac_cv_lib_svld_dlopen=yes
12193 else
12194 ac_cv_lib_svld_dlopen=no
12195 fi
12196 rm -f core conftest.err conftest.$ac_objext \
12197 conftest$ac_exeext conftest.$ac_ext
12198 LIBS=$ac_check_lib_save_LIBS
12199 fi
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12201 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12202 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12203 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12204 else
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12206 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12207 if ${ac_cv_lib_dld_dld_link+:} false; then :
12208 $as_echo_n "(cached) " >&6
12209 else
12210 ac_check_lib_save_LIBS=$LIBS
12211 LIBS="-ldld $LIBS"
12212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12213 /* end confdefs.h. */
12214
12215 /* Override any GCC internal prototype to avoid an error.
12216 Use char because int might match the return type of a GCC
12217 builtin and then its argument prototype would still apply. */
12218 #ifdef __cplusplus
12219 extern "C"
12220 #endif
12221 char dld_link ();
12222 int
12223 main ()
12224 {
12225 return dld_link ();
12226 ;
12227 return 0;
12228 }
12229 _ACEOF
12230 if ac_fn_c_try_link "$LINENO"; then :
12231 ac_cv_lib_dld_dld_link=yes
12232 else
12233 ac_cv_lib_dld_dld_link=no
12234 fi
12235 rm -f core conftest.err conftest.$ac_objext \
12236 conftest$ac_exeext conftest.$ac_ext
12237 LIBS=$ac_check_lib_save_LIBS
12238 fi
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12240 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12241 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12242 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12243 fi
12244
12245
12246 fi
12247
12248
12249 fi
12250
12251
12252 fi
12253
12254
12255 fi
12256
12257
12258 fi
12259
12260 ;;
12261 esac
12262
12263 if test "x$lt_cv_dlopen" != xno; then
12264 enable_dlopen=yes
12265 else
12266 enable_dlopen=no
12267 fi
12268
12269 case $lt_cv_dlopen in
12270 dlopen)
12271 save_CPPFLAGS="$CPPFLAGS"
12272 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12273
12274 save_LDFLAGS="$LDFLAGS"
12275 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12276
12277 save_LIBS="$LIBS"
12278 LIBS="$lt_cv_dlopen_libs $LIBS"
12279
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12281 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12282 if ${lt_cv_dlopen_self+:} false; then :
12283 $as_echo_n "(cached) " >&6
12284 else
12285 if test "$cross_compiling" = yes; then :
12286 lt_cv_dlopen_self=cross
12287 else
12288 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12289 lt_status=$lt_dlunknown
12290 cat > conftest.$ac_ext <<_LT_EOF
12291 #line 12291 "configure"
12292 #include "confdefs.h"
12293
12294 #if HAVE_DLFCN_H
12295 #include <dlfcn.h>
12296 #endif
12297
12298 #include <stdio.h>
12299
12300 #ifdef RTLD_GLOBAL
12301 # define LT_DLGLOBAL RTLD_GLOBAL
12302 #else
12303 # ifdef DL_GLOBAL
12304 # define LT_DLGLOBAL DL_GLOBAL
12305 # else
12306 # define LT_DLGLOBAL 0
12307 # endif
12308 #endif
12309
12310 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12311 find out it does not work in some platform. */
12312 #ifndef LT_DLLAZY_OR_NOW
12313 # ifdef RTLD_LAZY
12314 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12315 # else
12316 # ifdef DL_LAZY
12317 # define LT_DLLAZY_OR_NOW DL_LAZY
12318 # else
12319 # ifdef RTLD_NOW
12320 # define LT_DLLAZY_OR_NOW RTLD_NOW
12321 # else
12322 # ifdef DL_NOW
12323 # define LT_DLLAZY_OR_NOW DL_NOW
12324 # else
12325 # define LT_DLLAZY_OR_NOW 0
12326 # endif
12327 # endif
12328 # endif
12329 # endif
12330 #endif
12331
12332 /* When -fvisbility=hidden is used, assume the code has been annotated
12333 correspondingly for the symbols needed. */
12334 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12335 void fnord () __attribute__((visibility("default")));
12336 #endif
12337
12338 void fnord () { int i=42; }
12339 int main ()
12340 {
12341 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12342 int status = $lt_dlunknown;
12343
12344 if (self)
12345 {
12346 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12347 else
12348 {
12349 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12350 else puts (dlerror ());
12351 }
12352 /* dlclose (self); */
12353 }
12354 else
12355 puts (dlerror ());
12356
12357 return status;
12358 }
12359 _LT_EOF
12360 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12361 (eval $ac_link) 2>&5
12362 ac_status=$?
12363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12364 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12365 (./conftest; exit; ) >&5 2>/dev/null
12366 lt_status=$?
12367 case x$lt_status in
12368 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12369 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12370 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12371 esac
12372 else :
12373 # compilation failed
12374 lt_cv_dlopen_self=no
12375 fi
12376 fi
12377 rm -fr conftest*
12378
12379
12380 fi
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12382 $as_echo "$lt_cv_dlopen_self" >&6; }
12383
12384 if test "x$lt_cv_dlopen_self" = xyes; then
12385 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12387 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12388 if ${lt_cv_dlopen_self_static+:} false; then :
12389 $as_echo_n "(cached) " >&6
12390 else
12391 if test "$cross_compiling" = yes; then :
12392 lt_cv_dlopen_self_static=cross
12393 else
12394 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12395 lt_status=$lt_dlunknown
12396 cat > conftest.$ac_ext <<_LT_EOF
12397 #line 12397 "configure"
12398 #include "confdefs.h"
12399
12400 #if HAVE_DLFCN_H
12401 #include <dlfcn.h>
12402 #endif
12403
12404 #include <stdio.h>
12405
12406 #ifdef RTLD_GLOBAL
12407 # define LT_DLGLOBAL RTLD_GLOBAL
12408 #else
12409 # ifdef DL_GLOBAL
12410 # define LT_DLGLOBAL DL_GLOBAL
12411 # else
12412 # define LT_DLGLOBAL 0
12413 # endif
12414 #endif
12415
12416 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12417 find out it does not work in some platform. */
12418 #ifndef LT_DLLAZY_OR_NOW
12419 # ifdef RTLD_LAZY
12420 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12421 # else
12422 # ifdef DL_LAZY
12423 # define LT_DLLAZY_OR_NOW DL_LAZY
12424 # else
12425 # ifdef RTLD_NOW
12426 # define LT_DLLAZY_OR_NOW RTLD_NOW
12427 # else
12428 # ifdef DL_NOW
12429 # define LT_DLLAZY_OR_NOW DL_NOW
12430 # else
12431 # define LT_DLLAZY_OR_NOW 0
12432 # endif
12433 # endif
12434 # endif
12435 # endif
12436 #endif
12437
12438 /* When -fvisbility=hidden is used, assume the code has been annotated
12439 correspondingly for the symbols needed. */
12440 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12441 void fnord () __attribute__((visibility("default")));
12442 #endif
12443
12444 void fnord () { int i=42; }
12445 int main ()
12446 {
12447 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12448 int status = $lt_dlunknown;
12449
12450 if (self)
12451 {
12452 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12453 else
12454 {
12455 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12456 else puts (dlerror ());
12457 }
12458 /* dlclose (self); */
12459 }
12460 else
12461 puts (dlerror ());
12462
12463 return status;
12464 }
12465 _LT_EOF
12466 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12467 (eval $ac_link) 2>&5
12468 ac_status=$?
12469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12470 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12471 (./conftest; exit; ) >&5 2>/dev/null
12472 lt_status=$?
12473 case x$lt_status in
12474 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12475 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12476 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12477 esac
12478 else :
12479 # compilation failed
12480 lt_cv_dlopen_self_static=no
12481 fi
12482 fi
12483 rm -fr conftest*
12484
12485
12486 fi
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12488 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12489 fi
12490
12491 CPPFLAGS="$save_CPPFLAGS"
12492 LDFLAGS="$save_LDFLAGS"
12493 LIBS="$save_LIBS"
12494 ;;
12495 esac
12496
12497 case $lt_cv_dlopen_self in
12498 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12499 *) enable_dlopen_self=unknown ;;
12500 esac
12501
12502 case $lt_cv_dlopen_self_static in
12503 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12504 *) enable_dlopen_self_static=unknown ;;
12505 esac
12506 fi
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524 striplib=
12525 old_striplib=
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12527 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12528 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12529 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12530 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12532 $as_echo "yes" >&6; }
12533 else
12534 # FIXME - insert some real tests, host_os isn't really good enough
12535 case $host_os in
12536 darwin*)
12537 if test -n "$STRIP" ; then
12538 striplib="$STRIP -x"
12539 old_striplib="$STRIP -S"
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12541 $as_echo "yes" >&6; }
12542 else
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12544 $as_echo "no" >&6; }
12545 fi
12546 ;;
12547 *)
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12549 $as_echo "no" >&6; }
12550 ;;
12551 esac
12552 fi
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565 # Report which library types will actually be built
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12567 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12569 $as_echo "$can_build_shared" >&6; }
12570
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12572 $as_echo_n "checking whether to build shared libraries... " >&6; }
12573 test "$can_build_shared" = "no" && enable_shared=no
12574
12575 # On AIX, shared libraries and static libraries use the same namespace, and
12576 # are all built from PIC.
12577 case $host_os in
12578 aix3*)
12579 test "$enable_shared" = yes && enable_static=no
12580 if test -n "$RANLIB"; then
12581 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12582 postinstall_cmds='$RANLIB $lib'
12583 fi
12584 ;;
12585
12586 aix[4-9]*)
12587 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12588 test "$enable_shared" = yes && enable_static=no
12589 fi
12590 ;;
12591 esac
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12593 $as_echo "$enable_shared" >&6; }
12594
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12596 $as_echo_n "checking whether to build static libraries... " >&6; }
12597 # Make sure either enable_shared or enable_static is yes.
12598 test "$enable_shared" = yes || enable_static=yes
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12600 $as_echo "$enable_static" >&6; }
12601
12602
12603
12604
12605 fi
12606 ac_ext=c
12607 ac_cpp='$CPP $CPPFLAGS'
12608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12611
12612 CC="$lt_save_CC"
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626 ac_config_commands="$ac_config_commands libtool"
12627
12628
12629
12630
12631 # Only expand once:
12632
12633
12634
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind" >&5
12636 $as_echo_n "checking for library containing bind... " >&6; }
12637 if ${ac_cv_search_bind+:} false; then :
12638 $as_echo_n "(cached) " >&6
12639 else
12640 ac_func_search_save_LIBS=$LIBS
12641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12642 /* end confdefs.h. */
12643
12644 /* Override any GCC internal prototype to avoid an error.
12645 Use char because int might match the return type of a GCC
12646 builtin and then its argument prototype would still apply. */
12647 #ifdef __cplusplus
12648 extern "C"
12649 #endif
12650 char bind ();
12651 int
12652 main ()
12653 {
12654 return bind ();
12655 ;
12656 return 0;
12657 }
12658 _ACEOF
12659 for ac_lib in '' socket; do
12660 if test -z "$ac_lib"; then
12661 ac_res="none required"
12662 else
12663 ac_res=-l$ac_lib
12664 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12665 fi
12666 if ac_fn_c_try_link "$LINENO"; then :
12667 ac_cv_search_bind=$ac_res
12668 fi
12669 rm -f core conftest.err conftest.$ac_objext \
12670 conftest$ac_exeext
12671 if ${ac_cv_search_bind+:} false; then :
12672 break
12673 fi
12674 done
12675 if ${ac_cv_search_bind+:} false; then :
12676
12677 else
12678 ac_cv_search_bind=no
12679 fi
12680 rm conftest.$ac_ext
12681 LIBS=$ac_func_search_save_LIBS
12682 fi
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind" >&5
12684 $as_echo "$ac_cv_search_bind" >&6; }
12685 ac_res=$ac_cv_search_bind
12686 if test "$ac_res" != no; then :
12687 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12688
12689 fi
12690
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
12692 $as_echo_n "checking for library containing gethostbyname... " >&6; }
12693 if ${ac_cv_search_gethostbyname+:} false; then :
12694 $as_echo_n "(cached) " >&6
12695 else
12696 ac_func_search_save_LIBS=$LIBS
12697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12698 /* end confdefs.h. */
12699
12700 /* Override any GCC internal prototype to avoid an error.
12701 Use char because int might match the return type of a GCC
12702 builtin and then its argument prototype would still apply. */
12703 #ifdef __cplusplus
12704 extern "C"
12705 #endif
12706 char gethostbyname ();
12707 int
12708 main ()
12709 {
12710 return gethostbyname ();
12711 ;
12712 return 0;
12713 }
12714 _ACEOF
12715 for ac_lib in '' nsl; do
12716 if test -z "$ac_lib"; then
12717 ac_res="none required"
12718 else
12719 ac_res=-l$ac_lib
12720 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12721 fi
12722 if ac_fn_c_try_link "$LINENO"; then :
12723 ac_cv_search_gethostbyname=$ac_res
12724 fi
12725 rm -f core conftest.err conftest.$ac_objext \
12726 conftest$ac_exeext
12727 if ${ac_cv_search_gethostbyname+:} false; then :
12728 break
12729 fi
12730 done
12731 if ${ac_cv_search_gethostbyname+:} false; then :
12732
12733 else
12734 ac_cv_search_gethostbyname=no
12735 fi
12736 rm conftest.$ac_ext
12737 LIBS=$ac_func_search_save_LIBS
12738 fi
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
12740 $as_echo "$ac_cv_search_gethostbyname" >&6; }
12741 ac_res=$ac_cv_search_gethostbyname
12742 if test "$ac_res" != no; then :
12743 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12744
12745 fi
12746
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fabs" >&5
12748 $as_echo_n "checking for library containing fabs... " >&6; }
12749 if ${ac_cv_search_fabs+:} false; then :
12750 $as_echo_n "(cached) " >&6
12751 else
12752 ac_func_search_save_LIBS=$LIBS
12753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12754 /* end confdefs.h. */
12755
12756 /* Override any GCC internal prototype to avoid an error.
12757 Use char because int might match the return type of a GCC
12758 builtin and then its argument prototype would still apply. */
12759 #ifdef __cplusplus
12760 extern "C"
12761 #endif
12762 char fabs ();
12763 int
12764 main ()
12765 {
12766 return fabs ();
12767 ;
12768 return 0;
12769 }
12770 _ACEOF
12771 for ac_lib in '' m; do
12772 if test -z "$ac_lib"; then
12773 ac_res="none required"
12774 else
12775 ac_res=-l$ac_lib
12776 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12777 fi
12778 if ac_fn_c_try_link "$LINENO"; then :
12779 ac_cv_search_fabs=$ac_res
12780 fi
12781 rm -f core conftest.err conftest.$ac_objext \
12782 conftest$ac_exeext
12783 if ${ac_cv_search_fabs+:} false; then :
12784 break
12785 fi
12786 done
12787 if ${ac_cv_search_fabs+:} false; then :
12788
12789 else
12790 ac_cv_search_fabs=no
12791 fi
12792 rm conftest.$ac_ext
12793 LIBS=$ac_func_search_save_LIBS
12794 fi
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fabs" >&5
12796 $as_echo "$ac_cv_search_fabs" >&6; }
12797 ac_res=$ac_cv_search_fabs
12798 if test "$ac_res" != no; then :
12799 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12800
12801 fi
12802
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log2" >&5
12804 $as_echo_n "checking for library containing log2... " >&6; }
12805 if ${ac_cv_search_log2+:} false; then :
12806 $as_echo_n "(cached) " >&6
12807 else
12808 ac_func_search_save_LIBS=$LIBS
12809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12810 /* end confdefs.h. */
12811
12812 /* Override any GCC internal prototype to avoid an error.
12813 Use char because int might match the return type of a GCC
12814 builtin and then its argument prototype would still apply. */
12815 #ifdef __cplusplus
12816 extern "C"
12817 #endif
12818 char log2 ();
12819 int
12820 main ()
12821 {
12822 return log2 ();
12823 ;
12824 return 0;
12825 }
12826 _ACEOF
12827 for ac_lib in '' m; do
12828 if test -z "$ac_lib"; then
12829 ac_res="none required"
12830 else
12831 ac_res=-l$ac_lib
12832 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12833 fi
12834 if ac_fn_c_try_link "$LINENO"; then :
12835 ac_cv_search_log2=$ac_res
12836 fi
12837 rm -f core conftest.err conftest.$ac_objext \
12838 conftest$ac_exeext
12839 if ${ac_cv_search_log2+:} false; then :
12840 break
12841 fi
12842 done
12843 if ${ac_cv_search_log2+:} false; then :
12844
12845 else
12846 ac_cv_search_log2=no
12847 fi
12848 rm conftest.$ac_ext
12849 LIBS=$ac_func_search_save_LIBS
12850 fi
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log2" >&5
12852 $as_echo "$ac_cv_search_log2" >&6; }
12853 ac_res=$ac_cv_search_log2
12854 if test "$ac_res" != no; then :
12855 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12856
12857 fi
12858
12859
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12861 $as_echo_n "checking for library containing dlopen... " >&6; }
12862 if ${ac_cv_search_dlopen+:} false; then :
12863 $as_echo_n "(cached) " >&6
12864 else
12865 ac_func_search_save_LIBS=$LIBS
12866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12867 /* end confdefs.h. */
12868
12869 /* Override any GCC internal prototype to avoid an error.
12870 Use char because int might match the return type of a GCC
12871 builtin and then its argument prototype would still apply. */
12872 #ifdef __cplusplus
12873 extern "C"
12874 #endif
12875 char dlopen ();
12876 int
12877 main ()
12878 {
12879 return dlopen ();
12880 ;
12881 return 0;
12882 }
12883 _ACEOF
12884 for ac_lib in '' dl; do
12885 if test -z "$ac_lib"; then
12886 ac_res="none required"
12887 else
12888 ac_res=-l$ac_lib
12889 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12890 fi
12891 if ac_fn_c_try_link "$LINENO"; then :
12892 ac_cv_search_dlopen=$ac_res
12893 fi
12894 rm -f core conftest.err conftest.$ac_objext \
12895 conftest$ac_exeext
12896 if ${ac_cv_search_dlopen+:} false; then :
12897 break
12898 fi
12899 done
12900 if ${ac_cv_search_dlopen+:} false; then :
12901
12902 else
12903 ac_cv_search_dlopen=no
12904 fi
12905 rm conftest.$ac_ext
12906 LIBS=$ac_func_search_save_LIBS
12907 fi
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12909 $as_echo "$ac_cv_search_dlopen" >&6; }
12910 ac_res=$ac_cv_search_dlopen
12911 if test "$ac_res" != no; then :
12912 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12913
12914 fi
12915
12916 if test "${ac_cv_lib_dl_dlopen}" = "yes"; then
12917
12918 pkg_failed=no
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl2" >&5
12920 $as_echo_n "checking for sdl2... " >&6; }
12921
12922 if test -n "$SDL_CFLAGS"; then
12923 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
12924 elif test -n "$PKG_CONFIG"; then
12925 if test -n "$PKG_CONFIG" && \
12926 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2\""; } >&5
12927 ($PKG_CONFIG --exists --print-errors "sdl2") 2>&5
12928 ac_status=$?
12929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12930 test $ac_status = 0; }; then
12931 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl2" 2>/dev/null`
12932 test "x$?" != "x0" && pkg_failed=yes
12933 else
12934 pkg_failed=yes
12935 fi
12936 else
12937 pkg_failed=untried
12938 fi
12939 if test -n "$SDL_LIBS"; then
12940 pkg_cv_SDL_LIBS="$SDL_LIBS"
12941 elif test -n "$PKG_CONFIG"; then
12942 if test -n "$PKG_CONFIG" && \
12943 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2\""; } >&5
12944 ($PKG_CONFIG --exists --print-errors "sdl2") 2>&5
12945 ac_status=$?
12946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12947 test $ac_status = 0; }; then
12948 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl2" 2>/dev/null`
12949 test "x$?" != "x0" && pkg_failed=yes
12950 else
12951 pkg_failed=yes
12952 fi
12953 else
12954 pkg_failed=untried
12955 fi
12956
12957 if test $pkg_failed = no; then
12958 pkg_save_LDFLAGS="$LDFLAGS"
12959 LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS"
12960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12961 /* end confdefs.h. */
12962
12963 int
12964 main ()
12965 {
12966
12967 ;
12968 return 0;
12969 }
12970 _ACEOF
12971 if ac_fn_c_try_link "$LINENO"; then :
12972
12973 else
12974 pkg_failed=yes
12975 fi
12976 rm -f core conftest.err conftest.$ac_objext \
12977 conftest$ac_exeext conftest.$ac_ext
12978 LDFLAGS=$pkg_save_LDFLAGS
12979 fi
12980
12981
12982
12983 if test $pkg_failed = yes; then
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12985 $as_echo "no" >&6; }
12986
12987 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12988 _pkg_short_errors_supported=yes
12989 else
12990 _pkg_short_errors_supported=no
12991 fi
12992 if test $_pkg_short_errors_supported = yes; then
12993 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl2" 2>&1`
12994 else
12995 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl2" 2>&1`
12996 fi
12997 # Put the nasty error message in config.log where it belongs
12998 echo "$SDL_PKG_ERRORS" >&5
12999
13000
13001
13002 pkg_failed=no
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl" >&5
13004 $as_echo_n "checking for sdl... " >&6; }
13005
13006 if test -n "$SDL_CFLAGS"; then
13007 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
13008 elif test -n "$PKG_CONFIG"; then
13009 if test -n "$PKG_CONFIG" && \
13010 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13011 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13012 ac_status=$?
13013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13014 test $ac_status = 0; }; then
13015 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
13016 test "x$?" != "x0" && pkg_failed=yes
13017 else
13018 pkg_failed=yes
13019 fi
13020 else
13021 pkg_failed=untried
13022 fi
13023 if test -n "$SDL_LIBS"; then
13024 pkg_cv_SDL_LIBS="$SDL_LIBS"
13025 elif test -n "$PKG_CONFIG"; then
13026 if test -n "$PKG_CONFIG" && \
13027 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13028 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13029 ac_status=$?
13030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13031 test $ac_status = 0; }; then
13032 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
13033 test "x$?" != "x0" && pkg_failed=yes
13034 else
13035 pkg_failed=yes
13036 fi
13037 else
13038 pkg_failed=untried
13039 fi
13040
13041 if test $pkg_failed = no; then
13042 pkg_save_LDFLAGS="$LDFLAGS"
13043 LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS"
13044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13045 /* end confdefs.h. */
13046
13047 int
13048 main ()
13049 {
13050
13051 ;
13052 return 0;
13053 }
13054 _ACEOF
13055 if ac_fn_c_try_link "$LINENO"; then :
13056
13057 else
13058 pkg_failed=yes
13059 fi
13060 rm -f core conftest.err conftest.$ac_objext \
13061 conftest$ac_exeext conftest.$ac_ext
13062 LDFLAGS=$pkg_save_LDFLAGS
13063 fi
13064
13065
13066
13067 if test $pkg_failed = yes; then
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13069 $as_echo "no" >&6; }
13070
13071 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13072 _pkg_short_errors_supported=yes
13073 else
13074 _pkg_short_errors_supported=no
13075 fi
13076 if test $_pkg_short_errors_supported = yes; then
13077 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1`
13078 else
13079 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1`
13080 fi
13081 # Put the nasty error message in config.log where it belongs
13082 echo "$SDL_PKG_ERRORS" >&5
13083
13084 :
13085 elif test $pkg_failed = untried; then
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13087 $as_echo "no" >&6; }
13088 :
13089 else
13090 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
13091 SDL_LIBS=$pkg_cv_SDL_LIBS
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13093 $as_echo "yes" >&6; }
13094 SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=1"
13095
13096 fi
13097
13098 elif test $pkg_failed = untried; then
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13100 $as_echo "no" >&6; }
13101
13102
13103 pkg_failed=no
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl" >&5
13105 $as_echo_n "checking for sdl... " >&6; }
13106
13107 if test -n "$SDL_CFLAGS"; then
13108 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
13109 elif test -n "$PKG_CONFIG"; then
13110 if test -n "$PKG_CONFIG" && \
13111 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13112 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13113 ac_status=$?
13114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13115 test $ac_status = 0; }; then
13116 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
13117 test "x$?" != "x0" && pkg_failed=yes
13118 else
13119 pkg_failed=yes
13120 fi
13121 else
13122 pkg_failed=untried
13123 fi
13124 if test -n "$SDL_LIBS"; then
13125 pkg_cv_SDL_LIBS="$SDL_LIBS"
13126 elif test -n "$PKG_CONFIG"; then
13127 if test -n "$PKG_CONFIG" && \
13128 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13129 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13130 ac_status=$?
13131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13132 test $ac_status = 0; }; then
13133 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
13134 test "x$?" != "x0" && pkg_failed=yes
13135 else
13136 pkg_failed=yes
13137 fi
13138 else
13139 pkg_failed=untried
13140 fi
13141
13142 if test $pkg_failed = no; then
13143 pkg_save_LDFLAGS="$LDFLAGS"
13144 LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS"
13145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13146 /* end confdefs.h. */
13147
13148 int
13149 main ()
13150 {
13151
13152 ;
13153 return 0;
13154 }
13155 _ACEOF
13156 if ac_fn_c_try_link "$LINENO"; then :
13157
13158 else
13159 pkg_failed=yes
13160 fi
13161 rm -f core conftest.err conftest.$ac_objext \
13162 conftest$ac_exeext conftest.$ac_ext
13163 LDFLAGS=$pkg_save_LDFLAGS
13164 fi
13165
13166
13167
13168 if test $pkg_failed = yes; then
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13170 $as_echo "no" >&6; }
13171
13172 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13173 _pkg_short_errors_supported=yes
13174 else
13175 _pkg_short_errors_supported=no
13176 fi
13177 if test $_pkg_short_errors_supported = yes; then
13178 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1`
13179 else
13180 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1`
13181 fi
13182 # Put the nasty error message in config.log where it belongs
13183 echo "$SDL_PKG_ERRORS" >&5
13184
13185 :
13186 elif test $pkg_failed = untried; then
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13188 $as_echo "no" >&6; }
13189 :
13190 else
13191 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
13192 SDL_LIBS=$pkg_cv_SDL_LIBS
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13194 $as_echo "yes" >&6; }
13195 SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=1"
13196
13197 fi
13198
13199 else
13200 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
13201 SDL_LIBS=$pkg_cv_SDL_LIBS
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13203 $as_echo "yes" >&6; }
13204 SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=2"
13205
13206 fi
13207 if test -n "$SDL_CFLAGS"; then :
13208 if test "$ac_cv_search_dlopen" = no; then :
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SDL support requires dlopen support" >&5
13210 $as_echo "$as_me: WARNING: SDL support requires dlopen support" >&2;}
13211
13212 fi
13213
13214 fi
13215 else
13216 SDL_CFLAGS=
13217 fi
13218 SDL_LIBS=
13219
13220
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
13222 $as_echo_n "checking for cygwin... " >&6; }
13223 if ${sim_cv_os_cygwin+:} false; then :
13224 $as_echo_n "(cached) " >&6
13225 else
13226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13227 /* end confdefs.h. */
13228
13229 #ifdef __CYGWIN__
13230 lose
13231 #endif
13232 _ACEOF
13233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13234 $EGREP "lose" >/dev/null 2>&1; then :
13235 sim_cv_os_cygwin=yes
13236 else
13237 sim_cv_os_cygwin=no
13238 fi
13239 rm -f conftest*
13240
13241 fi
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_os_cygwin" >&5
13243 $as_echo "$sim_cv_os_cygwin" >&6; }
13244
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
13246 $as_echo_n "checking for library containing tgetent... " >&6; }
13247 if ${ac_cv_search_tgetent+:} false; then :
13248 $as_echo_n "(cached) " >&6
13249 else
13250 ac_func_search_save_LIBS=$LIBS
13251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13252 /* end confdefs.h. */
13253
13254 /* Override any GCC internal prototype to avoid an error.
13255 Use char because int might match the return type of a GCC
13256 builtin and then its argument prototype would still apply. */
13257 #ifdef __cplusplus
13258 extern "C"
13259 #endif
13260 char tgetent ();
13261 int
13262 main ()
13263 {
13264 return tgetent ();
13265 ;
13266 return 0;
13267 }
13268 _ACEOF
13269 for ac_lib in '' termcap tinfo curses ncurses; do
13270 if test -z "$ac_lib"; then
13271 ac_res="none required"
13272 else
13273 ac_res=-l$ac_lib
13274 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13275 fi
13276 if ac_fn_c_try_link "$LINENO"; then :
13277 ac_cv_search_tgetent=$ac_res
13278 fi
13279 rm -f core conftest.err conftest.$ac_objext \
13280 conftest$ac_exeext
13281 if ${ac_cv_search_tgetent+:} false; then :
13282 break
13283 fi
13284 done
13285 if ${ac_cv_search_tgetent+:} false; then :
13286
13287 else
13288 ac_cv_search_tgetent=no
13289 fi
13290 rm conftest.$ac_ext
13291 LIBS=$ac_func_search_save_LIBS
13292 fi
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
13294 $as_echo "$ac_cv_search_tgetent" >&6; }
13295 ac_res=$ac_cv_search_tgetent
13296 if test "$ac_res" != no; then :
13297 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13298 TERMCAP_LIB=$ac_cv_search_tgetent
13299 else
13300 TERMCAP_LIB=""
13301 fi
13302
13303 if test x$sim_cv_os_cygwin = xyes; then
13304 TERMCAP_LIB="${TERMCAP_LIB} -luser32"
13305 fi
13306
13307
13308 if test -r ../readline/Makefile; then
13309 READLINE_LIB=../readline/readline/libreadline.a
13310 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
13311 else
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
13313 $as_echo_n "checking for readline in -lreadline... " >&6; }
13314 if ${ac_cv_lib_readline_readline+:} false; then :
13315 $as_echo_n "(cached) " >&6
13316 else
13317 ac_check_lib_save_LIBS=$LIBS
13318 LIBS="-lreadline $TERMCAP_LIB $LIBS"
13319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13320 /* end confdefs.h. */
13321
13322 /* Override any GCC internal prototype to avoid an error.
13323 Use char because int might match the return type of a GCC
13324 builtin and then its argument prototype would still apply. */
13325 #ifdef __cplusplus
13326 extern "C"
13327 #endif
13328 char readline ();
13329 int
13330 main ()
13331 {
13332 return readline ();
13333 ;
13334 return 0;
13335 }
13336 _ACEOF
13337 if ac_fn_c_try_link "$LINENO"; then :
13338 ac_cv_lib_readline_readline=yes
13339 else
13340 ac_cv_lib_readline_readline=no
13341 fi
13342 rm -f core conftest.err conftest.$ac_objext \
13343 conftest$ac_exeext conftest.$ac_ext
13344 LIBS=$ac_check_lib_save_LIBS
13345 fi
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
13347 $as_echo "$ac_cv_lib_readline_readline" >&6; }
13348 if test "x$ac_cv_lib_readline_readline" = xyes; then :
13349 READLINE_LIB=-lreadline
13350 else
13351 as_fn_error $? "the required \"readline\" library is missing" "$LINENO" 5
13352 fi
13353
13354 READLINE_CFLAGS=
13355 fi
13356
13357
13358
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
13360 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
13361 if ${sim_cv_decl_getopt_unistd_h+:} false; then :
13362 $as_echo_n "(cached) " >&6
13363 else
13364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13365 /* end confdefs.h. */
13366 #include <unistd.h>
13367 int
13368 main ()
13369 {
13370 extern int getopt (int, char *const*, const char *);
13371 ;
13372 return 0;
13373 }
13374 _ACEOF
13375 if ac_fn_c_try_compile "$LINENO"; then :
13376 sim_cv_decl_getopt_unistd_h=yes
13377 else
13378 sim_cv_decl_getopt_unistd_h=no
13379 fi
13380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13381 fi
13382
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_decl_getopt_unistd_h" >&5
13384 $as_echo "$sim_cv_decl_getopt_unistd_h" >&6; }
13385 if test $sim_cv_decl_getopt_unistd_h = yes; then
13386
13387 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
13388
13389 fi
13390
13391
13392
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13394 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13395 # Check whether --enable-maintainer-mode was given.
13396 if test "${enable_maintainer_mode+set}" = set; then :
13397 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13398 else
13399 USE_MAINTAINER_MODE=no
13400 fi
13401
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13403 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13404 if test $USE_MAINTAINER_MODE = yes; then
13405 MAINTAINER_MODE_TRUE=
13406 MAINTAINER_MODE_FALSE='#'
13407 else
13408 MAINTAINER_MODE_TRUE='#'
13409 MAINTAINER_MODE_FALSE=
13410 fi
13411
13412 MAINT=$MAINTAINER_MODE_TRUE
13413
13414
13415 am__api_version='1.15'
13416
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
13418 $as_echo_n "checking whether build environment is sane... " >&6; }
13419 # Reject unsafe characters in $srcdir or the absolute working directory
13420 # name. Accept space and tab only in the latter.
13421 am_lf='
13422 '
13423 case `pwd` in
13424 *[\\\"\#\$\&\'\`$am_lf]*)
13425 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
13426 esac
13427 case $srcdir in
13428 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
13429 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
13430 esac
13431
13432 # Do 'set' in a subshell so we don't clobber the current shell's
13433 # arguments. Must try -L first in case configure is actually a
13434 # symlink; some systems play weird games with the mod time of symlinks
13435 # (eg FreeBSD returns the mod time of the symlink's containing
13436 # directory).
13437 if (
13438 am_has_slept=no
13439 for am_try in 1 2; do
13440 echo "timestamp, slept: $am_has_slept" > conftest.file
13441 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
13442 if test "$*" = "X"; then
13443 # -L didn't work.
13444 set X `ls -t "$srcdir/configure" conftest.file`
13445 fi
13446 if test "$*" != "X $srcdir/configure conftest.file" \
13447 && test "$*" != "X conftest.file $srcdir/configure"; then
13448
13449 # If neither matched, then we have a broken ls. This can happen
13450 # if, for instance, CONFIG_SHELL is bash and it inherits a
13451 # broken ls alias from the environment. This has actually
13452 # happened. Such a system could not be considered "sane".
13453 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
13454 alias in your environment" "$LINENO" 5
13455 fi
13456 if test "$2" = conftest.file || test $am_try -eq 2; then
13457 break
13458 fi
13459 # Just in case.
13460 sleep 1
13461 am_has_slept=yes
13462 done
13463 test "$2" = conftest.file
13464 )
13465 then
13466 # Ok.
13467 :
13468 else
13469 as_fn_error $? "newly created file is older than distributed files!
13470 Check your system clock" "$LINENO" 5
13471 fi
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13473 $as_echo "yes" >&6; }
13474 # If we didn't sleep, we still need to ensure time stamps of config.status and
13475 # generated files are strictly newer.
13476 am_sleep_pid=
13477 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
13478 ( sleep 1 ) &
13479 am_sleep_pid=$!
13480 fi
13481
13482 rm -f conftest.file
13483
13484 if test x"${MISSING+set}" != xset; then
13485 case $am_aux_dir in
13486 *\ * | *\ *)
13487 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
13488 *)
13489 MISSING="\${SHELL} $am_aux_dir/missing" ;;
13490 esac
13491 fi
13492 # Use eval to expand $SHELL
13493 if eval "$MISSING --is-lightweight"; then
13494 am_missing_run="$MISSING "
13495 else
13496 am_missing_run=
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
13498 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
13499 fi
13500
13501 if test x"${install_sh+set}" != xset; then
13502 case $am_aux_dir in
13503 *\ * | *\ *)
13504 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
13505 *)
13506 install_sh="\${SHELL} $am_aux_dir/install-sh"
13507 esac
13508 fi
13509
13510 # Installed binaries are usually stripped using 'strip' when the user
13511 # run "make install-strip". However 'strip' might not be the right
13512 # tool to use in cross-compilation environments, therefore Automake
13513 # will honor the 'STRIP' environment variable to overrule this program.
13514 if test "$cross_compiling" != no; then
13515 if test -n "$ac_tool_prefix"; then
13516 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13517 set dummy ${ac_tool_prefix}strip; ac_word=$2
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13519 $as_echo_n "checking for $ac_word... " >&6; }
13520 if ${ac_cv_prog_STRIP+:} false; then :
13521 $as_echo_n "(cached) " >&6
13522 else
13523 if test -n "$STRIP"; then
13524 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13525 else
13526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13527 for as_dir in $PATH
13528 do
13529 IFS=$as_save_IFS
13530 test -z "$as_dir" && as_dir=.
13531 for ac_exec_ext in '' $ac_executable_extensions; do
13532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13533 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13535 break 2
13536 fi
13537 done
13538 done
13539 IFS=$as_save_IFS
13540
13541 fi
13542 fi
13543 STRIP=$ac_cv_prog_STRIP
13544 if test -n "$STRIP"; then
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13546 $as_echo "$STRIP" >&6; }
13547 else
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13549 $as_echo "no" >&6; }
13550 fi
13551
13552
13553 fi
13554 if test -z "$ac_cv_prog_STRIP"; then
13555 ac_ct_STRIP=$STRIP
13556 # Extract the first word of "strip", so it can be a program name with args.
13557 set dummy strip; ac_word=$2
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13559 $as_echo_n "checking for $ac_word... " >&6; }
13560 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
13561 $as_echo_n "(cached) " >&6
13562 else
13563 if test -n "$ac_ct_STRIP"; then
13564 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13565 else
13566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13567 for as_dir in $PATH
13568 do
13569 IFS=$as_save_IFS
13570 test -z "$as_dir" && as_dir=.
13571 for ac_exec_ext in '' $ac_executable_extensions; do
13572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13573 ac_cv_prog_ac_ct_STRIP="strip"
13574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13575 break 2
13576 fi
13577 done
13578 done
13579 IFS=$as_save_IFS
13580
13581 fi
13582 fi
13583 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13584 if test -n "$ac_ct_STRIP"; then
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13586 $as_echo "$ac_ct_STRIP" >&6; }
13587 else
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13589 $as_echo "no" >&6; }
13590 fi
13591
13592 if test "x$ac_ct_STRIP" = x; then
13593 STRIP=":"
13594 else
13595 case $cross_compiling:$ac_tool_warned in
13596 yes:)
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13598 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13599 ac_tool_warned=yes ;;
13600 esac
13601 STRIP=$ac_ct_STRIP
13602 fi
13603 else
13604 STRIP="$ac_cv_prog_STRIP"
13605 fi
13606
13607 fi
13608 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
13609
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
13611 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
13612 if test -z "$MKDIR_P"; then
13613 if ${ac_cv_path_mkdir+:} false; then :
13614 $as_echo_n "(cached) " >&6
13615 else
13616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13617 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
13618 do
13619 IFS=$as_save_IFS
13620 test -z "$as_dir" && as_dir=.
13621 for ac_prog in mkdir gmkdir; do
13622 for ac_exec_ext in '' $ac_executable_extensions; do
13623 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
13624 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
13625 'mkdir (GNU coreutils) '* | \
13626 'mkdir (coreutils) '* | \
13627 'mkdir (fileutils) '4.1*)
13628 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
13629 break 3;;
13630 esac
13631 done
13632 done
13633 done
13634 IFS=$as_save_IFS
13635
13636 fi
13637
13638 test -d ./--version && rmdir ./--version
13639 if test "${ac_cv_path_mkdir+set}" = set; then
13640 MKDIR_P="$ac_cv_path_mkdir -p"
13641 else
13642 # As a last resort, use the slow shell script. Don't cache a
13643 # value for MKDIR_P within a source directory, because that will
13644 # break other packages using the cache if that directory is
13645 # removed, or if the value is a relative name.
13646 MKDIR_P="$ac_install_sh -d"
13647 fi
13648 fi
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
13650 $as_echo "$MKDIR_P" >&6; }
13651
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
13653 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
13654 set x ${MAKE-make}
13655 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
13656 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
13657 $as_echo_n "(cached) " >&6
13658 else
13659 cat >conftest.make <<\_ACEOF
13660 SHELL = /bin/sh
13661 all:
13662 @echo '@@@%%%=$(MAKE)=@@@%%%'
13663 _ACEOF
13664 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13665 case `${MAKE-make} -f conftest.make 2>/dev/null` in
13666 *@@@%%%=?*=@@@%%%*)
13667 eval ac_cv_prog_make_${ac_make}_set=yes;;
13668 *)
13669 eval ac_cv_prog_make_${ac_make}_set=no;;
13670 esac
13671 rm -f conftest.make
13672 fi
13673 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13675 $as_echo "yes" >&6; }
13676 SET_MAKE=
13677 else
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13679 $as_echo "no" >&6; }
13680 SET_MAKE="MAKE=${MAKE-make}"
13681 fi
13682
13683 rm -rf .tst 2>/dev/null
13684 mkdir .tst 2>/dev/null
13685 if test -d .tst; then
13686 am__leading_dot=.
13687 else
13688 am__leading_dot=_
13689 fi
13690 rmdir .tst 2>/dev/null
13691
13692 DEPDIR="${am__leading_dot}deps"
13693
13694 ac_config_commands="$ac_config_commands depfiles"
13695
13696
13697 am_make=${MAKE-make}
13698 cat > confinc << 'END'
13699 am__doit:
13700 @echo this is the am__doit target
13701 .PHONY: am__doit
13702 END
13703 # If we don't find an include directive, just comment out the code.
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
13705 $as_echo_n "checking for style of include used by $am_make... " >&6; }
13706 am__include="#"
13707 am__quote=
13708 _am_result=none
13709 # First try GNU make style include.
13710 echo "include confinc" > confmf
13711 # Ignore all kinds of additional output from 'make'.
13712 case `$am_make -s -f confmf 2> /dev/null` in #(
13713 *the\ am__doit\ target*)
13714 am__include=include
13715 am__quote=
13716 _am_result=GNU
13717 ;;
13718 esac
13719 # Now try BSD make style include.
13720 if test "$am__include" = "#"; then
13721 echo '.include "confinc"' > confmf
13722 case `$am_make -s -f confmf 2> /dev/null` in #(
13723 *the\ am__doit\ target*)
13724 am__include=.include
13725 am__quote="\""
13726 _am_result=BSD
13727 ;;
13728 esac
13729 fi
13730
13731
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
13733 $as_echo "$_am_result" >&6; }
13734 rm -f confinc confmf
13735
13736 # Check whether --enable-dependency-tracking was given.
13737 if test "${enable_dependency_tracking+set}" = set; then :
13738 enableval=$enable_dependency_tracking;
13739 fi
13740
13741 if test "x$enable_dependency_tracking" != xno; then
13742 am_depcomp="$ac_aux_dir/depcomp"
13743 AMDEPBACKSLASH='\'
13744 am__nodep='_no'
13745 fi
13746 if test "x$enable_dependency_tracking" != xno; then
13747 AMDEP_TRUE=
13748 AMDEP_FALSE='#'
13749 else
13750 AMDEP_TRUE='#'
13751 AMDEP_FALSE=
13752 fi
13753
13754
13755 # Check whether --enable-silent-rules was given.
13756 if test "${enable_silent_rules+set}" = set; then :
13757 enableval=$enable_silent_rules;
13758 fi
13759
13760 case $enable_silent_rules in # (((
13761 yes) AM_DEFAULT_VERBOSITY=0;;
13762 no) AM_DEFAULT_VERBOSITY=1;;
13763 *) AM_DEFAULT_VERBOSITY=1;;
13764 esac
13765 am_make=${MAKE-make}
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
13767 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
13768 if ${am_cv_make_support_nested_variables+:} false; then :
13769 $as_echo_n "(cached) " >&6
13770 else
13771 if $as_echo 'TRUE=$(BAR$(V))
13772 BAR0=false
13773 BAR1=true
13774 V=1
13775 am__doit:
13776 @$(TRUE)
13777 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
13778 am_cv_make_support_nested_variables=yes
13779 else
13780 am_cv_make_support_nested_variables=no
13781 fi
13782 fi
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
13784 $as_echo "$am_cv_make_support_nested_variables" >&6; }
13785 if test $am_cv_make_support_nested_variables = yes; then
13786 AM_V='$(V)'
13787 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
13788 else
13789 AM_V=$AM_DEFAULT_VERBOSITY
13790 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
13791 fi
13792 AM_BACKSLASH='\'
13793
13794 if test "`cd $srcdir && pwd`" != "`pwd`"; then
13795 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
13796 # is not polluted with repeated "-I."
13797 am__isrc=' -I$(srcdir)'
13798 # test to see if srcdir already configured
13799 if test -f $srcdir/config.status; then
13800 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
13801 fi
13802 fi
13803
13804 # test whether we have cygpath
13805 if test -z "$CYGPATH_W"; then
13806 if (cygpath --version) >/dev/null 2>/dev/null; then
13807 CYGPATH_W='cygpath -w'
13808 else
13809 CYGPATH_W=echo
13810 fi
13811 fi
13812
13813
13814 # Define the identity of the package.
13815 PACKAGE='sim'
13816 VERSION='0'
13817
13818
13819 cat >>confdefs.h <<_ACEOF
13820 #define PACKAGE "$PACKAGE"
13821 _ACEOF
13822
13823
13824 cat >>confdefs.h <<_ACEOF
13825 #define VERSION "$VERSION"
13826 _ACEOF
13827
13828 # Some tools Automake needs.
13829
13830 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
13831
13832
13833 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
13834
13835
13836 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
13837
13838
13839 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
13840
13841
13842 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
13843
13844 # For better backward compatibility. To be removed once Automake 1.9.x
13845 # dies out for good. For more background, see:
13846 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
13847 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
13848 mkdir_p='$(MKDIR_P)'
13849
13850 # We need awk for the "check" target (and possibly the TAP driver). The
13851 # system "awk" is bad on some platforms.
13852 # Always define AMTAR for backward compatibility. Yes, it's still used
13853 # in the wild :-( We should find a proper way to deprecate it ...
13854 AMTAR='$${TAR-tar}'
13855
13856
13857 # We'll loop over all known methods to create a tar archive until one works.
13858 _am_tools='gnutar pax cpio none'
13859
13860 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
13861
13862
13863
13864
13865
13866 depcc="$CC" am_compiler_list=
13867
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13869 $as_echo_n "checking dependency style of $depcc... " >&6; }
13870 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13871 $as_echo_n "(cached) " >&6
13872 else
13873 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13874 # We make a subdir and do the tests there. Otherwise we can end up
13875 # making bogus files that we don't know about and never remove. For
13876 # instance it was reported that on HP-UX the gcc test will end up
13877 # making a dummy file named 'D' -- because '-MD' means "put the output
13878 # in D".
13879 rm -rf conftest.dir
13880 mkdir conftest.dir
13881 # Copy depcomp to subdir because otherwise we won't find it if we're
13882 # using a relative directory.
13883 cp "$am_depcomp" conftest.dir
13884 cd conftest.dir
13885 # We will build objects and dependencies in a subdirectory because
13886 # it helps to detect inapplicable dependency modes. For instance
13887 # both Tru64's cc and ICC support -MD to output dependencies as a
13888 # side effect of compilation, but ICC will put the dependencies in
13889 # the current directory while Tru64 will put them in the object
13890 # directory.
13891 mkdir sub
13892
13893 am_cv_CC_dependencies_compiler_type=none
13894 if test "$am_compiler_list" = ""; then
13895 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13896 fi
13897 am__universal=false
13898 case " $depcc " in #(
13899 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13900 esac
13901
13902 for depmode in $am_compiler_list; do
13903 # Setup a source with many dependencies, because some compilers
13904 # like to wrap large dependency lists on column 80 (with \), and
13905 # we should not choose a depcomp mode which is confused by this.
13906 #
13907 # We need to recreate these files for each test, as the compiler may
13908 # overwrite some of them when testing with obscure command lines.
13909 # This happens at least with the AIX C compiler.
13910 : > sub/conftest.c
13911 for i in 1 2 3 4 5 6; do
13912 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13913 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13914 # Solaris 10 /bin/sh.
13915 echo '/* dummy */' > sub/conftst$i.h
13916 done
13917 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13918
13919 # We check with '-c' and '-o' for the sake of the "dashmstdout"
13920 # mode. It turns out that the SunPro C++ compiler does not properly
13921 # handle '-M -o', and we need to detect this. Also, some Intel
13922 # versions had trouble with output in subdirs.
13923 am__obj=sub/conftest.${OBJEXT-o}
13924 am__minus_obj="-o $am__obj"
13925 case $depmode in
13926 gcc)
13927 # This depmode causes a compiler race in universal mode.
13928 test "$am__universal" = false || continue
13929 ;;
13930 nosideeffect)
13931 # After this tag, mechanisms are not by side-effect, so they'll
13932 # only be used when explicitly requested.
13933 if test "x$enable_dependency_tracking" = xyes; then
13934 continue
13935 else
13936 break
13937 fi
13938 ;;
13939 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13940 # This compiler won't grok '-c -o', but also, the minuso test has
13941 # not run yet. These depmodes are late enough in the game, and
13942 # so weak that their functioning should not be impacted.
13943 am__obj=conftest.${OBJEXT-o}
13944 am__minus_obj=
13945 ;;
13946 none) break ;;
13947 esac
13948 if depmode=$depmode \
13949 source=sub/conftest.c object=$am__obj \
13950 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13951 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13952 >/dev/null 2>conftest.err &&
13953 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13954 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13955 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13956 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13957 # icc doesn't choke on unknown options, it will just issue warnings
13958 # or remarks (even with -Werror). So we grep stderr for any message
13959 # that says an option was ignored or not supported.
13960 # When given -MP, icc 7.0 and 7.1 complain thusly:
13961 # icc: Command line warning: ignoring option '-M'; no argument required
13962 # The diagnosis changed in icc 8.0:
13963 # icc: Command line remark: option '-MP' not supported
13964 if (grep 'ignoring option' conftest.err ||
13965 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13966 am_cv_CC_dependencies_compiler_type=$depmode
13967 break
13968 fi
13969 fi
13970 done
13971
13972 cd ..
13973 rm -rf conftest.dir
13974 else
13975 am_cv_CC_dependencies_compiler_type=none
13976 fi
13977
13978 fi
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13980 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13981 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13982
13983 if
13984 test "x$enable_dependency_tracking" != xno \
13985 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13986 am__fastdepCC_TRUE=
13987 am__fastdepCC_FALSE='#'
13988 else
13989 am__fastdepCC_TRUE='#'
13990 am__fastdepCC_FALSE=
13991 fi
13992
13993
13994
13995 # POSIX will say in a future version that running "rm -f" with no argument
13996 # is OK; and we want to be able to make that assumption in our Makefile
13997 # recipes. So use an aggressive probe to check that the usage we want is
13998 # actually supported "in the wild" to an acceptable degree.
13999 # See automake bug#10828.
14000 # To make any issue more visible, cause the running configure to be aborted
14001 # by default if the 'rm' program in use doesn't match our expectations; the
14002 # user can still override this though.
14003 if rm -f && rm -fr && rm -rf; then : OK; else
14004 cat >&2 <<'END'
14005 Oops!
14006
14007 Your 'rm' program seems unable to run without file operands specified
14008 on the command line, even when the '-f' option is present. This is contrary
14009 to the behaviour of most rm programs out there, and not conforming with
14010 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
14011
14012 Please tell bug-automake@gnu.org about your system, including the value
14013 of your $PATH and any error possibly output before this message. This
14014 can help us improve future automake versions.
14015
14016 END
14017 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
14018 echo 'Configuration will proceed anyway, since you have set the' >&2
14019 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
14020 echo >&2
14021 else
14022 cat >&2 <<'END'
14023 Aborting the configuration process, to ensure you take notice of the issue.
14024
14025 You can download and install GNU coreutils to get an 'rm' implementation
14026 that behaves properly: <http://www.gnu.org/software/coreutils/>.
14027
14028 If you want to complete the configuration process using your problematic
14029 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
14030 to "yes", and re-run configure.
14031
14032 END
14033 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
14034 fi
14035 fi
14036
14037 # Check whether --enable-silent-rules was given.
14038 if test "${enable_silent_rules+set}" = set; then :
14039 enableval=$enable_silent_rules;
14040 fi
14041
14042 case $enable_silent_rules in # (((
14043 yes) AM_DEFAULT_VERBOSITY=0;;
14044 no) AM_DEFAULT_VERBOSITY=1;;
14045 *) AM_DEFAULT_VERBOSITY=0;;
14046 esac
14047 am_make=${MAKE-make}
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
14049 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
14050 if ${am_cv_make_support_nested_variables+:} false; then :
14051 $as_echo_n "(cached) " >&6
14052 else
14053 if $as_echo 'TRUE=$(BAR$(V))
14054 BAR0=false
14055 BAR1=true
14056 V=1
14057 am__doit:
14058 @$(TRUE)
14059 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
14060 am_cv_make_support_nested_variables=yes
14061 else
14062 am_cv_make_support_nested_variables=no
14063 fi
14064 fi
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
14066 $as_echo "$am_cv_make_support_nested_variables" >&6; }
14067 if test $am_cv_make_support_nested_variables = yes; then
14068 AM_V='$(V)'
14069 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
14070 else
14071 AM_V=$AM_DEFAULT_VERBOSITY
14072 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
14073 fi
14074 AM_BACKSLASH='\'
14075
14076
14077 # If a cpu ever has more than one simulator to choose from, use
14078 # --enable-sim=... to choose.
14079 # Check whether --enable-sim was given.
14080 if test "${enable_sim+set}" = set; then :
14081 enableval=$enable_sim; case "${enableval}" in
14082 yes | no) ;;
14083 *) as_fn_error $? "bad value ${enableval} given for --enable-sim option" "$LINENO" 5 ;;
14084 esac
14085 fi
14086
14087
14088 # Check whether --enable-example-sims was given.
14089 if test "${enable_example_sims+set}" = set; then :
14090 enableval=$enable_example_sims;
14091 fi
14092
14093
14094 # Check whether --enable-targets was given.
14095 if test "${enable_targets+set}" = set; then :
14096 enableval=$enable_targets; case "${enableval}" in
14097 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
14098 ;;
14099 no) enable_targets= ;;
14100 *) enable_targets=$enableval ;;
14101 esac
14102 fi
14103
14104
14105 SIM_PRIMARY_TARGET=
14106
14107
14108 SIM_ENABLED_ARCHES=
14109
14110
14111 ENABLE_SIM=no
14112
14113
14114
14115 if test "${enable_sim}" != no; then
14116 for targ in `echo $target $enable_targets | sed 's/,/ /g'`
14117 do
14118 sim_enable_arch_aarch64=false
14119 case "${targ}" in
14120 all|aarch64*-*-*)
14121 if test "${targ}" = "${target}"; then
14122 SIM_PRIMARY_TARGET=aarch64
14123 fi
14124 ENABLE_SIM=yes
14125 as_fn_append SIM_ENABLED_ARCHES " aarch64"
14126
14127 ac_config_files="$ac_config_files aarch64/.gdbinit:common/gdbinit.in"
14128
14129
14130 sim_enable_arch_aarch64=true
14131 ;;
14132 esac
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14134 $as_echo_n "checking where to find the target cc... " >&6; }
14135 if test "x${build}" != "x${host}" ; then
14136 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14137 # We already found the complete path
14138 ac_dir=`dirname $CC_FOR_TARGET`
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14140 $as_echo "pre-installed in $ac_dir" >&6; }
14141 else
14142 # Canadian cross, just use what we found
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14144 $as_echo "pre-installed" >&6; }
14145 fi
14146 else
14147 ok=yes
14148 case " ${configdirs} " in
14149 *" ${target_alias}-gcc "*) ;;
14150 *) ok=no ;;
14151 esac
14152
14153 if test $ok = yes; then
14154 # An in-tree tool is available and we can use it
14155 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/${target_alias}-gcc'
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14157 $as_echo "just compiled" >&6; }
14158 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14159 # We already found the complete path
14160 ac_dir=`dirname $CC_FOR_TARGET`
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14162 $as_echo "pre-installed in $ac_dir" >&6; }
14163 elif test "x$target" = "x$host"; then
14164 # We can use an host tool
14165 CC_FOR_TARGET='$(CC)'
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14167 $as_echo "host tool" >&6; }
14168 else
14169 # We need a cross tool
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14171 $as_echo "pre-installed" >&6; }
14172 fi
14173 fi
14174
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14176 $as_echo_n "checking where to find the target as... " >&6; }
14177 if test "x${build}" != "x${host}" ; then
14178 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14179 # We already found the complete path
14180 ac_dir=`dirname $AS_FOR_TARGET`
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14182 $as_echo "pre-installed in $ac_dir" >&6; }
14183 else
14184 # Canadian cross, just use what we found
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14186 $as_echo "pre-installed" >&6; }
14187 fi
14188 else
14189 ok=yes
14190 case " ${configdirs} " in
14191 *" \$(abs_builddir) "*) ;;
14192 *) ok=no ;;
14193 esac
14194
14195 if test $ok = yes; then
14196 # An in-tree tool is available and we can use it
14197 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/\$(abs_builddir)/../gas/as-new'
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14199 $as_echo "just compiled" >&6; }
14200 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14201 # We already found the complete path
14202 ac_dir=`dirname $AS_FOR_TARGET`
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14204 $as_echo "pre-installed in $ac_dir" >&6; }
14205 elif test "x$target" = "x$host"; then
14206 # We can use an host tool
14207 AS_FOR_TARGET='$(AS)'
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14209 $as_echo "host tool" >&6; }
14210 else
14211 # We need a cross tool
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14213 $as_echo "pre-installed" >&6; }
14214 fi
14215 fi
14216
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14218 $as_echo_n "checking where to find the target ld... " >&6; }
14219 if test "x${build}" != "x${host}" ; then
14220 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14221 # We already found the complete path
14222 ac_dir=`dirname $LD_FOR_TARGET`
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14224 $as_echo "pre-installed in $ac_dir" >&6; }
14225 else
14226 # Canadian cross, just use what we found
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14228 $as_echo "pre-installed" >&6; }
14229 fi
14230 else
14231 ok=yes
14232 case " ${configdirs} " in
14233 *" \$(abs_builddir) "*) ;;
14234 *) ok=no ;;
14235 esac
14236
14237 if test $ok = yes; then
14238 # An in-tree tool is available and we can use it
14239 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/\$(abs_builddir)/../ld/ld-new'
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14241 $as_echo "just compiled" >&6; }
14242 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14243 # We already found the complete path
14244 ac_dir=`dirname $LD_FOR_TARGET`
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14246 $as_echo "pre-installed in $ac_dir" >&6; }
14247 elif test "x$target" = "x$host"; then
14248 # We can use an host tool
14249 LD_FOR_TARGET='$(LD)'
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14251 $as_echo "host tool" >&6; }
14252 else
14253 # We need a cross tool
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14255 $as_echo "pre-installed" >&6; }
14256 fi
14257 fi
14258
14259
14260
14261
14262
14263
14264 if test "$SIM_PRIMARY_TARGET" = "aarch64"; then :
14265 : "${AS_FOR_TARGET_AARCH64:=\$(AS_FOR_TARGET)}"
14266 : "${LD_FOR_TARGET_AARCH64:=\$(LD_FOR_TARGET)}"
14267 : "${CC_FOR_TARGET_AARCH64:=\$(CC_FOR_TARGET)}"
14268
14269 fi
14270
14271 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_AARCH64 LD_FOR_TARGET_AARCH64 CC_FOR_TARGET_AARCH64"
14272
14273 if ${sim_enable_arch_aarch64}; then
14274 SIM_ENABLE_ARCH_aarch64_TRUE=
14275 SIM_ENABLE_ARCH_aarch64_FALSE='#'
14276 else
14277 SIM_ENABLE_ARCH_aarch64_TRUE='#'
14278 SIM_ENABLE_ARCH_aarch64_FALSE=
14279 fi
14280
14281
14282 sim_enable_arch_arm=false
14283 case "${targ}" in
14284 all|arm*-*-*)
14285 if test "${targ}" = "${target}"; then
14286 SIM_PRIMARY_TARGET=arm
14287 fi
14288 ENABLE_SIM=yes
14289 as_fn_append SIM_ENABLED_ARCHES " arm"
14290
14291 ac_config_files="$ac_config_files arm/.gdbinit:common/gdbinit.in"
14292
14293
14294 sim_enable_arch_arm=true
14295 ;;
14296 esac
14297
14298
14299
14300
14301 if test "$SIM_PRIMARY_TARGET" = "arm"; then :
14302 : "${AS_FOR_TARGET_ARM:=\$(AS_FOR_TARGET)}"
14303 : "${LD_FOR_TARGET_ARM:=\$(LD_FOR_TARGET)}"
14304 : "${CC_FOR_TARGET_ARM:=\$(CC_FOR_TARGET)}"
14305
14306 fi
14307
14308 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_ARM LD_FOR_TARGET_ARM CC_FOR_TARGET_ARM"
14309
14310 if ${sim_enable_arch_arm}; then
14311 SIM_ENABLE_ARCH_arm_TRUE=
14312 SIM_ENABLE_ARCH_arm_FALSE='#'
14313 else
14314 SIM_ENABLE_ARCH_arm_TRUE='#'
14315 SIM_ENABLE_ARCH_arm_FALSE=
14316 fi
14317
14318
14319 sim_enable_arch_avr=false
14320 case "${targ}" in
14321 all|avr*-*-*)
14322 if test "${targ}" = "${target}"; then
14323 SIM_PRIMARY_TARGET=avr
14324 fi
14325 ENABLE_SIM=yes
14326 as_fn_append SIM_ENABLED_ARCHES " avr"
14327
14328 ac_config_files="$ac_config_files avr/.gdbinit:common/gdbinit.in"
14329
14330
14331 sim_enable_arch_avr=true
14332 ;;
14333 esac
14334
14335
14336
14337
14338 if test "$SIM_PRIMARY_TARGET" = "avr"; then :
14339 : "${AS_FOR_TARGET_AVR:=\$(AS_FOR_TARGET)}"
14340 : "${LD_FOR_TARGET_AVR:=\$(LD_FOR_TARGET)}"
14341 : "${CC_FOR_TARGET_AVR:=\$(CC_FOR_TARGET)}"
14342
14343 fi
14344
14345 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_AVR LD_FOR_TARGET_AVR CC_FOR_TARGET_AVR"
14346
14347 if ${sim_enable_arch_avr}; then
14348 SIM_ENABLE_ARCH_avr_TRUE=
14349 SIM_ENABLE_ARCH_avr_FALSE='#'
14350 else
14351 SIM_ENABLE_ARCH_avr_TRUE='#'
14352 SIM_ENABLE_ARCH_avr_FALSE=
14353 fi
14354
14355
14356 sim_enable_arch_bfin=false
14357 case "${targ}" in
14358 all|bfin-*-*)
14359 if test "${targ}" = "${target}"; then
14360 SIM_PRIMARY_TARGET=bfin
14361 fi
14362 ENABLE_SIM=yes
14363 as_fn_append SIM_ENABLED_ARCHES " bfin"
14364
14365 ac_config_files="$ac_config_files bfin/.gdbinit:common/gdbinit.in"
14366
14367
14368 sim_enable_arch_bfin=true
14369 ;;
14370 esac
14371
14372
14373
14374
14375 if test "$SIM_PRIMARY_TARGET" = "bfin"; then :
14376 : "${AS_FOR_TARGET_BFIN:=\$(AS_FOR_TARGET)}"
14377 : "${LD_FOR_TARGET_BFIN:=\$(LD_FOR_TARGET)}"
14378 : "${CC_FOR_TARGET_BFIN:=\$(CC_FOR_TARGET)}"
14379
14380 fi
14381
14382 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_BFIN LD_FOR_TARGET_BFIN CC_FOR_TARGET_BFIN"
14383
14384 if ${sim_enable_arch_bfin}; then
14385 SIM_ENABLE_ARCH_bfin_TRUE=
14386 SIM_ENABLE_ARCH_bfin_FALSE='#'
14387 else
14388 SIM_ENABLE_ARCH_bfin_TRUE='#'
14389 SIM_ENABLE_ARCH_bfin_FALSE=
14390 fi
14391
14392
14393 sim_enable_arch_bpf=false
14394 case "${targ}" in
14395 all|bpf-*-*)
14396 if test "${targ}" = "${target}"; then
14397 SIM_PRIMARY_TARGET=bpf
14398 fi
14399 ENABLE_SIM=yes
14400 as_fn_append SIM_ENABLED_ARCHES " bpf"
14401
14402 ac_config_files="$ac_config_files bpf/.gdbinit:common/gdbinit.in"
14403
14404
14405 sim_enable_arch_bpf=true
14406 ;;
14407 esac
14408
14409
14410
14411
14412 if test "$SIM_PRIMARY_TARGET" = "bpf"; then :
14413 : "${AS_FOR_TARGET_BPF:=\$(AS_FOR_TARGET)}"
14414 : "${LD_FOR_TARGET_BPF:=\$(LD_FOR_TARGET)}"
14415 : "${CC_FOR_TARGET_BPF:=\$(CC_FOR_TARGET)}"
14416
14417 fi
14418
14419 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_BPF LD_FOR_TARGET_BPF CC_FOR_TARGET_BPF"
14420
14421 if ${sim_enable_arch_bpf}; then
14422 SIM_ENABLE_ARCH_bpf_TRUE=
14423 SIM_ENABLE_ARCH_bpf_FALSE='#'
14424 else
14425 SIM_ENABLE_ARCH_bpf_TRUE='#'
14426 SIM_ENABLE_ARCH_bpf_FALSE=
14427 fi
14428
14429
14430 sim_enable_arch_cr16=false
14431 case "${targ}" in
14432 all|cr16*-*-*)
14433 if test "${targ}" = "${target}"; then
14434 SIM_PRIMARY_TARGET=cr16
14435 fi
14436 ENABLE_SIM=yes
14437 as_fn_append SIM_ENABLED_ARCHES " cr16"
14438
14439 ac_config_files="$ac_config_files cr16/.gdbinit:common/gdbinit.in"
14440
14441
14442 sim_enable_arch_cr16=true
14443 ;;
14444 esac
14445
14446
14447
14448
14449 if test "$SIM_PRIMARY_TARGET" = "cr16"; then :
14450 : "${AS_FOR_TARGET_CR16:=\$(AS_FOR_TARGET)}"
14451 : "${LD_FOR_TARGET_CR16:=\$(LD_FOR_TARGET)}"
14452 : "${CC_FOR_TARGET_CR16:=\$(CC_FOR_TARGET)}"
14453
14454 fi
14455
14456 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_CR16 LD_FOR_TARGET_CR16 CC_FOR_TARGET_CR16"
14457
14458 if ${sim_enable_arch_cr16}; then
14459 SIM_ENABLE_ARCH_cr16_TRUE=
14460 SIM_ENABLE_ARCH_cr16_FALSE='#'
14461 else
14462 SIM_ENABLE_ARCH_cr16_TRUE='#'
14463 SIM_ENABLE_ARCH_cr16_FALSE=
14464 fi
14465
14466
14467 sim_enable_arch_cris=false
14468 case "${targ}" in
14469 all|cris-*-* | crisv32-*-*)
14470 if test "${targ}" = "${target}"; then
14471 SIM_PRIMARY_TARGET=cris
14472 fi
14473 ENABLE_SIM=yes
14474 as_fn_append SIM_ENABLED_ARCHES " cris"
14475
14476 ac_config_files="$ac_config_files cris/.gdbinit:common/gdbinit.in"
14477
14478
14479 sim_enable_arch_cris=true
14480 ;;
14481 esac
14482
14483
14484
14485
14486 if test "$SIM_PRIMARY_TARGET" = "cris"; then :
14487 : "${AS_FOR_TARGET_CRIS:=\$(AS_FOR_TARGET)}"
14488 : "${LD_FOR_TARGET_CRIS:=\$(LD_FOR_TARGET)}"
14489 : "${CC_FOR_TARGET_CRIS:=\$(CC_FOR_TARGET)}"
14490
14491 fi
14492
14493 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_CRIS LD_FOR_TARGET_CRIS CC_FOR_TARGET_CRIS"
14494
14495 if ${sim_enable_arch_cris}; then
14496 SIM_ENABLE_ARCH_cris_TRUE=
14497 SIM_ENABLE_ARCH_cris_FALSE='#'
14498 else
14499 SIM_ENABLE_ARCH_cris_TRUE='#'
14500 SIM_ENABLE_ARCH_cris_FALSE=
14501 fi
14502
14503
14504 sim_enable_arch_d10v=false
14505 case "${targ}" in
14506 all|d10v-*-*)
14507 if test "${targ}" = "${target}"; then
14508 SIM_PRIMARY_TARGET=d10v
14509 fi
14510 ENABLE_SIM=yes
14511 as_fn_append SIM_ENABLED_ARCHES " d10v"
14512
14513 ac_config_files="$ac_config_files d10v/.gdbinit:common/gdbinit.in"
14514
14515
14516 sim_enable_arch_d10v=true
14517 ;;
14518 esac
14519
14520
14521
14522
14523 if test "$SIM_PRIMARY_TARGET" = "d10v"; then :
14524 : "${AS_FOR_TARGET_D10V:=\$(AS_FOR_TARGET)}"
14525 : "${LD_FOR_TARGET_D10V:=\$(LD_FOR_TARGET)}"
14526 : "${CC_FOR_TARGET_D10V:=\$(CC_FOR_TARGET)}"
14527
14528 fi
14529
14530 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_D10V LD_FOR_TARGET_D10V CC_FOR_TARGET_D10V"
14531
14532 if ${sim_enable_arch_d10v}; then
14533 SIM_ENABLE_ARCH_d10v_TRUE=
14534 SIM_ENABLE_ARCH_d10v_FALSE='#'
14535 else
14536 SIM_ENABLE_ARCH_d10v_TRUE='#'
14537 SIM_ENABLE_ARCH_d10v_FALSE=
14538 fi
14539
14540
14541 sim_enable_arch_frv=false
14542 case "${targ}" in
14543 all|frv-*-*)
14544 if test "${targ}" = "${target}"; then
14545 SIM_PRIMARY_TARGET=frv
14546 fi
14547 ENABLE_SIM=yes
14548 as_fn_append SIM_ENABLED_ARCHES " frv"
14549
14550 ac_config_files="$ac_config_files frv/.gdbinit:common/gdbinit.in"
14551
14552
14553 sim_enable_arch_frv=true
14554 ;;
14555 esac
14556
14557
14558
14559
14560 if test "$SIM_PRIMARY_TARGET" = "frv"; then :
14561 : "${AS_FOR_TARGET_FRV:=\$(AS_FOR_TARGET)}"
14562 : "${LD_FOR_TARGET_FRV:=\$(LD_FOR_TARGET)}"
14563 : "${CC_FOR_TARGET_FRV:=\$(CC_FOR_TARGET)}"
14564
14565 fi
14566
14567 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_FRV LD_FOR_TARGET_FRV CC_FOR_TARGET_FRV"
14568
14569 if ${sim_enable_arch_frv}; then
14570 SIM_ENABLE_ARCH_frv_TRUE=
14571 SIM_ENABLE_ARCH_frv_FALSE='#'
14572 else
14573 SIM_ENABLE_ARCH_frv_TRUE='#'
14574 SIM_ENABLE_ARCH_frv_FALSE=
14575 fi
14576
14577
14578 sim_enable_arch_ft32=false
14579 case "${targ}" in
14580 all|ft32-*-*)
14581 if test "${targ}" = "${target}"; then
14582 SIM_PRIMARY_TARGET=ft32
14583 fi
14584 ENABLE_SIM=yes
14585 as_fn_append SIM_ENABLED_ARCHES " ft32"
14586
14587 ac_config_files="$ac_config_files ft32/.gdbinit:common/gdbinit.in"
14588
14589
14590 sim_enable_arch_ft32=true
14591 ;;
14592 esac
14593
14594
14595
14596
14597 if test "$SIM_PRIMARY_TARGET" = "ft32"; then :
14598 : "${AS_FOR_TARGET_FT32:=\$(AS_FOR_TARGET)}"
14599 : "${LD_FOR_TARGET_FT32:=\$(LD_FOR_TARGET)}"
14600 : "${CC_FOR_TARGET_FT32:=\$(CC_FOR_TARGET)}"
14601
14602 fi
14603
14604 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_FT32 LD_FOR_TARGET_FT32 CC_FOR_TARGET_FT32"
14605
14606 if ${sim_enable_arch_ft32}; then
14607 SIM_ENABLE_ARCH_ft32_TRUE=
14608 SIM_ENABLE_ARCH_ft32_FALSE='#'
14609 else
14610 SIM_ENABLE_ARCH_ft32_TRUE='#'
14611 SIM_ENABLE_ARCH_ft32_FALSE=
14612 fi
14613
14614
14615 sim_enable_arch_h8300=false
14616 case "${targ}" in
14617 all|h8300*-*-*)
14618 if test "${targ}" = "${target}"; then
14619 SIM_PRIMARY_TARGET=h8300
14620 fi
14621 ENABLE_SIM=yes
14622 as_fn_append SIM_ENABLED_ARCHES " h8300"
14623
14624 ac_config_files="$ac_config_files h8300/.gdbinit:common/gdbinit.in"
14625
14626
14627 sim_enable_arch_h8300=true
14628 ;;
14629 esac
14630
14631
14632
14633
14634 if test "$SIM_PRIMARY_TARGET" = "h8300"; then :
14635 : "${AS_FOR_TARGET_H8300:=\$(AS_FOR_TARGET)}"
14636 : "${LD_FOR_TARGET_H8300:=\$(LD_FOR_TARGET)}"
14637 : "${CC_FOR_TARGET_H8300:=\$(CC_FOR_TARGET)}"
14638
14639 fi
14640
14641 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_H8300 LD_FOR_TARGET_H8300 CC_FOR_TARGET_H8300"
14642
14643 if ${sim_enable_arch_h8300}; then
14644 SIM_ENABLE_ARCH_h8300_TRUE=
14645 SIM_ENABLE_ARCH_h8300_FALSE='#'
14646 else
14647 SIM_ENABLE_ARCH_h8300_TRUE='#'
14648 SIM_ENABLE_ARCH_h8300_FALSE=
14649 fi
14650
14651
14652 sim_enable_arch_iq2000=false
14653 case "${targ}" in
14654 all|iq2000-*-*)
14655 if test "${targ}" = "${target}"; then
14656 SIM_PRIMARY_TARGET=iq2000
14657 fi
14658 ENABLE_SIM=yes
14659 as_fn_append SIM_ENABLED_ARCHES " iq2000"
14660
14661 ac_config_files="$ac_config_files iq2000/.gdbinit:common/gdbinit.in"
14662
14663
14664 sim_enable_arch_iq2000=true
14665 ;;
14666 esac
14667
14668
14669
14670
14671 if test "$SIM_PRIMARY_TARGET" = "iq2000"; then :
14672 : "${AS_FOR_TARGET_IQ2000:=\$(AS_FOR_TARGET)}"
14673 : "${LD_FOR_TARGET_IQ2000:=\$(LD_FOR_TARGET)}"
14674 : "${CC_FOR_TARGET_IQ2000:=\$(CC_FOR_TARGET)}"
14675
14676 fi
14677
14678 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_IQ2000 LD_FOR_TARGET_IQ2000 CC_FOR_TARGET_IQ2000"
14679
14680 if ${sim_enable_arch_iq2000}; then
14681 SIM_ENABLE_ARCH_iq2000_TRUE=
14682 SIM_ENABLE_ARCH_iq2000_FALSE='#'
14683 else
14684 SIM_ENABLE_ARCH_iq2000_TRUE='#'
14685 SIM_ENABLE_ARCH_iq2000_FALSE=
14686 fi
14687
14688
14689 sim_enable_arch_lm32=false
14690 case "${targ}" in
14691 all|lm32-*-*)
14692 if test "${targ}" = "${target}"; then
14693 SIM_PRIMARY_TARGET=lm32
14694 fi
14695 ENABLE_SIM=yes
14696 as_fn_append SIM_ENABLED_ARCHES " lm32"
14697
14698 ac_config_files="$ac_config_files lm32/.gdbinit:common/gdbinit.in"
14699
14700
14701 sim_enable_arch_lm32=true
14702 ;;
14703 esac
14704
14705
14706
14707
14708 if test "$SIM_PRIMARY_TARGET" = "lm32"; then :
14709 : "${AS_FOR_TARGET_LM32:=\$(AS_FOR_TARGET)}"
14710 : "${LD_FOR_TARGET_LM32:=\$(LD_FOR_TARGET)}"
14711 : "${CC_FOR_TARGET_LM32:=\$(CC_FOR_TARGET)}"
14712
14713 fi
14714
14715 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_LM32 LD_FOR_TARGET_LM32 CC_FOR_TARGET_LM32"
14716
14717 if ${sim_enable_arch_lm32}; then
14718 SIM_ENABLE_ARCH_lm32_TRUE=
14719 SIM_ENABLE_ARCH_lm32_FALSE='#'
14720 else
14721 SIM_ENABLE_ARCH_lm32_TRUE='#'
14722 SIM_ENABLE_ARCH_lm32_FALSE=
14723 fi
14724
14725
14726 sim_enable_arch_m32c=false
14727 case "${targ}" in
14728 all|m32c-*-*)
14729 if test "${targ}" = "${target}"; then
14730 SIM_PRIMARY_TARGET=m32c
14731 fi
14732 ENABLE_SIM=yes
14733 as_fn_append SIM_ENABLED_ARCHES " m32c"
14734
14735 ac_config_files="$ac_config_files m32c/.gdbinit:common/gdbinit.in"
14736
14737
14738 sim_enable_arch_m32c=true
14739 ;;
14740 esac
14741
14742
14743
14744
14745 if test "$SIM_PRIMARY_TARGET" = "m32c"; then :
14746 : "${AS_FOR_TARGET_M32C:=\$(AS_FOR_TARGET)}"
14747 : "${LD_FOR_TARGET_M32C:=\$(LD_FOR_TARGET)}"
14748 : "${CC_FOR_TARGET_M32C:=\$(CC_FOR_TARGET)}"
14749
14750 fi
14751
14752 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M32C LD_FOR_TARGET_M32C CC_FOR_TARGET_M32C"
14753
14754 if ${sim_enable_arch_m32c}; then
14755 SIM_ENABLE_ARCH_m32c_TRUE=
14756 SIM_ENABLE_ARCH_m32c_FALSE='#'
14757 else
14758 SIM_ENABLE_ARCH_m32c_TRUE='#'
14759 SIM_ENABLE_ARCH_m32c_FALSE=
14760 fi
14761
14762
14763 sim_enable_arch_m32r=false
14764 case "${targ}" in
14765 all|m32r-*-*)
14766 if test "${targ}" = "${target}"; then
14767 SIM_PRIMARY_TARGET=m32r
14768 fi
14769 ENABLE_SIM=yes
14770 as_fn_append SIM_ENABLED_ARCHES " m32r"
14771
14772 ac_config_files="$ac_config_files m32r/.gdbinit:common/gdbinit.in"
14773
14774
14775 sim_enable_arch_m32r=true
14776 ;;
14777 esac
14778
14779
14780
14781
14782 if test "$SIM_PRIMARY_TARGET" = "m32r"; then :
14783 : "${AS_FOR_TARGET_M32R:=\$(AS_FOR_TARGET)}"
14784 : "${LD_FOR_TARGET_M32R:=\$(LD_FOR_TARGET)}"
14785 : "${CC_FOR_TARGET_M32R:=\$(CC_FOR_TARGET)}"
14786
14787 fi
14788
14789 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M32R LD_FOR_TARGET_M32R CC_FOR_TARGET_M32R"
14790
14791 if ${sim_enable_arch_m32r}; then
14792 SIM_ENABLE_ARCH_m32r_TRUE=
14793 SIM_ENABLE_ARCH_m32r_FALSE='#'
14794 else
14795 SIM_ENABLE_ARCH_m32r_TRUE='#'
14796 SIM_ENABLE_ARCH_m32r_FALSE=
14797 fi
14798
14799
14800 sim_enable_arch_m68hc11=false
14801 case "${targ}" in
14802 all|m68hc11-*-*|m6811-*-*)
14803 if test "${targ}" = "${target}"; then
14804 SIM_PRIMARY_TARGET=m68hc11
14805 fi
14806 ENABLE_SIM=yes
14807 as_fn_append SIM_ENABLED_ARCHES " m68hc11"
14808
14809 ac_config_files="$ac_config_files m68hc11/.gdbinit:common/gdbinit.in"
14810
14811
14812 sim_enable_arch_m68hc11=true
14813 ;;
14814 esac
14815
14816
14817
14818
14819 if test "$SIM_PRIMARY_TARGET" = "m68hc11"; then :
14820 : "${AS_FOR_TARGET_M68HC11:=\$(AS_FOR_TARGET)}"
14821 : "${LD_FOR_TARGET_M68HC11:=\$(LD_FOR_TARGET)}"
14822 : "${CC_FOR_TARGET_M68HC11:=\$(CC_FOR_TARGET)}"
14823
14824 fi
14825
14826 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M68HC11 LD_FOR_TARGET_M68HC11 CC_FOR_TARGET_M68HC11"
14827
14828 if ${sim_enable_arch_m68hc11}; then
14829 SIM_ENABLE_ARCH_m68hc11_TRUE=
14830 SIM_ENABLE_ARCH_m68hc11_FALSE='#'
14831 else
14832 SIM_ENABLE_ARCH_m68hc11_TRUE='#'
14833 SIM_ENABLE_ARCH_m68hc11_FALSE=
14834 fi
14835
14836
14837 sim_enable_arch_mcore=false
14838 case "${targ}" in
14839 all|mcore-*-*)
14840 if test "${targ}" = "${target}"; then
14841 SIM_PRIMARY_TARGET=mcore
14842 fi
14843 ENABLE_SIM=yes
14844 as_fn_append SIM_ENABLED_ARCHES " mcore"
14845
14846 ac_config_files="$ac_config_files mcore/.gdbinit:common/gdbinit.in"
14847
14848
14849 sim_enable_arch_mcore=true
14850 ;;
14851 esac
14852
14853
14854
14855
14856 if test "$SIM_PRIMARY_TARGET" = "mcore"; then :
14857 : "${AS_FOR_TARGET_MCORE:=\$(AS_FOR_TARGET)}"
14858 : "${LD_FOR_TARGET_MCORE:=\$(LD_FOR_TARGET)}"
14859 : "${CC_FOR_TARGET_MCORE:=\$(CC_FOR_TARGET)}"
14860
14861 fi
14862
14863 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MCORE LD_FOR_TARGET_MCORE CC_FOR_TARGET_MCORE"
14864
14865 if ${sim_enable_arch_mcore}; then
14866 SIM_ENABLE_ARCH_mcore_TRUE=
14867 SIM_ENABLE_ARCH_mcore_FALSE='#'
14868 else
14869 SIM_ENABLE_ARCH_mcore_TRUE='#'
14870 SIM_ENABLE_ARCH_mcore_FALSE=
14871 fi
14872
14873
14874 sim_enable_arch_microblaze=false
14875 case "${targ}" in
14876 all|microblaze*-*-*)
14877 if test "${targ}" = "${target}"; then
14878 SIM_PRIMARY_TARGET=microblaze
14879 fi
14880 ENABLE_SIM=yes
14881 as_fn_append SIM_ENABLED_ARCHES " microblaze"
14882
14883 ac_config_files="$ac_config_files microblaze/.gdbinit:common/gdbinit.in"
14884
14885
14886 sim_enable_arch_microblaze=true
14887 ;;
14888 esac
14889
14890
14891
14892
14893 if test "$SIM_PRIMARY_TARGET" = "microblaze"; then :
14894 : "${AS_FOR_TARGET_MICROBLAZE:=\$(AS_FOR_TARGET)}"
14895 : "${LD_FOR_TARGET_MICROBLAZE:=\$(LD_FOR_TARGET)}"
14896 : "${CC_FOR_TARGET_MICROBLAZE:=\$(CC_FOR_TARGET)}"
14897
14898 fi
14899
14900 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MICROBLAZE LD_FOR_TARGET_MICROBLAZE CC_FOR_TARGET_MICROBLAZE"
14901
14902 if ${sim_enable_arch_microblaze}; then
14903 SIM_ENABLE_ARCH_microblaze_TRUE=
14904 SIM_ENABLE_ARCH_microblaze_FALSE='#'
14905 else
14906 SIM_ENABLE_ARCH_microblaze_TRUE='#'
14907 SIM_ENABLE_ARCH_microblaze_FALSE=
14908 fi
14909
14910
14911 sim_enable_arch_mips=false
14912 case "${targ}" in
14913 all|mips*-*-*)
14914 if test "${targ}" = "${target}"; then
14915 SIM_PRIMARY_TARGET=mips
14916 fi
14917 ENABLE_SIM=yes
14918 as_fn_append SIM_ENABLED_ARCHES " mips"
14919
14920 ac_config_files="$ac_config_files mips/.gdbinit:common/gdbinit.in"
14921
14922
14923 sim_enable_arch_mips=true
14924 ;;
14925 esac
14926
14927
14928
14929
14930 if test "$SIM_PRIMARY_TARGET" = "mips"; then :
14931 : "${AS_FOR_TARGET_MIPS:=\$(AS_FOR_TARGET)}"
14932 : "${LD_FOR_TARGET_MIPS:=\$(LD_FOR_TARGET)}"
14933 : "${CC_FOR_TARGET_MIPS:=\$(CC_FOR_TARGET)}"
14934
14935 fi
14936
14937 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MIPS LD_FOR_TARGET_MIPS CC_FOR_TARGET_MIPS"
14938
14939 if ${sim_enable_arch_mips}; then
14940 SIM_ENABLE_ARCH_mips_TRUE=
14941 SIM_ENABLE_ARCH_mips_FALSE='#'
14942 else
14943 SIM_ENABLE_ARCH_mips_TRUE='#'
14944 SIM_ENABLE_ARCH_mips_FALSE=
14945 fi
14946
14947
14948 sim_enable_arch_mn10300=false
14949 case "${targ}" in
14950 all|mn10300*-*-*)
14951 if test "${targ}" = "${target}"; then
14952 SIM_PRIMARY_TARGET=mn10300
14953 fi
14954 ENABLE_SIM=yes
14955 as_fn_append SIM_ENABLED_ARCHES " mn10300"
14956
14957 ac_config_files="$ac_config_files mn10300/.gdbinit:common/gdbinit.in"
14958
14959
14960 sim_enable_arch_mn10300=true
14961 ;;
14962 esac
14963
14964
14965
14966
14967 if test "$SIM_PRIMARY_TARGET" = "mn10300"; then :
14968 : "${AS_FOR_TARGET_MN10300:=\$(AS_FOR_TARGET)}"
14969 : "${LD_FOR_TARGET_MN10300:=\$(LD_FOR_TARGET)}"
14970 : "${CC_FOR_TARGET_MN10300:=\$(CC_FOR_TARGET)}"
14971
14972 fi
14973
14974 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MN10300 LD_FOR_TARGET_MN10300 CC_FOR_TARGET_MN10300"
14975
14976 if ${sim_enable_arch_mn10300}; then
14977 SIM_ENABLE_ARCH_mn10300_TRUE=
14978 SIM_ENABLE_ARCH_mn10300_FALSE='#'
14979 else
14980 SIM_ENABLE_ARCH_mn10300_TRUE='#'
14981 SIM_ENABLE_ARCH_mn10300_FALSE=
14982 fi
14983
14984
14985 sim_enable_arch_moxie=false
14986 case "${targ}" in
14987 all|moxie-*-*)
14988 if test "${targ}" = "${target}"; then
14989 SIM_PRIMARY_TARGET=moxie
14990 fi
14991 ENABLE_SIM=yes
14992 as_fn_append SIM_ENABLED_ARCHES " moxie"
14993
14994 ac_config_files="$ac_config_files moxie/.gdbinit:common/gdbinit.in"
14995
14996
14997 sim_enable_arch_moxie=true
14998 ;;
14999 esac
15000
15001
15002
15003
15004 if test "$SIM_PRIMARY_TARGET" = "moxie"; then :
15005 : "${AS_FOR_TARGET_MOXIE:=\$(AS_FOR_TARGET)}"
15006 : "${LD_FOR_TARGET_MOXIE:=\$(LD_FOR_TARGET)}"
15007 : "${CC_FOR_TARGET_MOXIE:=\$(CC_FOR_TARGET)}"
15008
15009 fi
15010
15011 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MOXIE LD_FOR_TARGET_MOXIE CC_FOR_TARGET_MOXIE"
15012
15013 if ${sim_enable_arch_moxie}; then
15014 SIM_ENABLE_ARCH_moxie_TRUE=
15015 SIM_ENABLE_ARCH_moxie_FALSE='#'
15016 else
15017 SIM_ENABLE_ARCH_moxie_TRUE='#'
15018 SIM_ENABLE_ARCH_moxie_FALSE=
15019 fi
15020
15021
15022 sim_enable_arch_msp430=false
15023 case "${targ}" in
15024 all|msp430*-*-*)
15025 if test "${targ}" = "${target}"; then
15026 SIM_PRIMARY_TARGET=msp430
15027 fi
15028 ENABLE_SIM=yes
15029 as_fn_append SIM_ENABLED_ARCHES " msp430"
15030
15031 ac_config_files="$ac_config_files msp430/.gdbinit:common/gdbinit.in"
15032
15033
15034 sim_enable_arch_msp430=true
15035 ;;
15036 esac
15037
15038
15039
15040
15041 if test "$SIM_PRIMARY_TARGET" = "msp430"; then :
15042 : "${AS_FOR_TARGET_MSP430:=\$(AS_FOR_TARGET)}"
15043 : "${LD_FOR_TARGET_MSP430:=\$(LD_FOR_TARGET)}"
15044 : "${CC_FOR_TARGET_MSP430:=\$(CC_FOR_TARGET)}"
15045
15046 fi
15047
15048 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MSP430 LD_FOR_TARGET_MSP430 CC_FOR_TARGET_MSP430"
15049
15050 if ${sim_enable_arch_msp430}; then
15051 SIM_ENABLE_ARCH_msp430_TRUE=
15052 SIM_ENABLE_ARCH_msp430_FALSE='#'
15053 else
15054 SIM_ENABLE_ARCH_msp430_TRUE='#'
15055 SIM_ENABLE_ARCH_msp430_FALSE=
15056 fi
15057
15058
15059 sim_enable_arch_or1k=false
15060 case "${targ}" in
15061 all|or1k*-*-*)
15062 if test "${targ}" = "${target}"; then
15063 SIM_PRIMARY_TARGET=or1k
15064 fi
15065 ENABLE_SIM=yes
15066 as_fn_append SIM_ENABLED_ARCHES " or1k"
15067
15068 ac_config_files="$ac_config_files or1k/.gdbinit:common/gdbinit.in"
15069
15070
15071 sim_enable_arch_or1k=true
15072 ;;
15073 esac
15074
15075
15076
15077
15078 if test "$SIM_PRIMARY_TARGET" = "or1k"; then :
15079 : "${AS_FOR_TARGET_OR1K:=\$(AS_FOR_TARGET)}"
15080 : "${LD_FOR_TARGET_OR1K:=\$(LD_FOR_TARGET)}"
15081 : "${CC_FOR_TARGET_OR1K:=\$(CC_FOR_TARGET)}"
15082
15083 fi
15084
15085 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_OR1K LD_FOR_TARGET_OR1K CC_FOR_TARGET_OR1K"
15086
15087 if ${sim_enable_arch_or1k}; then
15088 SIM_ENABLE_ARCH_or1k_TRUE=
15089 SIM_ENABLE_ARCH_or1k_FALSE='#'
15090 else
15091 SIM_ENABLE_ARCH_or1k_TRUE='#'
15092 SIM_ENABLE_ARCH_or1k_FALSE=
15093 fi
15094
15095
15096 sim_enable_arch_ppc=false
15097 case "${targ}" in
15098 all|powerpc*-*-*)
15099 if test "${targ}" = "${target}"; then
15100 SIM_PRIMARY_TARGET=ppc
15101 fi
15102 ENABLE_SIM=yes
15103 as_fn_append SIM_ENABLED_ARCHES " ppc"
15104
15105
15106 subdirs="$subdirs ppc"
15107
15108
15109 ac_config_files="$ac_config_files ppc/.gdbinit:common/gdbinit.in"
15110
15111
15112 sim_enable_arch_ppc=true
15113 ;;
15114 esac
15115
15116
15117
15118
15119 if test "$SIM_PRIMARY_TARGET" = "ppc"; then :
15120 : "${AS_FOR_TARGET_PPC:=\$(AS_FOR_TARGET)}"
15121 : "${LD_FOR_TARGET_PPC:=\$(LD_FOR_TARGET)}"
15122 : "${CC_FOR_TARGET_PPC:=\$(CC_FOR_TARGET)}"
15123
15124 fi
15125
15126 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_PPC LD_FOR_TARGET_PPC CC_FOR_TARGET_PPC"
15127
15128 if ${sim_enable_arch_ppc}; then
15129 SIM_ENABLE_ARCH_ppc_TRUE=
15130 SIM_ENABLE_ARCH_ppc_FALSE='#'
15131 else
15132 SIM_ENABLE_ARCH_ppc_TRUE='#'
15133 SIM_ENABLE_ARCH_ppc_FALSE=
15134 fi
15135
15136
15137 sim_enable_arch_pru=false
15138 case "${targ}" in
15139 all|pru*-*-*)
15140 if test "${targ}" = "${target}"; then
15141 SIM_PRIMARY_TARGET=pru
15142 fi
15143 ENABLE_SIM=yes
15144 as_fn_append SIM_ENABLED_ARCHES " pru"
15145
15146 ac_config_files="$ac_config_files pru/.gdbinit:common/gdbinit.in"
15147
15148
15149 sim_enable_arch_pru=true
15150 ;;
15151 esac
15152
15153
15154
15155
15156 if test "$SIM_PRIMARY_TARGET" = "pru"; then :
15157 : "${AS_FOR_TARGET_PRU:=\$(AS_FOR_TARGET)}"
15158 : "${LD_FOR_TARGET_PRU:=\$(LD_FOR_TARGET)}"
15159 : "${CC_FOR_TARGET_PRU:=\$(CC_FOR_TARGET)}"
15160
15161 fi
15162
15163 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_PRU LD_FOR_TARGET_PRU CC_FOR_TARGET_PRU"
15164
15165 if ${sim_enable_arch_pru}; then
15166 SIM_ENABLE_ARCH_pru_TRUE=
15167 SIM_ENABLE_ARCH_pru_FALSE='#'
15168 else
15169 SIM_ENABLE_ARCH_pru_TRUE='#'
15170 SIM_ENABLE_ARCH_pru_FALSE=
15171 fi
15172
15173
15174 sim_enable_arch_riscv=false
15175 case "${targ}" in
15176 all|riscv*-*-*)
15177 if test "${targ}" = "${target}"; then
15178 SIM_PRIMARY_TARGET=riscv
15179 fi
15180 ENABLE_SIM=yes
15181 as_fn_append SIM_ENABLED_ARCHES " riscv"
15182
15183 ac_config_files="$ac_config_files riscv/.gdbinit:common/gdbinit.in"
15184
15185
15186 sim_enable_arch_riscv=true
15187 ;;
15188 esac
15189
15190
15191
15192
15193 if test "$SIM_PRIMARY_TARGET" = "riscv"; then :
15194 : "${AS_FOR_TARGET_RISCV:=\$(AS_FOR_TARGET)}"
15195 : "${LD_FOR_TARGET_RISCV:=\$(LD_FOR_TARGET)}"
15196 : "${CC_FOR_TARGET_RISCV:=\$(CC_FOR_TARGET)}"
15197
15198 fi
15199
15200 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RISCV LD_FOR_TARGET_RISCV CC_FOR_TARGET_RISCV"
15201
15202 if ${sim_enable_arch_riscv}; then
15203 SIM_ENABLE_ARCH_riscv_TRUE=
15204 SIM_ENABLE_ARCH_riscv_FALSE='#'
15205 else
15206 SIM_ENABLE_ARCH_riscv_TRUE='#'
15207 SIM_ENABLE_ARCH_riscv_FALSE=
15208 fi
15209
15210
15211 sim_enable_arch_rl78=false
15212 case "${targ}" in
15213 all|rl78-*-*)
15214 if test "${targ}" = "${target}"; then
15215 SIM_PRIMARY_TARGET=rl78
15216 fi
15217 ENABLE_SIM=yes
15218 as_fn_append SIM_ENABLED_ARCHES " rl78"
15219
15220 ac_config_files="$ac_config_files rl78/.gdbinit:common/gdbinit.in"
15221
15222
15223 sim_enable_arch_rl78=true
15224 ;;
15225 esac
15226
15227
15228
15229
15230 if test "$SIM_PRIMARY_TARGET" = "rl78"; then :
15231 : "${AS_FOR_TARGET_RL78:=\$(AS_FOR_TARGET)}"
15232 : "${LD_FOR_TARGET_RL78:=\$(LD_FOR_TARGET)}"
15233 : "${CC_FOR_TARGET_RL78:=\$(CC_FOR_TARGET)}"
15234
15235 fi
15236
15237 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RL78 LD_FOR_TARGET_RL78 CC_FOR_TARGET_RL78"
15238
15239 if ${sim_enable_arch_rl78}; then
15240 SIM_ENABLE_ARCH_rl78_TRUE=
15241 SIM_ENABLE_ARCH_rl78_FALSE='#'
15242 else
15243 SIM_ENABLE_ARCH_rl78_TRUE='#'
15244 SIM_ENABLE_ARCH_rl78_FALSE=
15245 fi
15246
15247
15248 sim_enable_arch_rx=false
15249 case "${targ}" in
15250 all|rx-*-*)
15251 if test "${targ}" = "${target}"; then
15252 SIM_PRIMARY_TARGET=rx
15253 fi
15254 ENABLE_SIM=yes
15255 as_fn_append SIM_ENABLED_ARCHES " rx"
15256
15257 ac_config_files="$ac_config_files rx/.gdbinit:common/gdbinit.in"
15258
15259
15260 sim_enable_arch_rx=true
15261 ;;
15262 esac
15263
15264
15265
15266
15267 if test "$SIM_PRIMARY_TARGET" = "rx"; then :
15268 : "${AS_FOR_TARGET_RX:=\$(AS_FOR_TARGET)}"
15269 : "${LD_FOR_TARGET_RX:=\$(LD_FOR_TARGET)}"
15270 : "${CC_FOR_TARGET_RX:=\$(CC_FOR_TARGET)}"
15271
15272 fi
15273
15274 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RX LD_FOR_TARGET_RX CC_FOR_TARGET_RX"
15275
15276 if ${sim_enable_arch_rx}; then
15277 SIM_ENABLE_ARCH_rx_TRUE=
15278 SIM_ENABLE_ARCH_rx_FALSE='#'
15279 else
15280 SIM_ENABLE_ARCH_rx_TRUE='#'
15281 SIM_ENABLE_ARCH_rx_FALSE=
15282 fi
15283
15284
15285 sim_enable_arch_sh=false
15286 case "${targ}" in
15287 all|sh*-*-*)
15288 if test "${targ}" = "${target}"; then
15289 SIM_PRIMARY_TARGET=sh
15290 fi
15291 ENABLE_SIM=yes
15292 as_fn_append SIM_ENABLED_ARCHES " sh"
15293
15294 ac_config_files="$ac_config_files sh/.gdbinit:common/gdbinit.in"
15295
15296
15297 sim_enable_arch_sh=true
15298 ;;
15299 esac
15300
15301
15302
15303
15304 if test "$SIM_PRIMARY_TARGET" = "sh"; then :
15305 : "${AS_FOR_TARGET_SH:=\$(AS_FOR_TARGET)}"
15306 : "${LD_FOR_TARGET_SH:=\$(LD_FOR_TARGET)}"
15307 : "${CC_FOR_TARGET_SH:=\$(CC_FOR_TARGET)}"
15308
15309 fi
15310
15311 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_SH LD_FOR_TARGET_SH CC_FOR_TARGET_SH"
15312
15313 if ${sim_enable_arch_sh}; then
15314 SIM_ENABLE_ARCH_sh_TRUE=
15315 SIM_ENABLE_ARCH_sh_FALSE='#'
15316 else
15317 SIM_ENABLE_ARCH_sh_TRUE='#'
15318 SIM_ENABLE_ARCH_sh_FALSE=
15319 fi
15320
15321
15322 sim_enable_arch_erc32=false
15323 case "${targ}" in
15324 all|sparc-*-*)
15325 if test "${targ}" = "${target}"; then
15326 SIM_PRIMARY_TARGET=erc32
15327 fi
15328 ENABLE_SIM=yes
15329 as_fn_append SIM_ENABLED_ARCHES " erc32"
15330
15331 ac_config_files="$ac_config_files erc32/.gdbinit:common/gdbinit.in"
15332
15333
15334 sim_enable_arch_erc32=true
15335 ;;
15336 esac
15337
15338
15339
15340
15341 if test "$SIM_PRIMARY_TARGET" = "erc32"; then :
15342 : "${AS_FOR_TARGET_ERC32:=\$(AS_FOR_TARGET)}"
15343 : "${LD_FOR_TARGET_ERC32:=\$(LD_FOR_TARGET)}"
15344 : "${CC_FOR_TARGET_ERC32:=\$(CC_FOR_TARGET)}"
15345
15346 fi
15347
15348 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_ERC32 LD_FOR_TARGET_ERC32 CC_FOR_TARGET_ERC32"
15349
15350 if ${sim_enable_arch_erc32}; then
15351 SIM_ENABLE_ARCH_erc32_TRUE=
15352 SIM_ENABLE_ARCH_erc32_FALSE='#'
15353 else
15354 SIM_ENABLE_ARCH_erc32_TRUE='#'
15355 SIM_ENABLE_ARCH_erc32_FALSE=
15356 fi
15357
15358
15359 sim_enable_arch_v850=false
15360 case "${targ}" in
15361 all|v850*-*-*)
15362 if test "${targ}" = "${target}"; then
15363 SIM_PRIMARY_TARGET=v850
15364 fi
15365 ENABLE_SIM=yes
15366 as_fn_append SIM_ENABLED_ARCHES " v850"
15367
15368 ac_config_files="$ac_config_files v850/.gdbinit:common/gdbinit.in"
15369
15370
15371 sim_enable_arch_v850=true
15372 ;;
15373 esac
15374
15375
15376
15377
15378 if test "$SIM_PRIMARY_TARGET" = "v850"; then :
15379 : "${AS_FOR_TARGET_V850:=\$(AS_FOR_TARGET)}"
15380 : "${LD_FOR_TARGET_V850:=\$(LD_FOR_TARGET)}"
15381 : "${CC_FOR_TARGET_V850:=\$(CC_FOR_TARGET)}"
15382
15383 fi
15384
15385 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_V850 LD_FOR_TARGET_V850 CC_FOR_TARGET_V850"
15386
15387 if ${sim_enable_arch_v850}; then
15388 SIM_ENABLE_ARCH_v850_TRUE=
15389 SIM_ENABLE_ARCH_v850_FALSE='#'
15390 else
15391 SIM_ENABLE_ARCH_v850_TRUE='#'
15392 SIM_ENABLE_ARCH_v850_FALSE=
15393 fi
15394
15395
15396 done
15397
15398 if test "x${enable_example_sims}" = xyes; then
15399
15400
15401
15402
15403 : "${AS_FOR_TARGET_EXAMPLE_SYNACOR:=\$(AS_FOR_TARGET)}"
15404 : "${LD_FOR_TARGET_EXAMPLE_SYNACOR:=\$(LD_FOR_TARGET)}"
15405 : "${CC_FOR_TARGET_EXAMPLE_SYNACOR:=\$(CC)}"
15406
15407 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_EXAMPLE_SYNACOR LD_FOR_TARGET_EXAMPLE_SYNACOR CC_FOR_TARGET_EXAMPLE_SYNACOR"
15408
15409 ENABLE_SIM=yes
15410 as_fn_append SIM_ENABLED_ARCHES " example-synacor"
15411
15412 ac_config_files="$ac_config_files example-synacor/.gdbinit:common/gdbinit.in"
15413
15414
15415 fi
15416 if test "${enable_example_sims}" = "yes"; then
15417 SIM_ENABLE_ARCH_examples_TRUE=
15418 SIM_ENABLE_ARCH_examples_FALSE='#'
15419 else
15420 SIM_ENABLE_ARCH_examples_TRUE='#'
15421 SIM_ENABLE_ARCH_examples_FALSE=
15422 fi
15423
15424 fi
15425 if test "$ENABLE_SIM" = "yes"; then
15426 ENABLE_SIM_TRUE=
15427 ENABLE_SIM_FALSE='#'
15428 else
15429 ENABLE_SIM_TRUE='#'
15430 ENABLE_SIM_FALSE=
15431 fi
15432
15433
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim alignment" >&5
15435 $as_echo_n "checking whether to force sim alignment... " >&6; }
15436 sim_alignment=
15437 # Check whether --enable-sim-alignment was given.
15438 if test "${enable_sim_alignment+set}" = set; then :
15439 enableval=$enable_sim_alignment; case "${enableval}" in
15440 yes | strict | STRICT) sim_alignment="STRICT_ALIGNMENT";;
15441 no | nonstrict | NONSTRICT) sim_alignment="NONSTRICT_ALIGNMENT";;
15442 forced | FORCED) sim_alignment="FORCED_ALIGNMENT";;
15443 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5;;
15444 esac
15445 fi
15446
15447 cat >>confdefs.h <<_ACEOF
15448 #define WITH_ALIGNMENT ${sim_alignment:-0}
15449 _ACEOF
15450
15451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
15452 $as_echo "${sim_alignment:-no}" >&6; }
15453
15454
15455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5
15456 $as_echo_n "checking whether to enable sim asserts... " >&6; }
15457 sim_assert="1"
15458 # Check whether --enable-sim-assert was given.
15459 if test "${enable_sim_assert+set}" = set; then :
15460 enableval=$enable_sim_assert; case "${enableval}" in
15461 yes) sim_assert="1";;
15462 no) sim_assert="0";;
15463 *) as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;;
15464 esac
15465 fi
15466
15467 cat >>confdefs.h <<_ACEOF
15468 #define WITH_ASSERT $sim_assert
15469 _ACEOF
15470
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5
15472 $as_echo "$sim_assert" >&6; }
15473
15474
15475 cgen_maint=no
15476 cgen=guile
15477 cgendir='$(srcdir)/../../cgen'
15478 if test -r ${srcdir}/../cgen/iformat.scm; then
15479 cgendir='$(srcdir)/../cgen'
15480 fi
15481 # Check whether --enable-cgen-maint was given.
15482 if test "${enable_cgen_maint+set}" = set; then :
15483 enableval=$enable_cgen_maint; case "${enableval}" in
15484 yes) cgen_maint=yes ;;
15485 no) cgen_maint=no ;;
15486 *)
15487 # Argument is a directory where cgen can be found. In some
15488 # future world cgen could be installable, but right now this
15489 # is not the case. Instead we assume the directory is a path
15490 # to the cgen source tree.
15491 cgen_maint=yes
15492 if test -r ${enableval}/iformat.scm; then
15493 # This looks like a cgen source tree.
15494 cgendir=${enableval}
15495 else
15496 as_fn_error $? "${enableval} doesn't look like a cgen source tree" "$LINENO" 5
15497 fi
15498 ;;
15499 esac
15500 fi
15501 if test x${cgen_maint} != xno ; then
15502 CGEN_MAINT=''
15503 else
15504 CGEN_MAINT='#'
15505 fi
15506
15507
15508
15509
15510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5
15511 $as_echo_n "checking for sim debug setting... " >&6; }
15512 sim_debug="0"
15513 # Check whether --enable-sim-debug was given.
15514 if test "${enable_sim_debug+set}" = set; then :
15515 enableval=$enable_sim_debug; case "${enableval}" in
15516 yes) sim_debug="7";;
15517 no) sim_debug="0";;
15518 *) sim_debug="($enableval)";;
15519 esac
15520 fi
15521 if test "$sim_debug" != "0"; then
15522
15523 cat >>confdefs.h <<_ACEOF
15524 #define DEBUG $sim_debug
15525 _ACEOF
15526
15527 fi
15528
15529 cat >>confdefs.h <<_ACEOF
15530 #define WITH_DEBUG $sim_debug
15531 _ACEOF
15532
15533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5
15534 $as_echo "$sim_debug" >&6; }
15535
15536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim endianness" >&5
15537 $as_echo_n "checking whether to force sim endianness... " >&6; }
15538 sim_endian=
15539 # Check whether --enable-sim-endian was given.
15540 if test "${enable_sim_endian+set}" = set; then :
15541 enableval=$enable_sim_endian; case "${enableval}" in
15542 b*|B*) sim_endian="BFD_ENDIAN_BIG";;
15543 l*|L*) sim_endian="BFD_ENDIAN_LITTLE";;
15544 yes | no) ;;
15545 *) as_fn_error $? "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5;;
15546 esac
15547 fi
15548
15549 cat >>confdefs.h <<_ACEOF
15550 #define WITH_TARGET_BYTE_ORDER ${sim_endian:-BFD_ENDIAN_UNKNOWN}
15551 _ACEOF
15552
15553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
15554 $as_echo "${sim_alignment:-no}" >&6; }
15555
15556
15557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5
15558 $as_echo_n "checking default sim environment setting... " >&6; }
15559 sim_environment="ALL_ENVIRONMENT"
15560 # Check whether --enable-sim-environment was given.
15561 if test "${enable_sim_environment+set}" = set; then :
15562 enableval=$enable_sim_environment; case "${enableval}" in
15563 all | ALL) sim_environment="ALL_ENVIRONMENT";;
15564 user | USER) sim_environment="USER_ENVIRONMENT";;
15565 virtual | VIRTUAL) sim_environment="VIRTUAL_ENVIRONMENT";;
15566 operating | OPERATING) sim_environment="OPERATING_ENVIRONMENT";;
15567 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;;
15568 esac
15569 fi
15570
15571 cat >>confdefs.h <<_ACEOF
15572 #define WITH_ENVIRONMENT $sim_environment
15573 _ACEOF
15574
15575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5
15576 $as_echo "$sim_environment" >&6; }
15577
15578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim hardware settings" >&5
15579 $as_echo_n "checking for sim hardware settings... " >&6; }
15580 # Check whether --enable-sim-hardware was given.
15581 if test "${enable_sim_hardware+set}" = set; then :
15582 enableval=$enable_sim_hardware;
15583 else
15584 enable_sim_hardware="yes"
15585 fi
15586
15587 sim_hw_sockser=
15588 if test "$enable_sim_hardware" = no; then
15589 sim_hw_cflags="-DWITH_HW=0"
15590 elif test "$enable_sim_hardware" = yes; then
15591 sim_hw_cflags="-DWITH_HW=1"
15592 sim_hw_sockser="dv-sockser.o"
15593 sim_hw_cflags="$sim_hw_cflags -DHAVE_DV_SOCKSER"
15594 else
15595 as_fn_error $? "unknown argument \"$enable_sim_hardware\"" "$LINENO" 5
15596 fi
15597 if test "$enable_sim_hardware" = "yes"; then
15598 SIM_ENABLE_HW_TRUE=
15599 SIM_ENABLE_HW_FALSE='#'
15600 else
15601 SIM_ENABLE_HW_TRUE='#'
15602 SIM_ENABLE_HW_FALSE=
15603 fi
15604
15605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_sim_hardware}" >&5
15606 $as_echo "${enable_sim_hardware}" >&6; }
15607 SIM_HW_CFLAGS=$sim_hw_cflags
15608
15609 SIM_HW_SOCKSER=$sim_hw_sockser
15610
15611
15612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sim inline settings" >&5
15613 $as_echo_n "checking sim inline settings... " >&6; }
15614 sim_inline="-DDEFAULT_INLINE=0"
15615 # Check whether --enable-sim-inline was given.
15616 if test "${enable_sim_inline+set}" = set; then :
15617 enableval=$enable_sim_inline; sim_inline=""
15618 case "$enableval" in
15619 no) sim_inline="-DDEFAULT_INLINE=0";;
15620 0) sim_inline="-DDEFAULT_INLINE=0";;
15621 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
15622 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
15623 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
15624 new_flag=""
15625 case "$x" in
15626 *_INLINE=*) new_flag="-D$x";;
15627 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
15628 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
15629 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
15630 esac
15631 if test x"$sim_inline" = x""; then
15632 sim_inline="$new_flag"
15633 else
15634 sim_inline="$sim_inline $new_flag"
15635 fi
15636 done;;
15637 esac
15638
15639 fi
15640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_inline" >&5
15641 $as_echo "$sim_inline" >&6; }
15642 SIM_INLINE=$sim_inline
15643
15644
15645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5
15646 $as_echo_n "checking for sim profile settings... " >&6; }
15647 profile="1"
15648 sim_profile="-1"
15649 # Check whether --enable-sim-profile was given.
15650 if test "${enable_sim_profile+set}" = set; then :
15651 enableval=$enable_sim_profile; case "${enableval}" in
15652 yes) profile="1" sim_profile="-1";;
15653 no) profile="0" sim_profile="0";;
15654 [-0-9]*)
15655 profile="(${enableval})" sim_profile="(${enableval})";;
15656 [a-z]*)
15657 profile="1"
15658 sim_profile=""
15659 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
15660 if test x"$sim_profile" = x; then
15661 sim_profile="(PROFILE_$x"
15662 else
15663 sim_profile="${sim_profile}|PROFILE_$x"
15664 fi
15665 done
15666 sim_profile="$sim_profile)" ;;
15667 esac
15668 fi
15669
15670 cat >>confdefs.h <<_ACEOF
15671 #define PROFILE $profile
15672 _ACEOF
15673
15674
15675 cat >>confdefs.h <<_ACEOF
15676 #define WITH_PROFILE $sim_profile
15677 _ACEOF
15678
15679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5
15680 $as_echo "$sim_profile" >&6; }
15681
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check reserved bits in instruction" >&5
15683 $as_echo_n "checking whether to check reserved bits in instruction... " >&6; }
15684 # Check whether --enable-sim-reserved-bits was given.
15685 if test "${enable_sim_reserved_bits+set}" = set; then :
15686 enableval=$enable_sim_reserved_bits; case "${enableval}" in
15687 yes|no) ;;
15688 *) as_fn_error $? "\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5;;
15689 esac
15690 fi
15691
15692 if test "x${enable_sim_reserved_bits}" != xno; then
15693 sim_reserved_bits=1
15694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15695 $as_echo "yes" >&6; }
15696 else
15697 sim_reserved_bits=0
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15699 $as_echo "no" >&6; }
15700 fi
15701
15702 cat >>confdefs.h <<_ACEOF
15703 #define WITH_RESERVED_BITS $sim_reserved_bits
15704 _ACEOF
15705
15706
15707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim cache size" >&5
15708 $as_echo_n "checking for sim cache size... " >&6; }
15709 sim_scache="16384"
15710 # Check whether --enable-sim-scache was given.
15711 if test "${enable_sim_scache+set}" = set; then :
15712 enableval=$enable_sim_scache; case "${enableval}" in
15713 yes) ;;
15714 no) sim_scache="0";;
15715 [0-9]*) sim_scache="${enableval}";;
15716 *) as_fn_error $? "\"Bad value $enableval passed to --enable-sim-scache\"" "$LINENO" 5;;
15717 esac
15718 fi
15719
15720
15721 cat >>confdefs.h <<_ACEOF
15722 #define WITH_SCACHE $sim_scache
15723 _ACEOF
15724
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_scache" >&5
15726 $as_echo "$sim_scache" >&6; }
15727
15728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of sim cpus to support" >&5
15729 $as_echo_n "checking number of sim cpus to support... " >&6; }
15730 default_sim_smp="0"
15731 sim_smp="$default_sim_smp"
15732 # Check whether --enable-sim-smp was given.
15733 if test "${enable_sim_smp+set}" = set; then :
15734 enableval=$enable_sim_smp; case "${enableval}" in
15735 yes) sim_smp="5";;
15736 no) sim_smp="0";;
15737 *) sim_smp="$enableval";;
15738 esac
15739 fi
15740 IGEN_FLAGS_SMP="-N ${sim_smp}"
15741
15742 if test "x$sim_smp" = x0; then :
15743
15744 else
15745
15746 cat >>confdefs.h <<_ACEOF
15747 #define WITH_SMP $sim_smp
15748 _ACEOF
15749
15750 fi
15751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_smp" >&5
15752 $as_echo "$sim_smp" >&6; }
15753
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5
15755 $as_echo_n "checking for sim stdio debug behavior... " >&6; }
15756 sim_stdio="0"
15757 # Check whether --enable-sim-stdio was given.
15758 if test "${enable_sim_stdio+set}" = set; then :
15759 enableval=$enable_sim_stdio; case "${enableval}" in
15760 yes) sim_stdio="DO_USE_STDIO";;
15761 no) sim_stdio="DONT_USE_STDIO";;
15762 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;;
15763 esac
15764 fi
15765
15766 cat >>confdefs.h <<_ACEOF
15767 #define WITH_STDIO $sim_stdio
15768 _ACEOF
15769
15770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5
15771 $as_echo "$sim_stdio" >&6; }
15772
15773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5
15774 $as_echo_n "checking for sim trace settings... " >&6; }
15775 sim_trace="~TRACE_debug"
15776 # Check whether --enable-sim-trace was given.
15777 if test "${enable_sim_trace+set}" = set; then :
15778 enableval=$enable_sim_trace; case "${enableval}" in
15779 yes) sim_trace="-1";;
15780 no) sim_trace="0";;
15781 [-0-9]*)
15782 sim_trace="'(${enableval})'";;
15783 [[:lower:]]*)
15784 sim_trace=""
15785 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
15786 if test x"$sim_trace" = x; then
15787 sim_trace="(TRACE_$x"
15788 else
15789 sim_trace="${sim_trace}|TRACE_$x"
15790 fi
15791 done
15792 sim_trace="$sim_trace)" ;;
15793 esac
15794 fi
15795
15796 cat >>confdefs.h <<_ACEOF
15797 #define WITH_TRACE $sim_trace
15798 _ACEOF
15799
15800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5
15801 $as_echo "$sim_trace" >&6; }
15802
15803
15804 # Check whether --enable-werror was given.
15805 if test "${enable_werror+set}" = set; then :
15806 enableval=$enable_werror; case "${enableval}" in
15807 yes | y) ERROR_ON_WARNING="yes" ;;
15808 no | n) ERROR_ON_WARNING="no" ;;
15809 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
15810 esac
15811 fi
15812
15813
15814 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
15815 ERROR_ON_WARNING=yes
15816 fi
15817
15818 WERROR_CFLAGS=""
15819 if test "${ERROR_ON_WARNING}" = yes ; then
15820 WERROR_CFLAGS="-Werror"
15821 fi
15822
15823 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith
15824 -Wno-unused -Wunused-value -Wunused-function
15825 -Wno-switch -Wno-char-subscripts
15826 -Wempty-body -Wunused-but-set-parameter
15827 -Wno-error=maybe-uninitialized
15828 -Wmissing-declarations
15829 -Wmissing-prototypes
15830 -Wdeclaration-after-statement -Wmissing-parameter-type
15831 -Wpointer-sign
15832 -Wold-style-declaration -Wold-style-definition
15833 "
15834
15835 # Enable -Wno-format by default when using gcc on mingw since many
15836 # GCC versions complain about %I64.
15837 case "${host}" in
15838 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
15839 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
15840 esac
15841
15842 # Check whether --enable-build-warnings was given.
15843 if test "${enable_build_warnings+set}" = set; then :
15844 enableval=$enable_build_warnings; case "${enableval}" in
15845 yes) ;;
15846 no) build_warnings="-w";;
15847 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15848 build_warnings="${build_warnings} ${t}";;
15849 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15850 build_warnings="${t} ${build_warnings}";;
15851 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15852 esac
15853 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
15854 echo "Setting compiler warning flags = $build_warnings" 6>&1
15855 fi
15856 fi
15857 # Check whether --enable-sim-build-warnings was given.
15858 if test "${enable_sim_build_warnings+set}" = set; then :
15859 enableval=$enable_sim_build_warnings; case "${enableval}" in
15860 yes) ;;
15861 no) build_warnings="-w";;
15862 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15863 build_warnings="${build_warnings} ${t}";;
15864 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15865 build_warnings="${t} ${build_warnings}";;
15866 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15867 esac
15868 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
15869 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
15870 fi
15871 fi
15872 WARN_CFLAGS=""
15873 if test "x${build_warnings}" != x -a "x$GCC" = xyes
15874 then
15875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
15876 $as_echo_n "checking compiler warning flags... " >&6; }
15877 # Separate out the -Werror flag as some files just cannot be
15878 # compiled with it enabled.
15879 for w in ${build_warnings}; do
15880 case $w in
15881 -Werr*) WERROR_CFLAGS=-Werror ;;
15882 *) # Check that GCC accepts it
15883 saved_CFLAGS="$CFLAGS"
15884 CFLAGS="$CFLAGS -Werror $w"
15885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15886 /* end confdefs.h. */
15887
15888 int
15889 main ()
15890 {
15891
15892 ;
15893 return 0;
15894 }
15895 _ACEOF
15896 if ac_fn_c_try_compile "$LINENO"; then :
15897 WARN_CFLAGS="${WARN_CFLAGS} $w"
15898 fi
15899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15900 CFLAGS="$saved_CFLAGS"
15901 esac
15902 done
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
15904 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
15905 fi
15906
15907
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim frv should dump cpu state on unknown traps" >&5
15909 $as_echo_n "checking whether sim frv should dump cpu state on unknown traps... " >&6; }
15910 # Check whether --enable-sim-frv-trapdump was given.
15911 if test "${enable_sim_frv_trapdump+set}" = set; then :
15912 enableval=$enable_sim_frv_trapdump; case "${enableval}" in
15913 yes|no) ;;
15914 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-trapdump\"" "$LINENO" 5;;
15915 esac
15916 fi
15917
15918 if test "x${enable_sim_frv_trapdump}" = xyes; then
15919 SIM_FRV_TRAPDUMP_FLAGS="-DTRAPDUMP=1"
15920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15921 $as_echo "yes" >&6; }
15922 else
15923 SIM_FRV_TRAPDUMP_FLAGS="-DTRAPDUMP=0"
15924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15925 $as_echo "no" >&6; }
15926 fi
15927
15928
15929
15930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking mips subtarget" >&5
15931 $as_echo_n "checking mips subtarget... " >&6; }
15932 SIM_MIPS_SUBTARGET=
15933 case ${target} in #(
15934 mips64vr*-*-*) :
15935 SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
15936 mips*tx39*) :
15937 SIM_MIPS_SUBTARGET="-DSUBTARGET_R3900=1" ;; #(
15938 mips*-sde-elf*) :
15939 SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
15940 mips*-mti-elf*) :
15941 SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
15942 mipsisa32*-*-*) :
15943 SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
15944 mipsisa64*-*-*) :
15945 SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
15946 *) :
15947 ;;
15948 esac
15949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SIM_MIPS_SUBTARGET:-none}" >&5
15950 $as_echo "${SIM_MIPS_SUBTARGET:-none}" >&6; }
15951
15952
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking mips bitsize" >&5
15954 $as_echo_n "checking mips bitsize... " >&6; }
15955 SIM_MIPS_BITSIZE=64
15956 case ${target} in #(
15957 mips*-sde-elf*) :
15958 SIM_MIPS_BITSIZE=64 ;; #(
15959 mips*-mti-elf*) :
15960 SIM_MIPS_BITSIZE=64 ;; #(
15961 mips64*-*-*) :
15962 SIM_MIPS_BITSIZE=64 ;; #(
15963 mips16*-*-*) :
15964 SIM_MIPS_BITSIZE=64 ;; #(
15965 mipsisa32*-*-*) :
15966 SIM_MIPS_BITSIZE=32 ;; #(
15967 mipsisa64*-*-*) :
15968 SIM_MIPS_BITSIZE=64 ;; #(
15969 mips*-*-*) :
15970 SIM_MIPS_BITSIZE=32 ;; #(
15971 *) :
15972 ;;
15973 esac
15974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIM_MIPS_BITSIZE" >&5
15975 $as_echo "$SIM_MIPS_BITSIZE" >&6; }
15976
15977
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking mips fpu bitsize" >&5
15979 $as_echo_n "checking mips fpu bitsize... " >&6; }
15980 SIM_MIPS_FPU_BITSIZE=64
15981 case ${target} in #(
15982 mips*tx39*) :
15983 SIM_MIPS_FPU_BITSIZE=32 ;; #(
15984 mips*-sde-elf*) :
15985 SIM_MIPS_FPU_BITSIZE=64 ;; #(
15986 mips*-mti-elf*) :
15987 SIM_MIPS_FPU_BITSIZE=64 ;; #(
15988 mipsisa32*-*-*) :
15989 SIM_MIPS_FPU_BITSIZE=64 ;; #(
15990 mipsisa64*-*-*) :
15991 SIM_MIPS_FPU_BITSIZE=64 ;; #(
15992 mips*-*-*) :
15993 SIM_MIPS_FPU_BITSIZE=32 ;; #(
15994 *) :
15995 ;;
15996 esac
15997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIM_MIPS_FPU_BITSIZE" >&5
15998 $as_echo "$SIM_MIPS_FPU_BITSIZE" >&6; }
15999
16000
16001 SIM_MIPS_GEN=SINGLE
16002 sim_mips_single_machine="-M mipsIV"
16003 sim_mips_m16_machine="-M mips16,mipsIII"
16004 sim_mips_single_filter="32,64,f"
16005 sim_mips_m16_filter="16"
16006 case ${target} in #(
16007 mips*tx39*) :
16008 SIM_MIPS_GEN=SINGLE
16009 sim_mips_single_filter="32,f"
16010 sim_mips_single_machine="-M r3900" ;; #(
16011 mips64vr41*) :
16012 SIM_MIPS_GEN=M16
16013 sim_mips_single_machine="-M vr4100"
16014 sim_mips_m16_machine="-M vr4100" ;; #(
16015 mips64*) :
16016 SIM_MIPS_GEN=MULTI
16017 sim_mips_multi_configs="\
16018 vr4100:mipsIII,mips16,vr4100:32,64:mips4100,mips4111\
16019 vr4120:mipsIII,mips16,vr4120:32,64:mips4120\
16020 vr5000:mipsIV:32,64,f:mips4300,mips5000,mips8000\
16021 vr5400:mipsIV,vr5400:32,64,f:mips5400\
16022 vr5500:mipsIV,vr5500:32,64,f:mips5500"
16023 sim_mips_multi_default=mips5000 ;; #(
16024 mips*-sde-elf* | mips*-mti-elf*) :
16025 SIM_MIPS_GEN=MULTI
16026 sim_mips_multi_configs="\
16027 micromips:micromips64,micromipsdsp:32,64,f:mips_micromips\
16028 mipsisa64r2:mips64r2,mips16,mips16e,mdmx,dsp,dsp2,mips3d,smartmips:32,64,f:mipsisa32r2,mipsisa64r2,mipsisa32r5,mipsisa64r5\
16029 mipsisa64r6:mips64r6:32,64,f:mipsisa32r6,mipsisa64r6"
16030 sim_mips_multi_default=mipsisa64r2 ;; #(
16031 mips16*) :
16032 SIM_MIPS_GEN=M16 ;; #(
16033 mipsisa32r2*) :
16034 SIM_MIPS_GEN=MULTI
16035 sim_mips_multi_configs="\
16036 micromips:micromips32,micromipsdsp:32,f:mips_micromips\
16037 mips32r2:mips32r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2,smartmips:32,f:mipsisa32r2"
16038 sim_mips_multi_default=mipsisa32r2 ;; #(
16039 mipsisa32r6*) :
16040 SIM_MIPS_GEN=SINGLE
16041 sim_mips_single_machine="-M mips32r6"
16042 sim_mips_single_filter="32,f" ;; #(
16043 mipsisa32*) :
16044 SIM_MIPS_GEN=M16
16045 sim_mips_single_machine="-M mips32,mips16,mips16e,smartmips"
16046 sim_mips_m16_machine="-M mips16,mips16e,mips32"
16047 sim_mips_single_filter="32,f" ;; #(
16048 mipsisa64r2*) :
16049 SIM_MIPS_GEN=M16
16050 sim_mips_single_machine="-M mips64r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2"
16051 sim_mips_m16_machine="-M mips16,mips16e,mips64r2" ;; #(
16052 mipsisa64r6*) :
16053 SIM_MIPS_GEN=SINGLE
16054 sim_mips_single_machine="-M mips64r6" ;; #(
16055 mipsisa64sb1*) :
16056 SIM_MIPS_GEN=SINGLE
16057 sim_mips_single_machine="-M mips64,mips3d,sb1" ;; #(
16058 mipsisa64*) :
16059 SIM_MIPS_GEN=M16
16060 sim_mips_single_machine="-M mips64,mips3d,mips16,mips16e,mdmx"
16061 sim_mips_m16_machine="-M mips16,mips16e,mips64" ;; #(
16062 mips*lsi*) :
16063 SIM_MIPS_GEN=M16
16064 sim_mips_single_machine="-M mipsIII,mips16"
16065 sim_mips_m16_machine="-M mips16,mipsIII"
16066 sim_mips_single_filter="32,f" ;; #(
16067 mips*) :
16068 SIM_MIPS_GEN=SINGLE
16069 sim_mips_single_filter="32,f" ;; #(
16070 *) :
16071 ;;
16072 esac
16073
16074 SIM_MIPS_IGEN_ITABLE_FLAGS=
16075 SIM_MIPS_MULTI_SRC=
16076 SIM_MIPS_MULTI_OBJ=
16077 SIM_MIPS_MULTI_IGEN_CONFIGS=
16078 if test "x$SIM_MIPS_GEN" = x"MULTI"; then :
16079 if test -z "${sim_mips_multi_configs}" || test -z "${sim_mips_multi_default}"; then :
16080 as_fn_error $? "Error in configure.ac: MULTI simulator not set up correctly" "$LINENO" 5
16081 fi
16082
16083 as_dir=mips; as_fn_mkdir_p
16084 rm -f mips/multi-include.h mips/multi-run.c
16085 sim_mips_seen_default=no
16086
16087 cat << __EOF__ > mips/multi-run.c
16088 /* Main entry point for MULTI simulators.
16089 Copyright (C) 2003-2023 Free Software Foundation, Inc.
16090
16091 This program is free software; you can redistribute it and/or modify
16092 it under the terms of the GNU General Public License as published by
16093 the Free Software Foundation; either version 3 of the License, or
16094 (at your option) any later version.
16095
16096 This program is distributed in the hope that it will be useful,
16097 but WITHOUT ANY WARRANTY; without even the implied warranty of
16098 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16099 GNU General Public License for more details.
16100
16101 You should have received a copy of the GNU General Public License
16102 along with this program. If not, see <http://www.gnu.org/licenses/>.
16103
16104 --
16105
16106 This file was generated by sim/mips/configure. */
16107
16108 #include "sim-main.h"
16109 #include "multi-include.h"
16110 #include "bfd/elf-bfd.h"
16111 #include "bfd/elfxx-mips.h"
16112 #include "elf/mips.h"
16113
16114 #define SD sd
16115 #define CPU cpu
16116
16117 void
16118 sim_engine_run (SIM_DESC sd,
16119 int next_cpu_nr,
16120 int nr_cpus,
16121 int signal) /* ignore */
16122 {
16123 int mach;
16124
16125 if (STATE_ARCHITECTURE (sd) == NULL)
16126 mach = bfd_mach_${sim_mips_multi_default};
16127 else if (elf_elfheader (STATE_PROG_BFD (sd))->e_flags
16128 & EF_MIPS_ARCH_ASE_MICROMIPS)
16129 mach = bfd_mach_mips_micromips;
16130 else
16131 {
16132 mach = _bfd_elf_mips_mach (elf_elfheader (STATE_PROG_BFD (sd))->e_flags);
16133 if (!mach)
16134 mach = STATE_ARCHITECTURE (SD)->mach;
16135 }
16136
16137 switch (mach)
16138 {
16139 __EOF__
16140
16141 for fc in ${sim_mips_multi_configs}; do
16142
16143 c=`echo ${fc} | sed 's/:[^:]*$//'`
16144 bfdmachs=`echo ${fc} | sed 's/.*://'`
16145 name=`echo ${c} | sed 's/:.*//'`
16146 machine=`echo ${c} | sed 's/.*:\(.*\):.*/\1/'`
16147 filter=`echo ${c} | sed 's/.*://'`
16148
16149 as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS " -F ${filter} -M ${machine}"
16150
16151 case ${c} in #(
16152 *:*mips16*:*) :
16153 ws="m32 m16"
16154
16155 as_fn_append SIM_MIPS_MULTI_SRC " mips/m16${name}_run.c"
16156 as_fn_append SIM_MIPS_MULTI_OBJ " mips/m16${name}_run.o"
16157 as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS " -F 16"
16158 ;; #(
16159 *:*micromips32*:*) :
16160 ws="micromips_m32 micromips16 micromips32"
16161
16162 as_fn_append SIM_MIPS_MULTI_SRC " mips/micromips${name}_run.c"
16163 as_fn_append SIM_MIPS_MULTI_OBJ " mips/micromips${name}_run.o"
16164 as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS " -F 16,32"
16165 ;; #(
16166 *:*micromips64*:*) :
16167 ws="micromips_m64 micromips16 micromips64"
16168
16169 as_fn_append SIM_MIPS_MULTI_SRC " mips/micromips${name}_run.c"
16170 as_fn_append SIM_MIPS_MULTI_OBJ " mips/micromips${name}_run.o"
16171 as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS " -F 16,32,64"
16172 ;; #(
16173 *) :
16174 ws=m32 ;;
16175 esac
16176
16177 for w in ${ws}; do
16178 for base in engine icache idecode model semantics support; do
16179 as_fn_append SIM_MIPS_MULTI_SRC " mips/${w}${name}_${base}.c"
16180 as_fn_append SIM_MIPS_MULTI_SRC " mips/${w}${name}_${base}.h"
16181 as_fn_append SIM_MIPS_MULTI_OBJ " mips/${w}${name}_${base}.o"
16182 done
16183 as_fn_append SIM_MIPS_MULTI_IGEN_CONFIGS " ${w}${c}"
16184 done
16185
16186 echo "#include \"${w}${name}_engine.h\"" >> mips/multi-include.h
16187
16188 for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do
16189 echo " case bfd_mach_${mach}:" >> mips/multi-run.c
16190 if test "x$mach" = x"${sim_mips_multi_default}"; then :
16191 echo " default:" >> mips/multi-run.c
16192 sim_mips_seen_default=yes
16193
16194 fi
16195 done
16196 echo " ${w}${name}_engine_run (sd, next_cpu_nr, nr_cpus, signal);" \
16197 >> mips/multi-run.c
16198 echo " break;" >> mips/multi-run.c
16199 done
16200
16201 if test "x$sim_mips_seen_default" = xno; then :
16202 as_fn_error $? "Error in configure.ac: \${sim_mips_multi_configs} doesn't have an entry for \${sim_mips_multi_default}" "$LINENO" 5
16203 fi
16204
16205 cat << __EOF__ >> mips/multi-run.c
16206 }
16207 }
16208 __EOF__
16209
16210 else
16211 SIM_MIPS_MULTI_SRC=mips/doesnt-exist.c
16212 SIM_MIPS_IGEN_ITABLE_FLAGS='$(SIM_MIPS_SINGLE_FLAGS)'
16213 if test "x$SIM_MIPS_GEN" = x"M16"; then :
16214 as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS ' $(SIM_MIPS_M16_FLAGS)'
16215 fi
16216
16217 fi
16218 SIM_MIPS_SINGLE_FLAGS="-F ${sim_mips_single_filter} ${sim_mips_single_machine}"
16219 SIM_MIPS_M16_FLAGS="-F ${sim_mips_m16_filter} ${sim_mips_m16_machine}"
16220
16221
16222
16223
16224
16225
16226
16227 if test "$SIM_MIPS_GEN" = "SINGLE"; then
16228 SIM_MIPS_GEN_MODE_SINGLE_TRUE=
16229 SIM_MIPS_GEN_MODE_SINGLE_FALSE='#'
16230 else
16231 SIM_MIPS_GEN_MODE_SINGLE_TRUE='#'
16232 SIM_MIPS_GEN_MODE_SINGLE_FALSE=
16233 fi
16234
16235 if test "$SIM_MIPS_GEN" = "M16"; then
16236 SIM_MIPS_GEN_MODE_M16_TRUE=
16237 SIM_MIPS_GEN_MODE_M16_FALSE='#'
16238 else
16239 SIM_MIPS_GEN_MODE_M16_TRUE='#'
16240 SIM_MIPS_GEN_MODE_M16_FALSE=
16241 fi
16242
16243 if test "$SIM_MIPS_GEN" = "MULTI"; then
16244 SIM_MIPS_GEN_MODE_MULTI_TRUE=
16245 SIM_MIPS_GEN_MODE_MULTI_FALSE='#'
16246 else
16247 SIM_MIPS_GEN_MODE_MULTI_TRUE='#'
16248 SIM_MIPS_GEN_MODE_MULTI_FALSE=
16249 fi
16250
16251
16252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking riscv bitsize" >&5
16253 $as_echo_n "checking riscv bitsize... " >&6; }
16254 SIM_RISCV_BITSIZE=64
16255 case $target in #(
16256 riscv32*) :
16257 SIM_RISCV_BITSIZE=32 ;; #(
16258 *) :
16259 ;;
16260 esac
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIM_RISCV_BITSIZE" >&5
16262 $as_echo "$SIM_RISCV_BITSIZE" >&6; }
16263
16264
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim rx should be cycle accurate" >&5
16266 $as_echo_n "checking whether sim rx should be cycle accurate... " >&6; }
16267 # Check whether --enable-sim-rx-cycle-accurate was given.
16268 if test "${enable_sim_rx_cycle_accurate+set}" = set; then :
16269 enableval=$enable_sim_rx_cycle_accurate; case "${enableval}" in
16270 yes | no) ;;
16271 *) as_fn_error $? "bad value ${enableval} given for --enable-sim-rx-cycle-accurate option" "$LINENO" 5 ;;
16272 esac
16273 fi
16274
16275 if test "x${enable_sim_rx_cycle_accurate}" != xno; then
16276 SIM_RX_CYCLE_ACCURATE_FLAGS="-DCYCLE_ACCURATE"
16277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16278 $as_echo "yes" >&6; }
16279 else
16280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16281 $as_echo "no" >&6; }
16282 fi
16283
16284
16285
16286 ac_config_files="$ac_config_files arch-subdir.mk Makefile .gdbinit:gdbinit.in"
16287
16288 cat >confcache <<\_ACEOF
16289 # This file is a shell script that caches the results of configure
16290 # tests run on this system so they can be shared between configure
16291 # scripts and configure runs, see configure's option --config-cache.
16292 # It is not useful on other systems. If it contains results you don't
16293 # want to keep, you may remove or edit it.
16294 #
16295 # config.status only pays attention to the cache file if you give it
16296 # the --recheck option to rerun configure.
16297 #
16298 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16299 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16300 # following values.
16301
16302 _ACEOF
16303
16304 # The following way of writing the cache mishandles newlines in values,
16305 # but we know of no workaround that is simple, portable, and efficient.
16306 # So, we kill variables containing newlines.
16307 # Ultrix sh set writes to stderr and can't be redirected directly,
16308 # and sets the high bit in the cache file unless we assign to the vars.
16309 (
16310 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16311 eval ac_val=\$$ac_var
16312 case $ac_val in #(
16313 *${as_nl}*)
16314 case $ac_var in #(
16315 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16316 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16317 esac
16318 case $ac_var in #(
16319 _ | IFS | as_nl) ;; #(
16320 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16321 *) { eval $ac_var=; unset $ac_var;} ;;
16322 esac ;;
16323 esac
16324 done
16325
16326 (set) 2>&1 |
16327 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16328 *${as_nl}ac_space=\ *)
16329 # `set' does not quote correctly, so add quotes: double-quote
16330 # substitution turns \\\\ into \\, and sed turns \\ into \.
16331 sed -n \
16332 "s/'/'\\\\''/g;
16333 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16334 ;; #(
16335 *)
16336 # `set' quotes correctly as required by POSIX, so do not add quotes.
16337 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16338 ;;
16339 esac |
16340 sort
16341 ) |
16342 sed '
16343 /^ac_cv_env_/b end
16344 t clear
16345 :clear
16346 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16347 t end
16348 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16349 :end' >>confcache
16350 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16351 if test -w "$cache_file"; then
16352 if test "x$cache_file" != "x/dev/null"; then
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16354 $as_echo "$as_me: updating cache $cache_file" >&6;}
16355 if test ! -f "$cache_file" || test -h "$cache_file"; then
16356 cat confcache >"$cache_file"
16357 else
16358 case $cache_file in #(
16359 */* | ?:*)
16360 mv -f confcache "$cache_file"$$ &&
16361 mv -f "$cache_file"$$ "$cache_file" ;; #(
16362 *)
16363 mv -f confcache "$cache_file" ;;
16364 esac
16365 fi
16366 fi
16367 else
16368 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16369 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16370 fi
16371 fi
16372 rm -f confcache
16373
16374 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16375 # Let make expand exec_prefix.
16376 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16377
16378 DEFS=-DHAVE_CONFIG_H
16379
16380 ac_libobjs=
16381 ac_ltlibobjs=
16382 U=
16383 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16384 # 1. Remove the extension, and $U if already installed.
16385 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16386 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16387 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16388 # will be set to the directory where LIBOBJS objects are built.
16389 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16390 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16391 done
16392 LIBOBJS=$ac_libobjs
16393
16394 LTLIBOBJS=$ac_ltlibobjs
16395
16396
16397
16398 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16399 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16400 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16401 fi
16402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16403 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16404 if test -n "$am_sleep_pid"; then
16405 # Hide warnings about reused PIDs.
16406 wait $am_sleep_pid 2>/dev/null
16407 fi
16408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16409 $as_echo "done" >&6; }
16410 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16411 as_fn_error $? "conditional \"AMDEP\" was never defined.
16412 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16413 fi
16414 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16415 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16416 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16417 fi
16418 if test -n "$EXEEXT"; then
16419 am__EXEEXT_TRUE=
16420 am__EXEEXT_FALSE='#'
16421 else
16422 am__EXEEXT_TRUE='#'
16423 am__EXEEXT_FALSE=
16424 fi
16425
16426 if test -z "${SIM_ENABLE_ARCH_aarch64_TRUE}" && test -z "${SIM_ENABLE_ARCH_aarch64_FALSE}"; then
16427 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_aarch64\" was never defined.
16428 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16429 fi
16430 if test -z "${SIM_ENABLE_ARCH_arm_TRUE}" && test -z "${SIM_ENABLE_ARCH_arm_FALSE}"; then
16431 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_arm\" was never defined.
16432 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16433 fi
16434 if test -z "${SIM_ENABLE_ARCH_avr_TRUE}" && test -z "${SIM_ENABLE_ARCH_avr_FALSE}"; then
16435 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_avr\" was never defined.
16436 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16437 fi
16438 if test -z "${SIM_ENABLE_ARCH_bfin_TRUE}" && test -z "${SIM_ENABLE_ARCH_bfin_FALSE}"; then
16439 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_bfin\" was never defined.
16440 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16441 fi
16442 if test -z "${SIM_ENABLE_ARCH_bpf_TRUE}" && test -z "${SIM_ENABLE_ARCH_bpf_FALSE}"; then
16443 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_bpf\" was never defined.
16444 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16445 fi
16446 if test -z "${SIM_ENABLE_ARCH_cr16_TRUE}" && test -z "${SIM_ENABLE_ARCH_cr16_FALSE}"; then
16447 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_cr16\" was never defined.
16448 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16449 fi
16450 if test -z "${SIM_ENABLE_ARCH_cris_TRUE}" && test -z "${SIM_ENABLE_ARCH_cris_FALSE}"; then
16451 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_cris\" was never defined.
16452 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16453 fi
16454 if test -z "${SIM_ENABLE_ARCH_d10v_TRUE}" && test -z "${SIM_ENABLE_ARCH_d10v_FALSE}"; then
16455 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_d10v\" was never defined.
16456 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16457 fi
16458 if test -z "${SIM_ENABLE_ARCH_frv_TRUE}" && test -z "${SIM_ENABLE_ARCH_frv_FALSE}"; then
16459 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_frv\" was never defined.
16460 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16461 fi
16462 if test -z "${SIM_ENABLE_ARCH_ft32_TRUE}" && test -z "${SIM_ENABLE_ARCH_ft32_FALSE}"; then
16463 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_ft32\" was never defined.
16464 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16465 fi
16466 if test -z "${SIM_ENABLE_ARCH_h8300_TRUE}" && test -z "${SIM_ENABLE_ARCH_h8300_FALSE}"; then
16467 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_h8300\" was never defined.
16468 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16469 fi
16470 if test -z "${SIM_ENABLE_ARCH_iq2000_TRUE}" && test -z "${SIM_ENABLE_ARCH_iq2000_FALSE}"; then
16471 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_iq2000\" was never defined.
16472 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16473 fi
16474 if test -z "${SIM_ENABLE_ARCH_lm32_TRUE}" && test -z "${SIM_ENABLE_ARCH_lm32_FALSE}"; then
16475 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_lm32\" was never defined.
16476 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16477 fi
16478 if test -z "${SIM_ENABLE_ARCH_m32c_TRUE}" && test -z "${SIM_ENABLE_ARCH_m32c_FALSE}"; then
16479 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m32c\" was never defined.
16480 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16481 fi
16482 if test -z "${SIM_ENABLE_ARCH_m32r_TRUE}" && test -z "${SIM_ENABLE_ARCH_m32r_FALSE}"; then
16483 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m32r\" was never defined.
16484 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16485 fi
16486 if test -z "${SIM_ENABLE_ARCH_m68hc11_TRUE}" && test -z "${SIM_ENABLE_ARCH_m68hc11_FALSE}"; then
16487 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m68hc11\" was never defined.
16488 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16489 fi
16490 if test -z "${SIM_ENABLE_ARCH_mcore_TRUE}" && test -z "${SIM_ENABLE_ARCH_mcore_FALSE}"; then
16491 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mcore\" was never defined.
16492 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16493 fi
16494 if test -z "${SIM_ENABLE_ARCH_microblaze_TRUE}" && test -z "${SIM_ENABLE_ARCH_microblaze_FALSE}"; then
16495 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_microblaze\" was never defined.
16496 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16497 fi
16498 if test -z "${SIM_ENABLE_ARCH_mips_TRUE}" && test -z "${SIM_ENABLE_ARCH_mips_FALSE}"; then
16499 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mips\" was never defined.
16500 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16501 fi
16502 if test -z "${SIM_ENABLE_ARCH_mn10300_TRUE}" && test -z "${SIM_ENABLE_ARCH_mn10300_FALSE}"; then
16503 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mn10300\" was never defined.
16504 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16505 fi
16506 if test -z "${SIM_ENABLE_ARCH_moxie_TRUE}" && test -z "${SIM_ENABLE_ARCH_moxie_FALSE}"; then
16507 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_moxie\" was never defined.
16508 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16509 fi
16510 if test -z "${SIM_ENABLE_ARCH_msp430_TRUE}" && test -z "${SIM_ENABLE_ARCH_msp430_FALSE}"; then
16511 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_msp430\" was never defined.
16512 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16513 fi
16514 if test -z "${SIM_ENABLE_ARCH_or1k_TRUE}" && test -z "${SIM_ENABLE_ARCH_or1k_FALSE}"; then
16515 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_or1k\" was never defined.
16516 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16517 fi
16518 if test -z "${SIM_ENABLE_ARCH_ppc_TRUE}" && test -z "${SIM_ENABLE_ARCH_ppc_FALSE}"; then
16519 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_ppc\" was never defined.
16520 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16521 fi
16522 if test -z "${SIM_ENABLE_ARCH_pru_TRUE}" && test -z "${SIM_ENABLE_ARCH_pru_FALSE}"; then
16523 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_pru\" was never defined.
16524 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16525 fi
16526 if test -z "${SIM_ENABLE_ARCH_riscv_TRUE}" && test -z "${SIM_ENABLE_ARCH_riscv_FALSE}"; then
16527 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_riscv\" was never defined.
16528 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16529 fi
16530 if test -z "${SIM_ENABLE_ARCH_rl78_TRUE}" && test -z "${SIM_ENABLE_ARCH_rl78_FALSE}"; then
16531 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_rl78\" was never defined.
16532 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16533 fi
16534 if test -z "${SIM_ENABLE_ARCH_rx_TRUE}" && test -z "${SIM_ENABLE_ARCH_rx_FALSE}"; then
16535 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_rx\" was never defined.
16536 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16537 fi
16538 if test -z "${SIM_ENABLE_ARCH_sh_TRUE}" && test -z "${SIM_ENABLE_ARCH_sh_FALSE}"; then
16539 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_sh\" was never defined.
16540 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16541 fi
16542 if test -z "${SIM_ENABLE_ARCH_erc32_TRUE}" && test -z "${SIM_ENABLE_ARCH_erc32_FALSE}"; then
16543 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_erc32\" was never defined.
16544 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16545 fi
16546 if test -z "${SIM_ENABLE_ARCH_v850_TRUE}" && test -z "${SIM_ENABLE_ARCH_v850_FALSE}"; then
16547 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_v850\" was never defined.
16548 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16549 fi
16550 if test -z "${SIM_ENABLE_ARCH_examples_TRUE}" && test -z "${SIM_ENABLE_ARCH_examples_FALSE}"; then
16551 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_examples\" was never defined.
16552 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16553 fi
16554 if test -z "${ENABLE_SIM_TRUE}" && test -z "${ENABLE_SIM_FALSE}"; then
16555 as_fn_error $? "conditional \"ENABLE_SIM\" was never defined.
16556 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16557 fi
16558 if test -z "${SIM_ENABLE_HW_TRUE}" && test -z "${SIM_ENABLE_HW_FALSE}"; then
16559 as_fn_error $? "conditional \"SIM_ENABLE_HW\" was never defined.
16560 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16561 fi
16562 if test -z "${SIM_MIPS_GEN_MODE_SINGLE_TRUE}" && test -z "${SIM_MIPS_GEN_MODE_SINGLE_FALSE}"; then
16563 as_fn_error $? "conditional \"SIM_MIPS_GEN_MODE_SINGLE\" was never defined.
16564 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16565 fi
16566 if test -z "${SIM_MIPS_GEN_MODE_M16_TRUE}" && test -z "${SIM_MIPS_GEN_MODE_M16_FALSE}"; then
16567 as_fn_error $? "conditional \"SIM_MIPS_GEN_MODE_M16\" was never defined.
16568 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16569 fi
16570 if test -z "${SIM_MIPS_GEN_MODE_MULTI_TRUE}" && test -z "${SIM_MIPS_GEN_MODE_MULTI_FALSE}"; then
16571 as_fn_error $? "conditional \"SIM_MIPS_GEN_MODE_MULTI\" was never defined.
16572 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16573 fi
16574
16575 : "${CONFIG_STATUS=./config.status}"
16576 ac_write_fail=0
16577 ac_clean_files_save=$ac_clean_files
16578 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16579 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16580 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16581 as_write_fail=0
16582 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16583 #! $SHELL
16584 # Generated by $as_me.
16585 # Run this file to recreate the current configuration.
16586 # Compiler output produced by configure, useful for debugging
16587 # configure, is in config.log if it exists.
16588
16589 debug=false
16590 ac_cs_recheck=false
16591 ac_cs_silent=false
16592
16593 SHELL=\${CONFIG_SHELL-$SHELL}
16594 export SHELL
16595 _ASEOF
16596 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16597 ## -------------------- ##
16598 ## M4sh Initialization. ##
16599 ## -------------------- ##
16600
16601 # Be more Bourne compatible
16602 DUALCASE=1; export DUALCASE # for MKS sh
16603 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16604 emulate sh
16605 NULLCMD=:
16606 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16607 # is contrary to our usage. Disable this feature.
16608 alias -g '${1+"$@"}'='"$@"'
16609 setopt NO_GLOB_SUBST
16610 else
16611 case `(set -o) 2>/dev/null` in #(
16612 *posix*) :
16613 set -o posix ;; #(
16614 *) :
16615 ;;
16616 esac
16617 fi
16618
16619
16620 as_nl='
16621 '
16622 export as_nl
16623 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16624 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16625 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16626 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16627 # Prefer a ksh shell builtin over an external printf program on Solaris,
16628 # but without wasting forks for bash or zsh.
16629 if test -z "$BASH_VERSION$ZSH_VERSION" \
16630 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16631 as_echo='print -r --'
16632 as_echo_n='print -rn --'
16633 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16634 as_echo='printf %s\n'
16635 as_echo_n='printf %s'
16636 else
16637 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16638 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16639 as_echo_n='/usr/ucb/echo -n'
16640 else
16641 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16642 as_echo_n_body='eval
16643 arg=$1;
16644 case $arg in #(
16645 *"$as_nl"*)
16646 expr "X$arg" : "X\\(.*\\)$as_nl";
16647 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16648 esac;
16649 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16650 '
16651 export as_echo_n_body
16652 as_echo_n='sh -c $as_echo_n_body as_echo'
16653 fi
16654 export as_echo_body
16655 as_echo='sh -c $as_echo_body as_echo'
16656 fi
16657
16658 # The user is always right.
16659 if test "${PATH_SEPARATOR+set}" != set; then
16660 PATH_SEPARATOR=:
16661 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16662 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16663 PATH_SEPARATOR=';'
16664 }
16665 fi
16666
16667
16668 # IFS
16669 # We need space, tab and new line, in precisely that order. Quoting is
16670 # there to prevent editors from complaining about space-tab.
16671 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16672 # splitting by setting IFS to empty value.)
16673 IFS=" "" $as_nl"
16674
16675 # Find who we are. Look in the path if we contain no directory separator.
16676 as_myself=
16677 case $0 in #((
16678 *[\\/]* ) as_myself=$0 ;;
16679 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16680 for as_dir in $PATH
16681 do
16682 IFS=$as_save_IFS
16683 test -z "$as_dir" && as_dir=.
16684 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16685 done
16686 IFS=$as_save_IFS
16687
16688 ;;
16689 esac
16690 # We did not find ourselves, most probably we were run as `sh COMMAND'
16691 # in which case we are not to be found in the path.
16692 if test "x$as_myself" = x; then
16693 as_myself=$0
16694 fi
16695 if test ! -f "$as_myself"; then
16696 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16697 exit 1
16698 fi
16699
16700 # Unset variables that we do not need and which cause bugs (e.g. in
16701 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16702 # suppresses any "Segmentation fault" message there. '((' could
16703 # trigger a bug in pdksh 5.2.14.
16704 for as_var in BASH_ENV ENV MAIL MAILPATH
16705 do eval test x\${$as_var+set} = xset \
16706 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16707 done
16708 PS1='$ '
16709 PS2='> '
16710 PS4='+ '
16711
16712 # NLS nuisances.
16713 LC_ALL=C
16714 export LC_ALL
16715 LANGUAGE=C
16716 export LANGUAGE
16717
16718 # CDPATH.
16719 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16720
16721
16722 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16723 # ----------------------------------------
16724 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16725 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16726 # script with STATUS, using 1 if that was 0.
16727 as_fn_error ()
16728 {
16729 as_status=$1; test $as_status -eq 0 && as_status=1
16730 if test "$4"; then
16731 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16732 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16733 fi
16734 $as_echo "$as_me: error: $2" >&2
16735 as_fn_exit $as_status
16736 } # as_fn_error
16737
16738
16739 # as_fn_set_status STATUS
16740 # -----------------------
16741 # Set $? to STATUS, without forking.
16742 as_fn_set_status ()
16743 {
16744 return $1
16745 } # as_fn_set_status
16746
16747 # as_fn_exit STATUS
16748 # -----------------
16749 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16750 as_fn_exit ()
16751 {
16752 set +e
16753 as_fn_set_status $1
16754 exit $1
16755 } # as_fn_exit
16756
16757 # as_fn_unset VAR
16758 # ---------------
16759 # Portably unset VAR.
16760 as_fn_unset ()
16761 {
16762 { eval $1=; unset $1;}
16763 }
16764 as_unset=as_fn_unset
16765 # as_fn_append VAR VALUE
16766 # ----------------------
16767 # Append the text in VALUE to the end of the definition contained in VAR. Take
16768 # advantage of any shell optimizations that allow amortized linear growth over
16769 # repeated appends, instead of the typical quadratic growth present in naive
16770 # implementations.
16771 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16772 eval 'as_fn_append ()
16773 {
16774 eval $1+=\$2
16775 }'
16776 else
16777 as_fn_append ()
16778 {
16779 eval $1=\$$1\$2
16780 }
16781 fi # as_fn_append
16782
16783 # as_fn_arith ARG...
16784 # ------------------
16785 # Perform arithmetic evaluation on the ARGs, and store the result in the
16786 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16787 # must be portable across $(()) and expr.
16788 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16789 eval 'as_fn_arith ()
16790 {
16791 as_val=$(( $* ))
16792 }'
16793 else
16794 as_fn_arith ()
16795 {
16796 as_val=`expr "$@" || test $? -eq 1`
16797 }
16798 fi # as_fn_arith
16799
16800
16801 if expr a : '\(a\)' >/dev/null 2>&1 &&
16802 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16803 as_expr=expr
16804 else
16805 as_expr=false
16806 fi
16807
16808 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16809 as_basename=basename
16810 else
16811 as_basename=false
16812 fi
16813
16814 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16815 as_dirname=dirname
16816 else
16817 as_dirname=false
16818 fi
16819
16820 as_me=`$as_basename -- "$0" ||
16821 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16822 X"$0" : 'X\(//\)$' \| \
16823 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16824 $as_echo X/"$0" |
16825 sed '/^.*\/\([^/][^/]*\)\/*$/{
16826 s//\1/
16827 q
16828 }
16829 /^X\/\(\/\/\)$/{
16830 s//\1/
16831 q
16832 }
16833 /^X\/\(\/\).*/{
16834 s//\1/
16835 q
16836 }
16837 s/.*/./; q'`
16838
16839 # Avoid depending upon Character Ranges.
16840 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16841 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16842 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16843 as_cr_digits='0123456789'
16844 as_cr_alnum=$as_cr_Letters$as_cr_digits
16845
16846 ECHO_C= ECHO_N= ECHO_T=
16847 case `echo -n x` in #(((((
16848 -n*)
16849 case `echo 'xy\c'` in
16850 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16851 xy) ECHO_C='\c';;
16852 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16853 ECHO_T=' ';;
16854 esac;;
16855 *)
16856 ECHO_N='-n';;
16857 esac
16858
16859 rm -f conf$$ conf$$.exe conf$$.file
16860 if test -d conf$$.dir; then
16861 rm -f conf$$.dir/conf$$.file
16862 else
16863 rm -f conf$$.dir
16864 mkdir conf$$.dir 2>/dev/null
16865 fi
16866 if (echo >conf$$.file) 2>/dev/null; then
16867 if ln -s conf$$.file conf$$ 2>/dev/null; then
16868 as_ln_s='ln -s'
16869 # ... but there are two gotchas:
16870 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16871 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16872 # In both cases, we have to default to `cp -pR'.
16873 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16874 as_ln_s='cp -pR'
16875 elif ln conf$$.file conf$$ 2>/dev/null; then
16876 as_ln_s=ln
16877 else
16878 as_ln_s='cp -pR'
16879 fi
16880 else
16881 as_ln_s='cp -pR'
16882 fi
16883 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16884 rmdir conf$$.dir 2>/dev/null
16885
16886
16887 # as_fn_mkdir_p
16888 # -------------
16889 # Create "$as_dir" as a directory, including parents if necessary.
16890 as_fn_mkdir_p ()
16891 {
16892
16893 case $as_dir in #(
16894 -*) as_dir=./$as_dir;;
16895 esac
16896 test -d "$as_dir" || eval $as_mkdir_p || {
16897 as_dirs=
16898 while :; do
16899 case $as_dir in #(
16900 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16901 *) as_qdir=$as_dir;;
16902 esac
16903 as_dirs="'$as_qdir' $as_dirs"
16904 as_dir=`$as_dirname -- "$as_dir" ||
16905 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16906 X"$as_dir" : 'X\(//\)[^/]' \| \
16907 X"$as_dir" : 'X\(//\)$' \| \
16908 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16909 $as_echo X"$as_dir" |
16910 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16911 s//\1/
16912 q
16913 }
16914 /^X\(\/\/\)[^/].*/{
16915 s//\1/
16916 q
16917 }
16918 /^X\(\/\/\)$/{
16919 s//\1/
16920 q
16921 }
16922 /^X\(\/\).*/{
16923 s//\1/
16924 q
16925 }
16926 s/.*/./; q'`
16927 test -d "$as_dir" && break
16928 done
16929 test -z "$as_dirs" || eval "mkdir $as_dirs"
16930 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16931
16932
16933 } # as_fn_mkdir_p
16934 if mkdir -p . 2>/dev/null; then
16935 as_mkdir_p='mkdir -p "$as_dir"'
16936 else
16937 test -d ./-p && rmdir ./-p
16938 as_mkdir_p=false
16939 fi
16940
16941
16942 # as_fn_executable_p FILE
16943 # -----------------------
16944 # Test if FILE is an executable regular file.
16945 as_fn_executable_p ()
16946 {
16947 test -f "$1" && test -x "$1"
16948 } # as_fn_executable_p
16949 as_test_x='test -x'
16950 as_executable_p=as_fn_executable_p
16951
16952 # Sed expression to map a string onto a valid CPP name.
16953 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16954
16955 # Sed expression to map a string onto a valid variable name.
16956 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16957
16958
16959 exec 6>&1
16960 ## ----------------------------------- ##
16961 ## Main body of $CONFIG_STATUS script. ##
16962 ## ----------------------------------- ##
16963 _ASEOF
16964 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16965
16966 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16967 # Save the log message, to keep $0 and so on meaningful, and to
16968 # report actual input values of CONFIG_FILES etc. instead of their
16969 # values after options handling.
16970 ac_log="
16971 This file was extended by sim $as_me 0, which was
16972 generated by GNU Autoconf 2.69. Invocation command line was
16973
16974 CONFIG_FILES = $CONFIG_FILES
16975 CONFIG_HEADERS = $CONFIG_HEADERS
16976 CONFIG_LINKS = $CONFIG_LINKS
16977 CONFIG_COMMANDS = $CONFIG_COMMANDS
16978 $ $0 $@
16979
16980 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16981 "
16982
16983 _ACEOF
16984
16985 case $ac_config_files in *"
16986 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16987 esac
16988
16989 case $ac_config_headers in *"
16990 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16991 esac
16992
16993
16994 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16995 # Files that config.status was made for.
16996 config_files="$ac_config_files"
16997 config_headers="$ac_config_headers"
16998 config_commands="$ac_config_commands"
16999
17000 _ACEOF
17001
17002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17003 ac_cs_usage="\
17004 \`$as_me' instantiates files and other configuration actions
17005 from templates according to the current configuration. Unless the files
17006 and actions are specified as TAGs, all are instantiated by default.
17007
17008 Usage: $0 [OPTION]... [TAG]...
17009
17010 -h, --help print this help, then exit
17011 -V, --version print version number and configuration settings, then exit
17012 --config print configuration, then exit
17013 -q, --quiet, --silent
17014 do not print progress messages
17015 -d, --debug don't remove temporary files
17016 --recheck update $as_me by reconfiguring in the same conditions
17017 --file=FILE[:TEMPLATE]
17018 instantiate the configuration file FILE
17019 --header=FILE[:TEMPLATE]
17020 instantiate the configuration header FILE
17021
17022 Configuration files:
17023 $config_files
17024
17025 Configuration headers:
17026 $config_headers
17027
17028 Configuration commands:
17029 $config_commands
17030
17031 Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
17032 sim home page: <https://sourceware.org/gdb/wiki/Sim/>."
17033
17034 _ACEOF
17035 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17036 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17037 ac_cs_version="\\
17038 sim config.status 0
17039 configured by $0, generated by GNU Autoconf 2.69,
17040 with options \\"\$ac_cs_config\\"
17041
17042 Copyright (C) 2012 Free Software Foundation, Inc.
17043 This config.status script is free software; the Free Software Foundation
17044 gives unlimited permission to copy, distribute and modify it."
17045
17046 ac_pwd='$ac_pwd'
17047 srcdir='$srcdir'
17048 INSTALL='$INSTALL'
17049 MKDIR_P='$MKDIR_P'
17050 AWK='$AWK'
17051 test -n "\$AWK" || AWK=awk
17052 _ACEOF
17053
17054 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17055 # The default lists apply if the user does not specify any file.
17056 ac_need_defaults=:
17057 while test $# != 0
17058 do
17059 case $1 in
17060 --*=?*)
17061 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17062 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17063 ac_shift=:
17064 ;;
17065 --*=)
17066 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17067 ac_optarg=
17068 ac_shift=:
17069 ;;
17070 *)
17071 ac_option=$1
17072 ac_optarg=$2
17073 ac_shift=shift
17074 ;;
17075 esac
17076
17077 case $ac_option in
17078 # Handling of the options.
17079 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17080 ac_cs_recheck=: ;;
17081 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17082 $as_echo "$ac_cs_version"; exit ;;
17083 --config | --confi | --conf | --con | --co | --c )
17084 $as_echo "$ac_cs_config"; exit ;;
17085 --debug | --debu | --deb | --de | --d | -d )
17086 debug=: ;;
17087 --file | --fil | --fi | --f )
17088 $ac_shift
17089 case $ac_optarg in
17090 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17091 '') as_fn_error $? "missing file argument" ;;
17092 esac
17093 as_fn_append CONFIG_FILES " '$ac_optarg'"
17094 ac_need_defaults=false;;
17095 --header | --heade | --head | --hea )
17096 $ac_shift
17097 case $ac_optarg in
17098 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17099 esac
17100 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17101 ac_need_defaults=false;;
17102 --he | --h)
17103 # Conflict between --help and --header
17104 as_fn_error $? "ambiguous option: \`$1'
17105 Try \`$0 --help' for more information.";;
17106 --help | --hel | -h )
17107 $as_echo "$ac_cs_usage"; exit ;;
17108 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17109 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17110 ac_cs_silent=: ;;
17111
17112 # This is an error.
17113 -*) as_fn_error $? "unrecognized option: \`$1'
17114 Try \`$0 --help' for more information." ;;
17115
17116 *) as_fn_append ac_config_targets " $1"
17117 ac_need_defaults=false ;;
17118
17119 esac
17120 shift
17121 done
17122
17123 ac_configure_extra_args=
17124
17125 if $ac_cs_silent; then
17126 exec 6>/dev/null
17127 ac_configure_extra_args="$ac_configure_extra_args --silent"
17128 fi
17129
17130 _ACEOF
17131 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17132 if \$ac_cs_recheck; then
17133 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17134 shift
17135 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17136 CONFIG_SHELL='$SHELL'
17137 export CONFIG_SHELL
17138 exec "\$@"
17139 fi
17140
17141 _ACEOF
17142 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17143 exec 5>>config.log
17144 {
17145 echo
17146 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17147 ## Running $as_me. ##
17148 _ASBOX
17149 $as_echo "$ac_log"
17150 } >&5
17151
17152 _ACEOF
17153 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17154 #
17155 # INIT-COMMANDS
17156 #
17157
17158
17159 # The HP-UX ksh and POSIX shell print the target directory to stdout
17160 # if CDPATH is set.
17161 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17162
17163 sed_quote_subst='$sed_quote_subst'
17164 double_quote_subst='$double_quote_subst'
17165 delay_variable_subst='$delay_variable_subst'
17166 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17167 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17168 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17169 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17170 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17171 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17172 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17173 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17174 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17175 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17176 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17177 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17178 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17179 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17180 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17181 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17182 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17183 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17184 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17185 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17186 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17187 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17188 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17189 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17190 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17191 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17192 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17193 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17194 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17195 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17196 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17197 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17198 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17199 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17200 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17201 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17202 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17203 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17204 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17205 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17206 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17207 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17208 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17209 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17210 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17211 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17212 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17213 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17214 lt_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"`'
17215 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17216 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17217 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17218 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17219 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17220 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17221 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17222 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17223 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17224 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17225 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17226 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17227 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17228 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17229 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17230 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17231 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17232 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17233 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17234 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17235 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17236 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17237 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17238 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17239 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17240 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17241 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17242 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17243 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17244 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17245 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17246 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17247 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17248 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17249 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17250 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17251 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17252 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17253 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17254 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17255 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17256 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17257 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17258 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17259 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17260 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17261 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17262 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17263 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17264 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17265 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17266 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17267 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17268 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17269 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17270 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17271 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17272 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17273 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17274 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17275 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17276 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17277 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17278 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17279 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17280 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17281 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17282 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17283 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17284 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17285 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17286
17287 LTCC='$LTCC'
17288 LTCFLAGS='$LTCFLAGS'
17289 compiler='$compiler_DEFAULT'
17290
17291 # A function that is used when there is no print builtin or printf.
17292 func_fallback_echo ()
17293 {
17294 eval 'cat <<_LTECHO_EOF
17295 \$1
17296 _LTECHO_EOF'
17297 }
17298
17299 # Quote evaled strings.
17300 for var in SHELL \
17301 ECHO \
17302 SED \
17303 GREP \
17304 EGREP \
17305 FGREP \
17306 LD \
17307 NM \
17308 LN_S \
17309 lt_SP2NL \
17310 lt_NL2SP \
17311 reload_flag \
17312 OBJDUMP \
17313 deplibs_check_method \
17314 file_magic_cmd \
17315 AR \
17316 AR_FLAGS \
17317 STRIP \
17318 RANLIB \
17319 CC \
17320 CFLAGS \
17321 compiler \
17322 lt_cv_sys_global_symbol_pipe \
17323 lt_cv_sys_global_symbol_to_cdecl \
17324 lt_cv_sys_global_symbol_to_c_name_address \
17325 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17326 lt_prog_compiler_no_builtin_flag \
17327 lt_prog_compiler_wl \
17328 lt_prog_compiler_pic \
17329 lt_prog_compiler_static \
17330 lt_cv_prog_compiler_c_o \
17331 need_locks \
17332 DSYMUTIL \
17333 NMEDIT \
17334 LIPO \
17335 OTOOL \
17336 OTOOL64 \
17337 shrext_cmds \
17338 export_dynamic_flag_spec \
17339 whole_archive_flag_spec \
17340 compiler_needs_object \
17341 with_gnu_ld \
17342 allow_undefined_flag \
17343 no_undefined_flag \
17344 hardcode_libdir_flag_spec \
17345 hardcode_libdir_flag_spec_ld \
17346 hardcode_libdir_separator \
17347 fix_srcfile_path \
17348 exclude_expsyms \
17349 include_expsyms \
17350 file_list_spec \
17351 variables_saved_for_relink \
17352 libname_spec \
17353 library_names_spec \
17354 soname_spec \
17355 install_override_mode \
17356 finish_eval \
17357 old_striplib \
17358 striplib; do
17359 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17360 *[\\\\\\\`\\"\\\$]*)
17361 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17362 ;;
17363 *)
17364 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17365 ;;
17366 esac
17367 done
17368
17369 # Double-quote double-evaled strings.
17370 for var in reload_cmds \
17371 old_postinstall_cmds \
17372 old_postuninstall_cmds \
17373 old_archive_cmds \
17374 extract_expsyms_cmds \
17375 old_archive_from_new_cmds \
17376 old_archive_from_expsyms_cmds \
17377 archive_cmds \
17378 archive_expsym_cmds \
17379 module_cmds \
17380 module_expsym_cmds \
17381 export_symbols_cmds \
17382 prelink_cmds \
17383 postinstall_cmds \
17384 postuninstall_cmds \
17385 finish_cmds \
17386 sys_lib_search_path_spec \
17387 sys_lib_dlsearch_path_spec; do
17388 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17389 *[\\\\\\\`\\"\\\$]*)
17390 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17391 ;;
17392 *)
17393 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17394 ;;
17395 esac
17396 done
17397
17398 ac_aux_dir='$ac_aux_dir'
17399 xsi_shell='$xsi_shell'
17400 lt_shell_append='$lt_shell_append'
17401
17402 # See if we are running on zsh, and set the options which allow our
17403 # commands through without removal of \ escapes INIT.
17404 if test -n "\${ZSH_VERSION+set}" ; then
17405 setopt NO_GLOB_SUBST
17406 fi
17407
17408
17409 PACKAGE='$PACKAGE'
17410 VERSION='$VERSION'
17411 TIMESTAMP='$TIMESTAMP'
17412 RM='$RM'
17413 ofile='$ofile'
17414
17415
17416
17417 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17418
17419 _ACEOF
17420
17421 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17422
17423 # Handling of arguments.
17424 for ac_config_target in $ac_config_targets
17425 do
17426 case $ac_config_target in
17427 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17428 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17429 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17430 "aarch64/.gdbinit") CONFIG_FILES="$CONFIG_FILES aarch64/.gdbinit:common/gdbinit.in" ;;
17431 "arm/.gdbinit") CONFIG_FILES="$CONFIG_FILES arm/.gdbinit:common/gdbinit.in" ;;
17432 "avr/.gdbinit") CONFIG_FILES="$CONFIG_FILES avr/.gdbinit:common/gdbinit.in" ;;
17433 "bfin/.gdbinit") CONFIG_FILES="$CONFIG_FILES bfin/.gdbinit:common/gdbinit.in" ;;
17434 "bpf/.gdbinit") CONFIG_FILES="$CONFIG_FILES bpf/.gdbinit:common/gdbinit.in" ;;
17435 "cr16/.gdbinit") CONFIG_FILES="$CONFIG_FILES cr16/.gdbinit:common/gdbinit.in" ;;
17436 "cris/.gdbinit") CONFIG_FILES="$CONFIG_FILES cris/.gdbinit:common/gdbinit.in" ;;
17437 "d10v/.gdbinit") CONFIG_FILES="$CONFIG_FILES d10v/.gdbinit:common/gdbinit.in" ;;
17438 "frv/.gdbinit") CONFIG_FILES="$CONFIG_FILES frv/.gdbinit:common/gdbinit.in" ;;
17439 "ft32/.gdbinit") CONFIG_FILES="$CONFIG_FILES ft32/.gdbinit:common/gdbinit.in" ;;
17440 "h8300/.gdbinit") CONFIG_FILES="$CONFIG_FILES h8300/.gdbinit:common/gdbinit.in" ;;
17441 "iq2000/.gdbinit") CONFIG_FILES="$CONFIG_FILES iq2000/.gdbinit:common/gdbinit.in" ;;
17442 "lm32/.gdbinit") CONFIG_FILES="$CONFIG_FILES lm32/.gdbinit:common/gdbinit.in" ;;
17443 "m32c/.gdbinit") CONFIG_FILES="$CONFIG_FILES m32c/.gdbinit:common/gdbinit.in" ;;
17444 "m32r/.gdbinit") CONFIG_FILES="$CONFIG_FILES m32r/.gdbinit:common/gdbinit.in" ;;
17445 "m68hc11/.gdbinit") CONFIG_FILES="$CONFIG_FILES m68hc11/.gdbinit:common/gdbinit.in" ;;
17446 "mcore/.gdbinit") CONFIG_FILES="$CONFIG_FILES mcore/.gdbinit:common/gdbinit.in" ;;
17447 "microblaze/.gdbinit") CONFIG_FILES="$CONFIG_FILES microblaze/.gdbinit:common/gdbinit.in" ;;
17448 "mips/.gdbinit") CONFIG_FILES="$CONFIG_FILES mips/.gdbinit:common/gdbinit.in" ;;
17449 "mn10300/.gdbinit") CONFIG_FILES="$CONFIG_FILES mn10300/.gdbinit:common/gdbinit.in" ;;
17450 "moxie/.gdbinit") CONFIG_FILES="$CONFIG_FILES moxie/.gdbinit:common/gdbinit.in" ;;
17451 "msp430/.gdbinit") CONFIG_FILES="$CONFIG_FILES msp430/.gdbinit:common/gdbinit.in" ;;
17452 "or1k/.gdbinit") CONFIG_FILES="$CONFIG_FILES or1k/.gdbinit:common/gdbinit.in" ;;
17453 "ppc/.gdbinit") CONFIG_FILES="$CONFIG_FILES ppc/.gdbinit:common/gdbinit.in" ;;
17454 "pru/.gdbinit") CONFIG_FILES="$CONFIG_FILES pru/.gdbinit:common/gdbinit.in" ;;
17455 "riscv/.gdbinit") CONFIG_FILES="$CONFIG_FILES riscv/.gdbinit:common/gdbinit.in" ;;
17456 "rl78/.gdbinit") CONFIG_FILES="$CONFIG_FILES rl78/.gdbinit:common/gdbinit.in" ;;
17457 "rx/.gdbinit") CONFIG_FILES="$CONFIG_FILES rx/.gdbinit:common/gdbinit.in" ;;
17458 "sh/.gdbinit") CONFIG_FILES="$CONFIG_FILES sh/.gdbinit:common/gdbinit.in" ;;
17459 "erc32/.gdbinit") CONFIG_FILES="$CONFIG_FILES erc32/.gdbinit:common/gdbinit.in" ;;
17460 "v850/.gdbinit") CONFIG_FILES="$CONFIG_FILES v850/.gdbinit:common/gdbinit.in" ;;
17461 "example-synacor/.gdbinit") CONFIG_FILES="$CONFIG_FILES example-synacor/.gdbinit:common/gdbinit.in" ;;
17462 "arch-subdir.mk") CONFIG_FILES="$CONFIG_FILES arch-subdir.mk" ;;
17463 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17464 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
17465
17466 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17467 esac
17468 done
17469
17470
17471 # If the user did not use the arguments to specify the items to instantiate,
17472 # then the envvar interface is used. Set only those that are not.
17473 # We use the long form for the default assignment because of an extremely
17474 # bizarre bug on SunOS 4.1.3.
17475 if $ac_need_defaults; then
17476 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17477 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17478 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17479 fi
17480
17481 # Have a temporary directory for convenience. Make it in the build tree
17482 # simply because there is no reason against having it here, and in addition,
17483 # creating and moving files from /tmp can sometimes cause problems.
17484 # Hook for its removal unless debugging.
17485 # Note that there is a small window in which the directory will not be cleaned:
17486 # after its creation but before its name has been assigned to `$tmp'.
17487 $debug ||
17488 {
17489 tmp= ac_tmp=
17490 trap 'exit_status=$?
17491 : "${ac_tmp:=$tmp}"
17492 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17493 ' 0
17494 trap 'as_fn_exit 1' 1 2 13 15
17495 }
17496 # Create a (secure) tmp directory for tmp files.
17497
17498 {
17499 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17500 test -d "$tmp"
17501 } ||
17502 {
17503 tmp=./conf$$-$RANDOM
17504 (umask 077 && mkdir "$tmp")
17505 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17506 ac_tmp=$tmp
17507
17508 # Set up the scripts for CONFIG_FILES section.
17509 # No need to generate them if there are no CONFIG_FILES.
17510 # This happens for instance with `./config.status config.h'.
17511 if test -n "$CONFIG_FILES"; then
17512
17513
17514 ac_cr=`echo X | tr X '\015'`
17515 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17516 # But we know of no other shell where ac_cr would be empty at this
17517 # point, so we can use a bashism as a fallback.
17518 if test "x$ac_cr" = x; then
17519 eval ac_cr=\$\'\\r\'
17520 fi
17521 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17522 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17523 ac_cs_awk_cr='\\r'
17524 else
17525 ac_cs_awk_cr=$ac_cr
17526 fi
17527
17528 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17529 _ACEOF
17530
17531
17532 {
17533 echo "cat >conf$$subs.awk <<_ACEOF" &&
17534 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17535 echo "_ACEOF"
17536 } >conf$$subs.sh ||
17537 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17538 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17539 ac_delim='%!_!# '
17540 for ac_last_try in false false false false false :; do
17541 . ./conf$$subs.sh ||
17542 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17543
17544 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17545 if test $ac_delim_n = $ac_delim_num; then
17546 break
17547 elif $ac_last_try; then
17548 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17549 else
17550 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17551 fi
17552 done
17553 rm -f conf$$subs.sh
17554
17555 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17556 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17557 _ACEOF
17558 sed -n '
17559 h
17560 s/^/S["/; s/!.*/"]=/
17561 p
17562 g
17563 s/^[^!]*!//
17564 :repl
17565 t repl
17566 s/'"$ac_delim"'$//
17567 t delim
17568 :nl
17569 h
17570 s/\(.\{148\}\)..*/\1/
17571 t more1
17572 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17573 p
17574 n
17575 b repl
17576 :more1
17577 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17578 p
17579 g
17580 s/.\{148\}//
17581 t nl
17582 :delim
17583 h
17584 s/\(.\{148\}\)..*/\1/
17585 t more2
17586 s/["\\]/\\&/g; s/^/"/; s/$/"/
17587 p
17588 b
17589 :more2
17590 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17591 p
17592 g
17593 s/.\{148\}//
17594 t delim
17595 ' <conf$$subs.awk | sed '
17596 /^[^""]/{
17597 N
17598 s/\n//
17599 }
17600 ' >>$CONFIG_STATUS || ac_write_fail=1
17601 rm -f conf$$subs.awk
17602 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17603 _ACAWK
17604 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17605 for (key in S) S_is_set[key] = 1
17606 FS = "\a"
17607
17608 }
17609 {
17610 line = $ 0
17611 nfields = split(line, field, "@")
17612 substed = 0
17613 len = length(field[1])
17614 for (i = 2; i < nfields; i++) {
17615 key = field[i]
17616 keylen = length(key)
17617 if (S_is_set[key]) {
17618 value = S[key]
17619 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17620 len += length(value) + length(field[++i])
17621 substed = 1
17622 } else
17623 len += 1 + keylen
17624 }
17625
17626 print line
17627 }
17628
17629 _ACAWK
17630 _ACEOF
17631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17632 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17633 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17634 else
17635 cat
17636 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17637 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17638 _ACEOF
17639
17640 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17641 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17642 # trailing colons and then remove the whole line if VPATH becomes empty
17643 # (actually we leave an empty line to preserve line numbers).
17644 if test "x$srcdir" = x.; then
17645 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17646 h
17647 s///
17648 s/^/:/
17649 s/[ ]*$/:/
17650 s/:\$(srcdir):/:/g
17651 s/:\${srcdir}:/:/g
17652 s/:@srcdir@:/:/g
17653 s/^:*//
17654 s/:*$//
17655 x
17656 s/\(=[ ]*\).*/\1/
17657 G
17658 s/\n//
17659 s/^[^=]*=[ ]*$//
17660 }'
17661 fi
17662
17663 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17664 fi # test -n "$CONFIG_FILES"
17665
17666 # Set up the scripts for CONFIG_HEADERS section.
17667 # No need to generate them if there are no CONFIG_HEADERS.
17668 # This happens for instance with `./config.status Makefile'.
17669 if test -n "$CONFIG_HEADERS"; then
17670 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17671 BEGIN {
17672 _ACEOF
17673
17674 # Transform confdefs.h into an awk script `defines.awk', embedded as
17675 # here-document in config.status, that substitutes the proper values into
17676 # config.h.in to produce config.h.
17677
17678 # Create a delimiter string that does not exist in confdefs.h, to ease
17679 # handling of long lines.
17680 ac_delim='%!_!# '
17681 for ac_last_try in false false :; do
17682 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17683 if test -z "$ac_tt"; then
17684 break
17685 elif $ac_last_try; then
17686 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17687 else
17688 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17689 fi
17690 done
17691
17692 # For the awk script, D is an array of macro values keyed by name,
17693 # likewise P contains macro parameters if any. Preserve backslash
17694 # newline sequences.
17695
17696 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17697 sed -n '
17698 s/.\{148\}/&'"$ac_delim"'/g
17699 t rset
17700 :rset
17701 s/^[ ]*#[ ]*define[ ][ ]*/ /
17702 t def
17703 d
17704 :def
17705 s/\\$//
17706 t bsnl
17707 s/["\\]/\\&/g
17708 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17709 D["\1"]=" \3"/p
17710 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17711 d
17712 :bsnl
17713 s/["\\]/\\&/g
17714 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17715 D["\1"]=" \3\\\\\\n"\\/p
17716 t cont
17717 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17718 t cont
17719 d
17720 :cont
17721 n
17722 s/.\{148\}/&'"$ac_delim"'/g
17723 t clear
17724 :clear
17725 s/\\$//
17726 t bsnlc
17727 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17728 d
17729 :bsnlc
17730 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17731 b cont
17732 ' <confdefs.h | sed '
17733 s/'"$ac_delim"'/"\\\
17734 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17735
17736 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17737 for (key in D) D_is_set[key] = 1
17738 FS = "\a"
17739 }
17740 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17741 line = \$ 0
17742 split(line, arg, " ")
17743 if (arg[1] == "#") {
17744 defundef = arg[2]
17745 mac1 = arg[3]
17746 } else {
17747 defundef = substr(arg[1], 2)
17748 mac1 = arg[2]
17749 }
17750 split(mac1, mac2, "(") #)
17751 macro = mac2[1]
17752 prefix = substr(line, 1, index(line, defundef) - 1)
17753 if (D_is_set[macro]) {
17754 # Preserve the white space surrounding the "#".
17755 print prefix "define", macro P[macro] D[macro]
17756 next
17757 } else {
17758 # Replace #undef with comments. This is necessary, for example,
17759 # in the case of _POSIX_SOURCE, which is predefined and required
17760 # on some systems where configure will not decide to define it.
17761 if (defundef == "undef") {
17762 print "/*", prefix defundef, macro, "*/"
17763 next
17764 }
17765 }
17766 }
17767 { print }
17768 _ACAWK
17769 _ACEOF
17770 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17771 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17772 fi # test -n "$CONFIG_HEADERS"
17773
17774
17775 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17776 shift
17777 for ac_tag
17778 do
17779 case $ac_tag in
17780 :[FHLC]) ac_mode=$ac_tag; continue;;
17781 esac
17782 case $ac_mode$ac_tag in
17783 :[FHL]*:*);;
17784 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17785 :[FH]-) ac_tag=-:-;;
17786 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17787 esac
17788 ac_save_IFS=$IFS
17789 IFS=:
17790 set x $ac_tag
17791 IFS=$ac_save_IFS
17792 shift
17793 ac_file=$1
17794 shift
17795
17796 case $ac_mode in
17797 :L) ac_source=$1;;
17798 :[FH])
17799 ac_file_inputs=
17800 for ac_f
17801 do
17802 case $ac_f in
17803 -) ac_f="$ac_tmp/stdin";;
17804 *) # Look for the file first in the build tree, then in the source tree
17805 # (if the path is not absolute). The absolute path cannot be DOS-style,
17806 # because $ac_f cannot contain `:'.
17807 test -f "$ac_f" ||
17808 case $ac_f in
17809 [\\/$]*) false;;
17810 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17811 esac ||
17812 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17813 esac
17814 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17815 as_fn_append ac_file_inputs " '$ac_f'"
17816 done
17817
17818 # Let's still pretend it is `configure' which instantiates (i.e., don't
17819 # use $as_me), people would be surprised to read:
17820 # /* config.h. Generated by config.status. */
17821 configure_input='Generated from '`
17822 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17823 `' by configure.'
17824 if test x"$ac_file" != x-; then
17825 configure_input="$ac_file. $configure_input"
17826 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17827 $as_echo "$as_me: creating $ac_file" >&6;}
17828 fi
17829 # Neutralize special characters interpreted by sed in replacement strings.
17830 case $configure_input in #(
17831 *\&* | *\|* | *\\* )
17832 ac_sed_conf_input=`$as_echo "$configure_input" |
17833 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17834 *) ac_sed_conf_input=$configure_input;;
17835 esac
17836
17837 case $ac_tag in
17838 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17839 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17840 esac
17841 ;;
17842 esac
17843
17844 ac_dir=`$as_dirname -- "$ac_file" ||
17845 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17846 X"$ac_file" : 'X\(//\)[^/]' \| \
17847 X"$ac_file" : 'X\(//\)$' \| \
17848 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17849 $as_echo X"$ac_file" |
17850 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17851 s//\1/
17852 q
17853 }
17854 /^X\(\/\/\)[^/].*/{
17855 s//\1/
17856 q
17857 }
17858 /^X\(\/\/\)$/{
17859 s//\1/
17860 q
17861 }
17862 /^X\(\/\).*/{
17863 s//\1/
17864 q
17865 }
17866 s/.*/./; q'`
17867 as_dir="$ac_dir"; as_fn_mkdir_p
17868 ac_builddir=.
17869
17870 case "$ac_dir" in
17871 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17872 *)
17873 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17874 # A ".." for each directory in $ac_dir_suffix.
17875 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17876 case $ac_top_builddir_sub in
17877 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17878 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17879 esac ;;
17880 esac
17881 ac_abs_top_builddir=$ac_pwd
17882 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17883 # for backward compatibility:
17884 ac_top_builddir=$ac_top_build_prefix
17885
17886 case $srcdir in
17887 .) # We are building in place.
17888 ac_srcdir=.
17889 ac_top_srcdir=$ac_top_builddir_sub
17890 ac_abs_top_srcdir=$ac_pwd ;;
17891 [\\/]* | ?:[\\/]* ) # Absolute name.
17892 ac_srcdir=$srcdir$ac_dir_suffix;
17893 ac_top_srcdir=$srcdir
17894 ac_abs_top_srcdir=$srcdir ;;
17895 *) # Relative name.
17896 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17897 ac_top_srcdir=$ac_top_build_prefix$srcdir
17898 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17899 esac
17900 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17901
17902
17903 case $ac_mode in
17904 :F)
17905 #
17906 # CONFIG_FILE
17907 #
17908
17909 case $INSTALL in
17910 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17911 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17912 esac
17913 ac_MKDIR_P=$MKDIR_P
17914 case $MKDIR_P in
17915 [\\/$]* | ?:[\\/]* ) ;;
17916 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17917 esac
17918 _ACEOF
17919
17920 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17921 # If the template does not know about datarootdir, expand it.
17922 # FIXME: This hack should be removed a few years after 2.60.
17923 ac_datarootdir_hack=; ac_datarootdir_seen=
17924 ac_sed_dataroot='
17925 /datarootdir/ {
17926 p
17927 q
17928 }
17929 /@datadir@/p
17930 /@docdir@/p
17931 /@infodir@/p
17932 /@localedir@/p
17933 /@mandir@/p'
17934 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17935 *datarootdir*) ac_datarootdir_seen=yes;;
17936 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17938 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17939 _ACEOF
17940 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17941 ac_datarootdir_hack='
17942 s&@datadir@&$datadir&g
17943 s&@docdir@&$docdir&g
17944 s&@infodir@&$infodir&g
17945 s&@localedir@&$localedir&g
17946 s&@mandir@&$mandir&g
17947 s&\\\${datarootdir}&$datarootdir&g' ;;
17948 esac
17949 _ACEOF
17950
17951 # Neutralize VPATH when `$srcdir' = `.'.
17952 # Shell code in configure.ac might set extrasub.
17953 # FIXME: do we really want to maintain this feature?
17954 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17955 ac_sed_extra="$ac_vpsub
17956 $extrasub
17957 _ACEOF
17958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17959 :t
17960 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17961 s|@configure_input@|$ac_sed_conf_input|;t t
17962 s&@top_builddir@&$ac_top_builddir_sub&;t t
17963 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17964 s&@srcdir@&$ac_srcdir&;t t
17965 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17966 s&@top_srcdir@&$ac_top_srcdir&;t t
17967 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17968 s&@builddir@&$ac_builddir&;t t
17969 s&@abs_builddir@&$ac_abs_builddir&;t t
17970 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17971 s&@INSTALL@&$ac_INSTALL&;t t
17972 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17973 $ac_datarootdir_hack
17974 "
17975 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17976 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17977
17978 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17979 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17980 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17981 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17983 which seems to be undefined. Please make sure it is defined" >&5
17984 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17985 which seems to be undefined. Please make sure it is defined" >&2;}
17986
17987 rm -f "$ac_tmp/stdin"
17988 case $ac_file in
17989 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17990 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17991 esac \
17992 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17993 ;;
17994 :H)
17995 #
17996 # CONFIG_HEADER
17997 #
17998 if test x"$ac_file" != x-; then
17999 {
18000 $as_echo "/* $configure_input */" \
18001 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18002 } >"$ac_tmp/config.h" \
18003 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18004 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18005 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18006 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18007 else
18008 rm -f "$ac_file"
18009 mv "$ac_tmp/config.h" "$ac_file" \
18010 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18011 fi
18012 else
18013 $as_echo "/* $configure_input */" \
18014 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18015 || as_fn_error $? "could not create -" "$LINENO" 5
18016 fi
18017 # Compute "$ac_file"'s index in $config_headers.
18018 _am_arg="$ac_file"
18019 _am_stamp_count=1
18020 for _am_header in $config_headers :; do
18021 case $_am_header in
18022 $_am_arg | $_am_arg:* )
18023 break ;;
18024 * )
18025 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18026 esac
18027 done
18028 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18029 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18030 X"$_am_arg" : 'X\(//\)[^/]' \| \
18031 X"$_am_arg" : 'X\(//\)$' \| \
18032 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18033 $as_echo X"$_am_arg" |
18034 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18035 s//\1/
18036 q
18037 }
18038 /^X\(\/\/\)[^/].*/{
18039 s//\1/
18040 q
18041 }
18042 /^X\(\/\/\)$/{
18043 s//\1/
18044 q
18045 }
18046 /^X\(\/\).*/{
18047 s//\1/
18048 q
18049 }
18050 s/.*/./; q'`/stamp-h$_am_stamp_count
18051 ;;
18052
18053 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18054 $as_echo "$as_me: executing $ac_file commands" >&6;}
18055 ;;
18056 esac
18057
18058
18059 case $ac_file$ac_mode in
18060 "libtool":C)
18061
18062 # See if we are running on zsh, and set the options which allow our
18063 # commands through without removal of \ escapes.
18064 if test -n "${ZSH_VERSION+set}" ; then
18065 setopt NO_GLOB_SUBST
18066 fi
18067
18068 cfgfile="${ofile}T"
18069 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18070 $RM "$cfgfile"
18071
18072 cat <<_LT_EOF >> "$cfgfile"
18073 #! $SHELL
18074
18075 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18076 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18077 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18078 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18079 #
18080 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18081 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18082 # Written by Gordon Matzigkeit, 1996
18083 #
18084 # This file is part of GNU Libtool.
18085 #
18086 # GNU Libtool is free software; you can redistribute it and/or
18087 # modify it under the terms of the GNU General Public License as
18088 # published by the Free Software Foundation; either version 2 of
18089 # the License, or (at your option) any later version.
18090 #
18091 # As a special exception to the GNU General Public License,
18092 # if you distribute this file as part of a program or library that
18093 # is built using GNU Libtool, you may include this file under the
18094 # same distribution terms that you use for the rest of that program.
18095 #
18096 # GNU Libtool is distributed in the hope that it will be useful,
18097 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18098 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18099 # GNU General Public License for more details.
18100 #
18101 # You should have received a copy of the GNU General Public License
18102 # along with GNU Libtool; see the file COPYING. If not, a copy
18103 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18104 # obtained by writing to the Free Software Foundation, Inc.,
18105 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18106
18107
18108 # The names of the tagged configurations supported by this script.
18109 available_tags=""
18110
18111 # ### BEGIN LIBTOOL CONFIG
18112
18113 # Which release of libtool.m4 was used?
18114 macro_version=$macro_version
18115 macro_revision=$macro_revision
18116
18117 # Whether or not to build shared libraries.
18118 build_libtool_libs=$enable_shared
18119
18120 # Whether or not to build static libraries.
18121 build_old_libs=$enable_static
18122
18123 # What type of objects to build.
18124 pic_mode=$pic_mode
18125
18126 # Whether or not to optimize for fast installation.
18127 fast_install=$enable_fast_install
18128
18129 # Shell to use when invoking shell scripts.
18130 SHELL=$lt_SHELL
18131
18132 # An echo program that protects backslashes.
18133 ECHO=$lt_ECHO
18134
18135 # The host system.
18136 host_alias=$host_alias
18137 host=$host
18138 host_os=$host_os
18139
18140 # The build system.
18141 build_alias=$build_alias
18142 build=$build
18143 build_os=$build_os
18144
18145 # A sed program that does not truncate output.
18146 SED=$lt_SED
18147
18148 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18149 Xsed="\$SED -e 1s/^X//"
18150
18151 # A grep program that handles long lines.
18152 GREP=$lt_GREP
18153
18154 # An ERE matcher.
18155 EGREP=$lt_EGREP
18156
18157 # A literal string matcher.
18158 FGREP=$lt_FGREP
18159
18160 # A BSD- or MS-compatible name lister.
18161 NM=$lt_NM
18162
18163 # Whether we need soft or hard links.
18164 LN_S=$lt_LN_S
18165
18166 # What is the maximum length of a command?
18167 max_cmd_len=$max_cmd_len
18168
18169 # Object file suffix (normally "o").
18170 objext=$ac_objext
18171
18172 # Executable file suffix (normally "").
18173 exeext=$exeext
18174
18175 # whether the shell understands "unset".
18176 lt_unset=$lt_unset
18177
18178 # turn spaces into newlines.
18179 SP2NL=$lt_lt_SP2NL
18180
18181 # turn newlines into spaces.
18182 NL2SP=$lt_lt_NL2SP
18183
18184 # An object symbol dumper.
18185 OBJDUMP=$lt_OBJDUMP
18186
18187 # Method to check whether dependent libraries are shared objects.
18188 deplibs_check_method=$lt_deplibs_check_method
18189
18190 # Command to use when deplibs_check_method == "file_magic".
18191 file_magic_cmd=$lt_file_magic_cmd
18192
18193 # The archiver.
18194 AR=$lt_AR
18195 AR_FLAGS=$lt_AR_FLAGS
18196
18197 # A symbol stripping program.
18198 STRIP=$lt_STRIP
18199
18200 # Commands used to install an old-style archive.
18201 RANLIB=$lt_RANLIB
18202 old_postinstall_cmds=$lt_old_postinstall_cmds
18203 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18204
18205 # Whether to use a lock for old archive extraction.
18206 lock_old_archive_extraction=$lock_old_archive_extraction
18207
18208 # A C compiler.
18209 LTCC=$lt_CC
18210
18211 # LTCC compiler flags.
18212 LTCFLAGS=$lt_CFLAGS
18213
18214 # Take the output of nm and produce a listing of raw symbols and C names.
18215 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18216
18217 # Transform the output of nm in a proper C declaration.
18218 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18219
18220 # Transform the output of nm in a C name address pair.
18221 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18222
18223 # Transform the output of nm in a C name address pair when lib prefix is needed.
18224 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18225
18226 # The name of the directory that contains temporary libtool files.
18227 objdir=$objdir
18228
18229 # Used to examine libraries when file_magic_cmd begins with "file".
18230 MAGIC_CMD=$MAGIC_CMD
18231
18232 # Must we lock files when doing compilation?
18233 need_locks=$lt_need_locks
18234
18235 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18236 DSYMUTIL=$lt_DSYMUTIL
18237
18238 # Tool to change global to local symbols on Mac OS X.
18239 NMEDIT=$lt_NMEDIT
18240
18241 # Tool to manipulate fat objects and archives on Mac OS X.
18242 LIPO=$lt_LIPO
18243
18244 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18245 OTOOL=$lt_OTOOL
18246
18247 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18248 OTOOL64=$lt_OTOOL64
18249
18250 # Old archive suffix (normally "a").
18251 libext=$libext
18252
18253 # Shared library suffix (normally ".so").
18254 shrext_cmds=$lt_shrext_cmds
18255
18256 # The commands to extract the exported symbol list from a shared archive.
18257 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18258
18259 # Variables whose values should be saved in libtool wrapper scripts and
18260 # restored at link time.
18261 variables_saved_for_relink=$lt_variables_saved_for_relink
18262
18263 # Do we need the "lib" prefix for modules?
18264 need_lib_prefix=$need_lib_prefix
18265
18266 # Do we need a version for libraries?
18267 need_version=$need_version
18268
18269 # Library versioning type.
18270 version_type=$version_type
18271
18272 # Shared library runtime path variable.
18273 runpath_var=$runpath_var
18274
18275 # Shared library path variable.
18276 shlibpath_var=$shlibpath_var
18277
18278 # Is shlibpath searched before the hard-coded library search path?
18279 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18280
18281 # Format of library name prefix.
18282 libname_spec=$lt_libname_spec
18283
18284 # List of archive names. First name is the real one, the rest are links.
18285 # The last name is the one that the linker finds with -lNAME
18286 library_names_spec=$lt_library_names_spec
18287
18288 # The coded name of the library, if different from the real name.
18289 soname_spec=$lt_soname_spec
18290
18291 # Permission mode override for installation of shared libraries.
18292 install_override_mode=$lt_install_override_mode
18293
18294 # Command to use after installation of a shared archive.
18295 postinstall_cmds=$lt_postinstall_cmds
18296
18297 # Command to use after uninstallation of a shared archive.
18298 postuninstall_cmds=$lt_postuninstall_cmds
18299
18300 # Commands used to finish a libtool library installation in a directory.
18301 finish_cmds=$lt_finish_cmds
18302
18303 # As "finish_cmds", except a single script fragment to be evaled but
18304 # not shown.
18305 finish_eval=$lt_finish_eval
18306
18307 # Whether we should hardcode library paths into libraries.
18308 hardcode_into_libs=$hardcode_into_libs
18309
18310 # Compile-time system search path for libraries.
18311 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18312
18313 # Run-time system search path for libraries.
18314 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18315
18316 # Whether dlopen is supported.
18317 dlopen_support=$enable_dlopen
18318
18319 # Whether dlopen of programs is supported.
18320 dlopen_self=$enable_dlopen_self
18321
18322 # Whether dlopen of statically linked programs is supported.
18323 dlopen_self_static=$enable_dlopen_self_static
18324
18325 # Commands to strip libraries.
18326 old_striplib=$lt_old_striplib
18327 striplib=$lt_striplib
18328
18329
18330 # The linker used to build libraries.
18331 LD=$lt_LD
18332
18333 # How to create reloadable object files.
18334 reload_flag=$lt_reload_flag
18335 reload_cmds=$lt_reload_cmds
18336
18337 # Commands used to build an old-style archive.
18338 old_archive_cmds=$lt_old_archive_cmds
18339
18340 # A language specific compiler.
18341 CC=$lt_compiler
18342
18343 # Is the compiler the GNU compiler?
18344 with_gcc=$GCC
18345
18346 # Compiler flag to turn off builtin functions.
18347 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18348
18349 # How to pass a linker flag through the compiler.
18350 wl=$lt_lt_prog_compiler_wl
18351
18352 # Additional compiler flags for building library objects.
18353 pic_flag=$lt_lt_prog_compiler_pic
18354
18355 # Compiler flag to prevent dynamic linking.
18356 link_static_flag=$lt_lt_prog_compiler_static
18357
18358 # Does compiler simultaneously support -c and -o options?
18359 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18360
18361 # Whether or not to add -lc for building shared libraries.
18362 build_libtool_need_lc=$archive_cmds_need_lc
18363
18364 # Whether or not to disallow shared libs when runtime libs are static.
18365 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18366
18367 # Compiler flag to allow reflexive dlopens.
18368 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18369
18370 # Compiler flag to generate shared objects directly from archives.
18371 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18372
18373 # Whether the compiler copes with passing no objects directly.
18374 compiler_needs_object=$lt_compiler_needs_object
18375
18376 # Create an old-style archive from a shared archive.
18377 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18378
18379 # Create a temporary old-style archive to link instead of a shared archive.
18380 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18381
18382 # Commands used to build a shared archive.
18383 archive_cmds=$lt_archive_cmds
18384 archive_expsym_cmds=$lt_archive_expsym_cmds
18385
18386 # Commands used to build a loadable module if different from building
18387 # a shared archive.
18388 module_cmds=$lt_module_cmds
18389 module_expsym_cmds=$lt_module_expsym_cmds
18390
18391 # Whether we are building with GNU ld or not.
18392 with_gnu_ld=$lt_with_gnu_ld
18393
18394 # Flag that allows shared libraries with undefined symbols to be built.
18395 allow_undefined_flag=$lt_allow_undefined_flag
18396
18397 # Flag that enforces no undefined symbols.
18398 no_undefined_flag=$lt_no_undefined_flag
18399
18400 # Flag to hardcode \$libdir into a binary during linking.
18401 # This must work even if \$libdir does not exist
18402 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18403
18404 # If ld is used when linking, flag to hardcode \$libdir into a binary
18405 # during linking. This must work even if \$libdir does not exist.
18406 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18407
18408 # Whether we need a single "-rpath" flag with a separated argument.
18409 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18410
18411 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18412 # DIR into the resulting binary.
18413 hardcode_direct=$hardcode_direct
18414
18415 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18416 # DIR into the resulting binary and the resulting library dependency is
18417 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18418 # library is relocated.
18419 hardcode_direct_absolute=$hardcode_direct_absolute
18420
18421 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18422 # into the resulting binary.
18423 hardcode_minus_L=$hardcode_minus_L
18424
18425 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18426 # into the resulting binary.
18427 hardcode_shlibpath_var=$hardcode_shlibpath_var
18428
18429 # Set to "yes" if building a shared library automatically hardcodes DIR
18430 # into the library and all subsequent libraries and executables linked
18431 # against it.
18432 hardcode_automatic=$hardcode_automatic
18433
18434 # Set to yes if linker adds runtime paths of dependent libraries
18435 # to runtime path list.
18436 inherit_rpath=$inherit_rpath
18437
18438 # Whether libtool must link a program against all its dependency libraries.
18439 link_all_deplibs=$link_all_deplibs
18440
18441 # Fix the shell variable \$srcfile for the compiler.
18442 fix_srcfile_path=$lt_fix_srcfile_path
18443
18444 # Set to "yes" if exported symbols are required.
18445 always_export_symbols=$always_export_symbols
18446
18447 # The commands to list exported symbols.
18448 export_symbols_cmds=$lt_export_symbols_cmds
18449
18450 # Symbols that should not be listed in the preloaded symbols.
18451 exclude_expsyms=$lt_exclude_expsyms
18452
18453 # Symbols that must always be exported.
18454 include_expsyms=$lt_include_expsyms
18455
18456 # Commands necessary for linking programs (against libraries) with templates.
18457 prelink_cmds=$lt_prelink_cmds
18458
18459 # Specify filename containing input files.
18460 file_list_spec=$lt_file_list_spec
18461
18462 # How to hardcode a shared library path into an executable.
18463 hardcode_action=$hardcode_action
18464
18465 # ### END LIBTOOL CONFIG
18466
18467 _LT_EOF
18468
18469 case $host_os in
18470 aix3*)
18471 cat <<\_LT_EOF >> "$cfgfile"
18472 # AIX sometimes has problems with the GCC collect2 program. For some
18473 # reason, if we set the COLLECT_NAMES environment variable, the problems
18474 # vanish in a puff of smoke.
18475 if test "X${COLLECT_NAMES+set}" != Xset; then
18476 COLLECT_NAMES=
18477 export COLLECT_NAMES
18478 fi
18479 _LT_EOF
18480 ;;
18481 esac
18482
18483
18484 ltmain="$ac_aux_dir/ltmain.sh"
18485
18486
18487 # We use sed instead of cat because bash on DJGPP gets confused if
18488 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18489 # text mode, it properly converts lines to CR/LF. This bash problem
18490 # is reportedly fixed, but why not run on old versions too?
18491 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18492 || (rm -f "$cfgfile"; exit 1)
18493
18494 case $xsi_shell in
18495 yes)
18496 cat << \_LT_EOF >> "$cfgfile"
18497
18498 # func_dirname file append nondir_replacement
18499 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18500 # otherwise set result to NONDIR_REPLACEMENT.
18501 func_dirname ()
18502 {
18503 case ${1} in
18504 */*) func_dirname_result="${1%/*}${2}" ;;
18505 * ) func_dirname_result="${3}" ;;
18506 esac
18507 }
18508
18509 # func_basename file
18510 func_basename ()
18511 {
18512 func_basename_result="${1##*/}"
18513 }
18514
18515 # func_dirname_and_basename file append nondir_replacement
18516 # perform func_basename and func_dirname in a single function
18517 # call:
18518 # dirname: Compute the dirname of FILE. If nonempty,
18519 # add APPEND to the result, otherwise set result
18520 # to NONDIR_REPLACEMENT.
18521 # value returned in "$func_dirname_result"
18522 # basename: Compute filename of FILE.
18523 # value retuned in "$func_basename_result"
18524 # Implementation must be kept synchronized with func_dirname
18525 # and func_basename. For efficiency, we do not delegate to
18526 # those functions but instead duplicate the functionality here.
18527 func_dirname_and_basename ()
18528 {
18529 case ${1} in
18530 */*) func_dirname_result="${1%/*}${2}" ;;
18531 * ) func_dirname_result="${3}" ;;
18532 esac
18533 func_basename_result="${1##*/}"
18534 }
18535
18536 # func_stripname prefix suffix name
18537 # strip PREFIX and SUFFIX off of NAME.
18538 # PREFIX and SUFFIX must not contain globbing or regex special
18539 # characters, hashes, percent signs, but SUFFIX may contain a leading
18540 # dot (in which case that matches only a dot).
18541 func_stripname ()
18542 {
18543 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18544 # positional parameters, so assign one to ordinary parameter first.
18545 func_stripname_result=${3}
18546 func_stripname_result=${func_stripname_result#"${1}"}
18547 func_stripname_result=${func_stripname_result%"${2}"}
18548 }
18549
18550 # func_opt_split
18551 func_opt_split ()
18552 {
18553 func_opt_split_opt=${1%%=*}
18554 func_opt_split_arg=${1#*=}
18555 }
18556
18557 # func_lo2o object
18558 func_lo2o ()
18559 {
18560 case ${1} in
18561 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18562 *) func_lo2o_result=${1} ;;
18563 esac
18564 }
18565
18566 # func_xform libobj-or-source
18567 func_xform ()
18568 {
18569 func_xform_result=${1%.*}.lo
18570 }
18571
18572 # func_arith arithmetic-term...
18573 func_arith ()
18574 {
18575 func_arith_result=$(( $* ))
18576 }
18577
18578 # func_len string
18579 # STRING may not start with a hyphen.
18580 func_len ()
18581 {
18582 func_len_result=${#1}
18583 }
18584
18585 _LT_EOF
18586 ;;
18587 *) # Bourne compatible functions.
18588 cat << \_LT_EOF >> "$cfgfile"
18589
18590 # func_dirname file append nondir_replacement
18591 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18592 # otherwise set result to NONDIR_REPLACEMENT.
18593 func_dirname ()
18594 {
18595 # Extract subdirectory from the argument.
18596 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18597 if test "X$func_dirname_result" = "X${1}"; then
18598 func_dirname_result="${3}"
18599 else
18600 func_dirname_result="$func_dirname_result${2}"
18601 fi
18602 }
18603
18604 # func_basename file
18605 func_basename ()
18606 {
18607 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18608 }
18609
18610
18611 # func_stripname prefix suffix name
18612 # strip PREFIX and SUFFIX off of NAME.
18613 # PREFIX and SUFFIX must not contain globbing or regex special
18614 # characters, hashes, percent signs, but SUFFIX may contain a leading
18615 # dot (in which case that matches only a dot).
18616 # func_strip_suffix prefix name
18617 func_stripname ()
18618 {
18619 case ${2} in
18620 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18621 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18622 esac
18623 }
18624
18625 # sed scripts:
18626 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18627 my_sed_long_arg='1s/^-[^=]*=//'
18628
18629 # func_opt_split
18630 func_opt_split ()
18631 {
18632 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18633 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18634 }
18635
18636 # func_lo2o object
18637 func_lo2o ()
18638 {
18639 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18640 }
18641
18642 # func_xform libobj-or-source
18643 func_xform ()
18644 {
18645 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18646 }
18647
18648 # func_arith arithmetic-term...
18649 func_arith ()
18650 {
18651 func_arith_result=`expr "$@"`
18652 }
18653
18654 # func_len string
18655 # STRING may not start with a hyphen.
18656 func_len ()
18657 {
18658 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18659 }
18660
18661 _LT_EOF
18662 esac
18663
18664 case $lt_shell_append in
18665 yes)
18666 cat << \_LT_EOF >> "$cfgfile"
18667
18668 # func_append var value
18669 # Append VALUE to the end of shell variable VAR.
18670 func_append ()
18671 {
18672 eval "$1+=\$2"
18673 }
18674 _LT_EOF
18675 ;;
18676 *)
18677 cat << \_LT_EOF >> "$cfgfile"
18678
18679 # func_append var value
18680 # Append VALUE to the end of shell variable VAR.
18681 func_append ()
18682 {
18683 eval "$1=\$$1\$2"
18684 }
18685
18686 _LT_EOF
18687 ;;
18688 esac
18689
18690
18691 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18692 || (rm -f "$cfgfile"; exit 1)
18693
18694 mv -f "$cfgfile" "$ofile" ||
18695 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18696 chmod +x "$ofile"
18697
18698 ;;
18699 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18700 # Older Autoconf quotes --file arguments for eval, but not when files
18701 # are listed without --file. Let's play safe and only enable the eval
18702 # if we detect the quoting.
18703 case $CONFIG_FILES in
18704 *\'*) eval set x "$CONFIG_FILES" ;;
18705 *) set x $CONFIG_FILES ;;
18706 esac
18707 shift
18708 for mf
18709 do
18710 # Strip MF so we end up with the name of the file.
18711 mf=`echo "$mf" | sed -e 's/:.*$//'`
18712 # Check whether this is an Automake generated Makefile or not.
18713 # We used to match only the files named 'Makefile.in', but
18714 # some people rename them; so instead we look at the file content.
18715 # Grep'ing the first line is not enough: some people post-process
18716 # each Makefile.in and add a new line on top of each file to say so.
18717 # Grep'ing the whole file is not good either: AIX grep has a line
18718 # limit of 2048, but all sed's we know have understand at least 4000.
18719 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18720 dirpart=`$as_dirname -- "$mf" ||
18721 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18722 X"$mf" : 'X\(//\)[^/]' \| \
18723 X"$mf" : 'X\(//\)$' \| \
18724 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18725 $as_echo X"$mf" |
18726 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18727 s//\1/
18728 q
18729 }
18730 /^X\(\/\/\)[^/].*/{
18731 s//\1/
18732 q
18733 }
18734 /^X\(\/\/\)$/{
18735 s//\1/
18736 q
18737 }
18738 /^X\(\/\).*/{
18739 s//\1/
18740 q
18741 }
18742 s/.*/./; q'`
18743 else
18744 continue
18745 fi
18746 # Extract the definition of DEPDIR, am__include, and am__quote
18747 # from the Makefile without running 'make'.
18748 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18749 test -z "$DEPDIR" && continue
18750 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18751 test -z "$am__include" && continue
18752 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18753 # Find all dependency output files, they are included files with
18754 # $(DEPDIR) in their names. We invoke sed twice because it is the
18755 # simplest approach to changing $(DEPDIR) to its actual value in the
18756 # expansion.
18757 for file in `sed -n "
18758 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18759 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18760 # Make sure the directory exists.
18761 test -f "$dirpart/$file" && continue
18762 fdir=`$as_dirname -- "$file" ||
18763 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18764 X"$file" : 'X\(//\)[^/]' \| \
18765 X"$file" : 'X\(//\)$' \| \
18766 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18767 $as_echo X"$file" |
18768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18769 s//\1/
18770 q
18771 }
18772 /^X\(\/\/\)[^/].*/{
18773 s//\1/
18774 q
18775 }
18776 /^X\(\/\/\)$/{
18777 s//\1/
18778 q
18779 }
18780 /^X\(\/\).*/{
18781 s//\1/
18782 q
18783 }
18784 s/.*/./; q'`
18785 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18786 # echo "creating $dirpart/$file"
18787 echo '# dummy' > "$dirpart/$file"
18788 done
18789 done
18790 }
18791 ;;
18792
18793 esac
18794 done # for ac_tag
18795
18796
18797 as_fn_exit 0
18798 _ACEOF
18799 ac_clean_files=$ac_clean_files_save
18800
18801 test $ac_write_fail = 0 ||
18802 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18803
18804
18805 # configure is writing to config.log, and then calls config.status.
18806 # config.status does its own redirection, appending to config.log.
18807 # Unfortunately, on DOS this fails, as config.log is still kept open
18808 # by configure, so config.status won't be able to write to it; its
18809 # output is simply discarded. So we exec the FD to /dev/null,
18810 # effectively closing config.log, so it can be properly (re)opened and
18811 # appended to by config.status. When coming back to configure, we
18812 # need to make the FD available again.
18813 if test "$no_create" != yes; then
18814 ac_cs_success=:
18815 ac_config_status_args=
18816 test "$silent" = yes &&
18817 ac_config_status_args="$ac_config_status_args --quiet"
18818 exec 5>/dev/null
18819 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18820 exec 5>>config.log
18821 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18822 # would make configure fail if this is the last instruction.
18823 $ac_cs_success || as_fn_exit 1
18824 fi
18825
18826 #
18827 # CONFIG_SUBDIRS section.
18828 #
18829 if test "$no_recursion" != yes; then
18830
18831 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
18832 # so they do not pile up.
18833 ac_sub_configure_args=
18834 ac_prev=
18835 eval "set x $ac_configure_args"
18836 shift
18837 for ac_arg
18838 do
18839 if test -n "$ac_prev"; then
18840 ac_prev=
18841 continue
18842 fi
18843 case $ac_arg in
18844 -cache-file | --cache-file | --cache-fil | --cache-fi \
18845 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18846 ac_prev=cache_file ;;
18847 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18848 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18849 | --c=*)
18850 ;;
18851 --config-cache | -C)
18852 ;;
18853 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18854 ac_prev=srcdir ;;
18855 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18856 ;;
18857 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18858 ac_prev=prefix ;;
18859 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18860 ;;
18861 --disable-option-checking)
18862 ;;
18863 *)
18864 case $ac_arg in
18865 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18866 esac
18867 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
18868 esac
18869 done
18870
18871 # Always prepend --prefix to ensure using the same prefix
18872 # in subdir configurations.
18873 ac_arg="--prefix=$prefix"
18874 case $ac_arg in
18875 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18876 esac
18877 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
18878
18879 # Pass --silent
18880 if test "$silent" = yes; then
18881 ac_sub_configure_args="--silent $ac_sub_configure_args"
18882 fi
18883
18884 # Always prepend --disable-option-checking to silence warnings, since
18885 # different subdirs can have different --enable and --with options.
18886 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
18887
18888 ac_popdir=`pwd`
18889 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18890
18891 # Do not complain, so a configure script can configure whichever
18892 # parts of a large source tree are present.
18893 test -d "$srcdir/$ac_dir" || continue
18894
18895 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
18896 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
18897 $as_echo "$ac_msg" >&6
18898 as_dir="$ac_dir"; as_fn_mkdir_p
18899 ac_builddir=.
18900
18901 case "$ac_dir" in
18902 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18903 *)
18904 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18905 # A ".." for each directory in $ac_dir_suffix.
18906 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18907 case $ac_top_builddir_sub in
18908 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18909 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18910 esac ;;
18911 esac
18912 ac_abs_top_builddir=$ac_pwd
18913 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18914 # for backward compatibility:
18915 ac_top_builddir=$ac_top_build_prefix
18916
18917 case $srcdir in
18918 .) # We are building in place.
18919 ac_srcdir=.
18920 ac_top_srcdir=$ac_top_builddir_sub
18921 ac_abs_top_srcdir=$ac_pwd ;;
18922 [\\/]* | ?:[\\/]* ) # Absolute name.
18923 ac_srcdir=$srcdir$ac_dir_suffix;
18924 ac_top_srcdir=$srcdir
18925 ac_abs_top_srcdir=$srcdir ;;
18926 *) # Relative name.
18927 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18928 ac_top_srcdir=$ac_top_build_prefix$srcdir
18929 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18930 esac
18931 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18932
18933
18934 cd "$ac_dir"
18935
18936 # Check for guested configure; otherwise get Cygnus style configure.
18937 if test -f "$ac_srcdir/configure.gnu"; then
18938 ac_sub_configure=$ac_srcdir/configure.gnu
18939 elif test -f "$ac_srcdir/configure"; then
18940 ac_sub_configure=$ac_srcdir/configure
18941 elif test -f "$ac_srcdir/configure.in"; then
18942 # This should be Cygnus configure.
18943 ac_sub_configure=$ac_aux_dir/configure
18944 else
18945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
18946 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18947 ac_sub_configure=
18948 fi
18949
18950 # The recursion is here.
18951 if test -n "$ac_sub_configure"; then
18952 # Make the cache file name correct relative to the subdirectory.
18953 case $cache_file in
18954 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18955 *) # Relative name.
18956 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
18957 esac
18958
18959 { $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
18960 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18961 # The eval makes quoting arguments work.
18962 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
18963 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
18964 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
18965 fi
18966
18967 cd "$ac_popdir"
18968 done
18969 fi
18970 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18972 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18973 fi
18974